blob: dfd8fc7ca65389bc15bdd051340710b7b9eff34d [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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Returns true if valid credentials exist for the given data source and requesting user. Some data sources doesn't support service account, so we need to talk to them on behalf of the end user. This API just checks whether we have OAuth token for the particular user, which is a pre-requisite before user can create a transfer config.</p>
80<p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040083<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Retrieves a supported data source and returns its settings, which can be used for UI rendering.</p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040086<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080087 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Lists supported data sources and returns their settings, which can be used for UI rendering.</p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094 <code class="details" id="checkValidCreds">checkValidCreds(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070095 <pre>Returns true if valid credentials exist for the given data source and requesting user. Some data sources doesn&#x27;t support service account, so we need to talk to them on behalf of the end user. This API just checks whether we have OAuth token for the particular user, which is a pre-requisite before user can create a transfer config.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040096
97Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070098 name: string, Required. The data source in the form: `projects/{project_id}/dataSources/{data_source_id}` or `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400100 The object takes the form of:
101
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102{ # A request to determine whether the user has valid credentials. This method is used to limit the number of OAuth popups in the user interface. The user id is inferred from the API call context. If the data source has the Google+ authorization type, this method returns false, as it cannot be determined whether the credentials are already valid merely based on the user id.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400103 }
104
105 x__xgafv: string, V1 error format.
106 Allowed values
107 1 - v1 error format
108 2 - v2 error format
109
110Returns:
111 An object of the form:
112
113 { # A response indicating whether the credentials exist and are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 &quot;hasValidCreds&quot;: True or False, # If set to `true`, the credentials exist and are valid.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400115 }</pre>
116</div>
117
118<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700119 <code class="details" id="close">close()</code>
120 <pre>Close httplib2 connections.</pre>
121</div>
122
123<div class="method">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400124 <code class="details" id="get">get(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 <pre>Retrieves a supported data source and returns its settings, which can be used for UI rendering.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400126
127Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 name: string, Required. The field will contain name of the resource requested, for example: `projects/{project_id}/dataSources/{data_source_id}` or `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}` (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134Returns:
135 An object of the form:
136
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700137 { # Represents data source metadata. Metadata is sufficient to render UI and request proper OAuth tokens.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800138 &quot;defaultDataRefreshWindowDays&quot;: 42, # Default data refresh window on days. Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800139 &quot;name&quot;: &quot;A String&quot;, # Output only. Data source resource name.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700140 &quot;scopes&quot;: [ # Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery
141 &quot;A String&quot;,
142 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;parameters&quot;: [ # Data source parameters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700144 { # Represents a data source parameter with validation rules, so that parameters can be rendered in the UI. These parameters are given to us by supported data sources, and include all needed information for rendering and validation. Thus, whoever uses this api can decide to generate either generic ui, or custom data source specific forms.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800145 &quot;maxValue&quot;: 3.14, # For integer and double values specifies maxminum allowed value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800146 &quot;recurse&quot;: True or False, # Deprecated. This field has no effect.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700147 &quot;allowedValues&quot;: [ # All possible values for the parameter.
148 &quot;A String&quot;,
149 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800150 &quot;repeated&quot;: True or False, # Deprecated. This field has no effect.
151 &quot;validationHelpUrl&quot;: &quot;A String&quot;, # URL to a help document to further explain the naming requirements.
152 &quot;deprecated&quot;: True or False, # If true, it should not be used in new transfers, and it should not be visible to users.
153 &quot;validationRegex&quot;: &quot;A String&quot;, # Regular expression which can be used for parameter validation.
154 &quot;immutable&quot;: True or False, # Cannot be changed after initial creation.
155 &quot;minValue&quot;: 3.14, # For integer and double values specifies minimum allowed value.
156 &quot;fields&quot;: [ # Deprecated. This field has no effect.
157 # Object with schema name: DataSourceParameter
158 ],
159 &quot;paramId&quot;: &quot;A String&quot;, # Parameter identifier.
160 &quot;displayName&quot;: &quot;A String&quot;, # Parameter display name in the user interface.
161 &quot;type&quot;: &quot;A String&quot;, # Parameter type.
162 &quot;description&quot;: &quot;A String&quot;, # Parameter description.
163 &quot;validationDescription&quot;: &quot;A String&quot;, # Description of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700164 &quot;required&quot;: True or False, # Is parameter required.
Dan O'Mearadd494642020-05-01 07:42:23 -0700165 },
166 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800167 &quot;supportsCustomSchedule&quot;: True or False, # Specifies whether the data source supports a user defined schedule, or operates on the default schedule. When set to `true`, user can override default schedule.
168 &quot;manualRunsDisabled&quot;: True or False, # Disables backfilling and manual run scheduling for the data source.
169 &quot;defaultSchedule&quot;: &quot;A String&quot;, # Default data transfer schedule. Examples of valid schedules include: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`.
170 &quot;clientId&quot;: &quot;A String&quot;, # Data source client id which should be used to receive refresh token.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800171 &quot;authorizationType&quot;: &quot;A String&quot;, # Indicates the type of authorization.
172 &quot;minimumScheduleInterval&quot;: &quot;A String&quot;, # The minimum interval for scheduler to schedule runs.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800173 &quot;helpUrl&quot;: &quot;A String&quot;, # Url for the help document for this data source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800174 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id.
175 &quot;updateDeadlineSeconds&quot;: 42, # The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.
176 &quot;dataRefreshType&quot;: &quot;A String&quot;, # Specifies whether the data source supports automatic data refresh for the past few days, and how it&#x27;s supported. For some data sources, data might not be complete until a few days later, so it&#x27;s useful to refresh data automatically.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800177 &quot;description&quot;: &quot;A String&quot;, # User friendly data source description string.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800178 &quot;displayName&quot;: &quot;A String&quot;, # User friendly data source name.
179 &quot;supportsMultipleTransfers&quot;: True or False, # Deprecated. This field has no effect.
180 &quot;transferType&quot;: &quot;A String&quot;, # Deprecated. This field has no effect.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400181 }</pre>
182</div>
183
184<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800185 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700186 <pre>Lists supported data sources and returns their settings, which can be used for UI rendering.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400187
188Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700189 parent: string, Required. The BigQuery project id for which data sources should be returned. Must be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id} (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700190 pageToken: string, Pagination token, which can be used to request a specific page of `ListDataSourcesRequest` list results. For multiple-page results, `ListDataSourcesResponse` outputs a `next_page` token, which can be used as the `page_token` value to request the next page of list results.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800191 pageSize: integer, Page size. The default page size is the maximum value of 1000 results.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400192 x__xgafv: string, V1 error format.
193 Allowed values
194 1 - v1 error format
195 2 - v2 error format
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400196
197Returns:
198 An object of the form:
199
200 { # Returns list of supported data sources and their metadata.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800201 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. The next-pagination token. For multiple-page list results, this token can be used as the `ListDataSourcesRequest.page_token` to request the next page of list results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;dataSources&quot;: [ # List of supported data sources and their transfer settings.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 { # Represents data source metadata. Metadata is sufficient to render UI and request proper OAuth tokens.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800204 &quot;defaultDataRefreshWindowDays&quot;: 42, # Default data refresh window on days. Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800205 &quot;name&quot;: &quot;A String&quot;, # Output only. Data source resource name.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700206 &quot;scopes&quot;: [ # Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery
207 &quot;A String&quot;,
208 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 &quot;parameters&quot;: [ # Data source parameters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700210 { # Represents a data source parameter with validation rules, so that parameters can be rendered in the UI. These parameters are given to us by supported data sources, and include all needed information for rendering and validation. Thus, whoever uses this api can decide to generate either generic ui, or custom data source specific forms.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800211 &quot;maxValue&quot;: 3.14, # For integer and double values specifies maxminum allowed value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800212 &quot;recurse&quot;: True or False, # Deprecated. This field has no effect.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 &quot;allowedValues&quot;: [ # All possible values for the parameter.
214 &quot;A String&quot;,
215 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800216 &quot;repeated&quot;: True or False, # Deprecated. This field has no effect.
217 &quot;validationHelpUrl&quot;: &quot;A String&quot;, # URL to a help document to further explain the naming requirements.
218 &quot;deprecated&quot;: True or False, # If true, it should not be used in new transfers, and it should not be visible to users.
219 &quot;validationRegex&quot;: &quot;A String&quot;, # Regular expression which can be used for parameter validation.
220 &quot;immutable&quot;: True or False, # Cannot be changed after initial creation.
221 &quot;minValue&quot;: 3.14, # For integer and double values specifies minimum allowed value.
222 &quot;fields&quot;: [ # Deprecated. This field has no effect.
223 # Object with schema name: DataSourceParameter
224 ],
225 &quot;paramId&quot;: &quot;A String&quot;, # Parameter identifier.
226 &quot;displayName&quot;: &quot;A String&quot;, # Parameter display name in the user interface.
227 &quot;type&quot;: &quot;A String&quot;, # Parameter type.
228 &quot;description&quot;: &quot;A String&quot;, # Parameter description.
229 &quot;validationDescription&quot;: &quot;A String&quot;, # Description of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700230 &quot;required&quot;: True or False, # Is parameter required.
Dan O'Mearadd494642020-05-01 07:42:23 -0700231 },
232 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800233 &quot;supportsCustomSchedule&quot;: True or False, # Specifies whether the data source supports a user defined schedule, or operates on the default schedule. When set to `true`, user can override default schedule.
234 &quot;manualRunsDisabled&quot;: True or False, # Disables backfilling and manual run scheduling for the data source.
235 &quot;defaultSchedule&quot;: &quot;A String&quot;, # Default data transfer schedule. Examples of valid schedules include: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`.
236 &quot;clientId&quot;: &quot;A String&quot;, # Data source client id which should be used to receive refresh token.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800237 &quot;authorizationType&quot;: &quot;A String&quot;, # Indicates the type of authorization.
238 &quot;minimumScheduleInterval&quot;: &quot;A String&quot;, # The minimum interval for scheduler to schedule runs.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800239 &quot;helpUrl&quot;: &quot;A String&quot;, # Url for the help document for this data source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800240 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source id.
241 &quot;updateDeadlineSeconds&quot;: 42, # The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.
242 &quot;dataRefreshType&quot;: &quot;A String&quot;, # Specifies whether the data source supports automatic data refresh for the past few days, and how it&#x27;s supported. For some data sources, data might not be complete until a few days later, so it&#x27;s useful to refresh data automatically.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800243 &quot;description&quot;: &quot;A String&quot;, # User friendly data source description string.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800244 &quot;displayName&quot;: &quot;A String&quot;, # User friendly data source name.
245 &quot;supportsMultipleTransfers&quot;: True or False, # Deprecated. This field has no effect.
246 &quot;transferType&quot;: &quot;A String&quot;, # Deprecated. This field has no effect.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400247 },
248 ],
249 }</pre>
250</div>
251
252<div class="method">
253 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
254 <pre>Retrieves the next page of results.
255
256Args:
257 previous_request: The request for the previous page. (required)
258 previous_response: The response from the request for the previous page. (required)
259
260Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400262 page. Returns None if there are no more items in the collection.
263 </pre>
264</div>
265
266</body></html>