BigQuery Data Transfer V1 Client - Class CheckValidCredsRequest (2.1.0)

Reference documentation and code samples for the BigQuery Data Transfer V1 Client class CheckValidCredsRequest.

A request to determine whether the user has valid credentials. This method is used to limit the number of OAuth popups in the user interface. The user id is inferred from the API call context.

If the data source has the Google+ authorization type, this method returns false, as it cannot be determined whether the credentials are already valid merely based on the user id.

Generated from protobuf message google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest

Namespace

Google \ Cloud \ BigQuery \ DataTransfer \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

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}.

getName

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}.

Returns
Type Description
string

setName

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}.

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameter
Name Description
name string

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}. Please see Google\Cloud\BigQuery\DataTransfer\V1\DataTransferServiceClient::dataSourceName() for help formatting this field.

Returns
Type Description
Google\Cloud\BigQuery\DataTransfer\V1\CheckValidCredsRequest