async def sample_delete_key(): # Create a client client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient() # Initialize request argument(s) request = recaptchaenterprise_v1.DeleteKeyRequest(name="name_value", ) # Make the request await client.delete_key(request=request)
async def sample_get_metrics(): # Create a client client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient() # Initialize request argument(s) request = recaptchaenterprise_v1.GetMetricsRequest(name="name_value", ) # Make the request response = await client.get_metrics(request=request) # Handle the response print(response)
async def sample_migrate_key(): # Create a client client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient() # Initialize request argument(s) request = recaptchaenterprise_v1.MigrateKeyRequest(name="name_value", ) # Make the request response = await client.migrate_key(request=request) # Handle the response print(response)
async def sample_annotate_assessment(): # Create a client client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient() # Initialize request argument(s) request = recaptchaenterprise_v1.AnnotateAssessmentRequest( name="name_value", ) # Make the request response = await client.annotate_assessment(request=request) # Handle the response print(response)
async def sample_list_keys(): # Create a client client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient() # Initialize request argument(s) request = recaptchaenterprise_v1.ListKeysRequest(parent="parent_value", ) # Make the request page_result = client.list_keys(request=request) # Handle the response async for response in page_result: print(response)
async def sample_list_related_account_group_memberships(): # Create a client client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient() # Initialize request argument(s) request = recaptchaenterprise_v1.ListRelatedAccountGroupMembershipsRequest( parent="parent_value", ) # Make the request page_result = client.list_related_account_group_memberships(request=request) # Handle the response async for response in page_result: print(response)
async def sample_update_key(): # Create a client client = recaptchaenterprise_v1.RecaptchaEnterpriseServiceAsyncClient() # Initialize request argument(s) key = recaptchaenterprise_v1.Key() key.web_settings.integration_type = "INVISIBLE" request = recaptchaenterprise_v1.UpdateKeyRequest(key=key, ) # Make the request response = await client.update_key(request=request) # Handle the response print(response)