Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#258)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.2

PiperOrigin-RevId: 444333013

Source-Link: googleapis/googleapis@f91b6cf

Source-Link: googleapis/googleapis-gen@16eb360
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9

* 🦉 Updates from OwlBot post-processor

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
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 28, 2022
1 parent d619621 commit b15ba86
Show file tree
Hide file tree
Showing 6 changed files with 370 additions and 370 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ async def list_queues(
from google.cloud import tasks_v2
def sample_list_queues():
async def sample_list_queues():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.ListQueuesRequest(
Expand All @@ -241,7 +241,7 @@ def sample_list_queues():
page_result = client.list_queues(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -346,17 +346,17 @@ async def get_queue(
from google.cloud import tasks_v2
def sample_get_queue():
async def sample_get_queue():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.GetQueueRequest(
name="name_value",
)
# Make the request
response = client.get_queue(request=request)
response = await client.get_queue(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -466,17 +466,17 @@ async def create_queue(
from google.cloud import tasks_v2
def sample_create_queue():
async def sample_create_queue():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.CreateQueueRequest(
parent="parent_value",
)
# Make the request
response = client.create_queue(request=request)
response = await client.create_queue(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -595,16 +595,16 @@ async def update_queue(
from google.cloud import tasks_v2
def sample_update_queue():
async def sample_update_queue():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.UpdateQueueRequest(
)
# Make the request
response = client.update_queue(request=request)
response = await client.update_queue(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -725,17 +725,17 @@ async def delete_queue(
from google.cloud import tasks_v2
def sample_delete_queue():
async def sample_delete_queue():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.DeleteQueueRequest(
name="name_value",
)
# Make the request
client.delete_queue(request=request)
await client.delete_queue(request=request)
Args:
request (Union[google.cloud.tasks_v2.types.DeleteQueueRequest, dict]):
Expand Down Expand Up @@ -823,17 +823,17 @@ async def purge_queue(
from google.cloud import tasks_v2
def sample_purge_queue():
async def sample_purge_queue():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.PurgeQueueRequest(
name="name_value",
)
# Make the request
response = client.purge_queue(request=request)
response = await client.purge_queue(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -929,17 +929,17 @@ async def pause_queue(
from google.cloud import tasks_v2
def sample_pause_queue():
async def sample_pause_queue():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.PauseQueueRequest(
name="name_value",
)
# Make the request
response = client.pause_queue(request=request)
response = await client.pause_queue(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1042,17 +1042,17 @@ async def resume_queue(
from google.cloud import tasks_v2
def sample_resume_queue():
async def sample_resume_queue():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.ResumeQueueRequest(
name="name_value",
)
# Make the request
response = client.resume_queue(request=request)
response = await client.resume_queue(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1150,17 +1150,17 @@ async def get_iam_policy(
from google.cloud import tasks_v2
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_get_iam_policy():
async def sample_get_iam_policy():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = iam_policy_pb2.GetIamPolicyRequest(
resource="resource_value",
)
# Make the request
response = client.get_iam_policy(request=request)
response = await client.get_iam_policy(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1331,17 +1331,17 @@ async def set_iam_policy(
from google.cloud import tasks_v2
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_set_iam_policy():
async def sample_set_iam_policy():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = iam_policy_pb2.SetIamPolicyRequest(
resource="resource_value",
)
# Make the request
response = client.set_iam_policy(request=request)
response = await client.set_iam_policy(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1499,9 +1499,9 @@ async def test_iam_permissions(
from google.cloud import tasks_v2
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_test_iam_permissions():
async def sample_test_iam_permissions():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = iam_policy_pb2.TestIamPermissionsRequest(
Expand All @@ -1510,7 +1510,7 @@ def sample_test_iam_permissions():
)
# Make the request
response = client.test_iam_permissions(request=request)
response = await client.test_iam_permissions(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1626,9 +1626,9 @@ async def list_tasks(
from google.cloud import tasks_v2
def sample_list_tasks():
async def sample_list_tasks():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.ListTasksRequest(
Expand All @@ -1639,7 +1639,7 @@ def sample_list_tasks():
page_result = client.list_tasks(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -1745,17 +1745,17 @@ async def get_task(
from google.cloud import tasks_v2
def sample_get_task():
async def sample_get_task():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.GetTaskRequest(
name="name_value",
)
# Make the request
response = client.get_task(request=request)
response = await client.get_task(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1855,17 +1855,17 @@ async def create_task(
from google.cloud import tasks_v2
def sample_create_task():
async def sample_create_task():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.CreateTaskRequest(
parent="parent_value",
)
# Make the request
response = client.create_task(request=request)
response = await client.create_task(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -2001,17 +2001,17 @@ async def delete_task(
from google.cloud import tasks_v2
def sample_delete_task():
async def sample_delete_task():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.DeleteTaskRequest(
name="name_value",
)
# Make the request
client.delete_task(request=request)
await client.delete_task(request=request)
Args:
request (Union[google.cloud.tasks_v2.types.DeleteTaskRequest, dict]):
Expand Down Expand Up @@ -2121,17 +2121,17 @@ async def run_task(
from google.cloud import tasks_v2
def sample_run_task():
async def sample_run_task():
# Create a client
client = tasks_v2.CloudTasksClient()
client = tasks_v2.CloudTasksAsyncClient()
# Initialize request argument(s)
request = tasks_v2.RunTaskRequest(
name="name_value",
)
# Make the request
response = client.run_task(request=request)
response = await client.run_task(request=request)
# Handle the response
print(response)
Expand Down
Loading

0 comments on commit b15ba86

Please sign in to comment.