google-cloud-cloud_dms-v1 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb4c789d7a500af3837f03a683a9aea6812c45d2304cf7eeaaa3d0be782629cc
4
- data.tar.gz: bf62e1bbfde73afd797b443ad5aa0cd5dccc5be88008a78772c9798e27065dae
3
+ metadata.gz: 7fd1a04d165169900a20f439c7b284c22093d393cf29a9b5fcee93b98c90fb59
4
+ data.tar.gz: 286467e41bf1e4194f88669927e7defe50029837c8361e25dd71652f3b4bca7f
5
5
  SHA512:
6
- metadata.gz: 51525dddd91f5b196a3179912430587c7156c97c4d41756623cd9e5959b7f2964faf47af84fcad8b480c55f835f4c142dc65ce8e245b5eed0584bfee183067b8
7
- data.tar.gz: fca20a4d743edcc9aec5dea12a4def64e2e3661c109feee681dc91995eec88d271a99ec6a67cdd43b272be5a723693c947a091e134773d36db782319270de70b
6
+ metadata.gz: 2654e4a5b35a64842873d2d27ad1aa52867c69bbfb24c0da503d21eb8184041c1a52a29970e1759e0a2584ac245cbfe0ccb7a932813a61840ce7640d133cc5a0
7
+ data.tar.gz: 4464855288b9a0d5d425066a31f0ea196158396d84d0e3024fe2d3f68f62915e5c2b5ceb2fd393c31e5b59e88c58a60f19f8c7183aac50bc5878cf7f9a663900
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::CloudDMS::V1::DataMigrationService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all DataMigrationService clients:
47
- #
48
- # ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all DataMigrationService clients
47
+ # ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -133,19 +132,15 @@ module Google
133
132
  ##
134
133
  # Create a new DataMigrationService client object.
135
134
  #
136
- # ## Examples
137
- #
138
- # To create a new DataMigrationService client with the default
139
- # configuration:
140
- #
141
- # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
135
+ # @example
142
136
  #
143
- # To create a new DataMigrationService client with a custom
144
- # configuration:
137
+ # # Create a client using the default configuration
138
+ # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
145
139
  #
146
- # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |config|
147
- # config.timeout = 10.0
148
- # end
140
+ # # Create a client using a custom configuration
141
+ # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |config|
142
+ # config.timeout = 10.0
143
+ # end
149
144
  #
150
145
  # @yield [config] Configure the DataMigrationService client.
151
146
  # @yieldparam config [Client::Configuration]
@@ -165,10 +160,9 @@ module Google
165
160
 
166
161
  # Create credentials
167
162
  credentials = @config.credentials
168
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
163
+ # Use self-signed JWT if the endpoint is unchanged from default,
169
164
  # but only if the default endpoint does not have a region prefix.
170
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
171
- @config.endpoint == Client.configure.endpoint &&
165
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
172
166
  !@config.endpoint.split(".").first.include?("-")
173
167
  credentials ||= Credentials.default scope: @config.scope,
174
168
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -280,7 +274,9 @@ module Google
280
274
  options.apply_defaults timeout: @config.rpcs.list_migration_jobs.timeout,
281
275
  metadata: metadata,
282
276
  retry_policy: @config.rpcs.list_migration_jobs.retry_policy
283
- options.apply_defaults metadata: @config.metadata,
277
+
278
+ options.apply_defaults timeout: @config.timeout,
279
+ metadata: @config.metadata,
284
280
  retry_policy: @config.retry_policy
285
281
 
286
282
  @data_migration_service_stub.call_rpc :list_migration_jobs, request, options: options do |response, operation|
@@ -347,7 +343,9 @@ module Google
347
343
  options.apply_defaults timeout: @config.rpcs.get_migration_job.timeout,
348
344
  metadata: metadata,
349
345
  retry_policy: @config.rpcs.get_migration_job.retry_policy
350
- options.apply_defaults metadata: @config.metadata,
346
+
347
+ options.apply_defaults timeout: @config.timeout,
348
+ metadata: @config.metadata,
351
349
  retry_policy: @config.retry_policy
352
350
 
353
351
  @data_migration_service_stub.call_rpc :get_migration_job, request, options: options do |response, operation|
@@ -427,7 +425,9 @@ module Google
427
425
  options.apply_defaults timeout: @config.rpcs.create_migration_job.timeout,
428
426
  metadata: metadata,
429
427
  retry_policy: @config.rpcs.create_migration_job.retry_policy
430
- options.apply_defaults metadata: @config.metadata,
428
+
429
+ options.apply_defaults timeout: @config.timeout,
430
+ metadata: @config.metadata,
431
431
  retry_policy: @config.retry_policy
432
432
 
433
433
  @data_migration_service_stub.call_rpc :create_migration_job, request, options: options do |response, operation|
@@ -505,7 +505,9 @@ module Google
505
505
  options.apply_defaults timeout: @config.rpcs.update_migration_job.timeout,
506
506
  metadata: metadata,
507
507
  retry_policy: @config.rpcs.update_migration_job.retry_policy
