From 5806fdb25bf4a55a3d8d8a22dd42c3dbdb05f0ea Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 1 Mar 2023 20:42:39 +0000 Subject: [PATCH 1/7] chore(deps): update dependency google-cloud-container to v2.17.4 (#354) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index fe79784c..b353d292 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,3 +1,3 @@ -google-cloud-container==2.17.3 +google-cloud-container==2.17.4 backoff==2.2.1 pytest==7.2.1 \ No newline at end of file From d0a01ad0a1198581fa6ade6e0d6df38d90f893d9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 4 Mar 2023 11:30:15 +0000 Subject: [PATCH 2/7] chore(deps): update dependency pytest to v7.2.2 (#355) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index b353d292..b74ce427 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,3 +1,3 @@ google-cloud-container==2.17.4 backoff==2.2.1 -pytest==7.2.1 \ No newline at end of file +pytest==7.2.2 \ No newline at end of file From f41b699907991248b0d14bd9d5ae3ab4a8e1aff7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 6 Mar 2023 06:39:23 -0500 Subject: [PATCH 3/7] docs: minor typo fix (#356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: minor typo fix PiperOrigin-RevId: 513869216 Source-Link: https://github.com/googleapis/googleapis/commit/ec2020a9113f473a1542f84742c203a462bcd9be Source-Link: https://github.com/googleapis/googleapis-gen/commit/df7a1af984f26cb3beb212b7dd5297c97175a213 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGY3YTFhZjk4NGYyNmNiM2JlYjIxMmI3ZGQ1Mjk3Yzk3MTc1YTIxMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: minor typo fix PiperOrigin-RevId: 513869294 Source-Link: https://github.com/googleapis/googleapis/commit/00179492fb1d3ceedd9c65b803c6230d59a15d94 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8edd875949ac042a66991fd93da98440573ceaab Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGVkZDg3NTk0OWFjMDQyYTY2OTkxZmQ5M2RhOTg0NDA1NzNjZWFhYiJ9 * 🦉 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 Co-authored-by: Anthonios Partheniou --- google/cloud/container_v1/types/cluster_service.py | 4 ++-- google/cloud/container_v1beta1/types/cluster_service.py | 4 ++-- .../snippet_metadata_google.container.v1.json | 2 +- .../snippet_metadata_google.container.v1beta1.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/google/cloud/container_v1/types/cluster_service.py b/google/cloud/container_v1/types/cluster_service.py index 6cb637e4..e39418ef 100644 --- a/google/cloud/container_v1/types/cluster_service.py +++ b/google/cloud/container_v1/types/cluster_service.py @@ -189,8 +189,8 @@ class PrivateIPv6GoogleAccess(proto.Enum): Enables private IPv6 access to Google Services from GKE PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL (3): - Enables priate IPv6 access to and from Google - Services + Enables private IPv6 access to and from + Google Services """ PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0 PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1 diff --git a/google/cloud/container_v1beta1/types/cluster_service.py b/google/cloud/container_v1beta1/types/cluster_service.py index 51bbfc9b..828530ae 100644 --- a/google/cloud/container_v1beta1/types/cluster_service.py +++ b/google/cloud/container_v1beta1/types/cluster_service.py @@ -204,8 +204,8 @@ class PrivateIPv6GoogleAccess(proto.Enum): Enables private IPv6 access to Google Services from GKE PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL (3): - Enables priate IPv6 access to and from Google - Services + Enables private IPv6 access to and from + Google Services """ PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0 PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1 diff --git a/samples/generated_samples/snippet_metadata_google.container.v1.json b/samples/generated_samples/snippet_metadata_google.container.v1.json index 7f74a032..34c1cf39 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "2.17.4" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json index bb93ff08..15a96218 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "2.17.4" + "version": "0.1.0" }, "snippets": [ { From e07d0137b5c1fa73d865210ab437bf64b6f2b7d1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 16 Mar 2023 12:24:38 +0000 Subject: [PATCH 4/7] chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#358) Source-Link: https://togithub.com/googleapis/synthtool/commit/92006bb3cdc84677aa93c7f5235424ec2b157146 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/requirements.in | 2 +- .kokoro/requirements.txt | 14 +++++--------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5fc5daa3..b8edda51 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 + digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index 882178ce..ec867d9f 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -5,6 +5,6 @@ typing-extensions twine wheel setuptools -nox +nox>=2022.11.21 # required to remove dependency on py charset-normalizer<3 click<8.1.0 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index fa99c129..66a2172a 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # # pip-compile --allow-unsafe --generate-hashes requirements.in # @@ -335,9 +335,9 @@ more-itertools==9.0.0 \ --hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \ --hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab # via jaraco-classes -nox==2022.8.7 \ - --hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \ - --hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c +nox==2022.11.21 \ + --hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \ + --hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684 # via -r requirements.in packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ @@ -380,10 +380,6 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core -py==1.11.0 \ - --hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \ - --hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378 - # via nox pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba From d10ac7e8db4d79011f1b5fa1bb508a8829a683ac Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 23 Mar 2023 09:44:04 -0400 Subject: [PATCH 5/7] docs: Fix formatting of request arg in docstring (#359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Fix formatting of request arg in docstring chore: Update gapic-generator-python to v1.9.1 PiperOrigin-RevId: 518604533 Source-Link: https://github.com/googleapis/googleapis/commit/8a085aeddfa010af5bcef090827aac5255383d7e Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2ab4b0a0ae2907e812c209198a74e0898afcb04 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9 * 🦉 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 --- .../services/cluster_manager/async_client.py | 49 +++++++++-------- .../services/cluster_manager/client.py | 49 +++++++++-------- .../services/cluster_manager/async_client.py | 54 +++++++++++-------- .../services/cluster_manager/client.py | 54 +++++++++++-------- 4 files changed, 118 insertions(+), 88 deletions(-) diff --git a/google/cloud/container_v1/services/cluster_manager/async_client.py b/google/cloud/container_v1/services/cluster_manager/async_client.py index 338290bc..33f4568a 100644 --- a/google/cloud/container_v1/services/cluster_manager/async_client.py +++ b/google/cloud/container_v1/services/cluster_manager/async_client.py @@ -2616,11 +2616,11 @@ async def sample_get_json_web_keys(): Args: request (Optional[Union[google.cloud.container_v1.types.GetJSONWebKeysRequest, dict]]): - The request object. GetJSONWebKeysRequest gets the - public component of the keys used by the cluster to sign - token requests. This will be the jwks_uri for the - discover document returned by getOpenIDConfig. See the - OpenID Connect Discovery 1.0 specification for details. + The request object. GetJSONWebKeysRequest gets the public component of the + keys used by the cluster to sign token requests. This + will be the jwks_uri for the discover document returned + by getOpenIDConfig. See the OpenID Connect Discovery 1.0 + specification for details. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3325,7 +3325,8 @@ async def sample_complete_node_pool_upgrade(): Args: request (Optional[Union[google.cloud.container_v1.types.CompleteNodePoolUpgradeRequest, dict]]): The request object. CompleteNodePoolUpgradeRequest sets - the name of target node pool to complete upgrade. + the name of target node pool to complete + upgrade. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3404,9 +3405,10 @@ async def sample_rollback_node_pool_upgrade(): Args: request (Optional[Union[google.cloud.container_v1.types.RollbackNodePoolUpgradeRequest, dict]]): The request object. RollbackNodePoolUpgradeRequest - rollbacks the previously Aborted or Failed NodePool - upgrade. This will be an no-op if the last upgrade - successfully completed. + rollbacks the previously Aborted or + Failed NodePool upgrade. This will be an + no-op if the last upgrade successfully + completed. project_id (:class:`str`): Deprecated. The Google Developers Console `project ID or project @@ -3556,8 +3558,9 @@ async def sample_set_node_pool_management(): Args: request (Optional[Union[google.cloud.container_v1.types.SetNodePoolManagementRequest, dict]]): - The request object. SetNodePoolManagementRequest sets - the node management properties of a node pool. + The request object. SetNodePoolManagementRequest sets the + node management properties of a node + pool. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3639,9 +3642,10 @@ async def sample_set_labels(): Args: request (Optional[Union[google.cloud.container_v1.types.SetLabelsRequest, dict]]): The request object. SetLabelsRequest sets the Google - Cloud Platform labels on a Google Container Engine - cluster, which will in turn set them for Google Compute - Engine resources used by that cluster + Cloud Platform labels on a Google + Container Engine cluster, which will in + turn set them for Google Compute Engine + resources used by that cluster retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3729,7 +3733,8 @@ async def sample_set_legacy_abac(): Args: request (Optional[Union[google.cloud.container_v1.types.SetLegacyAbacRequest, dict]]): The request object. SetLegacyAbacRequest enables or - disables the ABAC authorization mechanism for a cluster. + disables the ABAC authorization + mechanism for a cluster. project_id (:class:`str`): Deprecated. The Google Developers Console `project ID or project @@ -3879,8 +3884,9 @@ async def sample_start_ip_rotation(): Args: request (Optional[Union[google.cloud.container_v1.types.StartIPRotationRequest, dict]]): The request object. StartIPRotationRequest creates a new - IP for the cluster and then performs a node upgrade on - each node pool to point to the new IP. + IP for the cluster and then performs a + node upgrade on each node pool to point + to the new IP. project_id (:class:`str`): Deprecated. The Google Developers Console `project ID or project @@ -4248,7 +4254,8 @@ async def sample_set_network_policy(): Args: request (Optional[Union[google.cloud.container_v1.types.SetNetworkPolicyRequest, dict]]): The request object. SetNetworkPolicyRequest - enables/disables network policy for a cluster. + enables/disables network policy for a + cluster. project_id (:class:`str`): Deprecated. The Google Developers Console `project ID or project @@ -4550,9 +4557,9 @@ async def sample_list_usable_subnetworks(): Args: request (Optional[Union[google.cloud.container_v1.types.ListUsableSubnetworksRequest, dict]]): - The request object. ListUsableSubnetworksRequest - requests the list of usable subnetworks available to a - user for creating clusters. + The request object. ListUsableSubnetworksRequest requests + the list of usable subnetworks available + to a user for creating clusters. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/container_v1/services/cluster_manager/client.py b/google/cloud/container_v1/services/cluster_manager/client.py index 50a332f2..87dc6aa0 100644 --- a/google/cloud/container_v1/services/cluster_manager/client.py +++ b/google/cloud/container_v1/services/cluster_manager/client.py @@ -2783,11 +2783,11 @@ def sample_get_json_web_keys(): Args: request (Union[google.cloud.container_v1.types.GetJSONWebKeysRequest, dict]): - The request object. GetJSONWebKeysRequest gets the - public component of the keys used by the cluster to sign - token requests. This will be the jwks_uri for the - discover document returned by getOpenIDConfig. See the - OpenID Connect Discovery 1.0 specification for details. + The request object. GetJSONWebKeysRequest gets the public component of the + keys used by the cluster to sign token requests. This + will be the jwks_uri for the discover document returned + by getOpenIDConfig. See the OpenID Connect Discovery 1.0 + specification for details. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3463,7 +3463,8 @@ def sample_complete_node_pool_upgrade(): Args: request (Union[google.cloud.container_v1.types.CompleteNodePoolUpgradeRequest, dict]): The request object. CompleteNodePoolUpgradeRequest sets - the name of target node pool to complete upgrade. + the name of target node pool to complete + upgrade. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3545,9 +3546,10 @@ def sample_rollback_node_pool_upgrade(): Args: request (Union[google.cloud.container_v1.types.RollbackNodePoolUpgradeRequest, dict]): The request object. RollbackNodePoolUpgradeRequest - rollbacks the previously Aborted or Failed NodePool - upgrade. This will be an no-op if the last upgrade - successfully completed. + rollbacks the previously Aborted or + Failed NodePool upgrade. This will be an + no-op if the last upgrade successfully + completed. project_id (str): Deprecated. The Google Developers Console `project ID or project @@ -3699,8 +3701,9 @@ def sample_set_node_pool_management(): Args: request (Union[google.cloud.container_v1.types.SetNodePoolManagementRequest, dict]): - The request object. SetNodePoolManagementRequest sets - the node management properties of a node pool. + The request object. SetNodePoolManagementRequest sets the + node management properties of a node + pool. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3783,9 +3786,10 @@ def sample_set_labels(): Args: request (Union[google.cloud.container_v1.types.SetLabelsRequest, dict]): The request object. SetLabelsRequest sets the Google - Cloud Platform labels on a Google Container Engine - cluster, which will in turn set them for Google Compute - Engine resources used by that cluster + Cloud Platform labels on a Google + Container Engine cluster, which will in + turn set them for Google Compute Engine + resources used by that cluster retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3874,7 +3878,8 @@ def sample_set_legacy_abac(): Args: request (Union[google.cloud.container_v1.types.SetLegacyAbacRequest, dict]): The request object. SetLegacyAbacRequest enables or - disables the ABAC authorization mechanism for a cluster. + disables the ABAC authorization + mechanism for a cluster. project_id (str): Deprecated. The Google Developers Console `project ID or project @@ -4024,8 +4029,9 @@ def sample_start_ip_rotation(): Args: request (Union[google.cloud.container_v1.types.StartIPRotationRequest, dict]): The request object. StartIPRotationRequest creates a new - IP for the cluster and then performs a node upgrade on - each node pool to point to the new IP. + IP for the cluster and then performs a + node upgrade on each node pool to point + to the new IP. project_id (str): Deprecated. The Google Developers Console `project ID or project @@ -4394,7 +4400,8 @@ def sample_set_network_policy(): Args: request (Union[google.cloud.container_v1.types.SetNetworkPolicyRequest, dict]): The request object. SetNetworkPolicyRequest - enables/disables network policy for a cluster. + enables/disables network policy for a + cluster. project_id (str): Deprecated. The Google Developers Console `project ID or project @@ -4696,9 +4703,9 @@ def sample_list_usable_subnetworks(): Args: request (Union[google.cloud.container_v1.types.ListUsableSubnetworksRequest, dict]): - The request object. ListUsableSubnetworksRequest - requests the list of usable subnetworks available to a - user for creating clusters. + The request object. ListUsableSubnetworksRequest requests + the list of usable subnetworks available + to a user for creating clusters. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/container_v1beta1/services/cluster_manager/async_client.py b/google/cloud/container_v1beta1/services/cluster_manager/async_client.py index ba69a990..9dbec8e6 100644 --- a/google/cloud/container_v1beta1/services/cluster_manager/async_client.py +++ b/google/cloud/container_v1beta1/services/cluster_manager/async_client.py @@ -818,8 +818,8 @@ async def sample_update_node_pool(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.UpdateNodePoolRequest, dict]]): - The request object. SetNodePoolVersionRequest updates - the version of a node pool. + The request object. SetNodePoolVersionRequest updates the + version of a node pool. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2532,11 +2532,11 @@ async def sample_get_json_web_keys(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.GetJSONWebKeysRequest, dict]]): - The request object. GetJSONWebKeysRequest gets the - public component of the keys used by the cluster to sign - token requests. This will be the jwks_uri for the - discover document returned by getOpenIDConfig. See the - OpenID Connect Discovery 1.0 specification for details. + The request object. GetJSONWebKeysRequest gets the public component of the + keys used by the cluster to sign token requests. This + will be the jwks_uri for the discover document returned + by getOpenIDConfig. See the OpenID Connect Discovery 1.0 + specification for details. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3249,7 +3249,8 @@ async def sample_complete_node_pool_upgrade(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.CompleteNodePoolUpgradeRequest, dict]]): The request object. CompleteNodePoolUpgradeRequest sets - the name of target node pool to complete upgrade. + the name of target node pool to complete + upgrade. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3331,9 +3332,10 @@ async def sample_rollback_node_pool_upgrade(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.RollbackNodePoolUpgradeRequest, dict]]): The request object. RollbackNodePoolUpgradeRequest - rollbacks the previously Aborted or Failed NodePool - upgrade. This will be an no-op if the last upgrade - successfully completed. + rollbacks the previously Aborted or + Failed NodePool upgrade. This will be an + no-op if the last upgrade successfully + completed. project_id (:class:`str`): Required. Deprecated. The Google Developers Console `project ID or project @@ -3482,8 +3484,9 @@ async def sample_set_node_pool_management(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.SetNodePoolManagementRequest, dict]]): - The request object. SetNodePoolManagementRequest sets - the node management properties of a node pool. + The request object. SetNodePoolManagementRequest sets the + node management properties of a node + pool. project_id (:class:`str`): Required. Deprecated. The Google Developers Console `project ID or project @@ -3642,9 +3645,10 @@ async def sample_set_labels(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.SetLabelsRequest, dict]]): The request object. SetLabelsRequest sets the Google - Cloud Platform labels on a Google Container Engine - cluster, which will in turn set them for Google Compute - Engine resources used by that cluster + Cloud Platform labels on a Google + Container Engine cluster, which will in + turn set them for Google Compute Engine + resources used by that cluster project_id (:class:`str`): Required. Deprecated. The Google Developers Console `project ID or project @@ -3807,7 +3811,8 @@ async def sample_set_legacy_abac(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.SetLegacyAbacRequest, dict]]): The request object. SetLegacyAbacRequest enables or - disables the ABAC authorization mechanism for a cluster. + disables the ABAC authorization + mechanism for a cluster. project_id (:class:`str`): Required. Deprecated. The Google Developers Console `project ID or project @@ -3950,8 +3955,9 @@ async def sample_start_ip_rotation(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.StartIPRotationRequest, dict]]): The request object. StartIPRotationRequest creates a new - IP for the cluster and then performs a node upgrade on - each node pool to point to the new IP. + IP for the cluster and then performs a + node upgrade on each node pool to point + to the new IP. project_id (:class:`str`): Required. Deprecated. The Google Developers Console `project ID or project @@ -4309,7 +4315,8 @@ async def sample_set_network_policy(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.SetNetworkPolicyRequest, dict]]): The request object. SetNetworkPolicyRequest - enables/disables network policy for a cluster. + enables/disables network policy for a + cluster. project_id (:class:`str`): Required. Deprecated. The Google Developers Console `project ID or project @@ -4591,9 +4598,10 @@ async def sample_list_usable_subnetworks(): Args: request (Optional[Union[google.cloud.container_v1beta1.types.ListUsableSubnetworksRequest, dict]]): - The request object. ListUsableSubnetworksRequest - requests the list of usable subnetworks. available to a - user for creating clusters. + The request object. ListUsableSubnetworksRequest requests + the list of usable subnetworks. + available to a user for creating + clusters. parent (:class:`str`): Required. The parent project where subnetworks are usable. Specified in the format ``projects/*``. diff --git a/google/cloud/container_v1beta1/services/cluster_manager/client.py b/google/cloud/container_v1beta1/services/cluster_manager/client.py index f0a8c26e..487d52fd 100644 --- a/google/cloud/container_v1beta1/services/cluster_manager/client.py +++ b/google/cloud/container_v1beta1/services/cluster_manager/client.py @@ -1020,8 +1020,8 @@ def sample_update_node_pool(): Args: request (Union[google.cloud.container_v1beta1.types.UpdateNodePoolRequest, dict]): - The request object. SetNodePoolVersionRequest updates - the version of a node pool. + The request object. SetNodePoolVersionRequest updates the + version of a node pool. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2699,11 +2699,11 @@ def sample_get_json_web_keys(): Args: request (Union[google.cloud.container_v1beta1.types.GetJSONWebKeysRequest, dict]): - The request object. GetJSONWebKeysRequest gets the - public component of the keys used by the cluster to sign - token requests. This will be the jwks_uri for the - discover document returned by getOpenIDConfig. See the - OpenID Connect Discovery 1.0 specification for details. + The request object. GetJSONWebKeysRequest gets the public component of the + keys used by the cluster to sign token requests. This + will be the jwks_uri for the discover document returned + by getOpenIDConfig. See the OpenID Connect Discovery 1.0 + specification for details. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3387,7 +3387,8 @@ def sample_complete_node_pool_upgrade(): Args: request (Union[google.cloud.container_v1beta1.types.CompleteNodePoolUpgradeRequest, dict]): The request object. CompleteNodePoolUpgradeRequest sets - the name of target node pool to complete upgrade. + the name of target node pool to complete + upgrade. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3472,9 +3473,10 @@ def sample_rollback_node_pool_upgrade(): Args: request (Union[google.cloud.container_v1beta1.types.RollbackNodePoolUpgradeRequest, dict]): The request object. RollbackNodePoolUpgradeRequest - rollbacks the previously Aborted or Failed NodePool - upgrade. This will be an no-op if the last upgrade - successfully completed. + rollbacks the previously Aborted or + Failed NodePool upgrade. This will be an + no-op if the last upgrade successfully + completed. project_id (str): Required. Deprecated. The Google Developers Console `project ID or project @@ -3625,8 +3627,9 @@ def sample_set_node_pool_management(): Args: request (Union[google.cloud.container_v1beta1.types.SetNodePoolManagementRequest, dict]): - The request object. SetNodePoolManagementRequest sets - the node management properties of a node pool. + The request object. SetNodePoolManagementRequest sets the + node management properties of a node + pool. project_id (str): Required. Deprecated. The Google Developers Console `project ID or project @@ -3785,9 +3788,10 @@ def sample_set_labels(): Args: request (Union[google.cloud.container_v1beta1.types.SetLabelsRequest, dict]): The request object. SetLabelsRequest sets the Google - Cloud Platform labels on a Google Container Engine - cluster, which will in turn set them for Google Compute - Engine resources used by that cluster + Cloud Platform labels on a Google + Container Engine cluster, which will in + turn set them for Google Compute Engine + resources used by that cluster project_id (str): Required. Deprecated. The Google Developers Console `project ID or project @@ -3949,7 +3953,8 @@ def sample_set_legacy_abac(): Args: request (Union[google.cloud.container_v1beta1.types.SetLegacyAbacRequest, dict]): The request object. SetLegacyAbacRequest enables or - disables the ABAC authorization mechanism for a cluster. + disables the ABAC authorization + mechanism for a cluster. project_id (str): Required. Deprecated. The Google Developers Console `project ID or project @@ -4092,8 +4097,9 @@ def sample_start_ip_rotation(): Args: request (Union[google.cloud.container_v1beta1.types.StartIPRotationRequest, dict]): The request object. StartIPRotationRequest creates a new - IP for the cluster and then performs a node upgrade on - each node pool to point to the new IP. + IP for the cluster and then performs a + node upgrade on each node pool to point + to the new IP. project_id (str): Required. Deprecated. The Google Developers Console `project ID or project @@ -4452,7 +4458,8 @@ def sample_set_network_policy(): Args: request (Union[google.cloud.container_v1beta1.types.SetNetworkPolicyRequest, dict]): The request object. SetNetworkPolicyRequest - enables/disables network policy for a cluster. + enables/disables network policy for a + cluster. project_id (str): Required. Deprecated. The Google Developers Console `project ID or project @@ -4734,9 +4741,10 @@ def sample_list_usable_subnetworks(): Args: request (Union[google.cloud.container_v1beta1.types.ListUsableSubnetworksRequest, dict]): - The request object. ListUsableSubnetworksRequest - requests the list of usable subnetworks. available to a - user for creating clusters. + The request object. ListUsableSubnetworksRequest requests + the list of usable subnetworks. + available to a user for creating + clusters. parent (str): Required. The parent project where subnetworks are usable. Specified in the format ``projects/*``. From 0bfdffe31e660c3914081181c611efd5582a05d3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Mar 2023 18:41:52 -0400 Subject: [PATCH 6/7] feat: add a new fleet registration feature to v1beta1, v1 (#360) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add a new fleet registration feature Users can now register their clusters to a fleet by setting cluster.fleet.project. Please see https://cloud.google.com/anthos/fleet-management/docs/fleet-concepts for more details about fleet management. PiperOrigin-RevId: 520023539 Source-Link: https://github.com/googleapis/googleapis/commit/0fac9e8428f71e402ac920ca6b8a935d6a2bdcc1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2319a8833004b1be3a37be5b2b3e6ca14dee74d6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMxOWE4ODMzMDA0YjFiZTNhMzdiZTViMmIzZTZjYTE0ZGVlNzRkNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add a new fleet registration feature to v1alpha1, v1beta1, v1 Users can now register their clusters to a fleet by setting cluster.fleet.project. Please see https://cloud.google.com/anthos/fleet-management/docs/fleet-concepts for more details about fleet management. PiperOrigin-RevId: 520043395 Source-Link: https://github.com/googleapis/googleapis/commit/0f498c731ec56906194615d44ff11defd3b26f93 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cade820c6e8a17dce3835d939dddecba2eed8f51 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2FkZTgyMGM2ZThhMTdkY2UzODM1ZDkzOWRkZGVjYmEyZWVkOGY1MSJ9 * 🦉 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/container/__init__.py | 2 + google/cloud/container_v1/__init__.py | 2 + google/cloud/container_v1/types/__init__.py | 2 + .../container_v1/types/cluster_service.py | 45 ++++++++++++++++++- google/cloud/container_v1beta1/__init__.py | 2 + .../cloud/container_v1beta1/types/__init__.py | 2 + .../types/cluster_service.py | 40 +++++++++++++++++ 7 files changed, 93 insertions(+), 2 deletions(-) diff --git a/google/cloud/container/__init__.py b/google/cloud/container/__init__.py index a409cf10..61533223 100644 --- a/google/cloud/container/__init__.py +++ b/google/cloud/container/__init__.py @@ -57,6 +57,7 @@ DNSConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -206,6 +207,7 @@ "DNSConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", "GcfsConfig", diff --git a/google/cloud/container_v1/__init__.py b/google/cloud/container_v1/__init__.py index b31f65cd..9797ab28 100644 --- a/google/cloud/container_v1/__init__.py +++ b/google/cloud/container_v1/__init__.py @@ -52,6 +52,7 @@ DNSConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -202,6 +203,7 @@ "DnsCacheConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GPUSharingConfig", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", diff --git a/google/cloud/container_v1/types/__init__.py b/google/cloud/container_v1/types/__init__.py index 7018b5f2..27f62df5 100644 --- a/google/cloud/container_v1/types/__init__.py +++ b/google/cloud/container_v1/types/__init__.py @@ -46,6 +46,7 @@ DNSConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -193,6 +194,7 @@ "DNSConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", "GcfsConfig", diff --git a/google/cloud/container_v1/types/cluster_service.py b/google/cloud/container_v1/types/cluster_service.py index e39418ef..1c231ebf 100644 --- a/google/cloud/container_v1/types/cluster_service.py +++ b/google/cloud/container_v1/types/cluster_service.py @@ -170,6 +170,7 @@ "LoggingVariantConfig", "MonitoringComponentConfig", "ManagedPrometheusConfig", + "Fleet", "LocalNvmeSsdBlockConfig", "EphemeralStorageLocalSsdConfig", }, @@ -2353,6 +2354,8 @@ class Cluster(proto.Message): on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. + fleet (google.cloud.container_v1.types.Fleet): + Fleet information for the cluster. """ class Status(proto.Enum): @@ -2679,6 +2682,11 @@ class Status(proto.Enum): proto.STRING, number=139, ) + fleet: "Fleet" = proto.Field( + proto.MESSAGE, + number=140, + message="Fleet", + ) class NodePoolAutoConfig(proto.Message): @@ -7250,8 +7258,9 @@ class Status(proto.Enum): UNUSED denotes that this range is unclaimed by any cluster. IN_USE_SERVICE (2): - IN_USE_SERVICE denotes that this range is claimed by a - cluster for services. It cannot be used for other clusters. + IN_USE_SERVICE denotes that this range is claimed by + cluster(s) for services. User-managed services range can be + shared between clusters within the same subnetwork. IN_USE_SHAREABLE_POD (3): IN_USE_SHAREABLE_POD denotes this range was created by the network admin and is currently claimed by a cluster for @@ -7939,6 +7948,38 @@ class ManagedPrometheusConfig(proto.Message): ) +class Fleet(proto.Message): + r"""Fleet is the fleet configuration for the cluster. + + Attributes: + project (str): + The Fleet host project(project ID or project + number) where this cluster will be registered + to. This field cannot be changed after the + cluster has been registered. + membership (str): + [Output only] The full resource name of the registered fleet + membership of the cluster, in the format + ``//gkehub.googleapis.com/projects/*/locations/*/memberships/*``. + pre_registered (bool): + [Output only] Whether the cluster has been registered + through the fleet API. + """ + + project: str = proto.Field( + proto.STRING, + number=1, + ) + membership: str = proto.Field( + proto.STRING, + number=2, + ) + pre_registered: bool = proto.Field( + proto.BOOL, + number=3, + ) + + class LocalNvmeSsdBlockConfig(proto.Message): r"""LocalNvmeSsdBlockConfig contains configuration for using raw-block local NVMe SSD. diff --git a/google/cloud/container_v1beta1/__init__.py b/google/cloud/container_v1beta1/__init__.py index a941eafb..9f9b393d 100644 --- a/google/cloud/container_v1beta1/__init__.py +++ b/google/cloud/container_v1beta1/__init__.py @@ -54,6 +54,7 @@ EphemeralStorageConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -218,6 +219,7 @@ "EphemeralStorageConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GPUSharingConfig", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", diff --git a/google/cloud/container_v1beta1/types/__init__.py b/google/cloud/container_v1beta1/types/__init__.py index 247e6211..e7cb4f31 100644 --- a/google/cloud/container_v1beta1/types/__init__.py +++ b/google/cloud/container_v1beta1/types/__init__.py @@ -48,6 +48,7 @@ EphemeralStorageConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -209,6 +210,7 @@ "EphemeralStorageConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", "GcfsConfig", diff --git a/google/cloud/container_v1beta1/types/cluster_service.py b/google/cloud/container_v1beta1/types/cluster_service.py index 828530ae..f5c6e4e3 100644 --- a/google/cloud/container_v1beta1/types/cluster_service.py +++ b/google/cloud/container_v1beta1/types/cluster_service.py @@ -187,6 +187,7 @@ "NodePoolLoggingConfig", "LoggingVariantConfig", "MonitoringComponentConfig", + "Fleet", }, ) @@ -2648,6 +2649,8 @@ class Cluster(proto.Message): on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. + fleet (google.cloud.container_v1beta1.types.Fleet): + Fleet information for the cluster. """ class Status(proto.Enum): @@ -3017,6 +3020,11 @@ class Status(proto.Enum): proto.STRING, number=139, ) + fleet: "Fleet" = proto.Field( + proto.MESSAGE, + number=140, + message="Fleet", + ) class WorkloadConfig(proto.Message): @@ -8775,4 +8783,36 @@ class Component(proto.Enum): ) +class Fleet(proto.Message): + r"""Fleet is the fleet configuration for the cluster. + + Attributes: + project (str): + The Fleet host project(project ID or project + number) where this cluster will be registered + to. This field cannot be changed after the + cluster has been registered. + membership (str): + [Output only] The full resource name of the registered fleet + membership of the cluster, in the format + ``//gkehub.googleapis.com/projects/*/locations/*/memberships/*``. + pre_registered (bool): + [Output only] Whether the cluster has been registered + through the fleet API. + """ + + project: str = proto.Field( + proto.STRING, + number=1, + ) + membership: str = proto.Field( + proto.STRING, + number=2, + ) + pre_registered: bool = proto.Field( + proto.BOOL, + number=3, + ) + + __all__ = tuple(sorted(__protobuf__.manifest)) From cbf95e556ed843697a65c940faec8ce59cc533ad Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 29 Mar 2023 10:35:12 -0400 Subject: [PATCH 7/7] chore(main): release 2.18.0 (#357) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ google/cloud/container/gapic_version.py | 2 +- google/cloud/container_v1/gapic_version.py | 2 +- google/cloud/container_v1beta1/gapic_version.py | 2 +- .../snippet_metadata_google.container.v1.json | 2 +- .../snippet_metadata_google.container.v1beta1.json | 2 +- 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e13ee5dc..7723ed4f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.17.4" + ".": "2.18.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b5f86841..6eccfc1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ [1]: https://pypi.org/project/google-cloud-container/#history +## [2.18.0](https://github.com/googleapis/python-container/compare/v2.17.4...v2.18.0) (2023-03-28) + + +### Features + +* Add a new fleet registration feature to v1beta1, v1 ([#360](https://github.com/googleapis/python-container/issues/360)) ([0bfdffe](https://github.com/googleapis/python-container/commit/0bfdffe31e660c3914081181c611efd5582a05d3)) + + +### Documentation + +* Fix formatting of request arg in docstring ([#359](https://github.com/googleapis/python-container/issues/359)) ([d10ac7e](https://github.com/googleapis/python-container/commit/d10ac7e8db4d79011f1b5fa1bb508a8829a683ac)) +* Minor typo fix ([#356](https://github.com/googleapis/python-container/issues/356)) ([f41b699](https://github.com/googleapis/python-container/commit/f41b699907991248b0d14bd9d5ae3ab4a8e1aff7)) + ## [2.17.4](https://github.com/googleapis/python-container/compare/v2.17.3...v2.17.4) (2023-02-28) diff --git a/google/cloud/container/gapic_version.py b/google/cloud/container/gapic_version.py index 2598d9bc..f09943f6 100644 --- a/google/cloud/container/gapic_version.py +++ b/google/cloud/container/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.17.4" # {x-release-please-version} +__version__ = "2.18.0" # {x-release-please-version} diff --git a/google/cloud/container_v1/gapic_version.py b/google/cloud/container_v1/gapic_version.py index 2598d9bc..f09943f6 100644 --- a/google/cloud/container_v1/gapic_version.py +++ b/google/cloud/container_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.17.4" # {x-release-please-version} +__version__ = "2.18.0" # {x-release-please-version} diff --git a/google/cloud/container_v1beta1/gapic_version.py b/google/cloud/container_v1beta1/gapic_version.py index 2598d9bc..f09943f6 100644 --- a/google/cloud/container_v1beta1/gapic_version.py +++ b/google/cloud/container_v1beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.17.4" # {x-release-please-version} +__version__ = "2.18.0" # {x-release-please-version} diff --git a/samples/generated_samples/snippet_metadata_google.container.v1.json b/samples/generated_samples/snippet_metadata_google.container.v1.json index 34c1cf39..df02e5b5 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "0.1.0" + "version": "2.18.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json index 15a96218..0cdcffa1 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "0.1.0" + "version": "2.18.0" }, "snippets": [ {