google-cloud-api_gateway-v1 0.1.2 → 0.1.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: f9adcb3ff9d9bdaeba882a8670cb8d933274bf6c4eda3480fdc83be40a2bd5f0
4
- data.tar.gz: 73b1de85f1e8f532e2c2a3505f51ff37fc4e2046fdad481718675be6fdc2f07c
3
+ metadata.gz: 887e8d22b893feef8190c5226a8ccbc79f09ca86123682a0ea7259670915ba99
4
+ data.tar.gz: cfb90c33149cc4c3a894289472774cab39b613f8336b60306bbef2ede8be5588
5
5
  SHA512:
6
- metadata.gz: d71fd734fd43b8b88abcf28f63f9153524e9817e3a59fcd4f5a3c4eb0a22e238533806c4876e14a4cf2c714f54acc3e7dda5f76837dd82f223729684dee5eae1
7
- data.tar.gz: e223b81101edc03a0095311283dd91410062fc7b938d81d9a87da215ca9b27c645701a439e8f13ad1b1753a7fc73b969d2d917c68fd4b8188b5d3707add0929b
6
+ metadata.gz: 88888e3f2db1cf974b24b1808ceb27422113ad335a2c104d56fa0fc027609a2ff09f567669cc26db745095282f666cf72fd799b6d70fe8fa2fb32a317b760872
7
+ data.tar.gz: d11fb914400f76e8cdf7abacec74c115198d36ee6a2b762052d7b0387246f4663a68bc6c93976c6d73970e93041bba9de8c7f365d2c33f3fe0163fa08fcf80fe
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::ApiGateway::V1::ApiGatewayService::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 ApiGatewayService clients:
47
- #
48
- # ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all ApiGatewayService clients
47
+ # ::Google::Cloud::ApiGateway::V1::ApiGatewayService::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]
@@ -139,19 +138,15 @@ module Google
139
138
  ##
140
139
  # Create a new ApiGatewayService client object.
141
140
  #
142
- # ## Examples
143
- #
144
- # To create a new ApiGatewayService client with the default
145
- # configuration:
146
- #
147
- # client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
141
+ # @example
148
142
  #
149
- # To create a new ApiGatewayService client with a custom
150
- # configuration:
143
+ # # Create a client using the default configuration
144
+ # client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
151
145
  #
152
- # client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new do |config|
153
- # config.timeout = 10.0
154
- # end
146
+ # # Create a client using a custom configuration
147
+ # client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new do |config|
148
+ # config.timeout = 10.0
149
+ # end
155
150
  #
156
151
  # @yield [config] Configure the ApiGatewayService client.
157
152
  # @yieldparam config [Client::Configuration]
@@ -171,10 +166,9 @@ module Google
171
166
 
172
167
  # Create credentials
173
168
  credentials = @config.credentials
174
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
169
+ # Use self-signed JWT if the endpoint is unchanged from default,
175
170
  # but only if the default endpoint does not have a region prefix.
176
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
177
- @config.endpoint == Client.configure.endpoint &&
171
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
178
172
  !@config.endpoint.split(".").first.include?("-")
179
173
  credentials ||= Credentials.default scope: @config.scope,
180
174
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -271,7 +265,9 @@ module Google
271
265
  options.apply_defaults timeout: @config.rpcs.list_gateways.timeout,
272
266
  metadata: metadata,
273
267
  retry_policy: @config.rpcs.list_gateways.retry_policy
274
- options.apply_defaults metadata: @config.metadata,
268
+
269
+ options.apply_defaults timeout: @config.timeout,
270
+ metadata: @config.metadata,
275
271
  retry_policy: @config.retry_policy
276
272
 
277
273
  @api_gateway_service_stub.call_rpc :list_gateways, request, options: options do |response, operation|
@@ -339,7 +335,9 @@ module Google
339
335
  options.apply_defaults timeout: @config.rpcs.get_gateway.timeout,
340
336
  metadata: metadata,
341
337
  retry_policy: @config.rpcs.get_gateway.retry_policy
342
- options.apply_defaults metadata: @config.metadata,
338
+
339
+ options.apply_defaults timeout: @config.timeout,
340
+ metadata: @config.metadata,
343
341
  retry_policy: @config.retry_policy
344
342
 
345
343
  @api_gateway_service_stub.call_rpc :get_gateway, request, options: options do |response, operation|
@@ -411,7 +409,9 @@ module Google
411
409
  options.apply_defaults timeout: @config.rpcs.create_gateway.timeout,
412
410
  metadata: metadata,
413
411
  retry_policy: @config.rpcs.create_gateway.retry_policy
