google-apis-bigquerydatatransfer_v1 0.9.0 → 0.13.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: 74aeb85c7542463c16d610efa8326ee1e650454a83863c5f927c6692fb5e5be0
4
- data.tar.gz: e1eaa6439f0e27299670f4e7747618b68b52450e66b016cf3ffcb8751425f9c4
3
+ metadata.gz: f71c407d6502972f3baec63b8685f6dff7a7f31b35b1374b594912b3a214d658
4
+ data.tar.gz: 737f62327ba18fa862a2e73911b7f102bb51ad78e6fe142547c3eb665058c02d
5
5
  SHA512:
6
- metadata.gz: b7a2a5d1c51dfe5fe9aa0648702adceb57a7522282fa843f651dea84182d4637faa8adefb607de66a52a4ae618dfb3b212f70eeac9670526cf337f00fd8f7248
7
- data.tar.gz: 011ca9a18245cd17506f1b69402863a532e4dc109333304969219a3ad2228fc1b01cb36a5c0f0a85eca474e16871ff10cbc947b91be76f39cb7998fcad1ffa82
6
+ metadata.gz: 01ab604c899b9e81c83653f67f856dce4fba1b6827ab84290a5586808aa3b39bcbe3c468f78885ba02107ab734052f547d2ee97135abed0ee5eca8813da9613c
7
+ data.tar.gz: 1a2b1a25b7637e2ec8e67cd2f6c229d8207b46788d497d64470a71054ff8bf98d8f0f998c09a2d50a48b71e56557b7460cce199293ac9a06839b0759612d6ae2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-bigquerydatatransfer_v1
2
2
 
3
+ ### v0.13.0 (2021-08-27)
4
+
5
+ * Regenerated from discovery document revision 20210822
6
+
7
+ ### v0.12.0 (2021-08-22)
8
+
9
+ * Regenerated from discovery document revision 20210814
10
+
11
+ ### v0.11.0 (2021-07-22)
12
+
13
+ * Regenerated from discovery document revision 20210717
14
+
15
+ ### v0.10.0 (2021-06-29)
16
+
17
+ * Regenerated using generator version 0.4.0
18
+
3
19
  ### v0.9.0 (2021-06-24)
4
20
 
5
21
  * Regenerated using generator version 0.3.0
@@ -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.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
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.9.0
4
+ version: 0.13.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-06-28 00:00:00.000000000 Z
11
+ date: 2021-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquerydatatransfer_v1/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquerydatatransfer_v1
63
63
  post_install_message:
64
64
  rdoc_options: []