class ProjectsLocationsIndexEndpoints extends Resource (View source)

The "indexEndpoints" collection of methods.

Typical usage is:

 $aiplatformService = new Google\Service\Aiplatform(...);
 $indexEndpoints = $aiplatformService->projects_locations_indexEndpoints;

Methods

create(string $parent, GoogleCloudAiplatformV1IndexEndpoint $postBody, array $optParams = [])

Creates an IndexEndpoint. (indexEndpoints.create)

delete(string $name, array $optParams = [])

Deletes an IndexEndpoint. (indexEndpoints.delete)

deployIndex(string $indexEndpoint, GoogleCloudAiplatformV1DeployIndexRequest $postBody, array $optParams = [])

Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it.

findNeighbors(string $indexEndpoint, GoogleCloudAiplatformV1FindNeighborsRequest $postBody, array $optParams = [])

Finds the nearest neighbors of each vector within the request.

get(string $name, array $optParams = [])

Gets an IndexEndpoint. (indexEndpoints.get)

listProjectsLocationsIndexEndpoints(string $parent, array $optParams = [])

Lists IndexEndpoints in a Location.

mutateDeployedIndex(string $indexEndpoint, GoogleCloudAiplatformV1DeployedIndex $postBody, array $optParams = [])

Update an existing DeployedIndex under an IndexEndpoint.

patch(string $name, GoogleCloudAiplatformV1IndexEndpoint $postBody, array $optParams = [])

Updates an IndexEndpoint. (indexEndpoints.patch)

readIndexDatapoints(string $indexEndpoint, GoogleCloudAiplatformV1ReadIndexDatapointsRequest $postBody, array $optParams = [])

Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch. (indexEndpoints.readIndexDatapoints)

undeployIndex(string $indexEndpoint, GoogleCloudAiplatformV1UndeployIndexRequest $postBody, array $optParams = [])

Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using. (indexEndpoints.undeployIndex)

Details

GoogleLongrunningOperation create(string $parent, GoogleCloudAiplatformV1IndexEndpoint $postBody, array $optParams = [])

Creates an IndexEndpoint. (indexEndpoints.create)

Parameters

string $parent

Required. The resource name of the Location to create the IndexEndpoint in. Format: projects/{project}/locations/{location}

GoogleCloudAiplatformV1IndexEndpoint $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation delete(string $name, array $optParams = [])

Deletes an IndexEndpoint. (indexEndpoints.delete)

Parameters

string $name

Required. The name of the IndexEndpoint resource to be deleted. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation deployIndex(string $indexEndpoint, GoogleCloudAiplatformV1DeployIndexRequest $postBody, array $optParams = [])

Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it.

Only non-empty Indexes can be deployed. (indexEndpoints.deployIndex)

Parameters

string $indexEndpoint

Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

GoogleCloudAiplatformV1DeployIndexRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudAiplatformV1FindNeighborsResponse findNeighbors(string $indexEndpoint, GoogleCloudAiplatformV1FindNeighborsRequest $postBody, array $optParams = [])

Finds the nearest neighbors of each vector within the request.

(indexEndpoints.findNeighbors)

Parameters

string $indexEndpoint

Required. The name of the index endpoint. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

GoogleCloudAiplatformV1FindNeighborsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1FindNeighborsResponse

Exceptions

Exception

GoogleCloudAiplatformV1IndexEndpoint get(string $name, array $optParams = [])

Gets an IndexEndpoint. (indexEndpoints.get)

Parameters

string $name

Required. The name of the IndexEndpoint resource. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1IndexEndpoint

Exceptions

Exception

GoogleCloudAiplatformV1ListIndexEndpointsResponse listProjectsLocationsIndexEndpoints(string $parent, array $optParams = [])

Lists IndexEndpoints in a Location.

(indexEndpoints.listProjectsLocationsIndexEndpoints)

Parameters

string $parent

Required. The resource name of the Location from which to list the IndexEndpoints. Format: projects/{project}/locations/{location}

array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1ListIndexEndpointsResponse

Exceptions

Exception

GoogleLongrunningOperation mutateDeployedIndex(string $indexEndpoint, GoogleCloudAiplatformV1DeployedIndex $postBody, array $optParams = [])

Update an existing DeployedIndex under an IndexEndpoint.

(indexEndpoints.mutateDeployedIndex)

Parameters

string $indexEndpoint

Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

GoogleCloudAiplatformV1DeployedIndex $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudAiplatformV1IndexEndpoint patch(string $name, GoogleCloudAiplatformV1IndexEndpoint $postBody, array $optParams = [])

Updates an IndexEndpoint. (indexEndpoints.patch)

Parameters

string $name

Output only. The resource name of the IndexEndpoint.

GoogleCloudAiplatformV1IndexEndpoint $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1IndexEndpoint

Exceptions

Exception

GoogleCloudAiplatformV1ReadIndexDatapointsResponse readIndexDatapoints(string $indexEndpoint, GoogleCloudAiplatformV1ReadIndexDatapointsRequest $postBody, array $optParams = [])

Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch. (indexEndpoints.readIndexDatapoints)

Parameters

string $indexEndpoint

Required. The name of the index endpoint. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

GoogleCloudAiplatformV1ReadIndexDatapointsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1ReadIndexDatapointsResponse

Exceptions

Exception

GoogleLongrunningOperation undeployIndex(string $indexEndpoint, GoogleCloudAiplatformV1UndeployIndexRequest $postBody, array $optParams = [])

Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using. (indexEndpoints.undeployIndex)

Parameters

string $indexEndpoint

Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

GoogleCloudAiplatformV1UndeployIndexRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception