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