From 78a321c98b32acdff75d80e042fa4b21ab0fef8c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 14:30:51 -0700 Subject: [PATCH] chore: use gapic-generator-python 0.63.2 (#34) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 docs: add generated snippets 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 --- .../cloud_filestore_manager/async_client.py | 245 +++++ .../cloud_filestore_manager/client.py | 256 +++++ ...d_filestore_manager_create_backup_async.py | 50 + ...ud_filestore_manager_create_backup_sync.py | 50 + ...filestore_manager_create_instance_async.py | 50 + ..._filestore_manager_create_instance_sync.py | 50 + ...d_filestore_manager_delete_backup_async.py | 49 + ...ud_filestore_manager_delete_backup_sync.py | 49 + ...filestore_manager_delete_instance_async.py | 49 + ..._filestore_manager_delete_instance_sync.py | 49 + ...loud_filestore_manager_get_backup_async.py | 45 + ...cloud_filestore_manager_get_backup_sync.py | 45 + ...ud_filestore_manager_get_instance_async.py | 45 + ...oud_filestore_manager_get_instance_sync.py | 45 + ...ud_filestore_manager_list_backups_async.py | 46 + ...oud_filestore_manager_list_backups_sync.py | 46 + ..._filestore_manager_list_instances_async.py | 46 + ...d_filestore_manager_list_instances_sync.py | 46 + ...ilestore_manager_restore_instance_async.py | 51 + ...filestore_manager_restore_instance_sync.py | 51 + ...d_filestore_manager_update_backup_async.py | 48 + ...ud_filestore_manager_update_backup_sync.py | 48 + ...filestore_manager_update_instance_async.py | 48 + ..._filestore_manager_update_instance_sync.py | 48 + .../snippet_metadata_filestore_v1.json | 983 ++++++++++++++++++ 25 files changed, 2538 insertions(+) create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_async.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_sync.py create mode 100644 packages/google-cloud-filestore/samples/generated_samples/snippet_metadata_filestore_v1.json diff --git a/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/async_client.py b/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/async_client.py index c0e38178d614..d34a7f319d1c 100644 --- a/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/async_client.py +++ b/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/async_client.py @@ -249,6 +249,27 @@ async def list_instances( r"""Lists all instances in a project for either a specified location or for all locations. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_list_instances(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.ListInstancesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.filestore_v1.types.ListInstancesRequest, dict]): The request object. ListInstancesRequest lists @@ -342,6 +363,25 @@ async def get_instance( ) -> cloud_filestore_service.Instance: r"""Gets the details of a specific instance. + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_get_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.GetInstanceRequest( + name="name_value", + ) + + # Make the request + response = client.get_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.GetInstanceRequest, dict]): The request object. GetInstanceRequest gets the state of @@ -426,6 +466,31 @@ async def create_instance( capacity of the backup (and also equal to or larger than the minimum capacity of the tier). + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_create_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.CreateInstanceRequest( + parent="parent_value", + instance_id="instance_id_value", + ) + + # Make the request + operation = client.create_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.CreateInstanceRequest, dict]): The request object. CreateInstanceRequest creates an @@ -530,6 +595,28 @@ async def update_instance( ) -> operation_async.AsyncOperation: r"""Updates the settings of a specific instance. + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_update_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateInstanceRequest( + ) + + # Make the request + operation = client.update_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.UpdateInstanceRequest, dict]): The request object. UpdateInstanceRequest updates the @@ -629,6 +716,32 @@ async def restore_instance( larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier). + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_restore_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.RestoreInstanceRequest( + source_backup="source_backup_value", + name="name_value", + file_share="file_share_value", + ) + + # Make the request + operation = client.restore_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.RestoreInstanceRequest, dict]): The request object. RestoreInstanceRequest restores an @@ -690,6 +803,29 @@ async def delete_instance( ) -> operation_async.AsyncOperation: r"""Deletes an instance. + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_delete_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteInstanceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.DeleteInstanceRequest, dict]): The request object. DeleteInstanceRequest deletes an @@ -783,6 +919,27 @@ async def list_backups( r"""Lists all backups in a project for either a specified location or for all locations. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_list_backups(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.ListBackupsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_backups(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.filestore_v1.types.ListBackupsRequest, dict]): The request object. ListBackupsRequest lists backups. @@ -875,6 +1032,25 @@ async def get_backup( ) -> cloud_filestore_service.Backup: r"""Gets the details of a specific backup. + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_get_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.GetBackupRequest( + name="name_value", + ) + + # Make the request + response = client.get_backup(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.GetBackupRequest, dict]): The request object. GetBackupRequest gets the state of a @@ -955,6 +1131,30 @@ async def create_backup( ) -> operation_async.AsyncOperation: r"""Creates a backup. + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_create_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.CreateBackupRequest( + parent="parent_value", + backup_id="backup_id_value", + ) + + # Make the request + operation = client.create_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.CreateBackupRequest, dict]): The request object. CreateBackupRequest creates a @@ -1063,6 +1263,29 @@ async def delete_backup( ) -> operation_async.AsyncOperation: r"""Deletes a backup. + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_delete_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteBackupRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.DeleteBackupRequest, dict]): The request object. DeleteBackupRequest deletes a @@ -1156,6 +1379,28 @@ async def update_backup( ) -> operation_async.AsyncOperation: r"""Updates the settings of a specific backup. + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_update_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateBackupRequest( + ) + + # Make the request + operation = client.update_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.UpdateBackupRequest, dict]): The request object. UpdateBackupRequest updates diff --git a/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/client.py b/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/client.py index 584c3b8ba223..43a8c2f623c3 100644 --- a/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/client.py +++ b/packages/google-cloud-filestore/google/cloud/filestore_v1/services/cloud_filestore_manager/client.py @@ -459,6 +459,28 @@ def list_instances( r"""Lists all instances in a project for either a specified location or for all locations. + + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_list_instances(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.ListInstancesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.filestore_v1.types.ListInstancesRequest, dict]): The request object. ListInstancesRequest lists @@ -543,6 +565,26 @@ def get_instance( ) -> cloud_filestore_service.Instance: r"""Gets the details of a specific instance. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_get_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.GetInstanceRequest( + name="name_value", + ) + + # Make the request + response = client.get_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.GetInstanceRequest, dict]): The request object. GetInstanceRequest gets the state of @@ -618,6 +660,32 @@ def create_instance( capacity of the backup (and also equal to or larger than the minimum capacity of the tier). + + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_create_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.CreateInstanceRequest( + parent="parent_value", + instance_id="instance_id_value", + ) + + # Make the request + operation = client.create_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.CreateInstanceRequest, dict]): The request object. CreateInstanceRequest creates an @@ -722,6 +790,29 @@ def update_instance( ) -> operation.Operation: r"""Updates the settings of a specific instance. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_update_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateInstanceRequest( + ) + + # Make the request + operation = client.update_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.UpdateInstanceRequest, dict]): The request object. UpdateInstanceRequest updates the @@ -821,6 +912,33 @@ def restore_instance( larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier). + + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_restore_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.RestoreInstanceRequest( + source_backup="source_backup_value", + name="name_value", + file_share="file_share_value", + ) + + # Make the request + operation = client.restore_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.RestoreInstanceRequest, dict]): The request object. RestoreInstanceRequest restores an @@ -883,6 +1001,30 @@ def delete_instance( ) -> operation.Operation: r"""Deletes an instance. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_delete_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteInstanceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.DeleteInstanceRequest, dict]): The request object. DeleteInstanceRequest deletes an @@ -976,6 +1118,28 @@ def list_backups( r"""Lists all backups in a project for either a specified location or for all locations. + + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_list_backups(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.ListBackupsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_backups(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.filestore_v1.types.ListBackupsRequest, dict]): The request object. ListBackupsRequest lists backups. @@ -1059,6 +1223,26 @@ def get_backup( ) -> cloud_filestore_service.Backup: r"""Gets the details of a specific backup. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_get_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.GetBackupRequest( + name="name_value", + ) + + # Make the request + response = client.get_backup(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.GetBackupRequest, dict]): The request object. GetBackupRequest gets the state of a @@ -1130,6 +1314,31 @@ def create_backup( ) -> operation.Operation: r"""Creates a backup. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_create_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.CreateBackupRequest( + parent="parent_value", + backup_id="backup_id_value", + ) + + # Make the request + operation = client.create_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.CreateBackupRequest, dict]): The request object. CreateBackupRequest creates a @@ -1238,6 +1447,30 @@ def delete_backup( ) -> operation.Operation: r"""Deletes a backup. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_delete_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteBackupRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.DeleteBackupRequest, dict]): The request object. DeleteBackupRequest deletes a @@ -1331,6 +1564,29 @@ def update_backup( ) -> operation.Operation: r"""Updates the settings of a specific backup. + + .. code-block:: + + from google.cloud import filestore_v1 + + def sample_update_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateBackupRequest( + ) + + # Make the request + operation = client.update_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.filestore_v1.types.UpdateBackupRequest, dict]): The request object. UpdateBackupRequest updates diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_async.py new file mode 100644 index 000000000000..13c1ef73df3f --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_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 CreateBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_CreateBackup_async] +from google.cloud import filestore_v1 + + +async def sample_create_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.CreateBackupRequest( + parent="parent_value", + backup_id="backup_id_value", + ) + + # Make the request + operation = client.create_backup(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_CreateBackup_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_sync.py new file mode 100644 index 000000000000..e26340415226 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_backup_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 CreateBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_CreateBackup_sync] +from google.cloud import filestore_v1 + + +def sample_create_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.CreateBackupRequest( + parent="parent_value", + backup_id="backup_id_value", + ) + + # Make the request + operation = client.create_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_CreateBackup_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_async.py new file mode 100644 index 000000000000..94cbfced03a0 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_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 CreateInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_CreateInstance_async] +from google.cloud import filestore_v1 + + +async def sample_create_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.CreateInstanceRequest( + parent="parent_value", + instance_id="instance_id_value", + ) + + # Make the request + operation = client.create_instance(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_CreateInstance_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_sync.py new file mode 100644 index 000000000000..a24aa656e67b --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_create_instance_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 CreateInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_CreateInstance_sync] +from google.cloud import filestore_v1 + + +def sample_create_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.CreateInstanceRequest( + parent="parent_value", + instance_id="instance_id_value", + ) + + # Make the request + operation = client.create_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_CreateInstance_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_async.py new file mode 100644 index 000000000000..ba86a205c5d6 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_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 DeleteBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_DeleteBackup_async] +from google.cloud import filestore_v1 + + +async def sample_delete_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteBackupRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_backup(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_DeleteBackup_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_sync.py new file mode 100644 index 000000000000..a2bd8a2405c4 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_backup_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 DeleteBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_DeleteBackup_sync] +from google.cloud import filestore_v1 + + +def sample_delete_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteBackupRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_DeleteBackup_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_async.py new file mode 100644 index 000000000000..7ccc5a7fc19f --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_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 DeleteInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_DeleteInstance_async] +from google.cloud import filestore_v1 + + +async def sample_delete_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteInstanceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_instance(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_DeleteInstance_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_sync.py new file mode 100644 index 000000000000..849d66106db0 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_delete_instance_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 DeleteInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_DeleteInstance_sync] +from google.cloud import filestore_v1 + + +def sample_delete_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.DeleteInstanceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_DeleteInstance_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_async.py new file mode 100644 index 000000000000..1483c8bc897c --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_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 GetBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_GetBackup_async] +from google.cloud import filestore_v1 + + +async def sample_get_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.GetBackupRequest( + name="name_value", + ) + + # Make the request + response = await client.get_backup(request=request) + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_GetBackup_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_sync.py new file mode 100644 index 000000000000..3010831c4f10 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_backup_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 GetBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_GetBackup_sync] +from google.cloud import filestore_v1 + + +def sample_get_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.GetBackupRequest( + name="name_value", + ) + + # Make the request + response = client.get_backup(request=request) + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_GetBackup_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_async.py new file mode 100644 index 000000000000..13d69abfda7c --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_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 GetInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_GetInstance_async] +from google.cloud import filestore_v1 + + +async def sample_get_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.GetInstanceRequest( + name="name_value", + ) + + # Make the request + response = await client.get_instance(request=request) + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_GetInstance_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_sync.py new file mode 100644 index 000000000000..faa02a14c29c --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_get_instance_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 GetInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_GetInstance_sync] +from google.cloud import filestore_v1 + + +def sample_get_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.GetInstanceRequest( + name="name_value", + ) + + # Make the request + response = client.get_instance(request=request) + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_GetInstance_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_async.py new file mode 100644 index 000000000000..3d563da0f2ce --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_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 ListBackups +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_ListBackups_async] +from google.cloud import filestore_v1 + + +async def sample_list_backups(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.ListBackupsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_backups(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_ListBackups_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_sync.py new file mode 100644 index 000000000000..0c1da4961364 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_backups_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 ListBackups +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_ListBackups_sync] +from google.cloud import filestore_v1 + + +def sample_list_backups(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.ListBackupsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_backups(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_ListBackups_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_async.py new file mode 100644 index 000000000000..110fdaf455fb --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_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 ListInstances +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_ListInstances_async] +from google.cloud import filestore_v1 + + +async def sample_list_instances(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.ListInstancesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_ListInstances_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_sync.py new file mode 100644 index 000000000000..d47e7441501f --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_list_instances_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 ListInstances +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_ListInstances_sync] +from google.cloud import filestore_v1 + + +def sample_list_instances(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.ListInstancesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_ListInstances_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_async.py new file mode 100644 index 000000000000..c75abec931cb --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_async.py @@ -0,0 +1,51 @@ +# -*- 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 RestoreInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_RestoreInstance_async] +from google.cloud import filestore_v1 + + +async def sample_restore_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.RestoreInstanceRequest( + source_backup="source_backup_value", + name="name_value", + file_share="file_share_value", + ) + + # Make the request + operation = client.restore_instance(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_RestoreInstance_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_sync.py new file mode 100644 index 000000000000..18b49b8a6e47 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_restore_instance_sync.py @@ -0,0 +1,51 @@ +# -*- 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 RestoreInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_RestoreInstance_sync] +from google.cloud import filestore_v1 + + +def sample_restore_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.RestoreInstanceRequest( + source_backup="source_backup_value", + name="name_value", + file_share="file_share_value", + ) + + # Make the request + operation = client.restore_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_RestoreInstance_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_async.py new file mode 100644 index 000000000000..9cde15e400e4 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_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 UpdateBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_UpdateBackup_async] +from google.cloud import filestore_v1 + + +async def sample_update_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateBackupRequest( + ) + + # Make the request + operation = client.update_backup(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_UpdateBackup_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_sync.py new file mode 100644 index 000000000000..d6e9374a08ee --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_backup_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 UpdateBackup +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_UpdateBackup_sync] +from google.cloud import filestore_v1 + + +def sample_update_backup(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateBackupRequest( + ) + + # Make the request + operation = client.update_backup(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_UpdateBackup_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_async.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_async.py new file mode 100644 index 000000000000..331d9ec8df76 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_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 UpdateInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_UpdateInstance_async] +from google.cloud import filestore_v1 + + +async def sample_update_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerAsyncClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateInstanceRequest( + ) + + # Make the request + operation = client.update_instance(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_UpdateInstance_async] diff --git a/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_sync.py b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_sync.py new file mode 100644 index 000000000000..63dcce92860a --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/file_generated_filestore_v1_cloud_filestore_manager_update_instance_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 UpdateInstance +# 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-filestore + + +# [START file_generated_filestore_v1_CloudFilestoreManager_UpdateInstance_sync] +from google.cloud import filestore_v1 + + +def sample_update_instance(): + # Create a client + client = filestore_v1.CloudFilestoreManagerClient() + + # Initialize request argument(s) + request = filestore_v1.UpdateInstanceRequest( + ) + + # Make the request + operation = client.update_instance(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END file_generated_filestore_v1_CloudFilestoreManager_UpdateInstance_sync] diff --git a/packages/google-cloud-filestore/samples/generated_samples/snippet_metadata_filestore_v1.json b/packages/google-cloud-filestore/samples/generated_samples/snippet_metadata_filestore_v1.json new file mode 100644 index 000000000000..f3c0f263ded2 --- /dev/null +++ b/packages/google-cloud-filestore/samples/generated_samples/snippet_metadata_filestore_v1.json @@ -0,0 +1,983 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "CreateBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_create_backup_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_CreateBackup_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "CreateBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_create_backup_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_CreateBackup_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "CreateInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_create_instance_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_CreateInstance_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "CreateInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_create_instance_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_CreateInstance_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "DeleteBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_delete_backup_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_DeleteBackup_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "DeleteBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_delete_backup_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_DeleteBackup_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "DeleteInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_delete_instance_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_DeleteInstance_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "DeleteInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_delete_instance_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_DeleteInstance_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "GetBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_get_backup_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_GetBackup_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": "CloudFilestoreManager" + }, + "shortName": "GetBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_get_backup_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_GetBackup_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": "CloudFilestoreManager" + }, + "shortName": "GetInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_get_instance_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_GetInstance_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": "CloudFilestoreManager" + }, + "shortName": "GetInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_get_instance_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_GetInstance_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": "CloudFilestoreManager" + }, + "shortName": "ListBackups" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_list_backups_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_ListBackups_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": "CloudFilestoreManager" + }, + "shortName": "ListBackups" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_list_backups_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_ListBackups_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": "CloudFilestoreManager" + }, + "shortName": "ListInstances" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_list_instances_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_ListInstances_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": "CloudFilestoreManager" + }, + "shortName": "ListInstances" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_list_instances_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_ListInstances_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": "CloudFilestoreManager" + }, + "shortName": "RestoreInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_restore_instance_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_RestoreInstance_async", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "RestoreInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_restore_instance_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_RestoreInstance_sync", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "UpdateBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_update_backup_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_UpdateBackup_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "UpdateBackup" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_update_backup_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_UpdateBackup_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "UpdateInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_update_instance_async.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_UpdateInstance_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CloudFilestoreManager" + }, + "shortName": "UpdateInstance" + } + }, + "file": "file_generated_filestore_v1_cloud_filestore_manager_update_instance_sync.py", + "regionTag": "file_generated_filestore_v1_CloudFilestoreManager_UpdateInstance_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +}