google-apis-bigquerydatatransfer_v1 0.11.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/bigquerydatatransfer_v1/classes.rb +53 -4
- data/lib/google/apis/bigquerydatatransfer_v1/gem_version.rb +2 -2
- data/lib/google/apis/bigquerydatatransfer_v1/representations.rb +28 -0
- data/lib/google/apis/bigquerydatatransfer_v1/service.rb +76 -0
- data/lib/google/apis/bigquerydatatransfer_v1.rb +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33ad4f0882e98d07b3a8cf0dc9d9b9a73e00966a32bbd51bc32e913e405e32e8
|
4
|
+
data.tar.gz: aa9ed2bbc924b3658a87998f35fbeeaa65690713c12e692aefe88a91e459bfe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3da5c517665a7e924b72de34f4419779e0809250175892aaac838f5f5edee6c1e52ca3ff9aa7fefacb66aaf4ac4d55d7b594dfea11b834d54edd6ff380ef3109
|
7
|
+
data.tar.gz: df5557480ffa5ffab80122308486e201d7298f5204b6674e459bf4687f31d02d1dc81587549ef9218c9deb0b373b949d0d6aa9ace9224a1bf73bd3ebb1631e42
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-bigquerydatatransfer_v1
|
2
2
|
|
3
|
+
### v0.15.0 (2021-12-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211125
|
6
|
+
|
7
|
+
### v0.14.0 (2021-10-20)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.13.0 (2021-08-27)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210822
|
14
|
+
|
15
|
+
### v0.12.0 (2021-08-22)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210814
|
18
|
+
|
3
19
|
### v0.11.0 (2021-07-22)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210717
|
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/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
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.
|
@@ -818,8 +845,9 @@ module Google
|
|
818
845
|
# 3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first
|
819
846
|
# sunday of quarter 00:00`. See more explanation about the format here: https://
|
820
847
|
# cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#
|
821
|
-
# the_schedule_format NOTE:
|
822
|
-
#
|
848
|
+
# the_schedule_format NOTE: The minimum interval time between recurring
|
849
|
+
# transfers depends on the data source; refer to the documentation for your data
|
850
|
+
# source.
|
823
851
|
# Corresponds to the JSON property `schedule`
|
824
852
|
# @return [String]
|
825
853
|
attr_accessor :schedule
|
@@ -860,6 +888,7 @@ module Google
|
|
860
888
|
@name = args[:name] if args.key?(:name)
|
861
889
|
@next_run_time = args[:next_run_time] if args.key?(:next_run_time)
|
862
890
|
@notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
|
891
|
+
@owner_info = args[:owner_info] if args.key?(:owner_info)
|
863
892
|
@params = args[:params] if args.key?(:params)
|
864
893
|
@schedule = args[:schedule] if args.key?(:schedule)
|
865
894
|
@schedule_options = args[:schedule_options] if args.key?(:schedule_options)
|
@@ -943,7 +972,8 @@ module Google
|
|
943
972
|
attr_accessor :name
|
944
973
|
|
945
974
|
# Output only. Pub/Sub topic where a notification will be sent after this
|
946
|
-
# transfer run finishes
|
975
|
+
# transfer run finishes. The format for specifying a pubsub topic is: `projects/`
|
976
|
+
# project`/topics/`topic``
|
947
977
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
948
978
|
# @return [String]
|
949
979
|
attr_accessor :notification_pubsub_topic
|
@@ -1019,6 +1049,25 @@ module Google
|
|
1019
1049
|
@user_id = args[:user_id] if args.key?(:user_id)
|
1020
1050
|
end
|
1021
1051
|
end
|
1052
|
+
|
1053
|
+
# Information about a user.
|
1054
|
+
class UserInfo
|
1055
|
+
include Google::Apis::Core::Hashable
|
1056
|
+
|
1057
|
+
# E-mail address of the user.
|
1058
|
+
# Corresponds to the JSON property `email`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :email
|
1061
|
+
|
1062
|
+
def initialize(**args)
|
1063
|
+
update!(**args)
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
# Update properties of this object
|
1067
|
+
def update!(**args)
|
1068
|
+
@email = args[:email] if args.key?(:email)
|
1069
|
+
end
|
1070
|
+
end
|
1022
1071
|
end
|
1023
1072
|
end
|
1024
1073
|
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.
|
19
|
+
GEM_VERSION = "0.15.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 = "
|
25
|
+
REVISION = "20211125"
|
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.
|
@@ -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
|
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
|
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.
|
4
|
+
version: 0.15.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-
|
11
|
+
date: 2021-12-06 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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigquerydatatransfer_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.15.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:
|