Skip to content
Merged
2 changes: 1 addition & 1 deletion .kokoro/continuous/continuous.cfg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Format: //devtools/kokoro/config/proto/build.proto
# Format: //devtools/kokoro/config/proto/build.proto
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ async def create_dataset(

from google.cloud import aiplatform_v1

def sample_create_dataset():
async def sample_create_dataset():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
dataset = aiplatform_v1.Dataset()
Expand All @@ -261,7 +261,7 @@ def sample_create_dataset():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

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

from google.cloud import aiplatform_v1

def sample_get_dataset():
async def sample_get_dataset():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.GetDatasetRequest(
name="name_value",
)

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

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

from google.cloud import aiplatform_v1

def sample_update_dataset():
async def sample_update_dataset():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
dataset = aiplatform_v1.Dataset()
Expand All @@ -476,7 +476,7 @@ def sample_update_dataset():
)

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

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

from google.cloud import aiplatform_v1

def sample_list_datasets():
async def sample_list_datasets():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.ListDatasetsRequest(
Expand All @@ -591,7 +591,7 @@ def sample_list_datasets():
page_result = client.list_datasets(request=request)

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

Args:
Expand Down Expand Up @@ -686,9 +686,9 @@ async def delete_dataset(

from google.cloud import aiplatform_v1

def sample_delete_dataset():
async def sample_delete_dataset():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.DeleteDatasetRequest(
Expand All @@ -700,7 +700,7 @@ def sample_delete_dataset():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

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

from google.cloud import aiplatform_v1

def sample_import_data():
async def sample_import_data():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
import_configs = aiplatform_v1.ImportDataConfig()
Expand All @@ -827,7 +827,7 @@ def sample_import_data():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

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

from google.cloud import aiplatform_v1

def sample_export_data():
async def sample_export_data():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
export_config = aiplatform_v1.ExportDataConfig()
Expand All @@ -953,7 +953,7 @@ def sample_export_data():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

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

from google.cloud import aiplatform_v1

def sample_list_data_items():
async def sample_list_data_items():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.ListDataItemsRequest(
Expand All @@ -1072,7 +1072,7 @@ def sample_list_data_items():
page_result = client.list_data_items(request=request)

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

Args:
Expand Down Expand Up @@ -1168,17 +1168,17 @@ async def get_annotation_spec(

from google.cloud import aiplatform_v1

def sample_get_annotation_spec():
async def sample_get_annotation_spec():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.GetAnnotationSpecRequest(
name="name_value",
)

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

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

from google.cloud import aiplatform_v1

def sample_list_annotations():
async def sample_list_annotations():
# Create a client
client = aiplatform_v1.DatasetServiceClient()
client = aiplatform_v1.DatasetServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.ListAnnotationsRequest(
Expand All @@ -1277,7 +1277,7 @@ def sample_list_annotations():
page_result = client.list_annotations(request=request)

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

Args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ async def create_endpoint(

from google.cloud import aiplatform_v1

def sample_create_endpoint():
async def sample_create_endpoint():
# Create a client
client = aiplatform_v1.EndpointServiceClient()
client = aiplatform_v1.EndpointServiceAsyncClient()

# Initialize request argument(s)
endpoint = aiplatform_v1.Endpoint()
Expand All @@ -256,7 +256,7 @@ def sample_create_endpoint():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

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

from google.cloud import aiplatform_v1

def sample_get_endpoint():
async def sample_get_endpoint():
# Create a client
client = aiplatform_v1.EndpointServiceClient()
client = aiplatform_v1.EndpointServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.GetEndpointRequest(
name="name_value",
)

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

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

from google.cloud import aiplatform_v1

def sample_list_endpoints():
async def sample_list_endpoints():
# Create a client
client = aiplatform_v1.EndpointServiceClient()
client = aiplatform_v1.EndpointServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.ListEndpointsRequest(
Expand All @@ -485,7 +485,7 @@ def sample_list_endpoints():
page_result = client.list_endpoints(request=request)

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

Args:
Expand Down Expand Up @@ -582,9 +582,9 @@ async def update_endpoint(

from google.cloud import aiplatform_v1

def sample_update_endpoint():
async def sample_update_endpoint():
# Create a client
client = aiplatform_v1.EndpointServiceClient()
client = aiplatform_v1.EndpointServiceAsyncClient()

# Initialize request argument(s)
endpoint = aiplatform_v1.Endpoint()
Expand All @@ -595,7 +595,7 @@ def sample_update_endpoint():
)

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

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

from google.cloud import aiplatform_v1

def sample_delete_endpoint():
async def sample_delete_endpoint():
# Create a client
client = aiplatform_v1.EndpointServiceClient()
client = aiplatform_v1.EndpointServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.DeleteEndpointRequest(
Expand All @@ -706,7 +706,7 @@ def sample_delete_endpoint():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

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

from google.cloud import aiplatform_v1

def sample_deploy_model():
async def sample_deploy_model():
# Create a client
client = aiplatform_v1.EndpointServiceClient()
client = aiplatform_v1.EndpointServiceAsyncClient()

# Initialize request argument(s)
deployed_model = aiplatform_v1.DeployedModel()
Expand All @@ -835,7 +835,7 @@ def sample_deploy_model():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

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

from google.cloud import aiplatform_v1

def sample_undeploy_model():
async def sample_undeploy_model():
# Create a client
client = aiplatform_v1.EndpointServiceClient()
client = aiplatform_v1.EndpointServiceAsyncClient()

# Initialize request argument(s)
request = aiplatform_v1.UndeployModelRequest(
Expand All @@ -988,7 +988,7 @@ def sample_undeploy_model():

print("Waiting for operation to complete...")

response = operation.result()
response = await operation.result()

# Handle the response
print(response)
Expand Down
Loading