Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions google/cloud/deploy_v1/__init__.py
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
2 changes: 2 additions & 0 deletions google/cloud/deploy_v1/types/__init__.py
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
43 changes: 42 additions & 1 deletion google/cloud/deploy_v1/types/cloud_deploy.py
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