google-cloud-bigquery-data_transfer-v1 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1/bindings_override.rb +104 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/client.rb +39 -44
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/client.rb +1582 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/service_stub.rb +1052 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest.rb +55 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service.rb +6 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/rest.rb +40 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1.rb +5 -0
- data/proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb +23 -20
- data/proto_docs/google/cloud/bigquery/datatransfer/v1/transfer.rb +7 -6
- metadata +16 -10
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/bigquery/data_transfer/v1/version"
|
24
|
+
require "google/cloud/bigquery/data_transfer/v1/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/credentials"
|
27
|
+
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/paths"
|
28
|
+
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Bigquery
|
33
|
+
module DataTransfer
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# This API allows users to manage their data transfers into BigQuery.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest"
|
41
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
|
42
|
+
#
|
43
|
+
module DataTransferService
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
55
|
+
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/bigquery/data_transfer/v1/version"
|
|
25
25
|
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/credentials"
|
26
26
|
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/paths"
|
27
27
|
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/client"
|
28
|
+
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -39,6 +40,11 @@ module Google
|
|
39
40
|
# require "google/cloud/bigquery/data_transfer/v1/data_transfer_service"
|
40
41
|
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest"
|
46
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module DataTransferService
|
43
49
|
end
|
44
50
|
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest"
|
20
|
+
require "google/cloud/bigquery/data_transfer/v1/bindings_override"
|
21
|
+
require "google/cloud/bigquery/data_transfer/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module Bigquery
|
26
|
+
module DataTransfer
|
27
|
+
##
|
28
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
29
|
+
#
|
30
|
+
# @example
|
31
|
+
#
|
32
|
+
# require "google/cloud/bigquery/data_transfer/v1/rest"
|
33
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
|
34
|
+
#
|
35
|
+
module V1
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -31,6 +31,11 @@ module Google
|
|
31
31
|
# require "google/cloud/bigquery/data_transfer/v1"
|
32
32
|
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
33
33
|
#
|
34
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/bigquery/data_transfer/v1"
|
37
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
|
38
|
+
#
|
34
39
|
module V1
|
35
40
|
end
|
36
41
|
end
|
@@ -213,8 +213,8 @@ module Google
|
|
213
213
|
# A request to get data source info.
|
214
214
|
# @!attribute [rw] name
|
215
215
|
# @return [::String]
|
216
|
-
# Required. The field will contain name of the resource requested, for
|
217
|
-
# `projects/{project_id}/dataSources/{data_source_id}` or
|
216
|
+
# Required. The field will contain name of the resource requested, for
|
217
|
+
# example: `projects/{project_id}/dataSources/{data_source_id}` or
|
218
218
|
# `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
|
219
219
|
class GetDataSourceRequest
|
220
220
|
include ::Google::Protobuf::MessageExts
|
@@ -224,8 +224,8 @@ module Google
|
|
224
224
|
# Request to list supported data sources and their data transfer settings.
|
225
225
|
# @!attribute [rw] parent
|
226
226
|
# @return [::String]
|
227
|
-
# Required. The BigQuery project id for which data sources should be
|
228
|
-
# Must be in the form: `projects/{project_id}` or
|
227
|
+
# Required. The BigQuery project id for which data sources should be
|
228
|
+
# returned. Must be in the form: `projects/{project_id}` or
|
229
229
|
# `projects/{project_id}/locations/{location_id}`
|
230
230
|
# @!attribute [rw] page_token
|
231
231
|
# @return [::String]
|
@@ -265,10 +265,11 @@ module Google
|
|
265
265
|
# user.
|
266
266
|
# @!attribute [rw] parent
|
267
267
|
# @return [::String]
|
268
|
-
# Required. The BigQuery project id where the transfer configuration should
|
269
|
-
# Must be in the format
|
270
|
-
# projects/\\{project_id}. If
|
271
|
-
#
|
268
|
+
# Required. The BigQuery project id where the transfer configuration should
|
269
|
+
# be created. Must be in the format
|
270
|
+
# projects/\\{project_id}/locations/\\{location_id} or projects/\\{project_id}. If
|
271
|
+
# specified location and location of the destination bigquery dataset do not
|
272
|
+
# match - the request will fail.
|
272
273
|
# @!attribute [rw] transfer_config
|
273
274
|
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
274
275
|
# Required. Data transfer configuration to create.
|
@@ -306,7 +307,7 @@ module Google
|
|
306
307
|
# create the transfer config.
|
307
308
|
# @!attribute [rw] service_account_name
|
308
309
|
# @return [::String]
|
309
|
-
# Optional service account
|
310
|
+
# Optional service account email. If this field is set, the transfer config
|
310
311
|
# will be created with this service account's credentials. It requires that
|
311
312
|
# the requesting user calling this API has permissions to act as this service
|
312
313
|
# account.
|
@@ -362,7 +363,7 @@ module Google
|
|
362
363
|
# update the transfer config.
|
363
364
|
# @!attribute [rw] service_account_name
|
364
365
|
# @return [::String]
|
365
|
-
# Optional service account
|
366
|
+
# Optional service account email. If this field is set, the transfer config
|
366
367
|
# will be created with this service account's credentials. It requires that
|
367
368
|
# the requesting user calling this API has permissions to act as this service
|
368
369
|
# account.
|
@@ -379,8 +380,8 @@ module Google
|
|
379
380
|
# A request to get data transfer information.
|
380
381
|
# @!attribute [rw] name
|
381
382
|
# @return [::String]
|
382
|
-
# Required. The field will contain name of the resource requested, for
|
383
|
-
# `projects/{project_id}/transferConfigs/{config_id}` or
|
383
|
+
# Required. The field will contain name of the resource requested, for
|
384
|
+
# example: `projects/{project_id}/transferConfigs/{config_id}` or
|
384
385
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
|
385
386
|
class GetTransferConfigRequest
|
386
387
|
include ::Google::Protobuf::MessageExts
|
@@ -391,8 +392,8 @@ module Google
|
|
391
392
|
# and log messages will be deleted as well.
|
392
393
|
# @!attribute [rw] name
|
393
394
|
# @return [::String]
|
394
|
-
# Required. The field will contain name of the resource requested, for
|
395
|
-
# `projects/{project_id}/transferConfigs/{config_id}` or
|
395
|
+
# Required. The field will contain name of the resource requested, for
|
396
|
+
# example: `projects/{project_id}/transferConfigs/{config_id}` or
|
396
397
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
|
397
398
|
class DeleteTransferConfigRequest
|
398
399
|
include ::Google::Protobuf::MessageExts
|
@@ -402,8 +403,9 @@ module Google
|
|
402
403
|
# A request to get data transfer run information.
|
403
404
|
# @!attribute [rw] name
|
404
405
|
# @return [::String]
|
405
|
-
# Required. The field will contain name of the resource requested, for
|
406
|
-
# `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
|
406
|
+
# Required. The field will contain name of the resource requested, for
|
407
|
+
# example: `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
|
408
|
+
# or
|
407
409
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
|
408
410
|
class GetTransferRunRequest
|
409
411
|
include ::Google::Protobuf::MessageExts
|
@@ -413,8 +415,9 @@ module Google
|
|
413
415
|
# A request to delete data transfer run information.
|
414
416
|
# @!attribute [rw] name
|
415
417
|
# @return [::String]
|
416
|
-
# Required. The field will contain name of the resource requested, for
|
417
|
-
# `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
|
418
|
+
# Required. The field will contain name of the resource requested, for
|
419
|
+
# example: `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
|
420
|
+
# or
|
418
421
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
|
419
422
|
class DeleteTransferRunRequest
|
420
423
|
include ::Google::Protobuf::MessageExts
|
@@ -463,8 +466,8 @@ module Google
|
|
463
466
|
# A request to list data transfer runs.
|
464
467
|
# @!attribute [rw] parent
|
465
468
|
# @return [::String]
|
466
|
-
# Required. Name of transfer configuration for which transfer runs should be
|
467
|
-
# Format of transfer configuration resource name is:
|
469
|
+
# Required. Name of transfer configuration for which transfer runs should be
|
470
|
+
# retrieved. Format of transfer configuration resource name is:
|
468
471
|
# `projects/{project_id}/transferConfigs/{config_id}` or
|
469
472
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
|
470
473
|
# @!attribute [rw] states
|
@@ -156,9 +156,9 @@ module Google
|
|
156
156
|
# to the email address of the user who owns this transfer config.
|
157
157
|
# @!attribute [r] owner_info
|
158
158
|
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::UserInfo]
|
159
|
-
# Output only. Information about the user whose credentials are used to
|
160
|
-
# Populated only for `transferConfigs.get` requests. In case
|
161
|
-
# information is not available, this field will not be populated.
|
159
|
+
# Output only. Information about the user whose credentials are used to
|
160
|
+
# transfer data. Populated only for `transferConfigs.get` requests. In case
|
161
|
+
# the user information is not available, this field will not be populated.
|
162
162
|
class TransferConfig
|
163
163
|
include ::Google::Protobuf::MessageExts
|
164
164
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -194,9 +194,10 @@ module Google
|
|
194
194
|
# Output only. Last time the data transfer run state was updated.
|
195
195
|
# @!attribute [r] params
|
196
196
|
# @return [::Google::Protobuf::Struct]
|
197
|
-
# Output only. Parameters specific to each data source. For more information
|
198
|
-
# bq tab in the 'Setting up a data transfer' section for each data
|
199
|
-
# For example the parameters for Cloud Storage transfers are listed
|
197
|
+
# Output only. Parameters specific to each data source. For more information
|
198
|
+
# see the bq tab in the 'Setting up a data transfer' section for each data
|
199
|
+
# source. For example the parameters for Cloud Storage transfers are listed
|
200
|
+
# here:
|
200
201
|
# https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
|
201
202
|
# @!attribute [r] destination_dataset_id
|
202
203
|
# @return [::String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-data_transfer-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2023-
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.18.0
|
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.
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.4'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.4'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.26.
|
73
|
+
version: 1.26.3
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 1.26.
|
80
|
+
version: 1.26.3
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: minitest
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,10 +192,15 @@ files:
|
|
192
192
|
- README.md
|
193
193
|
- lib/google-cloud-bigquery-data_transfer-v1.rb
|
194
194
|
- lib/google/cloud/bigquery/data_transfer/v1.rb
|
195
|
+
- lib/google/cloud/bigquery/data_transfer/v1/bindings_override.rb
|
195
196
|
- lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service.rb
|
196
197
|
- lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/client.rb
|
197
198
|
- lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/credentials.rb
|
198
199
|
- lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/paths.rb
|
200
|
+
- lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest.rb
|
201
|
+
- lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/client.rb
|
202
|
+
- lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/service_stub.rb
|
203
|
+
- lib/google/cloud/bigquery/data_transfer/v1/rest.rb
|
199
204
|
- lib/google/cloud/bigquery/data_transfer/v1/version.rb
|
200
205
|
- lib/google/cloud/bigquery/datatransfer/v1/datatransfer_pb.rb
|
201
206
|
- lib/google/cloud/bigquery/datatransfer/v1/datatransfer_services_pb.rb
|
@@ -234,8 +239,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
239
|
- !ruby/object:Gem::Version
|
235
240
|
version: '0'
|
236
241
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
242
|
+
rubygems_version: 3.4.2
|
238
243
|
signing_key:
|
239
244
|
specification_version: 4
|
240
|
-
summary:
|
245
|
+
summary: Schedule queries or transfer external data from SaaS applications to Google
|
246
|
+
BigQuery on a regular basis.
|
241
247
|
test_files: []
|