google-cloud-bigquery-data_transfer-v1 0.4.2 → 0.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24ae4b3454274e215f40d7158f366a38da00f1d48379e8a6a959ce951761d120
4
- data.tar.gz: e509dd369ee6ab15cc5aac337737b690f8d951f4b9814125992dfdf9ea1cd9df
3
+ metadata.gz: c5e500aa77ee27ae194a0bfc426c2031d6d42657f40d5636ef2cc0a33ed6d434
4
+ data.tar.gz: 8e4ecdf74c6cf64b8cf67c800153d93f6ec14f0577d03ad56741dd84da1a9b7a
5
5
  SHA512:
6
- metadata.gz: 83ae129b251781deb0c22a0cbcdd9f01c2958781c56e349fd343ec830b7d13367d8da1eb5a200a9e08c5b9c3fd4c4c9db9d02717a3609c87191ecdd1ffd0bda1
7
- data.tar.gz: 19c757bfffa87c278b0fc51502ce243ddcaebb265e4f67900498c0c43d4aaede65bc9530ab0e36a036493fd2d32020faf8e51ef5f817e32c6ffc80b7f5a201ef
6
+ metadata.gz: 188119b7c9e29906d50046d451839da0280d95c5b626d601dc17d7c9854aedef0a54e75b9c9128b35873218a99989748b96bd2e2fb05bfa1df5869c2cf62cecd
7
+ data.tar.gz: 36b1511fb46cb6c35ee7bf1c74068ed0ddab4fe5a79b1b6d3e2dad037448d45d448724ea1051939a237aec851cf9a93db2dc01d8bd856c508b9fcf823085566c
@@ -45,13 +45,12 @@ module Google
45
45
  # See {::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client::Configuration}
46
46
  # for a description of the configuration fields.
47
47
  #
48
- # ## Example
48
+ # @example
49
49
  #
50
- # To modify the configuration for all DataTransferService clients:
51
- #
52
- # ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
53
- # config.timeout = 10.0
54
- # end
50
+ # # Modify the configuration for all DataTransferService clients
51
+ # ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
52
+ # config.timeout = 10.0
53
+ # end
55
54
  #
56
55
  # @yield [config] Configure the Client client.
57
56
  # @yieldparam config [Client::Configuration]
@@ -154,19 +153,15 @@ module Google
154
153
  ##
155
154
  # Create a new DataTransferService client object.
156
155
  #
157
- # ## Examples
158
- #
159
- # To create a new DataTransferService client with the default
160
- # configuration:
161
- #
162
- # client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
156
+ # @example
163
157
  #
164
- # To create a new DataTransferService client with a custom
165
- # configuration:
158
+ # # Create a client using the default configuration
159
+ # client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
166
160
  #
167
- # client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
168
- # config.timeout = 10.0
169
- # end
161
+ # # Create a client using a custom configuration
162
+ # client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
163
+ # config.timeout = 10.0
164
+ # end
170
165
  #
171
166
  # @yield [config] Configure the DataTransferService client.
172
167
  # @yieldparam config [Client::Configuration]
@@ -186,10 +181,9 @@ module Google
186
181
 
187
182
  # Create credentials
188
183
  credentials = @config.credentials
189
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
184
+ # Use self-signed JWT if the endpoint is unchanged from default,
190
185
  # but only if the default endpoint does not have a region prefix.
191
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
192
- @config.endpoint == Client.configure.endpoint &&
186
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
193
187
  !@config.endpoint.split(".").first.include?("-")
194
188
  credentials ||= Credentials.default scope: @config.scope,
195
189
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -268,7 +262,9 @@ module Google
268
262
  options.apply_defaults timeout: @config.rpcs.get_data_source.timeout,
269
263
  metadata: metadata,
270
264
  retry_policy: @config.rpcs.get_data_source.retry_policy
271
- options.apply_defaults metadata: @config.metadata,
265
+
266
+ options.apply_defaults timeout: @config.timeout,
267
+ metadata: @config.metadata,
272
268
  retry_policy: @config.retry_policy
273
269
 
274
270
  @data_transfer_service_stub.call_rpc :get_data_source, request, options: options do |response, operation|
@@ -345,7 +341,9 @@ module Google
345
341
  options.apply_defaults timeout: @config.rpcs.list_data_sources.timeout,
346
342
  metadata: metadata,
347
343
  retry_policy: @config.rpcs.list_data_sources.retry_policy
348
- options.apply_defaults metadata: @config.metadata,
344
+
345
+ options.apply_defaults timeout: @config.timeout,
346
+ metadata: @config.metadata,
349
347
  retry_policy: @config.retry_policy
350
348
 
351
349
  @data_transfer_service_stub.call_rpc :list_data_sources, request, options: options do |response, operation|
