Skip to content

Commit da93a4e

Browse files
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>
1 parent 816fcda commit da93a4e

File tree

113 files changed

+11366
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+11366
-0
lines changed

packages/google-cloud-tasks/google/cloud/tasks_v2/services/cloud_tasks/async_client.py

Lines changed: 314 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-tasks/google/cloud/tasks_v2/services/cloud_tasks/client.py

Lines changed: 330 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-tasks/google/cloud/tasks_v2beta2/services/cloud_tasks/async_client.py

Lines changed: 391 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-tasks/google/cloud/tasks_v2beta2/services/cloud_tasks/client.py

Lines changed: 411 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-tasks/google/cloud/tasks_v2beta3/services/cloud_tasks/async_client.py

Lines changed: 314 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-tasks/google/cloud/tasks_v2beta3/services/cloud_tasks/client.py

Lines changed: 330 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateQueue
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-tasks
24+
25+
26+
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_async]
27+
from google.cloud import tasks_v2
28+
29+
30+
async def sample_create_queue():
31+
# Create a client
32+
client = tasks_v2.CloudTasksAsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = tasks_v2.CreateQueueRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = await client.create_queue(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_async]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateQueue
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-tasks
24+
25+
26+
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_sync]
27+
from google.cloud import tasks_v2
28+
29+
30+
def sample_create_queue():
31+
# Create a client
32+
client = tasks_v2.CloudTasksClient()
33+
34+
# Initialize request argument(s)
35+
request = tasks_v2.CreateQueueRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = client.create_queue(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateQueue_sync]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateTask
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-tasks
24+
25+
26+
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_async]
27+
from google.cloud import tasks_v2
28+
29+
30+
async def sample_create_task():
31+
# Create a client
32+
client = tasks_v2.CloudTasksAsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = tasks_v2.CreateTaskRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = await client.create_task(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_async]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateTask
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-tasks
24+
25+
26+
# [START cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_sync]
27+
from google.cloud import tasks_v2
28+
29+
30+
def sample_create_task():
31+
# Create a client
32+
client = tasks_v2.CloudTasksClient()
33+
34+
# Initialize request argument(s)
35+
request = tasks_v2.CreateTaskRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = client.create_task(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END cloudtasks_generated_tasks_v2_CloudTasks_CreateTask_sync]

0 commit comments

Comments
 (0)