Debian Codegraph @

docs/dyn/bigquerydatatransfer_v1.projects.transferConfigs.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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.transferConfigs.html">transferConfigs</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="bigquerydatatransfer_v1.projects.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="bigquerydatatransfer_v1.projects.transferConfigs.transferResources.html">transferResources()</a></code>
84 </p>
85 <p class="firstline">Returns the transferResources Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#create">create(parent, authorizationCode=None, body=None, serviceAccountName=None, versionInfo=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Creates a new data transfer configuration.</p>
93 <p class="toc_element">
94 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
95 <p class="firstline">Deletes a data transfer configuration, including any associated transfer runs and logs.</p>
96 <p class="toc_element">
97 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
98 <p class="firstline">Returns information about a data transfer config.</p>
99 <p class="toc_element">
100 <code><a href="#list">list(parent, dataSourceIds=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Returns information about all transfer configs owned by a project in the specified location.</p>
102 <p class="toc_element">
103 <code><a href="#list_next">list_next()</a></code></p>
104 <p class="firstline">Retrieves the next page of results.</p>
105 <p class="toc_element">
106 <code><a href="#patch">patch(name, authorizationCode=None, body=None, serviceAccountName=None, updateMask=None, versionInfo=None, x__xgafv=None)</a></code></p>
107 <p class="firstline">Updates a data transfer configuration. All fields must be set, even if they are not updated.</p>
108 <p class="toc_element">
109 <code><a href="#scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</a></code></p>
110 <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>
111 <p class="toc_element">
112 <code><a href="#startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</a></code></p>
113 <p class="firstline">Manually initiates transfer runs. You can schedule these runs in two ways: 1. For a specific point in time using the 'requested_run_time' parameter. 2. For a period between 'start_time' (inclusive) and 'end_time' (exclusive). If scheduling a single run, it is set to execute immediately (schedule_time equals the current time). When scheduling multiple runs within a time range, the first run starts now, and subsequent runs are delayed by 15 seconds each.</p>
114 <h3>Method Details</h3>
115 <div class="method">
116 <code class="details" id="close">close()</code>
117 <pre>Close httplib2 connections.</pre>
118 </div>
119
120 <div class="method">
121 <code class="details" id="create">create(parent, authorizationCode=None, body=None, serviceAccountName=None, versionInfo=None, x__xgafv=None)</code>
122 <pre>Creates a new data transfer configuration.
123
124 Args:
125 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)
126 body: object, The request body.
127 The object takes the form of:
128
129 { # 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.
130 &quot;dataRefreshWindowDays&quot;: 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.
131 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source ID. This cannot be changed once data transfer is created. The full list of available data source IDs can be returned through an API call: https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
132 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
133 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
134 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs will be scheduled for this transfer config.
135 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
136 &quot;emailPreferences&quot;: { # 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.
137 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
138 },
139 &quot;encryptionConfiguration&quot;: { # Represents the encryption configuration for a transfer. # The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent.
140 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the KMS key used for encrypting BigQuery data.
141 },
142 &quot;error&quot;: { # 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). # Output only. Error code with detailed information about reason of the latest config failure.
143 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
144 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
145 {
146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
147 },
148 ],
149 &quot;message&quot;: &quot;A String&quot;, # 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.
150 },
151 &quot;managedTableType&quot;: &quot;A String&quot;, # The classification of the destination table.
152 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # The metadata destination of the transfer config.
153 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
154 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
155 },
156 },
157 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/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.
158 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
159 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
160 &quot;ownerInfo&quot;: { # 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.
161 &quot;email&quot;: &quot;A String&quot;, # E-mail address of the user.
162 },
163 &quot;params&quot;: { # Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
165 },
166 &quot;schedule&quot;: &quot;A String&quot;, # 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.
167 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
168 &quot;disableAutoScheduling&quot;: 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.
169 &quot;endTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
170 &quot;startTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
171 },
172 &quot;scheduleOptionsV2&quot;: { # V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. # Options customizing different types of data transfer schedule. This field replaces &quot;schedule&quot; and &quot;schedule_options&quot; fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
173 &quot;eventDrivenSchedule&quot;: { # Options customizing EventDriven transfers schedule. # Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial.
174 &quot;pubsubSubscription&quot;: &quot;A String&quot;, # Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}
175 },
176 &quot;manualSchedule&quot;: { # Options customizing manual transfers schedule. # Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true.
177 },
178 &quot;timeBasedSchedule&quot;: { # Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message. # Time based transfer schedule options. This is the default schedule option.
179 &quot;endTime&quot;: &quot;A String&quot;, # 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.
180 &quot;schedule&quot;: &quot;A String&quot;, # 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.
181 &quot;startTime&quot;: &quot;A String&quot;, # 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.
182 },
183 },
184 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
185 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
186 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
187 }
188
189 authorizationCode: string, Deprecated: Authorization code was required when `transferConfig.dataSourceId` is &#x27;youtube_channel&#x27; but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is &#x27;youtube_channel&#x27; and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&amp;response_type=authorization_code&amp;client_id=client_id&amp;scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
190 serviceAccountName: string, Optional service account email. If this field is set, the transfer config will be created with this service account&#x27;s credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
191 versionInfo: string, Optional version info. This parameter replaces `authorization_code` which is no longer used in any data sources. This is required only if `transferConfig.dataSourceId` is &#x27;youtube_channel&#x27; *or* new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&amp;response_type=version_info&amp;client_id=client_id&amp;scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
192 x__xgafv: string, V1 error format.
193 Allowed values
194 1 - v1 error format
195 2 - v2 error format
196
197 Returns:
198 An object of the form:
199
200 { # 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.
201 &quot;dataRefreshWindowDays&quot;: 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.
202 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source ID. This cannot be changed once data transfer is created. The full list of available data source IDs can be returned through an API call: https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
203 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
204 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
205 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs will be scheduled for this transfer config.
206 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
207 &quot;emailPreferences&quot;: { # 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.
208 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
209 },
210 &quot;encryptionConfiguration&quot;: { # Represents the encryption configuration for a transfer. # The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent.
211 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the KMS key used for encrypting BigQuery data.
212 },
213 &quot;error&quot;: { # 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). # Output only. Error code with detailed information about reason of the latest config failure.
214 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
215 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
216 {
217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
218 },
219 ],
220 &quot;message&quot;: &quot;A String&quot;, # 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.
221 },
222 &quot;managedTableType&quot;: &quot;A String&quot;, # The classification of the destination table.
223 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # The metadata destination of the transfer config.
224 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
225 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
226 },
227 },
228 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/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.
229 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
230 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
231 &quot;ownerInfo&quot;: { # 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.
232 &quot;email&quot;: &quot;A String&quot;, # E-mail address of the user.
233 },
234 &quot;params&quot;: { # Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
235 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
236 },
237 &quot;schedule&quot;: &quot;A String&quot;, # 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.
238 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
239 &quot;disableAutoScheduling&quot;: 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.
240 &quot;endTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
241 &quot;startTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
242 },
243 &quot;scheduleOptionsV2&quot;: { # V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. # Options customizing different types of data transfer schedule. This field replaces &quot;schedule&quot; and &quot;schedule_options&quot; fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
244 &quot;eventDrivenSchedule&quot;: { # Options customizing EventDriven transfers schedule. # Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial.
245 &quot;pubsubSubscription&quot;: &quot;A String&quot;, # Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}
246 },
247 &quot;manualSchedule&quot;: { # Options customizing manual transfers schedule. # Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true.
248 },
249 &quot;timeBasedSchedule&quot;: { # Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message. # Time based transfer schedule options. This is the default schedule option.
250 &quot;endTime&quot;: &quot;A String&quot;, # 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.
251 &quot;schedule&quot;: &quot;A String&quot;, # 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.
252 &quot;startTime&quot;: &quot;A String&quot;, # 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.
253 },
254 },
255 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
256 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
257 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
258 }</pre>
259 </div>
260
261 <div class="method">
262 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
263 <pre>Deletes a data transfer configuration, including any associated transfer runs and logs.
264
265 Args:
266 name: string, Required. The name of the resource to delete. If you are using the regionless method, the location must be `US` and the name should be in the following form: * `projects/{project_id}/transferConfigs/{config_id}` If you are using the regionalized method, the name should be in the following form: * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
267 x__xgafv: string, V1 error format.
268 Allowed values
269 1 - v1 error format
270 2 - v2 error format
271
272 Returns:
273 An object of the form:
274
275 { # 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); }
276 }</pre>
277 </div>
278
279 <div class="method">
280 <code class="details" id="get">get(name, x__xgafv=None)</code>
281 <pre>Returns information about a data transfer config.
282
283 Args:
284 name: string, Required. The name of the resource requested. If you are using the regionless method, the location must be `US` and the name should be in the following form: * `projects/{project_id}/transferConfigs/{config_id}` If you are using the regionalized method, the name should be in the following form: * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
285 x__xgafv: string, V1 error format.
286 Allowed values
287 1 - v1 error format
288 2 - v2 error format
289
290 Returns:
291 An object of the form:
292
293 { # 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.
294 &quot;dataRefreshWindowDays&quot;: 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.
295 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source ID. This cannot be changed once data transfer is created. The full list of available data source IDs can be returned through an API call: https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
296 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
297 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
298 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs will be scheduled for this transfer config.
299 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
300 &quot;emailPreferences&quot;: { # 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.
301 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
302 },
303 &quot;encryptionConfiguration&quot;: { # Represents the encryption configuration for a transfer. # The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent.
304 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the KMS key used for encrypting BigQuery data.
305 },
306 &quot;error&quot;: { # 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). # Output only. Error code with detailed information about reason of the latest config failure.
307 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
308 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
309 {
310 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
311 },
312 ],
313 &quot;message&quot;: &quot;A String&quot;, # 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.
314 },
315 &quot;managedTableType&quot;: &quot;A String&quot;, # The classification of the destination table.
316 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # The metadata destination of the transfer config.
317 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
318 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
319 },
320 },
321 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/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.
322 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
323 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
324 &quot;ownerInfo&quot;: { # 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.
325 &quot;email&quot;: &quot;A String&quot;, # E-mail address of the user.
326 },
327 &quot;params&quot;: { # Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
329 },
330 &quot;schedule&quot;: &quot;A String&quot;, # 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.
331 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
332 &quot;disableAutoScheduling&quot;: 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.
333 &quot;endTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
334 &quot;startTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
335 },
336 &quot;scheduleOptionsV2&quot;: { # V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. # Options customizing different types of data transfer schedule. This field replaces &quot;schedule&quot; and &quot;schedule_options&quot; fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
337 &quot;eventDrivenSchedule&quot;: { # Options customizing EventDriven transfers schedule. # Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial.
338 &quot;pubsubSubscription&quot;: &quot;A String&quot;, # Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}
339 },
340 &quot;manualSchedule&quot;: { # Options customizing manual transfers schedule. # Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true.
341 },
342 &quot;timeBasedSchedule&quot;: { # Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message. # Time based transfer schedule options. This is the default schedule option.
343 &quot;endTime&quot;: &quot;A String&quot;, # 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.
344 &quot;schedule&quot;: &quot;A String&quot;, # 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.
345 &quot;startTime&quot;: &quot;A String&quot;, # 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.
346 },
347 },
348 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
349 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
350 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
351 }</pre>
352 </div>
353
354 <div class="method">
355 <code class="details" id="list">list(parent, dataSourceIds=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
356 <pre>Returns information about all transfer configs owned by a project in the specified location.
357
358 Args:
359 parent: string, Required. The BigQuery project id for which transfer configs should be returned. If you are using the regionless method, the location must be `US` and `parent` should be in the following form: * `projects/{project_id} If you are using the regionalized method, `parent` should be in the following form: * `projects/{project_id}/locations/{location_id}` (required)
360 dataSourceIds: string, When specified, only configurations of requested data sources are returned. (repeated)
361 pageSize: integer, Page size. The default page size is the maximum value of 1000 results.
362 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.
363 x__xgafv: string, V1 error format.
364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
367
368 Returns:
369 An object of the form:
370
371 { # The returned list of pipelines in the project.
372 &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 `ListTransferConfigsRequest.page_token` to request the next page of list results.
373 &quot;transferConfigs&quot;: [ # Output only. The stored pipeline transfer configurations.
374 { # 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.
375 &quot;dataRefreshWindowDays&quot;: 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.
376 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source ID. This cannot be changed once data transfer is created. The full list of available data source IDs can be returned through an API call: https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
377 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
378 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
379 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs will be scheduled for this transfer config.
380 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
381 &quot;emailPreferences&quot;: { # 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.
382 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
383 },
384 &quot;encryptionConfiguration&quot;: { # Represents the encryption configuration for a transfer. # The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent.
385 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the KMS key used for encrypting BigQuery data.
386 },
387 &quot;error&quot;: { # 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). # Output only. Error code with detailed information about reason of the latest config failure.
388 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
389 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
390 {
391 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
392 },
393 ],
394 &quot;message&quot;: &quot;A String&quot;, # 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.
395 },
396 &quot;managedTableType&quot;: &quot;A String&quot;, # The classification of the destination table.
397 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # The metadata destination of the transfer config.
398 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
399 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
400 },
401 },
402 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/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.
403 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
404 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
405 &quot;ownerInfo&quot;: { # 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.
406 &quot;email&quot;: &quot;A String&quot;, # E-mail address of the user.
407 },
408 &quot;params&quot;: { # Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
409 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
410 },
411 &quot;schedule&quot;: &quot;A String&quot;, # 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.
412 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
413 &quot;disableAutoScheduling&quot;: 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.
414 &quot;endTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
415 &quot;startTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
416 },
417 &quot;scheduleOptionsV2&quot;: { # V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. # Options customizing different types of data transfer schedule. This field replaces &quot;schedule&quot; and &quot;schedule_options&quot; fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
418 &quot;eventDrivenSchedule&quot;: { # Options customizing EventDriven transfers schedule. # Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial.
419 &quot;pubsubSubscription&quot;: &quot;A String&quot;, # Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}
420 },
421 &quot;manualSchedule&quot;: { # Options customizing manual transfers schedule. # Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true.
422 },
423 &quot;timeBasedSchedule&quot;: { # Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message. # Time based transfer schedule options. This is the default schedule option.
424 &quot;endTime&quot;: &quot;A String&quot;, # 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.
425 &quot;schedule&quot;: &quot;A String&quot;, # 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.
426 &quot;startTime&quot;: &quot;A String&quot;, # 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.
427 },
428 },
429 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
430 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
431 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
432 },
433 ],
434 }</pre>
435 </div>
436
437 <div class="method">
438 <code class="details" id="list_next">list_next()</code>
439 <pre>Retrieves the next page of results.
440
441 Args:
442 previous_request: The request for the previous page. (required)
443 previous_response: The response from the request for the previous page. (required)
444
445 Returns:
446 A request object that you can call &#x27;execute()&#x27; on to request the next
447 page. Returns None if there are no more items in the collection.
448 </pre>
449 </div>
450
451 <div class="method">
452 <code class="details" id="patch">patch(name, authorizationCode=None, body=None, serviceAccountName=None, updateMask=None, versionInfo=None, x__xgafv=None)</code>
453 <pre>Updates a data transfer configuration. All fields must be set, even if they are not updated.
454
455 Args:
456 name: string, Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/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)
457 body: object, The request body.
458 The object takes the form of:
459
460 { # 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.
461 &quot;dataRefreshWindowDays&quot;: 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.
462 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source ID. This cannot be changed once data transfer is created. The full list of available data source IDs can be returned through an API call: https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
463 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
464 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
465 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs will be scheduled for this transfer config.
466 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
467 &quot;emailPreferences&quot;: { # 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.
468 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
469 },
470 &quot;encryptionConfiguration&quot;: { # Represents the encryption configuration for a transfer. # The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent.
471 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the KMS key used for encrypting BigQuery data.
472 },
473 &quot;error&quot;: { # 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). # Output only. Error code with detailed information about reason of the latest config failure.
474 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
475 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
476 {
477 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
478 },
479 ],
480 &quot;message&quot;: &quot;A String&quot;, # 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.
481 },
482 &quot;managedTableType&quot;: &quot;A String&quot;, # The classification of the destination table.
483 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # The metadata destination of the transfer config.
484 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
485 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
486 },
487 },
488 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/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.
489 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
490 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
491 &quot;ownerInfo&quot;: { # 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.
492 &quot;email&quot;: &quot;A String&quot;, # E-mail address of the user.
493 },
494 &quot;params&quot;: { # Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
495 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
496 },
497 &quot;schedule&quot;: &quot;A String&quot;, # 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.
498 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
499 &quot;disableAutoScheduling&quot;: 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.
500 &quot;endTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
501 &quot;startTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
502 },
503 &quot;scheduleOptionsV2&quot;: { # V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. # Options customizing different types of data transfer schedule. This field replaces &quot;schedule&quot; and &quot;schedule_options&quot; fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
504 &quot;eventDrivenSchedule&quot;: { # Options customizing EventDriven transfers schedule. # Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial.
505 &quot;pubsubSubscription&quot;: &quot;A String&quot;, # Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}
506 },
507 &quot;manualSchedule&quot;: { # Options customizing manual transfers schedule. # Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true.
508 },
509 &quot;timeBasedSchedule&quot;: { # Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message. # Time based transfer schedule options. This is the default schedule option.
510 &quot;endTime&quot;: &quot;A String&quot;, # 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.
511 &quot;schedule&quot;: &quot;A String&quot;, # 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.
512 &quot;startTime&quot;: &quot;A String&quot;, # 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.
513 },
514 },
515 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
516 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
517 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
518 }
519
520 authorizationCode: string, Deprecated: Authorization code was required when `transferConfig.dataSourceId` is &#x27;youtube_channel&#x27; but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is &#x27;youtube_channel&#x27; and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&amp;response_type=authorization_code&amp;client_id=client_id&amp;scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config.
521 serviceAccountName: string, Optional service account email. If this field is set, the transfer config will be created with this service account&#x27;s credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
522 updateMask: string, Required. Required list of fields to be updated in this request.
523 versionInfo: string, Optional version info. This parameter replaces `authorization_code` which is no longer used in any data sources. This is required only if `transferConfig.dataSourceId` is &#x27;youtube_channel&#x27; *or* new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&amp;response_type=version_info&amp;client_id=client_id&amp;scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config.
524 x__xgafv: string, V1 error format.
525 Allowed values
526 1 - v1 error format
527 2 - v2 error format
528
529 Returns:
530 An object of the form:
531
532 { # 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.
533 &quot;dataRefreshWindowDays&quot;: 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.
534 &quot;dataSourceId&quot;: &quot;A String&quot;, # Data source ID. This cannot be changed once data transfer is created. The full list of available data source IDs can be returned through an API call: https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list
535 &quot;datasetRegion&quot;: &quot;A String&quot;, # Output only. Region in which BigQuery dataset is located.
536 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # The BigQuery target dataset id.
537 &quot;disabled&quot;: True or False, # Is this config disabled. When set to true, no runs will be scheduled for this transfer config.
538 &quot;displayName&quot;: &quot;A String&quot;, # User specified display name for the data transfer.
539 &quot;emailPreferences&quot;: { # 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.
540 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
541 },
542 &quot;encryptionConfiguration&quot;: { # Represents the encryption configuration for a transfer. # The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent.
543 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the KMS key used for encrypting BigQuery data.
544 },
545 &quot;error&quot;: { # 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). # Output only. Error code with detailed information about reason of the latest config failure.
546 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
547 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
548 {
549 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
550 },
551 ],
552 &quot;message&quot;: &quot;A String&quot;, # 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.
553 },
554 &quot;managedTableType&quot;: &quot;A String&quot;, # The classification of the destination table.
555 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # The metadata destination of the transfer config.
556 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
557 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
558 },
559 },
560 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/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.
561 &quot;nextRunTime&quot;: &quot;A String&quot;, # Output only. Next time when data transfer will run.
562 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
563 &quot;ownerInfo&quot;: { # 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.
564 &quot;email&quot;: &quot;A String&quot;, # E-mail address of the user.
565 },
566 &quot;params&quot;: { # Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
567 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
568 },
569 &quot;schedule&quot;: &quot;A String&quot;, # 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.
570 &quot;scheduleOptions&quot;: { # Options customizing the data transfer schedule. # Options customizing the data transfer schedule.
571 &quot;disableAutoScheduling&quot;: 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.
572 &quot;endTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
573 &quot;startTime&quot;: &quot;A String&quot;, # 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 triggered manually is not limited by this option.
574 },
575 &quot;scheduleOptionsV2&quot;: { # V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. # Options customizing different types of data transfer schedule. This field replaces &quot;schedule&quot; and &quot;schedule_options&quot; fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
576 &quot;eventDrivenSchedule&quot;: { # Options customizing EventDriven transfers schedule. # Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial.
577 &quot;pubsubSubscription&quot;: &quot;A String&quot;, # Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}
578 },
579 &quot;manualSchedule&quot;: { # Options customizing manual transfers schedule. # Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true.
580 },
581 &quot;timeBasedSchedule&quot;: { # Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message. # Time based transfer schedule options. This is the default schedule option.
582 &quot;endTime&quot;: &quot;A String&quot;, # 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.
583 &quot;schedule&quot;: &quot;A String&quot;, # 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.
584 &quot;startTime&quot;: &quot;A String&quot;, # 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.
585 },
586 },
587 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the most recently updated transfer run.
588 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Data transfer modification time. Ignored by server on input.
589 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
590 }</pre>
591 </div>
592
593 <div class="method">
594 <code class="details" id="scheduleRuns">scheduleRuns(parent, body=None, x__xgafv=None)</code>
595 <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.
596
597 Args:
598 parent: string, Required. Transfer configuration name. If you are using the regionless method, the location must be `US` and the name should be in the following form: * `projects/{project_id}/transferConfigs/{config_id}` If you are using the regionalized method, the name should be in the following form: * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
599 body: object, The request body.
600 The object takes the form of:
601
602 { # A request to schedule transfer runs for a time range.
603 &quot;endTime&quot;: &quot;A String&quot;, # Required. End time of the range of transfer runs. For example, `&quot;2017-05-30T00:00:00+00:00&quot;`.
604 &quot;startTime&quot;: &quot;A String&quot;, # Required. Start time of the range of transfer runs. For example, `&quot;2017-05-25T00:00:00+00:00&quot;`.
605 }
606
607 x__xgafv: string, V1 error format.
608 Allowed values
609 1 - v1 error format
610 2 - v2 error format
611
612 Returns:
613 An object of the form:
614
615 { # A response to schedule transfer runs for a time range.
616 &quot;runs&quot;: [ # The transfer runs that were scheduled.
617 { # Represents a data transfer run.
618 &quot;dataSourceId&quot;: &quot;A String&quot;, # Output only. Data source id.
619 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # Output only. The BigQuery target dataset id.
620 &quot;emailPreferences&quot;: { # 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.
621 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
622 },
623 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run ended. Parameter ignored by server for input requests.
624 &quot;errorStatus&quot;: { # 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.
625 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
626 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
627 {
628 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
629 },
630 ],
631 &quot;message&quot;: &quot;A String&quot;, # 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.
632 },
633 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # Output only. The metadata destination of the transfer run.
634 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
635 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
636 },
637 },
638 &quot;name&quot;: &quot;A String&quot;, # Identifier. 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.
639 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
640 &quot;params&quot;: { # Output only. Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
641 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
642 },
643 &quot;runTime&quot;: &quot;A String&quot;, # For batch transfer runs, specifies the date and time of the data should be ingested.
644 &quot;schedule&quot;: &quot;A String&quot;, # 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&#x27;t always match this.
645 &quot;scheduleTime&quot;: &quot;A String&quot;, # Minimum time after which a transfer run can be started.
646 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run was started. Parameter ignored by server for input requests.
647 &quot;state&quot;: &quot;A String&quot;, # Data transfer run state. Ignored for input requests.
648 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last time the data transfer run state was updated.
649 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
650 },
651 ],
652 }</pre>
653 </div>
654
655 <div class="method">
656 <code class="details" id="startManualRuns">startManualRuns(parent, body=None, x__xgafv=None)</code>
657 <pre>Manually initiates transfer runs. You can schedule these runs in two ways: 1. For a specific point in time using the &#x27;requested_run_time&#x27; parameter. 2. For a period between &#x27;start_time&#x27; (inclusive) and &#x27;end_time&#x27; (exclusive). If scheduling a single run, it is set to execute immediately (schedule_time equals the current time). When scheduling multiple runs within a time range, the first run starts now, and subsequent runs are delayed by 15 seconds each.
658
659 Args:
660 parent: string, Required. Transfer configuration name. If you are using the regionless method, the location must be `US` and the name should be in the following form: * `projects/{project_id}/transferConfigs/{config_id}` If you are using the regionalized method, the name should be in the following form: * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` (required)
661 body: object, The request body.
662 The object takes the form of:
663
664 { # A request to start manual transfer runs.
665 &quot;requestedRunTime&quot;: &quot;A String&quot;, # A run_time timestamp for historical data files or reports that are scheduled to be transferred by the scheduled transfer run. requested_run_time must be a past time and cannot include future time values.
666 &quot;requestedTimeRange&quot;: { # A specification for a time range, this will request transfer runs with run_time between start_time (inclusive) and end_time (exclusive). # A time_range start and end timestamp for historical data files or reports that are scheduled to be transferred by the scheduled transfer run. requested_time_range must be a past time and cannot include future time values.
667 &quot;endTime&quot;: &quot;A String&quot;, # End time of the range of transfer runs. For example, `&quot;2017-05-30T00:00:00+00:00&quot;`. 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).
668 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the range of transfer runs. For example, `&quot;2017-05-25T00:00:00+00:00&quot;`. 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).
669 },
670 }
671
672 x__xgafv: string, V1 error format.
673 Allowed values
674 1 - v1 error format
675 2 - v2 error format
676
677 Returns:
678 An object of the form:
679
680 { # A response to start manual transfer runs.
681 &quot;runs&quot;: [ # The transfer runs that were created.
682 { # Represents a data transfer run.
683 &quot;dataSourceId&quot;: &quot;A String&quot;, # Output only. Data source id.
684 &quot;destinationDatasetId&quot;: &quot;A String&quot;, # Output only. The BigQuery target dataset id.
685 &quot;emailPreferences&quot;: { # 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.
686 &quot;enableFailureEmail&quot;: True or False, # If true, email notifications will be sent on transfer run failures.
687 },
688 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run ended. Parameter ignored by server for input requests.
689 &quot;errorStatus&quot;: { # 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.
690 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
691 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
692 {
693 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
694 },
695 ],
696 &quot;message&quot;: &quot;A String&quot;, # 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.
697 },
698 &quot;metadataDestination&quot;: { # The metadata destination of the transfer config. # Output only. The metadata destination of the transfer run.
699 &quot;dataplexConfiguration&quot;: { # Configuration for Dataplex destination. # The Dataplex Universal Catalog configuration.
700 &quot;entryGroup&quot;: &quot;A String&quot;, # Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`.
701 },
702 },
703 &quot;name&quot;: &quot;A String&quot;, # Identifier. 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.
704 &quot;notificationPubsubTopic&quot;: &quot;A String&quot;, # 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_id}/topics/{topic_id}`
705 &quot;params&quot;: { # Output only. Parameters specific to each data source. For more information see the bq tab in the &#x27;Setting up a data transfer&#x27; 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
706 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
707 },
708 &quot;runTime&quot;: &quot;A String&quot;, # For batch transfer runs, specifies the date and time of the data should be ingested.
709 &quot;schedule&quot;: &quot;A String&quot;, # 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&#x27;t always match this.
710 &quot;scheduleTime&quot;: &quot;A String&quot;, # Minimum time after which a transfer run can be started.
711 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when transfer run was started. Parameter ignored by server for input requests.
712 &quot;state&quot;: &quot;A String&quot;, # Data transfer run state. Ignored for input requests.
713 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last time the data transfer run state was updated.
714 &quot;userId&quot;: &quot;A String&quot;, # Deprecated. Unique ID of the user on whose behalf transfer is done.
715 },
716 ],
717 }</pre>
718 </div>
719
720 </body></html>