google-cloud-gke_connect-gateway-v1beta1 0.1.1 → 0.1.2

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: 5f002bf7e20b461794c38b80d465c5f693213bee0b250d482b9c3d5280a6205d
4
- data.tar.gz: b71602b5c55b67d6b5fa173fafa6be9418649ed968276dcb490da6f4507109e2
3
+ metadata.gz: 822521b40099176c0f811ad6bf47fc21af5812ba28ddb0f2a4195f599fcb2926
4
+ data.tar.gz: eafd6ee093e28e9e5501258d6fef537f12cebc0710e02e529e12ab7eb0482fc6
5
5
  SHA512:
6
- metadata.gz: e7ae9aec2b6613030ed39e39d8455135966a8024aeba0391a2a3ec6f2c752501be321812a5c17ad9f46a8631268178f865dfeeca8ac45316fd7db864ffb6a6b8
7
- data.tar.gz: 636060cb7ce6a173e21339a14d84efde4cc30205488d3d11473f8ca37444cde9050d04f3fc1b8e283d6408fcfa4bbe24efc7e9e4ef4ceaf9d589eb3c34a61632
6
+ metadata.gz: b1310884492f4c005b2d4a1b4828d717b109af1c12508406a571f606ea59278c813bea18b51a2079cd5bd65b1136292dcbdb49a0af8b476f487cdcdbc65ba415
7
+ data.tar.gz: 3ba105b2a1419e8bb1410bcde4d69096e5bdfefe3e30d5a1250617fa62739885d54112fbf7ff56127faba98032ab7fe0a8da71fd1098fc962307b1fc4b2f2e58
@@ -44,13 +44,12 @@ module Google
44
44
  # See {::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::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 GatewayService clients:
50
- #
51
- # ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.configure do |config|
52
- # config.timeout = 10.0
53
- # end
49
+ # # Modify the configuration for all GatewayService clients
50
+ # ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::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]
@@ -97,19 +96,15 @@ module Google
97
96
  ##
98
97
  # Create a new GatewayService client object.
99
98
  #
100
- # ## Examples
101
- #
102
- # To create a new GatewayService client with the default
103
- # configuration:
104
- #
105
- # client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.new
99
+ # @example
106
100
  #
107
- # To create a new GatewayService client with a custom
108
- # configuration:
101
+ # # Create a client using the default configuration
102
+ # client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.new
109
103
  #
110
- # client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.new do |config|
111
- # config.timeout = 10.0
112
- # end
104
+ # # Create a client using a custom configuration
105
+ # client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.new do |config|
106
+ # config.timeout = 10.0
107
+ # end
113
108
  #
114
109
  # @yield [config] Configure the GatewayService client.
115
110
  # @yieldparam config [Client::Configuration]
@@ -129,10 +124,9 @@ module Google
129
124
 
130
125
  # Create credentials
131
126
  credentials = @config.credentials
132
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
127
+ # Use self-signed JWT if the endpoint is unchanged from default,
133
128
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
135
- @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
136
130
  !@config.endpoint.split(".").first.include?("-")
137
131
  credentials ||= Credentials.default scope: @config.scope,
138
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -207,7 +201,9 @@ module Google
207
201
  options.apply_defaults timeout: @config.rpcs.get_resource.timeout,
208
202
  metadata: metadata,
209
203
  retry_policy: @config.rpcs.get_resource.retry_policy
210
- options.apply_defaults metadata: @config.metadata,
204
+
205
+ options.apply_defaults timeout: @config.timeout,
206
+ metadata: @config.metadata,
211
207
  retry_policy: @config.retry_policy
212
208
 
213
209
  @gateway_service_stub.call_rpc :get_resource, request, options: options do |response, operation|
@@ -272,7 +268,9 @@ module Google
272
268
  options.apply_defaults timeout: @config.rpcs.post_resource.timeout,
273
269
  metadata: metadata,
