-
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 (#220)
* 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
816fcda
commit da93a4e
Showing
113 changed files
with
11,366 additions
and
0 deletions.
There are no files selected for viewing
314 changes: 314 additions & 0 deletions
314
packages/google-cloud-tasks/google/cloud/tasks_v2/services/cloud_tasks/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
330 changes: 330 additions & 0 deletions
330
packages/google-cloud-tasks/google/cloud/tasks_v2/services/cloud_tasks/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
391 changes: 391 additions & 0 deletions
391
packages/google-cloud-tasks/google/cloud/tasks_v2beta2/services/cloud_tasks/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
411 changes: 411 additions & 0 deletions
411
packages/google-cloud-tasks/google/cloud/tasks_v2beta2/services/cloud_tasks/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
314 changes: 314 additions & 0 deletions
314
packages/google-cloud-tasks/google/cloud/tasks_v2beta3/services/cloud_tasks/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
330 changes: 330 additions & 0 deletions
330
packages/google-cloud-tasks/google/cloud/tasks_v2beta3/services/cloud_tasks/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
...samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_create_queue_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,45 @@ | ||
# -*- 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 CreateQueue | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_async] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
async def sample_create_queue(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.CreateQueueRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_queue(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_async] |
45 changes: 45 additions & 0 deletions
45
.../samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_create_queue_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,45 @@ | ||
# -*- 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 CreateQueue | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_sync] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
def sample_create_queue(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.CreateQueueRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_queue(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_sync] |
45 changes: 45 additions & 0 deletions
45
.../samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_create_task_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,45 @@ | ||
# -*- 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 CreateTask | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_async] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
async def sample_create_task(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.CreateTaskRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_task(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_async] |
45 changes: 45 additions & 0 deletions
45
...s/samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_create_task_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,45 @@ | ||
# -*- 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 CreateTask | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_sync] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
def sample_create_task(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.CreateTaskRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_task(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_sync] |
43 changes: 43 additions & 0 deletions
43
...samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_delete_queue_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,43 @@ | ||
# -*- 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 DeleteQueue | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_DeleteQueue_async] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
async def sample_delete_queue(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.DeleteQueueRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
await client.delete_queue(request=request) | ||
|
||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_DeleteQueue_async] |
43 changes: 43 additions & 0 deletions
43
.../samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_delete_queue_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,43 @@ | ||
# -*- 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 DeleteQueue | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_DeleteQueue_sync] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
def sample_delete_queue(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.DeleteQueueRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
client.delete_queue(request=request) | ||
|
||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_DeleteQueue_sync] |
43 changes: 43 additions & 0 deletions
43
.../samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_delete_task_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,43 @@ | ||
# -*- 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 DeleteTask | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_DeleteTask_async] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
async def sample_delete_task(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.DeleteTaskRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
await client.delete_task(request=request) | ||
|
||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_DeleteTask_async] |
43 changes: 43 additions & 0 deletions
43
...s/samples/generated_samples/cloudtasks_generated_tasks_v2_cloud_tasks_delete_task_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,43 @@ | ||
# -*- 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 DeleteTask | ||
# 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-tasks | ||
|
||
|
||
# [START cloudtasks_generated_tasks_v2_CloudTasks_DeleteTask_sync] | ||
from google.cloud import tasks_v2 | ||
|
||
|
||
def sample_delete_task(): | ||
# Create a client | ||
client = tasks_v2.CloudTasksClient() | ||
|
||
# Initialize request argument(s) | ||
request = tasks_v2.DeleteTaskRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
client.delete_task(request=request) | ||
|
||
|
||
# [END cloudtasks_generated_tasks_v2_CloudTasks_DeleteTask_sync] |
Oops, something went wrong.