google-apis-bigquerydatatransfer_v1 0.10.0 → 0.14.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: 9122cfefb8d4c2d0dd97c8cffa9d82c9973cb72781086b5668e557c4fc8e44e8
4
- data.tar.gz: 7b2e943be7a95af45c0a42195471ce94240db0dd0d27b258f699477446c4fb79
3
+ metadata.gz: ec38191126baecd824d4cd399240762e6599fad8a10e0251342d6ab3e5bfd09f
4
+ data.tar.gz: 7a38a8e0fef8d5dbab8044e13a9a7e0a7aa1247d6ec0afb69ed5ee399b9a6205
5
5
  SHA512:
6
- metadata.gz: ee49e0b0a38e426422ef28cd2148f7431def9b4e58ea728a3428b246ad518f545750ef8c9acf1752e6504cb3091c06f6708a97ac0418ea8d57e0f908e5898c57
7
- data.tar.gz: 8cc50448429a6d13ce0aaaccf42060a02fc5fc6228657fc8fcb7a5ce371a66c6e25b8161c8f4186cd61f5d005bc0afcec2c4598c925a46256e50f22e915706be
6
+ metadata.gz: 38e74a508972010789416e984b1585198780670cbf6cab46c9a1d2d1d8b7a6a82a62179f54946528ef523b8383c63ac84f7f962668a183f4c0376e4e053b8789
7
+ data.tar.gz: 0ad1a7da0b45d08973f680538382831d38648644c482561591f05e345f91a582076eb14c016a1a93b73b9e49598aae3439aca567218ed1b3c67b5a5ba7cac81c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-bigquerydatatransfer_v1
2
2
 
3
+ ### v0.14.0 (2021-10-20)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.13.0 (2021-08-27)
8
+
9
+ * Regenerated from discovery document revision 20210822
10
+
11
+ ### v0.12.0 (2021-08-22)
12
+
13
+ * Regenerated from discovery document revision 20210814
14
+
15
+ ### v0.11.0 (2021-07-22)
16
+
17
+ * Regenerated from discovery document revision 20210717
18
+
3
19
  ### v0.10.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
data/OVERVIEW.md CHANGED
@@ -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
 
@@ -351,6 +351,27 @@ module Google
351
351
  end
352
352
  end
353
353
 
354
+ # A request to enroll a set of data sources so they are visible in the BigQuery
355
+ # UI's `Transfer` tab.
356
+ class EnrollDataSourcesRequest
357
+ include Google::Apis::Core::Hashable
358
+
359
+ # Data sources that are enrolled. It is required to provide at least one data
360
+ # source id.
361
+ # Corresponds to the JSON property `dataSourceIds`
362
+ # @return [Array<String>]
363
+ attr_accessor :data_source_ids
364
+
365
+ def initialize(**args)
366
+ update!(**args)
367
+ end
368
+
369
+ # Update properties of this object
370
+ def update!(**args)
371
+ @data_source_ids = args[:data_source_ids] if args.key?(:data_source_ids)
372
+ end
373
+ end
374
+
354
375
  # Returns list of supported data sources and their metadata.
355
376
  class ListDataSourcesResponse
356
377
  include Google::Apis::Core::Hashable
@@ -799,11 +820,17 @@ module Google
799
820
  attr_accessor :next_run_time
800
821
 
801
822
  # Pub/Sub topic where notifications will be sent after transfer runs associated
802
- # with this transfer config finish.
823
+ # with this transfer config finish. The format for specifying a pubsub topic is:
824
+ # `projects/`project`/topics/`topic``
803
825
  # Corresponds to the JSON property `notificationPubsubTopic`
804
826
  # @return [String]
805
827
  attr_accessor :notification_pubsub_topic
806
828
 
829
+ # Information about a user.
830
+ # Corresponds to the JSON property `ownerInfo`
831
+ # @return [Google::Apis::BigquerydatatransferV1::UserInfo]
832
+ attr_accessor :owner_info
833
+
807
834
  # Parameters specific to each data source. For more information see the bq tab
808
835
  # in the 'Setting up a data transfer' section for each data source. For example
809
836
  # the parameters for Cloud Storage transfers are listed here: https://cloud.
@@ -860,6 +887,7 @@ module Google
860
887
  @name = args[:name] if args.key?(:name)
861
888
  @next_run_time = args[:next_run_time] if args.key?(:next_run_time)
862
889
  @notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
890
+ @owner_info = args[:owner_info] if args.key?(:owner_info)
863
891
  @params = args[:params] if args.key?(:params)
864
892
  @schedule = args[:schedule] if args.key?(:schedule)
865
893
  @schedule_options = args[:schedule_options] if args.key?(:schedule_options)
@@ -943,7 +971,8 @@ module Google
943
971
  attr_accessor :name
944
972
 
945
973
  # Output only. Pub/Sub topic where a notification will be sent after this
946
- # transfer run finishes
974
+ # transfer run finishes. The format for specifying a pubsub topic is: `projects/`
975
+ # project`/topics/`topic``
947
976
  # Corresponds to the JSON property `notificationPubsubTopic`
948
977
  # @return [String]
949
978
  attr_accessor :notification_pubsub_topic
@@ -1019,6 +1048,25 @@ module Google
1019
1048
  @user_id = args[:user_id] if args.key?(:user_id)
1020
1049
  end
1021
1050
  end
