Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.DataSourcesResource

The "dataSources" collection of methods.

Inheritance
System.Object
ProjectsResource.LocationsResource.DataSourcesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.BigQueryDataTransfer.v1
Assembly: Google.Apis.BigQueryDataTransfer.v1.dll
Syntax
public class DataSourcesResource

Constructors

DataSourcesResource(IClientService)

Constructs a new resource.

Declaration
public DataSourcesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

CheckValidCreds(CheckValidCredsRequest, String)

Returns true if valid credentials exist for the given data source and requesting user. Some data sources doesn't support service account, so we need to talk to them on behalf of the end user. This API just checks whether we have OAuth token for the particular user, which is a pre-requisite before user can create a transfer config.

Declaration
public virtual ProjectsResource.LocationsResource.DataSourcesResource.CheckValidCredsRequest CheckValidCreds(CheckValidCredsRequest body, string name)
Parameters
Type Name Description
CheckValidCredsRequest body

The body of the request.

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

Returns
Type Description
ProjectsResource.LocationsResource.DataSourcesResource.CheckValidCredsRequest

Get(String)

Retrieves a supported data source and returns its settings, which can be used for UI rendering.

Declaration
public virtual ProjectsResource.LocationsResource.DataSourcesResource.GetRequest Get(string name)
Parameters
Type Name Description
System.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}

Returns
Type Description
ProjectsResource.LocationsResource.DataSourcesResource.GetRequest

List(String)

Lists supported data sources and returns their settings, which can be used for UI rendering.

Declaration
public virtual ProjectsResource.LocationsResource.DataSourcesResource.ListRequest List(string parent)
Parameters
Type Name Description
System.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}

Returns
Type Description
ProjectsResource.LocationsResource.DataSourcesResource.ListRequest
In This Article
Back to top