508
- options.apply_defaults metadata: @config.metadata,
508
+
509
+ options.apply_defaults timeout: @config.timeout,
510
+ metadata: @config.metadata,
509
511
  retry_policy: @config.retry_policy
510
512
 
511
513
  @data_migration_service_stub.call_rpc :update_migration_job, request, options: options do |response, operation|
@@ -584,7 +586,9 @@ module Google
584
586
  options.apply_defaults timeout: @config.rpcs.delete_migration_job.timeout,
585
587
  metadata: metadata,
586
588
  retry_policy: @config.rpcs.delete_migration_job.retry_policy
587
- options.apply_defaults metadata: @config.metadata,
589
+
590
+ options.apply_defaults timeout: @config.timeout,
591
+ metadata: @config.metadata,
588
592
  retry_policy: @config.retry_policy
589
593
 
590
594
  @data_migration_service_stub.call_rpc :delete_migration_job, request, options: options do |response, operation|
@@ -651,7 +655,9 @@ module Google
651
655
  options.apply_defaults timeout: @config.rpcs.start_migration_job.timeout,
652
656
  metadata: metadata,
653
657
  retry_policy: @config.rpcs.start_migration_job.retry_policy
654
- options.apply_defaults metadata: @config.metadata,
658
+
659
+ options.apply_defaults timeout: @config.timeout,
660
+ metadata: @config.metadata,
655
661
  retry_policy: @config.retry_policy
656
662
 
657
663
  @data_migration_service_stub.call_rpc :start_migration_job, request, options: options do |response, operation|
@@ -718,7 +724,9 @@ module Google
718
724
  options.apply_defaults timeout: @config.rpcs.stop_migration_job.timeout,
719
725
  metadata: metadata,
720
726
  retry_policy: @config.rpcs.stop_migration_job.retry_policy
721
- options.apply_defaults metadata: @config.metadata,
727
+
728
+ options.apply_defaults timeout: @config.timeout,
729
+ metadata: @config.metadata,
722
730
  retry_policy: @config.retry_policy
723
731
 
724
732
  @data_migration_service_stub.call_rpc :stop_migration_job, request, options: options do |response, operation|
@@ -786,7 +794,9 @@ module Google
786
794
  options.apply_defaults timeout: @config.rpcs.resume_migration_job.timeout,
787
795
  metadata: metadata,
788
796
  retry_policy: @config.rpcs.resume_migration_job.retry_policy
789
- options.apply_defaults metadata: @config.metadata,
797
+
798
+ options.apply_defaults timeout: @config.timeout,
799
+ metadata: @config.metadata,
790
800
  retry_policy: @config.retry_policy
791
801
 
792
802
  @data_migration_service_stub.call_rpc :resume_migration_job, request, options: options do |response, operation|
@@ -854,7 +864,9 @@ module Google
854
864
  options.apply_defaults timeout: @config.rpcs.promote_migration_job.timeout,
855
865
  metadata: metadata,
856
866
  retry_policy: @config.rpcs.promote_migration_job.retry_policy
857
- options.apply_defaults metadata: @config.metadata,
867
+
868
+ options.apply_defaults timeout: @config.timeout,
869
+ metadata: @config.metadata,
858
870
  retry_policy: @config.retry_policy
859
871
 
860
872
  @data_migration_service_stub.call_rpc :promote_migration_job, request, options: options do |response, operation|
@@ -922,7 +934,9 @@ module Google
922
934
  options.apply_defaults timeout: @config.rpcs.verify_migration_job.timeout,
923
935
  metadata: metadata,
924
936
  retry_policy: @config.rpcs.verify_migration_job.retry_policy
925
- options.apply_defaults metadata: @config.metadata,
937
+
938
+ options.apply_defaults timeout: @config.timeout,
939
+ metadata: @config.metadata,
926
940
  retry_policy: @config.retry_policy
927
941
 
928
942
  @data_migration_service_stub.call_rpc :verify_migration_job, request, options: options do |response, operation|
@@ -991,7 +1005,9 @@ module Google
991
1005
  options.apply_defaults timeout: @config.rpcs.restart_migration_job.timeout,
992
1006
  metadata: metadata,
993
1007
  retry_policy: @config.rpcs.restart_migration_job.retry_policy
994
- options.apply_defaults metadata: @config.metadata,
1008
+
1009
+ options.apply_defaults timeout: @config.timeout,
1010
+ metadata: @config.metadata,
995
1011
  retry_policy: @config.retry_policy
996
1012
 
997
1013
  @data_migration_service_stub.call_rpc :restart_migration_job, request, options: options do |response, operation|
@@ -1067,7 +1083,9 @@ module Google
1067
1083
  options.apply_defaults timeout: @config.rpcs.generate_ssh_script.timeout,
1068
1084
  metadata: metadata,
1069
1085
  retry_policy: @config.rpcs.generate_ssh_script.retry_policy
1070
- options.apply_defaults metadata: @config.metadata,
1086
+
1087
+ options.apply_defaults timeout: @config.timeout,
1088
+ metadata: @config.metadata,
1071
1089
  retry_policy: @config.retry_policy
