google-apis-bigquerydatatransfer_v1 0.12.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5057b7b7f5d2b406978c29d8c45b14c0b06d2b04f428383249d2911d525b2b9
4
- data.tar.gz: 78e39b6255cd906aa304305bda41768d52764101c4f34903feca15d6b011db69
3
+ metadata.gz: 6963ef20fa1620f90fc46fce12d16e13be0ad1b1559c4d6cfb065ad149a15429
4
+ data.tar.gz: 58d2c0f1f24ed4f0de31af97833e83fe79e5bd656607dc033221b354e7b59a86
5
5
  SHA512:
6
- metadata.gz: 71f6859e42a7cb2ee49e551f06227ec6cf45329bb5021d9d237b4ddeb3a3e30faef7ef3764031b9095aecd3d996cbd8690c8d7d132aee26e2a8450d657c03df0
7
- data.tar.gz: bb7858e1a70199b571ea402f406f9b9a17254d98dd0b0d772e60776a6211bd11762d641fa602a84a121bfbb85aada0115ca8c4761af3cfbe4e474a5d0de54fc6
6
+ metadata.gz: 84024a0d30dea8dde7487aad834b3945cd3d126167f85fab9aecba17abdbe7d0784c3eb12f766cec1b58a10db2ad3c2687e182d08ff2086c6da8a8c439ab3c88
7
+ data.tar.gz: bc35c8be943851aed7a8d0b32e763bf7d616a8da757fbbdde0281632f2460d314afe220d81c3fc805c50a837fe62604e20199acac08d320a8635ca4e01abb19d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-bigquerydatatransfer_v1
2
2
 
3
+ ### v0.16.0 (2022-01-07)
4
+
5
+ * Regenerated from discovery document revision 20211230
6
+ * Unspecified changes
7
+
8
+ ### v0.15.0 (2021-12-04)
9
+
10
+ * Regenerated from discovery document revision 20211125
11
+
12
+ ### v0.14.0 (2021-10-20)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.13.0 (2021-08-27)
17
+
18
+ * Regenerated from discovery document revision 20210822
19
+
3
20
  ### v0.12.0 (2021-08-22)
4
21
 
5
22
  * Regenerated from discovery document revision 20210814
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/bigquerydatatransfer_v1"
51
51
  client = Google::Apis::BigquerydatatransferV1::BigQueryDataTransferService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Bigquerydatatransfer service in particular.)
67
67
 
@@ -59,8 +59,7 @@ module Google
59
59
  end
60
60
  end
61
61
 
62
- # Represents data source metadata. Metadata is sufficient to render UI and
63
- # request proper OAuth tokens.
62
+ # Defines the properties and custom parameters for a data source.
64
63
  class DataSource
65
64
  include Google::Apis::Core::Hashable
66
65
 
@@ -194,11 +193,7 @@ module Google
194
193
  end
195
194
  end
196
195
 
197
- # Represents a data source parameter with validation rules, so that parameters
198
- # can be rendered in the UI. These parameters are given to us by supported data
199
- # sources, and include all needed information for rendering and validation. Thus,
200
- # whoever uses this api can decide to generate either generic ui, or custom
201
- # data source specific forms.
196
+ # A parameter used to define custom fields in a data source definition.
202
197
  class DataSourceParameter
203
198
  include Google::Apis::Core::Hashable
204
199
 
@@ -351,6 +346,27 @@ module Google
351
346
  end
352
347
  end
353
348
 
349
+ # A request to enroll a set of data sources so they are visible in the BigQuery
350
+ # UI's `Transfer` tab.
351
+ class EnrollDataSourcesRequest
352
+ include Google::Apis::Core::Hashable
353
+
354
+ # Data sources that are enrolled. It is required to provide at least one data
355
+ # source id.
356
+ # Corresponds to the JSON property `dataSourceIds`
357
+ # @return [Array<String>]
358
+ attr_accessor :data_source_ids
359
+
360
+ def initialize(**args)
361
+ update!(**args)
362
+ end
363
+
364
+ # Update properties of this object
365
+ def update!(**args)
366
+ @data_source_ids = args[:data_source_ids] if args.key?(:data_source_ids)
367
+ end
368
+ end
369
+
354
370
  # Returns list of supported data sources and their metadata.
355
371
  class ListDataSourcesResponse
356
372
  include Google::Apis::Core::Hashable
@@ -824,8 +840,9 @@ module Google
824
840
  # 3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first
825
841
  # sunday of quarter 00:00`. See more explanation about the format here: https://
826
842
  # cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#
827
- # the_schedule_format NOTE: the granularity should be at least 8 hours, or less
828
- # frequent.
843
+ # the_schedule_format NOTE: The minimum interval time between recurring
844
+ # transfers depends on the data source; refer to the documentation for your data
845
+ # source.
829
846
  # Corresponds to the JSON property `schedule`
830
847
  # @return [String]
831
848
  attr_accessor :schedule
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigquerydatatransferV1
18
18
  # Version of the google-apis-bigquerydatatransfer_v1 gem
19
- GEM_VERSION = "0.12.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210814"
25
+ REVISION = "20211230"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class EnrollDataSourcesRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class ListDataSourcesResponse
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -234,6 +240,13 @@ module Google
234
240
  end
235
241
  end
236
242
 
243
+ class EnrollDataSourcesRequest
244
+ # @private
245
+ class Representation < Google::Apis::Core::JsonRepresentation
246
+ collection :data_source_ids, as: 'dataSourceIds'
247
+ end
248
+ end
249
+
237
250
  class ListDataSourcesResponse
238
251
  # @private
239
252
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -50,11 +50,46 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
+ # Enroll data sources in a user project. This allows users to create transfer
54
+ # configurations for these data sources. They will also appear in the
55
+ # ListDataSources RPC and as such, will appear in the BigQuery UI 'https://
56
+ # bigquery.cloud.google.com' (and the documents can be found at https://cloud.
57
+ # google.com/bigquery/bigquery-web-ui and https://cloud.google.com/bigquery/docs/
58
+ # working-with-transfers).
59
+ # @param [String] name
60
+ # The name of the project resource in the form: `projects/`project_id``
61
+ # @param [Google::Apis::BigquerydatatransferV1::EnrollDataSourcesRequest] enroll_data_sources_request_object
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def enroll_project_data_sources(name, enroll_data_sources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:post, 'v1/{+name}:enrollDataSources', options)
81
+ command.request_representation = Google::Apis::BigquerydatatransferV1::EnrollDataSourcesRequest::Representation
82
+ command.request_object = enroll_data_sources_request_object
83
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
84
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
85
+ command.params['name'] = name unless name.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
53
91
  # Returns true if valid credentials exist for the given data source and
54
- # requesting user. Some data sources doesn't support service account, so we need
55
- # to talk to them on behalf of the end user. This API just checks whether we
56
- # have OAuth token for the particular user, which is a pre-requisite before user
57
- # can create a transfer config.
92
+ # requesting user.
58
93
  # @param [String] name
59
94
  # Required. The data source in the form: `projects/`project_id`/dataSources/`
60
95
  # data_source_id`` or `projects/`project_id`/locations/`location_id`/dataSources/
@@ -89,8 +124,7 @@ module Google
89
124
  execute_or_queue_command(command, &block)
90
125
  end
91
126
 
92
- # Retrieves a supported data source and returns its settings, which can be used
93
- # for UI rendering.
127
+ # Retrieves a supported data source and returns its settings.
94
128
  # @param [String] name
95
129
  # Required. The field will contain name of the resource requested, for example: `
96
130
  # projects/`project_id`/dataSources/`data_source_id`` or `projects/`project_id`/
@@ -122,8 +156,7 @@ module Google
122
156
  execute_or_queue_command(command, &block)
123
157
  end
124
158
 
125
- # Lists supported data sources and returns their settings, which can be used for
126
- # UI rendering.
159
+ # Lists supported data sources and returns their settings.
127
160
  # @param [String] parent
128
161
  # Required. The BigQuery project id for which data sources should be returned.
129
162
  # Must be in the form: `projects/`project_id`` or `projects/`project_id`/
@@ -164,6 +197,44 @@ module Google
164
197
  execute_or_queue_command(command, &block)
165
198
  end
166
199
 
