def sample_list_specialist_pools(): # Create a client client = aiplatform_v1.SpecialistPoolServiceClient() # Initialize request argument(s) request = aiplatform_v1.ListSpecialistPoolsRequest(parent="parent_value", ) # Make the request page_result = client.list_specialist_pools(request=request) # Handle the response for response in page_result: print(response)
def sample_get_specialist_pool(): # Create a client client = aiplatform_v1.SpecialistPoolServiceClient() # Initialize request argument(s) request = aiplatform_v1.GetSpecialistPoolRequest( name="name_value", ) # Make the request response = client.get_specialist_pool(request=request) # Handle the response print(response)
def sample_delete_specialist_pool(): # Create a client client = aiplatform_v1.SpecialistPoolServiceClient() # Initialize request argument(s) request = aiplatform_v1.DeleteSpecialistPoolRequest(name="name_value", ) # Make the request operation = client.delete_specialist_pool(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
def sample_update_specialist_pool(): # Create a client client = aiplatform_v1.SpecialistPoolServiceClient() # Initialize request argument(s) specialist_pool = aiplatform_v1.SpecialistPool() specialist_pool.name = "name_value" specialist_pool.display_name = "display_name_value" request = aiplatform_v1.UpdateSpecialistPoolRequest( specialist_pool=specialist_pool, ) # Make the request operation = client.update_specialist_pool(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)