blob: f0a24fbc9245a833fbc9ebe0bbd2c8e1fc6e5289 [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 Kim65020912020-05-20 12:08:20 -070092 <code><a href="#list">list(parent, pageToken=None, pageSize=None, dataSourceIds=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 Kim65020912020-05-20 12:08:20 -0700125 &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 -0700126 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;params&quot;: { # Data transfer specific parameters.
128 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
129 },
130 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
131 # to the email address of the user who owns this transfer config.
132 # events.
133 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
134 },
135 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
136 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
137 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
138 # for a given transfer.
139 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
140 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 # If the data source does not support a custom schedule, this should be
142 # empty. If it is empty, the default value for the data source will be
143 # used.
144 # The specified times are in UTC.
145 # Examples of valid format:
146 # `1st,3rd monday of month 15:30`,
147 # `every wed,fri of jan,jun 13:15`, and
148 # `first sunday of quarter 00:00`.
149 # See more explanation about the format here:
150 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
151 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
153 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 # For example, if `data_refresh_window_days = 10`, then every day
155 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
156 # for just [today-1].
157 # Only valid if the data source supports the feature. Set the value to 0
158 # to use the default value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
160 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
161 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
162 # will be disabled. The runs can be started on ad-hoc basis using
163 # StartManualTransferRuns API. When automatic scheduling is disabled, the
164 # TransferConfig.schedule field will be ignored.
165 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
166 # scheduled at or after the end time. The end time can be changed at any
167 # moment. The time when a data transfer can be trigerred manually is not
168 # limited by this option.
169 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
170 # scheduled at or after the start time according to a recurrence pattern
171 # defined in the schedule string. The start time can be changed at any
172 # moment. The time when a data transfer can be trigerred manually is not
173 # limited by this option.
174 },
175 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
176 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
177 # Transfer config names have the form of
178 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
179 # The name is automatically generated based on the config_id specified in
180 # CreateTransferConfigRequest along with project_id and region. If config_id
181 # is not provided, usually a uuid, even though it is not guaranteed or
182 # required, will be generated for config_id.
183 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
184 &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 -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 Kim65020912020-05-20 12:08:20 -0700227 &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 -0700228 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;params&quot;: { # Data transfer specific parameters.
230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
231 },
232 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
233 # to the email address of the user who owns this transfer config.
234 # events.
235 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
236 },
237 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
238 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
239 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
240 # for a given transfer.
241 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
242 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 # If the data source does not support a custom schedule, this should be
244 # empty. If it is empty, the default value for the data source will be
245 # used.
246 # The specified times are in UTC.
247 # Examples of valid format:
248 # `1st,3rd monday of month 15:30`,
249 # `every wed,fri of jan,jun 13:15`, and
250 # `first sunday of quarter 00:00`.
251 # See more explanation about the format here:
252 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
253 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
255 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
Dan O'Mearadd494642020-05-01 07:42:23 -0700256 # For example, if `data_refresh_window_days = 10`, then every day
257 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
258 # for just [today-1].
259 # Only valid if the data source supports the feature. Set the value to 0
260 # to use the default value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
262 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
263 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
264 # will be disabled. The runs can be started on ad-hoc basis using
265 # StartManualTransferRuns API. When automatic scheduling is disabled, the
266 # TransferConfig.schedule field will be ignored.
267 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
268 # scheduled at or after the end time. The end time can be changed at any
269 # moment. The time when a data transfer can be trigerred manually is not
270 # limited by this option.
271 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
272 # scheduled at or after the start time according to a recurrence pattern
273 # defined in the schedule string. The start time can be changed at any
274 # moment. The time when a data transfer can be trigerred manually is not
275 # limited by this option.
276 },
277 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
278 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
279 # Transfer config names have the form of
280 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
281 # The name is automatically generated based on the config_id specified in
282 # CreateTransferConfigRequest along with project_id and region. If config_id
283 # is not provided, usually a uuid, even though it is not guaranteed or
284 # required, will be generated for config_id.
285 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
286 &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 -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 Kim65020912020-05-20 12:08:20 -0700341 &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 -0700342 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;params&quot;: { # Data transfer specific parameters.
344 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
345 },
346 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
347 # to the email address of the user who owns this transfer config.
348 # events.
349 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
350 },
351 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
352 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
353 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
354 # for a given transfer.
355 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
356 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 # If the data source does not support a custom schedule, this should be
358 # empty. If it is empty, the default value for the data source will be
359 # used.
360 # The specified times are in UTC.
361 # Examples of valid format:
362 # `1st,3rd monday of month 15:30`,
363 # `every wed,fri of jan,jun 13:15`, and
364 # `first sunday of quarter 00:00`.
365 # See more explanation about the format here:
366 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
367 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
369 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
Dan O'Mearadd494642020-05-01 07:42:23 -0700370 # For example, if `data_refresh_window_days = 10`, then every day
371 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
372 # for just [today-1].
373 # Only valid if the data source supports the feature. Set the value to 0
374 # to use the default value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
376 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
377 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
378 # will be disabled. The runs can be started on ad-hoc basis using
379 # StartManualTransferRuns API. When automatic scheduling is disabled, the
380 # TransferConfig.schedule field will be ignored.
381 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
382 # scheduled at or after the end time. The end time can be changed at any
383 # moment. The time when a data transfer can be trigerred manually is not
384 # limited by this option.
385 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
386 # scheduled at or after the start time according to a recurrence pattern
387 # defined in the schedule string. The start time can be changed at any
388 # moment. The time when a data transfer can be trigerred manually is not
389 # limited by this option.
390 },
391 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
392 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
393 # Transfer config names have the form of
394 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
395 # The name is automatically generated based on the config_id specified in
396 # CreateTransferConfigRequest along with project_id and region. If config_id
397 # is not provided, usually a uuid, even though it is not guaranteed or
398 # required, will be generated for config_id.
399 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
400 &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 -0700401 }</pre>
402</div>
403
404<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, dataSourceIds=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 Kim715bd7f2019-06-14 16:50:42 -0700412 pageToken: string, Pagination token, which can be used to request a specific page
413of `ListTransfersRequest` list results. For multiple-page
414results, `ListTransfersResponse` outputs
415a `next_page` token, which can be used as the
416`page_token` value to request the next page of list results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 pageSize: integer, Page size. The default page size is the maximum value of 1000 results.
418 dataSourceIds: string, When specified, only configurations of requested data sources are returned. (repeated)
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;nextPageToken&quot;: &quot;A String&quot;, # Output only. The next-pagination token. For multiple-page list results,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 # this token can be used as the
430 # `ListTransferConfigsRequest.page_token`
431 # to request the next page of list results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;transferConfigs&quot;: [ # Output only. The stored pipeline transfer configurations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700433 { # Represents a data transfer configuration. A transfer configuration
434 # contains all metadata needed to perform a data transfer. For example,
435 # `destination_dataset_id` specifies where data should be stored.
436 # When a new transfer configuration is created, the specified
437 # `destination_dataset_id` is created when needed and shared with the
438 # appropriate data source service account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 &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 -0700440 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 &quot;params&quot;: { # Data transfer specific parameters.
442 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
443 },
444 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
445 # to the email address of the user who owns this transfer config.
446 # events.
447 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
448 },
449 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
450 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
451 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
452 # for a given transfer.
453 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
454 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700455 # If the data source does not support a custom schedule, this should be
456 # empty. If it is empty, the default value for the data source will be
457 # used.
458 # The specified times are in UTC.
459 # Examples of valid format:
460 # `1st,3rd monday of month 15:30`,
461 # `every wed,fri of jan,jun 13:15`, and
462 # `first sunday of quarter 00:00`.
463 # See more explanation about the format here:
464 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
465 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700466 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
467 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
Dan O'Mearadd494642020-05-01 07:42:23 -0700468 # For example, if `data_refresh_window_days = 10`, then every day
469 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
470 # for just [today-1].
471 # Only valid if the data source supports the feature. Set the value to 0
472 # to use the default value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
474 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
475 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
476 # will be disabled. The runs can be started on ad-hoc basis using
477 # StartManualTransferRuns API. When automatic scheduling is disabled, the
478 # TransferConfig.schedule field will be ignored.
479 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
480 # scheduled at or after the end time. The end time can be changed at any
481 # moment. The time when a data transfer can be trigerred manually is not
482 # limited by this option.
483 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
484 # scheduled at or after the start time according to a recurrence pattern
485 # defined in the schedule string. The start time can be changed at any
486 # moment. The time when a data transfer can be trigerred manually is not
487 # limited by this option.
488 },
489 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
490 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
491 # Transfer config names have the form of
492 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
493 # The name is automatically generated based on the config_id specified in
494 # CreateTransferConfigRequest along with project_id and region. If config_id
495 # is not provided, usually a uuid, even though it is not guaranteed or
496 # required, will be generated for config_id.
497 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
498 &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 -0700499 },
500 ],
501 }</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 Kim65020912020-05-20 12:08:20 -0700540 &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 -0700541 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 &quot;params&quot;: { # Data transfer specific parameters.
543 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
544 },
545 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
546 # to the email address of the user who owns this transfer config.
547 # events.
548 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
549 },
550 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
551 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
552 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
553 # for a given transfer.
554 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
555 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556 # If the data source does not support a custom schedule, this should be
557 # empty. If it is empty, the default value for the data source will be
558 # used.
559 # The specified times are in UTC.
560 # Examples of valid format:
561 # `1st,3rd monday of month 15:30`,
562 # `every wed,fri of jan,jun 13:15`, and
563 # `first sunday of quarter 00:00`.
564 # See more explanation about the format here:
565 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
566 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
568 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
Dan O'Mearadd494642020-05-01 07:42:23 -0700569 # For example, if `data_refresh_window_days = 10`, then every day
570 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
571 # for just [today-1].
572 # Only valid if the data source supports the feature. Set the value to 0
573 # to use the default value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
575 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
576 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
577 # will be disabled. The runs can be started on ad-hoc basis using
578 # StartManualTransferRuns API. When automatic scheduling is disabled, the
579 # TransferConfig.schedule field will be ignored.
580 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
581 # scheduled at or after the end time. The end time can be changed at any
582 # moment. The time when a data transfer can be trigerred manually is not
583 # limited by this option.
584 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
585 # scheduled at or after the start time according to a recurrence pattern
586 # defined in the schedule string. The start time can be changed at any
587 # moment. The time when a data transfer can be trigerred manually is not
588 # limited by this option.
589 },
590 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
591 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
592 # Transfer config names have the form of
593 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
594 # The name is automatically generated based on the config_id specified in
595 # CreateTransferConfigRequest along with project_id and region. If config_id
596 # is not provided, usually a uuid, even though it is not guaranteed or
597 # required, will be generated for config_id.
598 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
599 &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 -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 Kim65020912020-05-20 12:08:20 -0700644 &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 -0700645 # associated with this transfer config finish.
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 &quot;params&quot;: { # Data transfer specific parameters.
647 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
648 },
649 &quot;emailPreferences&quot;: { # Represents preferences for sending email notifications for transfer run # Email notifications will be sent according to these preferences
650 # to the email address of the user who owns this transfer config.
651 # events.
652 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
653 },
654 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
655 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
656 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs are scheduled
657 # for a given transfer.
658 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
659 &quot;schedule&quot;: &quot;A String&quot;, # Data transfer schedule.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 # If the data source does not support a custom schedule, this should be
661 # empty. If it is empty, the default value for the data source will be
662 # used.
663 # The specified times are in UTC.
664 # Examples of valid format:
665 # `1st,3rd monday of month 15:30`,
666 # `every wed,fri of jan,jun 13:15`, and
667 # `first sunday of quarter 00:00`.
668 # See more explanation about the format here:
669 # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
670 # NOTE: the granularity should be at least 8 hours, or less frequent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
672 &quot;dataRefreshWindowDays&quot;: 42, # The number of days to look back to automatically refresh the data.
Dan O'Mearadd494642020-05-01 07:42:23 -0700673 # For example, if `data_refresh_window_days = 10`, then every day
674 # BigQuery reingests data for [today-10, today-1], rather than ingesting data
675 # for just [today-1].
676 # Only valid if the data source supports the feature. Set the value to 0
677 # to use the default value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id. Cannot be changed once data transfer is created.
679 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
680 &quot;disableAutoScheduling&quot;: True or False, # If true, automatic scheduling of data transfer runs for this configuration
681 # will be disabled. The runs can be started on ad-hoc basis using
682 # StartManualTransferRuns API. When automatic scheduling is disabled, the
683 # TransferConfig.schedule field will be ignored.
684 &quot;endTime&quot;: &quot;A String&quot;, # Defines time to stop scheduling transfer runs. A transfer run cannot be
685 # scheduled at or after the end time. The end time can be changed at any
686 # moment. The time when a data transfer can be trigerred manually is not
687 # limited by this option.
688 &quot;startTime&quot;: &quot;A String&quot;, # Specifies time to start scheduling transfer runs. The first run will be
689 # scheduled at or after the start time according to a recurrence pattern
690 # defined in the schedule string. The start time can be changed at any
691 # moment. The time when a data transfer can be trigerred manually is not
692 # limited by this option.
693 },
694 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
695 &quot;name&quot;: &quot;A String&quot;, # The resource name of the transfer config.
696 # Transfer config names have the form of
697 # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
698 # The name is automatically generated based on the config_id specified in
699 # CreateTransferConfigRequest along with project_id and region. If config_id
700 # is not provided, usually a uuid, even though it is not guaranteed or
701 # required, will be generated for config_id.
702 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
703 &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 -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 Kim65020912020-05-20 12:08:20 -0700771 &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 -0700772 # user-facing error message should be localized and sent in the
773 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 &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 -0700775 # message types for APIs to use.
776 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700777 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700778 },
779 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 },
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;startTime&quot;: &quot;A String&quot;, # Start time of the range of transfer runs. For example,
813 # `&quot;2017-05-25T00:00:00+00:00&quot;`. The start_time must be strictly less than
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700814 # the end_time. Creates transfer runs where run_time is in the range betwen
815 # start_time (inclusive) and end_time (exlusive).
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;endTime&quot;: &quot;A String&quot;, # End time of the range of transfer runs. For example,
817 # `&quot;2017-05-30T00:00:00+00:00&quot;`. The end_time must not be in the future.
818 # Creates transfer runs where run_time is in the range betwen start_time
819 # (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 Kim65020912020-05-20 12:08:20 -0700867 &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 -0700868 # user-facing error message should be localized and sent in the
869 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700870 &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 -0700871 # message types for APIs to use.
872 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700873 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700874 },
875 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700876 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877 },
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>