blob: 4acabdf9f0c00afa1772e630d7ede7286b5d872f [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">
Bu Sun Kim65020912020-05-20 12:08:20 -070083 <code><a href="#create">create(parent, body=None, serviceAccountName=None, versionInfo=None, authorizationCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Creates a new data transfer configuration.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes a data transfer configuration,</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Returns information about a data transfer config.</p>
91<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070092 <code><a href="#list">list(parent, dataSourceIds=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093<p class="firstline">Returns information about all data transfers in the project.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070098 <code><a href="#patch">patch(name, body=None, versionInfo=None, authorizationCode=None, updateMask=None, serviceAccountName=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Updates a data transfer configuration.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Creates transfer runs for a time range [start_time, end_time].</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Start manual transfer runs to be executed now with schedule_time equal to</p>
106<h3>Method Details</h3>
107<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 <code class="details" id="create">create(parent, body=None, serviceAccountName=None, versionInfo=None, authorizationCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 <pre>Creates a new data transfer configuration.
110
111Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 parent: string, Required. The BigQuery project id where the transfer configuration should be created.
113Must be in the format projects/{project_id}/locations/{location_id} or
114projects/{project_id}. If specified location and location of the
115destination bigquery dataset do not match - the request will fail. (required)
116 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 The object takes the form of:
118
119{ # Represents a data transfer configuration. A transfer configuration
120 # contains all metadata needed to perform a data transfer. For example,
121 # `destination_dataset_id` specifies where data should be stored.
122 # When a new transfer configuration is created, the specified
123 # `destination_dataset_id` is created when needed and shared with the
124 # appropriate data source service account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
126 # For example, if `data_refresh_window_days = 10`, then every day
127 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
128 # for just [today-1].
129 # Only valid if the data source supports the feature. Set the value to 0
130 # to use the default value.
131 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
132 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
133 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
134 # scheduled at or after the end time. The end time can be changed at any
135 # moment. The time when a data transfer can be trigerred manually is not
136 # limited by this option.
137 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
138 # scheduled at or after the start time according to a recurrence pattern
139 # defined in the schedule string. The start time can be changed at any
140 # moment. The time when a data transfer can be trigerred manually is not
141 # limited by this option.
142 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
143 # will be disabled. The runs can be started on ad-hoc basis using
144 # StartManualTransferRuns API. When automatic scheduling is disabled, the
145 # TransferConfig.schedule field will be ignored.
146 },
147 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
148 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
149 # Transfer config names have the form of
150 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
151 # The name is automatically generated based on the config_id specified in
152 # CreateTransferConfigRequest along with project_id and region. If config_id
153 # is not provided, usually a uuid, even though it is not guaranteed or
154 # required, will be generated for config_id.
155 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
156 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs
Dan O'Mearadd494642020-05-01 07:42:23 -0700158 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;params&quot;: { # Data transfer specific parameters.
160 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
161 },
162 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
163 # to the email address of the user who owns this transfer config.
164 # events.
165 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
166 },
167 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
168 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700169 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
171 # for a given transfer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 # If the data source does not support a custom schedule, this should be
174 # empty. If it is empty, the default value for the data source will be
175 # used.
176 # The specified times are in UTC.
177 # Examples of valid format:
178 # `1st,3rd monday of month 15:30`,
179 # `every wed,fri of jan,jun 13:15`, and
180 # `first sunday of quarter 00:00`.
181 # See more explanation about the format here:
182 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
183 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700185}
186
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 serviceAccountName: string, Optional service account name. If this field is set, transfer config will
188be created with this service account credentials. It requires that
189requesting user calling this API has permissions to act as this service
190account.
191 versionInfo: string, Optional version info. If users want to find a very recent access token,
192that is, immediately after approving access, users have to set the
193version_info claim in the token request. To obtain the version_info, users
194must use the &quot;none+gsession&quot; response type. which be return a
195version_info back in the authorization response which be be put in a JWT
196claim in the token request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 authorizationCode: string, Optional OAuth2 authorization code to use with this transfer configuration.
198This is required if new credentials are needed, as indicated by
199`CheckValidCreds`.
200In order to obtain authorization_code, please make a
201request to
Dan O'Mearadd494642020-05-01 07:42:23 -0700202https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&lt;datatransferapiclientid&gt;&amp;scope=&lt;data_source_scopes&gt;&amp;redirect_uri=&lt;redirect_uri&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203
204* client_id should be OAuth client_id of BigQuery DTS API for the given
205 data source returned by ListDataSources method.
206* data_source_scopes are the scopes returned by ListDataSources method.
207* redirect_uri is an optional parameter. If not specified, then
208 authorization code is posted to the opener of authorization flow window.
209 Otherwise it will be sent to the redirect uri. A special value of
210 urn:ietf:wg:oauth:2.0:oob means that authorization code should be
211 returned in the title bar of the browser, with the page text prompting
212 the user to copy the code and paste it in the application.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 x__xgafv: string, V1 error format.
214 Allowed values
215 1 - v1 error format
216 2 - v2 error format
217
218Returns:
219 An object of the form:
220
221 { # Represents a data transfer configuration. A transfer configuration
222 # contains all metadata needed to perform a data transfer. For example,
223 # `destination_dataset_id` specifies where data should be stored.
224 # When a new transfer configuration is created, the specified
225 # `destination_dataset_id` is created when needed and shared with the
226 # appropriate data source service account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700227 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
228 # For example, if `data_refresh_window_days = 10`, then every day
229 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
230 # for just [today-1].
231 # Only valid if the data source supports the feature. Set the value to 0
232 # to use the default value.
233 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
234 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
235 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
236 # scheduled at or after the end time. The end time can be changed at any
237 # moment. The time when a data transfer can be trigerred manually is not
238 # limited by this option.
239 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
240 # scheduled at or after the start time according to a recurrence pattern
241 # defined in the schedule string. The start time can be changed at any
242 # moment. The time when a data transfer can be trigerred manually is not
243 # limited by this option.
244 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
245 # will be disabled. The runs can be started on ad-hoc basis using
246 # StartManualTransferRuns API. When automatic scheduling is disabled, the
247 # TransferConfig.schedule field will be ignored.
248 },
249 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
250 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
251 # Transfer config names have the form of
252 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
253 # The name is automatically generated based on the config_id specified in
254 # CreateTransferConfigRequest along with project_id and region. If config_id
255 # is not provided, usually a uuid, even though it is not guaranteed or
256 # required, will be generated for config_id.
257 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
258 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs
Dan O'Mearadd494642020-05-01 07:42:23 -0700260 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;params&quot;: { # Data transfer specific parameters.
262 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
263 },
264 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
265 # to the email address of the user who owns this transfer config.
266 # events.
267 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
268 },
269 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
270 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700271 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
273 # for a given transfer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275 # If the data source does not support a custom schedule, this should be
276 # empty. If it is empty, the default value for the data source will be
277 # used.
278 # The specified times are in UTC.
279 # Examples of valid format:
280 # `1st,3rd monday of month 15:30`,
281 # `every wed,fri of jan,jun 13:15`, and
282 # `first sunday of quarter 00:00`.
283 # See more explanation about the format here:
284 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
285 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700287 }</pre>
288</div>
289
290<div class="method">
291 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
292 <pre>Deletes a data transfer configuration,
293including any associated transfer runs and logs.
294
295Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 name: string, Required. The field will contain name of the resource requested, for example:
297`projects/{project_id}/transferConfigs/{config_id}` or
298`projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 x__xgafv: string, V1 error format.
300 Allowed values
301 1 - v1 error format
302 2 - v2 error format
303
304Returns:
305 An object of the form:
306
307 { # A generic empty message that you can re-use to avoid defining duplicated
308 # empty messages in your APIs. A typical example is to use it as the request
309 # or the response type of an API method. For instance:
310 #
311 # service Foo {
312 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
313 # }
314 #
315 # The JSON representation for `Empty` is empty JSON object `{}`.
316 }</pre>
317</div>
318
319<div class="method">
320 <code class="details" id="get">get(name, x__xgafv=None)</code>
321 <pre>Returns information about a data transfer config.
322
323Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700324 name: string, Required. The field will contain name of the resource requested, for example:
325`projects/{project_id}/transferConfigs/{config_id}` or
326`projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327 x__xgafv: string, V1 error format.
328 Allowed values
329 1 - v1 error format
330 2 - v2 error format
331
332Returns:
333 An object of the form:
334
335 { # Represents a data transfer configuration. A transfer configuration
336 # contains all metadata needed to perform a data transfer. For example,
337 # `destination_dataset_id` specifies where data should be stored.
338 # When a new transfer configuration is created, the specified
339 # `destination_dataset_id` is created when needed and shared with the
340 # appropriate data source service account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700341 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
342 # For example, if `data_refresh_window_days = 10`, then every day
343 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
344 # for just [today-1].
345 # Only valid if the data source supports the feature. Set the value to 0
346 # to use the default value.
347 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
348 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
349 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
350 # scheduled at or after the end time. The end time can be changed at any
351 # moment. The time when a data transfer can be trigerred manually is not
352 # limited by this option.
353 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
354 # scheduled at or after the start time according to a recurrence pattern
355 # defined in the schedule string. The start time can be changed at any
356 # moment. The time when a data transfer can be trigerred manually is not
357 # limited by this option.
358 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
359 # will be disabled. The runs can be started on ad-hoc basis using
360 # StartManualTransferRuns API. When automatic scheduling is disabled, the
361 # TransferConfig.schedule field will be ignored.
362 },
363 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
364 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
365 # Transfer config names have the form of
366 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
367 # The name is automatically generated based on the config_id specified in
368 # CreateTransferConfigRequest along with project_id and region. If config_id
369 # is not provided, usually a uuid, even though it is not guaranteed or
370 # required, will be generated for config_id.
371 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
372 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs
Dan O'Mearadd494642020-05-01 07:42:23 -0700374 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;params&quot;: { # Data transfer specific parameters.
376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
377 },
378 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
379 # to the email address of the user who owns this transfer config.
380 # events.
381 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
382 },
383 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
384 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700385 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
387 # for a given transfer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700389 # If the data source does not support a custom schedule, this should be
390 # empty. If it is empty, the default value for the data source will be
391 # used.
392 # The specified times are in UTC.
393 # Examples of valid format:
394 # `1st,3rd monday of month 15:30`,
395 # `every wed,fri of jan,jun 13:15`, and
396 # `first sunday of quarter 00:00`.
397 # See more explanation about the format here:
398 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
399 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401 }</pre>
402</div>
403
404<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700405 <code class="details" id="list">list(parent, dataSourceIds=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406 <pre>Returns information about all data transfers in the project.
407
408Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 parent: string, Required. The BigQuery project id for which data sources
410should be returned: `projects/{project_id}` or
411`projects/{project_id}/locations/{location_id}` (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700412 dataSourceIds: string, When specified, only configurations of requested data sources are returned. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 pageToken: string, Pagination token, which can be used to request a specific page
414of `ListTransfersRequest` list results. For multiple-page
415results, `ListTransfersResponse` outputs
416a `next_page` token, which can be used as the
417`page_token` value to request the next page of list results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 pageSize: integer, Page size. The default page size is the maximum value of 1000 results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700419 x__xgafv: string, V1 error format.
420 Allowed values
421 1 - v1 error format
422 2 - v2 error format
423
424Returns:
425 An object of the form:
426
427 { # The returned list of pipelines in the project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 &quot;transferConfigs&quot;: [ # Output only. The stored pipeline transfer configurations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 { # Represents a data transfer configuration. A transfer configuration
430 # contains all metadata needed to perform a data transfer. For example,
431 # `destination_dataset_id` specifies where data should be stored.
432 # When a new transfer configuration is created, the specified
433 # `destination_dataset_id` is created when needed and shared with the
434 # appropriate data source service account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700435 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
436 # For example, if `data_refresh_window_days = 10`, then every day
437 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
438 # for just [today-1].
439 # Only valid if the data source supports the feature. Set the value to 0
440 # to use the default value.
441 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
442 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
443 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
444 # scheduled at or after the end time. The end time can be changed at any
445 # moment. The time when a data transfer can be trigerred manually is not
446 # limited by this option.
447 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
448 # scheduled at or after the start time according to a recurrence pattern
449 # defined in the schedule string. The start time can be changed at any
450 # moment. The time when a data transfer can be trigerred manually is not
451 # limited by this option.
452 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
453 # will be disabled. The runs can be started on ad-hoc basis using
454 # StartManualTransferRuns API. When automatic scheduling is disabled, the
455 # TransferConfig.schedule field will be ignored.
456 },
457 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
458 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
459 # Transfer config names have the form of
460 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
461 # The name is automatically generated based on the config_id specified in
462 # CreateTransferConfigRequest along with project_id and region. If config_id
463 # is not provided, usually a uuid, even though it is not guaranteed or
464 # required, will be generated for config_id.
465 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
466 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs
Dan O'Mearadd494642020-05-01 07:42:23 -0700468 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 &quot;params&quot;: { # Data transfer specific parameters.
470 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
471 },
472 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
473 # to the email address of the user who owns this transfer config.
474 # events.
475 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
476 },
477 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
478 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700479 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
481 # for a given transfer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483 # If the data source does not support a custom schedule, this should be
484 # empty. If it is empty, the default value for the data source will be
485 # used.
486 # The specified times are in UTC.
487 # Examples of valid format:
488 # `1st,3rd monday of month 15:30`,
489 # `every wed,fri of jan,jun 13:15`, and
490 # `first sunday of quarter 00:00`.
491 # See more explanation about the format here:
492 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
493 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495 },
496 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700497 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. The next-pagination token. For multiple-page list results,
498 # this token can be used as the
499 # `ListTransferConfigsRequest.page_token`
500 # to request the next page of list results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700501 }</pre>
502</div>
503
504<div class="method">
505 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
506 <pre>Retrieves the next page of results.
507
508Args:
509 previous_request: The request for the previous page. (required)
510 previous_response: The response from the request for the previous page. (required)
511
512Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700513 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700514 page. Returns None if there are no more items in the collection.
515 </pre>
516</div>
517
518<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 <code class="details" id="patch">patch(name, body=None, versionInfo=None, authorizationCode=None, updateMask=None, serviceAccountName=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700520 <pre>Updates a data transfer configuration.
521All fields must be set, even if they are not updated.
522
523Args:
524 name: string, The resource name of the transfer config.
525Transfer config names have the form of
526`projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
527The name is automatically generated based on the config_id specified in
528CreateTransferConfigRequest along with project_id and region. If config_id
529is not provided, usually a uuid, even though it is not guaranteed or
530required, will be generated for config_id. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700531 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700532 The object takes the form of:
533
534{ # Represents a data transfer configuration. A transfer configuration
535 # contains all metadata needed to perform a data transfer. For example,
536 # `destination_dataset_id` specifies where data should be stored.
537 # When a new transfer configuration is created, the specified
538 # `destination_dataset_id` is created when needed and shared with the
539 # appropriate data source service account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700540 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
541 # For example, if `data_refresh_window_days = 10`, then every day
542 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
543 # for just [today-1].
544 # Only valid if the data source supports the feature. Set the value to 0
545 # to use the default value.
546 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
547 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
548 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
549 # scheduled at or after the end time. The end time can be changed at any
550 # moment. The time when a data transfer can be trigerred manually is not
551 # limited by this option.
552 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
553 # scheduled at or after the start time according to a recurrence pattern
554 # defined in the schedule string. The start time can be changed at any
555 # moment. The time when a data transfer can be trigerred manually is not
556 # limited by this option.
557 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
558 # will be disabled. The runs can be started on ad-hoc basis using
559 # StartManualTransferRuns API. When automatic scheduling is disabled, the
560 # TransferConfig.schedule field will be ignored.
561 },
562 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
563 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
564 # Transfer config names have the form of
565 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
566 # The name is automatically generated based on the config_id specified in
567 # CreateTransferConfigRequest along with project_id and region. If config_id
568 # is not provided, usually a uuid, even though it is not guaranteed or
569 # required, will be generated for config_id.
570 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
571 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs
Dan O'Mearadd494642020-05-01 07:42:23 -0700573 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;params&quot;: { # Data transfer specific parameters.
575 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
576 },
577 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
578 # to the email address of the user who owns this transfer config.
579 # events.
580 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
581 },
582 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
583 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700584 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
586 # for a given transfer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588 # If the data source does not support a custom schedule, this should be
589 # empty. If it is empty, the default value for the data source will be
590 # used.
591 # The specified times are in UTC.
592 # Examples of valid format:
593 # `1st,3rd monday of month 15:30`,
594 # `every wed,fri of jan,jun 13:15`, and
595 # `first sunday of quarter 00:00`.
596 # See more explanation about the format here:
597 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
598 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700599 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700600}
601
Bu Sun Kim65020912020-05-20 12:08:20 -0700602 versionInfo: string, Optional version info. If users want to find a very recent access token,
603that is, immediately after approving access, users have to set the
604version_info claim in the token request. To obtain the version_info, users
605must use the &quot;none+gsession&quot; response type. which be return a
606version_info back in the authorization response which be be put in a JWT
607claim in the token request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700608 authorizationCode: string, Optional OAuth2 authorization code to use with this transfer configuration.
609If it is provided, the transfer configuration will be associated with the
610authorizing user.
611In order to obtain authorization_code, please make a
612request to
Dan O'Mearadd494642020-05-01 07:42:23 -0700613https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&lt;datatransferapiclientid&gt;&amp;scope=&lt;data_source_scopes&gt;&amp;redirect_uri=&lt;redirect_uri&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614
615* client_id should be OAuth client_id of BigQuery DTS API for the given
616 data source returned by ListDataSources method.
617* data_source_scopes are the scopes returned by ListDataSources method.
618* redirect_uri is an optional parameter. If not specified, then
619 authorization code is posted to the opener of authorization flow window.
620 Otherwise it will be sent to the redirect uri. A special value of
621 urn:ietf:wg:oauth:2.0:oob means that authorization code should be
622 returned in the title bar of the browser, with the page text prompting
623 the user to copy the code and paste it in the application.
Dan O'Mearadd494642020-05-01 07:42:23 -0700624 updateMask: string, Required. Required list of fields to be updated in this request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 serviceAccountName: string, Optional service account name. If this field is set and
626&quot;service_account_name&quot; is set in update_mask, transfer config will be
627updated to use this service account credentials. It requires that
628requesting user calling this API has permissions to act as this service
629account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700630 x__xgafv: string, V1 error format.
631 Allowed values
632 1 - v1 error format
633 2 - v2 error format
634
635Returns:
636 An object of the form:
637
638 { # Represents a data transfer configuration. A transfer configuration
639 # contains all metadata needed to perform a data transfer. For example,
640 # `destination_dataset_id` specifies where data should be stored.
641 # When a new transfer configuration is created, the specified
642 # `destination_dataset_id` is created when needed and shared with the
643 # appropriate data source service account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700644 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
645 # For example, if `data_refresh_window_days = 10`, then every day
646 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
647 # for just [today-1].
648 # Only valid if the data source supports the feature. Set the value to 0
649 # to use the default value.
650 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
651 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
652 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
653 # scheduled at or after the end time. The end time can be changed at any
654 # moment. The time when a data transfer can be trigerred manually is not
655 # limited by this option.
656 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
657 # scheduled at or after the start time according to a recurrence pattern
658 # defined in the schedule string. The start time can be changed at any
659 # moment. The time when a data transfer can be trigerred manually is not
660 # limited by this option.
661 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
662 # will be disabled. The runs can be started on ad-hoc basis using
663 # StartManualTransferRuns API. When automatic scheduling is disabled, the
664 # TransferConfig.schedule field will be ignored.
665 },
666 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
667 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
668 # Transfer config names have the form of
669 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
670 # The name is automatically generated based on the config_id specified in
671 # CreateTransferConfigRequest along with project_id and region. If config_id
672 # is not provided, usually a uuid, even though it is not guaranteed or
673 # required, will be generated for config_id.
674 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
675 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Pub/Sub topic where notifications will be sent after transfer runs
Dan O'Mearadd494642020-05-01 07:42:23 -0700677 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;params&quot;: { # Data transfer specific parameters.
679 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
680 },
681 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
682 # to the email address of the user who owns this transfer config.
683 # events.
684 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
685 },
686 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
687 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700688 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
690 # for a given transfer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700692 # If the data source does not support a custom schedule, this should be
693 # empty. If it is empty, the default value for the data source will be
694 # used.
695 # The specified times are in UTC.
696 # Examples of valid format:
697 # `1st,3rd monday of month 15:30`,
698 # `every wed,fri of jan,jun 13:15`, and
699 # `first sunday of quarter 00:00`.
700 # See more explanation about the format here:
701 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
702 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700704 }</pre>
705</div>
706
707<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700708 <code class="details" id="scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700709 <pre>Creates transfer runs for a time range [start_time, end_time].
710For each date - or whatever granularity the data source supports - in the
711range, one transfer run is created.
712Note that runs are created per UTC time in the time range.
713DEPRECATED: use StartManualTransferRuns instead.
714
715Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700716 parent: string, Required. Transfer configuration name in the form:
717`projects/{project_id}/transferConfigs/{config_id}` or
718`projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. (required)
719 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700720 The object takes the form of:
721
722{ # A request to schedule transfer runs for a time range.
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 &quot;endTime&quot;: &quot;A String&quot;, # Required. End time of the range of transfer runs. For example,
724 # `&quot;2017-05-30T00:00:00+00:00&quot;`.
725 &quot;startTime&quot;: &quot;A String&quot;, # Required. Start time of the range of transfer runs. For example,
726 # `&quot;2017-05-25T00:00:00+00:00&quot;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700727 }
728
729 x__xgafv: string, V1 error format.
730 Allowed values
731 1 - v1 error format
732 2 - v2 error format
733
734Returns:
735 An object of the form:
736
737 { # A response to schedule transfer runs for a time range.
Bu Sun Kim65020912020-05-20 12:08:20 -0700738 &quot;runs&quot;: [ # The transfer runs that were scheduled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 { # Represents a data transfer run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700740 &quot;dataSourceId&quot;: &quot;A String&quot;, # Output only. Data source id.
741 &quot;state&quot;: &quot;A String&quot;, # Data transfer run state. Ignored for input requests.
742 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # Output only. The BigQuery target dataset id.
743 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700744 # Transfer run names have the form
745 # `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`.
746 # The name is ignored when creating a transfer run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
748 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Output only. Pub/Sub topic where a notification will be sent after this
Dan O'Mearadd494642020-05-01 07:42:23 -0700749 # transfer run finishes
Bu Sun Kim65020912020-05-20 12:08:20 -0700750 &quot;params&quot;: { # Output only. Data transfer specific parameters.
751 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
752 },
753 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Output only. Email notifications will be sent according to these
754 # preferences to the email address of the user who owns the transfer config
755 # this run was derived from.
756 # events.
757 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
758 },
759 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run ended.
Dan O'Mearadd494642020-05-01 07:42:23 -0700760 # Parameter ignored by server for input requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run was started.
762 # Parameter ignored by server for input requests.
763 &quot;scheduleTime&quot;: &quot;A String&quot;, # Minimum time after which a transfer run can be started.
764 &quot;errorStatus&quot;: { # The `Status` type defines a logical error model that is suitable for # Status of the transfer run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700765 # different programming environments, including REST APIs and RPC APIs. It is
766 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
767 # three pieces of data: error code, error message, and error details.
768 #
769 # You can find out more about this error model and how to work with it in the
770 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700771 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700773 # user-facing error message should be localized and sent in the
774 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700775 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700776 # message types for APIs to use.
777 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700778 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779 },
780 ],
781 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 &quot;schedule&quot;: &quot;A String&quot;, # Output only. Describes the schedule of this transfer run if it was
783 # created as part of a regular schedule. For batch transfer runs that are
784 # scheduled manually, this is empty.
785 # NOTE: the system might choose to delay the schedule depending on the
786 # current load, so `schedule_time` doesn&#x27;t always match this.
787 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last time the data transfer run state was updated.
788 &quot;runTime&quot;: &quot;A String&quot;, # For batch transfer runs, specifies the date and time of the data should be
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 # ingested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700790 },
791 ],
792 }</pre>
793</div>
794
795<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700796 <code class="details" id="startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700797 <pre>Start manual transfer runs to be executed now with schedule_time equal to
798current time. The transfer runs can be created for a time range where the
799run_time is between start_time (inclusive) and end_time (exclusive), or for
800a specific run_time.
801
802Args:
803 parent: string, Transfer configuration name in the form:
Dan O'Mearadd494642020-05-01 07:42:23 -0700804`projects/{project_id}/transferConfigs/{config_id}` or
805`projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. (required)
806 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700807 The object takes the form of:
808
809{ # A request to start manual transfer runs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;requestedTimeRange&quot;: { # A specification for a time range, this will request transfer runs with # Time range for the transfer runs that should be started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700811 # run_time between start_time (inclusive) and end_time (exclusive).
Bu Sun Kim65020912020-05-20 12:08:20 -0700812 &quot;endTime&quot;: &quot;A String&quot;, # End time of the range of transfer runs. For example,
813 # `&quot;2017-05-30T00:00:00+00:00&quot;`. The end_time must not be in the future.
814 # Creates transfer runs where run_time is in the range betwen start_time
815 # (inclusive) and end_time (exlusive).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700816 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the range of transfer runs. For example,
817 # `&quot;2017-05-25T00:00:00+00:00&quot;`. The start_time must be strictly less than
818 # the end_time. Creates transfer runs where run_time is in the range betwen
819 # start_time (inclusive) and end_time (exlusive).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;requestedRunTime&quot;: &quot;A String&quot;, # Specific run_time for a transfer run to be started. The
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700822 # requested_run_time must not be in the future.
823 }
824
825 x__xgafv: string, V1 error format.
826 Allowed values
827 1 - v1 error format
828 2 - v2 error format
829
830Returns:
831 An object of the form:
832
833 { # A response to start manual transfer runs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;runs&quot;: [ # The transfer runs that were created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700835 { # Represents a data transfer run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700836 &quot;dataSourceId&quot;: &quot;A String&quot;, # Output only. Data source id.
837 &quot;state&quot;: &quot;A String&quot;, # Data transfer run state. Ignored for input requests.
838 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # Output only. The BigQuery target dataset id.
839 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840 # Transfer run names have the form
841 # `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`.
842 # The name is ignored when creating a transfer run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700843 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
844 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # Output only. Pub/Sub topic where a notification will be sent after this
Dan O'Mearadd494642020-05-01 07:42:23 -0700845 # transfer run finishes
Bu Sun Kim65020912020-05-20 12:08:20 -0700846 &quot;params&quot;: { # Output only. Data transfer specific parameters.
847 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
848 },
849 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Output only. Email notifications will be sent according to these
850 # preferences to the email address of the user who owns the transfer config
851 # this run was derived from.
852 # events.
853 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
854 },
855 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run ended.
Dan O'Mearadd494642020-05-01 07:42:23 -0700856 # Parameter ignored by server for input requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run was started.
858 # Parameter ignored by server for input requests.
859 &quot;scheduleTime&quot;: &quot;A String&quot;, # Minimum time after which a transfer run can be started.
860 &quot;errorStatus&quot;: { # The `Status` type defines a logical error model that is suitable for # Status of the transfer run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700861 # different programming environments, including REST APIs and RPC APIs. It is
862 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
863 # three pieces of data: error code, error message, and error details.
864 #
865 # You can find out more about this error model and how to work with it in the
866 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700867 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700868 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700869 # user-facing error message should be localized and sent in the
870 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700872 # message types for APIs to use.
873 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700875 },
876 ],
877 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 &quot;schedule&quot;: &quot;A String&quot;, # Output only. Describes the schedule of this transfer run if it was
879 # created as part of a regular schedule. For batch transfer runs that are
880 # scheduled manually, this is empty.
881 # NOTE: the system might choose to delay the schedule depending on the
882 # current load, so `schedule_time` doesn&#x27;t always match this.
883 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last time the data transfer run state was updated.
884 &quot;runTime&quot;: &quot;A String&quot;, # For batch transfer runs, specifies the date and time of the data should be
Dan O'Mearadd494642020-05-01 07:42:23 -0700885 # ingested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700886 },
887 ],
888 }</pre>
889</div>
890
891</body></html>