From f9cabda3d27d80c15172953f4ab2f0d9d01d55ce Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 14:29:34 -0700 Subject: [PATCH] chore: use gapic-generator-python 0.63.2 (#115) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../services/gke_hub/async_client.py | 234 +++++ .../gkehub_v1/services/gke_hub/client.py | 245 +++++ .../async_client.py | 172 +++ .../gke_hub_membership_service/client.py | 180 ++++ ..._gkehub_v1_gke_hub_create_feature_async.py | 48 + ...d_gkehub_v1_gke_hub_create_feature_sync.py | 48 + ...ehub_v1_gke_hub_create_membership_async.py | 50 + ...kehub_v1_gke_hub_create_membership_sync.py | 50 + ..._gkehub_v1_gke_hub_delete_feature_async.py | 48 + ...d_gkehub_v1_gke_hub_delete_feature_sync.py | 48 + ...ehub_v1_gke_hub_delete_membership_async.py | 49 + ...kehub_v1_gke_hub_delete_membership_sync.py | 49 + ...gke_hub_generate_connect_manifest_async.py | 45 + ..._gke_hub_generate_connect_manifest_sync.py | 45 + ...ted_gkehub_v1_gke_hub_get_feature_async.py | 44 + ...ated_gkehub_v1_gke_hub_get_feature_sync.py | 44 + ..._gkehub_v1_gke_hub_get_membership_async.py | 45 + ...d_gkehub_v1_gke_hub_get_membership_sync.py | 45 + ...d_gkehub_v1_gke_hub_list_features_async.py | 45 + ...ed_gkehub_v1_gke_hub_list_features_sync.py | 45 + ...kehub_v1_gke_hub_list_memberships_async.py | 46 + ...gkehub_v1_gke_hub_list_memberships_sync.py | 46 + ..._gkehub_v1_gke_hub_update_feature_async.py | 48 + ...d_gkehub_v1_gke_hub_update_feature_sync.py | 48 + ...ehub_v1_gke_hub_update_membership_async.py | 49 + ...kehub_v1_gke_hub_update_membership_sync.py | 49 + ...bership_service_create_membership_async.py | 50 + ...mbership_service_create_membership_sync.py | 50 + ...bership_service_delete_membership_async.py | 49 + ...mbership_service_delete_membership_sync.py | 49 + ...service_generate_connect_manifest_async.py | 45 + ..._service_generate_connect_manifest_sync.py | 45 + ...ice_generate_exclusivity_manifest_async.py | 45 + ...vice_generate_exclusivity_manifest_sync.py | 45 + ...membership_service_get_membership_async.py | 45 + ..._membership_service_get_membership_sync.py | 45 + ...mbership_service_list_memberships_async.py | 46 + ...embership_service_list_memberships_sync.py | 46 + ...bership_service_update_membership_async.py | 49 + ...mbership_service_update_membership_sync.py | 49 + ...ship_service_validate_exclusivity_async.py | 46 + ...rship_service_validate_exclusivity_sync.py | 46 + .../snippet_metadata_gkehub_v1.json | 983 ++++++++++++++++++ .../snippet_metadata_gkehub_v1beta1.json | 716 +++++++++++++ 44 files changed, 4314 insertions(+) create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_async.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_sync.py create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1.json create mode 100644 packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1beta1.json diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/async_client.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/async_client.py index d896672819f4..3209381ad355 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/async_client.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/async_client.py @@ -226,6 +226,26 @@ async def list_memberships( ) -> pagers.ListMembershipsAsyncPager: r"""Lists Memberships in a given project and location. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_list_memberships(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.ListMembershipsRequest, dict]): The request object. Request message for @@ -306,6 +326,25 @@ async def list_features( ) -> pagers.ListFeaturesAsyncPager: r"""Lists Features in a given project and location. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_list_features(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.ListFeaturesRequest( + ) + + # Make the request + page_result = client.list_features(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.ListFeaturesRequest, dict]): The request object. Request message for @@ -386,6 +425,25 @@ async def get_membership( ) -> membership.Membership: r"""Gets the details of a Membership. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_get_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = client.get_membership(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.GetMembershipRequest, dict]): The request object. Request message for @@ -457,6 +515,24 @@ async def get_feature( ) -> feature.Feature: r"""Gets details of a single Feature. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_get_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GetFeatureRequest( + ) + + # Make the request + response = client.get_feature(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.GetFeatureRequest, dict]): The request object. Request message for @@ -534,6 +610,31 @@ async def create_membership( Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_create_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.CreateMembershipRequest, dict]): The request object. Request message for the @@ -645,6 +746,28 @@ async def create_feature( ) -> operation_async.AsyncOperation: r"""Adds a new Feature. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_create_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateFeatureRequest( + ) + + # Make the request + operation = client.create_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.CreateFeatureRequest, dict]): The request object. Request message for the @@ -747,6 +870,30 @@ async def delete_membership( at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_delete_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.DeleteMembershipRequest, dict]): The request object. Request message for @@ -839,6 +986,28 @@ async def delete_feature( ) -> operation_async.AsyncOperation: r"""Removes a Feature. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_delete_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteFeatureRequest( + ) + + # Make the request + operation = client.delete_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.DeleteFeatureRequest, dict]): The request object. Request message for @@ -933,6 +1102,29 @@ async def update_membership( ) -> operation_async.AsyncOperation: r"""Updates an existing Membership. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_update_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.UpdateMembershipRequest, dict]): The request object. Request message for @@ -1040,6 +1232,28 @@ async def update_feature( ) -> operation_async.AsyncOperation: r"""Updates an existing Feature. + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_update_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateFeatureRequest( + ) + + # Make the request + operation = client.update_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.UpdateFeatureRequest, dict]): The request object. Request message for @@ -1147,6 +1361,26 @@ async def generate_connect_manifest( **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.GenerateConnectManifestRequest, dict]): The request object. Request message for diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/client.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/client.py index 0b15d9952fc7..e24b49b4cce9 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/client.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/client.py @@ -445,6 +445,27 @@ def list_memberships( ) -> pagers.ListMembershipsPager: r"""Lists Memberships in a given project and location. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_list_memberships(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.ListMembershipsRequest, dict]): The request object. Request message for @@ -525,6 +546,26 @@ def list_features( ) -> pagers.ListFeaturesPager: r"""Lists Features in a given project and location. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_list_features(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.ListFeaturesRequest( + ) + + # Make the request + page_result = client.list_features(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.ListFeaturesRequest, dict]): The request object. Request message for @@ -605,6 +646,26 @@ def get_membership( ) -> membership.Membership: r"""Gets the details of a Membership. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_get_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = client.get_membership(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.GetMembershipRequest, dict]): The request object. Request message for @@ -676,6 +737,25 @@ def get_feature( ) -> feature.Feature: r"""Gets details of a single Feature. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_get_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GetFeatureRequest( + ) + + # Make the request + response = client.get_feature(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.GetFeatureRequest, dict]): The request object. Request message for @@ -753,6 +833,32 @@ def create_membership( Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_create_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.CreateMembershipRequest, dict]): The request object. Request message for the @@ -864,6 +970,29 @@ def create_feature( ) -> operation.Operation: r"""Adds a new Feature. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_create_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateFeatureRequest( + ) + + # Make the request + operation = client.create_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.CreateFeatureRequest, dict]): The request object. Request message for the @@ -966,6 +1095,31 @@ def delete_membership( at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_delete_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.DeleteMembershipRequest, dict]): The request object. Request message for @@ -1058,6 +1212,29 @@ def delete_feature( ) -> operation.Operation: r"""Removes a Feature. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_delete_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteFeatureRequest( + ) + + # Make the request + operation = client.delete_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.DeleteFeatureRequest, dict]): The request object. Request message for @@ -1152,6 +1329,30 @@ def update_membership( ) -> operation.Operation: r"""Updates an existing Membership. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_update_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.UpdateMembershipRequest, dict]): The request object. Request message for @@ -1259,6 +1460,29 @@ def update_feature( ) -> operation.Operation: r"""Updates an existing Feature. + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_update_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateFeatureRequest( + ) + + # Make the request + operation = client.update_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.UpdateFeatureRequest, dict]): The request object. Request message for @@ -1366,6 +1590,27 @@ def generate_connect_manifest( **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly. + + + .. code-block:: + + from google.cloud import gkehub_v1 + + def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1.types.GenerateConnectManifestRequest, dict]): The request object. Request message for diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/async_client.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/async_client.py index 51a0552b6044..779c30cbe13a 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/async_client.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/async_client.py @@ -235,6 +235,26 @@ async def list_memberships( ) -> pagers.ListMembershipsAsyncPager: r"""Lists Memberships in a given project and location. + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_list_memberships(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.ListMembershipsRequest, dict]): The request object. Request message for @@ -316,6 +336,25 @@ async def get_membership( ) -> membership.Membership: r"""Gets the details of a Membership. + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_get_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = client.get_membership(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.GetMembershipRequest, dict]): The request object. Request message for @@ -393,6 +432,31 @@ async def create_membership( Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_create_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.CreateMembershipRequest, dict]): The request object. Request message for the @@ -507,6 +571,30 @@ async def delete_membership( at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_delete_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.DeleteMembershipRequest, dict]): The request object. Request message for @@ -601,6 +689,29 @@ async def update_membership( ) -> operation_async.AsyncOperation: r"""Updates an existing Membership. + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_update_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.UpdateMembershipRequest, dict]): The request object. Request message for @@ -711,6 +822,26 @@ async def generate_connect_manifest( **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.GenerateConnectManifestRequest, dict]): The request object. Request message for @@ -764,6 +895,27 @@ async def validate_exclusivity( exclusivity in the cluster. The validation does not depend on an existing Hub membership resource. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_validate_exclusivity(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ValidateExclusivityRequest( + parent="parent_value", + intended_membership="intended_membership_value", + ) + + # Make the request + response = client.validate_exclusivity(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.ValidateExclusivityRequest, dict]): The request object. The request to validate the existing @@ -826,6 +978,26 @@ async def generate_exclusivity_manifest( response will be the converted CRD and CR if there are any differences between the versions. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_generate_exclusivity_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateExclusivityManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_exclusivity_manifest(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.GenerateExclusivityManifestRequest, dict]): The request object. The request to generate the diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/client.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/client.py index 2b3b08ae2c19..33608ddc9ffa 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/client.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/client.py @@ -427,6 +427,27 @@ def list_memberships( ) -> pagers.ListMembershipsPager: r"""Lists Memberships in a given project and location. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_list_memberships(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.ListMembershipsRequest, dict]): The request object. Request message for @@ -508,6 +529,26 @@ def get_membership( ) -> membership.Membership: r"""Gets the details of a Membership. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_get_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = client.get_membership(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.GetMembershipRequest, dict]): The request object. Request message for @@ -585,6 +626,32 @@ def create_membership( Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_create_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.CreateMembershipRequest, dict]): The request object. Request message for the @@ -699,6 +766,31 @@ def delete_membership( at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_delete_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.DeleteMembershipRequest, dict]): The request object. Request message for @@ -793,6 +885,30 @@ def update_membership( ) -> operation.Operation: r"""Updates an existing Membership. + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_update_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.UpdateMembershipRequest, dict]): The request object. Request message for @@ -903,6 +1019,27 @@ def generate_connect_manifest( **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly. + + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.GenerateConnectManifestRequest, dict]): The request object. Request message for @@ -959,6 +1096,28 @@ def validate_exclusivity( exclusivity in the cluster. The validation does not depend on an existing Hub membership resource. + + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_validate_exclusivity(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ValidateExclusivityRequest( + parent="parent_value", + intended_membership="intended_membership_value", + ) + + # Make the request + response = client.validate_exclusivity(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.ValidateExclusivityRequest, dict]): The request object. The request to validate the existing @@ -1022,6 +1181,27 @@ def generate_exclusivity_manifest( response will be the converted CRD and CR if there are any differences between the versions. + + + .. code-block:: + + from google.cloud import gkehub_v1beta1 + + def sample_generate_exclusivity_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateExclusivityManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_exclusivity_manifest(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.gkehub_v1beta1.types.GenerateExclusivityManifestRequest, dict]): The request object. The request to generate the diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_async.py new file mode 100644 index 000000000000..b0c940b6798a --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_CreateFeature_async] +from google.cloud import gkehub_v1 + + +async def sample_create_feature(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateFeatureRequest( + ) + + # Make the request + operation = client.create_feature(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_CreateFeature_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_sync.py new file mode 100644 index 000000000000..8145bbc269a4 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_feature_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_CreateFeature_sync] +from google.cloud import gkehub_v1 + + +def sample_create_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateFeatureRequest( + ) + + # Make the request + operation = client.create_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_CreateFeature_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_async.py new file mode 100644 index 000000000000..5d39db63733a --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_CreateMembership_async] +from google.cloud import gkehub_v1 + + +async def sample_create_membership(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_CreateMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_sync.py new file mode 100644 index 000000000000..8fa67833fa42 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_create_membership_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_CreateMembership_sync] +from google.cloud import gkehub_v1 + + +def sample_create_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_CreateMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_async.py new file mode 100644 index 000000000000..2c3cc7b91b56 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_DeleteFeature_async] +from google.cloud import gkehub_v1 + + +async def sample_delete_feature(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteFeatureRequest( + ) + + # Make the request + operation = client.delete_feature(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_DeleteFeature_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_sync.py new file mode 100644 index 000000000000..0a6f1413c9d7 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_feature_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_DeleteFeature_sync] +from google.cloud import gkehub_v1 + + +def sample_delete_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteFeatureRequest( + ) + + # Make the request + operation = client.delete_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_DeleteFeature_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_async.py new file mode 100644 index 000000000000..5067d0f48372 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_DeleteMembership_async] +from google.cloud import gkehub_v1 + + +async def sample_delete_membership(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_DeleteMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_sync.py new file mode 100644 index 000000000000..0280d3f99888 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_delete_membership_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_DeleteMembership_sync] +from google.cloud import gkehub_v1 + + +def sample_delete_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_DeleteMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_async.py new file mode 100644 index 000000000000..cc19383f59ac --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GenerateConnectManifest +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_GenerateConnectManifest_async] +from google.cloud import gkehub_v1 + + +async def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = await client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_GenerateConnectManifest_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_sync.py new file mode 100644 index 000000000000..360d5dfc3d86 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GenerateConnectManifest +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_GenerateConnectManifest_sync] +from google.cloud import gkehub_v1 + + +def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_GenerateConnectManifest_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_async.py new file mode 100644 index 000000000000..058156348172 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_GetFeature_async] +from google.cloud import gkehub_v1 + + +async def sample_get_feature(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.GetFeatureRequest( + ) + + # Make the request + response = await client.get_feature(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_GetFeature_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_sync.py new file mode 100644 index 000000000000..0e8010202d43 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_feature_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_GetFeature_sync] +from google.cloud import gkehub_v1 + + +def sample_get_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GetFeatureRequest( + ) + + # Make the request + response = client.get_feature(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_GetFeature_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_async.py new file mode 100644 index 000000000000..907661edeac5 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_GetMembership_async] +from google.cloud import gkehub_v1 + + +async def sample_get_membership(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = await client.get_membership(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_GetMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_sync.py new file mode 100644 index 000000000000..a7d70b53c618 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_get_membership_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_GetMembership_sync] +from google.cloud import gkehub_v1 + + +def sample_get_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = client.get_membership(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_GetMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_async.py new file mode 100644 index 000000000000..34b62f22a3ea --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListFeatures +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_ListFeatures_async] +from google.cloud import gkehub_v1 + + +async def sample_list_features(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.ListFeaturesRequest( + ) + + # Make the request + page_result = client.list_features(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_ListFeatures_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_sync.py new file mode 100644 index 000000000000..bcf201d038a3 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_features_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListFeatures +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_ListFeatures_sync] +from google.cloud import gkehub_v1 + + +def sample_list_features(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.ListFeaturesRequest( + ) + + # Make the request + page_result = client.list_features(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_ListFeatures_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_async.py new file mode 100644 index 000000000000..3ee32b5f6c2c --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListMemberships +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_ListMemberships_async] +from google.cloud import gkehub_v1 + + +async def sample_list_memberships(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_ListMemberships_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_sync.py new file mode 100644 index 000000000000..2298f8a0dbbc --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_list_memberships_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListMemberships +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_ListMemberships_sync] +from google.cloud import gkehub_v1 + + +def sample_list_memberships(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_ListMemberships_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_async.py new file mode 100644 index 000000000000..4b4b7ec5212f --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_UpdateFeature_async] +from google.cloud import gkehub_v1 + + +async def sample_update_feature(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateFeatureRequest( + ) + + # Make the request + operation = client.update_feature(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_UpdateFeature_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_sync.py new file mode 100644 index 000000000000..1d06e0462f8a --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_feature_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateFeature +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_UpdateFeature_sync] +from google.cloud import gkehub_v1 + + +def sample_update_feature(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateFeatureRequest( + ) + + # Make the request + operation = client.update_feature(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_UpdateFeature_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_async.py new file mode 100644 index 000000000000..9413148121ca --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_UpdateMembership_async] +from google.cloud import gkehub_v1 + + +async def sample_update_membership(): + # Create a client + client = gkehub_v1.GkeHubAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_UpdateMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_sync.py new file mode 100644 index 000000000000..b0dcb7258be9 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1_gke_hub_update_membership_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1_GkeHub_UpdateMembership_sync] +from google.cloud import gkehub_v1 + + +def sample_update_membership(): + # Create a client + client = gkehub_v1.GkeHubClient() + + # Initialize request argument(s) + request = gkehub_v1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1_GkeHub_UpdateMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_async.py new file mode 100644 index 000000000000..f5c93f2d6cea --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_CreateMembership_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_create_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_CreateMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_sync.py new file mode 100644 index 000000000000..c66035ce552b --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_CreateMembership_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_create_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.CreateMembershipRequest( + parent="parent_value", + membership_id="membership_id_value", + ) + + # Make the request + operation = client.create_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_CreateMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_async.py new file mode 100644 index 000000000000..dc4671c0c82b --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_DeleteMembership_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_delete_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_DeleteMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_sync.py new file mode 100644 index 000000000000..1167ece55040 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_DeleteMembership_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_delete_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.DeleteMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_DeleteMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_async.py new file mode 100644 index 000000000000..06c79220ebff --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GenerateConnectManifest +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateConnectManifest_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = await client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateConnectManifest_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_sync.py new file mode 100644 index 000000000000..a1347e4d91cb --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GenerateConnectManifest +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateConnectManifest_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_generate_connect_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateConnectManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_connect_manifest(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateConnectManifest_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_async.py new file mode 100644 index 000000000000..0669f9371c27 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GenerateExclusivityManifest +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateExclusivityManifest_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_generate_exclusivity_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateExclusivityManifestRequest( + name="name_value", + ) + + # Make the request + response = await client.generate_exclusivity_manifest(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateExclusivityManifest_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_sync.py new file mode 100644 index 000000000000..39c944927a90 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GenerateExclusivityManifest +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateExclusivityManifest_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_generate_exclusivity_manifest(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GenerateExclusivityManifestRequest( + name="name_value", + ) + + # Make the request + response = client.generate_exclusivity_manifest(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateExclusivityManifest_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_async.py new file mode 100644 index 000000000000..4564218485ef --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GetMembership_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_get_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = await client.get_membership(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GetMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_sync.py new file mode 100644 index 000000000000..1788fe1011bf --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GetMembership_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_get_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.GetMembershipRequest( + name="name_value", + ) + + # Make the request + response = client.get_membership(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GetMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_async.py new file mode 100644 index 000000000000..78ad0167c9e8 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListMemberships +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ListMemberships_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_list_memberships(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ListMemberships_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_sync.py new file mode 100644 index 000000000000..7a0af8841f41 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListMemberships +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ListMemberships_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_list_memberships(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ListMembershipsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_memberships(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ListMemberships_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_async.py new file mode 100644 index 000000000000..d28deaa2af5a --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_UpdateMembership_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_update_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_UpdateMembership_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_sync.py new file mode 100644 index 000000000000..5d206e053059 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateMembership +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_UpdateMembership_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_update_membership(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.UpdateMembershipRequest( + name="name_value", + ) + + # Make the request + operation = client.update_membership(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_UpdateMembership_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_async.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_async.py new file mode 100644 index 000000000000..e079dc9d154b --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ValidateExclusivity +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ValidateExclusivity_async] +from google.cloud import gkehub_v1beta1 + + +async def sample_validate_exclusivity(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ValidateExclusivityRequest( + parent="parent_value", + intended_membership="intended_membership_value", + ) + + # Make the request + response = await client.validate_exclusivity(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ValidateExclusivity_async] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_sync.py b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_sync.py new file mode 100644 index 000000000000..75d849160775 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ValidateExclusivity +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-gke-hub + + +# [START gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ValidateExclusivity_sync] +from google.cloud import gkehub_v1beta1 + + +def sample_validate_exclusivity(): + # Create a client + client = gkehub_v1beta1.GkeHubMembershipServiceClient() + + # Initialize request argument(s) + request = gkehub_v1beta1.ValidateExclusivityRequest( + parent="parent_value", + intended_membership="intended_membership_value", + ) + + # Make the request + response = client.validate_exclusivity(request=request) + + # Handle the response + print(response) + +# [END gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ValidateExclusivity_sync] diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1.json b/packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1.json new file mode 100644 index 000000000000..a8e47b7fbab0 --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1.json @@ -0,0 +1,983 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "CreateFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_create_feature_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_CreateFeature_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "CreateFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_create_feature_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_CreateFeature_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "CreateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_create_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_CreateMembership_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "CreateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_create_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_CreateMembership_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "DeleteFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_delete_feature_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_DeleteFeature_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "DeleteFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_delete_feature_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_DeleteFeature_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "DeleteMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_delete_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_DeleteMembership_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "DeleteMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_delete_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_DeleteMembership_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "GenerateConnectManifest" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_GenerateConnectManifest_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "GenerateConnectManifest" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_generate_connect_manifest_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_GenerateConnectManifest_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "GetFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_get_feature_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_GetFeature_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "GetFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_get_feature_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_GetFeature_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "GetMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_get_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_GetMembership_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "GetMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_get_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_GetMembership_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "ListFeatures" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_list_features_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_ListFeatures_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "ListFeatures" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_list_features_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_ListFeatures_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "ListMemberships" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_list_memberships_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_ListMemberships_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "ListMemberships" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_list_memberships_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_ListMemberships_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "UpdateFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_update_feature_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_UpdateFeature_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "UpdateFeature" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_update_feature_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_UpdateFeature_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "UpdateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_update_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_UpdateMembership_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHub" + }, + "shortName": "UpdateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1_gke_hub_update_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1_GkeHub_UpdateMembership_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +} diff --git a/packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1beta1.json b/packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1beta1.json new file mode 100644 index 000000000000..a59e43e0a6ad --- /dev/null +++ b/packages/google-cloud-gke-hub/samples/generated_samples/snippet_metadata_gkehub_v1beta1.json @@ -0,0 +1,716 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "CreateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_CreateMembership_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "CreateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_create_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_CreateMembership_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "DeleteMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_DeleteMembership_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "DeleteMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_delete_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_DeleteMembership_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "GenerateConnectManifest" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateConnectManifest_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "GenerateConnectManifest" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_connect_manifest_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateConnectManifest_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "GenerateExclusivityManifest" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateExclusivityManifest_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "GenerateExclusivityManifest" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_generate_exclusivity_manifest_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GenerateExclusivityManifest_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "GetMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GetMembership_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "GetMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_get_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_GetMembership_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "ListMemberships" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ListMemberships_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "ListMemberships" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_list_memberships_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ListMemberships_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "UpdateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_UpdateMembership_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "UpdateMembership" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_update_membership_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_UpdateMembership_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "ValidateExclusivity" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_async.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ValidateExclusivity_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "GkeHubMembershipService" + }, + "shortName": "ValidateExclusivity" + } + }, + "file": "gkehub_generated_gkehub_v1beta1_gke_hub_membership_service_validate_exclusivity_sync.py", + "regionTag": "gkehub_generated_gkehub_v1beta1_GkeHubMembershipService_ValidateExclusivity_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +}