From 3c6733ea3523bde28ac43a0e1e443e5d5ae4dc32 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 4 May 2023 13:05:23 -0400 Subject: [PATCH 1/3] feat: added support for DeployArtifacts (#163) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added support for DeployArtifacts feat: added support for in cluster verification PiperOrigin-RevId: 528368844 Source-Link: https://github.com/googleapis/googleapis/commit/2da477b6a72168c65fdb4245530cfa702cc4b029 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 --- google/cloud/deploy/__init__.py | 2 + google/cloud/deploy_v1/__init__.py | 2 + google/cloud/deploy_v1/types/__init__.py | 2 + google/cloud/deploy_v1/types/cloud_deploy.py | 43 ++++++++++++++++++- ...ippet_metadata_google.cloud.deploy.v1.json | 2 +- 5 files changed, 49 insertions(+), 2 deletions(-) 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_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/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..77254ec 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": "0.1.0" }, "snippets": [ { From 907ac8b3006998c7dee199adba3b332ba9c358f8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 25 May 2023 16:26:24 +0000 Subject: [PATCH 2/3] build(deps): bump requests to 2.31.0 [autoapprove] (#165) Source-Link: https://togithub.com/googleapis/synthtool/commit/30bd01b4ab78bf1b2a425816e15b3e7e090993dd Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9bc5fa3b62b091f60614c08a7fb4fd1d3e1678e326f34dd66ce1eefb5dc3267b --- .github/.OwlBot.lock.yaml | 3 ++- .kokoro/requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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 From 27602a5732435576fcf829d1708b4bf6dd504e32 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 31 May 2023 15:03:48 -0400 Subject: [PATCH 3/3] chore(main): release 1.9.0 (#164) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ google/cloud/deploy/gapic_version.py | 2 +- google/cloud/deploy_v1/gapic_version.py | 2 +- .../snippet_metadata_google.cloud.deploy.v1.json | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) 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/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/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/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.deploy.v1.json index 77254ec..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": "0.1.0" + "version": "1.9.0" }, "snippets": [ {