Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

chore: use gapic-generator-python 0.65.2 #224

Merged
merged 2 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -251,17 +251,17 @@ async def create_assessment(

from google.cloud import recaptchaenterprise_v1

def sample_create_assessment():
async def sample_create_assessment():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.CreateAssessmentRequest(
parent="parent_value",
)

# Make the request
response = client.create_assessment(request=request)
response = await client.create_assessment(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -355,17 +355,17 @@ async def annotate_assessment(

from google.cloud import recaptchaenterprise_v1

def sample_annotate_assessment():
async def sample_annotate_assessment():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.AnnotateAssessmentRequest(
name="name_value",
)

# Make the request
response = client.annotate_assessment(request=request)
response = await client.annotate_assessment(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -462,9 +462,9 @@ async def create_key(

from google.cloud import recaptchaenterprise_v1

def sample_create_key():
async def sample_create_key():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
Expand All @@ -476,7 +476,7 @@ def sample_create_key():
)

# Make the request
response = client.create_key(request=request)
response = await client.create_key(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -540,9 +540,9 @@ async def list_keys(

from google.cloud import recaptchaenterprise_v1

def sample_list_keys():
async def sample_list_keys():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.ListKeysRequest(
Expand All @@ -553,7 +553,7 @@ def sample_list_keys():
page_result = client.list_keys(request=request)

# Handle the response
for response in page_result:
async for response in page_result:
print(response)

Args:
Expand Down Expand Up @@ -625,17 +625,17 @@ async def get_key(

from google.cloud import recaptchaenterprise_v1

def sample_get_key():
async def sample_get_key():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.GetKeyRequest(
name="name_value",
)

# Make the request
response = client.get_key(request=request)
response = await client.get_key(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -698,9 +698,9 @@ async def update_key(

from google.cloud import recaptchaenterprise_v1

def sample_update_key():
async def sample_update_key():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
key = recaptchaenterprise_v1.Key()
Expand All @@ -711,7 +711,7 @@ def sample_update_key():
)

# Make the request
response = client.update_key(request=request)
response = await client.update_key(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -774,17 +774,17 @@ async def delete_key(

from google.cloud import recaptchaenterprise_v1

def sample_delete_key():
async def sample_delete_key():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.DeleteKeyRequest(
name="name_value",
)

# Make the request
client.delete_key(request=request)
await client.delete_key(request=request)

Args:
request (Union[google.cloud.recaptchaenterprise_v1.types.DeleteKeyRequest, dict]):
Expand Down Expand Up @@ -840,17 +840,17 @@ async def migrate_key(

from google.cloud import recaptchaenterprise_v1

def sample_migrate_key():
async def sample_migrate_key():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.MigrateKeyRequest(
name="name_value",
)

# Make the request
response = client.migrate_key(request=request)
response = await client.migrate_key(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -915,17 +915,17 @@ async def get_metrics(

from google.cloud import recaptchaenterprise_v1

def sample_get_metrics():
async def sample_get_metrics():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.GetMetricsRequest(
name="name_value",
)

# Make the request
response = client.get_metrics(request=request)
response = await client.get_metrics(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -1010,9 +1010,9 @@ async def list_related_account_groups(

from google.cloud import recaptchaenterprise_v1

def sample_list_related_account_groups():
async def sample_list_related_account_groups():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.ListRelatedAccountGroupsRequest(
Expand All @@ -1023,7 +1023,7 @@ def sample_list_related_account_groups():
page_result = client.list_related_account_groups(request=request)

# Handle the response
for response in page_result:
async for response in page_result:
print(response)

Args:
Expand Down Expand Up @@ -1120,9 +1120,9 @@ async def list_related_account_group_memberships(

from google.cloud import recaptchaenterprise_v1

def sample_list_related_account_group_memberships():
async def sample_list_related_account_group_memberships():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.ListRelatedAccountGroupMembershipsRequest(
Expand All @@ -1133,7 +1133,7 @@ def sample_list_related_account_group_memberships():
page_result = client.list_related_account_group_memberships(request=request)

# Handle the response
for response in page_result:
async for response in page_result:
print(response)

Args:
Expand Down Expand Up @@ -1232,9 +1232,9 @@ async def search_related_account_group_memberships(

from google.cloud import recaptchaenterprise_v1

def sample_search_related_account_group_memberships():
async def sample_search_related_account_group_memberships():
# Create a client
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceClient()
client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient()

# Initialize request argument(s)
request = recaptchaenterprise_v1.SearchRelatedAccountGroupMembershipsRequest(
Expand All @@ -1245,7 +1245,7 @@ def sample_search_related_account_group_memberships():
page_result = client.search_related_account_group_memberships(request=request)

# Handle the response
for response in page_result:
async for response in page_result:
print(response)

Args:
Expand Down
Loading