google-cloud-bigquery-data_transfer-v1 0.1.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +6 -6
- data/README.md +7 -3
- data/lib/google/cloud/bigquery/data_transfer/v1.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/client.rb +297 -292
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/credentials.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/paths.rb +20 -20
- data/lib/google/cloud/bigquery/data_transfer/v1/version.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb +133 -133
- data/proto_docs/google/cloud/bigquery/datatransfer/v1/transfer.rb +48 -48
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/protobuf/wrappers.rb +27 -27
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +34 -7
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a75f376cb1298e97b7437f723e3fbbac53194660b4c41befcca3bb131bdae1d8
|
4
|
+
data.tar.gz: 06d210d76a07ab6374a94fdacd161766883fd5a17061e067db11308c970e14be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08ba108726ed0c7e2ad19ac4199d14e99e4ef00fcc8f32d0cb48664546f3a94ba2aff8b36f03c0a2c19205c6bd732bc6cef3db90cf3da40c92de4247d615b873'
|
7
|
+
data.tar.gz: '081f8f85f29c640b937e4a49ea385f3e308bd06ec9300433a9d7a1294eb6f44bd24b82ef42f58ea92dca4cf3b6a0e7f4a40f0f5cb22c279f1775c52c76ce1990'
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export DATA_TRANSFER_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/bigquery/data_transfer/v1"
|
29
29
|
|
30
|
-
client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
30
|
+
client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-bigquery-data_transfer-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Credentials}):
|
67
|
+
{::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Credentials}):
|
68
68
|
|
69
69
|
1. `DATA_TRANSFER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `DATA_TRANSFER_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/bigquery/data_transfer/v1"
|
|
77
77
|
|
78
78
|
ENV["DATA_TRANSFER_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
80
|
+
client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/bigquery/data_transfer/v1"
|
90
90
|
|
91
|
-
client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/bigquery/data_transfer/v1"
|
100
100
|
|
101
|
-
Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
|
101
|
+
::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
105
|
+
client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Ruby Client for the BigQuery Data Transfer V1 API
|
1
|
+
# Ruby Client for the BigQuery Data Transfer Service V1 API
|
2
2
|
|
3
|
-
API Client library for the BigQuery Data Transfer V1 API
|
3
|
+
API Client library for the BigQuery Data Transfer Service V1 API
|
4
4
|
|
5
5
|
Schedules queries and transfers external data from SaaS applications to Google BigQuery on a regular basis.
|
6
6
|
|
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/bigquerydatatransfer.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -25,7 +26,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
26
|
```ruby
|
26
27
|
require "google/cloud/bigquery/data_transfer/v1"
|
27
28
|
|
28
|
-
client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
29
|
+
client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
29
30
|
request = my_create_request
|
30
31
|
response = client.get_data_source request
|
31
32
|
```
|
@@ -33,6 +34,9 @@ response = client.get_data_source request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-bigquery-data_transfer-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/bigquery/transfer)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# To load this package, including all its services, and instantiate a client:
|
28
28
|
#
|
29
29
|
# require "google/cloud/bigquery/data_transfer/v1"
|
30
|
-
# client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
30
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
31
31
|
#
|
32
32
|
module V1
|
33
33
|
end
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# To load this service and instantiate a client:
|
41
41
|
#
|
42
42
|
# require "google/cloud/bigquery/data_transfer/v1/data_transfer_service"
|
43
|
-
# client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
43
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
44
44
|
#
|
45
45
|
module DataTransferService
|
46
46
|
end
|
@@ -42,15 +42,15 @@ module Google
|
|
42
42
|
##
|
43
43
|
# Configure the DataTransferService Client class.
|
44
44
|
#
|
45
|
-
# See {Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client::Configuration}
|
45
|
+
# See {::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client::Configuration}
|
46
46
|
# for a description of the configuration fields.
|
47
47
|
#
|
48
48
|
# ## Example
|
49
49
|
#
|
50
50
|
# To modify the configuration for all DataTransferService clients:
|
51
51
|
#
|
52
|
-
# Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
|
53
|
-
# config.timeout =
|
52
|
+
# ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
|
53
|
+
# config.timeout = 10.0
|
54
54
|
# end
|
55
55
|
#
|
56
56
|
# @yield [config] Configure the Client client.
|
@@ -168,7 +168,7 @@ module Google
|
|
168
168
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
169
169
|
# should be made on {Client.configure}.
|
170
170
|
#
|
171
|
-
# See {Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client::Configuration}
|
171
|
+
# See {::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client::Configuration}
|
172
172
|
# for a description of the configuration fields.
|
173
173
|
#
|
174
174
|
# @yield [config] Configure the Client client.
|
@@ -189,13 +189,13 @@ module Google
|
|
189
189
|
# To create a new DataTransferService client with the default
|
190
190
|
# configuration:
|
191
191
|
#
|
192
|
-
# client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
192
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
193
193
|
#
|
194
194
|
# To create a new DataTransferService client with a custom
|
195
195
|
# configuration:
|
196
196
|
#
|
197
|
-
# client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
|
198
|
-
# config.timeout =
|
197
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
|
198
|
+
# config.timeout = 10.0
|
199
199
|
# end
|
200
200
|
#
|
201
201
|
# @yield [config] Configure the DataTransferService client.
|
@@ -220,10 +220,11 @@ module Google
|
|
220
220
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
221
221
|
credentials = Credentials.new credentials, scope: @config.scope
|
222
222
|
end
|
223
|
-
@quota_project_id =
|
223
|
+
@quota_project_id = @config.quota_project
|
224
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
224
225
|
|
225
|
-
@data_transfer_service_stub = Gapic::ServiceStub.new(
|
226
|
-
Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Stub,
|
226
|
+
@data_transfer_service_stub = ::Gapic::ServiceStub.new(
|
227
|
+
::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Stub,
|
227
228
|
credentials: credentials,
|
228
229
|
endpoint: @config.endpoint,
|
229
230
|
channel_args: @config.channel_args,
|
@@ -239,12 +240,12 @@ module Google
|
|
239
240
|
#
|
240
241
|
# @overload get_data_source(request, options = nil)
|
241
242
|
# Pass arguments to `get_data_source` via a request object, either of type
|
242
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest} or an equivalent Hash.
|
243
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest} or an equivalent Hash.
|
243
244
|
#
|
244
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest, Hash]
|
245
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest, ::Hash]
|
245
246
|
# A request object representing the call parameters. Required. To specify no
|
246
247
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
247
|
-
# @param options [Gapic::CallOptions, Hash]
|
248
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
248
249
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
249
250
|
#
|
250
251
|
# @overload get_data_source(name: nil)
|
@@ -252,32 +253,32 @@ module Google
|
|
252
253
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
253
254
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
254
255
|
#
|
255
|
-
# @param name [String]
|
256
|
+
# @param name [::String]
|
256
257
|
# Required. The field will contain name of the resource requested, for example:
|
257
258
|
# `projects/{project_id}/dataSources/{data_source_id}` or
|
258
259
|
# `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
|
259
260
|
#
|
260
261
|
# @yield [response, operation] Access the result along with the RPC operation
|
261
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::DataSource]
|
262
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
262
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::DataSource]
|
263
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
263
264
|
#
|
264
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::DataSource]
|
265
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::DataSource]
|
265
266
|
#
|
266
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
267
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
267
268
|
#
|
268
269
|
def get_data_source request, options = nil
|
269
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
270
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
270
271
|
|
271
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest
|
272
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest
|
272
273
|
|
273
274
|
# Converts hash and nil to an options object
|
274
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
275
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
275
276
|
|
276
277
|
# Customize the options with defaults
|
277
278
|
metadata = @config.rpcs.get_data_source.metadata.to_h
|
278
279
|
|
279
280
|
# Set x-goog-api-client and x-goog-user-project headers
|
280
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
281
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
281
282
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
282
283
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
283
284
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -298,8 +299,8 @@ module Google
|
|
298
299
|
yield response, operation if block_given?
|
299
300
|
return response
|
300
301
|
end
|
301
|
-
rescue GRPC::BadStatus => e
|
302
|
-
raise Google::Cloud::Error.from_error(e)
|
302
|
+
rescue ::GRPC::BadStatus => e
|
303
|
+
raise ::Google::Cloud::Error.from_error(e)
|
303
304
|
end
|
304
305
|
|
305
306
|
##
|
@@ -308,12 +309,12 @@ module Google
|
|
308
309
|
#
|
309
310
|
# @overload list_data_sources(request, options = nil)
|
310
311
|
# Pass arguments to `list_data_sources` via a request object, either of type
|
311
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest} or an equivalent Hash.
|
312
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest} or an equivalent Hash.
|
312
313
|
#
|
313
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest, Hash]
|
314
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest, ::Hash]
|
314
315
|
# A request object representing the call parameters. Required. To specify no
|
315
316
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
316
|
-
# @param options [Gapic::CallOptions, Hash]
|
317
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
317
318
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
318
319
|
#
|
319
320
|
# @overload list_data_sources(parent: nil, page_token: nil, page_size: nil)
|
@@ -321,40 +322,40 @@ module Google
|
|
321
322
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
322
323
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
323
324
|
#
|
324
|
-
# @param parent [String]
|
325
|
+
# @param parent [::String]
|
325
326
|
# Required. The BigQuery project id for which data sources should be returned.
|
326
327
|
# Must be in the form: `projects/{project_id}` or
|
327
328
|
# `projects/{project_id}/locations/{location_id}
|
328
|
-
# @param page_token [String]
|
329
|
+
# @param page_token [::String]
|
329
330
|
# Pagination token, which can be used to request a specific page
|
330
331
|
# of `ListDataSourcesRequest` list results. For multiple-page
|
331
332
|
# results, `ListDataSourcesResponse` outputs
|
332
333
|
# a `next_page` token, which can be used as the
|
333
334
|
# `page_token` value to request the next page of list results.
|
334
|
-
# @param page_size [Integer]
|
335
|
+
# @param page_size [::Integer]
|
335
336
|
# Page size. The default page size is the maximum value of 1000 results.
|
336
337
|
#
|
337
338
|
# @yield [response, operation] Access the result along with the RPC operation
|
338
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
339
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
339
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::DataSource>]
|
340
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
340
341
|
#
|
341
|
-
# @return [Gapic::PagedEnumerable
|
342
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::DataSource>]
|
342
343
|
#
|
343
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
344
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
344
345
|
#
|
345
346
|
def list_data_sources request, options = nil
|
346
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
347
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
347
348
|
|
348
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest
|
349
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest
|
349
350
|
|
350
351
|
# Converts hash and nil to an options object
|
351
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
352
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
352
353
|
|
353
354
|
# Customize the options with defaults
|
354
355
|
metadata = @config.rpcs.list_data_sources.metadata.to_h
|
355
356
|
|
356
357
|
# Set x-goog-api-client and x-goog-user-project headers
|
357
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
358
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
358
359
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
359
360
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
360
361
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -372,12 +373,12 @@ module Google
|
|
372
373
|
retry_policy: @config.retry_policy
|
373
374
|
|
374
375
|
@data_transfer_service_stub.call_rpc :list_data_sources, request, options: options do |response, operation|
|
375
|
-
response = Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_data_sources, request, response, operation, options
|
376
|
+
response = ::Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_data_sources, request, response, operation, options
|
376
377
|
yield response, operation if block_given?
|
377
378
|
return response
|
378
379
|
end
|
379
|
-
rescue GRPC::BadStatus => e
|
380
|
-
raise Google::Cloud::Error.from_error(e)
|
380
|
+
rescue ::GRPC::BadStatus => e
|
381
|
+
raise ::Google::Cloud::Error.from_error(e)
|
381
382
|
end
|
382
383
|
|
383
384
|
##
|
@@ -385,12 +386,12 @@ module Google
|
|
385
386
|
#
|
386
387
|
# @overload create_transfer_config(request, options = nil)
|
387
388
|
# Pass arguments to `create_transfer_config` via a request object, either of type
|
388
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest} or an equivalent Hash.
|
389
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest} or an equivalent Hash.
|
389
390
|
#
|
390
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest, Hash]
|
391
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest, ::Hash]
|
391
392
|
# A request object representing the call parameters. Required. To specify no
|
392
393
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
393
|
-
# @param options [Gapic::CallOptions, Hash]
|
394
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
394
395
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
395
396
|
#
|
396
397
|
# @overload create_transfer_config(parent: nil, transfer_config: nil, authorization_code: nil, version_info: nil, service_account_name: nil)
|
@@ -398,14 +399,14 @@ module Google
|
|
398
399
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
399
400
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
400
401
|
#
|
401
|
-
# @param parent [String]
|
402
|
+
# @param parent [::String]
|
402
403
|
# Required. The BigQuery project id where the transfer configuration should be created.
|
403
404
|
# Must be in the format projects/\\{project_id}/locations/\\{location_id} or
|
404
405
|
# projects/\\{project_id}. If specified location and location of the
|
405
406
|
# destination bigquery dataset do not match - the request will fail.
|
406
|
-
# @param transfer_config [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig, Hash]
|
407
|
+
# @param transfer_config [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig, ::Hash]
|
407
408
|
# Required. Data transfer configuration to create.
|
408
|
-
# @param authorization_code [String]
|
409
|
+
# @param authorization_code [::String]
|
409
410
|
# Optional OAuth2 authorization code to use with this transfer configuration.
|
410
411
|
# This is required if new credentials are needed, as indicated by
|
411
412
|
# `CheckValidCreds`.
|
@@ -422,40 +423,40 @@ module Google
|
|
422
423
|
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
|
423
424
|
# returned in the title bar of the browser, with the page text prompting
|
424
425
|
# the user to copy the code and paste it in the application.
|
425
|
-
# @param version_info [String]
|
426
|
+
# @param version_info [::String]
|
426
427
|
# Optional version info. If users want to find a very recent access token,
|
427
428
|
# that is, immediately after approving access, users have to set the
|
428
429
|
# version_info claim in the token request. To obtain the version_info, users
|
429
430
|
# must use the "none+gsession" response type. which be return a
|
430
431
|
# version_info back in the authorization response which be be put in a JWT
|
431
432
|
# claim in the token request.
|
432
|
-
# @param service_account_name [String]
|
433
|
+
# @param service_account_name [::String]
|
433
434
|
# Optional service account name. If this field is set, transfer config will
|
434
435
|
# be created with this service account credentials. It requires that
|
435
436
|
# requesting user calling this API has permissions to act as this service
|
436
437
|
# account.
|
437
438
|
#
|
438
439
|
# @yield [response, operation] Access the result along with the RPC operation
|
439
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
440
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
440
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
441
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
441
442
|
#
|
442
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
443
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
443
444
|
#
|
444
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
445
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
445
446
|
#
|
446
447
|
def create_transfer_config request, options = nil
|
447
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
448
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
448
449
|
|
449
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest
|
450
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest
|
450
451
|
|
451
452
|
# Converts hash and nil to an options object
|
452
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
453
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
453
454
|
|
454
455
|
# Customize the options with defaults
|
455
456
|
metadata = @config.rpcs.create_transfer_config.metadata.to_h
|
456
457
|
|
457
458
|
# Set x-goog-api-client and x-goog-user-project headers
|
458
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
459
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
459
460
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
460
461
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
461
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -476,8 +477,8 @@ module Google
|
|
476
477
|
yield response, operation if block_given?
|
477
478
|
return response
|
478
479
|
end
|
479
|
-
rescue GRPC::BadStatus => e
|
480
|
-
raise Google::Cloud::Error.from_error(e)
|
480
|
+
rescue ::GRPC::BadStatus => e
|
481
|
+
raise ::Google::Cloud::Error.from_error(e)
|
481
482
|
end
|
482
483
|
|
483
484
|
##
|
@@ -486,12 +487,12 @@ module Google
|
|
486
487
|
#
|
487
488
|
# @overload update_transfer_config(request, options = nil)
|
488
489
|
# Pass arguments to `update_transfer_config` via a request object, either of type
|
489
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest} or an equivalent Hash.
|
490
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest} or an equivalent Hash.
|
490
491
|
#
|
491
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest, Hash]
|
492
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest, ::Hash]
|
492
493
|
# A request object representing the call parameters. Required. To specify no
|
493
494
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
494
|
-
# @param options [Gapic::CallOptions, Hash]
|
495
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
495
496
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
496
497
|
#
|
497
498
|
# @overload update_transfer_config(transfer_config: nil, authorization_code: nil, update_mask: nil, version_info: nil, service_account_name: nil)
|
@@ -499,9 +500,9 @@ module Google
|
|
499
500
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
500
501
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
501
502
|
#
|
502
|
-
# @param transfer_config [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig, Hash]
|
503
|
+
# @param transfer_config [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig, ::Hash]
|
503
504
|
# Required. Data transfer configuration to create.
|
504
|
-
# @param authorization_code [String]
|
505
|
+
# @param authorization_code [::String]
|
505
506
|
# Optional OAuth2 authorization code to use with this transfer configuration.
|
506
507
|
# If it is provided, the transfer configuration will be associated with the
|
507
508
|
# authorizing user.
|
@@ -518,16 +519,16 @@ module Google
|
|
518
519
|
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
|
519
520
|
# returned in the title bar of the browser, with the page text prompting
|
520
521
|
# the user to copy the code and paste it in the application.
|
521
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
522
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
522
523
|
# Required. Required list of fields to be updated in this request.
|
523
|
-
# @param version_info [String]
|
524
|
+
# @param version_info [::String]
|
524
525
|
# Optional version info. If users want to find a very recent access token,
|
525
526
|
# that is, immediately after approving access, users have to set the
|
526
527
|
# version_info claim in the token request. To obtain the version_info, users
|
527
528
|
# must use the "none+gsession" response type. which be return a
|
528
529
|
# version_info back in the authorization response which be be put in a JWT
|
529
530
|
# claim in the token request.
|
530
|
-
# @param service_account_name [String]
|
531
|
+
# @param service_account_name [::String]
|
531
532
|
# Optional service account name. If this field is set and
|
532
533
|
# "service_account_name" is set in update_mask, transfer config will be
|
533
534
|
# updated to use this service account credentials. It requires that
|
@@ -535,26 +536,26 @@ module Google
|
|
535
536
|
# account.
|
536
537
|
#
|
537
538
|
# @yield [response, operation] Access the result along with the RPC operation
|
538
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
539
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
539
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
540
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
540
541
|
#
|
541
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
542
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
542
543
|
#
|
543
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
544
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
544
545
|
#
|
545
546
|
def update_transfer_config request, options = nil
|
546
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
547
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
547
548
|
|
548
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest
|
549
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest
|
549
550
|
|
550
551
|
# Converts hash and nil to an options object
|
551
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
552
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
552
553
|
|
553
554
|
# Customize the options with defaults
|
554
555
|
metadata = @config.rpcs.update_transfer_config.metadata.to_h
|
555
556
|
|
556
557
|
# Set x-goog-api-client and x-goog-user-project headers
|
557
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
558
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
558
559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
559
560
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
560
561
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -575,8 +576,8 @@ module Google
|
|
575
576
|
yield response, operation if block_given?
|
576
577
|
return response
|
577
578
|
end
|
578
|
-
rescue GRPC::BadStatus => e
|
579
|
-
raise Google::Cloud::Error.from_error(e)
|
579
|
+
rescue ::GRPC::BadStatus => e
|
580
|
+
raise ::Google::Cloud::Error.from_error(e)
|
580
581
|
end
|
581
582
|
|
582
583
|
##
|
@@ -585,12 +586,12 @@ module Google
|
|
585
586
|
#
|
586
587
|
# @overload delete_transfer_config(request, options = nil)
|
587
588
|
# Pass arguments to `delete_transfer_config` via a request object, either of type
|
588
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest} or an equivalent Hash.
|
589
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest} or an equivalent Hash.
|
589
590
|
#
|
590
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest, Hash]
|
591
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest, ::Hash]
|
591
592
|
# A request object representing the call parameters. Required. To specify no
|
592
593
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
593
|
-
# @param options [Gapic::CallOptions, Hash]
|
594
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
594
595
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
595
596
|
#
|
596
597
|
# @overload delete_transfer_config(name: nil)
|
@@ -598,32 +599,32 @@ module Google
|
|
598
599
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
599
600
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
600
601
|
#
|
601
|
-
# @param name [String]
|
602
|
+
# @param name [::String]
|
602
603
|
# Required. The field will contain name of the resource requested, for example:
|
603
604
|
# `projects/{project_id}/transferConfigs/{config_id}` or
|
604
605
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
|
605
606
|
#
|
606
607
|
# @yield [response, operation] Access the result along with the RPC operation
|
607
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
608
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
608
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
609
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
609
610
|
#
|
610
|
-
# @return [Google::Protobuf::Empty]
|
611
|
+
# @return [::Google::Protobuf::Empty]
|
611
612
|
#
|
612
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
613
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
613
614
|
#
|
614
615
|
def delete_transfer_config request, options = nil
|
615
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
616
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
616
617
|
|
617
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest
|
618
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest
|
618
619
|
|
619
620
|
# Converts hash and nil to an options object
|
620
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
621
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
621
622
|
|
622
623
|
# Customize the options with defaults
|
623
624
|
metadata = @config.rpcs.delete_transfer_config.metadata.to_h
|
624
625
|
|
625
626
|
# Set x-goog-api-client and x-goog-user-project headers
|
626
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
627
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
627
628
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
628
629
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
629
630
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -644,8 +645,8 @@ module Google
|
|
644
645
|
yield response, operation if block_given?
|
645
646
|
return response
|
646
647
|
end
|
647
|
-
rescue GRPC::BadStatus => e
|
648
|
-
raise Google::Cloud::Error.from_error(e)
|
648
|
+
rescue ::GRPC::BadStatus => e
|
649
|
+
raise ::Google::Cloud::Error.from_error(e)
|
649
650
|
end
|
650
651
|
|
651
652
|
##
|
@@ -653,12 +654,12 @@ module Google
|
|
653
654
|
#
|
654
655
|
# @overload get_transfer_config(request, options = nil)
|
655
656
|
# Pass arguments to `get_transfer_config` via a request object, either of type
|
656
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest} or an equivalent Hash.
|
657
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest} or an equivalent Hash.
|
657
658
|
#
|
658
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest, Hash]
|
659
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest, ::Hash]
|
659
660
|
# A request object representing the call parameters. Required. To specify no
|
660
661
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
661
|
-
# @param options [Gapic::CallOptions, Hash]
|
662
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
662
663
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
663
664
|
#
|
664
665
|
# @overload get_transfer_config(name: nil)
|
@@ -666,32 +667,32 @@ module Google
|
|
666
667
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
667
668
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
668
669
|
#
|
669
|
-
# @param name [String]
|
670
|
+
# @param name [::String]
|
670
671
|
# Required. The field will contain name of the resource requested, for example:
|
671
672
|
# `projects/{project_id}/transferConfigs/{config_id}` or
|
672
673
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
|
673
674
|
#
|
674
675
|
# @yield [response, operation] Access the result along with the RPC operation
|
675
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
676
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
676
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
677
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
677
678
|
#
|
678
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
679
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
|
679
680
|
#
|
680
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
681
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
681
682
|
#
|
682
683
|
def get_transfer_config request, options = nil
|
683
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
684
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
684
685
|
|
685
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest
|
686
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest
|
686
687
|
|
687
688
|
# Converts hash and nil to an options object
|
688
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
689
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
689
690
|
|
690
691
|
# Customize the options with defaults
|
691
692
|
metadata = @config.rpcs.get_transfer_config.metadata.to_h
|
692
693
|
|
693
694
|
# Set x-goog-api-client and x-goog-user-project headers
|
694
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
695
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
695
696
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
696
697
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
697
698
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -712,8 +713,8 @@ module Google
|
|
712
713
|
yield response, operation if block_given?
|
713
714
|
return response
|
714
715
|
end
|
715
|
-
rescue GRPC::BadStatus => e
|
716
|
-
raise Google::Cloud::Error.from_error(e)
|
716
|
+
rescue ::GRPC::BadStatus => e
|
717
|
+
raise ::Google::Cloud::Error.from_error(e)
|
717
718
|
end
|
718
719
|
|
719
720
|
##
|
@@ -721,12 +722,12 @@ module Google
|
|
721
722
|
#
|
722
723
|
# @overload list_transfer_configs(request, options = nil)
|
723
724
|
# Pass arguments to `list_transfer_configs` via a request object, either of type
|
724
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest} or an equivalent Hash.
|
725
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest} or an equivalent Hash.
|
725
726
|
#
|
726
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest, Hash]
|
727
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest, ::Hash]
|
727
728
|
# A request object representing the call parameters. Required. To specify no
|
728
729
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
729
|
-
# @param options [Gapic::CallOptions, Hash]
|
730
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
730
731
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
731
732
|
#
|
732
733
|
# @overload list_transfer_configs(parent: nil, data_source_ids: nil, page_token: nil, page_size: nil)
|
@@ -734,42 +735,42 @@ module Google
|
|
734
735
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
735
736
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
736
737
|
#
|
737
|
-
# @param parent [String]
|
738
|
+
# @param parent [::String]
|
738
739
|
# Required. The BigQuery project id for which data sources
|
739
740
|
# should be returned: `projects/{project_id}` or
|
740
741
|
# `projects/{project_id}/locations/{location_id}`
|
741
|
-
# @param data_source_ids [Array
|
742
|
+
# @param data_source_ids [::Array<::String>]
|
742
743
|
# When specified, only configurations of requested data sources are returned.
|
743
|
-
# @param page_token [String]
|
744
|
+
# @param page_token [::String]
|
744
745
|
# Pagination token, which can be used to request a specific page
|
745
746
|
# of `ListTransfersRequest` list results. For multiple-page
|
746
747
|
# results, `ListTransfersResponse` outputs
|
747
748
|
# a `next_page` token, which can be used as the
|
748
749
|
# `page_token` value to request the next page of list results.
|
749
|
-
# @param page_size [Integer]
|
750
|
+
# @param page_size [::Integer]
|
750
751
|
# Page size. The default page size is the maximum value of 1000 results.
|
751
752
|
#
|
752
753
|
# @yield [response, operation] Access the result along with the RPC operation
|
753
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
754
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
754
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig>]
|
755
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
755
756
|
#
|
756
|
-
# @return [Gapic::PagedEnumerable
|
757
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig>]
|
757
758
|
#
|
758
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
759
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
759
760
|
#
|
760
761
|
def list_transfer_configs request, options = nil
|
761
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
762
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
762
763
|
|
763
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest
|
764
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest
|
764
765
|
|
765
766
|
# Converts hash and nil to an options object
|
766
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
767
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
767
768
|
|
768
769
|
# Customize the options with defaults
|
769
770
|
metadata = @config.rpcs.list_transfer_configs.metadata.to_h
|
770
771
|
|
771
772
|
# Set x-goog-api-client and x-goog-user-project headers
|
772
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
773
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
773
774
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
774
775
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
775
776
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -787,12 +788,12 @@ module Google
|
|
787
788
|
retry_policy: @config.retry_policy
|
788
789
|
|
789
790
|
@data_transfer_service_stub.call_rpc :list_transfer_configs, request, options: options do |response, operation|
|
790
|
-
response = Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_transfer_configs, request, response, operation, options
|
791
|
+
response = ::Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_transfer_configs, request, response, operation, options
|
791
792
|
yield response, operation if block_given?
|
792
793
|
return response
|
793
794
|
end
|
794
|
-
rescue GRPC::BadStatus => e
|
795
|
-
raise Google::Cloud::Error.from_error(e)
|
795
|
+
rescue ::GRPC::BadStatus => e
|
796
|
+
raise ::Google::Cloud::Error.from_error(e)
|
796
797
|
end
|
797
798
|
|
798
799
|
##
|
@@ -804,12 +805,12 @@ module Google
|
|
804
805
|
#
|
805
806
|
# @overload schedule_transfer_runs(request, options = nil)
|
806
807
|
# Pass arguments to `schedule_transfer_runs` via a request object, either of type
|
807
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest} or an equivalent Hash.
|
808
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest} or an equivalent Hash.
|
808
809
|
#
|
809
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest, Hash]
|
810
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest, ::Hash]
|
810
811
|
# A request object representing the call parameters. Required. To specify no
|
811
812
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
812
|
-
# @param options [Gapic::CallOptions, Hash]
|
813
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
813
814
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
814
815
|
#
|
815
816
|
# @overload schedule_transfer_runs(parent: nil, start_time: nil, end_time: nil)
|
@@ -817,38 +818,38 @@ module Google
|
|
817
818
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
818
819
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
819
820
|
#
|
820
|
-
# @param parent [String]
|
821
|
+
# @param parent [::String]
|
821
822
|
# Required. Transfer configuration name in the form:
|
822
823
|
# `projects/{project_id}/transferConfigs/{config_id}` or
|
823
824
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
|
824
|
-
# @param start_time [Google::Protobuf::Timestamp, Hash]
|
825
|
+
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
825
826
|
# Required. Start time of the range of transfer runs. For example,
|
826
827
|
# `"2017-05-25T00:00:00+00:00"`.
|
827
|
-
# @param end_time [Google::Protobuf::Timestamp, Hash]
|
828
|
+
# @param end_time [::Google::Protobuf::Timestamp, ::Hash]
|
828
829
|
# Required. End time of the range of transfer runs. For example,
|
829
830
|
# `"2017-05-30T00:00:00+00:00"`.
|
830
831
|
#
|
831
832
|
# @yield [response, operation] Access the result along with the RPC operation
|
832
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsResponse]
|
833
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
833
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsResponse]
|
834
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
834
835
|
#
|
835
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsResponse]
|
836
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsResponse]
|
836
837
|
#
|
837
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
838
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
838
839
|
#
|
839
840
|
def schedule_transfer_runs request, options = nil
|
840
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
841
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
841
842
|
|
842
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest
|
843
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest
|
843
844
|
|
844
845
|
# Converts hash and nil to an options object
|
845
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
846
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
846
847
|
|
847
848
|
# Customize the options with defaults
|
848
849
|
metadata = @config.rpcs.schedule_transfer_runs.metadata.to_h
|
849
850
|
|
850
851
|
# Set x-goog-api-client and x-goog-user-project headers
|
851
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
852
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
852
853
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
853
854
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
854
855
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -869,8 +870,8 @@ module Google
|
|
869
870
|
yield response, operation if block_given?
|
870
871
|
return response
|
871
872
|
end
|
872
|
-
rescue GRPC::BadStatus => e
|
873
|
-
raise Google::Cloud::Error.from_error(e)
|
873
|
+
rescue ::GRPC::BadStatus => e
|
874
|
+
raise ::Google::Cloud::Error.from_error(e)
|
874
875
|
end
|
875
876
|
|
876
877
|
##
|
@@ -881,12 +882,12 @@ module Google
|
|
881
882
|
#
|
882
883
|
# @overload start_manual_transfer_runs(request, options = nil)
|
883
884
|
# Pass arguments to `start_manual_transfer_runs` via a request object, either of type
|
884
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest} or an equivalent Hash.
|
885
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest} or an equivalent Hash.
|
885
886
|
#
|
886
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest, Hash]
|
887
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest, ::Hash]
|
887
888
|
# A request object representing the call parameters. Required. To specify no
|
888
889
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
889
|
-
# @param options [Gapic::CallOptions, Hash]
|
890
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
890
891
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
891
892
|
#
|
892
893
|
# @overload start_manual_transfer_runs(parent: nil, requested_time_range: nil, requested_run_time: nil)
|
@@ -894,37 +895,37 @@ module Google
|
|
894
895
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
895
896
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
896
897
|
#
|
897
|
-
# @param parent [String]
|
898
|
+
# @param parent [::String]
|
898
899
|
# Transfer configuration name in the form:
|
899
900
|
# `projects/{project_id}/transferConfigs/{config_id}` or
|
900
901
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
|
901
|
-
# @param requested_time_range [Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest::TimeRange, Hash]
|
902
|
+
# @param requested_time_range [::Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest::TimeRange, ::Hash]
|
902
903
|
# Time range for the transfer runs that should be started.
|
903
|
-
# @param requested_run_time [Google::Protobuf::Timestamp, Hash]
|
904
|
+
# @param requested_run_time [::Google::Protobuf::Timestamp, ::Hash]
|
904
905
|
# Specific run_time for a transfer run to be started. The
|
905
906
|
# requested_run_time must not be in the future.
|
906
907
|
#
|
907
908
|
# @yield [response, operation] Access the result along with the RPC operation
|
908
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsResponse]
|
909
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
909
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsResponse]
|
910
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
910
911
|
#
|
911
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsResponse]
|
912
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsResponse]
|
912
913
|
#
|
913
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
914
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
914
915
|
#
|
915
916
|
def start_manual_transfer_runs request, options = nil
|
916
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
917
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
917
918
|
|
918
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest
|
919
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest
|
919
920
|
|
920
921
|
# Converts hash and nil to an options object
|
921
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
922
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
922
923
|
|
923
924
|
# Customize the options with defaults
|
924
925
|
metadata = @config.rpcs.start_manual_transfer_runs.metadata.to_h
|
925
926
|
|
926
927
|
# Set x-goog-api-client and x-goog-user-project headers
|
927
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
928
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
928
929
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
929
930
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
930
931
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -945,8 +946,8 @@ module Google
|
|
945
946
|
yield response, operation if block_given?
|
946
947
|
return response
|
947
948
|
end
|
948
|
-
rescue GRPC::BadStatus => e
|
949
|
-
raise Google::Cloud::Error.from_error(e)
|
949
|
+
rescue ::GRPC::BadStatus => e
|
950
|
+
raise ::Google::Cloud::Error.from_error(e)
|
950
951
|
end
|
951
952
|
|
952
953
|
##
|
@@ -954,12 +955,12 @@ module Google
|
|
954
955
|
#
|
955
956
|
# @overload get_transfer_run(request, options = nil)
|
956
957
|
# Pass arguments to `get_transfer_run` via a request object, either of type
|
957
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest} or an equivalent Hash.
|
958
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest} or an equivalent Hash.
|
958
959
|
#
|
959
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest, Hash]
|
960
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest, ::Hash]
|
960
961
|
# A request object representing the call parameters. Required. To specify no
|
961
962
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
962
|
-
# @param options [Gapic::CallOptions, Hash]
|
963
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
963
964
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
964
965
|
#
|
965
966
|
# @overload get_transfer_run(name: nil)
|
@@ -967,32 +968,32 @@ module Google
|
|
967
968
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
968
969
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
969
970
|
#
|
970
|
-
# @param name [String]
|
971
|
+
# @param name [::String]
|
971
972
|
# Required. The field will contain name of the resource requested, for example:
|
972
973
|
# `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
|
973
974
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
|
974
975
|
#
|
975
976
|
# @yield [response, operation] Access the result along with the RPC operation
|
976
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::TransferRun]
|
977
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
977
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun]
|
978
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
978
979
|
#
|
979
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::TransferRun]
|
980
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun]
|
980
981
|
#
|
981
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
982
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
982
983
|
#
|
983
984
|
def get_transfer_run request, options = nil
|
984
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
985
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
985
986
|
|
986
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest
|
987
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest
|
987
988
|
|
988
989
|
# Converts hash and nil to an options object
|
989
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
990
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
990
991
|
|
991
992
|
# Customize the options with defaults
|
992
993
|
metadata = @config.rpcs.get_transfer_run.metadata.to_h
|
993
994
|
|
994
995
|
# Set x-goog-api-client and x-goog-user-project headers
|
995
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
996
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
996
997
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
997
998
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
998
999
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1013,8 +1014,8 @@ module Google
|
|
1013
1014
|
yield response, operation if block_given?
|
1014
1015
|
return response
|
1015
1016
|
end
|
1016
|
-
rescue GRPC::BadStatus => e
|
1017
|
-
raise Google::Cloud::Error.from_error(e)
|
1017
|
+
rescue ::GRPC::BadStatus => e
|
1018
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1018
1019
|
end
|
1019
1020
|
|
1020
1021
|
##
|
@@ -1022,12 +1023,12 @@ module Google
|
|
1022
1023
|
#
|
1023
1024
|
# @overload delete_transfer_run(request, options = nil)
|
1024
1025
|
# Pass arguments to `delete_transfer_run` via a request object, either of type
|
1025
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest} or an equivalent Hash.
|
1026
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest} or an equivalent Hash.
|
1026
1027
|
#
|
1027
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest, Hash]
|
1028
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest, ::Hash]
|
1028
1029
|
# A request object representing the call parameters. Required. To specify no
|
1029
1030
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1030
|
-
# @param options [Gapic::CallOptions, Hash]
|
1031
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1031
1032
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1032
1033
|
#
|
1033
1034
|
# @overload delete_transfer_run(name: nil)
|
@@ -1035,32 +1036,32 @@ module Google
|
|
1035
1036
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1036
1037
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1037
1038
|
#
|
1038
|
-
# @param name [String]
|
1039
|
+
# @param name [::String]
|
1039
1040
|
# Required. The field will contain name of the resource requested, for example:
|
1040
1041
|
# `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
|
1041
1042
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
|
1042
1043
|
#
|
1043
1044
|
# @yield [response, operation] Access the result along with the RPC operation
|
1044
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
1045
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1045
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
1046
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1046
1047
|
#
|
1047
|
-
# @return [Google::Protobuf::Empty]
|
1048
|
+
# @return [::Google::Protobuf::Empty]
|
1048
1049
|
#
|
1049
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1050
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1050
1051
|
#
|
1051
1052
|
def delete_transfer_run request, options = nil
|
1052
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1053
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1053
1054
|
|
1054
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest
|
1055
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest
|
1055
1056
|
|
1056
1057
|
# Converts hash and nil to an options object
|
1057
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1058
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1058
1059
|
|
1059
1060
|
# Customize the options with defaults
|
1060
1061
|
metadata = @config.rpcs.delete_transfer_run.metadata.to_h
|
1061
1062
|
|
1062
1063
|
# Set x-goog-api-client and x-goog-user-project headers
|
1063
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1064
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1064
1065
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1065
1066
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
1066
1067
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1081,8 +1082,8 @@ module Google
|
|
1081
1082
|
yield response, operation if block_given?
|
1082
1083
|
return response
|
1083
1084
|
end
|
1084
|
-
rescue GRPC::BadStatus => e
|
1085
|
-
raise Google::Cloud::Error.from_error(e)
|
1085
|
+
rescue ::GRPC::BadStatus => e
|
1086
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1086
1087
|
end
|
1087
1088
|
|
1088
1089
|
##
|
@@ -1090,12 +1091,12 @@ module Google
|
|
1090
1091
|
#
|
1091
1092
|
# @overload list_transfer_runs(request, options = nil)
|
1092
1093
|
# Pass arguments to `list_transfer_runs` via a request object, either of type
|
1093
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest} or an equivalent Hash.
|
1094
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest} or an equivalent Hash.
|
1094
1095
|
#
|
1095
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest, Hash]
|
1096
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest, ::Hash]
|
1096
1097
|
# A request object representing the call parameters. Required. To specify no
|
1097
1098
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1098
|
-
# @param options [Gapic::CallOptions, Hash]
|
1099
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1099
1100
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1100
1101
|
#
|
1101
1102
|
# @overload list_transfer_runs(parent: nil, states: nil, page_token: nil, page_size: nil, run_attempt: nil)
|
@@ -1103,45 +1104,45 @@ module Google
|
|
1103
1104
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1104
1105
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1105
1106
|
#
|
1106
|
-
# @param parent [String]
|
1107
|
+
# @param parent [::String]
|
1107
1108
|
# Required. Name of transfer configuration for which transfer runs should be retrieved.
|
1108
1109
|
# Format of transfer configuration resource name is:
|
1109
1110
|
# `projects/{project_id}/transferConfigs/{config_id}` or
|
1110
1111
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
|
1111
|
-
# @param states [Array
|
1112
|
+
# @param states [::Array<::Google::Cloud::Bigquery::DataTransfer::V1::TransferState>]
|
1112
1113
|
# When specified, only transfer runs with requested states are returned.
|
1113
|
-
# @param page_token [String]
|
1114
|
+
# @param page_token [::String]
|
1114
1115
|
# Pagination token, which can be used to request a specific page
|
1115
1116
|
# of `ListTransferRunsRequest` list results. For multiple-page
|
1116
1117
|
# results, `ListTransferRunsResponse` outputs
|
1117
1118
|
# a `next_page` token, which can be used as the
|
1118
1119
|
# `page_token` value to request the next page of list results.
|
1119
|
-
# @param page_size [Integer]
|
1120
|
+
# @param page_size [::Integer]
|
1120
1121
|
# Page size. The default page size is the maximum value of 1000 results.
|
1121
|
-
# @param run_attempt [Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest::RunAttempt]
|
1122
|
+
# @param run_attempt [::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest::RunAttempt]
|
1122
1123
|
# Indicates how run attempts are to be pulled.
|
1123
1124
|
#
|
1124
1125
|
# @yield [response, operation] Access the result along with the RPC operation
|
1125
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1126
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1126
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun>]
|
1127
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1127
1128
|
#
|
1128
|
-
# @return [Gapic::PagedEnumerable
|
1129
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun>]
|
1129
1130
|
#
|
1130
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1131
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1131
1132
|
#
|
1132
1133
|
def list_transfer_runs request, options = nil
|
1133
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1134
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1134
1135
|
|
1135
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest
|
1136
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest
|
1136
1137
|
|
1137
1138
|
# Converts hash and nil to an options object
|
1138
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1139
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1139
1140
|
|
1140
1141
|
# Customize the options with defaults
|
1141
1142
|
metadata = @config.rpcs.list_transfer_runs.metadata.to_h
|
1142
1143
|
|
1143
1144
|
# Set x-goog-api-client and x-goog-user-project headers
|
1144
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1145
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1145
1146
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1146
1147
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
1147
1148
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1159,12 +1160,12 @@ module Google
|
|
1159
1160
|
retry_policy: @config.retry_policy
|
1160
1161
|
|
1161
1162
|
@data_transfer_service_stub.call_rpc :list_transfer_runs, request, options: options do |response, operation|
|
1162
|
-
response = Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_transfer_runs, request, response, operation, options
|
1163
|
+
response = ::Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_transfer_runs, request, response, operation, options
|
1163
1164
|
yield response, operation if block_given?
|
1164
1165
|
return response
|
1165
1166
|
end
|
1166
|
-
rescue GRPC::BadStatus => e
|
1167
|
-
raise Google::Cloud::Error.from_error(e)
|
1167
|
+
rescue ::GRPC::BadStatus => e
|
1168
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1168
1169
|
end
|
1169
1170
|
|
1170
1171
|
##
|
@@ -1172,12 +1173,12 @@ module Google
|
|
1172
1173
|
#
|
1173
1174
|
# @overload list_transfer_logs(request, options = nil)
|
1174
1175
|
# Pass arguments to `list_transfer_logs` via a request object, either of type
|
1175
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest} or an equivalent Hash.
|
1176
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest} or an equivalent Hash.
|
1176
1177
|
#
|
1177
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest, Hash]
|
1178
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest, ::Hash]
|
1178
1179
|
# A request object representing the call parameters. Required. To specify no
|
1179
1180
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1180
|
-
# @param options [Gapic::CallOptions, Hash]
|
1181
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1181
1182
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1182
1183
|
#
|
1183
1184
|
# @overload list_transfer_logs(parent: nil, page_token: nil, page_size: nil, message_types: nil)
|
@@ -1185,43 +1186,43 @@ module Google
|
|
1185
1186
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1186
1187
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1187
1188
|
#
|
1188
|
-
# @param parent [String]
|
1189
|
+
# @param parent [::String]
|
1189
1190
|
# Required. Transfer run name in the form:
|
1190
1191
|
# `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
|
1191
1192
|
# `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
|
1192
|
-
# @param page_token [String]
|
1193
|
+
# @param page_token [::String]
|
1193
1194
|
# Pagination token, which can be used to request a specific page
|
1194
1195
|
# of `ListTransferLogsRequest` list results. For multiple-page
|
1195
1196
|
# results, `ListTransferLogsResponse` outputs
|
1196
1197
|
# a `next_page` token, which can be used as the
|
1197
1198
|
# `page_token` value to request the next page of list results.
|
1198
|
-
# @param page_size [Integer]
|
1199
|
+
# @param page_size [::Integer]
|
1199
1200
|
# Page size. The default page size is the maximum value of 1000 results.
|
1200
|
-
# @param message_types [Array
|
1201
|
+
# @param message_types [::Array<::Google::Cloud::Bigquery::DataTransfer::V1::TransferMessage::MessageSeverity>]
|
1201
1202
|
# Message types to return. If not populated - INFO, WARNING and ERROR
|
1202
1203
|
# messages are returned.
|
1203
1204
|
#
|
1204
1205
|
# @yield [response, operation] Access the result along with the RPC operation
|
1205
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1206
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1206
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferMessage>]
|
1207
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1207
1208
|
#
|
1208
|
-
# @return [Gapic::PagedEnumerable
|
1209
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferMessage>]
|
1209
1210
|
#
|
1210
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1211
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1211
1212
|
#
|
1212
1213
|
def list_transfer_logs request, options = nil
|
1213
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1214
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1214
1215
|
|
1215
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest
|
1216
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest
|
1216
1217
|
|
1217
1218
|
# Converts hash and nil to an options object
|
1218
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1219
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1219
1220
|
|
1220
1221
|
# Customize the options with defaults
|
1221
1222
|
metadata = @config.rpcs.list_transfer_logs.metadata.to_h
|
1222
1223
|
|
1223
1224
|
# Set x-goog-api-client and x-goog-user-project headers
|
1224
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1225
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1225
1226
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1226
1227
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
1227
1228
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1239,12 +1240,12 @@ module Google
|
|
1239
1240
|
retry_policy: @config.retry_policy
|
1240
1241
|
|
1241
1242
|
@data_transfer_service_stub.call_rpc :list_transfer_logs, request, options: options do |response, operation|
|
1242
|
-
response = Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_transfer_logs, request, response, operation, options
|
1243
|
+
response = ::Gapic::PagedEnumerable.new @data_transfer_service_stub, :list_transfer_logs, request, response, operation, options
|
1243
1244
|
yield response, operation if block_given?
|
1244
1245
|
return response
|
1245
1246
|
end
|
1246
|
-
rescue GRPC::BadStatus => e
|
1247
|
-
raise Google::Cloud::Error.from_error(e)
|
1247
|
+
rescue ::GRPC::BadStatus => e
|
1248
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1248
1249
|
end
|
1249
1250
|
|
1250
1251
|
##
|
@@ -1257,12 +1258,12 @@ module Google
|
|
1257
1258
|
#
|
1258
1259
|
# @overload check_valid_creds(request, options = nil)
|
1259
1260
|
# Pass arguments to `check_valid_creds` via a request object, either of type
|
1260
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest} or an equivalent Hash.
|
1261
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest} or an equivalent Hash.
|
1261
1262
|
#
|
1262
|
-
# @param request [Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest, Hash]
|
1263
|
+
# @param request [::Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest, ::Hash]
|
1263
1264
|
# A request object representing the call parameters. Required. To specify no
|
1264
1265
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1265
|
-
# @param options [Gapic::CallOptions, Hash]
|
1266
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1266
1267
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1267
1268
|
#
|
1268
1269
|
# @overload check_valid_creds(name: nil)
|
@@ -1270,32 +1271,32 @@ module Google
|
|
1270
1271
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1271
1272
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1272
1273
|
#
|
1273
|
-
# @param name [String]
|
1274
|
+
# @param name [::String]
|
1274
1275
|
# Required. The data source in the form:
|
1275
1276
|
# `projects/{project_id}/dataSources/{data_source_id}` or
|
1276
1277
|
# `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
|
1277
1278
|
#
|
1278
1279
|
# @yield [response, operation] Access the result along with the RPC operation
|
1279
|
-
# @yieldparam response [Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsResponse]
|
1280
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1280
|
+
# @yieldparam response [::Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsResponse]
|
1281
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1281
1282
|
#
|
1282
|
-
# @return [Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsResponse]
|
1283
|
+
# @return [::Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsResponse]
|
1283
1284
|
#
|
1284
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1285
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1285
1286
|
#
|
1286
1287
|
def check_valid_creds request, options = nil
|
1287
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1288
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1288
1289
|
|
1289
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest
|
1290
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest
|
1290
1291
|
|
1291
1292
|
# Converts hash and nil to an options object
|
1292
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1293
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1293
1294
|
|
1294
1295
|
# Customize the options with defaults
|
1295
1296
|
metadata = @config.rpcs.check_valid_creds.metadata.to_h
|
1296
1297
|
|
1297
1298
|
# Set x-goog-api-client and x-goog-user-project headers
|
1298
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1299
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1299
1300
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1300
1301
|
gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
|
1301
1302
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1316,8 +1317,8 @@ module Google
|
|
1316
1317
|
yield response, operation if block_given?
|
1317
1318
|
return response
|
1318
1319
|
end
|
1319
|
-
rescue GRPC::BadStatus => e
|
1320
|
-
raise Google::Cloud::Error.from_error(e)
|
1320
|
+
rescue ::GRPC::BadStatus => e
|
1321
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1321
1322
|
end
|
1322
1323
|
|
1323
1324
|
##
|
@@ -1327,7 +1328,7 @@ module Google
|
|
1327
1328
|
# providing control over timeouts, retry behavior, logging, transport
|
1328
1329
|
# parameters, and other low-level controls. Certain parameters can also be
|
1329
1330
|
# applied individually to specific RPCs. See
|
1330
|
-
# {Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client::Configuration::Rpcs}
|
1331
|
+
# {::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client::Configuration::Rpcs}
|
1331
1332
|
# for a list of RPCs that can be configured independently.
|
1332
1333
|
#
|
1333
1334
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -1338,22 +1339,22 @@ module Google
|
|
1338
1339
|
# To modify the global config, setting the timeout for get_data_source
|
1339
1340
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
1340
1341
|
#
|
1341
|
-
# Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
|
1342
|
-
# config.timeout =
|
1343
|
-
# config.rpcs.get_data_source.timeout =
|
1342
|
+
# ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
|
1343
|
+
# config.timeout = 10.0
|
1344
|
+
# config.rpcs.get_data_source.timeout = 20.0
|
1344
1345
|
# end
|
1345
1346
|
#
|
1346
1347
|
# To apply the above configuration only to a new client:
|
1347
1348
|
#
|
1348
|
-
# client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
|
1349
|
-
# config.timeout =
|
1350
|
-
# config.rpcs.get_data_source.timeout =
|
1349
|
+
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
|
1350
|
+
# config.timeout = 10.0
|
1351
|
+
# config.rpcs.get_data_source.timeout = 20.0
|
1351
1352
|
# end
|
1352
1353
|
#
|
1353
1354
|
# @!attribute [rw] endpoint
|
1354
1355
|
# The hostname or hostname:port of the service endpoint.
|
1355
1356
|
# Defaults to `"bigquerydatatransfer.googleapis.com"`.
|
1356
|
-
# @return [String]
|
1357
|
+
# @return [::String]
|
1357
1358
|
# @!attribute [rw] credentials
|
1358
1359
|
# Credentials to send with calls. You may provide any of the following types:
|
1359
1360
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1365,29 +1366,29 @@ module Google
|
|
1365
1366
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1366
1367
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1367
1368
|
# * (`nil`) indicating no credentials
|
1368
|
-
# @return [Object]
|
1369
|
+
# @return [::Object]
|
1369
1370
|
# @!attribute [rw] scope
|
1370
1371
|
# The OAuth scopes
|
1371
|
-
# @return [Array
|
1372
|
+
# @return [::Array<::String>]
|
1372
1373
|
# @!attribute [rw] lib_name
|
1373
1374
|
# The library name as recorded in instrumentation and logging
|
1374
|
-
# @return [String]
|
1375
|
+
# @return [::String]
|
1375
1376
|
# @!attribute [rw] lib_version
|
1376
1377
|
# The library version as recorded in instrumentation and logging
|
1377
|
-
# @return [String]
|
1378
|
+
# @return [::String]
|
1378
1379
|
# @!attribute [rw] channel_args
|
1379
1380
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
1380
1381
|
# `GRPC::Core::Channel` object is provided as the credential.
|
1381
|
-
# @return [Hash]
|
1382
|
+
# @return [::Hash]
|
1382
1383
|
# @!attribute [rw] interceptors
|
1383
1384
|
# An array of interceptors that are run before calls are executed.
|
1384
|
-
# @return [Array
|
1385
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
1385
1386
|
# @!attribute [rw] timeout
|
1386
|
-
# The call timeout in
|
1387
|
-
# @return [Numeric]
|
1387
|
+
# The call timeout in seconds.
|
1388
|
+
# @return [::Numeric]
|
1388
1389
|
# @!attribute [rw] metadata
|
1389
1390
|
# Additional gRPC headers to be sent with the call.
|
1390
|
-
# @return [Hash{Symbol
|
1391
|
+
# @return [::Hash{::Symbol=>::String}]
|
1391
1392
|
# @!attribute [rw] retry_policy
|
1392
1393
|
# The retry policy. The value is a hash with the following keys:
|
1393
1394
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -1395,25 +1396,29 @@ module Google
|
|
1395
1396
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1396
1397
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1397
1398
|
# trigger a retry.
|
1398
|
-
# @return [Hash]
|
1399
|
+
# @return [::Hash]
|
1400
|
+
# @!attribute [rw] quota_project
|
1401
|
+
# A separate project against which to charge quota.
|
1402
|
+
# @return [::String]
|
1399
1403
|
#
|
1400
1404
|
class Configuration
|
1401
|
-
extend Gapic::Config
|
1405
|
+
extend ::Gapic::Config
|
1402
1406
|
|
1403
|
-
config_attr :endpoint,
|
1404
|
-
config_attr :credentials,
|
1407
|
+
config_attr :endpoint, "bigquerydatatransfer.googleapis.com", ::String
|
1408
|
+
config_attr :credentials, nil do |value|
|
1405
1409
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1406
1410
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1407
1411
|
allowed.any? { |klass| klass === value }
|
1408
1412
|
end
|
1409
|
-
config_attr :scope,
|
1410
|
-
config_attr :lib_name,
|
1411
|
-
config_attr :lib_version,
|
1412
|
-
config_attr(:channel_args,
|
1413
|
-
config_attr :interceptors,
|
1414
|
-
config_attr :timeout,
|
1415
|
-
config_attr :metadata,
|
1416
|
-
config_attr :retry_policy,
|
1413
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1414
|
+
config_attr :lib_name, nil, ::String, nil
|
1415
|
+
config_attr :lib_version, nil, ::String, nil
|
1416
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1417
|
+
config_attr :interceptors, nil, ::Array, nil
|
1418
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1419
|
+
config_attr :metadata, nil, ::Hash, nil
|
1420
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1421
|
+
config_attr :quota_project, nil, ::String, nil
|
1417
1422
|
|
1418
1423
|
# @private
|
1419
1424
|
def initialize parent_config = nil
|
@@ -1429,7 +1434,7 @@ module Google
|
|
1429
1434
|
def rpcs
|
1430
1435
|
@rpcs ||= begin
|
1431
1436
|
parent_rpcs = nil
|
1432
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
1437
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
1433
1438
|
Rpcs.new parent_rpcs
|
1434
1439
|
end
|
1435
1440
|
end
|
@@ -1454,105 +1459,105 @@ module Google
|
|
1454
1459
|
class Rpcs
|
1455
1460
|
##
|
1456
1461
|
# RPC-specific configuration for `get_data_source`
|
1457
|
-
# @return [Gapic::Config::Method]
|
1462
|
+
# @return [::Gapic::Config::Method]
|
1458
1463
|
#
|
1459
1464
|
attr_reader :get_data_source
|
1460
1465
|
##
|
1461
1466
|
# RPC-specific configuration for `list_data_sources`
|
1462
|
-
# @return [Gapic::Config::Method]
|
1467
|
+
# @return [::Gapic::Config::Method]
|
1463
1468
|
#
|
1464
1469
|
attr_reader :list_data_sources
|
1465
1470
|
##
|
1466
1471
|
# RPC-specific configuration for `create_transfer_config`
|
1467
|
-
# @return [Gapic::Config::Method]
|
1472
|
+
# @return [::Gapic::Config::Method]
|
1468
1473
|
#
|
1469
1474
|
attr_reader :create_transfer_config
|
1470
1475
|
##
|
1471
1476
|
# RPC-specific configuration for `update_transfer_config`
|
1472
|
-
# @return [Gapic::Config::Method]
|
1477
|
+
# @return [::Gapic::Config::Method]
|
1473
1478
|
#
|
1474
1479
|
attr_reader :update_transfer_config
|
1475
1480
|
##
|
1476
1481
|
# RPC-specific configuration for `delete_transfer_config`
|
1477
|
-
# @return [Gapic::Config::Method]
|
1482
|
+
# @return [::Gapic::Config::Method]
|
1478
1483
|
#
|
1479
1484
|
attr_reader :delete_transfer_config
|
1480
1485
|
##
|
1481
1486
|
# RPC-specific configuration for `get_transfer_config`
|
1482
|
-
# @return [Gapic::Config::Method]
|
1487
|
+
# @return [::Gapic::Config::Method]
|
1483
1488
|
#
|
1484
1489
|
attr_reader :get_transfer_config
|
1485
1490
|
##
|
1486
1491
|
# RPC-specific configuration for `list_transfer_configs`
|
1487
|
-
# @return [Gapic::Config::Method]
|
1492
|
+
# @return [::Gapic::Config::Method]
|
1488
1493
|
#
|
1489
1494
|
attr_reader :list_transfer_configs
|
1490
1495
|
##
|
1491
1496
|
# RPC-specific configuration for `schedule_transfer_runs`
|
1492
|
-
# @return [Gapic::Config::Method]
|
1497
|
+
# @return [::Gapic::Config::Method]
|
1493
1498
|
#
|
1494
1499
|
attr_reader :schedule_transfer_runs
|
1495
1500
|
##
|
1496
1501
|
# RPC-specific configuration for `start_manual_transfer_runs`
|
1497
|
-
# @return [Gapic::Config::Method]
|
1502
|
+
# @return [::Gapic::Config::Method]
|
1498
1503
|
#
|
1499
1504
|
attr_reader :start_manual_transfer_runs
|
1500
1505
|
##
|
1501
1506
|
# RPC-specific configuration for `get_transfer_run`
|
1502
|
-
# @return [Gapic::Config::Method]
|
1507
|
+
# @return [::Gapic::Config::Method]
|
1503
1508
|
#
|
1504
1509
|
attr_reader :get_transfer_run
|
1505
1510
|
##
|
1506
1511
|
# RPC-specific configuration for `delete_transfer_run`
|
1507
|
-
# @return [Gapic::Config::Method]
|
1512
|
+
# @return [::Gapic::Config::Method]
|
1508
1513
|
#
|
1509
1514
|
attr_reader :delete_transfer_run
|
1510
1515
|
##
|
1511
1516
|
# RPC-specific configuration for `list_transfer_runs`
|
1512
|
-
# @return [Gapic::Config::Method]
|
1517
|
+
# @return [::Gapic::Config::Method]
|
1513
1518
|
#
|
1514
1519
|
attr_reader :list_transfer_runs
|
1515
1520
|
##
|
1516
1521
|
# RPC-specific configuration for `list_transfer_logs`
|
1517
|
-
# @return [Gapic::Config::Method]
|
1522
|
+
# @return [::Gapic::Config::Method]
|
1518
1523
|
#
|
1519
1524
|
attr_reader :list_transfer_logs
|
1520
1525
|
##
|
1521
1526
|
# RPC-specific configuration for `check_valid_creds`
|
1522
|
-
# @return [Gapic::Config::Method]
|
1527
|
+
# @return [::Gapic::Config::Method]
|
1523
1528
|
#
|
1524
1529
|
attr_reader :check_valid_creds
|
1525
1530
|
|
1526
1531
|
# @private
|
1527
1532
|
def initialize parent_rpcs = nil
|
1528
1533
|
get_data_source_config = parent_rpcs&.get_data_source if parent_rpcs&.respond_to? :get_data_source
|
1529
|
-
@get_data_source = Gapic::Config::Method.new get_data_source_config
|
1534
|
+
@get_data_source = ::Gapic::Config::Method.new get_data_source_config
|
1530
1535
|
list_data_sources_config = parent_rpcs&.list_data_sources if parent_rpcs&.respond_to? :list_data_sources
|
1531
|
-
@list_data_sources = Gapic::Config::Method.new list_data_sources_config
|
1536
|
+
@list_data_sources = ::Gapic::Config::Method.new list_data_sources_config
|
1532
1537
|
create_transfer_config_config = parent_rpcs&.create_transfer_config if parent_rpcs&.respond_to? :create_transfer_config
|
1533
|
-
@create_transfer_config = Gapic::Config::Method.new create_transfer_config_config
|
1538
|
+
@create_transfer_config = ::Gapic::Config::Method.new create_transfer_config_config
|
1534
1539
|
update_transfer_config_config = parent_rpcs&.update_transfer_config if parent_rpcs&.respond_to? :update_transfer_config
|
1535
|
-
@update_transfer_config = Gapic::Config::Method.new update_transfer_config_config
|
1540
|
+
@update_transfer_config = ::Gapic::Config::Method.new update_transfer_config_config
|
1536
1541
|
delete_transfer_config_config = parent_rpcs&.delete_transfer_config if parent_rpcs&.respond_to? :delete_transfer_config
|
1537
|
-
@delete_transfer_config = Gapic::Config::Method.new delete_transfer_config_config
|
1542
|
+
@delete_transfer_config = ::Gapic::Config::Method.new delete_transfer_config_config
|
1538
1543
|
get_transfer_config_config = parent_rpcs&.get_transfer_config if parent_rpcs&.respond_to? :get_transfer_config
|
1539
|
-
@get_transfer_config = Gapic::Config::Method.new get_transfer_config_config
|
1544
|
+
@get_transfer_config = ::Gapic::Config::Method.new get_transfer_config_config
|
1540
1545
|
list_transfer_configs_config = parent_rpcs&.list_transfer_configs if parent_rpcs&.respond_to? :list_transfer_configs
|
1541
|
-
@list_transfer_configs = Gapic::Config::Method.new list_transfer_configs_config
|
1546
|
+
@list_transfer_configs = ::Gapic::Config::Method.new list_transfer_configs_config
|
1542
1547
|
schedule_transfer_runs_config = parent_rpcs&.schedule_transfer_runs if parent_rpcs&.respond_to? :schedule_transfer_runs
|
1543
|
-
@schedule_transfer_runs = Gapic::Config::Method.new schedule_transfer_runs_config
|
1548
|
+
@schedule_transfer_runs = ::Gapic::Config::Method.new schedule_transfer_runs_config
|
1544
1549
|
start_manual_transfer_runs_config = parent_rpcs&.start_manual_transfer_runs if parent_rpcs&.respond_to? :start_manual_transfer_runs
|
1545
|
-
@start_manual_transfer_runs = Gapic::Config::Method.new start_manual_transfer_runs_config
|
1550
|
+
@start_manual_transfer_runs = ::Gapic::Config::Method.new start_manual_transfer_runs_config
|
1546
1551
|
get_transfer_run_config = parent_rpcs&.get_transfer_run if parent_rpcs&.respond_to? :get_transfer_run
|
1547
|
-
@get_transfer_run = Gapic::Config::Method.new get_transfer_run_config
|
1552
|
+
@get_transfer_run = ::Gapic::Config::Method.new get_transfer_run_config
|
1548
1553
|
delete_transfer_run_config = parent_rpcs&.delete_transfer_run if parent_rpcs&.respond_to? :delete_transfer_run
|
1549
|
-
@delete_transfer_run = Gapic::Config::Method.new delete_transfer_run_config
|
1554
|
+
@delete_transfer_run = ::Gapic::Config::Method.new delete_transfer_run_config
|
1550
1555
|
list_transfer_runs_config = parent_rpcs&.list_transfer_runs if parent_rpcs&.respond_to? :list_transfer_runs
|
1551
|
-
@list_transfer_runs = Gapic::Config::Method.new list_transfer_runs_config
|
1556
|
+
@list_transfer_runs = ::Gapic::Config::Method.new list_transfer_runs_config
|
1552
1557
|
list_transfer_logs_config = parent_rpcs&.list_transfer_logs if parent_rpcs&.respond_to? :list_transfer_logs
|
1553
|
-
@list_transfer_logs = Gapic::Config::Method.new list_transfer_logs_config
|
1558
|
+
@list_transfer_logs = ::Gapic::Config::Method.new list_transfer_logs_config
|
1554
1559
|
check_valid_creds_config = parent_rpcs&.check_valid_creds if parent_rpcs&.respond_to? :check_valid_creds
|
1555
|
-
@check_valid_creds = Gapic::Config::Method.new check_valid_creds_config
|
1560
|
+
@check_valid_creds = ::Gapic::Config::Method.new check_valid_creds_config
|
1556
1561
|
|
1557
1562
|
yield self if block_given?
|
1558
1563
|
end
|