def sample_update_dataset(): # Create a client client = aiplatform_v1beta1.DatasetServiceClient() # Initialize request argument(s) dataset = aiplatform_v1beta1.Dataset() dataset.display_name = "display_name_value" dataset.metadata_schema_uri = "metadata_schema_uri_value" dataset.metadata.null_value = "NULL_VALUE" request = aiplatform_v1beta1.UpdateDatasetRequest(dataset=dataset, ) # Make the request response = client.update_dataset(request=request) # Handle the response print(response)
async def sample_create_dataset(): # Create a client client = aiplatform_v1beta1.DatasetServiceAsyncClient() # Initialize request argument(s) dataset = aiplatform_v1beta1.Dataset() dataset.display_name = "display_name_value" dataset.metadata_schema_uri = "metadata_schema_uri_value" dataset.metadata.null_value = "NULL_VALUE" request = aiplatform_v1beta1.CreateDatasetRequest( parent="parent_value", dataset=dataset, ) # Make the request operation = client.create_dataset(request=request) print("Waiting for operation to complete...") response = await operation.result() # Handle the response print(response)