Esempio n. 1
0
async def sample_update_endpoint():
    # Create a client
    client = aiplatform_v1.EndpointServiceAsyncClient()

    # Initialize request argument(s)
    endpoint = aiplatform_v1.Endpoint()
    endpoint.display_name = "display_name_value"

    request = aiplatform_v1.UpdateEndpointRequest(endpoint=endpoint, )

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

    # Handle the response
    print(response)
Esempio n. 2
0
async def sample_create_endpoint():
    # Create a client
    client = aiplatform_v1.EndpointServiceAsyncClient()

    # Initialize request argument(s)
    endpoint = aiplatform_v1.Endpoint()
    endpoint.display_name = "display_name_value"

    request = aiplatform_v1.CreateEndpointRequest(
        parent="parent_value",
        endpoint=endpoint,
    )

    # Make the request
    operation = client.create_endpoint(request=request)

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

    response = await operation.result()

    # Handle the response
    print(response)