diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b668c04..44c78f7 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:ed1f9983d5a935a89fe8085e8bb97d94e41015252c5b6c9771257cf8624367e6 - + digest: sha256:4e1991042fe54b991db9ca17c8fb386e61b22fe4d1472a568bf0fcac85dcf5d3 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f7b8344..b46d730 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: "3.10" - name: Install nox @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: "3.10" - name: Install nox diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1e8b05c..f512a49 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: "3.10" - name: Install nox diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 074ee25..e5be6ed 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -11,9 +11,9 @@ jobs: python: ['3.6', '3.7', '3.8', '3.9', '3.10'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} - name: Install nox @@ -26,7 +26,7 @@ jobs: run: | nox -s unit-${{ matrix.python }} - name: Upload coverage results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: coverage-artifacts path: .coverage-${{ matrix.python }} @@ -37,9 +37,9 @@ jobs: - unit steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: "3.10" - name: Install coverage @@ -47,7 +47,7 @@ jobs: python -m pip install --upgrade setuptools pip wheel python -m pip install coverage - name: Download coverage results - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: coverage-artifacts path: .coverage-results/ diff --git a/CHANGELOG.md b/CHANGELOG.md index e492309..15b320a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.3.2](https://github.com/googleapis/python-shell/compare/v1.3.1...v1.3.2) (2022-03-05) + + +### Bug Fixes + +* **deps:** require google-api-core>=1.31.5, >=2.3.2 ([#85](https://github.com/googleapis/python-shell/issues/85)) ([b3271c5](https://github.com/googleapis/python-shell/commit/b3271c5f07fc1326a614ab8fb365cc9b7c46c897)) + ### [1.3.1](https://github.com/googleapis/python-shell/compare/v1.3.0...v1.3.1) (2022-02-11) diff --git a/google/cloud/shell/__init__.py b/google/cloud/shell/__init__.py index e4b5ca5..0e583cc 100644 --- a/google/cloud/shell/__init__.py +++ b/google/cloud/shell/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/__init__.py b/google/cloud/shell_v1/__init__.py index 474f066..90405ad 100644 --- a/google/cloud/shell_v1/__init__.py +++ b/google/cloud/shell_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/services/__init__.py b/google/cloud/shell_v1/services/__init__.py index 4de6597..e8e1c38 100644 --- a/google/cloud/shell_v1/services/__init__.py +++ b/google/cloud/shell_v1/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/services/cloud_shell_service/__init__.py b/google/cloud/shell_v1/services/cloud_shell_service/__init__.py index bc59063..d08cd0a 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/__init__.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 54c54e7..3fddf3b 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 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -226,7 +226,7 @@ async def get_environment( not exist. - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -339,7 +339,7 @@ async def start_environment( StartEnvironmentResponse in its response field. - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -426,7 +426,7 @@ async def authorize_environment( authenticate. - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -511,7 +511,7 @@ async def add_public_key( error with ALREADY_EXISTS. - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -598,7 +598,7 @@ async def remove_public_key( present, this will error with NOT_FOUND. - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 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 6fd6eaa..0d28657 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/client.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -420,8 +420,7 @@ def get_environment( not exist. - - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -525,8 +524,7 @@ def start_environment( StartEnvironmentResponse in its response field. - - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -614,8 +612,7 @@ def authorize_environment( authenticate. - - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -701,8 +698,7 @@ def add_public_key( error with ALREADY_EXISTS. - - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 @@ -790,8 +786,7 @@ def remove_public_key( present, this will error with NOT_FOUND. - - .. code-block:: + .. code-block:: python from google.cloud import shell_v1 diff --git a/google/cloud/shell_v1/services/cloud_shell_service/transports/__init__.py b/google/cloud/shell_v1/services/cloud_shell_service/transports/__init__.py index 4413200..2c11e4b 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/transports/__init__.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/services/cloud_shell_service/transports/base.py b/google/cloud/shell_v1/services/cloud_shell_service/transports/base.py index fece65e..9952e10 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/transports/base.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc.py b/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc.py index e6b7162..5a09b82 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc_asyncio.py b/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc_asyncio.py index 91170ec..e7b3279 100644 --- a/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc_asyncio.py +++ b/google/cloud/shell_v1/services/cloud_shell_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/types/__init__.py b/google/cloud/shell_v1/types/__init__.py index ac7faf9..6ceadcc 100644 --- a/google/cloud/shell_v1/types/__init__.py +++ b/google/cloud/shell_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/shell_v1/types/cloudshell.py b/google/cloud/shell_v1/types/cloudshell.py index 1149a24..8e6662b 100644 --- a/google/cloud/shell_v1/types/cloudshell.py +++ b/google/cloud/shell_v1/types/cloudshell.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py similarity index 88% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_async.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py index d406ada..71c6f61 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_AddPublicKey_async] +# [START cloudshell_v1_generated_CloudShellService_AddPublicKey_async] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ async def sample_add_public_key(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_AddPublicKey_async] +# [END cloudshell_v1_generated_CloudShellService_AddPublicKey_async] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py similarity index 88% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_sync.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py index fb1f870..976bb94 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_AddPublicKey_sync] +# [START cloudshell_v1_generated_CloudShellService_AddPublicKey_sync] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ def sample_add_public_key(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_AddPublicKey_sync] +# [END cloudshell_v1_generated_CloudShellService_AddPublicKey_sync] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py similarity index 87% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_async.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py index 44461ab..0fb03e9 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_AuthorizeEnvironment_async] +# [START cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_async] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ async def sample_authorize_environment(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_AuthorizeEnvironment_async] +# [END cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_async] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py similarity index 87% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_sync.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py index c19bfde..0c0e322 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_AuthorizeEnvironment_sync] +# [START cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_sync] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ def sample_authorize_environment(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_AuthorizeEnvironment_sync] +# [END cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_sync] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_get_environment_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_async.py similarity index 87% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_get_environment_async.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_async.py index e78411d..22d7a1e 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_get_environment_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_GetEnvironment_async] +# [START cloudshell_v1_generated_CloudShellService_GetEnvironment_async] from google.cloud import shell_v1 @@ -42,4 +42,4 @@ async def sample_get_environment(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_GetEnvironment_async] +# [END cloudshell_v1_generated_CloudShellService_GetEnvironment_async] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_get_environment_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py similarity index 87% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_get_environment_sync.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py index 3985550..a850dc4 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_get_environment_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_GetEnvironment_sync] +# [START cloudshell_v1_generated_CloudShellService_GetEnvironment_sync] from google.cloud import shell_v1 @@ -42,4 +42,4 @@ def sample_get_environment(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_GetEnvironment_sync] +# [END cloudshell_v1_generated_CloudShellService_GetEnvironment_sync] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py similarity index 88% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_async.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py index abf5979..b198165 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_RemovePublicKey_async] +# [START cloudshell_v1_generated_CloudShellService_RemovePublicKey_async] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ async def sample_remove_public_key(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_RemovePublicKey_async] +# [END cloudshell_v1_generated_CloudShellService_RemovePublicKey_async] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py similarity index 88% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_sync.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py index 7f1541b..036bba5 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_RemovePublicKey_sync] +# [START cloudshell_v1_generated_CloudShellService_RemovePublicKey_sync] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ def sample_remove_public_key(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_RemovePublicKey_sync] +# [END cloudshell_v1_generated_CloudShellService_RemovePublicKey_sync] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_start_environment_async.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_async.py similarity index 87% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_start_environment_async.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_async.py index 84bb50d..d20a7e2 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_start_environment_async.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_StartEnvironment_async] +# [START cloudshell_v1_generated_CloudShellService_StartEnvironment_async] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ async def sample_start_environment(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_StartEnvironment_async] +# [END cloudshell_v1_generated_CloudShellService_StartEnvironment_async] diff --git a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_start_environment_sync.py b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py similarity index 87% rename from samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_start_environment_sync.py rename to samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py index b3a29f4..773e46d 100644 --- a/samples/generated_samples/cloudshell_generated_shell_v1_cloud_shell_service_start_environment_sync.py +++ b/samples/generated_samples/cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-shell -# [START cloudshell_generated_shell_v1_CloudShellService_StartEnvironment_sync] +# [START cloudshell_v1_generated_CloudShellService_StartEnvironment_sync] from google.cloud import shell_v1 @@ -45,4 +45,4 @@ def sample_start_environment(): # Handle the response print(response) -# [END cloudshell_generated_shell_v1_CloudShellService_StartEnvironment_sync] +# [END cloudshell_v1_generated_CloudShellService_StartEnvironment_sync] diff --git a/samples/generated_samples/snippet_metadata_shell_v1.json b/samples/generated_samples/snippet_metadata_shell_v1.json index 46a9138..c62e83b 100644 --- a/samples/generated_samples/snippet_metadata_shell_v1.json +++ b/samples/generated_samples/snippet_metadata_shell_v1.json @@ -10,8 +10,8 @@ "shortName": "AddPublicKey" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_async.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_AddPublicKey_async", + "file": "cloudshell_v1_generated_cloud_shell_service_add_public_key_async.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_AddPublicKey_async", "segments": [ { "end": 47, @@ -54,8 +54,8 @@ "shortName": "AddPublicKey" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_add_public_key_sync.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_AddPublicKey_sync", + "file": "cloudshell_v1_generated_cloud_shell_service_add_public_key_sync.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_AddPublicKey_sync", "segments": [ { "end": 47, @@ -99,8 +99,8 @@ "shortName": "AuthorizeEnvironment" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_async.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_AuthorizeEnvironment_async", + "file": "cloudshell_v1_generated_cloud_shell_service_authorize_environment_async.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_async", "segments": [ { "end": 47, @@ -143,8 +143,8 @@ "shortName": "AuthorizeEnvironment" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_authorize_environment_sync.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_AuthorizeEnvironment_sync", + "file": "cloudshell_v1_generated_cloud_shell_service_authorize_environment_sync.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_sync", "segments": [ { "end": 47, @@ -188,8 +188,8 @@ "shortName": "GetEnvironment" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_get_environment_async.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_GetEnvironment_async", + "file": "cloudshell_v1_generated_cloud_shell_service_get_environment_async.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_GetEnvironment_async", "segments": [ { "end": 44, @@ -232,8 +232,8 @@ "shortName": "GetEnvironment" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_get_environment_sync.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_GetEnvironment_sync", + "file": "cloudshell_v1_generated_cloud_shell_service_get_environment_sync.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_GetEnvironment_sync", "segments": [ { "end": 44, @@ -277,8 +277,8 @@ "shortName": "RemovePublicKey" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_async.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_RemovePublicKey_async", + "file": "cloudshell_v1_generated_cloud_shell_service_remove_public_key_async.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_RemovePublicKey_async", "segments": [ { "end": 47, @@ -321,8 +321,8 @@ "shortName": "RemovePublicKey" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_remove_public_key_sync.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_RemovePublicKey_sync", + "file": "cloudshell_v1_generated_cloud_shell_service_remove_public_key_sync.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_RemovePublicKey_sync", "segments": [ { "end": 47, @@ -366,8 +366,8 @@ "shortName": "StartEnvironment" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_start_environment_async.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_StartEnvironment_async", + "file": "cloudshell_v1_generated_cloud_shell_service_start_environment_async.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_StartEnvironment_async", "segments": [ { "end": 47, @@ -410,8 +410,8 @@ "shortName": "StartEnvironment" } }, - "file": "cloudshell_generated_shell_v1_cloud_shell_service_start_environment_sync.py", - "regionTag": "cloudshell_generated_shell_v1_CloudShellService_StartEnvironment_sync", + "file": "cloudshell_v1_generated_cloud_shell_service_start_environment_sync.py", + "regionTag": "cloudshell_v1_generated_CloudShellService_StartEnvironment_sync", "segments": [ { "end": 47, diff --git a/scripts/fixup_shell_v1_keywords.py b/scripts/fixup_shell_v1_keywords.py index b5196e2..2b39908 100644 --- a/scripts/fixup_shell_v1_keywords.py +++ b/scripts/fixup_shell_v1_keywords.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/setup.py b/setup.py index 41e426e..048ed98 100644 --- a/setup.py +++ b/setup.py @@ -22,14 +22,14 @@ name = "google-cloud-shell" description = "Cloud Shell API client library" -version = "1.3.1" +version = "1.3.2" release_status = "Development Status :: 5 - Production/Stable" url = "https://github.com/googleapis/python-shell" dependencies = [ # NOTE: Maintainers, please do not require google-api-core>=2.x.x # Until this issue is closed # https://github.com/googleapis/google-cloud-python/issues/10566 - "google-api-core[grpc] >= 1.28.0, <3.0.0dev", + "google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0", "proto-plus >= 1.15.0", ] diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index aff6bee..b666ca6 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -5,5 +5,5 @@ # # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", # Then this file should have foo==1.14.0 -google-api-core==1.28.0 +google-api-core==1.31.5 proto-plus==1.15.0 diff --git a/tests/__init__.py b/tests/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/__init__.py b/tests/unit/gapic/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/unit/gapic/__init__.py +++ b/tests/unit/gapic/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/shell_v1/__init__.py b/tests/unit/gapic/shell_v1/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/unit/gapic/shell_v1/__init__.py +++ b/tests/unit/gapic/shell_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/shell_v1/test_cloud_shell_service.py b/tests/unit/gapic/shell_v1/test_cloud_shell_service.py index f857410..d7f5537 100644 --- a/tests/unit/gapic/shell_v1/test_cloud_shell_service.py +++ b/tests/unit/gapic/shell_v1/test_cloud_shell_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.