1<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"> 83 <code><a href="#close">close()</a></code></p> 84<p class="firstline">Close httplib2 connections.</p> 85<p class="toc_element"> 86 <code><a href="#create">create(parent, authorizationCode=None, body=None, serviceAccountName=None, versionInfo=None, x__xgafv=None)</a></code></p> 87<p class="firstline">Creates a new data transfer configuration.</p> 88<p class="toc_element"> 89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 90<p class="firstline">Deletes a data transfer configuration, including any associated transfer runs and logs.</p> 91<p class="toc_element"> 92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 93<p class="firstline">Returns information about a data transfer config.</p> 94<p class="toc_element"> 95 <code><a href="#list">list(parent, dataSourceIds=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 96<p class="firstline">Returns information about all transfer configs owned by a project in the specified location.</p> 97<p class="toc_element"> 98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 99<p class="firstline">Retrieves the next page of results.</p> 100<p class="toc_element"> 101 <code><a href="#patch">patch(name, authorizationCode=None, body=None, serviceAccountName=None, updateMask=None, versionInfo=None, x__xgafv=None)</a></code></p> 102<p class="firstline">Updates a data transfer configuration. All fields must be set, even if they are not updated.</p> 103<p class="toc_element"> 104 <code><a href="#scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</a></code></p> 105<p class="firstline">Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.</p> 106<p class="toc_element"> 107 <code><a href="#startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</a></code></p> 108<p class="firstline">Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.</p> 109<h3>Method Details</h3> 110<div class="method"> 111 <code class="details" id="close">close()</code> 112 <pre>Close httplib2 connections.</pre> 113</div> 114 115<div class="method"> 116 <code class="details" id="create">create(parent, authorizationCode=None, body=None, serviceAccountName=None, versionInfo=None, x__xgafv=None)</code> 117 <pre>Creates a new data transfer configuration. 118 119Args: 120 parent: string, Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} or projects/{project_id}. If specified location and location of the destination bigquery dataset do not match - the request will fail. (required) 121 body: object, The request body. 122 The object takes the form of: 123 124{ # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account. 125 "dataRefreshWindowDays": 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value. 126 "dataSourceId": "A String", # Data source id. Cannot be changed once data transfer is created. 127 "datasetRegion": "A String", # Output only. Region in which BigQuery dataset is located. 128 "destinationDatasetId": "A String", # The BigQuery target dataset id. 129 "disabled": True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer. 130 "displayName": "A String", # User specified display name for the data transfer. 131 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config. 132 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 133 }, 134 "name": "A String", # The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. 135 "nextRunTime": "A String", # Output only. Next time when data transfer will run. 136 "notificationPubsubTopic": "A String", # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 137 "ownerInfo": { # Information about a user. # Output only. Information about the user whose credentials are used to transfer data. Populated only for `transferConfigs.get` requests. In case the user information is not available, this field will not be populated. 138 "email": "A String", # E-mail address of the user. 139 }, 140 "params": { # Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 141 "a_key": "", # Properties of the object. 142 }, 143 "schedule": "A String", # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source. 144 "scheduleOptions": { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule. 145 "disableAutoScheduling": True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. 146 "endTime": "A String", # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 147 "startTime": "A String", # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 148 }, 149 "state": "A String", # Output only. State of the most recently updated transfer run. 150 "updateTime": "A String", # Output only. Data transfer modification time. Ignored by server on input. 151 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 152} 153 154 authorizationCode: string, Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application. 155 serviceAccountName: string, Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. 156 versionInfo: string, Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. 157 x__xgafv: string, V1 error format. 158 Allowed values 159 1 - v1 error format 160 2 - v2 error format 161 162Returns: 163 An object of the form: 164 165 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account. 166 "dataRefreshWindowDays": 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value. 167 "dataSourceId": "A String", # Data source id. Cannot be changed once data transfer is created. 168 "datasetRegion": "A String", # Output only. Region in which BigQuery dataset is located. 169 "destinationDatasetId": "A String", # The BigQuery target dataset id. 170 "disabled": True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer. 171 "displayName": "A String", # User specified display name for the data transfer. 172 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config. 173 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 174 }, 175 "name": "A String", # The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. 176 "nextRunTime": "A String", # Output only. Next time when data transfer will run. 177 "notificationPubsubTopic": "A String", # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 178 "ownerInfo": { # Information about a user. # Output only. Information about the user whose credentials are used to transfer data. Populated only for `transferConfigs.get` requests. In case the user information is not available, this field will not be populated. 179 "email": "A String", # E-mail address of the user. 180 }, 181 "params": { # Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 182 "a_key": "", # Properties of the object. 183 }, 184 "schedule": "A String", # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source. 185 "scheduleOptions": { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule. 186 "disableAutoScheduling": True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. 187 "endTime": "A String", # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 188 "startTime": "A String", # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 189 }, 190 "state": "A String", # Output only. State of the most recently updated transfer run. 191 "updateTime": "A String", # Output only. Data transfer modification time. Ignored by server on input. 192 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 193}</pre> 194</div> 195 196<div class="method"> 197 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 198 <pre>Deletes a data transfer configuration, including any associated transfer runs and logs. 199 200Args: 201 name: string, Required. The field will contain name of the resource requested, for example: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required) 202 x__xgafv: string, V1 error format. 203 Allowed values 204 1 - v1 error format 205 2 - v2 error format 206 207Returns: 208 An object of the form: 209 210 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 211}</pre> 212</div> 213 214<div class="method"> 215 <code class="details" id="get">get(name, x__xgafv=None)</code> 216 <pre>Returns information about a data transfer config. 217 218Args: 219 name: string, Required. The field will contain name of the resource requested, for example: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required) 220 x__xgafv: string, V1 error format. 221 Allowed values 222 1 - v1 error format 223 2 - v2 error format 224 225Returns: 226 An object of the form: 227 228 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account. 229 "dataRefreshWindowDays": 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value. 230 "dataSourceId": "A String", # Data source id. Cannot be changed once data transfer is created. 231 "datasetRegion": "A String", # Output only. Region in which BigQuery dataset is located. 232 "destinationDatasetId": "A String", # The BigQuery target dataset id. 233 "disabled": True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer. 234 "displayName": "A String", # User specified display name for the data transfer. 235 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config. 236 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 237 }, 238 "name": "A String", # The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. 239 "nextRunTime": "A String", # Output only. Next time when data transfer will run. 240 "notificationPubsubTopic": "A String", # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 241 "ownerInfo": { # Information about a user. # Output only. Information about the user whose credentials are used to transfer data. Populated only for `transferConfigs.get` requests. In case the user information is not available, this field will not be populated. 242 "email": "A String", # E-mail address of the user. 243 }, 244 "params": { # Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 245 "a_key": "", # Properties of the object. 246 }, 247 "schedule": "A String", # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source. 248 "scheduleOptions": { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule. 249 "disableAutoScheduling": True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. 250 "endTime": "A String", # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 251 "startTime": "A String", # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 252 }, 253 "state": "A String", # Output only. State of the most recently updated transfer run. 254 "updateTime": "A String", # Output only. Data transfer modification time. Ignored by server on input. 255 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 256}</pre> 257</div> 258 259<div class="method"> 260 <code class="details" id="list">list(parent, dataSourceIds=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 261 <pre>Returns information about all transfer configs owned by a project in the specified location. 262 263Args: 264 parent: string, Required. The BigQuery project id for which data sources should be returned: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` (required) 265 dataSourceIds: string, When specified, only configurations of requested data sources are returned. (repeated) 266 pageSize: integer, Page size. The default page size is the maximum value of 1000 results. 267 pageToken: string, Pagination token, which can be used to request a specific page of `ListTransfersRequest` list results. For multiple-page results, `ListTransfersResponse` outputs a `next_page` token, which can be used as the `page_token` value to request the next page of list results. 268 x__xgafv: string, V1 error format. 269 Allowed values 270 1 - v1 error format 271 2 - v2 error format 272 273Returns: 274 An object of the form: 275 276 { # The returned list of pipelines in the project. 277 "nextPageToken": "A String", # Output only. The next-pagination token. For multiple-page list results, this token can be used as the `ListTransferConfigsRequest.page_token` to request the next page of list results. 278 "transferConfigs": [ # Output only. The stored pipeline transfer configurations. 279 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account. 280 "dataRefreshWindowDays": 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value. 281 "dataSourceId": "A String", # Data source id. Cannot be changed once data transfer is created. 282 "datasetRegion": "A String", # Output only. Region in which BigQuery dataset is located. 283 "destinationDatasetId": "A String", # The BigQuery target dataset id. 284 "disabled": True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer. 285 "displayName": "A String", # User specified display name for the data transfer. 286 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config. 287 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 288 }, 289 "name": "A String", # The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. 290 "nextRunTime": "A String", # Output only. Next time when data transfer will run. 291 "notificationPubsubTopic": "A String", # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 292 "ownerInfo": { # Information about a user. # Output only. Information about the user whose credentials are used to transfer data. Populated only for `transferConfigs.get` requests. In case the user information is not available, this field will not be populated. 293 "email": "A String", # E-mail address of the user. 294 }, 295 "params": { # Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 296 "a_key": "", # Properties of the object. 297 }, 298 "schedule": "A String", # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source. 299 "scheduleOptions": { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule. 300 "disableAutoScheduling": True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. 301 "endTime": "A String", # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 302 "startTime": "A String", # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 303 }, 304 "state": "A String", # Output only. State of the most recently updated transfer run. 305 "updateTime": "A String", # Output only. Data transfer modification time. Ignored by server on input. 306 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 307 }, 308 ], 309}</pre> 310</div> 311 312<div class="method"> 313 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 314 <pre>Retrieves the next page of results. 315 316Args: 317 previous_request: The request for the previous page. (required) 318 previous_response: The response from the request for the previous page. (required) 319 320Returns: 321 A request object that you can call 'execute()' on to request the next 322 page. Returns None if there are no more items in the collection. 323 </pre> 324</div> 325 326<div class="method"> 327 <code class="details" id="patch">patch(name, authorizationCode=None, body=None, serviceAccountName=None, updateMask=None, versionInfo=None, x__xgafv=None)</code> 328 <pre>Updates a data transfer configuration. All fields must be set, even if they are not updated. 329 330Args: 331 name: string, The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. (required) 332 body: object, The request body. 333 The object takes the form of: 334 335{ # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account. 336 "dataRefreshWindowDays": 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value. 337 "dataSourceId": "A String", # Data source id. Cannot be changed once data transfer is created. 338 "datasetRegion": "A String", # Output only. Region in which BigQuery dataset is located. 339 "destinationDatasetId": "A String", # The BigQuery target dataset id. 340 "disabled": True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer. 341 "displayName": "A String", # User specified display name for the data transfer. 342 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config. 343 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 344 }, 345 "name": "A String", # The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. 346 "nextRunTime": "A String", # Output only. Next time when data transfer will run. 347 "notificationPubsubTopic": "A String", # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 348 "ownerInfo": { # Information about a user. # Output only. Information about the user whose credentials are used to transfer data. Populated only for `transferConfigs.get` requests. In case the user information is not available, this field will not be populated. 349 "email": "A String", # E-mail address of the user. 350 }, 351 "params": { # Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 352 "a_key": "", # Properties of the object. 353 }, 354 "schedule": "A String", # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source. 355 "scheduleOptions": { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule. 356 "disableAutoScheduling": True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. 357 "endTime": "A String", # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 358 "startTime": "A String", # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 359 }, 360 "state": "A String", # Output only. State of the most recently updated transfer run. 361 "updateTime": "A String", # Output only. Data transfer modification time. Ignored by server on input. 362 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 363} 364 365 authorizationCode: string, Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application. 366 serviceAccountName: string, Optional service account name. If this field is set and "service_account_name" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. 367 updateMask: string, Required. Required list of fields to be updated in this request. 368 versionInfo: string, Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. 369 x__xgafv: string, V1 error format. 370 Allowed values 371 1 - v1 error format 372 2 - v2 error format 373 374Returns: 375 An object of the form: 376 377 { # Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account. 378 "dataRefreshWindowDays": 42, # The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value. 379 "dataSourceId": "A String", # Data source id. Cannot be changed once data transfer is created. 380 "datasetRegion": "A String", # Output only. Region in which BigQuery dataset is located. 381 "destinationDatasetId": "A String", # The BigQuery target dataset id. 382 "disabled": True or False, # Is this config disabled. When set to true, no runs are scheduled for a given transfer. 383 "displayName": "A String", # User specified display name for the data transfer. 384 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config. 385 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 386 }, 387 "name": "A String", # The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. 388 "nextRunTime": "A String", # Output only. Next time when data transfer will run. 389 "notificationPubsubTopic": "A String", # Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 390 "ownerInfo": { # Information about a user. # Output only. Information about the user whose credentials are used to transfer data. Populated only for `transferConfigs.get` requests. In case the user information is not available, this field will not be populated. 391 "email": "A String", # E-mail address of the user. 392 }, 393 "params": { # Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 394 "a_key": "", # Properties of the object. 395 }, 396 "schedule": "A String", # Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source. 397 "scheduleOptions": { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule. 398 "disableAutoScheduling": True or False, # If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. 399 "endTime": "A String", # Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 400 "startTime": "A String", # Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. 401 }, 402 "state": "A String", # Output only. State of the most recently updated transfer run. 403 "updateTime": "A String", # Output only. Data transfer modification time. Ignored by server on input. 404 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 405}</pre> 406</div> 407 408<div class="method"> 409 <code class="details" id="scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</code> 410 <pre>Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead. 411 412Args: 413 parent: string, Required. Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. (required) 414 body: object, The request body. 415 The object takes the form of: 416 417{ # A request to schedule transfer runs for a time range. 418 "endTime": "A String", # Required. End time of the range of transfer runs. For example, `"2017-05-30T00:00:00+00:00"`. 419 "startTime": "A String", # Required. Start time of the range of transfer runs. For example, `"2017-05-25T00:00:00+00:00"`. 420} 421 422 x__xgafv: string, V1 error format. 423 Allowed values 424 1 - v1 error format 425 2 - v2 error format 426 427Returns: 428 An object of the form: 429 430 { # A response to schedule transfer runs for a time range. 431 "runs": [ # The transfer runs that were scheduled. 432 { # Represents a data transfer run. 433 "dataSourceId": "A String", # Output only. Data source id. 434 "destinationDatasetId": "A String", # Output only. The BigQuery target dataset id. 435 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Output only. Email notifications will be sent according to these preferences to the email address of the user who owns the transfer config this run was derived from. 436 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 437 }, 438 "endTime": "A String", # Output only. Time when transfer run ended. Parameter ignored by server for input requests. 439 "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Status of the transfer run. 440 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 441 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 442 { 443 "a_key": "", # Properties of the object. Contains field @type with type URL. 444 }, 445 ], 446 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 447 }, 448 "name": "A String", # The resource name of the transfer run. Transfer run names have the form `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. The name is ignored when creating a transfer run. 449 "notificationPubsubTopic": "A String", # Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 450 "params": { # Output only. Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 451 "a_key": "", # Properties of the object. 452 }, 453 "runTime": "A String", # For batch transfer runs, specifies the date and time of the data should be ingested. 454 "schedule": "A String", # Output only. Describes the schedule of this transfer run if it was created as part of a regular schedule. For batch transfer runs that are scheduled manually, this is empty. NOTE: the system might choose to delay the schedule depending on the current load, so `schedule_time` doesn't always match this. 455 "scheduleTime": "A String", # Minimum time after which a transfer run can be started. 456 "startTime": "A String", # Output only. Time when transfer run was started. Parameter ignored by server for input requests. 457 "state": "A String", # Data transfer run state. Ignored for input requests. 458 "updateTime": "A String", # Output only. Last time the data transfer run state was updated. 459 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 460 }, 461 ], 462}</pre> 463</div> 464 465<div class="method"> 466 <code class="details" id="startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</code> 467 <pre>Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time. 468 469Args: 470 parent: string, Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}` or `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. (required) 471 body: object, The request body. 472 The object takes the form of: 473 474{ # A request to start manual transfer runs. 475 "requestedRunTime": "A String", # Specific run_time for a transfer run to be started. The requested_run_time must not be in the future. 476 "requestedTimeRange": { # A specification for a time range, this will request transfer runs with run_time between start_time (inclusive) and end_time (exclusive). # Time range for the transfer runs that should be started. 477 "endTime": "A String", # End time of the range of transfer runs. For example, `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future. Creates transfer runs where run_time is in the range between start_time (inclusive) and end_time (exclusive). 478 "startTime": "A String", # Start time of the range of transfer runs. For example, `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than the end_time. Creates transfer runs where run_time is in the range between start_time (inclusive) and end_time (exclusive). 479 }, 480} 481 482 x__xgafv: string, V1 error format. 483 Allowed values 484 1 - v1 error format 485 2 - v2 error format 486 487Returns: 488 An object of the form: 489 490 { # A response to start manual transfer runs. 491 "runs": [ # The transfer runs that were created. 492 { # Represents a data transfer run. 493 "dataSourceId": "A String", # Output only. Data source id. 494 "destinationDatasetId": "A String", # Output only. The BigQuery target dataset id. 495 "emailPreferences": { # Represents preferences for sending email notifications for transfer run events. # Output only. Email notifications will be sent according to these preferences to the email address of the user who owns the transfer config this run was derived from. 496 "enableFailureEmail": True or False, # If true, email notifications will be sent on transfer run failures. 497 }, 498 "endTime": "A String", # Output only. Time when transfer run ended. Parameter ignored by server for input requests. 499 "errorStatus": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Status of the transfer run. 500 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 501 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 502 { 503 "a_key": "", # Properties of the object. Contains field @type with type URL. 504 }, 505 ], 506 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 507 }, 508 "name": "A String", # The resource name of the transfer run. Transfer run names have the form `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. The name is ignored when creating a transfer run. 509 "notificationPubsubTopic": "A String", # Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` 510 "params": { # Output only. Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq 511 "a_key": "", # Properties of the object. 512 }, 513 "runTime": "A String", # For batch transfer runs, specifies the date and time of the data should be ingested. 514 "schedule": "A String", # Output only. Describes the schedule of this transfer run if it was created as part of a regular schedule. For batch transfer runs that are scheduled manually, this is empty. NOTE: the system might choose to delay the schedule depending on the current load, so `schedule_time` doesn't always match this. 515 "scheduleTime": "A String", # Minimum time after which a transfer run can be started. 516 "startTime": "A String", # Output only. Time when transfer run was started. Parameter ignored by server for input requests. 517 "state": "A String", # Data transfer run state. Ignored for input requests. 518 "updateTime": "A String", # Output only. Last time the data transfer run state was updated. 519 "userId": "A String", # Deprecated. Unique ID of the user on whose behalf transfer is done. 520 }, 521 ], 522}</pre> 523</div> 524 525</body></html>