class ProjectsLocationsIndexes extends Resource (View source)

The "indexes" collection of methods.

Typical usage is:

 $aiplatformService = new Google\Service\Aiplatform(...);
 $indexes = $aiplatformService->projects_locations_indexes;

Methods

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

Creates an Index. (indexes.create)

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

Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. (indexes.delete)

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

Gets an Index. (indexes.get)

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

Lists Indexes in a Location. (indexes.listProjectsLocationsIndexes)

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

Updates an Index. (indexes.patch)

removeDatapoints(string $index, GoogleCloudAiplatformV1RemoveDatapointsRequest $postBody, array $optParams = [])

Remove Datapoints from an Index. (indexes.removeDatapoints)

upsertDatapoints(string $index, GoogleCloudAiplatformV1UpsertDatapointsRequest $postBody, array $optParams = [])

Add/update Datapoints into an Index. (indexes.upsertDatapoints)

Details

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

Creates an Index. (indexes.create)

Parameters

string $parent

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

GoogleCloudAiplatformV1Index $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. (indexes.delete)

Parameters

string $name

Required. The name of the Index resource to be deleted. Format: projects/{project}/locations/{location}/indexes/{index}

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Gets an Index. (indexes.get)

Parameters

string $name

Required. The name of the Index resource. Format: projects/{project}/locations/{location}/indexes/{index}

array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1Index

Exceptions

Exception

GoogleCloudAiplatformV1ListIndexesResponse listProjectsLocationsIndexes(string $parent, array $optParams = [])

Lists Indexes in a Location. (indexes.listProjectsLocationsIndexes)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1ListIndexesResponse

Exceptions

Exception

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

Updates an Index. (indexes.patch)

Parameters

string $name

Output only. The resource name of the Index.

GoogleCloudAiplatformV1Index $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudAiplatformV1RemoveDatapointsResponse removeDatapoints(string $index, GoogleCloudAiplatformV1RemoveDatapointsRequest $postBody, array $optParams = [])

Remove Datapoints from an Index. (indexes.removeDatapoints)

Parameters

string $index

Required. The name of the Index resource to be updated. Format: projects/{project}/locations/{location}/indexes/{index}

GoogleCloudAiplatformV1RemoveDatapointsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1RemoveDatapointsResponse

Exceptions

Exception

GoogleCloudAiplatformV1UpsertDatapointsResponse upsertDatapoints(string $index, GoogleCloudAiplatformV1UpsertDatapointsRequest $postBody, array $optParams = [])

Add/update Datapoints into an Index. (indexes.upsertDatapoints)

Parameters

string $index

Required. The name of the Index resource to be updated. Format: projects/{project}/locations/{location}/indexes/{index}

GoogleCloudAiplatformV1UpsertDatapointsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudAiplatformV1UpsertDatapointsResponse

Exceptions

Exception