1072
1090
 
1073
1091
  @data_migration_service_stub.call_rpc :generate_ssh_script, request, options: options do |response, operation|
@@ -1156,7 +1174,9 @@ module Google
1156
1174
  options.apply_defaults timeout: @config.rpcs.list_connection_profiles.timeout,
1157
1175
  metadata: metadata,
1158
1176
  retry_policy: @config.rpcs.list_connection_profiles.retry_policy
1159
- options.apply_defaults metadata: @config.metadata,
1177
+
1178
+ options.apply_defaults timeout: @config.timeout,
1179
+ metadata: @config.metadata,
1160
1180
  retry_policy: @config.retry_policy
1161
1181
 
1162
1182
  @data_migration_service_stub.call_rpc :list_connection_profiles, request, options: options do |response, operation|
@@ -1223,7 +1243,9 @@ module Google
1223
1243
  options.apply_defaults timeout: @config.rpcs.get_connection_profile.timeout,
1224
1244
  metadata: metadata,
1225
1245
  retry_policy: @config.rpcs.get_connection_profile.retry_policy
1226
- options.apply_defaults metadata: @config.metadata,
1246
+
1247
+ options.apply_defaults timeout: @config.timeout,
1248
+ metadata: @config.metadata,
1227
1249
  retry_policy: @config.retry_policy
1228
1250
 
1229
1251
  @data_migration_service_stub.call_rpc :get_connection_profile, request, options: options do |response, operation|
@@ -1301,7 +1323,9 @@ module Google
1301
1323
  options.apply_defaults timeout: @config.rpcs.create_connection_profile.timeout,
1302
1324
  metadata: metadata,
1303
1325
  retry_policy: @config.rpcs.create_connection_profile.retry_policy
1304
- options.apply_defaults metadata: @config.metadata,
1326
+
1327
+ options.apply_defaults timeout: @config.timeout,
1328
+ metadata: @config.metadata,
1305
1329
  retry_policy: @config.retry_policy
1306
1330
 
1307
1331
  @data_migration_service_stub.call_rpc :create_connection_profile, request, options: options do |response, operation|
@@ -1379,7 +1403,9 @@ module Google
1379
1403
  options.apply_defaults timeout: @config.rpcs.update_connection_profile.timeout,
1380
1404
  metadata: metadata,
1381
1405
  retry_policy: @config.rpcs.update_connection_profile.retry_policy
1382
- options.apply_defaults metadata: @config.metadata,
1406
+
1407
+ options.apply_defaults timeout: @config.timeout,
1408
+ metadata: @config.metadata,
1383
1409
  retry_policy: @config.retry_policy
1384
1410
 
1385
1411
  @data_migration_service_stub.call_rpc :update_connection_profile, request, options: options do |response, operation|
@@ -1459,7 +1485,9 @@ module Google
1459
1485
  options.apply_defaults timeout: @config.rpcs.delete_connection_profile.timeout,
1460
1486
  metadata: metadata,
1461
1487
  retry_policy: @config.rpcs.delete_connection_profile.retry_policy
1462
- options.apply_defaults metadata: @config.metadata,
1488
+
1489
+ options.apply_defaults timeout: @config.timeout,
1490
+ metadata: @config.metadata,
1463
1491
  retry_policy: @config.retry_policy
1464
1492
 
1465
1493
  @data_migration_service_stub.call_rpc :delete_connection_profile, request, options: options do |response, operation|
@@ -1484,22 +1512,21 @@ module Google
1484
1512
  # Configuration can be applied globally to all clients, or to a single client
1485
1513
  # on construction.
1486
1514
  #
1487
- # # Examples
1488
- #
1489
- # To modify the global config, setting the timeout for list_migration_jobs
1490
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1491
- #
1492
- # ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.configure do |config|
1493
- # config.timeout = 10.0
1494
- # config.rpcs.list_migration_jobs.timeout = 20.0
1495
- # end
1496
- #
1497
- # To apply the above configuration only to a new client:
1498
- #
1499
- # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |config|
1500
- # config.timeout = 10.0
1501
- # config.rpcs.list_migration_jobs.timeout = 20.0
1502
- # end
1515
+ # @example
1516
+ #
1517
+ # # Modify the global config, setting the timeout for
1518
+ # # list_migration_jobs to 20 seconds,
1519
+ # # and all remaining timeouts to 10 seconds.
1520
+ # ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.configure do |config|
1521
+ # config.timeout = 10.0
1522
+ # config.rpcs.list_migration_jobs.timeout = 20.0
1523
+ # end
1524
+ #
1525
+ # # Apply the above configuration only to a new client.
1526
+ # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |config|
1527
+ # config.timeout = 10.0
1528
+ # config.rpcs.list_migration_jobs.timeout = 20.0
1529
+ # end
1503
1530
  #
1504
1531
  # @!attribute [rw] endpoint
1505
1532
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module CloudDMS
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.1.2"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-cloud_dms-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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