async def sample_get_specialist_pool(): # Create a client client = aiplatform_v1.SpecialistPoolServiceAsyncClient() # Initialize request argument(s) request = aiplatform_v1.GetSpecialistPoolRequest(name="name_value", ) # Make the request response = await client.get_specialist_pool(request=request) # Handle the response print(response)
async def sample_list_specialist_pools(): # Create a client client = aiplatform_v1.SpecialistPoolServiceAsyncClient() # 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 async for response in page_result: print(response)
async def sample_delete_specialist_pool(): # Create a client client = aiplatform_v1.SpecialistPoolServiceAsyncClient() # 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 = await operation.result() # Handle the response print(response)
async def sample_create_specialist_pool(): # Create a client client = aiplatform_v1.SpecialistPoolServiceAsyncClient() # Initialize request argument(s) specialist_pool = aiplatform_v1.SpecialistPool() specialist_pool.name = "name_value" specialist_pool.display_name = "display_name_value" request = aiplatform_v1.CreateSpecialistPoolRequest( parent="parent_value", specialist_pool=specialist_pool, ) # Make the request operation = client.create_specialist_pool(request=request) print("Waiting for operation to complete...") response = await operation.result() # Handle the response print(response)