Creates a new data transfer configuration.
Arguments
Parameters | |
---|---|
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. |
authorizationCode |
Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by |
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. |
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. |
body |
Required. |
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of TransferConfig
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- create: call: googleapis.bigquerydatatransfer.v1.projects.transferConfigs.create args: parent: ... authorizationCode: ... serviceAccountName: ... versionInfo: ... body: dataRefreshWindowDays: ... dataSourceId: ... destinationDatasetId: ... disabled: ... displayName: ... emailPreferences: enableFailureEmail: ... name: ... notificationPubsubTopic: ... params: ... schedule: ... scheduleOptions: disableAutoScheduling: ... endTime: ... startTime: ... userId: ... result: createResult
JSON
[ { "create": { "call": "googleapis.bigquerydatatransfer.v1.projects.transferConfigs.create", "args": { "parent": "...", "authorizationCode": "...", "serviceAccountName": "...", "versionInfo": "...", "body": { "dataRefreshWindowDays": "...", "dataSourceId": "...", "destinationDatasetId": "...", "disabled": "...", "displayName": "...", "emailPreferences": { "enableFailureEmail": "..." }, "name": "...", "notificationPubsubTopic": "...", "params": "...", "schedule": "...", "scheduleOptions": { "disableAutoScheduling": "...", "endTime": "...", "startTime": "..." }, "userId": "..." } }, "result": "createResult" } } ]