Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#208)
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 27, 2022
1 parent e1e082e commit 019e4d3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,17 +225,17 @@ async def create_connection(
from google.cloud import bigquery_connection_v1
def sample_create_connection():
async def sample_create_connection():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# Initialize request argument(s)
request = bigquery_connection_v1.CreateConnectionRequest(
parent="parent_value",
)
# Make the request
response = client.create_connection(request=request)
response = await client.create_connection(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -337,17 +337,17 @@ async def get_connection(
from google.cloud import bigquery_connection_v1
def sample_get_connection():
async def sample_get_connection():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# Initialize request argument(s)
request = bigquery_connection_v1.GetConnectionRequest(
name="name_value",
)
# Make the request
response = client.get_connection(request=request)
response = await client.get_connection(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -443,9 +443,9 @@ async def list_connections(
from google.cloud import bigquery_connection_v1
def sample_list_connections():
async def sample_list_connections():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# Initialize request argument(s)
request = bigquery_connection_v1.ListConnectionsRequest(
Expand All @@ -457,7 +457,7 @@ def sample_list_connections():
page_result = client.list_connections(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -566,17 +566,17 @@ async def update_connection(
from google.cloud import bigquery_connection_v1
def sample_update_connection():
async def sample_update_connection():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# Initialize request argument(s)
request = bigquery_connection_v1.UpdateConnectionRequest(
name="name_value",
)
# Make the request
response = client.update_connection(request=request)
response = await client.update_connection(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -680,17 +680,17 @@ async def delete_connection(
from google.cloud import bigquery_connection_v1
def sample_delete_connection():
async def sample_delete_connection():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# Initialize request argument(s)
request = bigquery_connection_v1.DeleteConnectionRequest(
name="name_value",
)
# Make the request
client.delete_connection(request=request)
await client.delete_connection(request=request)
Args:
request (Union[google.cloud.bigquery_connection_v1.types.DeleteConnectionRequest, dict]):
Expand Down Expand Up @@ -776,17 +776,17 @@ async def get_iam_policy(
from google.cloud import bigquery_connection_v1
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 = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# 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 @@ -939,17 +939,17 @@ async def set_iam_policy(
from google.cloud import bigquery_connection_v1
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 = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# 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 @@ -1106,9 +1106,9 @@ async def test_iam_permissions(
from google.cloud import bigquery_connection_v1
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 = bigquery_connection_v1.ConnectionServiceClient()
client = bigquery_connection_v1.ConnectionServiceAsyncClient()
# Initialize request argument(s)
request = iam_policy_pb2.TestIamPermissionsRequest(
Expand All @@ -1117,7 +1117,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
Loading

0 comments on commit 019e4d3

Please sign in to comment.