google-apis-bigquerydatatransfer_v1 0.12.0 → 0.13.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 +4 -0
- data/lib/google/apis/bigquerydatatransfer_v1/classes.rb +21 -0
- data/lib/google/apis/bigquerydatatransfer_v1/gem_version.rb +2 -2
- data/lib/google/apis/bigquerydatatransfer_v1/representations.rb +13 -0
- data/lib/google/apis/bigquerydatatransfer_v1/service.rb +76 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f71c407d6502972f3baec63b8685f6dff7a7f31b35b1374b594912b3a214d658
|
4
|
+
data.tar.gz: 737f62327ba18fa862a2e73911b7f102bb51ad78e6fe142547c3eb665058c02d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01ab604c899b9e81c83653f67f856dce4fba1b6827ab84290a5586808aa3b39bcbe3c468f78885ba02107ab734052f547d2ee97135abed0ee5eca8813da9613c
|
7
|
+
data.tar.gz: 1a2b1a25b7637e2ec8e67cd2f6c229d8207b46788d497d64470a71054ff8bf98d8f0f998c09a2d50a48b71e56557b7460cce199293ac9a06839b0759612d6ae2
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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.13.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 = "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
|
|
@@ -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,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.
|
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.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-08-
|
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
|
@@ -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.
|
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: []
|