google-cloud-network_connectivity-v1alpha1 0.4.2 → 0.4.3

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: 56dae6ce1a03d9345b19bd09a5f5b1dcbd031e15cac212658168db8b81244de8
4
- data.tar.gz: 23278b77106bd72ec710064c91994449f0ef19f75d925fa8275fc6cb43963802
3
+ metadata.gz: b143afab68f607e313c9fc1067342aa701b424eae3a5d628da835a67a648eceb
4
+ data.tar.gz: eb3275865c412a5f5233f4c89ac44af58c61a43cd369c50e4d3280fc8a0cbf6e
5
5
  SHA512:
6
- metadata.gz: 2dbb6eb35fd345496821eb753a8eb93d6239587d46a8f71bf6ea9b72f94062c097054ec575e357c2cdb878af240e70adc0f55fea0c5185c2b8892dbd8a0e0827
7
- data.tar.gz: dae74b87c3b22317fbca32514f537c62ba9401f651c0193a9d494a88e4f9ea980ee8f41e3612885e9826049478c01b72e846e59c19e512416c0f6b084b08a505
6
+ metadata.gz: 51053b7d589039c1769d8b290bb8a754273dd25d238ffb0924e8133c1541f52ea564b123c845595dcffc2cb75cde390e66963d33f9cff79af582b85958412b9b
7
+ data.tar.gz: ee7e2aba20975198ac1bc3596cab17ad9f356ffb3d6c1dfeab2704eef9ba80c8b8adb7551a7b0effa038275101785506f0148771bcc3be5b72d57d2acaf715ac
@@ -44,13 +44,12 @@ module Google
44
44
  # See {::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client::Configuration}
45
45
  # for a description of the configuration fields.
46
46
  #
47
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all HubService clients:
50
- #
51
- # ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.configure do |config|
52
- # config.timeout = 10.0
53
- # end
49
+ # # Modify the configuration for all HubService clients
50
+ # ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.configure do |config|
51
+ # config.timeout = 10.0
52
+ # end
54
53
  #
55
54
  # @yield [config] Configure the Client client.
56
55
  # @yieldparam config [Client::Configuration]
@@ -114,19 +113,15 @@ module Google
114
113
  ##
115
114
  # Create a new HubService client object.
116
115
  #
117
- # ## Examples
118
- #
119
- # To create a new HubService client with the default
120
- # configuration:
121
- #
122
- # client = ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
116
+ # @example
123
117
  #
124
- # To create a new HubService client with a custom
125
- # configuration:
118
+ # # Create a client using the default configuration
119
+ # client = ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
126
120
  #
127
- # client = ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new do |config|
128
- # config.timeout = 10.0
129
- # end
121
+ # # Create a client using a custom configuration
122
+ # client = ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new do |config|
123
+ # config.timeout = 10.0
124
+ # end
130
125
  #
131
126
  # @yield [config] Configure the HubService client.
132
127
  # @yieldparam config [Client::Configuration]
@@ -146,10 +141,9 @@ module Google
146
141
 
147
142
  # Create credentials
148
143
  credentials = @config.credentials
149
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
144
+ # Use self-signed JWT if the endpoint is unchanged from default,
150
145
  # but only if the default endpoint does not have a region prefix.
151
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
152
- @config.endpoint == Client.configure.endpoint &&
146
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
153
147
  !@config.endpoint.split(".").first.include?("-")
154
148
  credentials ||= Credentials.default scope: @config.scope,
155
149
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -245,7 +239,9 @@ module Google
245
239
  options.apply_defaults timeout: @config.rpcs.list_hubs.timeout,
246
240
  metadata: metadata,
247
241
  retry_policy: @config.rpcs.list_hubs.retry_policy
248
- options.apply_defaults metadata: @config.metadata,
242
+
243
+ options.apply_defaults timeout: @config.timeout,
244
+ metadata: @config.metadata,
249
245
  retry_policy: @config.retry_policy
250
246
 
251
247
  @hub_service_stub.call_rpc :list_hubs, request, options: options do |response, operation|
@@ -312,7 +308,9 @@ module Google
312
308
  options.apply_defaults timeout: @config.rpcs.get_hub.timeout,
313
309
  metadata: metadata,
314
310
  retry_policy: @config.rpcs.get_hub.retry_policy
315
- options.apply_defaults metadata: @config.metadata,
311
+
312
+ options.apply_defaults timeout: @config.timeout,
313
+ metadata: @config.metadata,
316
314
  retry_policy: @config.retry_policy
317
315
 
318
316
  @hub_service_stub.call_rpc :get_hub, request, options: options do |response, operation|
@@ -396,7 +394,9 @@ module Google
396
394
  options.apply_defaults timeout: @config.rpcs.create_hub.timeout,
397
395
  metadata: metadata,
398
396
  retry_policy: @config.rpcs.create_hub.retry_policy
399
- options.apply_defaults metadata: @config.metadata,
397
+
398
+ options.apply_defaults timeout: @config.timeout,
399
+ metadata: @config.metadata,
400
400
  retry_policy: @config.retry_policy
401
401
 
402
402
  @hub_service_stub.call_rpc :create_hub, request, options: options do |response, operation|
@@ -483,7 +483,9 @@ module Google
483
483
  options.apply_defaults timeout: @config.rpcs.update_hub.timeout,
484
484
  metadata: metadata,
485
485
  retry_policy: @config.rpcs.update_hub.retry_policy
