diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b8edda5..32b3c48 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 + digest: sha256:9bc5fa3b62b091f60614c08a7fb4fd1d3e1678e326f34dd66ce1eefb5dc3267b +# created: 2023-05-25T14:56:16.294623272Z diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 66a2172..3b8d7ee 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -419,9 +419,9 @@ readme-renderer==37.3 \ --hash=sha256:cd653186dfc73055656f090f227f5cb22a046d7f71a841dfa305f55c9a513273 \ --hash=sha256:f67a16caedfa71eef48a31b39708637a6f4664c4394801a7b0d6432d13907343 # via twine -requests==2.28.1 \ - --hash=sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983 \ - --hash=sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349 +requests==2.31.0 \ + --hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \ + --hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1 # via # gcp-releasetool # google-api-core diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 099626f..4fcfdf7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.8.0" + ".": "1.9.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 254aad1..9837e16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.9.0](https://github.com/googleapis/python-deploy/compare/v1.8.0...v1.9.0) (2023-05-25) + + +### Features + +* Added support for DeployArtifacts ([3c6733e](https://github.com/googleapis/python-deploy/commit/3c6733ea3523bde28ac43a0e1e443e5d5ae4dc32)) +* Added support for in cluster verification ([3c6733e](https://github.com/googleapis/python-deploy/commit/3c6733ea3523bde28ac43a0e1e443e5d5ae4dc32)) + ## [1.8.0](https://github.com/googleapis/python-deploy/compare/v1.7.0...v1.8.0) (2023-03-24) diff --git a/google/cloud/deploy/__init__.py b/google/cloud/deploy/__init__.py index 2627ca4..6b83a22 100644 --- a/google/cloud/deploy/__init__.py +++ b/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/google/cloud/deploy/gapic_version.py b/google/cloud/deploy/gapic_version.py index b334dcc..163d151 100644 --- a/google/cloud/deploy/gapic_version.py +++ b/google/cloud/deploy/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.8.0" # {x-release-please-version} +__version__ = "1.9.0" # {x-release-please-version} diff --git a/google/cloud/deploy_v1/__init__.py b/google/cloud/deploy_v1/__init__.py index 465fd56..e31fc3e 100644 --- a/google/cloud/deploy_v1/__init__.py +++ b/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/google/cloud/deploy_v1/gapic_version.py b/google/cloud/deploy_v1/gapic_version.py index b334dcc..163d151 100644 --- a/google/cloud/deploy_v1/gapic_version.py +++ b/google/cloud/deploy_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.8.0" # {x-release-please-version} +__version__ = "1.9.0" # {x-release-please-version} diff --git a/google/cloud/deploy_v1/types/__init__.py b/google/cloud/deploy_v1/types/__init__.py index 1f6f06b..16cffdf 100644 --- a/google/cloud/deploy_v1/types/__init__.py +++ b/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/google/cloud/deploy_v1/types/cloud_deploy.py b/google/cloud/deploy_v1/types/cloud_deploy.py index 0717f0a..7dbffe3 100644 --- a/google/cloud/deploy_v1/types/cloud_deploy.py +++ b/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/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json index c193993..e4799e4 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json +++ b/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": "1.9.0" }, "snippets": [ {