diff --git a/packages/google-cloud-deploy/google/cloud/deploy/__init__.py b/packages/google-cloud-deploy/google/cloud/deploy/__init__.py index 2627ca40164a..6b83a221532b 100644 --- a/packages/google-cloud-deploy/google/cloud/deploy/__init__.py +++ b/packages/google-cloud-deploy/google/cloud/deploy/__init__.py @@ -54,6 +54,7 @@ DeleteDeliveryPipelineRequest, DeleteTargetRequest, DeliveryPipeline, + DeployArtifact, DeployJob, DeployJobRun, DeployJobRunMetadata, @@ -163,6 +164,7 @@ "DeleteDeliveryPipelineRequest", "DeleteTargetRequest", "DeliveryPipeline", + "DeployArtifact", "DeployJob", "DeployJobRun", "DeployJobRunMetadata", diff --git a/packages/google-cloud-deploy/google/cloud/deploy_v1/__init__.py b/packages/google-cloud-deploy/google/cloud/deploy_v1/__init__.py index 465fd56e490f..e31fc3e7b3ad 100644 --- a/packages/google-cloud-deploy/google/cloud/deploy_v1/__init__.py +++ b/packages/google-cloud-deploy/google/cloud/deploy_v1/__init__.py @@ -51,6 +51,7 @@ DeleteDeliveryPipelineRequest, DeleteTargetRequest, DeliveryPipeline, + DeployArtifact, DeployJob, DeployJobRun, DeployJobRunMetadata, @@ -153,6 +154,7 @@ "DeleteTargetRequest", "DeliveryPipeline", "DeliveryPipelineNotificationEvent", + "DeployArtifact", "DeployJob", "DeployJobRun", "DeployJobRunMetadata", diff --git a/packages/google-cloud-deploy/google/cloud/deploy_v1/types/__init__.py b/packages/google-cloud-deploy/google/cloud/deploy_v1/types/__init__.py index 1f6f06bd3bf6..16cffdfba1ad 100644 --- a/packages/google-cloud-deploy/google/cloud/deploy_v1/types/__init__.py +++ b/packages/google-cloud-deploy/google/cloud/deploy_v1/types/__init__.py @@ -45,6 +45,7 @@ DeleteDeliveryPipelineRequest, DeleteTargetRequest, DeliveryPipeline, + DeployArtifact, DeployJob, DeployJobRun, DeployJobRunMetadata, @@ -141,6 +142,7 @@ "DeleteDeliveryPipelineRequest", "DeleteTargetRequest", "DeliveryPipeline", + "DeployArtifact", "DeployJob", "DeployJobRun", "DeployJobRunMetadata", diff --git a/packages/google-cloud-deploy/google/cloud/deploy_v1/types/cloud_deploy.py b/packages/google-cloud-deploy/google/cloud/deploy_v1/types/cloud_deploy.py index 0717f0a551f9..7dbffe3ce8ed 100644 --- a/packages/google-cloud-deploy/google/cloud/deploy_v1/types/cloud_deploy.py +++ b/packages/google-cloud-deploy/google/cloud/deploy_v1/types/cloud_deploy.py @@ -65,6 +65,7 @@ "Release", "BuildArtifact", "TargetArtifact", + "DeployArtifact", "CloudRunRenderMetadata", "RenderMetadata", "ListReleasesRequest", @@ -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( @@ -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, @@ -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. @@ -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. @@ -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): @@ -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): diff --git a/packages/google-cloud-deploy/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json b/packages/google-cloud-deploy/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json index c193993333e3..77254ec7276f 100644 --- a/packages/google-cloud-deploy/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json +++ b/packages/google-cloud-deploy/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-deploy", - "version": "1.8.0" + "version": "0.1.0" }, "snippets": [ {