diff --git a/packages/google-cloud-language/google/cloud/language/gapic_version.py b/packages/google-cloud-language/google/cloud/language/gapic_version.py index 7dee3143e713..360a0d13ebdd 100644 --- a/packages/google-cloud-language/google/cloud/language/gapic_version.py +++ b/packages/google-cloud-language/google/cloud/language/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.11.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-language/google/cloud/language_v1/gapic_version.py b/packages/google-cloud-language/google/cloud/language_v1/gapic_version.py index 7dee3143e713..360a0d13ebdd 100644 --- a/packages/google-cloud-language/google/cloud/language_v1/gapic_version.py +++ b/packages/google-cloud-language/google/cloud/language_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.11.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-language/google/cloud/language_v1/types/language_service.py b/packages/google-cloud-language/google/cloud/language_v1/types/language_service.py index a47ecb8147ed..8ac41c3bbf1b 100644 --- a/packages/google-cloud-language/google/cloud/language_v1/types/language_service.py +++ b/packages/google-cloud-language/google/cloud/language_v1/types/language_service.py @@ -286,6 +286,7 @@ class Type(proto.Enum): - ``day`` - two digit day number, if detected NUMBER (12): Number + The metadata is the number itself. PRICE (13): Price diff --git a/packages/google-cloud-language/google/cloud/language_v1beta2/gapic_version.py b/packages/google-cloud-language/google/cloud/language_v1beta2/gapic_version.py index 7dee3143e713..360a0d13ebdd 100644 --- a/packages/google-cloud-language/google/cloud/language_v1beta2/gapic_version.py +++ b/packages/google-cloud-language/google/cloud/language_v1beta2/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.11.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-language/google/cloud/language_v1beta2/types/language_service.py b/packages/google-cloud-language/google/cloud/language_v1beta2/types/language_service.py index db4e858b9f24..45b390274906 100644 --- a/packages/google-cloud-language/google/cloud/language_v1beta2/types/language_service.py +++ b/packages/google-cloud-language/google/cloud/language_v1beta2/types/language_service.py @@ -322,6 +322,7 @@ class Type(proto.Enum): - ``day`` - two digit day number, if detected NUMBER (12): Number + The metadata is the number itself. PRICE (13): Price diff --git a/packages/google-cloud-language/google/cloud/language_v2/gapic_version.py b/packages/google-cloud-language/google/cloud/language_v2/gapic_version.py index 7dee3143e713..360a0d13ebdd 100644 --- a/packages/google-cloud-language/google/cloud/language_v2/gapic_version.py +++ b/packages/google-cloud-language/google/cloud/language_v2/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.11.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-language/google/cloud/language_v2/types/language_service.py b/packages/google-cloud-language/google/cloud/language_v2/types/language_service.py index 923476270da0..96c728dd4333 100644 --- a/packages/google-cloud-language/google/cloud/language_v2/types/language_service.py +++ b/packages/google-cloud-language/google/cloud/language_v2/types/language_service.py @@ -270,6 +270,7 @@ class Type(proto.Enum): - ``day`` - two digit day number, if detected NUMBER (12): Number + The metadata is the number itself. PRICE (13): Price diff --git a/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1.json b/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1.json index 3e5e8eb8e13b..4e481f59df7e 100644 --- a/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1.json +++ b/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-language", - "version": "2.11.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1beta2.json b/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1beta2.json index f68e4a95295f..fb6633f26470 100644 --- a/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1beta2.json +++ b/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1beta2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-language", - "version": "2.11.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v2.json b/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v2.json index adea30727d24..e25172b52357 100644 --- a/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v2.json +++ b/packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-language", - "version": "2.11.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-life-sciences/.flake8 b/packages/google-cloud-life-sciences/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-life-sciences/.flake8 +++ b/packages/google-cloud-life-sciences/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-life-sciences/CONTRIBUTING.rst b/packages/google-cloud-life-sciences/CONTRIBUTING.rst index e747f310b627..a92b5ff3571d 100644 --- a/packages/google-cloud-life-sciences/CONTRIBUTING.rst +++ b/packages/google-cloud-life-sciences/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-life-sciences/noxfile.py ********** diff --git a/packages/google-cloud-life-sciences/MANIFEST.in b/packages/google-cloud-life-sciences/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-life-sciences/MANIFEST.in +++ b/packages/google-cloud-life-sciences/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-life-sciences/README.rst b/packages/google-cloud-life-sciences/README.rst index 797c63d66abc..83ac6d4c1a8c 100644 --- a/packages/google-cloud-life-sciences/README.rst +++ b/packages/google-cloud-life-sciences/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-life-sciences/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-life-sciences + pip install google-cloud-life-sciences Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-life-sciences + py -m venv + .\\Scripts\activate + pip install google-cloud-life-sciences Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-life-sciences/docs/conf.py b/packages/google-cloud-life-sciences/docs/conf.py index 2ffd6064e06d..f7d6ba39f5dd 100644 --- a/packages/google-cloud-life-sciences/docs/conf.py +++ b/packages/google-cloud-life-sciences/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/async_client.py b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/async_client.py index e52156779afb..6aae8c90c2fb 100644 --- a/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/async_client.py +++ b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.lifesciences_v2beta.types import workflows diff --git a/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py index d472abaf4d39..1e7e35a2a4e5 100644 --- a/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py +++ b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.lifesciences_v2beta.types import workflows diff --git a/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/rest.py b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/rest.py index 31483a0a72b8..3e7050541f57 100644 --- a/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/rest.py +++ b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/types/workflows.py b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/types/workflows.py index 3019aec0c2aa..980c5fb21587 100644 --- a/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/types/workflows.py +++ b/packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/types/workflows.py @@ -339,6 +339,7 @@ class Action(proto.Message): prevent typos in URIs or issues like lack of disk space from wasting large amounts of compute resources. + If set, this flag prevents the worker from downloading the image until just before the action is executed. @@ -498,6 +499,7 @@ class Mount(proto.Message): class Resources(proto.Message): r"""The system resources for the pipeline run. + At least one zone or region must be specified or the pipeline run will fail. @@ -583,6 +585,7 @@ class VirtualMachine(proto.Message): This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact. + For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. @@ -920,6 +923,7 @@ class Volume(proto.Message): class PersistentDisk(proto.Message): r"""Configuration for a persistent disk to be attached to the VM. + See https://cloud.google.com/compute/docs/disks/performance for more information about disk type, size, and performance considerations. diff --git a/packages/google-cloud-life-sciences/noxfile.py b/packages/google-cloud-life-sciences/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-life-sciences/noxfile.py +++ b/packages/google-cloud-life-sciences/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-life-sciences/scripts/decrypt-secrets.sh b/packages/google-cloud-life-sciences/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-life-sciences/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-life-sciences/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-life-sciences/tests/unit/gapic/lifesciences_v2beta/test_workflows_service_v2_beta.py b/packages/google-cloud-life-sciences/tests/unit/gapic/lifesciences_v2beta/test_workflows_service_v2_beta.py index 83ecfa69612e..854375db384c 100644 --- a/packages/google-cloud-life-sciences/tests/unit/gapic/lifesciences_v2beta/test_workflows_service_v2_beta.py +++ b/packages/google-cloud-life-sciences/tests/unit/gapic/lifesciences_v2beta/test_workflows_service_v2_beta.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import json_format diff --git a/packages/google-cloud-managed-identities/.flake8 b/packages/google-cloud-managed-identities/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-managed-identities/.flake8 +++ b/packages/google-cloud-managed-identities/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-managed-identities/CONTRIBUTING.rst b/packages/google-cloud-managed-identities/CONTRIBUTING.rst index ee4b16e49dab..b78627032e08 100644 --- a/packages/google-cloud-managed-identities/CONTRIBUTING.rst +++ b/packages/google-cloud-managed-identities/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-managed-identities/noxfile.py ********** diff --git a/packages/google-cloud-managed-identities/MANIFEST.in b/packages/google-cloud-managed-identities/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-managed-identities/MANIFEST.in +++ b/packages/google-cloud-managed-identities/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-managed-identities/README.rst b/packages/google-cloud-managed-identities/README.rst index 69806630099a..ce02c5185785 100644 --- a/packages/google-cloud-managed-identities/README.rst +++ b/packages/google-cloud-managed-identities/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-managed-identities/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-managed-identities + pip install google-cloud-managed-identities Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-managed-identities + py -m venv + .\\Scripts\activate + pip install google-cloud-managed-identities Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-managed-identities/docs/conf.py b/packages/google-cloud-managed-identities/docs/conf.py index e4d9b6205325..77f413575256 100644 --- a/packages/google-cloud-managed-identities/docs/conf.py +++ b/packages/google-cloud-managed-identities/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-managed-identities/noxfile.py b/packages/google-cloud-managed-identities/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-managed-identities/noxfile.py +++ b/packages/google-cloud-managed-identities/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-managed-identities/scripts/decrypt-secrets.sh b/packages/google-cloud-managed-identities/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-managed-identities/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-managed-identities/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-managed-identities/tests/unit/gapic/managedidentities_v1/test_managed_identities_service.py b/packages/google-cloud-managed-identities/tests/unit/gapic/managedidentities_v1/test_managed_identities_service.py index b0ec173e3bba..aa2466113427 100644 --- a/packages/google-cloud-managed-identities/tests/unit/gapic/managedidentities_v1/test_managed_identities_service.py +++ b/packages/google-cloud-managed-identities/tests/unit/gapic/managedidentities_v1/test_managed_identities_service.py @@ -39,7 +39,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-media-translation/.flake8 b/packages/google-cloud-media-translation/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-media-translation/.flake8 +++ b/packages/google-cloud-media-translation/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-media-translation/CONTRIBUTING.rst b/packages/google-cloud-media-translation/CONTRIBUTING.rst index 81d7a34e1465..ef176f650c6b 100644 --- a/packages/google-cloud-media-translation/CONTRIBUTING.rst +++ b/packages/google-cloud-media-translation/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-media-translation/noxfile.py ********** diff --git a/packages/google-cloud-media-translation/MANIFEST.in b/packages/google-cloud-media-translation/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-media-translation/MANIFEST.in +++ b/packages/google-cloud-media-translation/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-media-translation/README.rst b/packages/google-cloud-media-translation/README.rst index b8e2f8322edb..de764ec930b8 100644 --- a/packages/google-cloud-media-translation/README.rst +++ b/packages/google-cloud-media-translation/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-media-translation/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-media-translation + pip install google-cloud-media-translation Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-media-translation + py -m venv + .\\Scripts\activate + pip install google-cloud-media-translation Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-media-translation/docs/conf.py b/packages/google-cloud-media-translation/docs/conf.py index e4b71c765269..e13e16a5ee2e 100644 --- a/packages/google-cloud-media-translation/docs/conf.py +++ b/packages/google-cloud-media-translation/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/async_client.py b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/async_client.py index 1648d5dc04f0..19eb9595aef6 100644 --- a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/async_client.py +++ b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/async_client.py @@ -232,9 +232,8 @@ def streaming_translate_speech( metadata: Sequence[Tuple[str, str]] = (), ) -> Awaitable[AsyncIterable[media_translation.StreamingTranslateSpeechResponse]]: r"""Performs bidirectional streaming speech translation: - receive results while - sending audio. This method is only available via the - gRPC API (not REST). + receive results while sending audio. This method is only + available via the gRPC API (not REST). .. code-block:: python diff --git a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/client.py b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/client.py index 120e364dc4c6..a12c733a5c9b 100644 --- a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/client.py +++ b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/client.py @@ -433,9 +433,8 @@ def streaming_translate_speech( metadata: Sequence[Tuple[str, str]] = (), ) -> Iterable[media_translation.StreamingTranslateSpeechResponse]: r"""Performs bidirectional streaming speech translation: - receive results while - sending audio. This method is only available via the - gRPC API (not REST). + receive results while sending audio. This method is only + available via the gRPC API (not REST). .. code-block:: python diff --git a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc.py b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc.py index c951c036bf8f..bbad4a97c357 100644 --- a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc.py +++ b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc.py @@ -238,9 +238,8 @@ def streaming_translate_speech( r"""Return a callable for the streaming translate speech method over gRPC. Performs bidirectional streaming speech translation: - receive results while - sending audio. This method is only available via the - gRPC API (not REST). + receive results while sending audio. This method is only + available via the gRPC API (not REST). Returns: Callable[[~.StreamingTranslateSpeechRequest], diff --git a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc_asyncio.py b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc_asyncio.py index ad05b5ce1205..8fea89cf4395 100644 --- a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc_asyncio.py +++ b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc_asyncio.py @@ -241,9 +241,8 @@ def streaming_translate_speech( r"""Return a callable for the streaming translate speech method over gRPC. Performs bidirectional streaming speech translation: - receive results while - sending audio. This method is only available via the - gRPC API (not REST). + receive results while sending audio. This method is only + available via the gRPC API (not REST). Returns: Callable[[~.StreamingTranslateSpeechRequest], diff --git a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/types/media_translation.py b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/types/media_translation.py index 28c5b4ba3195..2edb42a4c4c5 100644 --- a/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/types/media_translation.py +++ b/packages/google-cloud-media-translation/google/cloud/mediatranslation_v1beta1/types/media_translation.py @@ -88,13 +88,11 @@ class TranslateSpeechConfig(proto.Message): the output. sample_rate_hertz (int): Optional. Sample rate in Hertz of the audio - data. Valid values are: - - 8000-48000. 16000 is optimal. For best results, - set the sampling rate of the audio source to - 16000 Hz. If that's not possible, use the native - sample rate of the audio source (instead of - re-sampling). + data. Valid values are: 8000-48000. 16000 is + optimal. For best results, set the sampling rate + of the audio source to 16000 Hz. If that's not + possible, use the native sample rate of the + audio source (instead of re-sampling). model (str): Optional. ``google-provided-model/video`` and ``google-provided-model/enhanced-phone-call`` are premium diff --git a/packages/google-cloud-media-translation/noxfile.py b/packages/google-cloud-media-translation/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-media-translation/noxfile.py +++ b/packages/google-cloud-media-translation/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-media-translation/scripts/decrypt-secrets.sh b/packages/google-cloud-media-translation/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-media-translation/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-media-translation/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-memcache/.flake8 b/packages/google-cloud-memcache/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-memcache/.flake8 +++ b/packages/google-cloud-memcache/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-memcache/CONTRIBUTING.rst b/packages/google-cloud-memcache/CONTRIBUTING.rst index 156314536041..e25664fd7208 100644 --- a/packages/google-cloud-memcache/CONTRIBUTING.rst +++ b/packages/google-cloud-memcache/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-memcache/noxfile.py ********** diff --git a/packages/google-cloud-memcache/MANIFEST.in b/packages/google-cloud-memcache/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-memcache/MANIFEST.in +++ b/packages/google-cloud-memcache/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-memcache/README.rst b/packages/google-cloud-memcache/README.rst index 090b27c3a032..d06495b9d814 100644 --- a/packages/google-cloud-memcache/README.rst +++ b/packages/google-cloud-memcache/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-memcache/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-memcache + pip install google-cloud-memcache Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-memcache + py -m venv + .\\Scripts\activate + pip install google-cloud-memcache Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-memcache/docs/conf.py b/packages/google-cloud-memcache/docs/conf.py index e5a559e0afd0..97343c6241bb 100644 --- a/packages/google-cloud-memcache/docs/conf.py +++ b/packages/google-cloud-memcache/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/async_client.py b/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/async_client.py index bb36b3286187..a41f2d8eada2 100644 --- a/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/async_client.py +++ b/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/client.py b/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/client.py index 7f77dfc2fdc0..65d1fbd90fb4 100644 --- a/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/client.py +++ b/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/transports/rest.py b/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/transports/rest.py index c56cd724015e..27b6f2a816e4 100644 --- a/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/transports/rest.py +++ b/packages/google-cloud-memcache/google/cloud/memcache_v1/services/cloud_memcache/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/async_client.py b/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/async_client.py index 64e0f7a5f32c..d554d364fb30 100644 --- a/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/async_client.py +++ b/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/client.py b/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/client.py index 6dbd85bb2761..42d866f4fd4b 100644 --- a/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/client.py +++ b/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/transports/rest.py b/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/transports/rest.py index 3243f5a5cf58..e5c04cf497fd 100644 --- a/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/transports/rest.py +++ b/packages/google-cloud-memcache/google/cloud/memcache_v1beta2/services/cloud_memcache/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-memcache/noxfile.py b/packages/google-cloud-memcache/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-memcache/noxfile.py +++ b/packages/google-cloud-memcache/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-memcache/scripts/decrypt-secrets.sh b/packages/google-cloud-memcache/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-memcache/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-memcache/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1/test_cloud_memcache.py b/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1/test_cloud_memcache.py index e642c91d4ca8..e13aa70ca8f4 100644 --- a/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1/test_cloud_memcache.py +++ b/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1/test_cloud_memcache.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1beta2/test_cloud_memcache.py b/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1beta2/test_cloud_memcache.py index 347ce7593485..9bba354f4826 100644 --- a/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1beta2/test_cloud_memcache.py +++ b/packages/google-cloud-memcache/tests/unit/gapic/memcache_v1beta2/test_cloud_memcache.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/packages/google-cloud-migrationcenter/.flake8 b/packages/google-cloud-migrationcenter/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-migrationcenter/.flake8 +++ b/packages/google-cloud-migrationcenter/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-migrationcenter/CONTRIBUTING.rst b/packages/google-cloud-migrationcenter/CONTRIBUTING.rst index 569b424631bc..4ee20948f33f 100644 --- a/packages/google-cloud-migrationcenter/CONTRIBUTING.rst +++ b/packages/google-cloud-migrationcenter/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-migrationcenter/noxfile.py ********** diff --git a/packages/google-cloud-migrationcenter/MANIFEST.in b/packages/google-cloud-migrationcenter/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-migrationcenter/MANIFEST.in +++ b/packages/google-cloud-migrationcenter/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-migrationcenter/README.rst b/packages/google-cloud-migrationcenter/README.rst index acd0355158d9..38210f816551 100644 --- a/packages/google-cloud-migrationcenter/README.rst +++ b/packages/google-cloud-migrationcenter/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-migrationcenter/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-migrationcenter + pip install google-cloud-migrationcenter Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-migrationcenter + py -m venv + .\\Scripts\activate + pip install google-cloud-migrationcenter Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-migrationcenter/docs/conf.py b/packages/google-cloud-migrationcenter/docs/conf.py index 86cc661da889..54f22dd26e75 100644 --- a/packages/google-cloud-migrationcenter/docs/conf.py +++ b/packages/google-cloud-migrationcenter/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/async_client.py b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/async_client.py index 8e1b22dd2405..5677c7bb01bf 100644 --- a/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/async_client.py +++ b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -302,6 +302,7 @@ async def sample_list_assets(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListAssetsAsyncPager: Response message for listing assets. + Iterating over this object will yield results and resolve additional pages automatically. @@ -1228,6 +1229,7 @@ async def sample_list_import_jobs(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListImportJobsAsyncPager: A response for listing import jobs. + Iterating over this object will yield results and resolve additional pages automatically. @@ -2423,6 +2425,7 @@ async def sample_list_groups(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListGroupsAsyncPager: A response for listing groups. + Iterating over this object will yield results and resolve additional pages automatically. @@ -3279,6 +3282,7 @@ async def sample_list_error_frames(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListErrorFramesAsyncPager: A response for listing error frames. + Iterating over this object will yield results and resolve additional pages automatically. @@ -3492,6 +3496,7 @@ async def sample_list_sources(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListSourcesAsyncPager: Response message for listing sources. + Iterating over this object will yield results and resolve additional pages automatically. @@ -5656,6 +5661,7 @@ async def sample_list_reports(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListReportsAsyncPager: Response message for listing Reports. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/client.py b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/client.py index 6d49b09e5161..1c9e4ff21889 100644 --- a/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/client.py +++ b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -708,6 +708,7 @@ def sample_list_assets(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListAssetsPager: Response message for listing assets. + Iterating over this object will yield results and resolve additional pages automatically. @@ -1636,6 +1637,7 @@ def sample_list_import_jobs(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListImportJobsPager: A response for listing import jobs. + Iterating over this object will yield results and resolve additional pages automatically. @@ -2831,6 +2833,7 @@ def sample_list_groups(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListGroupsPager: A response for listing groups. + Iterating over this object will yield results and resolve additional pages automatically. @@ -3687,6 +3690,7 @@ def sample_list_error_frames(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListErrorFramesPager: A response for listing error frames. + Iterating over this object will yield results and resolve additional pages automatically. @@ -3900,6 +3904,7 @@ def sample_list_sources(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListSourcesPager: Response message for listing sources. + Iterating over this object will yield results and resolve additional pages automatically. @@ -6064,6 +6069,7 @@ def sample_list_reports(): Returns: google.cloud.migrationcenter_v1.services.migration_center.pagers.ListReportsPager: Response message for listing Reports. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/transports/rest.py b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/transports/rest.py index 6517df14adf0..2fc06ac025ab 100644 --- a/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/transports/rest.py +++ b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/services/migration_center/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/types/migrationcenter.py b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/types/migrationcenter.py index 4f4c67337846..85d9c4e83628 100644 --- a/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/types/migrationcenter.py +++ b/packages/google-cloud-migrationcenter/google/cloud/migrationcenter_v1/types/migrationcenter.py @@ -1312,6 +1312,7 @@ class UpdateAssetRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1320,6 +1321,7 @@ class UpdateAssetRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1395,6 +1397,7 @@ class DeleteAssetRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1403,6 +1406,7 @@ class DeleteAssetRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1543,6 +1547,7 @@ class CreateImportJobRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1551,6 +1556,7 @@ class CreateImportJobRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1693,6 +1699,7 @@ class DeleteImportJobRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1701,6 +1708,7 @@ class DeleteImportJobRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1744,6 +1752,7 @@ class UpdateImportJobRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1752,6 +1761,7 @@ class UpdateImportJobRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1787,6 +1797,7 @@ class ValidateImportJobRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1795,6 +1806,7 @@ class ValidateImportJobRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1823,6 +1835,7 @@ class RunImportJobRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1831,6 +1844,7 @@ class RunImportJobRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1962,6 +1976,7 @@ class CreateImportDataFileRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -1970,6 +1985,7 @@ class CreateImportDataFileRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2008,6 +2024,7 @@ class DeleteImportDataFileRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2016,6 +2033,7 @@ class DeleteImportDataFileRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2142,6 +2160,7 @@ class CreateGroupRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2150,6 +2169,7 @@ class CreateGroupRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2194,6 +2214,7 @@ class UpdateGroupRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2202,6 +2223,7 @@ class UpdateGroupRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2236,6 +2258,7 @@ class DeleteGroupRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2244,6 +2267,7 @@ class DeleteGroupRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2272,6 +2296,7 @@ class AddAssetsToGroupRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2280,6 +2305,7 @@ class AddAssetsToGroupRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2329,6 +2355,7 @@ class RemoveAssetsFromGroupRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2337,6 +2364,7 @@ class RemoveAssetsFromGroupRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2578,6 +2606,7 @@ class CreateSourceRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2586,6 +2615,7 @@ class CreateSourceRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2630,6 +2660,7 @@ class UpdateSourceRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2638,6 +2669,7 @@ class UpdateSourceRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2672,6 +2704,7 @@ class DeleteSourceRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2680,6 +2713,7 @@ class DeleteSourceRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2803,6 +2837,7 @@ class CreatePreferenceSetRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2811,6 +2846,7 @@ class CreatePreferenceSetRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2856,6 +2892,7 @@ class UpdatePreferenceSetRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2864,6 +2901,7 @@ class UpdatePreferenceSetRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2898,6 +2936,7 @@ class DeletePreferenceSetRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2906,6 +2945,7 @@ class DeletePreferenceSetRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -2956,6 +2996,7 @@ class UpdateSettingsRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -2964,6 +3005,7 @@ class UpdateSettingsRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -3008,6 +3050,7 @@ class CreateReportConfigRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -3016,6 +3059,7 @@ class CreateReportConfigRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -3053,6 +3097,7 @@ class DeleteReportConfigRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -3061,6 +3106,7 @@ class DeleteReportConfigRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -3202,6 +3248,7 @@ class DeleteReportRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -3210,6 +3257,7 @@ class DeleteReportRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -3336,6 +3384,7 @@ class CreateReportRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -3344,6 +3393,7 @@ class CreateReportRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). diff --git a/packages/google-cloud-migrationcenter/noxfile.py b/packages/google-cloud-migrationcenter/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-migrationcenter/noxfile.py +++ b/packages/google-cloud-migrationcenter/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-migrationcenter/scripts/decrypt-secrets.sh b/packages/google-cloud-migrationcenter/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-migrationcenter/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-migrationcenter/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-migrationcenter/tests/unit/gapic/migrationcenter_v1/test_migration_center.py b/packages/google-cloud-migrationcenter/tests/unit/gapic/migrationcenter_v1/test_migration_center.py index ae058d6e707e..f64a16152dba 100644 --- a/packages/google-cloud-migrationcenter/tests/unit/gapic/migrationcenter_v1/test_migration_center.py +++ b/packages/google-cloud-migrationcenter/tests/unit/gapic/migrationcenter_v1/test_migration_center.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-monitoring-metrics-scopes/.flake8 b/packages/google-cloud-monitoring-metrics-scopes/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-monitoring-metrics-scopes/.flake8 +++ b/packages/google-cloud-monitoring-metrics-scopes/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-monitoring-metrics-scopes/CONTRIBUTING.rst b/packages/google-cloud-monitoring-metrics-scopes/CONTRIBUTING.rst index a35e447cbfe0..9e2d6b652eb0 100644 --- a/packages/google-cloud-monitoring-metrics-scopes/CONTRIBUTING.rst +++ b/packages/google-cloud-monitoring-metrics-scopes/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-monitoring-metrics-scopes/noxfile.py ********** diff --git a/packages/google-cloud-monitoring-metrics-scopes/MANIFEST.in b/packages/google-cloud-monitoring-metrics-scopes/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-monitoring-metrics-scopes/MANIFEST.in +++ b/packages/google-cloud-monitoring-metrics-scopes/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-monitoring-metrics-scopes/README.rst b/packages/google-cloud-monitoring-metrics-scopes/README.rst index 4cb58ecff41b..b20d0d0b48c4 100644 --- a/packages/google-cloud-monitoring-metrics-scopes/README.rst +++ b/packages/google-cloud-monitoring-metrics-scopes/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-monitoring-metrics-scopes/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-monitoring-metrics-scopes + pip install google-cloud-monitoring-metrics-scopes Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-monitoring-metrics-scopes + py -m venv + .\\Scripts\activate + pip install google-cloud-monitoring-metrics-scopes Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-monitoring-metrics-scopes/docs/conf.py b/packages/google-cloud-monitoring-metrics-scopes/docs/conf.py index c846c6971ef7..c19573bf2e52 100644 --- a/packages/google-cloud-monitoring-metrics-scopes/docs/conf.py +++ b/packages/google-cloud-monitoring-metrics-scopes/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-monitoring-metrics-scopes/noxfile.py b/packages/google-cloud-monitoring-metrics-scopes/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-monitoring-metrics-scopes/noxfile.py +++ b/packages/google-cloud-monitoring-metrics-scopes/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-monitoring-metrics-scopes/scripts/decrypt-secrets.sh b/packages/google-cloud-monitoring-metrics-scopes/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-monitoring-metrics-scopes/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-monitoring-metrics-scopes/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-monitoring-metrics-scopes/tests/unit/gapic/monitoring_metrics_scope_v1/test_metrics_scopes.py b/packages/google-cloud-monitoring-metrics-scopes/tests/unit/gapic/monitoring_metrics_scope_v1/test_metrics_scopes.py index 93db72364028..ce955c8dac38 100644 --- a/packages/google-cloud-monitoring-metrics-scopes/tests/unit/gapic/monitoring_metrics_scope_v1/test_metrics_scopes.py +++ b/packages/google-cloud-monitoring-metrics-scopes/tests/unit/gapic/monitoring_metrics_scope_v1/test_metrics_scopes.py @@ -39,7 +39,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py b/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py index 14bfd0fce7ce..360a0d13ebdd 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py +++ b/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.3.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py index 14bfd0fce7ce..360a0d13ebdd 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.3.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py index f4459f9a343e..41dc69fee083 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py index 38962bad39e9..223bbfc2db74 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/transports/rest.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/transports/rest.py index 84e7fd1937a3..cc4493e69742 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/transports/rest.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py index 930f952bdc85..8c426b2e75f9 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py @@ -890,8 +890,7 @@ class DailySchedule(proto.Message): class WeeklySchedule(proto.Message): r"""Make a snapshot every week e.g. at Monday 04:00, Wednesday - 05:20, Sunday - 23:50 + 05:20, Sunday 23:50 .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields diff --git a/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json b/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json index ba016340704a..ce7f517963cb 100644 --- a/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json +++ b/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-netapp", - "version": "0.3.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py b/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py index 7283a2363c7f..d2625d1bea3c 100644 --- a/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py +++ b/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/packages/google-cloud-network-connectivity/.flake8 b/packages/google-cloud-network-connectivity/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-network-connectivity/.flake8 +++ b/packages/google-cloud-network-connectivity/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-network-connectivity/CONTRIBUTING.rst b/packages/google-cloud-network-connectivity/CONTRIBUTING.rst index c8c55d43f4eb..3b04ec8f9869 100644 --- a/packages/google-cloud-network-connectivity/CONTRIBUTING.rst +++ b/packages/google-cloud-network-connectivity/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-network-connectivity/noxfile.py ********** diff --git a/packages/google-cloud-network-connectivity/MANIFEST.in b/packages/google-cloud-network-connectivity/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-network-connectivity/MANIFEST.in +++ b/packages/google-cloud-network-connectivity/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-network-connectivity/README.rst b/packages/google-cloud-network-connectivity/README.rst index 31eafa85992f..7d9f75315afd 100644 --- a/packages/google-cloud-network-connectivity/README.rst +++ b/packages/google-cloud-network-connectivity/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-network-connectivity/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-network-connectivity + pip install google-cloud-network-connectivity Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-network-connectivity + py -m venv + .\\Scripts\activate + pip install google-cloud-network-connectivity Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-network-connectivity/docs/conf.py b/packages/google-cloud-network-connectivity/docs/conf.py index df1fbc1b2db5..ea1d22ac0f2e 100644 --- a/packages/google-cloud-network-connectivity/docs/conf.py +++ b/packages/google-cloud-network-connectivity/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/async_client.py b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/async_client.py index 877959cf00b1..2405607efaf4 100644 --- a/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/async_client.py +++ b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/async_client.py @@ -47,7 +47,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/client.py b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/client.py index 7185831a9046..f3449ed811a4 100644 --- a/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/client.py +++ b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/client.py @@ -51,7 +51,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/types/hub.py b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/types/hub.py index 68d46ff7f3bf..3155d6e271d5 100644 --- a/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/types/hub.py +++ b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/types/hub.py @@ -425,6 +425,7 @@ class CreateHubRequest(proto.Message): server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. + The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -482,6 +483,7 @@ class UpdateHubRequest(proto.Message): server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. + The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -527,6 +529,7 @@ class DeleteHubRequest(proto.Message): server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. + The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -660,6 +663,7 @@ class CreateSpokeRequest(proto.Message): server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. + The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -717,6 +721,7 @@ class UpdateSpokeRequest(proto.Message): server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. + The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -762,6 +767,7 @@ class DeleteSpokeRequest(proto.Message): server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. + The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). diff --git a/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1alpha1/types/hub.py b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1alpha1/types/hub.py index a68148d078a0..109ad2eb0fab 100644 --- a/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1alpha1/types/hub.py +++ b/packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1alpha1/types/hub.py @@ -337,6 +337,7 @@ class CreateHubRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same @@ -345,6 +346,7 @@ class CreateHubRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -392,6 +394,7 @@ class UpdateHubRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same @@ -400,6 +403,7 @@ class UpdateHubRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -435,6 +439,7 @@ class DeleteHubRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same @@ -443,6 +448,7 @@ class DeleteHubRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -567,6 +573,7 @@ class CreateSpokeRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same @@ -575,6 +582,7 @@ class CreateSpokeRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -622,6 +630,7 @@ class UpdateSpokeRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same @@ -630,6 +639,7 @@ class UpdateSpokeRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -665,6 +675,7 @@ class DeleteSpokeRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same @@ -673,6 +684,7 @@ class DeleteSpokeRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). diff --git a/packages/google-cloud-network-connectivity/noxfile.py b/packages/google-cloud-network-connectivity/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-network-connectivity/noxfile.py +++ b/packages/google-cloud-network-connectivity/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-network-connectivity/scripts/decrypt-secrets.sh b/packages/google-cloud-network-connectivity/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-network-connectivity/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-network-connectivity/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1/test_hub_service.py b/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1/test_hub_service.py index c25356c127a7..f3c5f84be2c2 100644 --- a/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1/test_hub_service.py +++ b/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1/test_hub_service.py @@ -43,7 +43,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1alpha1/test_hub_service.py b/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1alpha1/test_hub_service.py index 40489c6fa185..e14ead38ae6e 100644 --- a/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1alpha1/test_hub_service.py +++ b/packages/google-cloud-network-connectivity/tests/unit/gapic/networkconnectivity_v1alpha1/test_hub_service.py @@ -39,7 +39,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-network-management/google/cloud/network_management/gapic_version.py b/packages/google-cloud-network-management/google/cloud/network_management/gapic_version.py index 4316e0e5df1f..360a0d13ebdd 100644 --- a/packages/google-cloud-network-management/google/cloud/network_management/gapic_version.py +++ b/packages/google-cloud-network-management/google/cloud/network_management/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.11.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-network-management/google/cloud/network_management_v1/gapic_version.py b/packages/google-cloud-network-management/google/cloud/network_management_v1/gapic_version.py index 4316e0e5df1f..360a0d13ebdd 100644 --- a/packages/google-cloud-network-management/google/cloud/network_management_v1/gapic_version.py +++ b/packages/google-cloud-network-management/google/cloud/network_management_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.11.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-network-management/google/cloud/network_management_v1/types/connectivity_test.py b/packages/google-cloud-network-management/google/cloud/network_management_v1/types/connectivity_test.py index dcce256a22fc..946e4ed1bef3 100644 --- a/packages/google-cloud-network-management/google/cloud/network_management_v1/types/connectivity_test.py +++ b/packages/google-cloud-network-management/google/cloud/network_management_v1/types/connectivity_test.py @@ -62,6 +62,7 @@ class ConnectivityTest(proto.Message): the VPC network. Otherwise, specify the VM instance, which already contains its internal IP address and VPC network information. + If the source of the test is within an on-premises network, then you must provide the destination VPC network. @@ -71,6 +72,7 @@ class ConnectivityTest(proto.Message): instance itself is not sufficient to identify the endpoint. So, you must also specify the source IP address or VPC network. + A reachability analysis proceeds even if the source location is ambiguous. However, the test result may include endpoints that you don't @@ -262,13 +264,12 @@ class Endpoint(proto.Message): provide the project ID: 1. Only the IP address is specified, and the IP - address is within a Google Cloud project. + address is within a Google Cloud project. 2. When you are using Shared VPC and the IP - address that you provide is from the service - project. In this case, the network that the IP - address resides in is defined in the host - project. - + address that you provide is from the service + project. In this case, the network that the + IP address resides in is defined in the host + project. """ class NetworkType(proto.Enum): @@ -581,9 +582,8 @@ class ProbingDetails(proto.Message): from the test input and used for active probing. probing_latency (google.cloud.network_management_v1.types.LatencyDistribution): Latency as measured by active probing in one - direction: - - from the source to the destination endpoint. + direction: from the source to the destination + endpoint. destination_egress_location (google.cloud.network_management_v1.types.ProbingDetails.EdgeLocation): The EdgeLocation from which a packet destined for/originating from the internet will egress/ingress the diff --git a/packages/google-cloud-network-management/google/cloud/network_management_v1/types/trace.py b/packages/google-cloud-network-management/google/cloud/network_management_v1/types/trace.py index dcd210910a3e..594e65f189b1 100644 --- a/packages/google-cloud-network-management/google/cloud/network_management_v1/types/trace.py +++ b/packages/google-cloud-network-management/google/cloud/network_management_v1/types/trace.py @@ -121,6 +121,7 @@ class Trace(proto.Message): A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted). + The steps are ordered by the processing sequence within the simulated network state machine. It is critical to preserve the order of the steps @@ -272,52 +273,44 @@ class State(proto.Enum): Unspecified state. START_FROM_INSTANCE (1): Initial state: packet originating from a - Compute Engine instance. - An InstanceInfo is populated with starting - instance information. + Compute Engine instance. An InstanceInfo is + populated with starting instance information. START_FROM_INTERNET (2): Initial state: packet originating from the - internet. - The endpoint information is populated. + internet. The endpoint information is populated. START_FROM_GOOGLE_SERVICE (27): Initial state: packet originating from a - Google service. Some Google - services, such as health check probers or - Identity Aware Proxy use special routes, outside - VPC routing configuration to reach Compute - Engine Instances. + Google service. Some Google services, such as + health check probers or Identity Aware Proxy use + special routes, outside VPC routing + configuration to reach Compute Engine Instances. START_FROM_PRIVATE_NETWORK (3): Initial state: packet originating from a VPC - or on-premises network - with internal source IP. + or on-premises network with internal source IP. If the source is a VPC network visible to the user, a NetworkInfo is populated with details of the network. START_FROM_GKE_MASTER (21): Initial state: packet originating from a - Google Kubernetes Engine cluster - master. A GKEMasterInfo is populated with - starting instance information. + Google Kubernetes Engine cluster master. A + GKEMasterInfo is populated with starting + instance information. START_FROM_CLOUD_SQL_INSTANCE (22): Initial state: packet originating from a - Cloud SQL instance. - A CloudSQLInstanceInfo is populated with - starting instance information. + Cloud SQL instance. A CloudSQLInstanceInfo is + populated with starting instance information. START_FROM_CLOUD_FUNCTION (23): Initial state: packet originating from a - Cloud Function. - A CloudFunctionInfo is populated with starting - function information. + Cloud Function. A CloudFunctionInfo is populated + with starting function information. START_FROM_APP_ENGINE_VERSION (25): Initial state: packet originating from an App - Engine service version. - An AppEngineVersionInfo is populated with - starting version information. + Engine service version. An AppEngineVersionInfo + is populated with starting version information. START_FROM_CLOUD_RUN_REVISION (26): Initial state: packet originating from a - Cloud Run revision. - A CloudRunRevisionInfo is populated with - starting revision information. + Cloud Run revision. A CloudRunRevisionInfo is + populated with starting revision information. APPLY_INGRESS_FIREWALL_RULE (4): Config checking state: verify ingress firewall rule. @@ -330,8 +323,7 @@ class State(proto.Enum): Config checking state: match forwarding rule. SPOOFING_APPROVED (8): Config checking state: packet sent or - received under foreign IP - address and allowed. + received under foreign IP address and allowed. ARRIVE_AT_INSTANCE (9): Forwarding state: arriving at a Compute Engine instance. @@ -354,22 +346,21 @@ class State(proto.Enum): Transition state: packet header translated. PROXY_CONNECTION (15): Transition state: original connection is - terminated and a new proxied - connection is initiated. + terminated and a new proxied connection is + initiated. DELIVER (16): Final state: packet could be delivered. DROP (17): Final state: packet could be dropped. FORWARD (18): Final state: packet could be forwarded to a - network with an unknown - configuration. + network with an unknown configuration. ABORT (19): Final state: analysis is aborted. VIEWER_PERMISSION_MISSING (20): Special state: viewer of the test result does - not have permission to - see the configuration in this step. + not have permission to see the configuration in + this step. """ STATE_UNSPECIFIED = 0 START_FROM_INSTANCE = 1 @@ -1734,11 +1725,10 @@ class Cause(proto.Enum): hop is a blackhole. ROUTE_WRONG_NETWORK (6): Packet is sent to a wrong (unintended) - network. Example: you trace a - packet from VM1:Network1 to VM2:Network2, - however, the route configured in Network1 sends - the packet destined for VM2's IP addresss to - Network3. + network. Example: you trace a packet from + VM1:Network1 to VM2:Network2, however, the route + configured in Network1 sends the packet destined + for VM2's IP addresss to Network3. PRIVATE_TRAFFIC_TO_INTERNET (7): Packet with internal destination address sent to the internet gateway. diff --git a/packages/google-cloud-network-management/samples/generated_samples/snippet_metadata_google.cloud.networkmanagement.v1.json b/packages/google-cloud-network-management/samples/generated_samples/snippet_metadata_google.cloud.networkmanagement.v1.json index 8f4f0d7e1bf6..21f45711959c 100644 --- a/packages/google-cloud-network-management/samples/generated_samples/snippet_metadata_google.cloud.networkmanagement.v1.json +++ b/packages/google-cloud-network-management/samples/generated_samples/snippet_metadata_google.cloud.networkmanagement.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-network-management", - "version": "1.11.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-network-management/tests/unit/gapic/network_management_v1/test_reachability_service.py b/packages/google-cloud-network-management/tests/unit/gapic/network_management_v1/test_reachability_service.py index ce76cc0b8189..4ff848f13d13 100644 --- a/packages/google-cloud-network-management/tests/unit/gapic/network_management_v1/test_reachability_service.py +++ b/packages/google-cloud-network-management/tests/unit/gapic/network_management_v1/test_reachability_service.py @@ -41,7 +41,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import any_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/packages/google-cloud-network-security/.flake8 b/packages/google-cloud-network-security/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-network-security/.flake8 +++ b/packages/google-cloud-network-security/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-network-security/CONTRIBUTING.rst b/packages/google-cloud-network-security/CONTRIBUTING.rst index 502845d7a110..3113c32935d8 100644 --- a/packages/google-cloud-network-security/CONTRIBUTING.rst +++ b/packages/google-cloud-network-security/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-network-security/noxfile.py ********** diff --git a/packages/google-cloud-network-security/MANIFEST.in b/packages/google-cloud-network-security/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-network-security/MANIFEST.in +++ b/packages/google-cloud-network-security/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-network-security/README.rst b/packages/google-cloud-network-security/README.rst index ee4710eeb836..d26aa1f37d9e 100644 --- a/packages/google-cloud-network-security/README.rst +++ b/packages/google-cloud-network-security/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-network-security/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-network-security + pip install google-cloud-network-security Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-network-security + py -m venv + .\\Scripts\activate + pip install google-cloud-network-security Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-network-security/docs/conf.py b/packages/google-cloud-network-security/docs/conf.py index 22f63f51b727..78134b66dbae 100644 --- a/packages/google-cloud-network-security/docs/conf.py +++ b/packages/google-cloud-network-security/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/async_client.py b/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/async_client.py index bdeea2257998..8d936fa675ee 100644 --- a/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/async_client.py +++ b/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/async_client.py @@ -47,7 +47,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/client.py b/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/client.py index 9758c4a7bb35..c6da08e00aaf 100644 --- a/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/client.py +++ b/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/client.py @@ -51,7 +51,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/transports/rest.py b/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/transports/rest.py index 1e9b9a7875e4..0a8b5bacf831 100644 --- a/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/transports/rest.py +++ b/packages/google-cloud-network-security/google/cloud/network_security_v1/services/network_security/transports/rest.py @@ -35,7 +35,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/async_client.py b/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/async_client.py index 9cd2ea48f82c..b9ca47de1e05 100644 --- a/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/async_client.py +++ b/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/async_client.py @@ -47,7 +47,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/client.py b/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/client.py index 3cdca868e33b..de17c1e26cd7 100644 --- a/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/client.py +++ b/packages/google-cloud-network-security/google/cloud/network_security_v1beta1/services/network_security/client.py @@ -51,7 +51,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-network-security/noxfile.py b/packages/google-cloud-network-security/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-network-security/noxfile.py +++ b/packages/google-cloud-network-security/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-network-security/scripts/decrypt-secrets.sh b/packages/google-cloud-network-security/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-network-security/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-network-security/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1/test_network_security.py b/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1/test_network_security.py index 90f2a6c96375..5dd15f2fa22f 100644 --- a/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1/test_network_security.py +++ b/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1/test_network_security.py @@ -45,7 +45,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1beta1/test_network_security.py b/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1beta1/test_network_security.py index 633465d19352..72867d45717e 100644 --- a/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1beta1/test_network_security.py +++ b/packages/google-cloud-network-security/tests/unit/gapic/network_security_v1beta1/test_network_security.py @@ -43,7 +43,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks/gapic_version.py b/packages/google-cloud-notebooks/google/cloud/notebooks/gapic_version.py index 97c03305daf2..360a0d13ebdd 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks/gapic_version.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.8.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/gapic_version.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/gapic_version.py index 97c03305daf2..360a0d13ebdd 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/gapic_version.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.8.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/async_client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/async_client.py index 26fabb854f96..4d77308338cd 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/async_client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/async_client.py @@ -47,7 +47,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/client.py index 7f98a7e62f9e..16cf2b6c7114 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/managed_notebook_service/client.py @@ -51,7 +51,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/async_client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/async_client.py index 1fead5f776e3..b007487ee0ca 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/async_client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/async_client.py @@ -47,7 +47,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -2437,6 +2437,7 @@ async def sample_list_environments(): Returns: google.cloud.notebooks_v1.services.notebook_service.pagers.ListEnvironmentsAsyncPager: Response for listing environments. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/client.py index b18fa3c644c1..782b0218efda 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/services/notebook_service/client.py @@ -51,7 +51,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -2761,6 +2761,7 @@ def sample_list_environments(): Returns: google.cloud.notebooks_v1.services.notebook_service.pagers.ListEnvironmentsPager: Response for listing environments. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/types/runtime.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/types/runtime.py index 5d2cd053e553..98264a14e484 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1/types/runtime.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1/types/runtime.py @@ -325,6 +325,7 @@ class LocalDisk(proto.Message): instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. + This property is mutually exclusive with the source property; you can only define one or the other, but not both. diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/gapic_version.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/gapic_version.py index 97c03305daf2..360a0d13ebdd 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/gapic_version.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.8.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/async_client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/async_client.py index 1513e7377393..6949c92d2d49 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/async_client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/async_client.py @@ -48,7 +48,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -1719,6 +1719,7 @@ async def sample_list_environments(): Returns: google.cloud.notebooks_v1beta1.services.notebook_service.pagers.ListEnvironmentsAsyncPager: Response for listing environments. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/client.py index df2ff714f3a5..e0a619bb30e7 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/client.py @@ -52,7 +52,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -1978,6 +1978,7 @@ def sample_list_environments(): Returns: google.cloud.notebooks_v1beta1.services.notebook_service.pagers.ListEnvironmentsPager: Response for listing environments. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/transports/rest.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/transports/rest.py index 26d36105acc0..2506e8834ebc 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/transports/rest.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/services/notebook_service/transports/rest.py @@ -35,7 +35,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/gapic_version.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/gapic_version.py index 97c03305daf2..360a0d13ebdd 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/gapic_version.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.8.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/async_client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/async_client.py index 6ee587ca867b..e0973ad2edd9 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/async_client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/async_client.py @@ -47,7 +47,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/client.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/client.py index 869488e7c4fe..304aa0661554 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/client.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/client.py @@ -51,7 +51,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/transports/rest.py b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/transports/rest.py index c8f0c89b8e86..bb7ad52461d2 100644 --- a/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/transports/rest.py +++ b/packages/google-cloud-notebooks/google/cloud/notebooks_v2/services/notebook_service/transports/rest.py @@ -35,7 +35,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1.json b/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1.json index 64c03435fc84..1e5dcb8dbe89 100644 --- a/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1.json +++ b/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-notebooks", - "version": "1.8.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1beta1.json b/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1beta1.json index 760818bfffea..7bc31789024f 100644 --- a/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1beta1.json +++ b/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-notebooks", - "version": "1.8.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v2.json b/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v2.json index 4ec652cfc37f..6fad38d8fc89 100644 --- a/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v2.json +++ b/packages/google-cloud-notebooks/samples/generated_samples/snippet_metadata_google.cloud.notebooks.v2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-notebooks", - "version": "1.8.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_managed_notebook_service.py b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_managed_notebook_service.py index 77b3b5379881..f512a3697c69 100644 --- a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_managed_notebook_service.py +++ b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_managed_notebook_service.py @@ -43,7 +43,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_notebook_service.py b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_notebook_service.py index 01bbb3974f7e..7c93373ff54c 100644 --- a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_notebook_service.py +++ b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1/test_notebook_service.py @@ -43,7 +43,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1beta1/test_notebook_service.py b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1beta1/test_notebook_service.py index 9e90f5c8225c..d61c4fc0417f 100644 --- a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1beta1/test_notebook_service.py +++ b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v1beta1/test_notebook_service.py @@ -45,7 +45,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import json_format diff --git a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v2/test_notebook_service.py b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v2/test_notebook_service.py index bdfeedbd7970..c1d4b50faeab 100644 --- a/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v2/test_notebook_service.py +++ b/packages/google-cloud-notebooks/tests/unit/gapic/notebooks_v2/test_notebook_service.py @@ -45,7 +45,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-orchestration-airflow/.flake8 b/packages/google-cloud-orchestration-airflow/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-orchestration-airflow/.flake8 +++ b/packages/google-cloud-orchestration-airflow/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-orchestration-airflow/CONTRIBUTING.rst b/packages/google-cloud-orchestration-airflow/CONTRIBUTING.rst index caca6bdbe5aa..2f17972f567d 100644 --- a/packages/google-cloud-orchestration-airflow/CONTRIBUTING.rst +++ b/packages/google-cloud-orchestration-airflow/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-orchestration-airflow/noxfile.py ********** diff --git a/packages/google-cloud-orchestration-airflow/MANIFEST.in b/packages/google-cloud-orchestration-airflow/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-orchestration-airflow/MANIFEST.in +++ b/packages/google-cloud-orchestration-airflow/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-orchestration-airflow/README.rst b/packages/google-cloud-orchestration-airflow/README.rst index 754b23795a21..781b3783de18 100644 --- a/packages/google-cloud-orchestration-airflow/README.rst +++ b/packages/google-cloud-orchestration-airflow/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-orchestration-airflow/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-orchestration-airflow + pip install google-cloud-orchestration-airflow Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-orchestration-airflow + py -m venv + .\\Scripts\activate + pip install google-cloud-orchestration-airflow Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-orchestration-airflow/docs/conf.py b/packages/google-cloud-orchestration-airflow/docs/conf.py index e8b4509b3684..8fb3a15c1594 100644 --- a/packages/google-cloud-orchestration-airflow/docs/conf.py +++ b/packages/google-cloud-orchestration-airflow/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/async_client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/async_client.py index dcf9681a4465..70d14279abc4 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/async_client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/async_client.py @@ -46,7 +46,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -384,7 +384,6 @@ async def sample_get_environment(): name (:class:`str`): The resource name of the environment to get, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -488,7 +487,6 @@ async def sample_list_environments(): parent (:class:`str`): List environments in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field @@ -608,7 +606,6 @@ async def sample_update_environment(): name (:class:`str`): The relative resource name of the environment to update, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -920,7 +917,6 @@ async def sample_delete_environment(): name (:class:`str`): The environment to delete, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -1249,6 +1245,7 @@ async def save_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -1348,6 +1345,7 @@ async def load_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/client.py index 468052a26d49..b19edfa83231 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/client.py @@ -50,7 +50,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -617,7 +617,6 @@ def sample_get_environment(): name (str): The resource name of the environment to get, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -721,7 +720,6 @@ def sample_list_environments(): parent (str): List environments in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field @@ -841,7 +839,6 @@ def sample_update_environment(): name (str): The relative resource name of the environment to update, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -1153,7 +1150,6 @@ def sample_delete_environment(): name (str): The environment to delete, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -1485,6 +1481,7 @@ def save_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -1585,6 +1582,7 @@ def load_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc.py index 1f4721c05ef6..fd8e7fe958ec 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc.py @@ -470,6 +470,7 @@ def save_snapshot( r"""Return a callable for the save snapshot method over gRPC. Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -499,6 +500,7 @@ def load_snapshot( r"""Return a callable for the load snapshot method over gRPC. Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc_asyncio.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc_asyncio.py index 1c6b2a4a368d..de0d61cad516 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc_asyncio.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/grpc_asyncio.py @@ -486,6 +486,7 @@ def save_snapshot( r"""Return a callable for the save snapshot method over gRPC. Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -517,6 +518,7 @@ def load_snapshot( r"""Return a callable for the load snapshot method over gRPC. Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/rest.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/rest.py index a9240c125f8d..a1a80e3eb2f5 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/rest.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/environments/transports/rest.py @@ -32,7 +32,6 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/async_client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/async_client.py index de13bc860002..29b504528636 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/async_client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/async_client.py @@ -44,7 +44,7 @@ except AttributeError: # pragma: NO COVER OptionalRetry = Union[retries.Retry, object] # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.orchestration.airflow.service_v1.services.image_versions import pagers from google.cloud.orchestration.airflow.service_v1.types import image_versions @@ -260,7 +260,6 @@ async def sample_list_image_versions(): parent (:class:`str`): List ImageVersions in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/client.py index 51341ad88fbb..b72155633af4 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/client.py @@ -48,7 +48,7 @@ except AttributeError: # pragma: NO COVER OptionalRetry = Union[retries.Retry, object] # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.orchestration.airflow.service_v1.services.image_versions import pagers from google.cloud.orchestration.airflow.service_v1.types import image_versions @@ -467,7 +467,6 @@ def sample_list_image_versions(): parent (str): List ImageVersions in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/base.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/base.py index 8727130b6ed8..43e996bec104 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/base.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/base.py @@ -22,7 +22,7 @@ from google.api_core import retry as retries import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.orchestration.airflow.service_v1 import ( diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc.py index 90ce3ceb16a1..401eee9f42a7 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc.py @@ -20,7 +20,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.orchestration.airflow.service_v1.types import image_versions diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc_asyncio.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc_asyncio.py index cf482bd9b9d5..4cbbbef45c13 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc_asyncio.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/grpc_asyncio.py @@ -19,7 +19,7 @@ from google.api_core import gapic_v1, grpc_helpers_async from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/rest.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/rest.py index 875eae54c145..c30b474ef83f 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/rest.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/services/image_versions/transports/rest.py @@ -26,7 +26,6 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -37,6 +36,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.orchestration.airflow.service_v1.types import image_versions from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/environments.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/environments.py index 7251ef56d0c7..7a0084929fa1 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/environments.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/environments.py @@ -95,7 +95,6 @@ class GetEnvironmentRequest(proto.Message): name (str): The resource name of the environment to get, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". """ @@ -112,7 +111,6 @@ class ListEnvironmentsRequest(proto.Message): parent (str): List environments in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}". page_size (int): The maximum number of environments to return. @@ -185,7 +183,6 @@ class UpdateEnvironmentRequest(proto.Message): name (str): The relative resource name of the environment to update, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". environment (google.cloud.orchestration.airflow.service_v1.types.Environment): A patch environment. Fields specified by the ``updateMask`` @@ -385,7 +382,6 @@ class ExecuteAirflowCommandRequest(proto.Message): environment (str): The resource name of the environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". command (str): Airflow command. @@ -459,7 +455,6 @@ class StopAirflowCommandRequest(proto.Message): environment (str): The resource name of the environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". execution_id (str): The unique ID of the command execution. @@ -525,7 +520,6 @@ class PollAirflowCommandRequest(proto.Message): environment (str): The resource name of the environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". execution_id (str): The unique ID of the command execution. @@ -638,12 +632,10 @@ class SaveSnapshotRequest(proto.Message): environment (str): The resource name of the source environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". snapshot_location (str): Location in a Cloud Storage where the snapshot is going to be stored, e.g.: - "gs://my-bucket/snapshots". """ @@ -682,7 +674,6 @@ class LoadSnapshotRequest(proto.Message): environment (str): The resource name of the target environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". snapshot_path (str): A Cloud Storage path to a snapshot to load, e.g.: @@ -759,7 +750,6 @@ class FetchDatabasePropertiesRequest(proto.Message): environment (str): Required. The resource name of the environment, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". """ @@ -854,6 +844,7 @@ class EnvironmentConfig(proto.Message): undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods. + The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled @@ -1538,6 +1529,7 @@ class NodeConfig(proto.Message): nonMasqueradeCIDRs equals to pod IP range so IP masquerading is used for all destination addresses, except between pods traffic. + See: https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent @@ -2018,8 +2010,8 @@ class Environment(proto.Message): name (str): The resource name of the environment, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + EnvironmentId must start with a lowercase letter followed by up to 63 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/image_versions.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/image_versions.py index 2b4b0ff71737..883cb3c66cd3 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/image_versions.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1/types/image_versions.py @@ -37,7 +37,6 @@ class ListImageVersionsRequest(proto.Message): parent (str): List ImageVersions in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}". page_size (int): The maximum number of image_versions to return. @@ -100,9 +99,7 @@ class ImageVersion(proto.Message): Attributes: image_version_id (str): The string identifier of the ImageVersion, in - the form: - - "composer-x.y.z-airflow-a.b.c". + the form: "composer-x.y.z-airflow-a.b.c". is_default (bool): Whether this is the default ImageVersion used by Composer during environment creation if no diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/async_client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/async_client.py index 56d7ef91c58e..e1e11b2776f5 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/async_client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/async_client.py @@ -46,7 +46,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -389,7 +389,6 @@ async def sample_get_environment(): name (:class:`str`): The resource name of the environment to get, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -493,7 +492,6 @@ async def sample_list_environments(): parent (:class:`str`): List environments in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field @@ -613,7 +611,6 @@ async def sample_update_environment(): name (:class:`str`): The relative resource name of the environment to update, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -962,7 +959,6 @@ async def sample_delete_environment(): name (:class:`str`): The environment to delete, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -1482,6 +1478,7 @@ async def save_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -1581,6 +1578,7 @@ async def load_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/client.py index 86d0227bf825..aa9be680c56f 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/client.py @@ -50,7 +50,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -622,7 +622,6 @@ def sample_get_environment(): name (str): The resource name of the environment to get, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -726,7 +725,6 @@ def sample_list_environments(): parent (str): List environments in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field @@ -846,7 +844,6 @@ def sample_update_environment(): name (str): The relative resource name of the environment to update, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -1195,7 +1192,6 @@ def sample_delete_environment(): name (str): The environment to delete, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" This corresponds to the ``name`` field @@ -1720,6 +1716,7 @@ def save_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -1820,6 +1817,7 @@ def load_snapshot( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc.py index b378f38549b0..a6394dab6d04 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc.py @@ -525,6 +525,7 @@ def save_snapshot( r"""Return a callable for the save snapshot method over gRPC. Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -554,6 +555,7 @@ def load_snapshot( r"""Return a callable for the load snapshot method over gRPC. Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc_asyncio.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc_asyncio.py index 267191423494..04f194ecedef 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc_asyncio.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/grpc_asyncio.py @@ -545,6 +545,7 @@ def save_snapshot( r"""Return a callable for the save snapshot method over gRPC. Creates a snapshots of a Cloud Composer environment. + As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. @@ -576,6 +577,7 @@ def load_snapshot( r"""Return a callable for the load snapshot method over gRPC. Loads a snapshot of a Cloud Composer environment. + As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/rest.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/rest.py index 6b98c92f3898..b3070bc4d4e1 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/rest.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/environments/transports/rest.py @@ -32,7 +32,6 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/async_client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/async_client.py index adf7f0447aae..23bca54f170d 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/async_client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/async_client.py @@ -44,7 +44,7 @@ except AttributeError: # pragma: NO COVER OptionalRetry = Union[retries.Retry, object] # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.orchestration.airflow.service_v1beta1.services.image_versions import ( pagers, @@ -262,7 +262,6 @@ async def sample_list_image_versions(): parent (:class:`str`): List ImageVersions in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/client.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/client.py index 9241f5130022..3dc82cb7d289 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/client.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/client.py @@ -48,7 +48,7 @@ except AttributeError: # pragma: NO COVER OptionalRetry = Union[retries.Retry, object] # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.orchestration.airflow.service_v1beta1.services.image_versions import ( pagers, @@ -469,7 +469,6 @@ def sample_list_image_versions(): parent (str): List ImageVersions in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}" This corresponds to the ``parent`` field diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/base.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/base.py index 6d78ea8348c3..2d0b15857ec7 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/base.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/base.py @@ -22,7 +22,7 @@ from google.api_core import retry as retries import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.orchestration.airflow.service_v1beta1 import ( diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc.py index 9652d8787a78..923711e00e94 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc.py @@ -20,7 +20,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.orchestration.airflow.service_v1beta1.types import image_versions diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc_asyncio.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc_asyncio.py index 3b23a12fdb2e..f49a25cd3585 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc_asyncio.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/grpc_asyncio.py @@ -19,7 +19,7 @@ from google.api_core import gapic_v1, grpc_helpers_async from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/rest.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/rest.py index 8aea150834c5..ebafcf143688 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/rest.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/transports/rest.py @@ -26,7 +26,6 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -37,6 +36,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.orchestration.airflow.service_v1beta1.types import image_versions from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/environments.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/environments.py index fcfebc38e821..f8b5f3629674 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/environments.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/environments.py @@ -98,7 +98,6 @@ class GetEnvironmentRequest(proto.Message): name (str): The resource name of the environment to get, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". """ @@ -115,7 +114,6 @@ class ListEnvironmentsRequest(proto.Message): parent (str): List environments in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}". page_size (int): The maximum number of environments to return. @@ -188,7 +186,6 @@ class UpdateEnvironmentRequest(proto.Message): name (str): The relative resource name of the environment to update, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". environment (google.cloud.orchestration.airflow.service_v1beta1.types.Environment): A patch environment. Fields specified by the ``updateMask`` @@ -439,7 +436,6 @@ class ExecuteAirflowCommandRequest(proto.Message): environment (str): The resource name of the environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". command (str): Airflow command. @@ -513,7 +509,6 @@ class StopAirflowCommandRequest(proto.Message): environment (str): The resource name of the environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". execution_id (str): The unique ID of the command execution. @@ -579,7 +574,6 @@ class PollAirflowCommandRequest(proto.Message): environment (str): The resource name of the environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". execution_id (str): The unique ID of the command execution. @@ -692,12 +686,10 @@ class SaveSnapshotRequest(proto.Message): environment (str): The resource name of the source environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". snapshot_location (str): Location in a Cloud Storage where the snapshot is going to be stored, e.g.: - "gs://my-bucket/snapshots". """ @@ -736,7 +728,6 @@ class LoadSnapshotRequest(proto.Message): environment (str): The resource name of the target environment in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". snapshot_path (str): A Cloud Storage path to a snapshot to load, e.g.: @@ -813,7 +804,6 @@ class FetchDatabasePropertiesRequest(proto.Message): environment (str): Required. The resource name of the environment, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}". """ @@ -922,6 +912,7 @@ class EnvironmentConfig(proto.Message): undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods. + The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled @@ -1498,6 +1489,7 @@ class NodeConfig(proto.Message): nonMasqueradeCIDRs equals to pod IP range so IP masquerading is used for all destination addresses, except between pods traffic. + See: https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent @@ -2141,8 +2133,8 @@ class Environment(proto.Message): name (str): The resource name of the environment, in the form: - "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + EnvironmentId must start with a lowercase letter followed by up to 63 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. diff --git a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/image_versions.py b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/image_versions.py index c5dfc57071aa..4f4a0533d494 100644 --- a/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/image_versions.py +++ b/packages/google-cloud-orchestration-airflow/google/cloud/orchestration/airflow/service_v1beta1/types/image_versions.py @@ -37,7 +37,6 @@ class ListImageVersionsRequest(proto.Message): parent (str): List ImageVersions in the given project and location, in the form: - "projects/{projectId}/locations/{locationId}". page_size (int): The maximum number of image_versions to return. @@ -100,9 +99,7 @@ class ImageVersion(proto.Message): Attributes: image_version_id (str): The string identifier of the ImageVersion, in - the form: - - "composer-x.y.z-airflow-a.b.c". + the form: "composer-x.y.z-airflow-a.b.c". is_default (bool): Whether this is the default ImageVersion used by Composer during environment creation if no diff --git a/packages/google-cloud-orchestration-airflow/noxfile.py b/packages/google-cloud-orchestration-airflow/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-orchestration-airflow/noxfile.py +++ b/packages/google-cloud-orchestration-airflow/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-orchestration-airflow/scripts/decrypt-secrets.sh b/packages/google-cloud-orchestration-airflow/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-orchestration-airflow/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-orchestration-airflow/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_environments.py b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_environments.py index 44176a5020ed..63ca41efe66c 100644 --- a/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_environments.py +++ b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_environments.py @@ -41,7 +41,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_image_versions.py b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_image_versions.py index cb056d676a53..a339134839ab 100644 --- a/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_image_versions.py +++ b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1/test_image_versions.py @@ -32,7 +32,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format import grpc diff --git a/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_environments.py b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_environments.py index a43ea2f4cf6a..300182c36312 100644 --- a/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_environments.py +++ b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_environments.py @@ -41,7 +41,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_image_versions.py b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_image_versions.py index 25e8eb264489..b53221ebae4a 100644 --- a/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_image_versions.py +++ b/packages/google-cloud-orchestration-airflow/tests/unit/gapic/service_v1beta1/test_image_versions.py @@ -32,7 +32,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format import grpc diff --git a/packages/google-cloud-phishing-protection/.flake8 b/packages/google-cloud-phishing-protection/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-phishing-protection/.flake8 +++ b/packages/google-cloud-phishing-protection/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-phishing-protection/CONTRIBUTING.rst b/packages/google-cloud-phishing-protection/CONTRIBUTING.rst index 6d33460571b3..868f9c915b5a 100644 --- a/packages/google-cloud-phishing-protection/CONTRIBUTING.rst +++ b/packages/google-cloud-phishing-protection/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-phishing-protection/noxfile.py ********** diff --git a/packages/google-cloud-phishing-protection/MANIFEST.in b/packages/google-cloud-phishing-protection/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-phishing-protection/MANIFEST.in +++ b/packages/google-cloud-phishing-protection/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-phishing-protection/README.rst b/packages/google-cloud-phishing-protection/README.rst index c7ab67659b50..5a5f322caf9d 100644 --- a/packages/google-cloud-phishing-protection/README.rst +++ b/packages/google-cloud-phishing-protection/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-phishing-protection/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-phishing-protection + pip install google-cloud-phishing-protection Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-phishing-protection + py -m venv + .\\Scripts\activate + pip install google-cloud-phishing-protection Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-phishing-protection/docs/conf.py b/packages/google-cloud-phishing-protection/docs/conf.py index b460f9063226..4dfa48b93697 100644 --- a/packages/google-cloud-phishing-protection/docs/conf.py +++ b/packages/google-cloud-phishing-protection/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-phishing-protection/noxfile.py b/packages/google-cloud-phishing-protection/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-phishing-protection/noxfile.py +++ b/packages/google-cloud-phishing-protection/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-phishing-protection/scripts/decrypt-secrets.sh b/packages/google-cloud-phishing-protection/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-phishing-protection/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-phishing-protection/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-policy-troubleshooter/.flake8 b/packages/google-cloud-policy-troubleshooter/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-policy-troubleshooter/.flake8 +++ b/packages/google-cloud-policy-troubleshooter/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-policy-troubleshooter/CONTRIBUTING.rst b/packages/google-cloud-policy-troubleshooter/CONTRIBUTING.rst index 400fd2812110..f7c55d45278e 100644 --- a/packages/google-cloud-policy-troubleshooter/CONTRIBUTING.rst +++ b/packages/google-cloud-policy-troubleshooter/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-policy-troubleshooter/noxfile.py ********** diff --git a/packages/google-cloud-policy-troubleshooter/MANIFEST.in b/packages/google-cloud-policy-troubleshooter/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-policy-troubleshooter/MANIFEST.in +++ b/packages/google-cloud-policy-troubleshooter/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-policy-troubleshooter/README.rst b/packages/google-cloud-policy-troubleshooter/README.rst index 9d6ef2cebe4c..e499013e10cf 100644 --- a/packages/google-cloud-policy-troubleshooter/README.rst +++ b/packages/google-cloud-policy-troubleshooter/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-policy-troubleshooter/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-policy-troubleshooter + pip install google-cloud-policy-troubleshooter Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-policy-troubleshooter + py -m venv + .\\Scripts\activate + pip install google-cloud-policy-troubleshooter Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-policy-troubleshooter/docs/conf.py b/packages/google-cloud-policy-troubleshooter/docs/conf.py index 94e6c54dac51..74bbd5242f89 100644 --- a/packages/google-cloud-policy-troubleshooter/docs/conf.py +++ b/packages/google-cloud-policy-troubleshooter/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter/gapic_version.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter/gapic_version.py index b7ebf472ead3..360a0d13ebdd 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter/gapic_version.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.9.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/gapic_version.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/gapic_version.py index b7ebf472ead3..360a0d13ebdd 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/gapic_version.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.9.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/async_client.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/async_client.py index dcf8d794cd53..b8a58b3ad95f 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/async_client.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/async_client.py @@ -53,6 +53,7 @@ class IamCheckerAsyncClient: """IAM Policy Troubleshooter service. + This service helps you troubleshoot access issues for Google Cloud resources. """ diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/client.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/client.py index a7d7c081a4c8..f98a7c5b38cd 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/client.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/client.py @@ -93,6 +93,7 @@ def get_transport_class( class IamCheckerClient(metaclass=IamCheckerClientMeta): """IAM Policy Troubleshooter service. + This service helps you troubleshoot access issues for Google Cloud resources. """ diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc.py index 62aa32fae5c0..d8cb9ad4be6b 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc.py @@ -31,6 +31,7 @@ class IamCheckerGrpcTransport(IamCheckerTransport): """gRPC backend transport for IamChecker. IAM Policy Troubleshooter service. + This service helps you troubleshoot access issues for Google Cloud resources. diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc_asyncio.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc_asyncio.py index 3e1f5759f4df..c89321b9ca7d 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc_asyncio.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/grpc_asyncio.py @@ -32,6 +32,7 @@ class IamCheckerGrpcAsyncIOTransport(IamCheckerTransport): """gRPC AsyncIO backend transport for IamChecker. IAM Policy Troubleshooter service. + This service helps you troubleshoot access issues for Google Cloud resources. diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/rest.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/rest.py index 5dea295a8a4d..d23a06db0004 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/rest.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/services/iam_checker/transports/rest.py @@ -112,6 +112,7 @@ class IamCheckerRestTransport(IamCheckerTransport): """REST backend transport for IamChecker. IAM Policy Troubleshooter service. + This service helps you troubleshoot access issues for Google Cloud resources. diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/checker.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/checker.py index cae2b1b3b843..7092019b7fd1 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/checker.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/checker.py @@ -69,6 +69,7 @@ class TroubleshootIamPolicyResponse(proto.Message): policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. + To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy. errors (MutableSequence[google.rpc.status_pb2.Status]): diff --git a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/explanations.py b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/explanations.py index e964c55b35fa..bfa450dfde30 100644 --- a/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/explanations.py +++ b/packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/types/explanations.py @@ -107,6 +107,7 @@ class AccessTuple(proto.Message): For a complete list of IAM permissions, see https://cloud.google.com/iam/help/permissions/reference. + For a complete list of predefined IAM roles and the permissions in each role, see https://cloud.google.com/iam/help/roles/reference. @@ -155,12 +156,14 @@ class ExplainedPolicy(proto.Message): https://cloud.google.com/iam/help/troubleshooter/full-resource-names. policy (google.iam.v1.policy_pb2.Policy): The IAM policy attached to the resource. + If the sender of the request does not have access to the policy, this field is empty. binding_explanations (MutableSequence[google.cloud.policytroubleshooter_v1.types.BindingExplanation]): Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. + If the sender of the request does not have access to the policy, this field is omitted. relevance (google.cloud.policytroubleshooter_v1.types.HeuristicRelevance): diff --git a/packages/google-cloud-policy-troubleshooter/noxfile.py b/packages/google-cloud-policy-troubleshooter/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-policy-troubleshooter/noxfile.py +++ b/packages/google-cloud-policy-troubleshooter/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-policy-troubleshooter/samples/generated_samples/snippet_metadata_google.cloud.policytroubleshooter.v1.json b/packages/google-cloud-policy-troubleshooter/samples/generated_samples/snippet_metadata_google.cloud.policytroubleshooter.v1.json index b82078afa157..f5712f1a7dff 100644 --- a/packages/google-cloud-policy-troubleshooter/samples/generated_samples/snippet_metadata_google.cloud.policytroubleshooter.v1.json +++ b/packages/google-cloud-policy-troubleshooter/samples/generated_samples/snippet_metadata_google.cloud.policytroubleshooter.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-policy-troubleshooter", - "version": "1.9.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-policy-troubleshooter/scripts/decrypt-secrets.sh b/packages/google-cloud-policy-troubleshooter/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-policy-troubleshooter/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-policy-troubleshooter/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-policysimulator/google/cloud/policysimulator/gapic_version.py b/packages/google-cloud-policysimulator/google/cloud/policysimulator/gapic_version.py index a7d39deb7a45..360a0d13ebdd 100644 --- a/packages/google-cloud-policysimulator/google/cloud/policysimulator/gapic_version.py +++ b/packages/google-cloud-policysimulator/google/cloud/policysimulator/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.1.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/gapic_version.py b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/gapic_version.py index a7d39deb7a45..360a0d13ebdd 100644 --- a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/gapic_version.py +++ b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.1.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/async_client.py b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/async_client.py index 0da437078824..60ebd6de25de 100644 --- a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/async_client.py +++ b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/async_client.py @@ -44,7 +44,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.policysimulator_v1.services.simulator import pagers from google.cloud.policysimulator_v1.types import simulator diff --git a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/client.py b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/client.py index ae3999eec2b3..d2232170362b 100644 --- a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/client.py +++ b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/client.py @@ -48,7 +48,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.policysimulator_v1.services.simulator import pagers from google.cloud.policysimulator_v1.types import simulator diff --git a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/transports/rest.py b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/transports/rest.py index 3ac42dc596d6..909e39cd8733 100644 --- a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/transports/rest.py +++ b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/transports/rest.py @@ -32,7 +32,6 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/types/explanations.py b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/types/explanations.py index 32eb9da85cea..bf0aba3c3874 100644 --- a/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/types/explanations.py +++ b/packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/types/explanations.py @@ -108,6 +108,7 @@ class AccessTuple(proto.Message): For a complete list of IAM permissions, see https://cloud.google.com/iam/help/permissions/reference. + For a complete list of predefined IAM roles and the permissions in each role, see https://cloud.google.com/iam/help/roles/reference. diff --git a/packages/google-cloud-policysimulator/tests/unit/gapic/policysimulator_v1/test_simulator.py b/packages/google-cloud-policysimulator/tests/unit/gapic/policysimulator_v1/test_simulator.py index 06285b94341a..557e78751b9a 100644 --- a/packages/google-cloud-policysimulator/tests/unit/gapic/policysimulator_v1/test_simulator.py +++ b/packages/google-cloud-policysimulator/tests/unit/gapic/policysimulator_v1/test_simulator.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format from google.type import date_pb2 # type: ignore diff --git a/packages/google-cloud-private-ca/.flake8 b/packages/google-cloud-private-ca/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-private-ca/.flake8 +++ b/packages/google-cloud-private-ca/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-private-ca/CONTRIBUTING.rst b/packages/google-cloud-private-ca/CONTRIBUTING.rst index e6f9873ac9f3..b32e9590b471 100644 --- a/packages/google-cloud-private-ca/CONTRIBUTING.rst +++ b/packages/google-cloud-private-ca/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-private-ca/noxfile.py ********** diff --git a/packages/google-cloud-private-ca/MANIFEST.in b/packages/google-cloud-private-ca/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-private-ca/MANIFEST.in +++ b/packages/google-cloud-private-ca/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-private-ca/README.rst b/packages/google-cloud-private-ca/README.rst index 56b2e02c80d3..9874f76aa61d 100644 --- a/packages/google-cloud-private-ca/README.rst +++ b/packages/google-cloud-private-ca/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-private-ca/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-private-ca + pip install google-cloud-private-ca Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-private-ca + py -m venv + .\\Scripts\activate + pip install google-cloud-private-ca Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-private-ca/docs/conf.py b/packages/google-cloud-private-ca/docs/conf.py index b10cbc84573f..6871754fba0d 100644 --- a/packages/google-cloud-private-ca/docs/conf.py +++ b/packages/google-cloud-private-ca/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/async_client.py b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/async_client.py index e1200251c5ac..6a4af2d249ce 100644 --- a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/async_client.py +++ b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/async_client.py @@ -47,7 +47,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/client.py b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/client.py index e391944c6d7f..12c2641abeeb 100644 --- a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/client.py +++ b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/client.py @@ -51,7 +51,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/transports/rest.py b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/transports/rest.py index 4191159e3263..866b05585e58 100644 --- a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/transports/rest.py +++ b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/services/certificate_authority_service/transports/rest.py @@ -35,7 +35,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/types/service.py b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/types/service.py index 41acc20e2fcf..9c932a1e3690 100644 --- a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/types/service.py +++ b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1/types/service.py @@ -105,6 +105,7 @@ class CreateCertificateRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -313,6 +314,7 @@ class RevokeCertificateRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -361,6 +363,7 @@ class UpdateCertificateRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -415,6 +418,7 @@ class ActivateCertificateAuthorityRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -473,6 +477,7 @@ class CreateCertificateAuthorityRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -523,6 +528,7 @@ class DisableCertificateAuthorityRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -575,6 +581,7 @@ class EnableCertificateAuthorityRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -760,6 +767,7 @@ class UndeleteCertificateAuthorityRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -801,6 +809,7 @@ class DeleteCertificateAuthorityRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -875,6 +884,7 @@ class UpdateCertificateAuthorityRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -928,6 +938,7 @@ class CreateCaPoolRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -980,6 +991,7 @@ class UpdateCaPoolRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1026,6 +1038,7 @@ class DeleteCaPoolRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1077,6 +1090,7 @@ class FetchCaCertsRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1369,6 +1383,7 @@ class UpdateCertificateRevocationListRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1423,6 +1438,7 @@ class CreateCertificateTemplateRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1473,6 +1489,7 @@ class DeleteCertificateTemplateRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -1625,6 +1642,7 @@ class UpdateCertificateTemplateRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). diff --git a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1beta1/types/service.py b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1beta1/types/service.py index 52bbb23d1bf6..71b7870fb76f 100644 --- a/packages/google-cloud-private-ca/google/cloud/security/privateca_v1beta1/types/service.py +++ b/packages/google-cloud-private-ca/google/cloud/security/privateca_v1beta1/types/service.py @@ -96,6 +96,7 @@ class CreateCertificateRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -262,6 +263,7 @@ class RevokeCertificateRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -310,6 +312,7 @@ class UpdateCertificateRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -364,6 +367,7 @@ class ActivateCertificateAuthorityRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -421,6 +425,7 @@ class CreateCertificateAuthorityRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -471,6 +476,7 @@ class DisableCertificateAuthorityRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -512,6 +518,7 @@ class EnableCertificateAuthorityRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -696,6 +703,7 @@ class RestoreCertificateAuthorityRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -737,6 +745,7 @@ class ScheduleDeleteCertificateAuthorityRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -780,6 +789,7 @@ class UpdateCertificateAuthorityRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -939,6 +949,7 @@ class UpdateCertificateRevocationListRequest(proto.Message): and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). diff --git a/packages/google-cloud-private-ca/noxfile.py b/packages/google-cloud-private-ca/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-private-ca/noxfile.py +++ b/packages/google-cloud-private-ca/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-private-ca/scripts/decrypt-secrets.sh b/packages/google-cloud-private-ca/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-private-ca/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-private-ca/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1/test_certificate_authority_service.py b/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1/test_certificate_authority_service.py index 33b5fe7462eb..5bca94eba56e 100644 --- a/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1/test_certificate_authority_service.py +++ b/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1/test_certificate_authority_service.py @@ -45,7 +45,7 @@ from google.iam.v1 import iam_policy_pb2 # type: ignore from google.iam.v1 import options_pb2 # type: ignore from google.iam.v1 import policy_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1beta1/test_certificate_authority_service.py b/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1beta1/test_certificate_authority_service.py index b14887945178..ecf7e81c1a07 100644 --- a/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1beta1/test_certificate_authority_service.py +++ b/packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1beta1/test_certificate_authority_service.py @@ -41,7 +41,7 @@ import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-private-catalog/.flake8 b/packages/google-cloud-private-catalog/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-private-catalog/.flake8 +++ b/packages/google-cloud-private-catalog/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-private-catalog/CONTRIBUTING.rst b/packages/google-cloud-private-catalog/CONTRIBUTING.rst index 266f2cb55e6e..e3cbdaaa92f1 100644 --- a/packages/google-cloud-private-catalog/CONTRIBUTING.rst +++ b/packages/google-cloud-private-catalog/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-private-catalog/noxfile.py ********** diff --git a/packages/google-cloud-private-catalog/MANIFEST.in b/packages/google-cloud-private-catalog/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-private-catalog/MANIFEST.in +++ b/packages/google-cloud-private-catalog/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-private-catalog/README.rst b/packages/google-cloud-private-catalog/README.rst index b8441850b813..6b31ce58a51a 100644 --- a/packages/google-cloud-private-catalog/README.rst +++ b/packages/google-cloud-private-catalog/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-private-catalog/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-private-catalog + pip install google-cloud-private-catalog Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-private-catalog + py -m venv + .\\Scripts\activate + pip install google-cloud-private-catalog Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-private-catalog/docs/conf.py b/packages/google-cloud-private-catalog/docs/conf.py index 9e62285ccd26..1b3a1afe78cd 100644 --- a/packages/google-cloud-private-catalog/docs/conf.py +++ b/packages/google-cloud-private-catalog/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-private-catalog/noxfile.py b/packages/google-cloud-private-catalog/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-private-catalog/noxfile.py +++ b/packages/google-cloud-private-catalog/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-private-catalog/scripts/decrypt-secrets.sh b/packages/google-cloud-private-catalog/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-private-catalog/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-private-catalog/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-public-ca/.flake8 b/packages/google-cloud-public-ca/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-public-ca/.flake8 +++ b/packages/google-cloud-public-ca/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-public-ca/CONTRIBUTING.rst b/packages/google-cloud-public-ca/CONTRIBUTING.rst index 27209ad88755..2a69dea419cd 100644 --- a/packages/google-cloud-public-ca/CONTRIBUTING.rst +++ b/packages/google-cloud-public-ca/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-public-ca/noxfile.py ********** diff --git a/packages/google-cloud-public-ca/MANIFEST.in b/packages/google-cloud-public-ca/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-public-ca/MANIFEST.in +++ b/packages/google-cloud-public-ca/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-public-ca/README.rst b/packages/google-cloud-public-ca/README.rst index c829069dee50..9898d19cff15 100644 --- a/packages/google-cloud-public-ca/README.rst +++ b/packages/google-cloud-public-ca/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-public-ca/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-public-ca + pip install google-cloud-public-ca Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-public-ca + py -m venv + .\\Scripts\activate + pip install google-cloud-public-ca Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-public-ca/docs/conf.py b/packages/google-cloud-public-ca/docs/conf.py index 5d4865a834c2..360df9ab7543 100644 --- a/packages/google-cloud-public-ca/docs/conf.py +++ b/packages/google-cloud-public-ca/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-public-ca/noxfile.py b/packages/google-cloud-public-ca/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-public-ca/noxfile.py +++ b/packages/google-cloud-public-ca/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-public-ca/scripts/decrypt-secrets.sh b/packages/google-cloud-public-ca/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-public-ca/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-public-ca/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-rapidmigrationassessment/.flake8 b/packages/google-cloud-rapidmigrationassessment/.flake8 index 2e438749863d..87f6e408c47d 100644 --- a/packages/google-cloud-rapidmigrationassessment/.flake8 +++ b/packages/google-cloud-rapidmigrationassessment/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-rapidmigrationassessment/CONTRIBUTING.rst b/packages/google-cloud-rapidmigrationassessment/CONTRIBUTING.rst index 6fbaf7f1b791..618071bacc54 100644 --- a/packages/google-cloud-rapidmigrationassessment/CONTRIBUTING.rst +++ b/packages/google-cloud-rapidmigrationassessment/CONTRIBUTING.rst @@ -236,7 +236,7 @@ We support: Supported versions can be found in our ``noxfile.py`` `config`_. -.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py +.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-rapidmigrationassessment/noxfile.py ********** diff --git a/packages/google-cloud-rapidmigrationassessment/MANIFEST.in b/packages/google-cloud-rapidmigrationassessment/MANIFEST.in index e783f4c6209b..e0a66705318e 100644 --- a/packages/google-cloud-rapidmigrationassessment/MANIFEST.in +++ b/packages/google-cloud-rapidmigrationassessment/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 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/packages/google-cloud-rapidmigrationassessment/README.rst b/packages/google-cloud-rapidmigrationassessment/README.rst index 89bd0de566ea..12c5003a20aa 100644 --- a/packages/google-cloud-rapidmigrationassessment/README.rst +++ b/packages/google-cloud-rapidmigrationassessment/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-rapidmigrationassessment/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-rapidmigrationassessment + pip install google-cloud-rapidmigrationassessment Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-rapidmigrationassessment + py -m venv + .\\Scripts\activate + pip install google-cloud-rapidmigrationassessment Next Steps ~~~~~~~~~~ diff --git a/packages/google-cloud-rapidmigrationassessment/docs/conf.py b/packages/google-cloud-rapidmigrationassessment/docs/conf.py index 510097542e05..fcbf2a00ca8e 100644 --- a/packages/google-cloud-rapidmigrationassessment/docs/conf.py +++ b/packages/google-cloud-rapidmigrationassessment/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 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/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/async_client.py b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/async_client.py index e80838820591..08cff4018c91 100644 --- a/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/async_client.py +++ b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/client.py b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/client.py index ae09a891cad9..83f6367e9679 100644 --- a/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/client.py +++ b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/transports/rest.py b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/transports/rest.py index 70cdec2aa81f..3e26a55297b5 100644 --- a/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/transports/rest.py +++ b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/services/rapid_migration_assessment/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/types/rapidmigrationassessment.py b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/types/rapidmigrationassessment.py index cac9de4da046..5fefb8bb32a1 100644 --- a/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/types/rapidmigrationassessment.py +++ b/packages/google-cloud-rapidmigrationassessment/google/cloud/rapidmigrationassessment_v1/types/rapidmigrationassessment.py @@ -221,6 +221,7 @@ class DeleteCollectorRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -229,6 +230,7 @@ class DeleteCollectorRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -264,6 +266,7 @@ class UpdateCollectorRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -272,6 +275,7 @@ class UpdateCollectorRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -306,6 +310,7 @@ class ResumeCollectorRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -314,6 +319,7 @@ class ResumeCollectorRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -342,6 +348,7 @@ class RegisterCollectorRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -350,6 +357,7 @@ class RegisterCollectorRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -378,6 +386,7 @@ class PauseCollectorRequest(proto.Message): know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. + For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request @@ -386,6 +395,7 @@ class PauseCollectorRequest(proto.Message): so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. + The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). diff --git a/packages/google-cloud-rapidmigrationassessment/noxfile.py b/packages/google-cloud-rapidmigrationassessment/noxfile.py index 6f5debd52f23..9a2acd8b6787 100644 --- a/packages/google-cloud-rapidmigrationassessment/noxfile.py +++ b/packages/google-cloud-rapidmigrationassessment/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 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/packages/google-cloud-rapidmigrationassessment/scripts/decrypt-secrets.sh b/packages/google-cloud-rapidmigrationassessment/scripts/decrypt-secrets.sh index 21f6d2a26d90..0018b421ddf8 100755 --- a/packages/google-cloud-rapidmigrationassessment/scripts/decrypt-secrets.sh +++ b/packages/google-cloud-rapidmigrationassessment/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # 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/packages/google-cloud-rapidmigrationassessment/tests/unit/gapic/rapidmigrationassessment_v1/test_rapid_migration_assessment.py b/packages/google-cloud-rapidmigrationassessment/tests/unit/gapic/rapidmigrationassessment_v1/test_rapid_migration_assessment.py index 472c02c9b558..d89a7b366ed8 100644 --- a/packages/google-cloud-rapidmigrationassessment/tests/unit/gapic/rapidmigrationassessment_v1/test_rapid_migration_assessment.py +++ b/packages/google-cloud-rapidmigrationassessment/tests/unit/gapic/rapidmigrationassessment_v1/test_rapid_migration_assessment.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format