google-cloud-resource_settings-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: cd1326eecd2b9191d44032445a6c94811ab59cc17f8f528b94702c0f2bbe68f2
4
- data.tar.gz: cd94730388476c218ed1703ea28e4eb92fa733139ae9f69bc9febc34c87235e0
3
+ metadata.gz: ec9e4da2407913d59ff53a7e0ee28703c72a5a3a6f712b90513b085cf245973c
4
+ data.tar.gz: c7cd9b0ef1bc762b927854ceee568ab014991175a4537a977075ea08a849c8cd
5
5
  SHA512:
6
- metadata.gz: 7bd01fc53dc193d46832d659324615dc03bf58c194a8474d9b47ad35dd2d25f1e9e325572021ae1897903d6a4e170d3d92f44fcba5c1de87da73001ae91c472a
7
- data.tar.gz: 347bfbff775c94aded0c90ca186d217953c4fb3e7659ed9ce13e145e040fa9e8149adcde47fa735d229876c249be1ebd34dc01be54776b4e7722381b2ba0d885
6
+ metadata.gz: 1d8373f613b7d0ccfc97c907caafb7a87bc740b79121d4dcfa348acf1e5d22f5b74c82b592cf8b4d420caa1e5661cbef332c324be6c2b48a9c065fefcca5b5a0
7
+ data.tar.gz: 13a0925d65f7f90cfdecf671be87a5d3c84269745cc5183a79232594b8ce4d2f8e9428f617fe21038481255266ddc4a13dea00dff1afde93bd39138bacc229f5
@@ -52,13 +52,12 @@ module Google
52
52
  # See {::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client::Configuration}
53
53
  # for a description of the configuration fields.
54
54
  #
55
- # ## Example
55
+ # @example
56
56
  #
57
- # To modify the configuration for all ResourceSettingsService clients:
58
- #
59
- # ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.configure do |config|
60
- # config.timeout = 10.0
61
- # end
57
+ # # Modify the configuration for all ResourceSettingsService clients
58
+ # ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.configure do |config|
59
+ # config.timeout = 10.0
60
+ # end
62
61
  #
63
62
  # @yield [config] Configure the Client client.
64
63
  # @yieldparam config [Client::Configuration]
@@ -120,19 +119,15 @@ module Google
120
119
  ##
121
120
  # Create a new ResourceSettingsService client object.
122
121
  #
123
- # ## Examples
124
- #
125
- # To create a new ResourceSettingsService client with the default
126
- # configuration:
127
- #
128
- # client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new
122
+ # @example
129
123
  #
130
- # To create a new ResourceSettingsService client with a custom
131
- # configuration:
124
+ # # Create a client using the default configuration
125
+ # client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new
132
126
  #
133
- # client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new do |config|
134
- # config.timeout = 10.0
135
- # end
127
+ # # Create a client using a custom configuration
128
+ # client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new do |config|
129
+ # config.timeout = 10.0
130
+ # end
136
131
  #
137
132
  # @yield [config] Configure the ResourceSettingsService client.
138
133
  # @yieldparam config [Client::Configuration]
@@ -152,10 +147,9 @@ module Google
152
147
 
153
148
  # Create credentials
154
149
  credentials = @config.credentials
155
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
150
+ # Use self-signed JWT if the endpoint is unchanged from default,
156
151
  # but only if the default endpoint does not have a region prefix.
157
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
158
- @config.endpoint == Client.configure.endpoint &&
152
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
159
153
  !@config.endpoint.split(".").first.include?("-")
160
154
  credentials ||= Credentials.default scope: @config.scope,
161
155
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -243,7 +237,9 @@ module Google
243
237
  options.apply_defaults timeout: @config.rpcs.list_settings.timeout,
244
238
  metadata: metadata,
245
239
  retry_policy: @config.rpcs.list_settings.retry_policy
246
- options.apply_defaults metadata: @config.metadata,
240
+
241
+ options.apply_defaults timeout: @config.timeout,
242
+ metadata: @config.metadata,
247
243
  retry_policy: @config.retry_policy
248
244
 
249
245
  @resource_settings_service_stub.call_rpc :list_settings, request, options: options do |response, operation|
@@ -316,7 +312,9 @@ module Google
316
312
  options.apply_defaults timeout: @config.rpcs.get_setting.timeout,
317
313
  metadata: metadata,
318
314
  retry_policy: @config.rpcs.get_setting.retry_policy
319
- options.apply_defaults metadata: @config.metadata,
315
+
316
+ options.apply_defaults timeout: @config.timeout,
317
+ metadata: @config.metadata,
320
318
  retry_policy: @config.retry_policy
321
319
 
322
320
  @resource_settings_service_stub.call_rpc :get_setting, request, options: options do |response, operation|
@@ -397,7 +395,9 @@ module Google
397
395
  options.apply_defaults timeout: @config.rpcs.update_setting.timeout,
398
396
  metadata: metadata,
399
397
  retry_policy: @config.rpcs.update_setting.retry_policy
400
- options.apply_defaults metadata: @config.metadata,
398
+
399
+ options.apply_defaults timeout: @config.timeout,
400
+ metadata: @config.metadata,
401
401
  retry_policy: @config.retry_policy
402
402
 
403
403
  @resource_settings_service_stub.call_rpc :update_setting, request, options: options do |response, operation|
@@ -421,22 +421,21 @@ module Google
421
421
  # Configuration can be applied globally to all clients, or to a single client
422
422
  # on construction.
423
423
  #
424
- # # Examples
425
- #
426
- # To modify the global config, setting the timeout for list_settings
427
- # to 20 seconds, and all remaining timeouts to 10 seconds:
428
- #
429
- # ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.configure do |config|
430
- # config.timeout = 10.0
431
- # config.rpcs.list_settings.timeout = 20.0
432
- # end
433
- #
434
- # To apply the above configuration only to a new client:
435
- #
436
- # client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new do |config|
437
- # config.timeout = 10.0
438
- # config.rpcs.list_settings.timeout = 20.0
439
- # end
424
+ # @example
425
+ #
426
+ # # Modify the global config, setting the timeout for
427
+ # # list_settings to 20 seconds,
428
+ # # and all remaining timeouts to 10 seconds.
429
+ # ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.configure do |config|
430
+ # config.timeout = 10.0
431
+ # config.rpcs.list_settings.timeout = 20.0
432
+ # end
433
+ #
434
+ # # Apply the above configuration only to a new client.
435
+ # client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new do |config|
436
+ # config.timeout = 10.0
437
+ # config.rpcs.list_settings.timeout = 20.0
438
+ # end
440
439
  #
441
440
  # @!attribute [rw] endpoint
442
441
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ResourceSettings
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-resource_settings-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-21 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