@@ -446,7 +444,9 @@ module Google
446
444
  options.apply_defaults timeout: @config.rpcs.create_transfer_config.timeout,
447
445
  metadata: metadata,
448
446
  retry_policy: @config.rpcs.create_transfer_config.retry_policy
449
- options.apply_defaults metadata: @config.metadata,
447
+
448
+ options.apply_defaults timeout: @config.timeout,
449
+ metadata: @config.metadata,
450
450
  retry_policy: @config.retry_policy
451
451
 
452
452
  @data_transfer_service_stub.call_rpc :create_transfer_config, request, options: options do |response, operation|
@@ -545,7 +545,9 @@ module Google
545
545
  options.apply_defaults timeout: @config.rpcs.update_transfer_config.timeout,
546
546
  metadata: metadata,
547
547
  retry_policy: @config.rpcs.update_transfer_config.retry_policy
548
- options.apply_defaults metadata: @config.metadata,
548
+
549
+ options.apply_defaults timeout: @config.timeout,
550
+ metadata: @config.metadata,
549
551
  retry_policy: @config.retry_policy
550
552
 
551
553
  @data_transfer_service_stub.call_rpc :update_transfer_config, request, options: options do |response, operation|
@@ -614,7 +616,9 @@ module Google
614
616
  options.apply_defaults timeout: @config.rpcs.delete_transfer_config.timeout,
615
617
  metadata: metadata,
616
618
  retry_policy: @config.rpcs.delete_transfer_config.retry_policy
617
- options.apply_defaults metadata: @config.metadata,
619
+
620
+ options.apply_defaults timeout: @config.timeout,
621
+ metadata: @config.metadata,
618
622
  retry_policy: @config.retry_policy
619
623
 
620
624
  @data_transfer_service_stub.call_rpc :delete_transfer_config, request, options: options do |response, operation|
@@ -682,7 +686,9 @@ module Google
682
686
  options.apply_defaults timeout: @config.rpcs.get_transfer_config.timeout,
683
687
  metadata: metadata,
684
688
  retry_policy: @config.rpcs.get_transfer_config.retry_policy
685
- options.apply_defaults metadata: @config.metadata,
689
+
690
+ options.apply_defaults timeout: @config.timeout,
691
+ metadata: @config.metadata,
686
692
  retry_policy: @config.retry_policy
687
693
 
688
694
  @data_transfer_service_stub.call_rpc :get_transfer_config, request, options: options do |response, operation|
@@ -760,7 +766,9 @@ module Google
760
766
  options.apply_defaults timeout: @config.rpcs.list_transfer_configs.timeout,
761
767
  metadata: metadata,
762
768
  retry_policy: @config.rpcs.list_transfer_configs.retry_policy
763
- options.apply_defaults metadata: @config.metadata,
769
+
770
+ options.apply_defaults timeout: @config.timeout,
771
+ metadata: @config.metadata,
764
772
  retry_policy: @config.retry_policy
765
773
 
766
774
  @data_transfer_service_stub.call_rpc :list_transfer_configs, request, options: options do |response, operation|
@@ -779,6 +787,8 @@ module Google
779
787
  # Note that runs are created per UTC time in the time range.
780
788
  # DEPRECATED: use StartManualTransferRuns instead.
781
789
  #
790
+ # @deprecated This method is deprecated and may be removed in the next major version update.
791
+ #
782
792
  # @overload schedule_transfer_runs(request, options = nil)
783
793
  # Pass arguments to `schedule_transfer_runs` via a request object, either of type
784
794
  # {::Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest} or an equivalent Hash.
@@ -839,7 +849,9 @@ module Google
839
849
  options.apply_defaults timeout: @config.rpcs.schedule_transfer_runs.timeout,
840
850
  metadata: metadata,
841
851
  retry_policy: @config.rpcs.schedule_transfer_runs.retry_policy
842
- options.apply_defaults metadata: @config.metadata,
852
+
853
+ options.apply_defaults timeout: @config.timeout,
854
+ metadata: @config.metadata,
843
855
  retry_policy: @config.retry_policy
844
856
 
845
857
  @data_transfer_service_stub.call_rpc :schedule_transfer_runs, request, options: options do |response, operation|
@@ -915,7 +927,9 @@ module Google
915
927
  options.apply_defaults timeout: @config.rpcs.start_manual_transfer_runs.timeout,
916
928
  metadata: metadata,
917
929
  retry_policy: @config.rpcs.start_manual_transfer_runs.retry_policy
918
- options.apply_defaults metadata: @config.metadata,
930
+
931
+ options.apply_defaults timeout: @config.timeout,
932
+ metadata: @config.metadata,
919
933
  retry_policy: @config.retry_policy
920
934
 
