blob: 5c9865cffd7a67fec93f1909e2e8bd96ee996b30 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="bigquerydatatransfer_v1.html">BigQuery Data Transfer API</a> . <a href="bigquerydatatransfer_v1.projects.html">projects</a> . <a href="bigquerydatatransfer_v1.projects.locations.html">locations</a> . <a href="bigquerydatatransfer_v1.projects.locations.transferConfigs.html">transferConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="bigquerydatatransfer_v1.projects.locations.transferConfigs.runs.html">runs()</a></code>
79</p>
80<p class="firstline">Returns the runs Resource.</p>
81
82<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080086 <code><a href="#create">create(parent, body=None, serviceAccountName=None, authorizationCode=None, versionInfo=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Creates a new data transfer configuration.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090<p class="firstline">Deletes a data transfer configuration, including any associated transfer runs and logs.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Returns information about a data transfer config.</p>
94<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080095 <code><a href="#list">list(parent, dataSourceIds=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096<p class="firstline">Returns information about all data transfers in the project.</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800101 <code><a href="#patch">patch(name, body=None, versionInfo=None, updateMask=None, serviceAccountName=None, authorizationCode=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102<p class="firstline">Updates a data transfer configuration. All fields must be set, even if they are not updated.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105<p class="firstline">Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108<p class="firstline">Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<h3>Method Details</h3>
110<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 <code class="details" id="close">close()</code>
112 <pre>Close httplib2 connections.</pre>
113</div>
114
115<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800116 <code class="details" id="create">create(parent, body=None, serviceAccountName=None, authorizationCode=None, versionInfo=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 <pre>Creates a new data transfer configuration.
118
119Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120 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. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124{ # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800125 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 &quot;params&quot;: { # Data transfer specific parameters.
127 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
128 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800129 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700130 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config.
131 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
132 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800133 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
134 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
135 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
136 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
137 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
138 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer.
139 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700140 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700141 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored.
142 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800143 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700144 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700146 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800147 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id.
148 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700149}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 serviceAccountName: 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700152 authorizationCode: 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=&amp;scope=&amp;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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800153 versionInfo: 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 &quot;none+gsession&quot; 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700154 x__xgafv: string, V1 error format.
155 Allowed values
156 1 - v1 error format
157 2 - v2 error format
158
159Returns:
160 An object of the form:
161
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800163 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700164 &quot;params&quot;: { # Data transfer specific parameters.
165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
166 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800167 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700168 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config.
169 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
170 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800171 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
172 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
173 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
174 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
175 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
176 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer.
177 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700178 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700179 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored.
180 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800181 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700182 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700183 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700184 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800185 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id.
186 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700187 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700188</div>
189
190<div class="method">
191 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700192 <pre>Deletes a data transfer configuration, including any associated transfer runs and logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193
194Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 name: string, Required. The field will contain name of the resource requested, for example: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 x__xgafv: string, V1 error format.
197 Allowed values
198 1 - v1 error format
199 2 - v2 error format
200
201Returns:
202 An object of the form:
203
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700204 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700205 }</pre>
206</div>
207
208<div class="method">
209 <code class="details" id="get">get(name, x__xgafv=None)</code>
210 <pre>Returns information about a data transfer config.
211
212Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 name: string, Required. The field will contain name of the resource requested, for example: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 x__xgafv: string, V1 error format.
215 Allowed values
216 1 - v1 error format
217 2 - v2 error format
218
219Returns:
220 An object of the form:
221
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700222 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800223 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700224 &quot;params&quot;: { # Data transfer specific parameters.
225 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
226 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800227 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700228 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config.
229 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
230 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800231 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
232 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
233 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
234 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
235 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
236 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer.
237 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700238 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700239 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored.
240 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800241 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700242 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700243 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700244 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800245 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id.
246 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700247 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248</div>
249
250<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800251 <code class="details" id="list">list(parent, dataSourceIds=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700252 <pre>Returns information about all data transfers in the project.
253
254Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 parent: string, Required. The BigQuery project id for which data sources should be returned: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700256 dataSourceIds: string, When specified, only configurations of requested data sources are returned. (repeated)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800257 pageSize: integer, Page size. The default page size is the maximum value of 1000 results.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700258 pageToken: string, Pagination token, which can be used to request a specific page of `ListTransfersRequest` list results. For multiple-page results, `ListTransfersResponse` outputs a `next_page` token, which can be used as the `page_token` value to request the next page of list results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 x__xgafv: string, V1 error format.
260 Allowed values
261 1 - v1 error format
262 2 - v2 error format
263
264Returns:
265 An object of the form:
266
267 { # The returned list of pipelines in the project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700268 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. The next-pagination token. For multiple-page list results, this token can be used as the `ListTransferConfigsRequest.page_token` to request the next page of list results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;transferConfigs&quot;: [ # Output only. The stored pipeline transfer configurations.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800271 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700272 &quot;params&quot;: { # Data transfer specific parameters.
273 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700274 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800275 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700276 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config.
277 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
278 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800279 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
280 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
281 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
282 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
283 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
284 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer.
285 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700286 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700287 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored.
288 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800289 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700290 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700291 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700292 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800293 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id.
294 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700295 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700296 ],
297 }</pre>
298</div>
299
300<div class="method">
301 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
302 <pre>Retrieves the next page of results.
303
304Args:
305 previous_request: The request for the previous page. (required)
306 previous_response: The response from the request for the previous page. (required)
307
308Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 page. Returns None if there are no more items in the collection.
311 </pre>
312</div>
313
314<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800315 <code class="details" id="patch">patch(name, body=None, versionInfo=None, updateMask=None, serviceAccountName=None, authorizationCode=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700316 <pre>Updates a data transfer configuration. All fields must be set, even if they are not updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700317
318Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700319 name: string, The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700320 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 The object takes the form of:
322
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700323{ # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800324 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700325 &quot;params&quot;: { # Data transfer specific parameters.
326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
327 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800328 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700329 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config.
330 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
331 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800332 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
333 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
334 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
335 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
336 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
337 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer.
338 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700339 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700340 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored.
341 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800342 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700343 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700344 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700345 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800346 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id.
347 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700348}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700350 versionInfo: 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 &quot;none+gsession&quot; 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800351 updateMask: string, Required. Required list of fields to be updated in this request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700352 serviceAccountName: string, Optional service account name. If this field is set and &quot;service_account_name&quot; is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800353 authorizationCode: string, Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&amp;scope=&amp;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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 x__xgafv: string, V1 error format.
355 Allowed values
356 1 - v1 error format
357 2 - v2 error format
358
359Returns:
360 An object of the form:
361
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700362 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800363 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700364 &quot;params&quot;: { # Data transfer specific parameters.
365 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
366 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800367 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700368 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config.
369 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
370 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800371 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
372 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
373 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
374 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
375 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
376 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer.
377 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700378 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700379 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored.
380 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800381 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700382 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700383 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700384 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800385 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id.
386 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700387 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388</div>
389
390<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700391 <code class="details" id="scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700392 <pre>Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393
394Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700395 parent: string, Required. Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700396 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 The object takes the form of:
398
399{ # A request to schedule transfer runs for a time range.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700400 &quot;startTime&quot;: &quot;A String&quot;, # Required. Start time of the range of transfer runs. For example, `&quot;2017-05-25T00:00:00+00:00&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700401 &quot;endTime&quot;: &quot;A String&quot;, # Required. End time of the range of transfer runs. For example, `&quot;2017-05-30T00:00:00+00:00&quot;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700402 }
403
404 x__xgafv: string, V1 error format.
405 Allowed values
406 1 - v1 error format
407 2 - v2 error format
408
409Returns:
410 An object of the form:
411
412 { # A response to schedule transfer runs for a time range.
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;runs&quot;: [ # The transfer runs that were scheduled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700414 { # Represents a data transfer run.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800415 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last time the data transfer run state was updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700416 &quot;params&quot;: { # Output only. Data transfer specific parameters.
417 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
418 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800419 &quot;dataSourceId&quot;: &quot;A String&quot;, # Output only. Data source id.
420 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run was started. Parameter ignored by server for input requests.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700421 &quot;runTime&quot;: &quot;A String&quot;, # For batch transfer runs, specifies the date and time of the data should be ingested.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700422 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer run. Transfer run names have the form `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. The name is ignored when creating a transfer run.
423 &quot;scheduleTime&quot;: &quot;A String&quot;, # Minimum time after which a transfer run can be started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800424 &quot;schedule&quot;: &quot;A String&quot;, # Output only. Describes the schedule of this transfer run if it was created as part of a regular schedule. For batch transfer runs that are scheduled manually, this is empty. NOTE: the system might choose to delay the schedule depending on the current load, so `schedule_time` doesn&#x27;t always match this.
425 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run ended. Parameter ignored by server for input requests.
426 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # Output only. The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700427 &quot;state&quot;: &quot;A String&quot;, # Data transfer run state. Ignored for input requests.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700428 &quot;errorStatus&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Status of the transfer run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700429 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700430 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700431 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700433 },
434 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800435 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800437 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes
438 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Output only. Email notifications will be sent according to these preferences to the email address of the user who owns the transfer config this run was derived from.
439 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
440 },
441 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700442 },
443 ],
444 }</pre>
445</div>
446
447<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700448 <code class="details" id="startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700449 <pre>Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700450
451Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700452 parent: string, Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700453 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454 The object takes the form of:
455
456{ # A request to start manual transfer runs.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700457 &quot;requestedTimeRange&quot;: { # A specification for a time range, this will request transfer runs with run_time between start_time (inclusive) and end_time (exclusive). # Time range for the transfer runs that should be started.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700458 &quot;endTime&quot;: &quot;A String&quot;, # End time of the range of transfer runs. For example, `&quot;2017-05-30T00:00:00+00:00&quot;`. The end_time must not be in the future. Creates transfer runs where run_time is in the range between start_time (inclusive) and end_time (exclusive).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800459 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the range of transfer runs. For example, `&quot;2017-05-25T00:00:00+00:00&quot;`. The start_time must be strictly less than the end_time. Creates transfer runs where run_time is in the range between start_time (inclusive) and end_time (exclusive).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700460 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700461 &quot;requestedRunTime&quot;: &quot;A String&quot;, # Specific run_time for a transfer run to be started. The requested_run_time must not be in the future.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462 }
463
464 x__xgafv: string, V1 error format.
465 Allowed values
466 1 - v1 error format
467 2 - v2 error format
468
469Returns:
470 An object of the form:
471
472 { # A response to start manual transfer runs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 &quot;runs&quot;: [ # The transfer runs that were created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700474 { # Represents a data transfer run.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800475 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last time the data transfer run state was updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700476 &quot;params&quot;: { # Output only. Data transfer specific parameters.
477 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
478 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800479 &quot;dataSourceId&quot;: &quot;A String&quot;, # Output only. Data source id.
480 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run was started. Parameter ignored by server for input requests.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 &quot;runTime&quot;: &quot;A String&quot;, # For batch transfer runs, specifies the date and time of the data should be ingested.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700482 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer run. Transfer run names have the form `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. The name is ignored when creating a transfer run.
483 &quot;scheduleTime&quot;: &quot;A String&quot;, # Minimum time after which a transfer run can be started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800484 &quot;schedule&quot;: &quot;A String&quot;, # Output only. Describes the schedule of this transfer run if it was created as part of a regular schedule. For batch transfer runs that are scheduled manually, this is empty. NOTE: the system might choose to delay the schedule depending on the current load, so `schedule_time` doesn&#x27;t always match this.
485 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run ended. Parameter ignored by server for input requests.
486 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # Output only. The BigQuery target dataset id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700487 &quot;state&quot;: &quot;A String&quot;, # Data transfer run state. Ignored for input requests.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700488 &quot;errorStatus&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Status of the transfer run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700489 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700490 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700491 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 },
494 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800495 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700496 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800497 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes
498 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run events. # Output only. Email notifications will be sent according to these preferences to the email address of the user who owns the transfer config this run was derived from.
499 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
500 },
501 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502 },
503 ],
504 }</pre>
505</div>
506
507</body></html>