414
- options.apply_defaults metadata: @config.metadata,
412
+
413
+ options.apply_defaults timeout: @config.timeout,
414
+ metadata: @config.metadata,
415
415
  retry_policy: @config.retry_policy
416
416
 
417
417
  @api_gateway_service_stub.call_rpc :create_gateway, request, options: options do |response, operation|
@@ -484,7 +484,9 @@ module Google
484
484
  options.apply_defaults timeout: @config.rpcs.update_gateway.timeout,
485
485
  metadata: metadata,
486
486
  retry_policy: @config.rpcs.update_gateway.retry_policy
487
- options.apply_defaults metadata: @config.metadata,
487
+
488
+ options.apply_defaults timeout: @config.timeout,
489
+ metadata: @config.metadata,
488
490
  retry_policy: @config.retry_policy
489
491
 
490
492
  @api_gateway_service_stub.call_rpc :update_gateway, request, options: options do |response, operation|
@@ -552,7 +554,9 @@ module Google
552
554
  options.apply_defaults timeout: @config.rpcs.delete_gateway.timeout,
553
555
  metadata: metadata,
554
556
  retry_policy: @config.rpcs.delete_gateway.retry_policy
555
- options.apply_defaults metadata: @config.metadata,
557
+
558
+ options.apply_defaults timeout: @config.timeout,
559
+ metadata: @config.metadata,
556
560
  retry_policy: @config.retry_policy
557
561
 
558
562
  @api_gateway_service_stub.call_rpc :delete_gateway, request, options: options do |response, operation|
@@ -628,7 +632,9 @@ module Google
628
632
  options.apply_defaults timeout: @config.rpcs.list_apis.timeout,
629
633
  metadata: metadata,
630
634
  retry_policy: @config.rpcs.list_apis.retry_policy
631
- options.apply_defaults metadata: @config.metadata,
635
+
636
+ options.apply_defaults timeout: @config.timeout,
637
+ metadata: @config.metadata,
632
638
  retry_policy: @config.retry_policy
633
639
 
634
640
  @api_gateway_service_stub.call_rpc :list_apis, request, options: options do |response, operation|
@@ -696,7 +702,9 @@ module Google
696
702
  options.apply_defaults timeout: @config.rpcs.get_api.timeout,
697
703
  metadata: metadata,
698
704
  retry_policy: @config.rpcs.get_api.retry_policy
699
- options.apply_defaults metadata: @config.metadata,
705
+
706
+ options.apply_defaults timeout: @config.timeout,
707
+ metadata: @config.metadata,
700
708
  retry_policy: @config.retry_policy
701
709
 
702
710
  @api_gateway_service_stub.call_rpc :get_api, request, options: options do |response, operation|
@@ -768,7 +776,9 @@ module Google
768
776
  options.apply_defaults timeout: @config.rpcs.create_api.timeout,
769
777
  metadata: metadata,
770
778
  retry_policy: @config.rpcs.create_api.retry_policy
771
- options.apply_defaults metadata: @config.metadata,
779
+
780
+ options.apply_defaults timeout: @config.timeout,
781
+ metadata: @config.metadata,
772
782
  retry_policy: @config.retry_policy
773
783
 
774
784
  @api_gateway_service_stub.call_rpc :create_api, request, options: options do |response, operation|
@@ -841,7 +851,9 @@ module Google
841
851
  options.apply_defaults timeout: @config.rpcs.update_api.timeout,
842
852
  metadata: metadata,
843
853
  retry_policy: @config.rpcs.update_api.retry_policy
844
- options.apply_defaults metadata: @config.metadata,
854
+
855
+ options.apply_defaults timeout: @config.timeout,
856
+ metadata: @config.metadata,
845
857
  retry_policy: @config.retry_policy
846
858
 
847
859
  @api_gateway_service_stub.call_rpc :update_api, request, options: options do |response, operation|
@@ -909,7 +921,9 @@ module Google
909
921
  options.apply_defaults timeout: @config.rpcs.delete_api.timeout,
910
922
  metadata: metadata,
911
923
  retry_policy: @config.rpcs.delete_api.retry_policy
912
- options.apply_defaults metadata: @config.metadata,
924
+
925
+ options.apply_defaults timeout: @config.timeout,
926
+ metadata: @config.metadata,
913
927
  retry_policy: @config.retry_policy
914
928
 
915
929
  @api_gateway_service_stub.call_rpc :delete_api, request, options: options do |response, operation|
@@ -985,7 +999,9 @@ module Google
985
999
  options.apply_defaults timeout: @config.rpcs.list_api_configs.timeout,
986
1000
  metadata: metadata,
