Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 3c6733e

Browse files
feat: added support for DeployArtifacts (#163)
* feat: added support for DeployArtifacts feat: added support for in cluster verification PiperOrigin-RevId: 528368844 Source-Link: googleapis/googleapis@2da477b Source-Link: https://github.com/googleapis/googleapis-gen/commit/1d44d3517407262e706fd7777beac3966a5d20c2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWQ0NGQzNTE3NDA3MjYyZTcwNmZkNzc3N2JlYWMzOTY2YTVkMjBjMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent de38202 commit 3c6733e

File tree

5 files changed

+49
-2
lines changed

5 files changed

+49
-2
lines changed

google/cloud/deploy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
DeleteDeliveryPipelineRequest,
5555
DeleteTargetRequest,
5656
DeliveryPipeline,
57+
DeployArtifact,
5758
DeployJob,
5859
DeployJobRun,
5960
DeployJobRunMetadata,
@@ -163,6 +164,7 @@
163164
"DeleteDeliveryPipelineRequest",
164165
"DeleteTargetRequest",
165166
"DeliveryPipeline",
167+
"DeployArtifact",
166168
"DeployJob",
167169
"DeployJobRun",
168170
"DeployJobRunMetadata",

google/cloud/deploy_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
DeleteDeliveryPipelineRequest,
5252
DeleteTargetRequest,
5353
DeliveryPipeline,
54+
DeployArtifact,
5455
DeployJob,
5556
DeployJobRun,
5657
DeployJobRunMetadata,
@@ -153,6 +154,7 @@
153154
"DeleteTargetRequest",
154155
"DeliveryPipeline",
155156
"DeliveryPipelineNotificationEvent",
157+
"DeployArtifact",
156158
"DeployJob",
157159
"DeployJobRun",
158160
"DeployJobRunMetadata",

google/cloud/deploy_v1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
DeleteDeliveryPipelineRequest,
4646
DeleteTargetRequest,
4747
DeliveryPipeline,
48+
DeployArtifact,
4849
DeployJob,
4950
DeployJobRun,
5051
DeployJobRunMetadata,
@@ -141,6 +142,7 @@
141142
"DeleteDeliveryPipelineRequest",
142143
"DeleteTargetRequest",
143144
"DeliveryPipeline",
145+
"DeployArtifact",
144146
"DeployJob",
145147
"DeployJobRun",
146148
"DeployJobRunMetadata",

google/cloud/deploy_v1/types/cloud_deploy.py

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"Release",
6666
"BuildArtifact",
6767
"TargetArtifact",
68+
"DeployArtifact",
6869
"CloudRunRenderMetadata",
6970
"RenderMetadata",
7071
"ListReleasesRequest",
@@ -2162,6 +2163,10 @@ class PhaseArtifact(proto.Message):
21622163
manifest_path (str):
21632164
Output only. File path of the rendered
21642165
manifest relative to the URI.
2166+
job_manifests_path (str):
2167+
Output only. File path of the directory of
2168+
rendered job manifests relative to the URI. This
2169+
is only set if it is applicable.
21652170
"""
21662171

21672172
skaffold_config_path: str = proto.Field(
@@ -2172,6 +2177,10 @@ class PhaseArtifact(proto.Message):
21722177
proto.STRING,
21732178
number=3,
21742179
)
2180+
job_manifests_path: str = proto.Field(
2181+
proto.STRING,
2182+
number=4,
2183+
)
21752184

21762185
artifact_uri: str = proto.Field(
21772186
proto.STRING,
@@ -2194,6 +2203,30 @@ class PhaseArtifact(proto.Message):
21942203
)
21952204

21962205

2206+
class DeployArtifact(proto.Message):
2207+
r"""The artifacts produced by a deploy operation.
2208+
2209+
Attributes:
2210+
artifact_uri (str):
2211+
Output only. URI of a directory containing
2212+
the artifacts. All paths are relative to this
2213+
location.
2214+
manifest_paths (MutableSequence[str]):
2215+
Output only. File paths of the manifests
2216+
applied during the deploy operation relative to
2217+
the URI.
2218+
"""
2219+
2220+
artifact_uri: str = proto.Field(
2221+
proto.STRING,
2222+
number=1,
2223+
)
2224+
manifest_paths: MutableSequence[str] = proto.RepeatedField(
2225+
proto.STRING,
2226+
number=2,
2227+
)
2228+
2229+
21972230
class CloudRunRenderMetadata(proto.Message):
21982231
r"""CloudRunRenderMetadata contains Cloud Run information associated
21992232
with a ``Release`` render.
@@ -2818,7 +2851,7 @@ class DeploymentJobs(proto.Message):
28182851
Attributes:
28192852
deploy_job (google.cloud.deploy_v1.types.Job):
28202853
Output only. The deploy Job. This is the
2821-
first job run in the phase.
2854+
deploy job in the phase.
28222855
verify_job (google.cloud.deploy_v1.types.Job):
28232856
Output only. The verify Job. Runs after a
28242857
deploy if the deploy succeeds.
@@ -3546,6 +3579,9 @@ class DeployJobRun(proto.Message):
35463579
metadata (google.cloud.deploy_v1.types.DeployJobRunMetadata):
35473580
Output only. Metadata containing information
35483581
about the deploy job run.
3582+
artifact (google.cloud.deploy_v1.types.DeployArtifact):
3583+
Output only. The artifact of a deploy job
3584+
run, if available.
35493585
"""
35503586

35513587
class FailureCause(proto.Enum):
@@ -3598,6 +3634,11 @@ class FailureCause(proto.Enum):
35983634
number=4,
35993635
message="DeployJobRunMetadata",
36003636
)
3637+
artifact: "DeployArtifact" = proto.Field(
3638+
proto.MESSAGE,
3639+
number=5,
3640+
message="DeployArtifact",
3641+
)
36013642

36023643

36033644
class VerifyJobRun(proto.Message):

samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-deploy",
11-
"version": "1.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)