From e3a3a056d80ac713edbf5cb4a8358063f8a83214 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 09:37:58 -0700 Subject: [PATCH 1/2] docs: add generated snippets (#192) 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/cluster_manager/async_client.py | 601 ++++ .../services/cluster_manager/client.py | 633 ++++ .../services/cluster_manager/async_client.py | 712 ++++ .../services/cluster_manager/client.py | 745 +++++ ..._cluster_manager_cancel_operation_async.py | 42 + ...1_cluster_manager_cancel_operation_sync.py | 42 + ...ster_manager_complete_ip_rotation_async.py | 44 + ...uster_manager_complete_ip_rotation_sync.py | 44 + ...v1_cluster_manager_create_cluster_async.py | 44 + ..._v1_cluster_manager_create_cluster_sync.py | 44 + ..._cluster_manager_create_node_pool_async.py | 44 + ...1_cluster_manager_create_node_pool_sync.py | 44 + ...v1_cluster_manager_delete_cluster_async.py | 44 + ..._v1_cluster_manager_delete_cluster_sync.py | 44 + ..._cluster_manager_delete_node_pool_async.py | 44 + ...1_cluster_manager_delete_node_pool_sync.py | 44 + ...er_v1_cluster_manager_get_cluster_async.py | 44 + ...ner_v1_cluster_manager_get_cluster_sync.py | 44 + ...cluster_manager_get_json_web_keys_async.py | 44 + ..._cluster_manager_get_json_web_keys_sync.py | 44 + ..._v1_cluster_manager_get_node_pool_async.py | 44 + ...r_v1_cluster_manager_get_node_pool_sync.py | 44 + ..._v1_cluster_manager_get_operation_async.py | 44 + ...r_v1_cluster_manager_get_operation_sync.py | 44 + ...cluster_manager_get_server_config_async.py | 44 + ..._cluster_manager_get_server_config_sync.py | 44 + ..._v1_cluster_manager_list_clusters_async.py | 44 + ...r_v1_cluster_manager_list_clusters_sync.py | 44 + ...1_cluster_manager_list_node_pools_async.py | 44 + ...v1_cluster_manager_list_node_pools_sync.py | 44 + ...1_cluster_manager_list_operations_async.py | 44 + ...v1_cluster_manager_list_operations_sync.py | 44 + ...r_manager_list_usable_subnetworks_async.py | 45 + ...er_manager_list_usable_subnetworks_sync.py | 45 + ...anager_rollback_node_pool_upgrade_async.py | 44 + ...manager_rollback_node_pool_upgrade_sync.py | 44 + ...cluster_manager_set_addons_config_async.py | 44 + ..._cluster_manager_set_addons_config_sync.py | 44 + ...ner_v1_cluster_manager_set_labels_async.py | 45 + ...iner_v1_cluster_manager_set_labels_sync.py | 45 + ...1_cluster_manager_set_legacy_abac_async.py | 45 + ...v1_cluster_manager_set_legacy_abac_sync.py | 45 + ..._v1_cluster_manager_set_locations_async.py | 45 + ...r_v1_cluster_manager_set_locations_sync.py | 45 + ...uster_manager_set_logging_service_async.py | 45 + ...luster_manager_set_logging_service_sync.py | 45 + ...er_manager_set_maintenance_policy_async.py | 47 + ...ter_manager_set_maintenance_policy_sync.py | 47 + ...1_cluster_manager_set_master_auth_async.py | 45 + ...v1_cluster_manager_set_master_auth_sync.py | 45 + ...er_manager_set_monitoring_service_async.py | 45 + ...ter_manager_set_monitoring_service_sync.py | 45 + ...luster_manager_set_network_policy_async.py | 44 + ...cluster_manager_set_network_policy_sync.py | 44 + ...manager_set_node_pool_autoscaling_async.py | 44 + ..._manager_set_node_pool_autoscaling_sync.py | 44 + ..._manager_set_node_pool_management_async.py | 44 + ...r_manager_set_node_pool_management_sync.py | 44 + ...luster_manager_set_node_pool_size_async.py | 45 + ...cluster_manager_set_node_pool_size_sync.py | 45 + ...cluster_manager_start_ip_rotation_async.py | 44 + ..._cluster_manager_start_ip_rotation_sync.py | 44 + ...v1_cluster_manager_update_cluster_async.py | 44 + ..._v1_cluster_manager_update_cluster_sync.py | 44 + ..._v1_cluster_manager_update_master_async.py | 45 + ...r_v1_cluster_manager_update_master_sync.py | 45 + ..._cluster_manager_update_node_pool_async.py | 46 + ...1_cluster_manager_update_node_pool_sync.py | 46 + ..._cluster_manager_cancel_operation_async.py | 45 + ...1_cluster_manager_cancel_operation_sync.py | 45 + ...ster_manager_complete_ip_rotation_async.py | 47 + ...uster_manager_complete_ip_rotation_sync.py | 47 + ...a1_cluster_manager_create_cluster_async.py | 46 + ...ta1_cluster_manager_create_cluster_sync.py | 46 + ..._cluster_manager_create_node_pool_async.py | 47 + ...1_cluster_manager_create_node_pool_sync.py | 47 + ...a1_cluster_manager_delete_cluster_async.py | 47 + ...ta1_cluster_manager_delete_cluster_sync.py | 47 + ..._cluster_manager_delete_node_pool_async.py | 48 + ...1_cluster_manager_delete_node_pool_sync.py | 48 + ...beta1_cluster_manager_get_cluster_async.py | 47 + ...1beta1_cluster_manager_get_cluster_sync.py | 47 + ...cluster_manager_get_json_web_keys_async.py | 44 + ..._cluster_manager_get_json_web_keys_sync.py | 44 + ...ta1_cluster_manager_get_node_pool_async.py | 48 + ...eta1_cluster_manager_get_node_pool_sync.py | 48 + ...ta1_cluster_manager_get_operation_async.py | 47 + ...eta1_cluster_manager_get_operation_sync.py | 47 + ...cluster_manager_get_server_config_async.py | 46 + ..._cluster_manager_get_server_config_sync.py | 46 + ...ta1_cluster_manager_list_clusters_async.py | 46 + ...eta1_cluster_manager_list_clusters_sync.py | 46 + ...a1_cluster_manager_list_locations_async.py | 45 + ...ta1_cluster_manager_list_locations_sync.py | 45 + ...1_cluster_manager_list_node_pools_async.py | 47 + ...a1_cluster_manager_list_node_pools_sync.py | 47 + ...1_cluster_manager_list_operations_async.py | 46 + ...a1_cluster_manager_list_operations_sync.py | 46 + ...r_manager_list_usable_subnetworks_async.py | 46 + ...er_manager_list_usable_subnetworks_sync.py | 46 + ...anager_rollback_node_pool_upgrade_async.py | 48 + ...manager_rollback_node_pool_upgrade_sync.py | 48 + ...cluster_manager_set_addons_config_async.py | 47 + ..._cluster_manager_set_addons_config_sync.py | 47 + ...1beta1_cluster_manager_set_labels_async.py | 48 + ...v1beta1_cluster_manager_set_labels_sync.py | 48 + ...1_cluster_manager_set_legacy_abac_async.py | 48 + ...a1_cluster_manager_set_legacy_abac_sync.py | 48 + ...ta1_cluster_manager_set_locations_async.py | 48 + ...eta1_cluster_manager_set_locations_sync.py | 48 + ...uster_manager_set_logging_service_async.py | 48 + ...luster_manager_set_logging_service_sync.py | 48 + ...er_manager_set_maintenance_policy_async.py | 47 + ...ter_manager_set_maintenance_policy_sync.py | 47 + ...1_cluster_manager_set_master_auth_async.py | 48 + ...a1_cluster_manager_set_master_auth_sync.py | 48 + ...er_manager_set_monitoring_service_async.py | 48 + ...ter_manager_set_monitoring_service_sync.py | 48 + ...luster_manager_set_network_policy_async.py | 47 + ...cluster_manager_set_network_policy_sync.py | 47 + ...manager_set_node_pool_autoscaling_async.py | 48 + ..._manager_set_node_pool_autoscaling_sync.py | 48 + ..._manager_set_node_pool_management_async.py | 48 + ...r_manager_set_node_pool_management_sync.py | 48 + ...luster_manager_set_node_pool_size_async.py | 49 + ...cluster_manager_set_node_pool_size_sync.py | 49 + ...cluster_manager_start_ip_rotation_async.py | 47 + ..._cluster_manager_start_ip_rotation_sync.py | 47 + ...a1_cluster_manager_update_cluster_async.py | 47 + ...ta1_cluster_manager_update_cluster_sync.py | 47 + ...ta1_cluster_manager_update_master_async.py | 48 + ...eta1_cluster_manager_update_master_sync.py | 48 + ..._cluster_manager_update_node_pool_async.py | 50 + ...1_cluster_manager_update_node_pool_sync.py | 50 + .../snippet_metadata_container_v1.json | 2848 ++++++++++++++++ .../snippet_metadata_container_v1beta1.json | 2937 +++++++++++++++++ 136 files changed, 14428 insertions(+) create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_sync.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_async.py create mode 100644 samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_sync.py create mode 100644 samples/generated_samples/snippet_metadata_container_v1.json create mode 100644 samples/generated_samples/snippet_metadata_container_v1beta1.json diff --git a/google/cloud/container_v1/services/cluster_manager/async_client.py b/google/cloud/container_v1/services/cluster_manager/async_client.py index ce2e4858..ab778d9f 100644 --- a/google/cloud/container_v1/services/cluster_manager/async_client.py +++ b/google/cloud/container_v1/services/cluster_manager/async_client.py @@ -218,6 +218,25 @@ async def list_clusters( r"""Lists all clusters owned by a project in either the specified zone or all zones. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_clusters(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListClustersRequest( + ) + + # Make the request + response = client.list_clusters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.ListClustersRequest, dict]): The request object. ListClustersRequest lists clusters. @@ -327,6 +346,24 @@ async def get_cluster( ) -> cluster_service.Cluster: r"""Gets the details of a specific cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetClusterRequest( + ) + + # Make the request + response = client.get_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetClusterRequest, dict]): The request object. GetClusterRequest gets the settings @@ -456,6 +493,25 @@ async def create_cluster( Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_create_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CreateClusterRequest( + ) + + # Make the request + response = client.create_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.CreateClusterRequest, dict]): The request object. CreateClusterRequest creates a @@ -566,6 +622,24 @@ async def update_cluster( ) -> cluster_service.Operation: r"""Updates the settings of a specific cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_update_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateClusterRequest( + ) + + # Make the request + response = client.update_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.UpdateClusterRequest, dict]): The request object. UpdateClusterRequest updates the @@ -683,6 +757,27 @@ async def update_node_pool( r"""Updates the version and/or image type for the specified node pool. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_update_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateNodePoolRequest( + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = client.update_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.UpdateNodePoolRequest, dict]): The request object. UpdateNodePoolRequests update a node @@ -735,6 +830,25 @@ async def set_node_pool_autoscaling( r"""Sets the autoscaling settings for the specified node pool. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolAutoscalingRequest( + ) + + # Make the request + response = client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNodePoolAutoscalingRequest, dict]): The request object. SetNodePoolAutoscalingRequest sets @@ -791,6 +905,25 @@ async def set_logging_service( ) -> cluster_service.Operation: r"""Sets the logging service for a specific cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_logging_service(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLoggingServiceRequest( + logging_service="logging_service_value", + ) + + # Make the request + response = client.set_logging_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLoggingServiceRequest, dict]): The request object. SetLoggingServiceRequest sets the @@ -926,6 +1059,25 @@ async def set_monitoring_service( ) -> cluster_service.Operation: r"""Sets the monitoring service for a specific cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_monitoring_service(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMonitoringServiceRequest( + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = client.set_monitoring_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetMonitoringServiceRequest, dict]): The request object. SetMonitoringServiceRequest sets the @@ -1063,6 +1215,24 @@ async def set_addons_config( ) -> cluster_service.Operation: r"""Sets the addons for a specific cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_addons_config(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetAddonsConfigRequest( + ) + + # Make the request + response = client.set_addons_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetAddonsConfigRequest, dict]): The request object. SetAddonsConfigRequest sets the @@ -1187,6 +1357,26 @@ async def set_locations( `projects.locations.clusters.update `__ instead. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_locations(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLocationsRequest( + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = client.set_locations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLocationsRequest, dict]): The request object. SetLocationsRequest sets the @@ -1319,6 +1509,25 @@ async def update_master( ) -> cluster_service.Operation: r"""Updates the master for a specific cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_update_master(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateMasterRequest( + master_version="master_version_value", + ) + + # Make the request + response = client.update_master(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.UpdateMasterRequest, dict]): The request object. UpdateMasterRequest updates the @@ -1450,6 +1659,26 @@ async def set_master_auth( either via password generation or explicitly setting the password. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_master_auth(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMasterAuthRequest( + action="SET_USERNAME", + ) + + # Make the request + response = client.set_master_auth(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetMasterAuthRequest, dict]): The request object. SetMasterAuthRequest updates the @@ -1514,6 +1743,25 @@ async def delete_cluster( not deleted if they weren't present when the cluster was initially created. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_delete_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.DeleteClusterRequest( + ) + + # Make the request + response = client.delete_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.DeleteClusterRequest, dict]): The request object. DeleteClusterRequest deletes a @@ -1634,6 +1882,25 @@ async def list_operations( r"""Lists all operations in a project in a specific zone or all zones. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_operations(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListOperationsRequest( + ) + + # Make the request + response = client.list_operations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.ListOperationsRequest, dict]): The request object. ListOperationsRequest lists @@ -1733,6 +2000,24 @@ async def get_operation( ) -> cluster_service.Operation: r"""Gets the specified operation. + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_operation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetOperationRequest( + ) + + # Make the request + response = client.get_operation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetOperationRequest, dict]): The request object. GetOperationRequest gets a single @@ -1853,6 +2138,21 @@ async def cancel_operation( ) -> None: r"""Cancels the specified operation. + .. code-block:: + + from google.cloud import container_v1 + + def sample_cancel_operation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CancelOperationRequest( + ) + + # Make the request + client.cancel_operation(request=request) + Args: request (Union[google.cloud.container_v1.types.CancelOperationRequest, dict]): The request object. CancelOperationRequest cancels a @@ -1954,6 +2254,25 @@ async def get_server_config( r"""Returns configuration info about the Google Kubernetes Engine service. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_server_config(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetServerConfigRequest( + ) + + # Make the request + response = client.get_server_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetServerConfigRequest, dict]): The request object. Gets the current Kubernetes Engine @@ -2060,6 +2379,25 @@ async def get_json_web_keys( This API is not yet intended for general use, and is not available for all clusters. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_json_web_keys(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetJSONWebKeysRequest( + ) + + # Make the request + response = client.get_json_web_keys(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetJSONWebKeysRequest, dict]): The request object. GetJSONWebKeysRequest gets the @@ -2117,6 +2455,24 @@ async def list_node_pools( ) -> cluster_service.ListNodePoolsResponse: r"""Lists the node pools for a cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_node_pools(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListNodePoolsRequest( + ) + + # Make the request + response = client.list_node_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.ListNodePoolsRequest, dict]): The request object. ListNodePoolsRequest lists the node @@ -2236,6 +2592,24 @@ async def get_node_pool( ) -> cluster_service.NodePool: r"""Retrieves the requested node pool. + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetNodePoolRequest( + ) + + # Make the request + response = client.get_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetNodePoolRequest, dict]): The request object. GetNodePoolRequest retrieves a node @@ -2373,6 +2747,24 @@ async def create_node_pool( ) -> cluster_service.Operation: r"""Creates a node pool for a cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_create_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CreateNodePoolRequest( + ) + + # Make the request + response = client.create_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.CreateNodePoolRequest, dict]): The request object. CreateNodePoolRequest creates a node @@ -2491,6 +2883,24 @@ async def delete_node_pool( ) -> cluster_service.Operation: r"""Deletes a node pool from a cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_delete_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.DeleteNodePoolRequest( + ) + + # Make the request + response = client.delete_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.DeleteNodePoolRequest, dict]): The request object. DeleteNodePoolRequest deletes a node @@ -2625,6 +3035,25 @@ async def rollback_node_pool_upgrade( upgrade. This makes no changes if the last upgrade successfully completed. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.RollbackNodePoolUpgradeRequest( + ) + + # Make the request + response = client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.RollbackNodePoolUpgradeRequest, dict]): The request object. RollbackNodePoolUpgradeRequest @@ -2746,6 +3175,24 @@ async def set_node_pool_management( ) -> cluster_service.Operation: r"""Sets the NodeManagement options for a node pool. + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_node_pool_management(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolManagementRequest( + ) + + # Make the request + response = client.set_node_pool_management(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNodePoolManagementRequest, dict]): The request object. SetNodePoolManagementRequest sets @@ -2797,6 +3244,25 @@ async def set_labels( ) -> cluster_service.Operation: r"""Sets labels on a cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_labels(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLabelsRequest( + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLabelsRequest, dict]): The request object. SetLabelsRequest sets the Google @@ -2856,6 +3322,26 @@ async def set_legacy_abac( r"""Enables or disables the ABAC authorization mechanism on a cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_legacy_abac(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLegacyAbacRequest( + enabled=True, + ) + + # Make the request + response = client.set_legacy_abac(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLegacyAbacRequest, dict]): The request object. SetLegacyAbacRequest enables or @@ -2976,6 +3462,24 @@ async def start_ip_rotation( ) -> cluster_service.Operation: r"""Starts master IP rotation. + .. code-block:: + + from google.cloud import container_v1 + + def sample_start_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.StartIPRotationRequest( + ) + + # Make the request + response = client.start_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.StartIPRotationRequest, dict]): The request object. StartIPRotationRequest creates a new @@ -3087,6 +3591,24 @@ async def complete_ip_rotation( ) -> cluster_service.Operation: r"""Completes master IP rotation. + .. code-block:: + + from google.cloud import container_v1 + + def sample_complete_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CompleteIPRotationRequest( + ) + + # Make the request + response = client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.CompleteIPRotationRequest, dict]): The request object. CompleteIPRotationRequest moves the @@ -3196,6 +3718,26 @@ async def set_node_pool_size( modifying [NodePool.locations][google.container.v1.NodePool.locations]. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_node_pool_size(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolSizeRequest( + node_count=1070, + ) + + # Make the request + response = client.set_node_pool_size(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNodePoolSizeRequest, dict]): The request object. SetNodePoolSizeRequest sets the size @@ -3252,6 +3794,24 @@ async def set_network_policy( ) -> cluster_service.Operation: r"""Enables or disables Network Policy for a cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_network_policy(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNetworkPolicyRequest( + ) + + # Make the request + response = client.set_network_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNetworkPolicyRequest, dict]): The request object. SetNetworkPolicyRequest @@ -3372,6 +3932,27 @@ async def set_maintenance_policy( ) -> cluster_service.Operation: r"""Sets the maintenance policy for a cluster. + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_maintenance_policy(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetMaintenancePolicyRequest, dict]): The request object. SetMaintenancePolicyRequest sets the @@ -3487,6 +4068,26 @@ async def list_usable_subnetworks( r"""Lists subnetworks that are usable for creating clusters in a project. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_usable_subnetworks(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListUsableSubnetworksRequest( + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.container_v1.types.ListUsableSubnetworksRequest, dict]): The request object. ListUsableSubnetworksRequest diff --git a/google/cloud/container_v1/services/cluster_manager/client.py b/google/cloud/container_v1/services/cluster_manager/client.py index 7d67e802..61f5949b 100644 --- a/google/cloud/container_v1/services/cluster_manager/client.py +++ b/google/cloud/container_v1/services/cluster_manager/client.py @@ -410,6 +410,26 @@ def list_clusters( r"""Lists all clusters owned by a project in either the specified zone or all zones. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_clusters(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListClustersRequest( + ) + + # Make the request + response = client.list_clusters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.ListClustersRequest, dict]): The request object. ListClustersRequest lists clusters. @@ -509,6 +529,25 @@ def get_cluster( ) -> cluster_service.Cluster: r"""Gets the details of a specific cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetClusterRequest( + ) + + # Make the request + response = client.get_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetClusterRequest, dict]): The request object. GetClusterRequest gets the settings @@ -628,6 +667,26 @@ def create_cluster( Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_create_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CreateClusterRequest( + ) + + # Make the request + response = client.create_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.CreateClusterRequest, dict]): The request object. CreateClusterRequest creates a @@ -738,6 +797,25 @@ def update_cluster( ) -> cluster_service.Operation: r"""Updates the settings of a specific cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_update_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateClusterRequest( + ) + + # Make the request + response = client.update_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.UpdateClusterRequest, dict]): The request object. UpdateClusterRequest updates the @@ -855,6 +933,28 @@ def update_node_pool( r"""Updates the version and/or image type for the specified node pool. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_update_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateNodePoolRequest( + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = client.update_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.UpdateNodePoolRequest, dict]): The request object. UpdateNodePoolRequests update a node @@ -908,6 +1008,26 @@ def set_node_pool_autoscaling( r"""Sets the autoscaling settings for the specified node pool. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolAutoscalingRequest( + ) + + # Make the request + response = client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNodePoolAutoscalingRequest, dict]): The request object. SetNodePoolAutoscalingRequest sets @@ -967,6 +1087,26 @@ def set_logging_service( ) -> cluster_service.Operation: r"""Sets the logging service for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_logging_service(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLoggingServiceRequest( + logging_service="logging_service_value", + ) + + # Make the request + response = client.set_logging_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLoggingServiceRequest, dict]): The request object. SetLoggingServiceRequest sets the @@ -1102,6 +1242,26 @@ def set_monitoring_service( ) -> cluster_service.Operation: r"""Sets the monitoring service for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_monitoring_service(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMonitoringServiceRequest( + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = client.set_monitoring_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetMonitoringServiceRequest, dict]): The request object. SetMonitoringServiceRequest sets the @@ -1239,6 +1399,25 @@ def set_addons_config( ) -> cluster_service.Operation: r"""Sets the addons for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_addons_config(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetAddonsConfigRequest( + ) + + # Make the request + response = client.set_addons_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetAddonsConfigRequest, dict]): The request object. SetAddonsConfigRequest sets the @@ -1363,6 +1542,27 @@ def set_locations( `projects.locations.clusters.update `__ instead. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_locations(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLocationsRequest( + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = client.set_locations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLocationsRequest, dict]): The request object. SetLocationsRequest sets the @@ -1495,6 +1695,26 @@ def update_master( ) -> cluster_service.Operation: r"""Updates the master for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_update_master(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateMasterRequest( + master_version="master_version_value", + ) + + # Make the request + response = client.update_master(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.UpdateMasterRequest, dict]): The request object. UpdateMasterRequest updates the @@ -1626,6 +1846,27 @@ def set_master_auth( either via password generation or explicitly setting the password. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_master_auth(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMasterAuthRequest( + action="SET_USERNAME", + ) + + # Make the request + response = client.set_master_auth(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetMasterAuthRequest, dict]): The request object. SetMasterAuthRequest updates the @@ -1691,6 +1932,26 @@ def delete_cluster( not deleted if they weren't present when the cluster was initially created. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_delete_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.DeleteClusterRequest( + ) + + # Make the request + response = client.delete_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.DeleteClusterRequest, dict]): The request object. DeleteClusterRequest deletes a @@ -1801,6 +2062,26 @@ def list_operations( r"""Lists all operations in a project in a specific zone or all zones. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_operations(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListOperationsRequest( + ) + + # Make the request + response = client.list_operations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.ListOperationsRequest, dict]): The request object. ListOperationsRequest lists @@ -1890,6 +2171,25 @@ def get_operation( ) -> cluster_service.Operation: r"""Gets the specified operation. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_operation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetOperationRequest( + ) + + # Make the request + response = client.get_operation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetOperationRequest, dict]): The request object. GetOperationRequest gets a single @@ -2000,6 +2300,22 @@ def cancel_operation( ) -> None: r"""Cancels the specified operation. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_cancel_operation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CancelOperationRequest( + ) + + # Make the request + client.cancel_operation(request=request) + Args: request (Union[google.cloud.container_v1.types.CancelOperationRequest, dict]): The request object. CancelOperationRequest cancels a @@ -2101,6 +2417,26 @@ def get_server_config( r"""Returns configuration info about the Google Kubernetes Engine service. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_server_config(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetServerConfigRequest( + ) + + # Make the request + response = client.get_server_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetServerConfigRequest, dict]): The request object. Gets the current Kubernetes Engine @@ -2197,6 +2533,26 @@ def get_json_web_keys( This API is not yet intended for general use, and is not available for all clusters. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_json_web_keys(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetJSONWebKeysRequest( + ) + + # Make the request + response = client.get_json_web_keys(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetJSONWebKeysRequest, dict]): The request object. GetJSONWebKeysRequest gets the @@ -2255,6 +2611,25 @@ def list_node_pools( ) -> cluster_service.ListNodePoolsResponse: r"""Lists the node pools for a cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_node_pools(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListNodePoolsRequest( + ) + + # Make the request + response = client.list_node_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.ListNodePoolsRequest, dict]): The request object. ListNodePoolsRequest lists the node @@ -2364,6 +2739,25 @@ def get_node_pool( ) -> cluster_service.NodePool: r"""Retrieves the requested node pool. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_get_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetNodePoolRequest( + ) + + # Make the request + response = client.get_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.GetNodePoolRequest, dict]): The request object. GetNodePoolRequest retrieves a node @@ -2491,6 +2885,25 @@ def create_node_pool( ) -> cluster_service.Operation: r"""Creates a node pool for a cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_create_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CreateNodePoolRequest( + ) + + # Make the request + response = client.create_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.CreateNodePoolRequest, dict]): The request object. CreateNodePoolRequest creates a node @@ -2609,6 +3022,25 @@ def delete_node_pool( ) -> cluster_service.Operation: r"""Deletes a node pool from a cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_delete_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.DeleteNodePoolRequest( + ) + + # Make the request + response = client.delete_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.DeleteNodePoolRequest, dict]): The request object. DeleteNodePoolRequest deletes a node @@ -2733,6 +3165,26 @@ def rollback_node_pool_upgrade( upgrade. This makes no changes if the last upgrade successfully completed. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.RollbackNodePoolUpgradeRequest( + ) + + # Make the request + response = client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.RollbackNodePoolUpgradeRequest, dict]): The request object. RollbackNodePoolUpgradeRequest @@ -2856,6 +3308,25 @@ def set_node_pool_management( ) -> cluster_service.Operation: r"""Sets the NodeManagement options for a node pool. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_node_pool_management(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolManagementRequest( + ) + + # Make the request + response = client.set_node_pool_management(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNodePoolManagementRequest, dict]): The request object. SetNodePoolManagementRequest sets @@ -2908,6 +3379,26 @@ def set_labels( ) -> cluster_service.Operation: r"""Sets labels on a cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_labels(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLabelsRequest( + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLabelsRequest, dict]): The request object. SetLabelsRequest sets the Google @@ -2968,6 +3459,27 @@ def set_legacy_abac( r"""Enables or disables the ABAC authorization mechanism on a cluster. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_legacy_abac(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLegacyAbacRequest( + enabled=True, + ) + + # Make the request + response = client.set_legacy_abac(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetLegacyAbacRequest, dict]): The request object. SetLegacyAbacRequest enables or @@ -3088,6 +3600,25 @@ def start_ip_rotation( ) -> cluster_service.Operation: r"""Starts master IP rotation. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_start_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.StartIPRotationRequest( + ) + + # Make the request + response = client.start_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.StartIPRotationRequest, dict]): The request object. StartIPRotationRequest creates a new @@ -3199,6 +3730,25 @@ def complete_ip_rotation( ) -> cluster_service.Operation: r"""Completes master IP rotation. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_complete_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CompleteIPRotationRequest( + ) + + # Make the request + response = client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.CompleteIPRotationRequest, dict]): The request object. CompleteIPRotationRequest moves the @@ -3308,6 +3858,27 @@ def set_node_pool_size( modifying [NodePool.locations][google.container.v1.NodePool.locations]. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_node_pool_size(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolSizeRequest( + node_count=1070, + ) + + # Make the request + response = client.set_node_pool_size(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNodePoolSizeRequest, dict]): The request object. SetNodePoolSizeRequest sets the size @@ -3365,6 +3936,25 @@ def set_network_policy( ) -> cluster_service.Operation: r"""Enables or disables Network Policy for a cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_network_policy(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNetworkPolicyRequest( + ) + + # Make the request + response = client.set_network_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetNetworkPolicyRequest, dict]): The request object. SetNetworkPolicyRequest @@ -3485,6 +4075,28 @@ def set_maintenance_policy( ) -> cluster_service.Operation: r"""Sets the maintenance policy for a cluster. + + .. code-block:: + + from google.cloud import container_v1 + + def sample_set_maintenance_policy(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1.types.SetMaintenancePolicyRequest, dict]): The request object. SetMaintenancePolicyRequest sets the @@ -3600,6 +4212,27 @@ def list_usable_subnetworks( r"""Lists subnetworks that are usable for creating clusters in a project. + + + .. code-block:: + + from google.cloud import container_v1 + + def sample_list_usable_subnetworks(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListUsableSubnetworksRequest( + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.container_v1.types.ListUsableSubnetworksRequest, dict]): The request object. ListUsableSubnetworksRequest diff --git a/google/cloud/container_v1beta1/services/cluster_manager/async_client.py b/google/cloud/container_v1beta1/services/cluster_manager/async_client.py index 808eef54..19d5f281 100644 --- a/google/cloud/container_v1beta1/services/cluster_manager/async_client.py +++ b/google/cloud/container_v1beta1/services/cluster_manager/async_client.py @@ -217,6 +217,27 @@ async def list_clusters( r"""Lists all clusters owned by a project in either the specified zone or all zones. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_clusters(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListClustersRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.list_clusters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListClustersRequest, dict]): The request object. ListClustersRequest lists clusters. @@ -315,6 +336,27 @@ async def get_cluster( ) -> cluster_service.Cluster: r"""Gets the details for a specific cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.get_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetClusterRequest, dict]): The request object. GetClusterRequest gets the settings @@ -434,6 +476,27 @@ async def create_cluster( Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_create_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateClusterRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.create_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.CreateClusterRequest, dict]): The request object. CreateClusterRequest creates a @@ -534,6 +597,27 @@ async def update_cluster( ) -> cluster_service.Operation: r"""Updates the settings for a specific cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_update_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.update_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.UpdateClusterRequest, dict]): The request object. UpdateClusterRequest updates the @@ -642,6 +726,31 @@ async def update_node_pool( r"""Updates the version and/or image type of a specific node pool. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_update_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = client.update_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.UpdateNodePoolRequest, dict]): The request object. SetNodePoolVersionRequest updates @@ -694,6 +803,29 @@ async def set_node_pool_autoscaling( r"""Sets the autoscaling settings of a specific node pool. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolAutoscalingRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNodePoolAutoscalingRequest, dict]): The request object. SetNodePoolAutoscalingRequest sets @@ -749,6 +881,28 @@ async def set_logging_service( ) -> cluster_service.Operation: r"""Sets the logging service for a specific cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_logging_service(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLoggingServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + logging_service="logging_service_value", + ) + + # Make the request + response = client.set_logging_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLoggingServiceRequest, dict]): The request object. SetLoggingServiceRequest sets the @@ -872,6 +1026,28 @@ async def set_monitoring_service( ) -> cluster_service.Operation: r"""Sets the monitoring service for a specific cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_monitoring_service(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMonitoringServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = client.set_monitoring_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetMonitoringServiceRequest, dict]): The request object. SetMonitoringServiceRequest sets the @@ -997,6 +1173,27 @@ async def set_addons_config( ) -> cluster_service.Operation: r"""Sets the addons for a specific cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_addons_config(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetAddonsConfigRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_addons_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetAddonsConfigRequest, dict]): The request object. SetAddonsRequest sets the addons @@ -1111,6 +1308,29 @@ async def set_locations( `projects.locations.clusters.update `__ instead. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_locations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLocationsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = client.set_locations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLocationsRequest, dict]): The request object. SetLocationsRequest sets the @@ -1233,6 +1453,28 @@ async def update_master( ) -> cluster_service.Operation: r"""Updates the master for a specific cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_update_master(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateMasterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + master_version="master_version_value", + ) + + # Make the request + response = client.update_master(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.UpdateMasterRequest, dict]): The request object. UpdateMasterRequest updates the @@ -1355,6 +1597,29 @@ async def set_master_auth( either via password generation or explicitly setting the password. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_master_auth(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMasterAuthRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + action="SET_USERNAME", + ) + + # Make the request + response = client.set_master_auth(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetMasterAuthRequest, dict]): The request object. SetMasterAuthRequest updates the @@ -1418,6 +1683,28 @@ async def delete_cluster( not deleted if they weren't present when the cluster was initially created. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_delete_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.delete_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.DeleteClusterRequest, dict]): The request object. DeleteClusterRequest deletes a @@ -1529,6 +1816,27 @@ async def list_operations( r"""Lists all operations in a project in the specified zone or all zones. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_operations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListOperationsRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.list_operations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListOperationsRequest, dict]): The request object. ListOperationsRequest lists @@ -1628,6 +1936,27 @@ async def get_operation( ) -> cluster_service.Operation: r"""Gets the specified operation. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_operation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + response = client.get_operation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetOperationRequest, dict]): The request object. GetOperationRequest gets a single @@ -1738,6 +2067,24 @@ async def cancel_operation( ) -> None: r"""Cancels the specified operation. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_cancel_operation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CancelOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + client.cancel_operation(request=request) + Args: request (Union[google.cloud.container_v1beta1.types.CancelOperationRequest, dict]): The request object. CancelOperationRequest cancels a @@ -1829,6 +2176,27 @@ async def get_server_config( r"""Returns configuration info about the Google Kubernetes Engine service. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_server_config(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetServerConfigRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.get_server_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetServerConfigRequest, dict]): The request object. Gets the current Kubernetes Engine @@ -1927,6 +2295,27 @@ async def list_node_pools( ) -> cluster_service.ListNodePoolsResponse: r"""Lists the node pools for a cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_node_pools(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListNodePoolsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.list_node_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListNodePoolsRequest, dict]): The request object. ListNodePoolsRequest lists the node @@ -2035,6 +2424,25 @@ async def get_json_web_keys( This API is not yet intended for general use, and is not available for all clusters. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_json_web_keys(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetJSONWebKeysRequest( + ) + + # Make the request + response = client.get_json_web_keys(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetJSONWebKeysRequest, dict]): The request object. GetJSONWebKeysRequest gets the @@ -2092,6 +2500,28 @@ async def get_node_pool( ) -> cluster_service.NodePool: r"""Retrieves the requested node pool. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.get_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetNodePoolRequest, dict]): The request object. GetNodePoolRequest retrieves a node @@ -2253,6 +2683,27 @@ async def create_node_pool( ) -> cluster_service.Operation: r"""Creates a node pool for a cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_create_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.create_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.CreateNodePoolRequest, dict]): The request object. CreateNodePoolRequest creates a node @@ -2361,6 +2812,28 @@ async def delete_node_pool( ) -> cluster_service.Operation: r"""Deletes a node pool from a cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_delete_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.delete_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.DeleteNodePoolRequest, dict]): The request object. DeleteNodePoolRequest deletes a node @@ -2485,6 +2958,29 @@ async def rollback_node_pool_upgrade( upgrade. This makes no changes if the last upgrade successfully completed. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.RollbackNodePoolUpgradeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.RollbackNodePoolUpgradeRequest, dict]): The request object. RollbackNodePoolUpgradeRequest @@ -2601,6 +3097,28 @@ async def set_node_pool_management( ) -> cluster_service.Operation: r"""Sets the NodeManagement options for a node pool. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_node_pool_management(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolManagementRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.set_node_pool_management(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNodePoolManagementRequest, dict]): The request object. SetNodePoolManagementRequest sets @@ -2728,6 +3246,28 @@ async def set_labels( ) -> cluster_service.Operation: r"""Sets labels on a cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_labels(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLabelsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLabelsRequest, dict]): The request object. SetLabelsRequest sets the Google @@ -2859,6 +3399,29 @@ async def set_legacy_abac( r"""Enables or disables the ABAC authorization mechanism on a cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_legacy_abac(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLegacyAbacRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + enabled=True, + ) + + # Make the request + response = client.set_legacy_abac(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLegacyAbacRequest, dict]): The request object. SetLegacyAbacRequest enables or @@ -2969,6 +3532,27 @@ async def start_ip_rotation( ) -> cluster_service.Operation: r"""Starts master IP rotation. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_start_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.StartIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.start_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.StartIPRotationRequest, dict]): The request object. StartIPRotationRequest creates a new @@ -3070,6 +3654,27 @@ async def complete_ip_rotation( ) -> cluster_service.Operation: r"""Completes master IP rotation. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_complete_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CompleteIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.CompleteIPRotationRequest, dict]): The request object. CompleteIPRotationRequest moves the @@ -3170,6 +3775,30 @@ async def set_node_pool_size( created by modifying [NodePool.locations][google.container.v1beta1.NodePool.locations]. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_node_pool_size(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolSizeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_count=1070, + ) + + # Make the request + response = client.set_node_pool_size(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNodePoolSizeRequest, dict]): The request object. SetNodePoolSizeRequest sets the size @@ -3225,6 +3854,27 @@ async def set_network_policy( ) -> cluster_service.Operation: r"""Enables or disables Network Policy for a cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_network_policy(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNetworkPolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_network_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNetworkPolicyRequest, dict]): The request object. SetNetworkPolicyRequest @@ -3335,6 +3985,27 @@ async def set_maintenance_policy( ) -> cluster_service.Operation: r"""Sets the maintenance policy for a cluster. + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_maintenance_policy(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetMaintenancePolicyRequest, dict]): The request object. SetMaintenancePolicyRequest sets the @@ -3439,6 +4110,27 @@ async def list_usable_subnetworks( r"""Lists subnetworks that can be used for creating clusters in a project. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_usable_subnetworks(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListUsableSubnetworksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListUsableSubnetworksRequest, dict]): The request object. ListUsableSubnetworksRequest @@ -3533,6 +4225,26 @@ async def list_locations( r"""Fetches locations that offer Google Kubernetes Engine. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_locations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListLocationsRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_locations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListLocationsRequest, dict]): The request object. ListLocationsRequest is used to diff --git a/google/cloud/container_v1beta1/services/cluster_manager/client.py b/google/cloud/container_v1beta1/services/cluster_manager/client.py index 5a469ca9..27ab7c38 100644 --- a/google/cloud/container_v1beta1/services/cluster_manager/client.py +++ b/google/cloud/container_v1beta1/services/cluster_manager/client.py @@ -409,6 +409,28 @@ def list_clusters( r"""Lists all clusters owned by a project in either the specified zone or all zones. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_clusters(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListClustersRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.list_clusters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListClustersRequest, dict]): The request object. ListClustersRequest lists clusters. @@ -497,6 +519,28 @@ def get_cluster( ) -> cluster_service.Cluster: r"""Gets the details for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.get_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetClusterRequest, dict]): The request object. GetClusterRequest gets the settings @@ -606,6 +650,28 @@ def create_cluster( Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_create_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateClusterRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.create_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.CreateClusterRequest, dict]): The request object. CreateClusterRequest creates a @@ -706,6 +772,28 @@ def update_cluster( ) -> cluster_service.Operation: r"""Updates the settings for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_update_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.update_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.UpdateClusterRequest, dict]): The request object. UpdateClusterRequest updates the @@ -814,6 +902,32 @@ def update_node_pool( r"""Updates the version and/or image type of a specific node pool. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_update_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = client.update_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.UpdateNodePoolRequest, dict]): The request object. SetNodePoolVersionRequest updates @@ -867,6 +981,30 @@ def set_node_pool_autoscaling( r"""Sets the autoscaling settings of a specific node pool. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolAutoscalingRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNodePoolAutoscalingRequest, dict]): The request object. SetNodePoolAutoscalingRequest sets @@ -925,6 +1063,29 @@ def set_logging_service( ) -> cluster_service.Operation: r"""Sets the logging service for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_logging_service(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLoggingServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + logging_service="logging_service_value", + ) + + # Make the request + response = client.set_logging_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLoggingServiceRequest, dict]): The request object. SetLoggingServiceRequest sets the @@ -1048,6 +1209,29 @@ def set_monitoring_service( ) -> cluster_service.Operation: r"""Sets the monitoring service for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_monitoring_service(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMonitoringServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = client.set_monitoring_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetMonitoringServiceRequest, dict]): The request object. SetMonitoringServiceRequest sets the @@ -1173,6 +1357,28 @@ def set_addons_config( ) -> cluster_service.Operation: r"""Sets the addons for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_addons_config(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetAddonsConfigRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_addons_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetAddonsConfigRequest, dict]): The request object. SetAddonsRequest sets the addons @@ -1287,6 +1493,30 @@ def set_locations( `projects.locations.clusters.update `__ instead. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_locations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLocationsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = client.set_locations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLocationsRequest, dict]): The request object. SetLocationsRequest sets the @@ -1409,6 +1639,29 @@ def update_master( ) -> cluster_service.Operation: r"""Updates the master for a specific cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_update_master(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateMasterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + master_version="master_version_value", + ) + + # Make the request + response = client.update_master(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.UpdateMasterRequest, dict]): The request object. UpdateMasterRequest updates the @@ -1531,6 +1784,30 @@ def set_master_auth( either via password generation or explicitly setting the password. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_master_auth(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMasterAuthRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + action="SET_USERNAME", + ) + + # Make the request + response = client.set_master_auth(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetMasterAuthRequest, dict]): The request object. SetMasterAuthRequest updates the @@ -1595,6 +1872,29 @@ def delete_cluster( not deleted if they weren't present when the cluster was initially created. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_delete_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.delete_cluster(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.DeleteClusterRequest, dict]): The request object. DeleteClusterRequest deletes a @@ -1696,6 +1996,28 @@ def list_operations( r"""Lists all operations in a project in the specified zone or all zones. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_operations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListOperationsRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.list_operations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListOperationsRequest, dict]): The request object. ListOperationsRequest lists @@ -1785,6 +2107,28 @@ def get_operation( ) -> cluster_service.Operation: r"""Gets the specified operation. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_operation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + response = client.get_operation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetOperationRequest, dict]): The request object. GetOperationRequest gets a single @@ -1885,6 +2229,25 @@ def cancel_operation( ) -> None: r"""Cancels the specified operation. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_cancel_operation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CancelOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + client.cancel_operation(request=request) + Args: request (Union[google.cloud.container_v1beta1.types.CancelOperationRequest, dict]): The request object. CancelOperationRequest cancels a @@ -1976,6 +2339,28 @@ def get_server_config( r"""Returns configuration info about the Google Kubernetes Engine service. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_server_config(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetServerConfigRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.get_server_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetServerConfigRequest, dict]): The request object. Gets the current Kubernetes Engine @@ -2064,6 +2449,28 @@ def list_node_pools( ) -> cluster_service.ListNodePoolsResponse: r"""Lists the node pools for a cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_node_pools(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListNodePoolsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.list_node_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListNodePoolsRequest, dict]): The request object. ListNodePoolsRequest lists the node @@ -2162,6 +2569,26 @@ def get_json_web_keys( This API is not yet intended for general use, and is not available for all clusters. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_json_web_keys(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetJSONWebKeysRequest( + ) + + # Make the request + response = client.get_json_web_keys(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetJSONWebKeysRequest, dict]): The request object. GetJSONWebKeysRequest gets the @@ -2220,6 +2647,29 @@ def get_node_pool( ) -> cluster_service.NodePool: r"""Retrieves the requested node pool. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_get_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.get_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.GetNodePoolRequest, dict]): The request object. GetNodePoolRequest retrieves a node @@ -2371,6 +2821,28 @@ def create_node_pool( ) -> cluster_service.Operation: r"""Creates a node pool for a cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_create_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.create_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.CreateNodePoolRequest, dict]): The request object. CreateNodePoolRequest creates a node @@ -2479,6 +2951,29 @@ def delete_node_pool( ) -> cluster_service.Operation: r"""Deletes a node pool from a cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_delete_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.delete_node_pool(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.DeleteNodePoolRequest, dict]): The request object. DeleteNodePoolRequest deletes a node @@ -2593,6 +3088,30 @@ def rollback_node_pool_upgrade( upgrade. This makes no changes if the last upgrade successfully completed. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.RollbackNodePoolUpgradeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.RollbackNodePoolUpgradeRequest, dict]): The request object. RollbackNodePoolUpgradeRequest @@ -2711,6 +3230,29 @@ def set_node_pool_management( ) -> cluster_service.Operation: r"""Sets the NodeManagement options for a node pool. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_node_pool_management(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolManagementRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.set_node_pool_management(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNodePoolManagementRequest, dict]): The request object. SetNodePoolManagementRequest sets @@ -2838,6 +3380,29 @@ def set_labels( ) -> cluster_service.Operation: r"""Sets labels on a cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_labels(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLabelsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLabelsRequest, dict]): The request object. SetLabelsRequest sets the Google @@ -2968,6 +3533,30 @@ def set_legacy_abac( r"""Enables or disables the ABAC authorization mechanism on a cluster. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_legacy_abac(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLegacyAbacRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + enabled=True, + ) + + # Make the request + response = client.set_legacy_abac(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetLegacyAbacRequest, dict]): The request object. SetLegacyAbacRequest enables or @@ -3078,6 +3667,28 @@ def start_ip_rotation( ) -> cluster_service.Operation: r"""Starts master IP rotation. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_start_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.StartIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.start_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.StartIPRotationRequest, dict]): The request object. StartIPRotationRequest creates a new @@ -3179,6 +3790,28 @@ def complete_ip_rotation( ) -> cluster_service.Operation: r"""Completes master IP rotation. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_complete_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CompleteIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.CompleteIPRotationRequest, dict]): The request object. CompleteIPRotationRequest moves the @@ -3279,6 +3912,31 @@ def set_node_pool_size( created by modifying [NodePool.locations][google.container.v1beta1.NodePool.locations]. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_node_pool_size(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolSizeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_count=1070, + ) + + # Make the request + response = client.set_node_pool_size(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNodePoolSizeRequest, dict]): The request object. SetNodePoolSizeRequest sets the size @@ -3335,6 +3993,28 @@ def set_network_policy( ) -> cluster_service.Operation: r"""Enables or disables Network Policy for a cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_network_policy(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNetworkPolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_network_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetNetworkPolicyRequest, dict]): The request object. SetNetworkPolicyRequest @@ -3445,6 +4125,28 @@ def set_maintenance_policy( ) -> cluster_service.Operation: r"""Sets the maintenance policy for a cluster. + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_set_maintenance_policy(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.SetMaintenancePolicyRequest, dict]): The request object. SetMaintenancePolicyRequest sets the @@ -3549,6 +4251,28 @@ def list_usable_subnetworks( r"""Lists subnetworks that can be used for creating clusters in a project. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_usable_subnetworks(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListUsableSubnetworksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListUsableSubnetworksRequest, dict]): The request object. ListUsableSubnetworksRequest @@ -3633,6 +4357,27 @@ def list_locations( r"""Fetches locations that offer Google Kubernetes Engine. + + + .. code-block:: + + from google.cloud import container_v1beta1 + + def sample_list_locations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListLocationsRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_locations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.container_v1beta1.types.ListLocationsRequest, dict]): The request object. ListLocationsRequest is used to diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_async.py new file mode 100644 index 00000000..f3b5b35c --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_async.py @@ -0,0 +1,42 @@ +# -*- 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 CancelOperation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CancelOperation_async] +from google.cloud import container_v1 + + +async def sample_cancel_operation(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.CancelOperationRequest( + ) + + # Make the request + await client.cancel_operation(request=request) + + +# [END container_generated_container_v1_ClusterManager_CancelOperation_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_sync.py new file mode 100644 index 00000000..5605d931 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_cancel_operation_sync.py @@ -0,0 +1,42 @@ +# -*- 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 CancelOperation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CancelOperation_sync] +from google.cloud import container_v1 + + +def sample_cancel_operation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CancelOperationRequest( + ) + + # Make the request + client.cancel_operation(request=request) + + +# [END container_generated_container_v1_ClusterManager_CancelOperation_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_async.py new file mode 100644 index 00000000..658746bb --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_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 CompleteIPRotation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CompleteIPRotation_async] +from google.cloud import container_v1 + + +async def sample_complete_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.CompleteIPRotationRequest( + ) + + # Make the request + response = await client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_CompleteIPRotation_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_sync.py new file mode 100644 index 00000000..a99af3c2 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_complete_ip_rotation_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 CompleteIPRotation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CompleteIPRotation_sync] +from google.cloud import container_v1 + + +def sample_complete_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CompleteIPRotationRequest( + ) + + # Make the request + response = client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_CompleteIPRotation_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_async.py new file mode 100644 index 00000000..b7bffa86 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_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 CreateCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CreateCluster_async] +from google.cloud import container_v1 + + +async def sample_create_cluster(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.CreateClusterRequest( + ) + + # Make the request + response = await client.create_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_CreateCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_sync.py new file mode 100644 index 00000000..3728b2db --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_cluster_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 CreateCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CreateCluster_sync] +from google.cloud import container_v1 + + +def sample_create_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CreateClusterRequest( + ) + + # Make the request + response = client.create_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_CreateCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_async.py new file mode 100644 index 00000000..8ba2d744 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_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 CreateNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CreateNodePool_async] +from google.cloud import container_v1 + + +async def sample_create_node_pool(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.CreateNodePoolRequest( + ) + + # Make the request + response = await client.create_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_CreateNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_sync.py new file mode 100644 index 00000000..780d1bfb --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_create_node_pool_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 CreateNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_CreateNodePool_sync] +from google.cloud import container_v1 + + +def sample_create_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.CreateNodePoolRequest( + ) + + # Make the request + response = client.create_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_CreateNodePool_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_async.py new file mode 100644 index 00000000..f2841b19 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_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 DeleteCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_DeleteCluster_async] +from google.cloud import container_v1 + + +async def sample_delete_cluster(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.DeleteClusterRequest( + ) + + # Make the request + response = await client.delete_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_DeleteCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_sync.py new file mode 100644 index 00000000..5df7abd1 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_cluster_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 DeleteCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_DeleteCluster_sync] +from google.cloud import container_v1 + + +def sample_delete_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.DeleteClusterRequest( + ) + + # Make the request + response = client.delete_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_DeleteCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_async.py new file mode 100644 index 00000000..2768e784 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_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 DeleteNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_DeleteNodePool_async] +from google.cloud import container_v1 + + +async def sample_delete_node_pool(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.DeleteNodePoolRequest( + ) + + # Make the request + response = await client.delete_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_DeleteNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_sync.py new file mode 100644 index 00000000..a9e7e68c --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_delete_node_pool_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 DeleteNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_DeleteNodePool_sync] +from google.cloud import container_v1 + + +def sample_delete_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.DeleteNodePoolRequest( + ) + + # Make the request + response = client.delete_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_DeleteNodePool_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_async.py new file mode 100644 index 00000000..f7d0fcc6 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_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 GetCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetCluster_async] +from google.cloud import container_v1 + + +async def sample_get_cluster(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.GetClusterRequest( + ) + + # Make the request + response = await client.get_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_sync.py new file mode 100644 index 00000000..ae8dceae --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_cluster_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 GetCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetCluster_sync] +from google.cloud import container_v1 + + +def sample_get_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetClusterRequest( + ) + + # Make the request + response = client.get_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_async.py new file mode 100644 index 00000000..b71b1d32 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_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 GetJSONWebKeys +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetJSONWebKeys_async] +from google.cloud import container_v1 + + +async def sample_get_json_web_keys(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.GetJSONWebKeysRequest( + ) + + # Make the request + response = await client.get_json_web_keys(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetJSONWebKeys_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_sync.py new file mode 100644 index 00000000..35214f19 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_json_web_keys_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 GetJSONWebKeys +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetJSONWebKeys_sync] +from google.cloud import container_v1 + + +def sample_get_json_web_keys(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetJSONWebKeysRequest( + ) + + # Make the request + response = client.get_json_web_keys(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetJSONWebKeys_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_async.py new file mode 100644 index 00000000..ce8f1a35 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_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 GetNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetNodePool_async] +from google.cloud import container_v1 + + +async def sample_get_node_pool(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.GetNodePoolRequest( + ) + + # Make the request + response = await client.get_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_sync.py new file mode 100644 index 00000000..40929e9d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_node_pool_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 GetNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetNodePool_sync] +from google.cloud import container_v1 + + +def sample_get_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetNodePoolRequest( + ) + + # Make the request + response = client.get_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetNodePool_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_async.py new file mode 100644 index 00000000..490e85e2 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_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 GetOperation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetOperation_async] +from google.cloud import container_v1 + + +async def sample_get_operation(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.GetOperationRequest( + ) + + # Make the request + response = await client.get_operation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetOperation_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_sync.py new file mode 100644 index 00000000..aa03ada2 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_operation_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 GetOperation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetOperation_sync] +from google.cloud import container_v1 + + +def sample_get_operation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetOperationRequest( + ) + + # Make the request + response = client.get_operation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetOperation_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_async.py new file mode 100644 index 00000000..f6219923 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_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 GetServerConfig +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetServerConfig_async] +from google.cloud import container_v1 + + +async def sample_get_server_config(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.GetServerConfigRequest( + ) + + # Make the request + response = await client.get_server_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetServerConfig_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_sync.py new file mode 100644 index 00000000..d8ca2c13 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_get_server_config_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 GetServerConfig +# 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-container + + +# [START container_generated_container_v1_ClusterManager_GetServerConfig_sync] +from google.cloud import container_v1 + + +def sample_get_server_config(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.GetServerConfigRequest( + ) + + # Make the request + response = client.get_server_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_GetServerConfig_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_async.py new file mode 100644 index 00000000..4b0df521 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_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 ListClusters +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListClusters_async] +from google.cloud import container_v1 + + +async def sample_list_clusters(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.ListClustersRequest( + ) + + # Make the request + response = await client.list_clusters(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_ListClusters_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_sync.py new file mode 100644 index 00000000..fa9ae13d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_clusters_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 ListClusters +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListClusters_sync] +from google.cloud import container_v1 + + +def sample_list_clusters(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListClustersRequest( + ) + + # Make the request + response = client.list_clusters(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_ListClusters_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_async.py new file mode 100644 index 00000000..1b397ba6 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_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 ListNodePools +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListNodePools_async] +from google.cloud import container_v1 + + +async def sample_list_node_pools(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.ListNodePoolsRequest( + ) + + # Make the request + response = await client.list_node_pools(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_ListNodePools_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_sync.py new file mode 100644 index 00000000..73594ba9 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_node_pools_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 ListNodePools +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListNodePools_sync] +from google.cloud import container_v1 + + +def sample_list_node_pools(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListNodePoolsRequest( + ) + + # Make the request + response = client.list_node_pools(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_ListNodePools_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_async.py new file mode 100644 index 00000000..ba12ddac --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_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 ListOperations +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListOperations_async] +from google.cloud import container_v1 + + +async def sample_list_operations(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.ListOperationsRequest( + ) + + # Make the request + response = await client.list_operations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_ListOperations_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_sync.py new file mode 100644 index 00000000..aa2a6eee --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_operations_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 ListOperations +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListOperations_sync] +from google.cloud import container_v1 + + +def sample_list_operations(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListOperationsRequest( + ) + + # Make the request + response = client.list_operations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_ListOperations_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_async.py new file mode 100644 index 00000000..59eae57b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_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 ListUsableSubnetworks +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListUsableSubnetworks_async] +from google.cloud import container_v1 + + +async def sample_list_usable_subnetworks(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.ListUsableSubnetworksRequest( + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END container_generated_container_v1_ClusterManager_ListUsableSubnetworks_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_sync.py new file mode 100644 index 00000000..f1dbd54e --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_list_usable_subnetworks_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 ListUsableSubnetworks +# 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-container + + +# [START container_generated_container_v1_ClusterManager_ListUsableSubnetworks_sync] +from google.cloud import container_v1 + + +def sample_list_usable_subnetworks(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.ListUsableSubnetworksRequest( + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END container_generated_container_v1_ClusterManager_ListUsableSubnetworks_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_async.py new file mode 100644 index 00000000..78d57c5f --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_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 RollbackNodePoolUpgrade +# 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-container + + +# [START container_generated_container_v1_ClusterManager_RollbackNodePoolUpgrade_async] +from google.cloud import container_v1 + + +async def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.RollbackNodePoolUpgradeRequest( + ) + + # Make the request + response = await client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_RollbackNodePoolUpgrade_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_sync.py new file mode 100644 index 00000000..c742a5c4 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_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 RollbackNodePoolUpgrade +# 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-container + + +# [START container_generated_container_v1_ClusterManager_RollbackNodePoolUpgrade_sync] +from google.cloud import container_v1 + + +def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.RollbackNodePoolUpgradeRequest( + ) + + # Make the request + response = client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_async.py new file mode 100644 index 00000000..57d7bf8d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_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 SetAddonsConfig +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetAddonsConfig_async] +from google.cloud import container_v1 + + +async def sample_set_addons_config(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetAddonsConfigRequest( + ) + + # Make the request + response = await client.set_addons_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetAddonsConfig_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_sync.py new file mode 100644 index 00000000..6cfecbd5 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_addons_config_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 SetAddonsConfig +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetAddonsConfig_sync] +from google.cloud import container_v1 + + +def sample_set_addons_config(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetAddonsConfigRequest( + ) + + # Make the request + response = client.set_addons_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetAddonsConfig_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_async.py new file mode 100644 index 00000000..3e56be6e --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_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 SetLabels +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLabels_async] +from google.cloud import container_v1 + + +async def sample_set_labels(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetLabelsRequest( + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = await client.set_labels(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLabels_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_sync.py new file mode 100644 index 00000000..9936b4b7 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_labels_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 SetLabels +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLabels_sync] +from google.cloud import container_v1 + + +def sample_set_labels(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLabelsRequest( + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLabels_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_async.py new file mode 100644 index 00000000..30f3db0b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_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 SetLegacyAbac +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLegacyAbac_async] +from google.cloud import container_v1 + + +async def sample_set_legacy_abac(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetLegacyAbacRequest( + enabled=True, + ) + + # Make the request + response = await client.set_legacy_abac(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLegacyAbac_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_sync.py new file mode 100644 index 00000000..aba31f76 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_legacy_abac_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 SetLegacyAbac +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLegacyAbac_sync] +from google.cloud import container_v1 + + +def sample_set_legacy_abac(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLegacyAbacRequest( + enabled=True, + ) + + # Make the request + response = client.set_legacy_abac(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLegacyAbac_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_async.py new file mode 100644 index 00000000..31dd81f1 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_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 SetLocations +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLocations_async] +from google.cloud import container_v1 + + +async def sample_set_locations(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetLocationsRequest( + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = await client.set_locations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLocations_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_sync.py new file mode 100644 index 00000000..6dabaa9d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_locations_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 SetLocations +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLocations_sync] +from google.cloud import container_v1 + + +def sample_set_locations(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLocationsRequest( + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = client.set_locations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLocations_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_async.py new file mode 100644 index 00000000..45217a1d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_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 SetLoggingService +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLoggingService_async] +from google.cloud import container_v1 + + +async def sample_set_logging_service(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetLoggingServiceRequest( + logging_service="logging_service_value", + ) + + # Make the request + response = await client.set_logging_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLoggingService_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_sync.py new file mode 100644 index 00000000..879284f3 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_logging_service_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 SetLoggingService +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetLoggingService_sync] +from google.cloud import container_v1 + + +def sample_set_logging_service(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetLoggingServiceRequest( + logging_service="logging_service_value", + ) + + # Make the request + response = client.set_logging_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetLoggingService_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_async.py new file mode 100644 index 00000000..6dcccab7 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_async.py @@ -0,0 +1,47 @@ +# -*- 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 SetMaintenancePolicy +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetMaintenancePolicy_async] +from google.cloud import container_v1 + + +async def sample_set_maintenance_policy(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetMaintenancePolicy_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_sync.py new file mode 100644 index 00000000..ec2fbbb4 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_maintenance_policy_sync.py @@ -0,0 +1,47 @@ +# -*- 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 SetMaintenancePolicy +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetMaintenancePolicy_sync] +from google.cloud import container_v1 + + +def sample_set_maintenance_policy(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetMaintenancePolicy_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_async.py new file mode 100644 index 00000000..acf7eee9 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_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 SetMasterAuth +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetMasterAuth_async] +from google.cloud import container_v1 + + +async def sample_set_master_auth(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetMasterAuthRequest( + action="SET_USERNAME", + ) + + # Make the request + response = await client.set_master_auth(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetMasterAuth_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_sync.py new file mode 100644 index 00000000..52eea6d4 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_master_auth_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 SetMasterAuth +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetMasterAuth_sync] +from google.cloud import container_v1 + + +def sample_set_master_auth(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMasterAuthRequest( + action="SET_USERNAME", + ) + + # Make the request + response = client.set_master_auth(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetMasterAuth_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_async.py new file mode 100644 index 00000000..681384d8 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_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 SetMonitoringService +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetMonitoringService_async] +from google.cloud import container_v1 + + +async def sample_set_monitoring_service(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetMonitoringServiceRequest( + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = await client.set_monitoring_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetMonitoringService_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_sync.py new file mode 100644 index 00000000..52710dec --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_monitoring_service_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 SetMonitoringService +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetMonitoringService_sync] +from google.cloud import container_v1 + + +def sample_set_monitoring_service(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetMonitoringServiceRequest( + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = client.set_monitoring_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetMonitoringService_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_async.py new file mode 100644 index 00000000..d79a1198 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_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 SetNetworkPolicy +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNetworkPolicy_async] +from google.cloud import container_v1 + + +async def sample_set_network_policy(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetNetworkPolicyRequest( + ) + + # Make the request + response = await client.set_network_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNetworkPolicy_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_sync.py new file mode 100644 index 00000000..78f644bd --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_network_policy_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 SetNetworkPolicy +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNetworkPolicy_sync] +from google.cloud import container_v1 + + +def sample_set_network_policy(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNetworkPolicyRequest( + ) + + # Make the request + response = client.set_network_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNetworkPolicy_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_async.py new file mode 100644 index 00000000..188f2140 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_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 SetNodePoolAutoscaling +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNodePoolAutoscaling_async] +from google.cloud import container_v1 + + +async def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolAutoscalingRequest( + ) + + # Make the request + response = await client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNodePoolAutoscaling_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_sync.py new file mode 100644 index 00000000..b7209336 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_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 SetNodePoolAutoscaling +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNodePoolAutoscaling_sync] +from google.cloud import container_v1 + + +def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolAutoscalingRequest( + ) + + # Make the request + response = client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_async.py new file mode 100644 index 00000000..1824ff99 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_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 SetNodePoolManagement +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNodePoolManagement_async] +from google.cloud import container_v1 + + +async def sample_set_node_pool_management(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolManagementRequest( + ) + + # Make the request + response = await client.set_node_pool_management(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNodePoolManagement_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_sync.py new file mode 100644 index 00000000..38fb46c4 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_management_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 SetNodePoolManagement +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNodePoolManagement_sync] +from google.cloud import container_v1 + + +def sample_set_node_pool_management(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolManagementRequest( + ) + + # Make the request + response = client.set_node_pool_management(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNodePoolManagement_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_async.py new file mode 100644 index 00000000..74f96c60 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_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 SetNodePoolSize +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNodePoolSize_async] +from google.cloud import container_v1 + + +async def sample_set_node_pool_size(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolSizeRequest( + node_count=1070, + ) + + # Make the request + response = await client.set_node_pool_size(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNodePoolSize_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_sync.py new file mode 100644 index 00000000..31ee7e2b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_set_node_pool_size_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 SetNodePoolSize +# 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-container + + +# [START container_generated_container_v1_ClusterManager_SetNodePoolSize_sync] +from google.cloud import container_v1 + + +def sample_set_node_pool_size(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.SetNodePoolSizeRequest( + node_count=1070, + ) + + # Make the request + response = client.set_node_pool_size(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_SetNodePoolSize_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_async.py new file mode 100644 index 00000000..a125414c --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_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 StartIPRotation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_StartIPRotation_async] +from google.cloud import container_v1 + + +async def sample_start_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.StartIPRotationRequest( + ) + + # Make the request + response = await client.start_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_StartIPRotation_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_sync.py new file mode 100644 index 00000000..c6596ae8 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_start_ip_rotation_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 StartIPRotation +# 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-container + + +# [START container_generated_container_v1_ClusterManager_StartIPRotation_sync] +from google.cloud import container_v1 + + +def sample_start_ip_rotation(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.StartIPRotationRequest( + ) + + # Make the request + response = client.start_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_StartIPRotation_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_async.py new file mode 100644 index 00000000..58cb1e5d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_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 UpdateCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_UpdateCluster_async] +from google.cloud import container_v1 + + +async def sample_update_cluster(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.UpdateClusterRequest( + ) + + # Make the request + response = await client.update_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_UpdateCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_sync.py new file mode 100644 index 00000000..fcb8b56d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_cluster_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 UpdateCluster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_UpdateCluster_sync] +from google.cloud import container_v1 + + +def sample_update_cluster(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateClusterRequest( + ) + + # Make the request + response = client.update_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_UpdateCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_async.py new file mode 100644 index 00000000..0a0e357a --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_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 UpdateMaster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_UpdateMaster_async] +from google.cloud import container_v1 + + +async def sample_update_master(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.UpdateMasterRequest( + master_version="master_version_value", + ) + + # Make the request + response = await client.update_master(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_UpdateMaster_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_sync.py new file mode 100644 index 00000000..de88d6d2 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_master_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 UpdateMaster +# 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-container + + +# [START container_generated_container_v1_ClusterManager_UpdateMaster_sync] +from google.cloud import container_v1 + + +def sample_update_master(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateMasterRequest( + master_version="master_version_value", + ) + + # Make the request + response = client.update_master(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_UpdateMaster_sync] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_async.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_async.py new file mode 100644 index 00000000..f92003e8 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_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 UpdateNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_UpdateNodePool_async] +from google.cloud import container_v1 + + +async def sample_update_node_pool(): + # Create a client + client = container_v1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1.UpdateNodePoolRequest( + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = await client.update_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_UpdateNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_sync.py new file mode 100644 index 00000000..83e72b2b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1_cluster_manager_update_node_pool_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 UpdateNodePool +# 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-container + + +# [START container_generated_container_v1_ClusterManager_UpdateNodePool_sync] +from google.cloud import container_v1 + + +def sample_update_node_pool(): + # Create a client + client = container_v1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1.UpdateNodePoolRequest( + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = client.update_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1_ClusterManager_UpdateNodePool_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_async.py new file mode 100644 index 00000000..5e148cfe --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_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 CancelOperation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CancelOperation_async] +from google.cloud import container_v1beta1 + + +async def sample_cancel_operation(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.CancelOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + await client.cancel_operation(request=request) + + +# [END container_generated_container_v1beta1_ClusterManager_CancelOperation_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_sync.py new file mode 100644 index 00000000..6bfc9a03 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_cancel_operation_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 CancelOperation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CancelOperation_sync] +from google.cloud import container_v1beta1 + + +def sample_cancel_operation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CancelOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + client.cancel_operation(request=request) + + +# [END container_generated_container_v1beta1_ClusterManager_CancelOperation_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_async.py new file mode 100644 index 00000000..3e5cf39b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_async.py @@ -0,0 +1,47 @@ +# -*- 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 CompleteIPRotation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CompleteIPRotation_async] +from google.cloud import container_v1beta1 + + +async def sample_complete_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.CompleteIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_CompleteIPRotation_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_sync.py new file mode 100644 index 00000000..2a8ac4c6 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_sync.py @@ -0,0 +1,47 @@ +# -*- 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 CompleteIPRotation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CompleteIPRotation_sync] +from google.cloud import container_v1beta1 + + +def sample_complete_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CompleteIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.complete_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_CompleteIPRotation_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_async.py new file mode 100644 index 00000000..bd395b57 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_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 CreateCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CreateCluster_async] +from google.cloud import container_v1beta1 + + +async def sample_create_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateClusterRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = await client.create_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_CreateCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_sync.py new file mode 100644 index 00000000..4d7929ce --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_cluster_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 CreateCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CreateCluster_sync] +from google.cloud import container_v1beta1 + + +def sample_create_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateClusterRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.create_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_CreateCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_async.py new file mode 100644 index 00000000..d21f197a --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_async.py @@ -0,0 +1,47 @@ +# -*- 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 CreateNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CreateNodePool_async] +from google.cloud import container_v1beta1 + + +async def sample_create_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.create_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_CreateNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_sync.py new file mode 100644 index 00000000..4a3dad10 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_create_node_pool_sync.py @@ -0,0 +1,47 @@ +# -*- 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 CreateNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_CreateNodePool_sync] +from google.cloud import container_v1beta1 + + +def sample_create_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.CreateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.create_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_CreateNodePool_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_async.py new file mode 100644 index 00000000..0796bc5b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_async.py @@ -0,0 +1,47 @@ +# -*- 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 DeleteCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_DeleteCluster_async] +from google.cloud import container_v1beta1 + + +async def sample_delete_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.delete_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_DeleteCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_sync.py new file mode 100644 index 00000000..3ebbd6b9 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_cluster_sync.py @@ -0,0 +1,47 @@ +# -*- 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 DeleteCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_DeleteCluster_sync] +from google.cloud import container_v1beta1 + + +def sample_delete_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.delete_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_DeleteCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_async.py new file mode 100644 index 00000000..54b9af26 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_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 DeleteNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_DeleteNodePool_async] +from google.cloud import container_v1beta1 + + +async def sample_delete_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = await client.delete_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_DeleteNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_sync.py new file mode 100644 index 00000000..d8647989 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_delete_node_pool_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 DeleteNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_DeleteNodePool_sync] +from google.cloud import container_v1beta1 + + +def sample_delete_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.DeleteNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.delete_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_DeleteNodePool_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_async.py new file mode 100644 index 00000000..e9ab5406 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_async.py @@ -0,0 +1,47 @@ +# -*- 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 GetCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetCluster_async] +from google.cloud import container_v1beta1 + + +async def sample_get_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.GetClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.get_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_sync.py new file mode 100644 index 00000000..eee9bdb9 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_cluster_sync.py @@ -0,0 +1,47 @@ +# -*- 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 GetCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetCluster_sync] +from google.cloud import container_v1beta1 + + +def sample_get_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.get_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_async.py new file mode 100644 index 00000000..0e84ba85 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_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 GetJSONWebKeys +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetJSONWebKeys_async] +from google.cloud import container_v1beta1 + + +async def sample_get_json_web_keys(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.GetJSONWebKeysRequest( + ) + + # Make the request + response = await client.get_json_web_keys(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetJSONWebKeys_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_sync.py new file mode 100644 index 00000000..ddadcd80 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_json_web_keys_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 GetJSONWebKeys +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetJSONWebKeys_sync] +from google.cloud import container_v1beta1 + + +def sample_get_json_web_keys(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetJSONWebKeysRequest( + ) + + # Make the request + response = client.get_json_web_keys(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetJSONWebKeys_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_async.py new file mode 100644 index 00000000..dc9fd78f --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_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 GetNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetNodePool_async] +from google.cloud import container_v1beta1 + + +async def sample_get_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.GetNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = await client.get_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_sync.py new file mode 100644 index 00000000..8ae29676 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_node_pool_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 GetNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetNodePool_sync] +from google.cloud import container_v1beta1 + + +def sample_get_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.get_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetNodePool_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_async.py new file mode 100644 index 00000000..73bfc39b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_async.py @@ -0,0 +1,47 @@ +# -*- 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 GetOperation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetOperation_async] +from google.cloud import container_v1beta1 + + +async def sample_get_operation(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.GetOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + response = await client.get_operation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetOperation_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_sync.py new file mode 100644 index 00000000..8e6329b6 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_operation_sync.py @@ -0,0 +1,47 @@ +# -*- 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 GetOperation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetOperation_sync] +from google.cloud import container_v1beta1 + + +def sample_get_operation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetOperationRequest( + project_id="project_id_value", + zone="zone_value", + operation_id="operation_id_value", + ) + + # Make the request + response = client.get_operation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetOperation_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_async.py new file mode 100644 index 00000000..a078d7bc --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_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 GetServerConfig +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetServerConfig_async] +from google.cloud import container_v1beta1 + + +async def sample_get_server_config(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.GetServerConfigRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = await client.get_server_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetServerConfig_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_sync.py new file mode 100644 index 00000000..7af943dc --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_get_server_config_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 GetServerConfig +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_GetServerConfig_sync] +from google.cloud import container_v1beta1 + + +def sample_get_server_config(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.GetServerConfigRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.get_server_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_GetServerConfig_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_async.py new file mode 100644 index 00000000..33a93fac --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_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 ListClusters +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListClusters_async] +from google.cloud import container_v1beta1 + + +async def sample_list_clusters(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.ListClustersRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = await client.list_clusters(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListClusters_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_sync.py new file mode 100644 index 00000000..40a38c23 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_clusters_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 ListClusters +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListClusters_sync] +from google.cloud import container_v1beta1 + + +def sample_list_clusters(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListClustersRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.list_clusters(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListClusters_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_async.py new file mode 100644 index 00000000..f47a21eb --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_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 ListLocations +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListLocations_async] +from google.cloud import container_v1beta1 + + +async def sample_list_locations(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.ListLocationsRequest( + parent="parent_value", + ) + + # Make the request + response = await client.list_locations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListLocations_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_sync.py new file mode 100644 index 00000000..1e8cdc5d --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_locations_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 ListLocations +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListLocations_sync] +from google.cloud import container_v1beta1 + + +def sample_list_locations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListLocationsRequest( + parent="parent_value", + ) + + # Make the request + response = client.list_locations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListLocations_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_async.py new file mode 100644 index 00000000..9be5ddd1 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_async.py @@ -0,0 +1,47 @@ +# -*- 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 ListNodePools +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListNodePools_async] +from google.cloud import container_v1beta1 + + +async def sample_list_node_pools(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.ListNodePoolsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.list_node_pools(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListNodePools_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_sync.py new file mode 100644 index 00000000..7c4a1601 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_node_pools_sync.py @@ -0,0 +1,47 @@ +# -*- 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 ListNodePools +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListNodePools_sync] +from google.cloud import container_v1beta1 + + +def sample_list_node_pools(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListNodePoolsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.list_node_pools(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListNodePools_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_async.py new file mode 100644 index 00000000..ab36096a --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_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 ListOperations +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListOperations_async] +from google.cloud import container_v1beta1 + + +async def sample_list_operations(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.ListOperationsRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = await client.list_operations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListOperations_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_sync.py new file mode 100644 index 00000000..177d6372 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_operations_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 ListOperations +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListOperations_sync] +from google.cloud import container_v1beta1 + + +def sample_list_operations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListOperationsRequest( + project_id="project_id_value", + zone="zone_value", + ) + + # Make the request + response = client.list_operations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListOperations_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_async.py new file mode 100644 index 00000000..9058e769 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_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 ListUsableSubnetworks +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListUsableSubnetworks_async] +from google.cloud import container_v1beta1 + + +async def sample_list_usable_subnetworks(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.ListUsableSubnetworksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListUsableSubnetworks_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_sync.py new file mode 100644 index 00000000..0774c96a --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_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 ListUsableSubnetworks +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_ListUsableSubnetworks_sync] +from google.cloud import container_v1beta1 + + +def sample_list_usable_subnetworks(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.ListUsableSubnetworksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_usable_subnetworks(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_ListUsableSubnetworks_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_async.py new file mode 100644 index 00000000..bece57c2 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_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 RollbackNodePoolUpgrade +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_RollbackNodePoolUpgrade_async] +from google.cloud import container_v1beta1 + + +async def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.RollbackNodePoolUpgradeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = await client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_RollbackNodePoolUpgrade_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_sync.py new file mode 100644 index 00000000..13b6f5b6 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_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 RollbackNodePoolUpgrade +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_RollbackNodePoolUpgrade_sync] +from google.cloud import container_v1beta1 + + +def sample_rollback_node_pool_upgrade(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.RollbackNodePoolUpgradeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.rollback_node_pool_upgrade(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_async.py new file mode 100644 index 00000000..6f096918 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_async.py @@ -0,0 +1,47 @@ +# -*- 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 SetAddonsConfig +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetAddonsConfig_async] +from google.cloud import container_v1beta1 + + +async def sample_set_addons_config(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetAddonsConfigRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.set_addons_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetAddonsConfig_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_sync.py new file mode 100644 index 00000000..e83b56a7 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_addons_config_sync.py @@ -0,0 +1,47 @@ +# -*- 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 SetAddonsConfig +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetAddonsConfig_sync] +from google.cloud import container_v1beta1 + + +def sample_set_addons_config(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetAddonsConfigRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_addons_config(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetAddonsConfig_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_async.py new file mode 100644 index 00000000..9e9f9f73 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_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 SetLabels +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLabels_async] +from google.cloud import container_v1beta1 + + +async def sample_set_labels(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLabelsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = await client.set_labels(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLabels_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_sync.py new file mode 100644 index 00000000..ff1e6004 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_labels_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 SetLabels +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLabels_sync] +from google.cloud import container_v1beta1 + + +def sample_set_labels(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLabelsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + label_fingerprint="label_fingerprint_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLabels_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_async.py new file mode 100644 index 00000000..080c96ef --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_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 SetLegacyAbac +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLegacyAbac_async] +from google.cloud import container_v1beta1 + + +async def sample_set_legacy_abac(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLegacyAbacRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + enabled=True, + ) + + # Make the request + response = await client.set_legacy_abac(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLegacyAbac_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_sync.py new file mode 100644 index 00000000..8c5eb5e7 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_legacy_abac_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 SetLegacyAbac +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLegacyAbac_sync] +from google.cloud import container_v1beta1 + + +def sample_set_legacy_abac(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLegacyAbacRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + enabled=True, + ) + + # Make the request + response = client.set_legacy_abac(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLegacyAbac_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_async.py new file mode 100644 index 00000000..88d465d3 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_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 SetLocations +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLocations_async] +from google.cloud import container_v1beta1 + + +async def sample_set_locations(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLocationsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = await client.set_locations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLocations_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_sync.py new file mode 100644 index 00000000..c1408484 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_locations_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 SetLocations +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLocations_sync] +from google.cloud import container_v1beta1 + + +def sample_set_locations(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLocationsRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + locations=['locations_value_1', 'locations_value_2'], + ) + + # Make the request + response = client.set_locations(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLocations_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_async.py new file mode 100644 index 00000000..68e96bee --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_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 SetLoggingService +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLoggingService_async] +from google.cloud import container_v1beta1 + + +async def sample_set_logging_service(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLoggingServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + logging_service="logging_service_value", + ) + + # Make the request + response = await client.set_logging_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLoggingService_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_sync.py new file mode 100644 index 00000000..149e077b --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_logging_service_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 SetLoggingService +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetLoggingService_sync] +from google.cloud import container_v1beta1 + + +def sample_set_logging_service(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetLoggingServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + logging_service="logging_service_value", + ) + + # Make the request + response = client.set_logging_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetLoggingService_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_async.py new file mode 100644 index 00000000..c9e91195 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_async.py @@ -0,0 +1,47 @@ +# -*- 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 SetMaintenancePolicy +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetMaintenancePolicy_async] +from google.cloud import container_v1beta1 + + +async def sample_set_maintenance_policy(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetMaintenancePolicy_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_sync.py new file mode 100644 index 00000000..0d2b4932 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_sync.py @@ -0,0 +1,47 @@ +# -*- 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 SetMaintenancePolicy +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetMaintenancePolicy_sync] +from google.cloud import container_v1beta1 + + +def sample_set_maintenance_policy(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMaintenancePolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_maintenance_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetMaintenancePolicy_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_async.py new file mode 100644 index 00000000..83825aab --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_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 SetMasterAuth +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetMasterAuth_async] +from google.cloud import container_v1beta1 + + +async def sample_set_master_auth(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMasterAuthRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + action="SET_USERNAME", + ) + + # Make the request + response = await client.set_master_auth(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetMasterAuth_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_sync.py new file mode 100644 index 00000000..16a58d8f --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_master_auth_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 SetMasterAuth +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetMasterAuth_sync] +from google.cloud import container_v1beta1 + + +def sample_set_master_auth(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMasterAuthRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + action="SET_USERNAME", + ) + + # Make the request + response = client.set_master_auth(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetMasterAuth_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_async.py new file mode 100644 index 00000000..76cf8850 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_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 SetMonitoringService +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetMonitoringService_async] +from google.cloud import container_v1beta1 + + +async def sample_set_monitoring_service(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMonitoringServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = await client.set_monitoring_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetMonitoringService_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_sync.py new file mode 100644 index 00000000..d9e00a59 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_monitoring_service_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 SetMonitoringService +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetMonitoringService_sync] +from google.cloud import container_v1beta1 + + +def sample_set_monitoring_service(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetMonitoringServiceRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + monitoring_service="monitoring_service_value", + ) + + # Make the request + response = client.set_monitoring_service(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetMonitoringService_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_async.py new file mode 100644 index 00000000..08b305f2 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_async.py @@ -0,0 +1,47 @@ +# -*- 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 SetNetworkPolicy +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNetworkPolicy_async] +from google.cloud import container_v1beta1 + + +async def sample_set_network_policy(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNetworkPolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.set_network_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNetworkPolicy_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_sync.py new file mode 100644 index 00000000..6f1971a9 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_network_policy_sync.py @@ -0,0 +1,47 @@ +# -*- 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 SetNetworkPolicy +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNetworkPolicy_sync] +from google.cloud import container_v1beta1 + + +def sample_set_network_policy(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNetworkPolicyRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.set_network_policy(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNetworkPolicy_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_async.py new file mode 100644 index 00000000..64a6ff28 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_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 SetNodePoolAutoscaling +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNodePoolAutoscaling_async] +from google.cloud import container_v1beta1 + + +async def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolAutoscalingRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = await client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNodePoolAutoscaling_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_sync.py new file mode 100644 index 00000000..5bebd7bb --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_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 SetNodePoolAutoscaling +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNodePoolAutoscaling_sync] +from google.cloud import container_v1beta1 + + +def sample_set_node_pool_autoscaling(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolAutoscalingRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.set_node_pool_autoscaling(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_async.py new file mode 100644 index 00000000..1d0f89b0 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_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 SetNodePoolManagement +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNodePoolManagement_async] +from google.cloud import container_v1beta1 + + +async def sample_set_node_pool_management(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolManagementRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = await client.set_node_pool_management(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNodePoolManagement_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_sync.py new file mode 100644 index 00000000..d4036bfd --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_management_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 SetNodePoolManagement +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNodePoolManagement_sync] +from google.cloud import container_v1beta1 + + +def sample_set_node_pool_management(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolManagementRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + ) + + # Make the request + response = client.set_node_pool_management(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNodePoolManagement_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_async.py new file mode 100644 index 00000000..745aeaa0 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_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 SetNodePoolSize +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNodePoolSize_async] +from google.cloud import container_v1beta1 + + +async def sample_set_node_pool_size(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolSizeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_count=1070, + ) + + # Make the request + response = await client.set_node_pool_size(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNodePoolSize_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_sync.py new file mode 100644 index 00000000..91e861c1 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_set_node_pool_size_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 SetNodePoolSize +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_SetNodePoolSize_sync] +from google.cloud import container_v1beta1 + + +def sample_set_node_pool_size(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.SetNodePoolSizeRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_count=1070, + ) + + # Make the request + response = client.set_node_pool_size(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_SetNodePoolSize_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_async.py new file mode 100644 index 00000000..eedbdfe8 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_async.py @@ -0,0 +1,47 @@ +# -*- 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 StartIPRotation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_StartIPRotation_async] +from google.cloud import container_v1beta1 + + +async def sample_start_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.StartIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.start_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_StartIPRotation_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_sync.py new file mode 100644 index 00000000..fe6b30e1 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_start_ip_rotation_sync.py @@ -0,0 +1,47 @@ +# -*- 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 StartIPRotation +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_StartIPRotation_sync] +from google.cloud import container_v1beta1 + + +def sample_start_ip_rotation(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.StartIPRotationRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.start_ip_rotation(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_StartIPRotation_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_async.py new file mode 100644 index 00000000..744fc434 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_async.py @@ -0,0 +1,47 @@ +# -*- 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 UpdateCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_UpdateCluster_async] +from google.cloud import container_v1beta1 + + +async def sample_update_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = await client.update_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_UpdateCluster_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_sync.py new file mode 100644 index 00000000..837f7c6f --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_cluster_sync.py @@ -0,0 +1,47 @@ +# -*- 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 UpdateCluster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_UpdateCluster_sync] +from google.cloud import container_v1beta1 + + +def sample_update_cluster(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateClusterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + ) + + # Make the request + response = client.update_cluster(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_UpdateCluster_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_async.py new file mode 100644 index 00000000..4c5164fc --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_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 UpdateMaster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_UpdateMaster_async] +from google.cloud import container_v1beta1 + + +async def sample_update_master(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateMasterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + master_version="master_version_value", + ) + + # Make the request + response = await client.update_master(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_UpdateMaster_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_sync.py new file mode 100644 index 00000000..730f2c76 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_master_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 UpdateMaster +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_UpdateMaster_sync] +from google.cloud import container_v1beta1 + + +def sample_update_master(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateMasterRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + master_version="master_version_value", + ) + + # Make the request + response = client.update_master(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_UpdateMaster_sync] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_async.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_async.py new file mode 100644 index 00000000..d77f60d7 --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_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 UpdateNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_UpdateNodePool_async] +from google.cloud import container_v1beta1 + + +async def sample_update_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerAsyncClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = await client.update_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_UpdateNodePool_async] diff --git a/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_sync.py b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_sync.py new file mode 100644 index 00000000..222d4c9f --- /dev/null +++ b/samples/generated_samples/container_generated_container_v1beta1_cluster_manager_update_node_pool_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 UpdateNodePool +# 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-container + + +# [START container_generated_container_v1beta1_ClusterManager_UpdateNodePool_sync] +from google.cloud import container_v1beta1 + + +def sample_update_node_pool(): + # Create a client + client = container_v1beta1.ClusterManagerClient() + + # Initialize request argument(s) + request = container_v1beta1.UpdateNodePoolRequest( + project_id="project_id_value", + zone="zone_value", + cluster_id="cluster_id_value", + node_pool_id="node_pool_id_value", + node_version="node_version_value", + image_type="image_type_value", + ) + + # Make the request + response = client.update_node_pool(request=request) + + # Handle the response + print(response) + +# [END container_generated_container_v1beta1_ClusterManager_UpdateNodePool_sync] diff --git a/samples/generated_samples/snippet_metadata_container_v1.json b/samples/generated_samples/snippet_metadata_container_v1.json new file mode 100644 index 00000000..08a66ac8 --- /dev/null +++ b/samples/generated_samples/snippet_metadata_container_v1.json @@ -0,0 +1,2848 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CancelOperation" + } + }, + "file": "container_generated_container_v1_cluster_manager_cancel_operation_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_CancelOperation_async", + "segments": [ + { + "end": 41, + "start": 27, + "type": "FULL" + }, + { + "end": 41, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CancelOperation" + } + }, + "file": "container_generated_container_v1_cluster_manager_cancel_operation_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_CancelOperation_sync", + "segments": [ + { + "end": 41, + "start": 27, + "type": "FULL" + }, + { + "end": 41, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CompleteIPRotation" + } + }, + "file": "container_generated_container_v1_cluster_manager_complete_ip_rotation_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_CompleteIPRotation_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": "ClusterManager" + }, + "shortName": "CompleteIPRotation" + } + }, + "file": "container_generated_container_v1_cluster_manager_complete_ip_rotation_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_CompleteIPRotation_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": "ClusterManager" + }, + "shortName": "CreateCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_create_cluster_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_CreateCluster_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": "ClusterManager" + }, + "shortName": "CreateCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_create_cluster_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_CreateCluster_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": "ClusterManager" + }, + "shortName": "CreateNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_create_node_pool_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_CreateNodePool_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": "ClusterManager" + }, + "shortName": "CreateNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_create_node_pool_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_CreateNodePool_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": "ClusterManager" + }, + "shortName": "DeleteCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_delete_cluster_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_DeleteCluster_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": "ClusterManager" + }, + "shortName": "DeleteCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_delete_cluster_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_DeleteCluster_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": "ClusterManager" + }, + "shortName": "DeleteNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_delete_node_pool_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_DeleteNodePool_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": "ClusterManager" + }, + "shortName": "DeleteNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_delete_node_pool_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_DeleteNodePool_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": "ClusterManager" + }, + "shortName": "GetCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_cluster_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetCluster_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": "ClusterManager" + }, + "shortName": "GetCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_cluster_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetCluster_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": "ClusterManager" + }, + "shortName": "GetJSONWebKeys" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_json_web_keys_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetJSONWebKeys_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": "ClusterManager" + }, + "shortName": "GetJSONWebKeys" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_json_web_keys_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetJSONWebKeys_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": "ClusterManager" + }, + "shortName": "GetNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_node_pool_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetNodePool_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": "ClusterManager" + }, + "shortName": "GetNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_node_pool_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetNodePool_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": "ClusterManager" + }, + "shortName": "GetOperation" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_operation_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetOperation_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": "ClusterManager" + }, + "shortName": "GetOperation" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_operation_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetOperation_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": "ClusterManager" + }, + "shortName": "GetServerConfig" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_server_config_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetServerConfig_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": "ClusterManager" + }, + "shortName": "GetServerConfig" + } + }, + "file": "container_generated_container_v1_cluster_manager_get_server_config_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_GetServerConfig_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": "ClusterManager" + }, + "shortName": "ListClusters" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_clusters_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListClusters_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": "ClusterManager" + }, + "shortName": "ListClusters" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_clusters_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListClusters_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": "ClusterManager" + }, + "shortName": "ListNodePools" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_node_pools_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListNodePools_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": "ClusterManager" + }, + "shortName": "ListNodePools" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_node_pools_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListNodePools_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": "ClusterManager" + }, + "shortName": "ListOperations" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_operations_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListOperations_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": "ClusterManager" + }, + "shortName": "ListOperations" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_operations_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListOperations_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": "ClusterManager" + }, + "shortName": "ListUsableSubnetworks" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_usable_subnetworks_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListUsableSubnetworks_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": "ClusterManager" + }, + "shortName": "ListUsableSubnetworks" + } + }, + "file": "container_generated_container_v1_cluster_manager_list_usable_subnetworks_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_ListUsableSubnetworks_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": "ClusterManager" + }, + "shortName": "RollbackNodePoolUpgrade" + } + }, + "file": "container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_RollbackNodePoolUpgrade_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": "ClusterManager" + }, + "shortName": "RollbackNodePoolUpgrade" + } + }, + "file": "container_generated_container_v1_cluster_manager_rollback_node_pool_upgrade_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_RollbackNodePoolUpgrade_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": "ClusterManager" + }, + "shortName": "SetAddonsConfig" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_addons_config_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetAddonsConfig_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": "ClusterManager" + }, + "shortName": "SetAddonsConfig" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_addons_config_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetAddonsConfig_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": "ClusterManager" + }, + "shortName": "SetLabels" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_labels_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLabels_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": "ClusterManager" + }, + "shortName": "SetLabels" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_labels_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLabels_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": "ClusterManager" + }, + "shortName": "SetLegacyAbac" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_legacy_abac_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLegacyAbac_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": "ClusterManager" + }, + "shortName": "SetLegacyAbac" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_legacy_abac_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLegacyAbac_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": "ClusterManager" + }, + "shortName": "SetLocations" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_locations_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLocations_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": "ClusterManager" + }, + "shortName": "SetLocations" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_locations_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLocations_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": "ClusterManager" + }, + "shortName": "SetLoggingService" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_logging_service_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLoggingService_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": "ClusterManager" + }, + "shortName": "SetLoggingService" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_logging_service_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetLoggingService_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": "ClusterManager" + }, + "shortName": "SetMaintenancePolicy" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_maintenance_policy_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetMaintenancePolicy_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMaintenancePolicy" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_maintenance_policy_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetMaintenancePolicy_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMasterAuth" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_master_auth_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetMasterAuth_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": "ClusterManager" + }, + "shortName": "SetMasterAuth" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_master_auth_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetMasterAuth_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": "ClusterManager" + }, + "shortName": "SetMonitoringService" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_monitoring_service_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetMonitoringService_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": "ClusterManager" + }, + "shortName": "SetMonitoringService" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_monitoring_service_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetMonitoringService_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": "ClusterManager" + }, + "shortName": "SetNetworkPolicy" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_network_policy_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNetworkPolicy_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": "ClusterManager" + }, + "shortName": "SetNetworkPolicy" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_network_policy_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNetworkPolicy_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": "ClusterManager" + }, + "shortName": "SetNodePoolAutoscaling" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNodePoolAutoscaling_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": "ClusterManager" + }, + "shortName": "SetNodePoolAutoscaling" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_node_pool_autoscaling_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNodePoolAutoscaling_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": "ClusterManager" + }, + "shortName": "SetNodePoolManagement" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_node_pool_management_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNodePoolManagement_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": "ClusterManager" + }, + "shortName": "SetNodePoolManagement" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_node_pool_management_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNodePoolManagement_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": "ClusterManager" + }, + "shortName": "SetNodePoolSize" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_node_pool_size_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNodePoolSize_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": "ClusterManager" + }, + "shortName": "SetNodePoolSize" + } + }, + "file": "container_generated_container_v1_cluster_manager_set_node_pool_size_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_SetNodePoolSize_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": "ClusterManager" + }, + "shortName": "StartIPRotation" + } + }, + "file": "container_generated_container_v1_cluster_manager_start_ip_rotation_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_StartIPRotation_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": "ClusterManager" + }, + "shortName": "StartIPRotation" + } + }, + "file": "container_generated_container_v1_cluster_manager_start_ip_rotation_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_StartIPRotation_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": "ClusterManager" + }, + "shortName": "UpdateCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_update_cluster_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_UpdateCluster_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": "ClusterManager" + }, + "shortName": "UpdateCluster" + } + }, + "file": "container_generated_container_v1_cluster_manager_update_cluster_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_UpdateCluster_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": "ClusterManager" + }, + "shortName": "UpdateMaster" + } + }, + "file": "container_generated_container_v1_cluster_manager_update_master_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_UpdateMaster_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": "ClusterManager" + }, + "shortName": "UpdateMaster" + } + }, + "file": "container_generated_container_v1_cluster_manager_update_master_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_UpdateMaster_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": "ClusterManager" + }, + "shortName": "UpdateNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_update_node_pool_async.py", + "regionTag": "container_generated_container_v1_ClusterManager_UpdateNodePool_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": "ClusterManager" + }, + "shortName": "UpdateNodePool" + } + }, + "file": "container_generated_container_v1_cluster_manager_update_node_pool_sync.py", + "regionTag": "container_generated_container_v1_ClusterManager_UpdateNodePool_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" + } + ] + } + ] +} diff --git a/samples/generated_samples/snippet_metadata_container_v1beta1.json b/samples/generated_samples/snippet_metadata_container_v1beta1.json new file mode 100644 index 00000000..40f60970 --- /dev/null +++ b/samples/generated_samples/snippet_metadata_container_v1beta1.json @@ -0,0 +1,2937 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CancelOperation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_cancel_operation_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CancelOperation_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CancelOperation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_cancel_operation_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CancelOperation_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CompleteIPRotation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CompleteIPRotation_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CompleteIPRotation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_complete_ip_rotation_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CompleteIPRotation_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CreateCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_create_cluster_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CreateCluster_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": "ClusterManager" + }, + "shortName": "CreateCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_create_cluster_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CreateCluster_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" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CreateNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_create_node_pool_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CreateNodePool_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "CreateNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_create_node_pool_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_CreateNodePool_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "DeleteCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_delete_cluster_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_DeleteCluster_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "DeleteCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_delete_cluster_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_DeleteCluster_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "DeleteNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_delete_node_pool_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_DeleteNodePool_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "DeleteNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_delete_node_pool_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_DeleteNodePool_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "GetCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_cluster_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetCluster_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "GetCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_cluster_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetCluster_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "GetJSONWebKeys" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_json_web_keys_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetJSONWebKeys_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": "ClusterManager" + }, + "shortName": "GetJSONWebKeys" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_json_web_keys_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetJSONWebKeys_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": "ClusterManager" + }, + "shortName": "GetNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_node_pool_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetNodePool_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "GetNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_node_pool_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetNodePool_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "GetOperation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_operation_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetOperation_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "GetOperation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_operation_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetOperation_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "GetServerConfig" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_server_config_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetServerConfig_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": "ClusterManager" + }, + "shortName": "GetServerConfig" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_get_server_config_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_GetServerConfig_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" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "ListClusters" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_clusters_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListClusters_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": "ClusterManager" + }, + "shortName": "ListClusters" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_clusters_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListClusters_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" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "ListLocations" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_locations_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListLocations_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": "ClusterManager" + }, + "shortName": "ListLocations" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_locations_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListLocations_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": "ClusterManager" + }, + "shortName": "ListNodePools" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_node_pools_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListNodePools_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "ListNodePools" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_node_pools_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListNodePools_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "ListOperations" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_operations_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListOperations_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": "ClusterManager" + }, + "shortName": "ListOperations" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_operations_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListOperations_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" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "ListUsableSubnetworks" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListUsableSubnetworks_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": "ClusterManager" + }, + "shortName": "ListUsableSubnetworks" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_list_usable_subnetworks_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_ListUsableSubnetworks_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": "ClusterManager" + }, + "shortName": "RollbackNodePoolUpgrade" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_RollbackNodePoolUpgrade_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "RollbackNodePoolUpgrade" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_rollback_node_pool_upgrade_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_RollbackNodePoolUpgrade_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetAddonsConfig" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_addons_config_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetAddonsConfig_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetAddonsConfig" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_addons_config_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetAddonsConfig_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLabels" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_labels_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLabels_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLabels" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_labels_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLabels_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLegacyAbac" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_legacy_abac_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLegacyAbac_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLegacyAbac" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_legacy_abac_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLegacyAbac_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLocations" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_locations_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLocations_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLocations" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_locations_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLocations_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLoggingService" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_logging_service_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLoggingService_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetLoggingService" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_logging_service_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetLoggingService_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMaintenancePolicy" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetMaintenancePolicy_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMaintenancePolicy" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_maintenance_policy_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetMaintenancePolicy_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMasterAuth" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_master_auth_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetMasterAuth_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMasterAuth" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_master_auth_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetMasterAuth_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMonitoringService" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_monitoring_service_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetMonitoringService_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetMonitoringService" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_monitoring_service_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetMonitoringService_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNetworkPolicy" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_network_policy_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNetworkPolicy_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNetworkPolicy" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_network_policy_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNetworkPolicy_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNodePoolAutoscaling" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNodePoolAutoscaling_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNodePoolAutoscaling" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_node_pool_autoscaling_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNodePoolAutoscaling_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNodePoolManagement" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_node_pool_management_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNodePoolManagement_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNodePoolManagement" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_node_pool_management_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNodePoolManagement_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNodePoolSize" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_node_pool_size_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNodePoolSize_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "SetNodePoolSize" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_set_node_pool_size_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_SetNodePoolSize_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "StartIPRotation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_start_ip_rotation_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_StartIPRotation_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "StartIPRotation" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_start_ip_rotation_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_StartIPRotation_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "UpdateCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_update_cluster_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_UpdateCluster_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "UpdateCluster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_update_cluster_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_UpdateCluster_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 43, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 44, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "UpdateMaster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_update_master_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_UpdateMaster_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "UpdateMaster" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_update_master_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_UpdateMaster_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "UpdateNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_update_node_pool_async.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_UpdateNodePool_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ClusterManager" + }, + "shortName": "UpdateNodePool" + } + }, + "file": "container_generated_container_v1beta1_cluster_manager_update_node_pool_sync.py", + "regionTag": "container_generated_container_v1beta1_ClusterManager_UpdateNodePool_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +} From b6094fb7e31732a63a7d6cd857d2e6a02748fb2a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 20:13:47 -0400 Subject: [PATCH 2/2] chore(main): release 2.10.3 (#193) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fca4c3b..a452145b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-container/#history +### [2.10.3](https://github.com/googleapis/python-container/compare/v2.10.2...v2.10.3) (2022-02-11) + + +### Documentation + +* add generated snippets ([#192](https://github.com/googleapis/python-container/issues/192)) ([e3a3a05](https://github.com/googleapis/python-container/commit/e3a3a056d80ac713edbf5cb4a8358063f8a83214)) + ### [2.10.2](https://github.com/googleapis/python-container/compare/v2.10.1...v2.10.2) (2022-02-04) ### Bug Fixes diff --git a/setup.py b/setup.py index f944b315..9d6d76fb 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-container" description = "Google Container Engine API client library" -version = "2.10.2" +version = "2.10.3" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta'