-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use gapic-generator-python 0.63.2 (#108)
* chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: googleapis/googleapis@55b9e1e Source-Link: googleapis/googleapis-gen@bf4e86b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1c8fdcb
commit 705fb47
Showing
66 changed files
with
7,048 additions
and
0 deletions.
There are no files selected for viewing
353 changes: 353 additions & 0 deletions
353
packages/google-cloud-domains/google/cloud/domains_v1/services/domains/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
368 changes: 368 additions & 0 deletions
368
packages/google-cloud-domains/google/cloud/domains_v1/services/domains/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
353 changes: 353 additions & 0 deletions
353
packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
368 changes: 368 additions & 0 deletions
368
packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
...enerated_samples/domains_generated_domains_v1_domains_configure_contact_settings_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ConfigureContactSettings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_ConfigureContactSettings_async] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
async def sample_configure_contact_settings(): | ||
# Create a client | ||
client = domains_v1.DomainsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.ConfigureContactSettingsRequest( | ||
registration="registration_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.configure_contact_settings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_ConfigureContactSettings_async] |
49 changes: 49 additions & 0 deletions
49
...generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_sync.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ConfigureContactSettings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_ConfigureContactSettings_sync] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
def sample_configure_contact_settings(): | ||
# Create a client | ||
client = domains_v1.DomainsClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.ConfigureContactSettingsRequest( | ||
registration="registration_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.configure_contact_settings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_ConfigureContactSettings_sync] |
49 changes: 49 additions & 0 deletions
49
...es/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ConfigureDnsSettings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_ConfigureDnsSettings_async] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
async def sample_configure_dns_settings(): | ||
# Create a client | ||
client = domains_v1.DomainsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.ConfigureDnsSettingsRequest( | ||
registration="registration_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.configure_dns_settings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_ConfigureDnsSettings_async] |
49 changes: 49 additions & 0 deletions
49
...les/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_sync.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ConfigureDnsSettings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_ConfigureDnsSettings_sync] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
def sample_configure_dns_settings(): | ||
# Create a client | ||
client = domains_v1.DomainsClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.ConfigureDnsSettingsRequest( | ||
registration="registration_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.configure_dns_settings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_ConfigureDnsSettings_sync] |
49 changes: 49 additions & 0 deletions
49
...rated_samples/domains_generated_domains_v1_domains_configure_management_settings_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ConfigureManagementSettings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_ConfigureManagementSettings_async] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
async def sample_configure_management_settings(): | ||
# Create a client | ||
client = domains_v1.DomainsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.ConfigureManagementSettingsRequest( | ||
registration="registration_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.configure_management_settings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_ConfigureManagementSettings_async] |
49 changes: 49 additions & 0 deletions
49
...erated_samples/domains_generated_domains_v1_domains_configure_management_settings_sync.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ConfigureManagementSettings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_ConfigureManagementSettings_sync] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
def sample_configure_management_settings(): | ||
# Create a client | ||
client = domains_v1.DomainsClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.ConfigureManagementSettingsRequest( | ||
registration="registration_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.configure_management_settings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_ConfigureManagementSettings_sync] |
49 changes: 49 additions & 0 deletions
49
...mples/generated_samples/domains_generated_domains_v1_domains_delete_registration_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for DeleteRegistration | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_DeleteRegistration_async] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
async def sample_delete_registration(): | ||
# Create a client | ||
client = domains_v1.DomainsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.DeleteRegistrationRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.delete_registration(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_DeleteRegistration_async] |
49 changes: 49 additions & 0 deletions
49
...amples/generated_samples/domains_generated_domains_v1_domains_delete_registration_sync.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for DeleteRegistration | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-domains | ||
|
||
|
||
# [START domains_generated_domains_v1_Domains_DeleteRegistration_sync] | ||
from google.cloud import domains_v1 | ||
|
||
|
||
def sample_delete_registration(): | ||
# Create a client | ||
client = domains_v1.DomainsClient() | ||
|
||
# Initialize request argument(s) | ||
request = domains_v1.DeleteRegistrationRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.delete_registration(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END domains_generated_domains_v1_Domains_DeleteRegistration_sync] |
Oops, something went wrong.