921
935
  @data_transfer_service_stub.call_rpc :start_manual_transfer_runs, request, options: options do |response, operation|
@@ -983,7 +997,9 @@ module Google
983
997
  options.apply_defaults timeout: @config.rpcs.get_transfer_run.timeout,
984
998
  metadata: metadata,
985
999
  retry_policy: @config.rpcs.get_transfer_run.retry_policy
986
- options.apply_defaults metadata: @config.metadata,
1000
+
1001
+ options.apply_defaults timeout: @config.timeout,
1002
+ metadata: @config.metadata,
987
1003
  retry_policy: @config.retry_policy
988
1004
 
989
1005
  @data_transfer_service_stub.call_rpc :get_transfer_run, request, options: options do |response, operation|
@@ -1051,7 +1067,9 @@ module Google
1051
1067
  options.apply_defaults timeout: @config.rpcs.delete_transfer_run.timeout,
1052
1068
  metadata: metadata,
1053
1069
  retry_policy: @config.rpcs.delete_transfer_run.retry_policy
1054
- options.apply_defaults metadata: @config.metadata,
1070
+
1071
+ options.apply_defaults timeout: @config.timeout,
1072
+ metadata: @config.metadata,
1055
1073
  retry_policy: @config.retry_policy
1056
1074
 
1057
1075
  @data_transfer_service_stub.call_rpc :delete_transfer_run, request, options: options do |response, operation|
@@ -1132,7 +1150,9 @@ module Google
1132
1150
  options.apply_defaults timeout: @config.rpcs.list_transfer_runs.timeout,
1133
1151
  metadata: metadata,
1134
1152
  retry_policy: @config.rpcs.list_transfer_runs.retry_policy
1135
- options.apply_defaults metadata: @config.metadata,
1153
+
1154
+ options.apply_defaults timeout: @config.timeout,
1155
+ metadata: @config.metadata,
1136
1156
  retry_policy: @config.retry_policy
1137
1157
 
1138
1158
  @data_transfer_service_stub.call_rpc :list_transfer_runs, request, options: options do |response, operation|
@@ -1212,7 +1232,9 @@ module Google
1212
1232
  options.apply_defaults timeout: @config.rpcs.list_transfer_logs.timeout,
1213
1233
  metadata: metadata,
1214
1234
  retry_policy: @config.rpcs.list_transfer_logs.retry_policy
1215
- options.apply_defaults metadata: @config.metadata,
1235
+
1236
+ options.apply_defaults timeout: @config.timeout,
1237
+ metadata: @config.metadata,
1216
1238
  retry_policy: @config.retry_policy
1217
1239
 
1218
1240
  @data_transfer_service_stub.call_rpc :list_transfer_logs, request, options: options do |response, operation|
@@ -1286,7 +1308,9 @@ module Google
1286
1308
  options.apply_defaults timeout: @config.rpcs.check_valid_creds.timeout,
1287
1309
  metadata: metadata,
1288
1310
  retry_policy: @config.rpcs.check_valid_creds.retry_policy
1289
- options.apply_defaults metadata: @config.metadata,
1311
+
1312
+ options.apply_defaults timeout: @config.timeout,
1313
+ metadata: @config.metadata,
1290
1314
  retry_policy: @config.retry_policy
1291
1315
 
1292
1316
  @data_transfer_service_stub.call_rpc :check_valid_creds, request, options: options do |response, operation|
@@ -1310,22 +1334,21 @@ module Google
1310
1334
  # Configuration can be applied globally to all clients, or to a single client
1311
1335
  # on construction.
1312
1336
  #
1313
- # # Examples
1314
- #
1315
- # To modify the global config, setting the timeout for get_data_source
1316
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1317
- #
1318
- # ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.configure do |config|
1319
- # config.timeout = 10.0
1320
- # config.rpcs.get_data_source.timeout = 20.0
1321
- # end
1322
- #
1323
- # To apply the above configuration only to a new client:
1324
- #
1325
- # client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new do |config|
1326
- # config.timeout = 10.0
1327
- # config.rpcs.get_data_source.timeout = 20.0
1328
- # end
1337
+ # @example
1338
+ #
1339
+ # # Modify the global config, setting the timeout for
1340
+ # # get_data_source to 20 seconds,
1341
+ # # and all remaining timeouts to 10 seconds.
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
1345
+ # end
1346
+ #
1347
+ # # Apply the above configuration only to a new client.
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
+ # end
1329
1352
  #
1330
1353
  # @!attribute [rw] endpoint
1331
1354
  # The hostname or hostname:port of the service endpoint.
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module DataTransfer
24
24
  module V1
25
- VERSION = "0.4.2"
25
+ VERSION = "0.4.3"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-data_transfer-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a