diff --git a/librarian.yaml b/librarian.yaml index aaf57c9ca5dd..7566bfa79e63 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. language: python -version: v0.38.0 +version: v0.39.0 repo: googleapis/google-cloud-python sources: googleapis: diff --git a/packages/google-cloud-beyondcorp-appconnections/.repo-metadata.json b/packages/google-cloud-beyondcorp-appconnections/.repo-metadata.json index 3e5efc587c2f..b3bca6dbdd4b 100644 --- a/packages/google-cloud-beyondcorp-appconnections/.repo-metadata.json +++ b/packages/google-cloud-beyondcorp-appconnections/.repo-metadata.json @@ -8,7 +8,7 @@ "language": "python", "library_type": "GAPIC_AUTO", "name": "beyondcorpappconnections", - "name_pretty": "BeyondCorp", + "name_pretty": "BeyondCorp AppConnections", "product_documentation": "https://cloud.google.com/beyondcorp/", "release_level": "preview", "repo": "googleapis/google-cloud-python" diff --git a/packages/google-cloud-beyondcorp-appconnections/README.rst b/packages/google-cloud-beyondcorp-appconnections/README.rst index 93a774829eb0..226c17ad6122 100644 --- a/packages/google-cloud-beyondcorp-appconnections/README.rst +++ b/packages/google-cloud-beyondcorp-appconnections/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp AppConnections +=========================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp AppConnections`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-appconnections/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-appconnections.svg :target: https://pypi.org/project/google-cloud-beyondcorp-appconnections/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnections: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpappconnections/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp AppConnections.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp AppConnections.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp AppConnections to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp AppConnections Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnections Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-appconnections/docs/README.rst b/packages/google-cloud-beyondcorp-appconnections/docs/README.rst index 93a774829eb0..226c17ad6122 100644 --- a/packages/google-cloud-beyondcorp-appconnections/docs/README.rst +++ b/packages/google-cloud-beyondcorp-appconnections/docs/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp AppConnections +=========================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp AppConnections`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-appconnections/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-appconnections.svg :target: https://pypi.org/project/google-cloud-beyondcorp-appconnections/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnections: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpappconnections/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp AppConnections.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp AppConnections.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp AppConnections to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp AppConnections Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnections Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-appconnections/docs/summary_overview.md b/packages/google-cloud-beyondcorp-appconnections/docs/summary_overview.md index 4012a595c9be..511308f4a54b 100644 --- a/packages/google-cloud-beyondcorp-appconnections/docs/summary_overview.md +++ b/packages/google-cloud-beyondcorp-appconnections/docs/summary_overview.md @@ -5,14 +5,14 @@ reverted. Instead, if you want to place additional content, create an pick up on the content and merge the content. ]: # -# BeyondCorp API +# BeyondCorp AppConnections API -Overview of the APIs available for BeyondCorp API. +Overview of the APIs available for BeyondCorp AppConnections API. ## All entries Classes, methods and properties & attributes for -BeyondCorp API. +BeyondCorp AppConnections API. [classes](https://cloud.google.com/python/docs/reference/beyondcorpappconnections/latest/summary_class.html) diff --git a/packages/google-cloud-beyondcorp-appconnectors/.repo-metadata.json b/packages/google-cloud-beyondcorp-appconnectors/.repo-metadata.json index 6258ce06c49a..5066e6427fac 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/.repo-metadata.json +++ b/packages/google-cloud-beyondcorp-appconnectors/.repo-metadata.json @@ -8,7 +8,7 @@ "language": "python", "library_type": "GAPIC_AUTO", "name": "beyondcorpappconnectors", - "name_pretty": "BeyondCorp", + "name_pretty": "BeyondCorp AppConnectors", "product_documentation": "https://cloud.google.com/beyondcorp/", "release_level": "preview", "repo": "googleapis/google-cloud-python" diff --git a/packages/google-cloud-beyondcorp-appconnectors/README.rst b/packages/google-cloud-beyondcorp-appconnectors/README.rst index 369e35ed4617..6cfaa1aa2963 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/README.rst +++ b/packages/google-cloud-beyondcorp-appconnectors/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp AppConnectors +========================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp AppConnectors`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-appconnectors/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-appconnectors.svg :target: https://pypi.org/project/google-cloud-beyondcorp-appconnectors/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnectors: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpappconnectors/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp AppConnectors.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp AppConnectors.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp AppConnectors to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp AppConnectors Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnectors Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-appconnectors/docs/README.rst b/packages/google-cloud-beyondcorp-appconnectors/docs/README.rst index 369e35ed4617..6cfaa1aa2963 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/docs/README.rst +++ b/packages/google-cloud-beyondcorp-appconnectors/docs/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp AppConnectors +========================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp AppConnectors`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-appconnectors/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-appconnectors.svg :target: https://pypi.org/project/google-cloud-beyondcorp-appconnectors/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnectors: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpappconnectors/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp AppConnectors.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp AppConnectors.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp AppConnectors to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp AppConnectors Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppConnectors Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-appconnectors/docs/summary_overview.md b/packages/google-cloud-beyondcorp-appconnectors/docs/summary_overview.md index 5e9011813805..d6782f9fc4ca 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/docs/summary_overview.md +++ b/packages/google-cloud-beyondcorp-appconnectors/docs/summary_overview.md @@ -5,14 +5,14 @@ reverted. Instead, if you want to place additional content, create an pick up on the content and merge the content. ]: # -# BeyondCorp API +# BeyondCorp AppConnectors API -Overview of the APIs available for BeyondCorp API. +Overview of the APIs available for BeyondCorp AppConnectors API. ## All entries Classes, methods and properties & attributes for -BeyondCorp API. +BeyondCorp AppConnectors API. [classes](https://cloud.google.com/python/docs/reference/beyondcorpappconnectors/latest/summary_class.html) diff --git a/packages/google-cloud-beyondcorp-appgateways/.repo-metadata.json b/packages/google-cloud-beyondcorp-appgateways/.repo-metadata.json index 3ede686ceecb..8bf38c2eb4fd 100644 --- a/packages/google-cloud-beyondcorp-appgateways/.repo-metadata.json +++ b/packages/google-cloud-beyondcorp-appgateways/.repo-metadata.json @@ -8,7 +8,7 @@ "language": "python", "library_type": "GAPIC_AUTO", "name": "beyondcorpappgateways", - "name_pretty": "BeyondCorp", + "name_pretty": "BeyondCorp AppGateways", "product_documentation": "https://cloud.google.com/beyondcorp/", "release_level": "preview", "repo": "googleapis/google-cloud-python" diff --git a/packages/google-cloud-beyondcorp-appgateways/README.rst b/packages/google-cloud-beyondcorp-appgateways/README.rst index 7906c1ad11de..eb0844c167a2 100644 --- a/packages/google-cloud-beyondcorp-appgateways/README.rst +++ b/packages/google-cloud-beyondcorp-appgateways/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp AppGateways +======================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp AppGateways`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-appgateways/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-appgateways.svg :target: https://pypi.org/project/google-cloud-beyondcorp-appgateways/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppGateways: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpappgateways/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp AppGateways.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp AppGateways.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp AppGateways to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp AppGateways Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppGateways Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-appgateways/docs/README.rst b/packages/google-cloud-beyondcorp-appgateways/docs/README.rst index 7906c1ad11de..eb0844c167a2 100644 --- a/packages/google-cloud-beyondcorp-appgateways/docs/README.rst +++ b/packages/google-cloud-beyondcorp-appgateways/docs/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp AppGateways +======================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp AppGateways`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-appgateways/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-appgateways.svg :target: https://pypi.org/project/google-cloud-beyondcorp-appgateways/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppGateways: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpappgateways/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp AppGateways.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp AppGateways.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp AppGateways to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp AppGateways Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp AppGateways Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-appgateways/docs/summary_overview.md b/packages/google-cloud-beyondcorp-appgateways/docs/summary_overview.md index bdf00dadfaa4..df47f06c2376 100644 --- a/packages/google-cloud-beyondcorp-appgateways/docs/summary_overview.md +++ b/packages/google-cloud-beyondcorp-appgateways/docs/summary_overview.md @@ -5,14 +5,14 @@ reverted. Instead, if you want to place additional content, create an pick up on the content and merge the content. ]: # -# BeyondCorp API +# BeyondCorp AppGateways API -Overview of the APIs available for BeyondCorp API. +Overview of the APIs available for BeyondCorp AppGateways API. ## All entries Classes, methods and properties & attributes for -BeyondCorp API. +BeyondCorp AppGateways API. [classes](https://cloud.google.com/python/docs/reference/beyondcorpappgateways/latest/summary_class.html) diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/.repo-metadata.json b/packages/google-cloud-beyondcorp-clientconnectorservices/.repo-metadata.json index 63f942834cb0..957f8c5f4a72 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/.repo-metadata.json +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/.repo-metadata.json @@ -8,7 +8,7 @@ "language": "python", "library_type": "GAPIC_AUTO", "name": "beyondcorpclientconnectorservices", - "name_pretty": "BeyondCorp", + "name_pretty": "BeyondCorp ClientConnectorServices", "product_documentation": "https://cloud.google.com/beyondcorp/", "release_level": "preview", "repo": "googleapis/google-cloud-python" diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/README.rst b/packages/google-cloud-beyondcorp-clientconnectorservices/README.rst index 6ab381bc89c9..03f8c3743e9a 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/README.rst +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp ClientConnectorServices +==================================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp ClientConnectorServices`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-clientconnectorservices/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-clientconnectorservices.svg :target: https://pypi.org/project/google-cloud-beyondcorp-clientconnectorservices/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientConnectorServices: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpclientconnectorservices/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp ClientConnectorServices.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp ClientConnectorServices.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp ClientConnectorServices to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp ClientConnectorServices Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientConnectorServices Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/README.rst b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/README.rst index 6ab381bc89c9..03f8c3743e9a 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/README.rst +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp ClientConnectorServices +==================================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp ClientConnectorServices`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-clientconnectorservices/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-clientconnectorservices.svg :target: https://pypi.org/project/google-cloud-beyondcorp-clientconnectorservices/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientConnectorServices: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpclientconnectorservices/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp ClientConnectorServices.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp ClientConnectorServices.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp ClientConnectorServices to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp ClientConnectorServices Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientConnectorServices Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/summary_overview.md b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/summary_overview.md index 8f9edb742494..26cab9208024 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/docs/summary_overview.md +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/docs/summary_overview.md @@ -5,14 +5,14 @@ reverted. Instead, if you want to place additional content, create an pick up on the content and merge the content. ]: # -# BeyondCorp API +# BeyondCorp ClientConnectorServices API -Overview of the APIs available for BeyondCorp API. +Overview of the APIs available for BeyondCorp ClientConnectorServices API. ## All entries Classes, methods and properties & attributes for -BeyondCorp API. +BeyondCorp ClientConnectorServices API. [classes](https://cloud.google.com/python/docs/reference/beyondcorpclientconnectorservices/latest/summary_class.html) diff --git a/packages/google-cloud-beyondcorp-clientgateways/.repo-metadata.json b/packages/google-cloud-beyondcorp-clientgateways/.repo-metadata.json index a721cf26ff9f..34faf2820401 100644 --- a/packages/google-cloud-beyondcorp-clientgateways/.repo-metadata.json +++ b/packages/google-cloud-beyondcorp-clientgateways/.repo-metadata.json @@ -8,7 +8,7 @@ "language": "python", "library_type": "GAPIC_AUTO", "name": "beyondcorpclientgateways", - "name_pretty": "BeyondCorp", + "name_pretty": "BeyondCorp ClientGateways", "product_documentation": "https://cloud.google.com/beyondcorp/", "release_level": "preview", "repo": "googleapis/google-cloud-python" diff --git a/packages/google-cloud-beyondcorp-clientgateways/README.rst b/packages/google-cloud-beyondcorp-clientgateways/README.rst index 6aa682d10cb4..720e3ed79d9c 100644 --- a/packages/google-cloud-beyondcorp-clientgateways/README.rst +++ b/packages/google-cloud-beyondcorp-clientgateways/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp ClientGateways +=========================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp ClientGateways`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-clientgateways.svg :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientGateways: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpclientgateways/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp ClientGateways.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp ClientGateways.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp ClientGateways to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp ClientGateways Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientGateways Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-clientgateways/docs/README.rst b/packages/google-cloud-beyondcorp-clientgateways/docs/README.rst index 6aa682d10cb4..720e3ed79d9c 100644 --- a/packages/google-cloud-beyondcorp-clientgateways/docs/README.rst +++ b/packages/google-cloud-beyondcorp-clientgateways/docs/README.rst @@ -1,9 +1,9 @@ -Python Client for BeyondCorp -============================ +Python Client for BeyondCorp ClientGateways +=========================================== |preview| |pypi| |versions| -`BeyondCorp`_: Beyondcorp Enterprise provides identity and context aware access controls +`BeyondCorp ClientGateways`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution. @@ -17,7 +17,7 @@ connectivity using the App Connector hybrid connectivity solution. :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-clientgateways.svg :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/ -.. _BeyondCorp: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientGateways: https://cloud.google.com/beyondcorp/ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpclientgateways/latest/summary_overview .. _Product Documentation: https://cloud.google.com/beyondcorp/ @@ -28,12 +28,12 @@ In order to use this library, you first need to go through the following steps: 1. `Select or create a Cloud Platform project.`_ 2. `Enable billing for your project.`_ -3. `Enable the BeyondCorp.`_ +3. `Enable the BeyondCorp ClientGateways.`_ 4. `Set up Authentication.`_ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the BeyondCorp.: https://cloud.google.com/beyondcorp/ +.. _Enable the BeyondCorp ClientGateways.: https://cloud.google.com/beyondcorp/ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -101,14 +101,14 @@ Windows Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for BeyondCorp +- Read the `Client Library Documentation`_ for BeyondCorp ClientGateways to see other available methods on the client. -- Read the `BeyondCorp Product documentation`_ to learn +- Read the `BeyondCorp ClientGateways Product documentation`_ to learn more about the product and see How-to Guides. - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _BeyondCorp Product documentation: https://cloud.google.com/beyondcorp/ +.. _BeyondCorp ClientGateways Product documentation: https://cloud.google.com/beyondcorp/ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst Logging diff --git a/packages/google-cloud-beyondcorp-clientgateways/docs/summary_overview.md b/packages/google-cloud-beyondcorp-clientgateways/docs/summary_overview.md index 260a76f57b20..cd95ec4103c9 100644 --- a/packages/google-cloud-beyondcorp-clientgateways/docs/summary_overview.md +++ b/packages/google-cloud-beyondcorp-clientgateways/docs/summary_overview.md @@ -5,14 +5,14 @@ reverted. Instead, if you want to place additional content, create an pick up on the content and merge the content. ]: # -# BeyondCorp API +# BeyondCorp ClientGateways API -Overview of the APIs available for BeyondCorp API. +Overview of the APIs available for BeyondCorp ClientGateways API. ## All entries Classes, methods and properties & attributes for -BeyondCorp API. +BeyondCorp ClientGateways API. [classes](https://cloud.google.com/python/docs/reference/beyondcorpclientgateways/latest/summary_class.html) diff --git a/packages/google-cloud-bigtable/google/cloud/bigtable/row_filters.py b/packages/google-cloud-bigtable/google/cloud/bigtable/row_filters.py index 9b289ce1c6b5..449543bc132c 100644 --- a/packages/google-cloud-bigtable/google/cloud/bigtable/row_filters.py +++ b/packages/google-cloud-bigtable/google/cloud/bigtable/row_filters.py @@ -17,33 +17,39 @@ import struct from google.cloud.bigtable.data.row_filters import ( # noqa: F401 - RowFilter, - SinkFilter, - _BoolFilter, - PassAllFilter, + ApplyLabelFilter, BlockAllFilter, - _RegexFilter, + CellsColumnLimitFilter, + CellsRowLimitFilter, + CellsRowOffsetFilter, + ColumnQualifierRegexFilter, + FamilyNameRegexFilter, + PassAllFilter, + RowFilter, + RowFilterChain, + RowFilterUnion, RowKeyRegexFilter, RowSampleFilter, - FamilyNameRegexFilter, - ColumnQualifierRegexFilter, + SinkFilter, + StripValueTransformerFilter, TimestampRange, - TimestampRangeFilter as BaseTimestampRangeFilter, - ColumnRangeFilter as BaseColumnRangeFilter, - ValueRegexFilter, - ValueRangeFilter, ValueBitmaskFilter, + ValueRangeFilter, + ValueRegexFilter, + _BoolFilter, _CellCountFilter, - CellsRowOffsetFilter, - CellsRowLimitFilter, - CellsColumnLimitFilter, - StripValueTransformerFilter, - ApplyLabelFilter, _FilterCombination, - RowFilterChain, - RowFilterUnion, + _RegexFilter, +) +from google.cloud.bigtable.data.row_filters import ( + ColumnRangeFilter as BaseColumnRangeFilter, +) +from google.cloud.bigtable.data.row_filters import ( ConditionalRowFilter as BaseConditionalRowFilter, ) +from google.cloud.bigtable.data.row_filters import ( + TimestampRangeFilter as BaseTimestampRangeFilter, +) _PACK_I64 = struct.Struct(">q").pack diff --git a/packages/google-cloud-bigtable/tests/unit/v2_client/test_row_filters.py b/packages/google-cloud-bigtable/tests/unit/v2_client/test_row_filters.py index 276fbf9af9f2..6f6de3c00899 100644 --- a/packages/google-cloud-bigtable/tests/unit/v2_client/test_row_filters.py +++ b/packages/google-cloud-bigtable/tests/unit/v2_client/test_row_filters.py @@ -18,10 +18,16 @@ from google.cloud.bigtable import row_filters from google.cloud.bigtable.row_filters import ( _BoolFilter as _BaseBoolFilter, - _RegexFilter as _BaseRegexFilter, +) +from google.cloud.bigtable.row_filters import ( _CellCountFilter as _BaseCellCountFilter, +) +from google.cloud.bigtable.row_filters import ( _FilterCombination as _BaseFilterCombination, ) +from google.cloud.bigtable.row_filters import ( + _RegexFilter as _BaseRegexFilter, +) def test_bool_filter_constructor(): @@ -1228,6 +1234,7 @@ def test_all_row_filters_to_pb_backwards_compatibility(filter_instance): def test_timestamp_range_to_pb_backwards_compatibility(): from datetime import datetime, timezone + from google.cloud.bigtable.row_filters import TimestampRange start = datetime(2023, 1, 1, tzinfo=timezone.utc) diff --git a/packages/google-cloud-compute-v1beta/google/cloud/compute/gapic_version.py b/packages/google-cloud-compute-v1beta/google/cloud/compute/gapic_version.py index 6883e8a21b96..83ab7515bab7 100644 --- a/packages/google-cloud-compute-v1beta/google/cloud/compute/gapic_version.py +++ b/packages/google-cloud-compute-v1beta/google/cloud/compute/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.12.1" # {x-release-please-version} +__version__ = "0.12.2" # {x-release-please-version} diff --git a/packages/google-cloud-spanner/google/cloud/spanner/__init__.py b/packages/google-cloud-spanner/google/cloud/spanner/__init__.py index d9db13f1868c..e2268ec04759 100644 --- a/packages/google-cloud-spanner/google/cloud/spanner/__init__.py +++ b/packages/google-cloud-spanner/google/cloud/spanner/__init__.py @@ -15,9 +15,6 @@ # from __future__ import absolute_import -import google.api_core as api_core - - from google.cloud.spanner_v1 import ( COMMIT_TIMESTAMP, AbstractSessionPool, @@ -32,12 +29,6 @@ param_types, ) -if hasattr(api_core, "check_python_version") and hasattr( - api_core, "check_dependency_versions" -): # pragma: NO COVER - api_core.check_python_version(__name__) # type: ignore - api_core.check_dependency_versions(__name__) # type: ignore - __all__ = ( # google.cloud.spanner "__version__", diff --git a/packages/google-cloud-spanner/google/cloud/spanner_dbapi/connection.py b/packages/google-cloud-spanner/google/cloud/spanner_dbapi/connection.py index ba4ff6613333..a1570d9ca69a 100644 --- a/packages/google-cloud-spanner/google/cloud/spanner_dbapi/connection.py +++ b/packages/google-cloud-spanner/google/cloud/spanner_dbapi/connection.py @@ -20,6 +20,7 @@ from google.api_core.exceptions import Aborted from google.api_core.gapic_v1.client_info import ClientInfo from google.auth.credentials import AnonymousCredentials + from google.cloud import spanner_v1 as spanner from google.cloud.spanner_dbapi import partition_helper from google.cloud.spanner_dbapi.batch_dml_executor import BatchDmlExecutor, BatchMode diff --git a/packages/google-cloud-spanner/google/cloud/spanner_dbapi/cursor.py b/packages/google-cloud-spanner/google/cloud/spanner_dbapi/cursor.py index ceb26b823f1f..9aab0437a7ac 100644 --- a/packages/google-cloud-spanner/google/cloud/spanner_dbapi/cursor.py +++ b/packages/google-cloud-spanner/google/cloud/spanner_dbapi/cursor.py @@ -25,6 +25,7 @@ InvalidArgument, OutOfRange, ) + from google.cloud import spanner_v1 as spanner from google.cloud.spanner_dbapi import ( _helpers, diff --git a/packages/google-cloud-spanner/google/cloud/spanner_v1/__init__.py b/packages/google-cloud-spanner/google/cloud/spanner_v1/__init__.py index 0dfc5a636a87..e37fbdfc64b3 100644 --- a/packages/google-cloud-spanner/google/cloud/spanner_v1/__init__.py +++ b/packages/google-cloud-spanner/google/cloud/spanner_v1/__init__.py @@ -15,9 +15,6 @@ # from __future__ import absolute_import -import google.api_core as api_core - - from google.cloud.spanner_v1 import gapic_version as package_version __version__: str = package_version.__version__ @@ -93,12 +90,6 @@ ``(allow_commit_timestamp=true)`` in the schema. """ -if hasattr(api_core, "check_python_version") and hasattr( - api_core, "check_dependency_versions" -): # pragma: NO COVER - api_core.check_python_version(__name__) # type: ignore - api_core.check_dependency_versions(__name__) # type: ignore - __all__ = ( # google.cloud.spanner_v1 "__version__", diff --git a/packages/google-cloud-spanner/tests/mockserver_tests/test_dbapi_databoost.py b/packages/google-cloud-spanner/tests/mockserver_tests/test_dbapi_databoost.py index 4c234d47dc95..0717b106b3aa 100644 --- a/packages/google-cloud-spanner/tests/mockserver_tests/test_dbapi_databoost.py +++ b/packages/google-cloud-spanner/tests/mockserver_tests/test_dbapi_databoost.py @@ -24,7 +24,6 @@ TypeCode, ) from google.cloud.spanner_v1.types import spanner as spanner_types - from tests.mockserver_tests.mock_server_test_base import ( MockServerTestBase, add_single_result, diff --git a/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_connection.py b/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_connection.py index d51d20e3779b..60dbdb368b8d 100644 --- a/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_connection.py +++ b/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_connection.py @@ -21,6 +21,7 @@ import mock import pytest from google.auth.credentials import AnonymousCredentials + from google.cloud.spanner_admin_database_v1 import DatabaseDialect from google.cloud.spanner_dbapi import Connection from google.cloud.spanner_dbapi.batch_dml_executor import BatchMode @@ -38,7 +39,6 @@ StatementType, ) from google.cloud.spanner_v1.database_sessions_manager import TransactionType - from tests._builders import build_connection, build_session PROJECT = "test-project" diff --git a/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_cursor.py b/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_cursor.py index 6ad4cf5572ca..47dad1f1c132 100644 --- a/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_cursor.py +++ b/packages/google-cloud-spanner/tests/unit/spanner_dbapi/test_cursor.py @@ -20,13 +20,14 @@ from google.api_core.exceptions import Aborted from google.auth.credentials import AnonymousCredentials +from google.rpc.code_pb2 import ABORTED + from google.cloud.spanner_dbapi.connection import connect from google.cloud.spanner_dbapi.parsed_statement import ( ParsedStatement, Statement, StatementType, ) -from google.rpc.code_pb2 import ABORTED class TestCursor(unittest.TestCase): @@ -454,6 +455,7 @@ def test_execute_statement_exception_with_cursor_not_in_retry_mode(self): def test_execute_integrity_error(self): from google.api_core import exceptions + from google.cloud.spanner_dbapi.exceptions import IntegrityError connection = self._make_connection(self.INSTANCE, mock.MagicMock()) @@ -486,6 +488,7 @@ def test_execute_integrity_error(self): def test_execute_invalid_argument(self): from google.api_core import exceptions + from google.cloud.spanner_dbapi.exceptions import ProgrammingError connection = self._make_connection(self.INSTANCE, mock.MagicMock()) @@ -500,6 +503,7 @@ def test_execute_invalid_argument(self): def test_execute_internal_server_error(self): from google.api_core import exceptions + from google.cloud.spanner_dbapi.exceptions import OperationalError connection = self._make_connection(self.INSTANCE, mock.MagicMock()) @@ -763,10 +767,11 @@ def test_executemany_insert_batch_autocommit(self): transaction.commit.assert_called_once() def test_executemany_insert_batch_failed(self): + from google.rpc.code_pb2 import UNKNOWN + from google.cloud.spanner_dbapi import connect from google.cloud.spanner_dbapi.exceptions import OperationalError from google.cloud.spanner_v1.types.spanner import Session - from google.rpc.code_pb2 import UNKNOWN sql = """INSERT INTO table (col1, "col2", `col3`, `"col4"`) VALUES (%s, %s, %s, %s)""" err_details = "Details here" @@ -1162,6 +1167,7 @@ def test_peek_iterator_aborted(self, mock_client): while streaming the first element with a PeekIterator. """ from google.api_core.exceptions import Aborted + from google.cloud.spanner_dbapi.connection import connect connection = connect("test-instance", "test-database")