class SettingsDatasources extends Resource (View source)

The "datasources" collection of methods.

Typical usage is:

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

Methods

create(DataSource $postBody, array $optParams = [])

Creates a datasource. Note: This API requires an admin account to execute. (datasources.create)

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

Deletes a datasource. Note: This API requires an admin account to execute. (datasources.delete)

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

Gets a datasource. Note: This API requires an admin account to execute.

listSettingsDatasources(array $optParams = [])

Lists datasources. Note: This API requires an admin account to execute.

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

Updates a datasource. Note: This API requires an admin account to execute. (datasources.patch)

update(string $name, UpdateDataSourceRequest $postBody, array $optParams = [])

Updates a datasource. Note: This API requires an admin account to execute. (datasources.update)

Details

Operation create(DataSource $postBody, array $optParams = [])

Creates a datasource. Note: This API requires an admin account to execute. (datasources.create)

Parameters

DataSource $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a datasource. Note: This API requires an admin account to execute. (datasources.delete)

Parameters

string $name

The name of the datasource. Format: datasources/{source_id}.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a datasource. Note: This API requires an admin account to execute.

(datasources.get)

Parameters

string $name

The name of the datasource resource. Format: datasources/{source_id}.

array $optParams

Optional parameters.

Return Value

DataSource

Exceptions

Exception

ListDataSourceResponse listSettingsDatasources(array $optParams = [])

Lists datasources. Note: This API requires an admin account to execute.

(datasources.listSettingsDatasources)

Parameters

array $optParams

Optional parameters.

Return Value

ListDataSourceResponse

Exceptions

Exception

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

Updates a datasource. Note: This API requires an admin account to execute. (datasources.patch)

Parameters

string $name

The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource.

DataSource $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation update(string $name, UpdateDataSourceRequest $postBody, array $optParams = [])

Updates a datasource. Note: This API requires an admin account to execute. (datasources.update)

Parameters

string $name

The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource.

UpdateDataSourceRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception