google-cloud-service_control-v1 0.4.2 → 0.4.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: 8ea831c1f63209cbaec472f94a00828fdd085235dd66c76d917c7a9dd1652c97
4
- data.tar.gz: 13833c33ea1b8057babff047d686ddf0709fcdf794029c44ee1fbd7911f465bc
3
+ metadata.gz: 01da9ad01ff745f86d6149371feaa9b7a569ed2c4421d3a4ac753e1fc62d3546
4
+ data.tar.gz: d5553dff2b6f72f20109f438c08fdb0f71deb0261c67e15ecd4af52c68e12369
5
5
  SHA512:
6
- metadata.gz: f1408630d3d07ac0d39248722f1ecb924991cb2b65bf24425156c7f5c5452af6da1a5d0a322011104f31aee127ef22a118938dc7a7ee47272e4ac40ab97d48c5
7
- data.tar.gz: f2db43851d63c3e313447604b895b7737f053ba9eb37951337f463b2083135537a42240a3157cfaf9c78a15caf45ff3a881744f176421a3e6fa65a3e025bd350
6
+ metadata.gz: 51708eefede90d41a2d25882171aa636cabf4100c64c5d9e2778eb9fd1043f27fafa245ece9bf30b3b82dcf2a077ecd9002f4e48852823c0122df2206cc51f57
7
+ data.tar.gz: 2743c1e542657c945d8f76c12b3c12c7880b566621fbf702a31280a2bcad5e57f0ed0e689a10bfd897bef2715ae61cc2944d31e9d91fcb9dc7e8c1ce020db930
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::ServiceControl::V1::QuotaController::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all QuotaController clients:
48
- #
49
- # ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all QuotaController clients
48
+ # ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -95,19 +94,15 @@ module Google
95
94
  ##
96
95
  # Create a new QuotaController client object.
97
96
  #
98
- # ## Examples
99
- #
100
- # To create a new QuotaController client with the default
101
- # configuration:
97
+ # @example
102
98
  #
103
- # client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
99
+ # # Create a client using the default configuration
100
+ # client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
104
101
  #
105
- # To create a new QuotaController client with a custom
106
- # configuration:
107
- #
108
- # client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
109
- # config.timeout = 10.0
110
- # end
102
+ # # Create a client using a custom configuration
103
+ # client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
104
+ # config.timeout = 10.0
105
+ # end
111
106
  #
112
107
  # @yield [config] Configure the QuotaController client.
113
108
  # @yieldparam config [Client::Configuration]
@@ -127,10 +122,9 @@ module Google
127
122
 
128
123
  # Create credentials
129
124
  credentials = @config.credentials
130
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
125
+ # Use self-signed JWT if the endpoint is unchanged from default,
131
126
  # but only if the default endpoint does not have a region prefix.
132
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
133
- @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
128
  !@config.endpoint.split(".").first.include?("-")
135
129
  credentials ||= Credentials.default scope: @config.scope,
136
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -225,7 +219,9 @@ module Google
225
219
  options.apply_defaults timeout: @config.rpcs.allocate_quota.timeout,
226
220
  metadata: metadata,
227
221
  retry_policy: @config.rpcs.allocate_quota.retry_policy
228
- options.apply_defaults metadata: @config.metadata,
222
+
223
+ options.apply_defaults timeout: @config.timeout,
224
+ metadata: @config.metadata,
229
225
  retry_policy: @config.retry_policy
230
226
 
231
227
  @quota_controller_stub.call_rpc :allocate_quota, request, options: options do |response, operation|
@@ -249,22 +245,21 @@ module Google
249
245
  # Configuration can be applied globally to all clients, or to a single client
250
246
  # on construction.
251
247
  #
252
- # # Examples
253
- #
254
- # To modify the global config, setting the timeout for allocate_quota
255
- # to 20 seconds, and all remaining timeouts to 10 seconds:
256
- #
257
- # ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
258
- # config.timeout = 10.0
259
- # config.rpcs.allocate_quota.timeout = 20.0
260
- # end
261
- #
262
- # To apply the above configuration only to a new client:
263
- #
264
- # client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
265
- # config.timeout = 10.0
266
- # config.rpcs.allocate_quota.timeout = 20.0
267
- # end
248
+ # @example
249
+ #
250
+ # # Modify the global config, setting the timeout for
251
+ # # allocate_quota to 20 seconds,
252
+ # # and all remaining timeouts to 10 seconds.
253
+ # ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
254
+ # config.timeout = 10.0
255
+ # config.rpcs.allocate_quota.timeout = 20.0
256
+ # end
257
+ #
258
+ # # Apply the above configuration only to a new client.
259
+ # client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
260
+ # config.timeout = 10.0
261
+ # config.rpcs.allocate_quota.timeout = 20.0
262
+ # end
268
263
  #
269
264
  # @!attribute [rw] endpoint
270
265
  # The hostname or hostname:port of the service endpoint.
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::ServiceControl::V1::ServiceController::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all ServiceController clients:
48
- #
49
- # ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all ServiceController clients
48
+ # ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -102,19 +101,15 @@ module Google
102
101
  ##
103
102
  # Create a new ServiceController client object.
104
103
  #
105
- # ## Examples
106
- #
107
- # To create a new ServiceController client with the default
108
- # configuration:
109
- #
110
- # client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new
104
+ # @example
111
105
  #
112
- # To create a new ServiceController client with a custom
113
- # configuration:
106
+ # # Create a client using the default configuration
107
+ # client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new
114
108
  #
115
- # client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
116
- # config.timeout = 10.0
117
- # end
109
+ # # Create a client using a custom configuration
110
+ # client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
111
+ # config.timeout = 10.0
112
+ # end
118
113
  #
119
114
  # @yield [config] Configure the ServiceController client.
120
115
  # @yieldparam config [Client::Configuration]
@@ -134,10 +129,9 @@ module Google
134
129
 
135
130
  # Create credentials
136
131
  credentials = @config.credentials
137
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
132
+ # Use self-signed JWT if the endpoint is unchanged from default,
138
133
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
- @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
135
  !@config.endpoint.split(".").first.include?("-")
142
136
  credentials ||= Credentials.default scope: @config.scope,
143
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -242,7 +236,9 @@ module Google
242
236
  options.apply_defaults timeout: @config.rpcs.check.timeout,
243
237
  metadata: metadata,
244
238
  retry_policy: @config.rpcs.check.retry_policy
245
- options.apply_defaults metadata: @config.metadata,
239
+
240
+ options.apply_defaults timeout: @config.timeout,
241
+ metadata: @config.metadata,
246
242
  retry_policy: @config.retry_policy
247
243
 
248
244
  @service_controller_stub.call_rpc :check, request, options: options do |response, operation|
@@ -345,7 +341,9 @@ module Google
345
341
  options.apply_defaults timeout: @config.rpcs.report.timeout,
346
342
  metadata: metadata,
347
343
  retry_policy: @config.rpcs.report.retry_policy
348
- options.apply_defaults metadata: @config.metadata,
344
+
345
+ options.apply_defaults timeout: @config.timeout,
346
+ metadata: @config.metadata,
349
347
  retry_policy: @config.retry_policy
350
348
 
351
349
  @service_controller_stub.call_rpc :report, request, options: options do |response, operation|
@@ -369,22 +367,21 @@ module Google
369
367
  # Configuration can be applied globally to all clients, or to a single client
370
368
  # on construction.
371
369
  #
372
- # # Examples
373
- #
374
- # To modify the global config, setting the timeout for check
375
- # to 20 seconds, and all remaining timeouts to 10 seconds:
376
- #
377
- # ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
378
- # config.timeout = 10.0
379
- # config.rpcs.check.timeout = 20.0
380
- # end
381
- #
382
- # To apply the above configuration only to a new client:
383
- #
384
- # client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
385
- # config.timeout = 10.0
386
- # config.rpcs.check.timeout = 20.0
387
- # end
370
+ # @example
371
+ #
372
+ # # Modify the global config, setting the timeout for
373
+ # # check to 20 seconds,
374
+ # # and all remaining timeouts to 10 seconds.
375
+ # ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
376
+ # config.timeout = 10.0
377
+ # config.rpcs.check.timeout = 20.0
378
+ # end
379
+ #
380
+ # # Apply the above configuration only to a new client.
381
+ # client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
382
+ # config.timeout = 10.0
383
+ # config.rpcs.check.timeout = 20.0
384
+ # end
388
385
  #
389
386
  # @!attribute [rw] endpoint
390
387
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceControl
23
23
  module V1
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-service_control-v1
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