diff --git a/google/cloud/shell_v1/services/cloud_shell_service/async_client.py b/google/cloud/shell_v1/services/cloud_shell_service/async_client.py index 7629943..a7bd34d 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/async_client.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/async_client.py @@ -229,6 +229,13 @@ async def get_environment( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 async def sample_get_environment(): @@ -347,6 +354,13 @@ async def start_environment( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 async def sample_start_environment(): @@ -438,6 +452,13 @@ async def authorize_environment( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 async def sample_authorize_environment(): @@ -527,6 +548,13 @@ async def add_public_key( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 async def sample_add_public_key(): @@ -618,6 +646,13 @@ async def remove_public_key( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 async def sample_remove_public_key(): diff --git a/google/cloud/shell_v1/services/cloud_shell_service/client.py b/google/cloud/shell_v1/services/cloud_shell_service/client.py index 70bcca6..86032c1 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/client.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/client.py @@ -447,6 +447,13 @@ def get_environment( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 def sample_get_environment(): @@ -555,6 +562,13 @@ def start_environment( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 def sample_start_environment(): @@ -647,6 +661,13 @@ def authorize_environment( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 def sample_authorize_environment(): @@ -737,6 +758,13 @@ def add_public_key( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 def sample_add_public_key(): @@ -829,6 +857,13 @@ def remove_public_key( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 def sample_remove_public_key(): diff --git a/mypy.ini b/mypy.ini index 4505b48..574c5ae 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.6 +python_version = 3.7 namespace_packages = True diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py index 71c6f61..c38c499 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_AddPublicKey_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py index 976bb94..8f92517 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_AddPublicKey_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py index 0fb03e9..8a663ff 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py index 0c0e322..0e51914 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_async.py index 22d7a1e..d17fc77 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_async.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_GetEnvironment_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py index a850dc4..7d35536 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_GetEnvironment_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py index b198165..2d714c6 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_RemovePublicKey_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py index 036bba5..8862b88 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_RemovePublicKey_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_async.py index d20a7e2..a13df94 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_async.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_StartEnvironment_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py index 773e46d..3de6aa7 100644 --- a/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py @@ -24,6 +24,13 @@ # [START cloudshell_v1_generated_CloudShellService_StartEnvironment_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import shell_v1 diff --git a/samples/generated_samples/snippet_metadata_shell_v1.json b/samples/generated_samples/snippet_metadata_shell_v1.json index 66ec515..7787762 100644 --- a/samples/generated_samples/snippet_metadata_shell_v1.json +++ b/samples/generated_samples/snippet_metadata_shell_v1.json @@ -55,33 +55,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_AddPublicKey_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -131,33 +131,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_AddPublicKey_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -208,33 +208,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -284,33 +284,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -365,33 +365,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_GetEnvironment_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -445,33 +445,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_GetEnvironment_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -522,33 +522,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_RemovePublicKey_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -598,33 +598,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_RemovePublicKey_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -675,33 +675,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_StartEnvironment_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -751,33 +751,33 @@ "regionTag": "cloudshell_v1_generated_CloudShellService_StartEnvironment_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ],