Skip to content

Commit

Permalink
feat: added support for DeployArtifacts (#163)
Browse files Browse the repository at this point in the history
* feat: added support for DeployArtifacts
feat: added support for in cluster verification

PiperOrigin-RevId: 528368844

Source-Link: googleapis/googleapis@2da477b

Source-Link: googleapis/googleapis-gen@1d44d35
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored May 4, 2023
1 parent 35e9d94 commit 3464a95
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/google-cloud-deploy/google/cloud/deploy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
DeleteDeliveryPipelineRequest,
DeleteTargetRequest,
DeliveryPipeline,
DeployArtifact,
DeployJob,
DeployJobRun,
DeployJobRunMetadata,
Expand Down Expand Up @@ -163,6 +164,7 @@
"DeleteDeliveryPipelineRequest",
"DeleteTargetRequest",
"DeliveryPipeline",
"DeployArtifact",
"DeployJob",
"DeployJobRun",
"DeployJobRunMetadata",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
DeleteDeliveryPipelineRequest,
DeleteTargetRequest,
DeliveryPipeline,
DeployArtifact,
DeployJob,
DeployJobRun,
DeployJobRunMetadata,
Expand Down Expand Up @@ -153,6 +154,7 @@
"DeleteTargetRequest",
"DeliveryPipeline",
"DeliveryPipelineNotificationEvent",
"DeployArtifact",
"DeployJob",
"DeployJobRun",
"DeployJobRunMetadata",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
DeleteDeliveryPipelineRequest,
DeleteTargetRequest,
DeliveryPipeline,
DeployArtifact,
DeployJob,
DeployJobRun,
DeployJobRunMetadata,
Expand Down Expand Up @@ -141,6 +142,7 @@
"DeleteDeliveryPipelineRequest",
"DeleteTargetRequest",
"DeliveryPipeline",
"DeployArtifact",
"DeployJob",
"DeployJobRun",
"DeployJobRunMetadata",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Release",
"BuildArtifact",
"TargetArtifact",
"DeployArtifact",
"CloudRunRenderMetadata",
"RenderMetadata",
"ListReleasesRequest",
Expand Down Expand Up @@ -2162,6 +2163,10 @@ class PhaseArtifact(proto.Message):
manifest_path (str):
Output only. File path of the rendered
manifest relative to the URI.
job_manifests_path (str):
Output only. File path of the directory of
rendered job manifests relative to the URI. This
is only set if it is applicable.
"""

skaffold_config_path: str = proto.Field(
Expand All @@ -2172,6 +2177,10 @@ class PhaseArtifact(proto.Message):
proto.STRING,
number=3,
)
job_manifests_path: str = proto.Field(
proto.STRING,
number=4,
)

artifact_uri: str = proto.Field(
proto.STRING,
Expand All @@ -2194,6 +2203,30 @@ class PhaseArtifact(proto.Message):
)


class DeployArtifact(proto.Message):
r"""The artifacts produced by a deploy operation.
Attributes:
artifact_uri (str):
Output only. URI of a directory containing
the artifacts. All paths are relative to this
location.
manifest_paths (MutableSequence[str]):
Output only. File paths of the manifests
applied during the deploy operation relative to
the URI.
"""

artifact_uri: str = proto.Field(
proto.STRING,
number=1,
)
manifest_paths: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=2,
)


class CloudRunRenderMetadata(proto.Message):
r"""CloudRunRenderMetadata contains Cloud Run information associated
with a ``Release`` render.
Expand Down Expand Up @@ -2818,7 +2851,7 @@ class DeploymentJobs(proto.Message):
Attributes:
deploy_job (google.cloud.deploy_v1.types.Job):
Output only. The deploy Job. This is the
first job run in the phase.
deploy job in the phase.
verify_job (google.cloud.deploy_v1.types.Job):
Output only. The verify Job. Runs after a
deploy if the deploy succeeds.
Expand Down Expand Up @@ -3546,6 +3579,9 @@ class DeployJobRun(proto.Message):
metadata (google.cloud.deploy_v1.types.DeployJobRunMetadata):
Output only. Metadata containing information
about the deploy job run.
artifact (google.cloud.deploy_v1.types.DeployArtifact):
Output only. The artifact of a deploy job
run, if available.
"""

class FailureCause(proto.Enum):
Expand Down Expand Up @@ -3598,6 +3634,11 @@ class FailureCause(proto.Enum):
number=4,
message="DeployJobRunMetadata",
)
artifact: "DeployArtifact" = proto.Field(
proto.MESSAGE,
number=5,
message="DeployArtifact",
)


class VerifyJobRun(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-deploy",
"version": "1.8.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 3464a95

Please sign in to comment.