Class ProjectsResource.TransferConfigsResource.CreateRequest
Creates a new data transfer configuration.
Inheritance
Inherited Members
Namespace: Google.Apis.BigQueryDataTransfer.v1
Assembly: Google.Apis.BigQueryDataTransfer.v1.dll
Syntax
public class CreateRequest : BigQueryDataTransferBaseServiceRequest<TransferConfig>, IClientServiceRequest<TransferConfig>, IClientServiceRequest
Constructors
CreateRequest(IClientService, TransferConfig, String)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, TransferConfig body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
TransferConfig | body | |
System.String | parent |
Properties
AuthorizationCode
Optional OAuth2 authorization code to use with this transfer configuration. This is required if new
credentials are needed, as indicated by CheckValidCreds
. In order to obtain authorization_code,
please make a request to
https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=
- client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.
Declaration
[RequestParameter("authorizationCode", RequestParameterType.Query)]
public virtual string AuthorizationCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Parent
Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} or projects/{project_id}. If specified location and location of the destination bigquery dataset do not match - the request will fail.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ServiceAccountName
Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.
Declaration
[RequestParameter("serviceAccountName", RequestParameterType.Query)]
public virtual string ServiceAccountName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
VersionInfo
Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.
Declaration
[RequestParameter("versionInfo", RequestParameterType.Query)]
public virtual string VersionInfo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()