class ProjectsDataSources extends Resource (View source)

The "dataSources" collection of methods.

Typical usage is:

 $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
 $dataSources = $bigquerydatatransferService->projects_dataSources;

Methods

checkValidCreds(string $name, CheckValidCredsRequest $postBody, array $optParams = [])

Returns true if valid credentials exist for the given data source and requesting user. (dataSources.checkValidCreds)

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

Retrieves a supported data source and returns its settings. (dataSources.get)

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

Lists supported data sources and returns their settings.

Details

CheckValidCredsResponse checkValidCreds(string $name, CheckValidCredsRequest $postBody, array $optParams = [])

Returns true if valid credentials exist for the given data source and requesting user. (dataSources.checkValidCreds)

Parameters

string $name

Required. The data source in the form: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}.

CheckValidCredsRequest $postBody
array $optParams

Optional parameters.

Return Value

CheckValidCredsResponse

Exceptions

Exception

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

Retrieves a supported data source and returns its settings. (dataSources.get)

Parameters

string $name

Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}

array $optParams

Optional parameters.

Return Value

DataSource

Exceptions

Exception

ListDataSourcesResponse listProjectsDataSources(string $parent, array $optParams = [])

Lists supported data sources and returns their settings.

(dataSources.listProjectsDataSources)

Parameters

string $parent

Required. The BigQuery project id for which data sources should be returned. Must be in the form: projects/{project_id} or projects/{project_id}/locations/{location_id}

array $optParams

Optional parameters.

Return Value

ListDataSourcesResponse

Exceptions

Exception