200
+ # Enroll data sources in a user project. This allows users to create transfer
201
+ # configurations for these data sources. They will also appear in the
202
+ # ListDataSources RPC and as such, will appear in the BigQuery UI 'https://
203
+ # bigquery.cloud.google.com' (and the documents can be found at https://cloud.
204
+ # google.com/bigquery/bigquery-web-ui and https://cloud.google.com/bigquery/docs/
205
+ # working-with-transfers).
206
+ # @param [String] name
207
+ # The name of the project resource in the form: `projects/`project_id``
208
+ # @param [Google::Apis::BigquerydatatransferV1::EnrollDataSourcesRequest] enroll_data_sources_request_object
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def enroll_location_data_sources(name, enroll_data_sources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
227
+ command = make_simple_command(:post, 'v1/{+name}:enrollDataSources', options)
228
+ command.request_representation = Google::Apis::BigquerydatatransferV1::EnrollDataSourcesRequest::Representation
229
+ command.request_object = enroll_data_sources_request_object
230
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
231
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
232
+ command.params['name'] = name unless name.nil?
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
237
+
167
238
  # Gets information about a location.
168
239
  # @param [String] name
169
240
  # Resource name for the location.
@@ -238,10 +309,7 @@ module Google
238
309
  end
239
310
 
240
311
  # Returns true if valid credentials exist for the given data source and
241
- # requesting user. Some data sources doesn't support service account, so we need
242
- # to talk to them on behalf of the end user. This API just checks whether we
243
- # have OAuth token for the particular user, which is a pre-requisite before user
244
- # can create a transfer config.
312
+ # requesting user.
245
313
  # @param [String] name
246
314
  # Required. The data source in the form: `projects/`project_id`/dataSources/`
247
315
  # data_source_id`` or `projects/`project_id`/locations/`location_id`/dataSources/
@@ -276,8 +344,7 @@ module Google
276
344
  execute_or_queue_command(command, &block)
277
345
  end
278
346
 
279
- # Retrieves a supported data source and returns its settings, which can be used
280
- # for UI rendering.
347
+ # Retrieves a supported data source and returns its settings.
281
348
  # @param [String] name
282
349
  # Required. The field will contain name of the resource requested, for example: `
283
350
  # projects/`project_id`/dataSources/`data_source_id`` or `projects/`project_id`/
@@ -309,8 +376,7 @@ module Google
309
376
  execute_or_queue_command(command, &block)
310
377
  end
311
378
 
312
- # Lists supported data sources and returns their settings, which can be used for
313
- # UI rendering.
379
+ # Lists supported data sources and returns their settings.
314
380
  # @param [String] parent
315
381
  # Required. The BigQuery project id for which data sources should be returned.
316
382
  # Must be in the form: `projects/`project_id`` or `projects/`project_id`/
@@ -729,7 +795,7 @@ module Google
729
795
  execute_or_queue_command(command, &block)
730
796
  end
731
797
 
732
- # Returns information about running and completed jobs.
798
+ # Returns information about running and completed transfer runs.
733
799
  # @param [String] parent
734
800
  # Required. Name of transfer configuration for which transfer runs should be
735
801
  # retrieved. Format of transfer configuration resource name is: `projects/`
@@ -777,7 +843,7 @@ module Google
777
843
  execute_or_queue_command(command, &block)
778
844
  end
779
845
 
780
- # Returns user facing log messages for the data transfer run.
846
+ # Returns log messages for the transfer run.
781
847
  # @param [String] parent
782
848
  # Required. Transfer run name in the form: `projects/`project_id`/
783
849
  # transferConfigs/`config_id`/runs/`run_id`` or `projects/`project_id`/locations/
@@ -1200,7 +1266,7 @@ module Google
1200
1266
  execute_or_queue_command(command, &block)
1201
1267
  end
1202
1268
 
1203
- # Returns information about running and completed jobs.
1269
+ # Returns information about running and completed transfer runs.
1204
1270
  # @param [String] parent
1205
1271
  # Required. Name of transfer configuration for which transfer runs should be
1206
1272
  # retrieved. Format of transfer configuration resource name is: `projects/`
@@ -1248,7 +1314,7 @@ module Google
1248
1314
  execute_or_queue_command(command, &block)
1249
1315
  end
1250
1316
 
1251
- # Returns user facing log messages for the data transfer run.
1317
+ # Returns log messages for the transfer run.
1252
1318
  # @param [String] parent
1253
1319
  # Required. Transfer run name in the form: `projects/`project_id`/
1254
1320
  # transferConfigs/`config_id`/runs/`run_id`` or `projects/`project_id`/locations/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquerydatatransfer_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-23 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquerydatatransfer_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquerydatatransfer_v1/v0.12.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquerydatatransfer_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquerydatatransfer_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquerydatatransfer_v1/v0.16.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquerydatatransfer_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for BigQuery Data Transfer API V1