486
- options.apply_defaults metadata: @config.metadata,
486
+
487
+ options.apply_defaults timeout: @config.timeout,
488
+ metadata: @config.metadata,
487
489
  retry_policy: @config.retry_policy
488
490
 
489
491
  @hub_service_stub.call_rpc :update_hub, request, options: options do |response, operation|
@@ -564,7 +566,9 @@ module Google
564
566
  options.apply_defaults timeout: @config.rpcs.delete_hub.timeout,
565
567
  metadata: metadata,
566
568
  retry_policy: @config.rpcs.delete_hub.retry_policy
567
- options.apply_defaults metadata: @config.metadata,
569
+
570
+ options.apply_defaults timeout: @config.timeout,
571
+ metadata: @config.metadata,
568
572
  retry_policy: @config.retry_policy
569
573
 
570
574
  @hub_service_stub.call_rpc :delete_hub, request, options: options do |response, operation|
@@ -639,7 +643,9 @@ module Google
639
643
  options.apply_defaults timeout: @config.rpcs.list_spokes.timeout,
640
644
  metadata: metadata,
641
645
  retry_policy: @config.rpcs.list_spokes.retry_policy
642
- options.apply_defaults metadata: @config.metadata,
646
+
647
+ options.apply_defaults timeout: @config.timeout,
648
+ metadata: @config.metadata,
643
649
  retry_policy: @config.retry_policy
644
650
 
645
651
  @hub_service_stub.call_rpc :list_spokes, request, options: options do |response, operation|
@@ -706,7 +712,9 @@ module Google
706
712
  options.apply_defaults timeout: @config.rpcs.get_spoke.timeout,
707
713
  metadata: metadata,
708
714
  retry_policy: @config.rpcs.get_spoke.retry_policy
709
- options.apply_defaults metadata: @config.metadata,
715
+
716
+ options.apply_defaults timeout: @config.timeout,
717
+ metadata: @config.metadata,
710
718
  retry_policy: @config.retry_policy
711
719
 
712
720
  @hub_service_stub.call_rpc :get_spoke, request, options: options do |response, operation|
@@ -790,7 +798,9 @@ module Google
790
798
  options.apply_defaults timeout: @config.rpcs.create_spoke.timeout,
791
799
  metadata: metadata,
792
800
  retry_policy: @config.rpcs.create_spoke.retry_policy
793
- options.apply_defaults metadata: @config.metadata,
801
+
802
+ options.apply_defaults timeout: @config.timeout,
803
+ metadata: @config.metadata,
794
804
  retry_policy: @config.retry_policy
795
805
 
796
806
  @hub_service_stub.call_rpc :create_spoke, request, options: options do |response, operation|
@@ -877,7 +887,9 @@ module Google
877
887
  options.apply_defaults timeout: @config.rpcs.update_spoke.timeout,
878
888
  metadata: metadata,
879
889
  retry_policy: @config.rpcs.update_spoke.retry_policy
880
- options.apply_defaults metadata: @config.metadata,
890
+
891
+ options.apply_defaults timeout: @config.timeout,
892
+ metadata: @config.metadata,
881
893
  retry_policy: @config.retry_policy
882
894
 
883
895
  @hub_service_stub.call_rpc :update_spoke, request, options: options do |response, operation|
@@ -958,7 +970,9 @@ module Google
958
970
  options.apply_defaults timeout: @config.rpcs.delete_spoke.timeout,
959
971
  metadata: metadata,
960
972
  retry_policy: @config.rpcs.delete_spoke.retry_policy
961
- options.apply_defaults metadata: @config.metadata,
973
+
974
+ options.apply_defaults timeout: @config.timeout,
975
+ metadata: @config.metadata,
962
976
  retry_policy: @config.retry_policy
963
977
 
964
978
  @hub_service_stub.call_rpc :delete_spoke, request, options: options do |response, operation|
@@ -983,22 +997,21 @@ module Google
983
997
  # Configuration can be applied globally to all clients, or to a single client
984
998
  # on construction.
985
999
  #
986
- # # Examples
987
- #
988
- # To modify the global config, setting the timeout for list_hubs
989
- # to 20 seconds, and all remaining timeouts to 10 seconds:
990
- #
991
- # ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.configure do |config|
992
- # config.timeout = 10.0
993
- # config.rpcs.list_hubs.timeout = 20.0
994
- # end
995
- #
996
- # To apply the above configuration only to a new client:
997
- #
998
- # client = ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new do |config|
999
- # config.timeout = 10.0
1000
- # config.rpcs.list_hubs.timeout = 20.0
1001
- # end
1000
+ # @example
1001
+ #
1002
+ # # Modify the global config, setting the timeout for
1003
+ # # list_hubs to 20 seconds,
1004
+ # # and all remaining timeouts to 10 seconds.
1005
+ # ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.configure do |config|
1006
+ # config.timeout = 10.0
1007
+ # config.rpcs.list_hubs.timeout = 20.0
1008
+ # end
1009
+ #
1010
+ # # Apply the above configuration only to a new client.
1011
+ # client = ::Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new do |config|
1012
+ # config.timeout = 10.0
1013
+ # config.rpcs.list_hubs.timeout = 20.0
1014
+ # end
1002
1015
  #
1003
1016
  # @!attribute [rw] endpoint
1004
1017
  # 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 NetworkConnectivity
23
23
  module V1alpha1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
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-network_connectivity-v1alpha1
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