class IndexingDatasources extends Resource (View source)

The "datasources" collection of methods.

Typical usage is:

 $cloudsearchService = new Google\Service\CloudSearch(...);
 $datasources = $cloudsearchService->indexing_datasources;

Methods

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

Deletes the schema of a data source. Note: This API requires an admin or service account to execute. (datasources.deleteSchema)

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

Gets the schema of a data source. Note: This API requires an admin or service account to execute. (datasources.getSchema)

updateSchema(string $name, UpdateSchemaRequest $postBody, array $optParams = [])

Updates the schema of a data source. This method does not perform incremental updates to the schema. Instead, this method updates the schema by overwriting the entire schema. Note: This API requires an admin or service account to execute. (datasources.updateSchema)

Details

Operation deleteSchema(string $name, array $optParams = [])

Deletes the schema of a data source. Note: This API requires an admin or service account to execute. (datasources.deleteSchema)

Parameters

string $name

The name of the data source to delete Schema. Format: datasources/{source_id}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Schema getSchema(string $name, array $optParams = [])

Gets the schema of a data source. Note: This API requires an admin or service account to execute. (datasources.getSchema)

Parameters

string $name

The name of the data source to get Schema. Format: datasources/{source_id}

array $optParams

Optional parameters.

Return Value

Schema

Exceptions

Exception

Operation updateSchema(string $name, UpdateSchemaRequest $postBody, array $optParams = [])

Updates the schema of a data source. This method does not perform incremental updates to the schema. Instead, this method updates the schema by overwriting the entire schema. Note: This API requires an admin or service account to execute. (datasources.updateSchema)

Parameters

string $name

The name of the data source to update Schema. Format: datasources/{source_id}

UpdateSchemaRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception