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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01da9ad01ff745f86d6149371feaa9b7a569ed2c4421d3a4ac753e1fc62d3546
|
4
|
+
data.tar.gz: d5553dff2b6f72f20109f438c08fdb0f71deb0261c67e15ecd4af52c68e12369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
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
|
-
#
|
99
|
-
#
|
100
|
-
# To create a new QuotaController client with the default
|
101
|
-
# configuration:
|
97
|
+
# @example
|
102
98
|
#
|
103
|
-
#
|
99
|
+
# # Create a client using the default configuration
|
100
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
|
104
101
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# to 20 seconds,
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
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
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
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
|
-
#
|
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
|
-
#
|
113
|
-
#
|
106
|
+
# # Create a client using the default configuration
|
107
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
114
108
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
# to 20 seconds,
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|