987
1001
  retry_policy: @config.rpcs.list_api_configs.retry_policy
988
- options.apply_defaults metadata: @config.metadata,
1002
+
1003
+ options.apply_defaults timeout: @config.timeout,
1004
+ metadata: @config.metadata,
989
1005
  retry_policy: @config.retry_policy
990
1006
 
991
1007
  @api_gateway_service_stub.call_rpc :list_api_configs, request, options: options do |response, operation|
@@ -1056,7 +1072,9 @@ module Google
1056
1072
  options.apply_defaults timeout: @config.rpcs.get_api_config.timeout,
1057
1073
  metadata: metadata,
1058
1074
  retry_policy: @config.rpcs.get_api_config.retry_policy
1059
- options.apply_defaults metadata: @config.metadata,
1075
+
1076
+ options.apply_defaults timeout: @config.timeout,
1077
+ metadata: @config.metadata,
1060
1078
  retry_policy: @config.retry_policy
1061
1079
 
1062
1080
  @api_gateway_service_stub.call_rpc :get_api_config, request, options: options do |response, operation|
@@ -1128,7 +1146,9 @@ module Google
1128
1146
  options.apply_defaults timeout: @config.rpcs.create_api_config.timeout,
1129
1147
  metadata: metadata,
1130
1148
  retry_policy: @config.rpcs.create_api_config.retry_policy
1131
- options.apply_defaults metadata: @config.metadata,
1149
+
1150
+ options.apply_defaults timeout: @config.timeout,
1151
+ metadata: @config.metadata,
1132
1152
  retry_policy: @config.retry_policy
1133
1153
 
1134
1154
  @api_gateway_service_stub.call_rpc :create_api_config, request, options: options do |response, operation|
@@ -1201,7 +1221,9 @@ module Google
1201
1221
  options.apply_defaults timeout: @config.rpcs.update_api_config.timeout,
1202
1222
  metadata: metadata,
1203
1223
  retry_policy: @config.rpcs.update_api_config.retry_policy
1204
- options.apply_defaults metadata: @config.metadata,
1224
+
1225
+ options.apply_defaults timeout: @config.timeout,
1226
+ metadata: @config.metadata,
1205
1227
  retry_policy: @config.retry_policy
1206
1228
 
1207
1229
  @api_gateway_service_stub.call_rpc :update_api_config, request, options: options do |response, operation|
@@ -1269,7 +1291,9 @@ module Google
1269
1291
  options.apply_defaults timeout: @config.rpcs.delete_api_config.timeout,
1270
1292
  metadata: metadata,
1271
1293
  retry_policy: @config.rpcs.delete_api_config.retry_policy
1272
- options.apply_defaults metadata: @config.metadata,
1294
+
1295
+ options.apply_defaults timeout: @config.timeout,
1296
+ metadata: @config.metadata,
1273
1297
  retry_policy: @config.retry_policy
1274
1298
 
1275
1299
  @api_gateway_service_stub.call_rpc :delete_api_config, request, options: options do |response, operation|
@@ -1294,22 +1318,21 @@ module Google
1294
1318
  # Configuration can be applied globally to all clients, or to a single client
1295
1319
  # on construction.
1296
1320
  #
1297
- # # Examples
1298
- #
1299
- # To modify the global config, setting the timeout for list_gateways
1300
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1301
- #
1302
- # ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.configure do |config|
1303
- # config.timeout = 10.0
1304
- # config.rpcs.list_gateways.timeout = 20.0
1305
- # end
1306
- #
1307
- # To apply the above configuration only to a new client:
1308
- #
1309
- # client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new do |config|
1310
- # config.timeout = 10.0
1311
- # config.rpcs.list_gateways.timeout = 20.0
1312
- # end
1321
+ # @example
1322
+ #
1323
+ # # Modify the global config, setting the timeout for
1324
+ # # list_gateways to 20 seconds,
1325
+ # # and all remaining timeouts to 10 seconds.
1326
+ # ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.configure do |config|
1327
+ # config.timeout = 10.0
1328
+ # config.rpcs.list_gateways.timeout = 20.0
1329
+ # end
1330
+ #
1331
+ # # Apply the above configuration only to a new client.
1332
+ # client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new do |config|
1333
+ # config.timeout = 10.0
1334
+ # config.rpcs.list_gateways.timeout = 20.0
1335
+ # end
1313
1336
  #
1314
1337
  # @!attribute [rw] endpoint
1315
1338
  # 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 ApiGateway
23
23
  module V1
24
- VERSION = "0.1.2"
24
+ VERSION = "0.1.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-api_gateway-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.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