1051
+
1052
+ # Information about a user.
1053
+ class UserInfo
1054
+ include Google::Apis::Core::Hashable
1055
+
1056
+ # E-mail address of the user.
1057
+ # Corresponds to the JSON property `email`
1058
+ # @return [String]
1059
+ attr_accessor :email
1060
+
1061
+ def initialize(**args)
1062
+ update!(**args)
1063
+ end
1064
+
1065
+ # Update properties of this object
1066
+ def update!(**args)
1067
+ @email = args[:email] if args.key?(:email)
1068
+ end
1069
+ end
1022
1070
  end
1023
1071
  end
1024
1072
  end
@@ -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.10.0"
19
+ GEM_VERSION = "0.14.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 = "20210418"
25
+ REVISION = "20210822"
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
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class UserInfo
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class CheckValidCredsRequest
158
170
  # @private
159
171
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -228,6 +240,13 @@ module Google
228
240
  end
229
241
  end
230
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
+
231
250
  class ListDataSourcesResponse
232
251
  # @private
233
252
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -357,6 +376,8 @@ module Google
357
376
  property :name, as: 'name'
358
377
  property :next_run_time, as: 'nextRunTime'
359
378
  property :notification_pubsub_topic, as: 'notificationPubsubTopic'
379
+ property :owner_info, as: 'ownerInfo', class: Google::Apis::BigquerydatatransferV1::UserInfo, decorator: Google::Apis::BigquerydatatransferV1::UserInfo::Representation
380
+
360
381
  hash :params, as: 'params'
361
382
  property :schedule, as: 'schedule'
362
383
  property :schedule_options, as: 'scheduleOptions', class: Google::Apis::BigquerydatatransferV1::ScheduleOptions, decorator: Google::Apis::BigquerydatatransferV1::ScheduleOptions::Representation
@@ -398,6 +419,13 @@ module Google
398
419
  property :user_id, :numeric_string => true, as: 'userId'
399
420
  end
400
421
  end
422
+
423
+ class UserInfo
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :email, as: 'email'
427
+ end
428
+ end
401
429
  end
402
430
  end
403
431
  end
@@ -50,6 +50,44 @@ 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
92
  # requesting user. Some data sources doesn't support service account, so we need
55
93
  # to talk to them on behalf of the end user. This API just checks whether we
@@ -164,6 +202,44 @@ module Google
164
202
  execute_or_queue_command(command, &block)
165
203
  end
166
204
 
205
+ # Enroll data sources in a user project. This allows users to create transfer
206
+ # configurations for these data sources. They will also appear in the
207
+ # ListDataSources RPC and as such, will appear in the BigQuery UI 'https://
208
+ # bigquery.cloud.google.com' (and the documents can be found at https://cloud.
209
+ # google.com/bigquery/bigquery-web-ui and https://cloud.google.com/bigquery/docs/
210
+ # working-with-transfers).
211
+ # @param [String] name
212
+ # The name of the project resource in the form: `projects/`project_id``
213
+ # @param [Google::Apis::BigquerydatatransferV1::EnrollDataSourcesRequest] enroll_data_sources_request_object
214
+ # @param [String] fields
215
+ # Selector specifying which fields to include in a partial response.
216
+ # @param [String] quota_user
217
+ # Available to use for quota purposes for server-side applications. Can be any
218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
219
+ # @param [Google::Apis::RequestOptions] options
220
+ # Request-specific options
221
+ #
222
+ # @yield [result, err] Result & error if block supplied
223
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
224
+ # @yieldparam err [StandardError] error object if request failed
225
+ #
226
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
227
+ #
228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
231
+ def enroll_location_data_sources(name, enroll_data_sources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
232
+ command = make_simple_command(:post, 'v1/{+name}:enrollDataSources', options)
233
+ command.request_representation = Google::Apis::BigquerydatatransferV1::EnrollDataSourcesRequest::Representation
234
+ command.request_object = enroll_data_sources_request_object
235
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
236
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
237
+ command.params['name'] = name unless name.nil?
238
+ command.query['fields'] = fields unless fields.nil?
239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
240
+ execute_or_queue_command(command, &block)
241
+ end
242
+
167
243
  # Gets information about a location.
168
244
  # @param [String] name
169
245
  # Resource name for the location.
@@ -478,7 +554,8 @@ module Google
478
554
  execute_or_queue_command(command, &block)
479
555
  end
480
556
 
481
- # Returns information about all data transfers in the project.
557
+ # Returns information about all transfer configs owned by a project in the
558
+ # specified location.
482
559
  # @param [String] parent
483
560
  # Required. The BigQuery project id for which data sources should be returned: `
484
561
  # projects/`project_id`` or `projects/`project_id`/locations/`location_id``
@@ -948,7 +1025,8 @@ module Google
948
1025
  execute_or_queue_command(command, &block)
949
1026
  end
950
1027
 
951
- # Returns information about all data transfers in the project.
1028
+ # Returns information about all transfer configs owned by a project in the
1029
+ # specified location.
952
1030
  # @param [String] parent
953
1031
  # Required. The BigQuery project id for which data sources should be returned: `
954
1032
  # projects/`project_id`` or `projects/`project_id`/locations/`location_id``
@@ -30,13 +30,13 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data in Google BigQuery
33
+ # View and manage your data in Google BigQuery and see the email address for your Google Account
34
34
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
35
35
 
36
- # See, edit, configure, and delete your Google Cloud Platform data
36
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
37
37
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
38
38
 
39
- # View your data across Google Cloud Platform services
39
+ # View your data across Google Cloud services and see the email address of your Google Account
40
40
  AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
41
41
  end
42
42
  end
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.10.0
4
+ version: 0.14.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-10-27 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.10.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.14.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: