Struct gapi_grpc::google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest[][src]

pub struct CreateTransferConfigRequest {
    pub parent: String,
    pub transfer_config: Option<TransferConfig>,
    pub authorization_code: String,
    pub version_info: String,
    pub service_account_name: String,
}

A request to create a data transfer configuration. If new credentials are needed for this transfer configuration, an authorization code must be provided. If an authorization code is provided, the transfer configuration will be associated with the user id corresponding to the authorization code. Otherwise, the transfer configuration will be associated with the calling user.

Fields

parent: String

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.

transfer_config: Option<TransferConfig>

Required. Data transfer configuration to create.

authorization_code: String

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=<data_source_scopes>&redirect_uri=<redirect_uri>

version_info: String

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.

service_account_name: String

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.

Trait Implementations

impl Clone for CreateTransferConfigRequest[src]

impl Debug for CreateTransferConfigRequest[src]

impl Default for CreateTransferConfigRequest[src]

impl Message for CreateTransferConfigRequest[src]

impl PartialEq<CreateTransferConfigRequest> for CreateTransferConfigRequest[src]

impl StructuralPartialEq for CreateTransferConfigRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for CreateTransferConfigRequest

impl Send for CreateTransferConfigRequest

impl Sync for CreateTransferConfigRequest

impl Unpin for CreateTransferConfigRequest

impl UnwindSafe for CreateTransferConfigRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]