blob: 101791d0f9952194330b8308c3a4205737dbfdd2 [file] [log] [blame]
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="bigquerydatatransfer_v1.html">BigQuery Data Transfer API</a> . <a href="bigquerydatatransfer_v1.projects.html">projects</a> . <a href="bigquerydatatransfer_v1.projects.dataSources.html">dataSources</a></h1>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="#checkValidCreds">checkValidCreds(name, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040079<p class="firstline">Returns true if valid credentials exist for the given data source and</p>
80<p class="toc_element">
81 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Retrieves a supported data source and returns its settings,</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040085<p class="firstline">Lists supported data sources and returns their settings,</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091 <code class="details" id="checkValidCreds">checkValidCreds(name, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040092 <pre>Returns true if valid credentials exist for the given data source and
93requesting user.
Bu Sun Kim65020912020-05-20 12:08:20 -070094Some data sources doesn&#x27;t support service account, so we need to talk to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095them on behalf of the end user. This API just checks whether we have OAuth
96token for the particular user, which is a pre-requisite before user can
97create a transfer config.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040098
99Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 name: string, Required. The data source in the form:
101`projects/{project_id}/dataSources/{data_source_id}` or
102`projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400104 The object takes the form of:
105
106{ # A request to determine whether the user has valid credentials. This method
107 # is used to limit the number of OAuth popups in the user interface. The
108 # user id is inferred from the API call context.
109 # If the data source has the Google+ authorization type, this method
110 # returns false, as it cannot be determined whether the credentials are
111 # already valid merely based on the user id.
112 }
113
114 x__xgafv: string, V1 error format.
115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
118
119Returns:
120 An object of the form:
121
122 { # A response indicating whether the credentials exist and are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;hasValidCreds&quot;: True or False, # If set to `true`, the credentials exist and are valid.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400124 }</pre>
125</div>
126
127<div class="method">
128 <code class="details" id="get">get(name, x__xgafv=None)</code>
129 <pre>Retrieves a supported data source and returns its settings,
130which can be used for UI rendering.
131
132Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 name: string, Required. The field will contain name of the resource requested, for example:
134`projects/{project_id}/dataSources/{data_source_id}` or
135`projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}` (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400136 x__xgafv: string, V1 error format.
137 Allowed values
138 1 - v1 error format
139 2 - v2 error format
140
141Returns:
142 An object of the form:
143
144 { # Represents data source metadata. Metadata is sufficient to
145 # render UI and request proper OAuth tokens.
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id.
147 &quot;scopes&quot;: [ # Api auth scopes for which refresh token needs to be obtained. These are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 # scopes needed by a data source to prepare data and ingest them into
149 # BigQuery, e.g., https://www.googleapis.com/auth/bigquery
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400151 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;name&quot;: &quot;A String&quot;, # Output only. Data source resource name.
153 &quot;minimumScheduleInterval&quot;: &quot;A String&quot;, # The minimum interval for scheduler to schedule runs.
154 &quot;clientId&quot;: &quot;A String&quot;, # Data source client id which should be used to receive refresh token.
155 &quot;authorizationType&quot;: &quot;A String&quot;, # Indicates the type of authorization.
156 &quot;supportsCustomSchedule&quot;: True or False, # Specifies whether the data source supports a user defined schedule, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157 # operates on the default schedule.
158 # When set to `true`, user can override default schedule.
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;displayName&quot;: &quot;A String&quot;, # User friendly data source name.
160 &quot;updateDeadlineSeconds&quot;: 42, # The number of seconds to wait for an update from the data source
161 # before the Data Transfer Service marks the transfer as FAILED.
162 &quot;dataRefreshType&quot;: &quot;A String&quot;, # Specifies whether the data source supports automatic data refresh for the
163 # past few days, and how it&#x27;s supported.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400164 # For some data sources, data might not be complete until a few days later,
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 # so it&#x27;s useful to refresh data automatically.
166 &quot;parameters&quot;: [ # Data source parameters.
Dan O'Mearadd494642020-05-01 07:42:23 -0700167 { # Represents a data source parameter with validation rules, so that
168 # parameters can be rendered in the UI. These parameters are given to us by
169 # supported data sources, and include all needed information for rendering
170 # and validation.
171 # Thus, whoever uses this api can decide to generate either generic ui,
172 # or custom data source specific forms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;repeated&quot;: True or False, # Deprecated. This field has no effect.
174 &quot;displayName&quot;: &quot;A String&quot;, # Parameter display name in the user interface.
175 &quot;immutable&quot;: True or False, # Cannot be changed after initial creation.
176 &quot;validationDescription&quot;: &quot;A String&quot;, # Description of the requirements for this field, in case the user input does
Dan O'Mearadd494642020-05-01 07:42:23 -0700177 # not fulfill the regex pattern or min/max values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;deprecated&quot;: True or False, # If true, it should not be used in new transfers, and it should not be
Dan O'Mearadd494642020-05-01 07:42:23 -0700179 # visible to users.
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;fields&quot;: [ # Deprecated. This field has no effect.
Dan O'Mearadd494642020-05-01 07:42:23 -0700181 # Object with schema name: DataSourceParameter
182 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;maxValue&quot;: 3.14, # For integer and double values specifies maxminum allowed value.
184 &quot;type&quot;: &quot;A String&quot;, # Parameter type.
185 &quot;recurse&quot;: True or False, # Deprecated. This field has no effect.
186 &quot;description&quot;: &quot;A String&quot;, # Parameter description.
187 &quot;allowedValues&quot;: [ # All possible values for the parameter.
188 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700189 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 &quot;minValue&quot;: 3.14, # For integer and double values specifies minimum allowed value.
191 &quot;validationHelpUrl&quot;: &quot;A String&quot;, # URL to a help document to further explain the naming requirements.
192 &quot;validationRegex&quot;: &quot;A String&quot;, # Regular expression which can be used for parameter validation.
193 &quot;paramId&quot;: &quot;A String&quot;, # Parameter identifier.
194 &quot;required&quot;: True or False, # Is parameter required.
Dan O'Mearadd494642020-05-01 07:42:23 -0700195 },
196 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;helpUrl&quot;: &quot;A String&quot;, # Url for the help document for this data source.
198 &quot;defaultSchedule&quot;: &quot;A String&quot;, # Default data transfer schedule.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400199 # Examples of valid schedules include:
200 # `1st,3rd monday of month 15:30`,
201 # `every wed,fri of jan,jun 13:15`, and
202 # `first sunday of quarter 00:00`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;supportsMultipleTransfers&quot;: True or False, # Deprecated. This field has no effect.
204 &quot;defaultDataRefreshWindowDays&quot;: 42, # Default data refresh window on days.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400205 # Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;manualRunsDisabled&quot;: True or False, # Disables backfilling and manual run scheduling
207 # for the data source.
208 &quot;transferType&quot;: &quot;A String&quot;, # Deprecated. This field has no effect.
209 &quot;description&quot;: &quot;A String&quot;, # User friendly data source description string.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400210 }</pre>
211</div>
212
213<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400215 <pre>Lists supported data sources and returns their settings,
216which can be used for UI rendering.
217
218Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700219 parent: string, Required. The BigQuery project id for which data sources should be returned.
220Must be in the form: `projects/{project_id}` or
221`projects/{project_id}/locations/{location_id} (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400222 pageToken: string, Pagination token, which can be used to request a specific page
223of `ListDataSourcesRequest` list results. For multiple-page
224results, `ListDataSourcesResponse` outputs
225a `next_page` token, which can be used as the
226`page_token` value to request the next page of list results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 pageSize: integer, Page size. The default page size is the maximum value of 1000 results.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400232
233Returns:
234 An object of the form:
235
236 { # Returns list of supported data sources and their metadata.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;dataSources&quot;: [ # List of supported data sources and their transfer settings.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400238 { # Represents data source metadata. Metadata is sufficient to
239 # render UI and request proper OAuth tokens.
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id.
241 &quot;scopes&quot;: [ # Api auth scopes for which refresh token needs to be obtained. These are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 # scopes needed by a data source to prepare data and ingest them into
243 # BigQuery, e.g., https://www.googleapis.com/auth/bigquery
Bu Sun Kim65020912020-05-20 12:08:20 -0700244 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400245 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;name&quot;: &quot;A String&quot;, # Output only. Data source resource name.
247 &quot;minimumScheduleInterval&quot;: &quot;A String&quot;, # The minimum interval for scheduler to schedule runs.
248 &quot;clientId&quot;: &quot;A String&quot;, # Data source client id which should be used to receive refresh token.
249 &quot;authorizationType&quot;: &quot;A String&quot;, # Indicates the type of authorization.
250 &quot;supportsCustomSchedule&quot;: True or False, # Specifies whether the data source supports a user defined schedule, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700251 # operates on the default schedule.
252 # When set to `true`, user can override default schedule.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;displayName&quot;: &quot;A String&quot;, # User friendly data source name.
254 &quot;updateDeadlineSeconds&quot;: 42, # The number of seconds to wait for an update from the data source
255 # before the Data Transfer Service marks the transfer as FAILED.
256 &quot;dataRefreshType&quot;: &quot;A String&quot;, # Specifies whether the data source supports automatic data refresh for the
257 # past few days, and how it&#x27;s supported.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400258 # For some data sources, data might not be complete until a few days later,
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 # so it&#x27;s useful to refresh data automatically.
260 &quot;parameters&quot;: [ # Data source parameters.
Dan O'Mearadd494642020-05-01 07:42:23 -0700261 { # Represents a data source parameter with validation rules, so that
262 # parameters can be rendered in the UI. These parameters are given to us by
263 # supported data sources, and include all needed information for rendering
264 # and validation.
265 # Thus, whoever uses this api can decide to generate either generic ui,
266 # or custom data source specific forms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;repeated&quot;: True or False, # Deprecated. This field has no effect.
268 &quot;displayName&quot;: &quot;A String&quot;, # Parameter display name in the user interface.
269 &quot;immutable&quot;: True or False, # Cannot be changed after initial creation.
270 &quot;validationDescription&quot;: &quot;A String&quot;, # Description of the requirements for this field, in case the user input does
Dan O'Mearadd494642020-05-01 07:42:23 -0700271 # not fulfill the regex pattern or min/max values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;deprecated&quot;: True or False, # If true, it should not be used in new transfers, and it should not be
Dan O'Mearadd494642020-05-01 07:42:23 -0700273 # visible to users.
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &quot;fields&quot;: [ # Deprecated. This field has no effect.
Dan O'Mearadd494642020-05-01 07:42:23 -0700275 # Object with schema name: DataSourceParameter
276 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;maxValue&quot;: 3.14, # For integer and double values specifies maxminum allowed value.
278 &quot;type&quot;: &quot;A String&quot;, # Parameter type.
279 &quot;recurse&quot;: True or False, # Deprecated. This field has no effect.
280 &quot;description&quot;: &quot;A String&quot;, # Parameter description.
281 &quot;allowedValues&quot;: [ # All possible values for the parameter.
282 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700283 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;minValue&quot;: 3.14, # For integer and double values specifies minimum allowed value.
285 &quot;validationHelpUrl&quot;: &quot;A String&quot;, # URL to a help document to further explain the naming requirements.
286 &quot;validationRegex&quot;: &quot;A String&quot;, # Regular expression which can be used for parameter validation.
287 &quot;paramId&quot;: &quot;A String&quot;, # Parameter identifier.
288 &quot;required&quot;: True or False, # Is parameter required.
Dan O'Mearadd494642020-05-01 07:42:23 -0700289 },
290 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;helpUrl&quot;: &quot;A String&quot;, # Url for the help document for this data source.
292 &quot;defaultSchedule&quot;: &quot;A String&quot;, # Default data transfer schedule.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400293 # Examples of valid schedules include:
294 # `1st,3rd monday of month 15:30`,
295 # `every wed,fri of jan,jun 13:15`, and
296 # `first sunday of quarter 00:00`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;supportsMultipleTransfers&quot;: True or False, # Deprecated. This field has no effect.
298 &quot;defaultDataRefreshWindowDays&quot;: 42, # Default data refresh window on days.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400299 # Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;manualRunsDisabled&quot;: True or False, # Disables backfilling and manual run scheduling
301 # for the data source.
302 &quot;transferType&quot;: &quot;A String&quot;, # Deprecated. This field has no effect.
303 &quot;description&quot;: &quot;A String&quot;, # User friendly data source description string.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400304 },
305 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. The next-pagination token. For multiple-page list results,
307 # this token can be used as the
308 # `ListDataSourcesRequest.page_token`
309 # to request the next page of list results.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400310 }</pre>
311</div>
312
313<div class="method">
314 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
315 <pre>Retrieves the next page of results.
316
317Args:
318 previous_request: The request for the previous page. (required)
319 previous_response: The response from the request for the previous page. (required)
320
321Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400323 page. Returns None if there are no more items in the collection.
324 </pre>
325</div>
326
327</body></html>