274
270
  retry_policy: @config.rpcs.post_resource.retry_policy
275
- options.apply_defaults metadata: @config.metadata,
271
+
272
+ options.apply_defaults timeout: @config.timeout,
273
+ metadata: @config.metadata,
276
274
  retry_policy: @config.retry_policy
277
275
 
278
276
  @gateway_service_stub.call_rpc :post_resource, request, options: options do |response, operation|
@@ -337,7 +335,9 @@ module Google
337
335
  options.apply_defaults timeout: @config.rpcs.delete_resource.timeout,
338
336
  metadata: metadata,
339
337
  retry_policy: @config.rpcs.delete_resource.retry_policy
340
- options.apply_defaults metadata: @config.metadata,
338
+
339
+ options.apply_defaults timeout: @config.timeout,
340
+ metadata: @config.metadata,
341
341
  retry_policy: @config.retry_policy
342
342
 
343
343
  @gateway_service_stub.call_rpc :delete_resource, request, options: options do |response, operation|
@@ -402,7 +402,9 @@ module Google
402
402
  options.apply_defaults timeout: @config.rpcs.put_resource.timeout,
403
403
  metadata: metadata,
404
404
  retry_policy: @config.rpcs.put_resource.retry_policy
405
- options.apply_defaults metadata: @config.metadata,
405
+
406
+ options.apply_defaults timeout: @config.timeout,
407
+ metadata: @config.metadata,
406
408
  retry_policy: @config.retry_policy
407
409
 
408
410
  @gateway_service_stub.call_rpc :put_resource, request, options: options do |response, operation|
@@ -467,7 +469,9 @@ module Google
467
469
  options.apply_defaults timeout: @config.rpcs.patch_resource.timeout,
468
470
  metadata: metadata,
469
471
  retry_policy: @config.rpcs.patch_resource.retry_policy
470
- options.apply_defaults metadata: @config.metadata,
472
+
473
+ options.apply_defaults timeout: @config.timeout,
474
+ metadata: @config.metadata,
471
475
  retry_policy: @config.retry_policy
472
476
 
473
477
  @gateway_service_stub.call_rpc :patch_resource, request, options: options do |response, operation|
@@ -491,22 +495,21 @@ module Google
491
495
  # Configuration can be applied globally to all clients, or to a single client
492
496
  # on construction.
493
497
  #
494
- # # Examples
495
- #
496
- # To modify the global config, setting the timeout for get_resource
497
- # to 20 seconds, and all remaining timeouts to 10 seconds:
498
- #
499
- # ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.configure do |config|
500
- # config.timeout = 10.0
501
- # config.rpcs.get_resource.timeout = 20.0
502
- # end
503
- #
504
- # To apply the above configuration only to a new client:
505
- #
506
- # client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.new do |config|
507
- # config.timeout = 10.0
508
- # config.rpcs.get_resource.timeout = 20.0
509
- # end
498
+ # @example
499
+ #
500
+ # # Modify the global config, setting the timeout for
501
+ # # get_resource to 20 seconds,
502
+ # # and all remaining timeouts to 10 seconds.
503
+ # ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.configure do |config|
504
+ # config.timeout = 10.0
505
+ # config.rpcs.get_resource.timeout = 20.0
506
+ # end
507
+ #
508
+ # # Apply the above configuration only to a new client.
509
+ # client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client.new do |config|
510
+ # config.timeout = 10.0
511
+ # config.rpcs.get_resource.timeout = 20.0
512
+ # end
510
513
  #
511
514
  # @!attribute [rw] endpoint
512
515
  # The hostname or hostname:port of the service endpoint.
@@ -22,7 +22,7 @@ module Google
22
22
  module GkeConnect
23
23
  module Gateway
24
24
  module V1beta1
25
- VERSION = "0.1.1"
25
+ VERSION = "0.1.2"
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-gke_connect-gateway-v1beta1
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