google-cloud-service_control-v1 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/service_control/v1/quota_controller/client.rb +10 -1
- data/lib/google/cloud/service_control/v1/quota_controller/rest/client.rb +16 -0
- data/lib/google/cloud/service_control/v1/service_controller/client.rb +10 -1
- data/lib/google/cloud/service_control/v1/service_controller/rest/client.rb +32 -0
- data/lib/google/cloud/service_control/v1/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 225f55e0b0fc03d2b2a8327079f78716c3f94eb2c1a43cd507fe8917b957ea4d
|
4
|
+
data.tar.gz: aa545b14a0b68f5c8c5b5d344c21415ad65fcc531d600372a3d34a71e26adff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 678248330d173f170913cd826feaaaaa2b255b06793164fc79629138f25f8bf9922a40e441f34d8688c051bc63f0e811324da4c59e584e0b66dad76ca3e9c65c
|
7
|
+
data.tar.gz: 51908aedbce981473aea0910d2ff1397136f1a9317e4dba1d910bc0732d34b39dcbc50f52bb21bd4cdbd2f358af7bfc61e058f7380560d36972a649b31af4a90
|
@@ -139,7 +139,8 @@ module Google
|
|
139
139
|
credentials: credentials,
|
140
140
|
endpoint: @config.endpoint,
|
141
141
|
channel_args: @config.channel_args,
|
142
|
-
interceptors: @config.interceptors
|
142
|
+
interceptors: @config.interceptors,
|
143
|
+
channel_pool_config: @config.channel_pool
|
143
144
|
)
|
144
145
|
end
|
145
146
|
|
@@ -368,6 +369,14 @@ module Google
|
|
368
369
|
end
|
369
370
|
end
|
370
371
|
|
372
|
+
##
|
373
|
+
# Configuration for the channel pool
|
374
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
375
|
+
#
|
376
|
+
def channel_pool
|
377
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
378
|
+
end
|
379
|
+
|
371
380
|
##
|
372
381
|
# Configuration RPC class for the QuotaController API.
|
373
382
|
#
|
@@ -182,6 +182,22 @@ module Google
|
|
182
182
|
# @return [::Google::Cloud::ServiceControl::V1::AllocateQuotaResponse]
|
183
183
|
#
|
184
184
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
185
|
+
#
|
186
|
+
# @example Basic example
|
187
|
+
# require "google/cloud/service_control/v1"
|
188
|
+
#
|
189
|
+
# # Create a client object. The client can be reused for multiple calls.
|
190
|
+
# client = Google::Cloud::ServiceControl::V1::QuotaController::Rest::Client.new
|
191
|
+
#
|
192
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
193
|
+
# request = Google::Cloud::ServiceControl::V1::AllocateQuotaRequest.new
|
194
|
+
#
|
195
|
+
# # Call the allocate_quota method.
|
196
|
+
# result = client.allocate_quota request
|
197
|
+
#
|
198
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::AllocateQuotaResponse.
|
199
|
+
# p result
|
200
|
+
#
|
185
201
|
def allocate_quota request, options = nil
|
186
202
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
187
203
|
|
@@ -146,7 +146,8 @@ module Google
|
|
146
146
|
credentials: credentials,
|
147
147
|
endpoint: @config.endpoint,
|
148
148
|
channel_args: @config.channel_args,
|
149
|
-
interceptors: @config.interceptors
|
149
|
+
interceptors: @config.interceptors,
|
150
|
+
channel_pool_config: @config.channel_pool
|
150
151
|
)
|
151
152
|
end
|
152
153
|
|
@@ -507,6 +508,14 @@ module Google
|
|
507
508
|
end
|
508
509
|
end
|
509
510
|
|
511
|
+
##
|
512
|
+
# Configuration for the channel pool
|
513
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
514
|
+
#
|
515
|
+
def channel_pool
|
516
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
517
|
+
end
|
518
|
+
|
510
519
|
##
|
511
520
|
# Configuration RPC class for the ServiceController API.
|
512
521
|
#
|
@@ -199,6 +199,22 @@ module Google
|
|
199
199
|
# @return [::Google::Cloud::ServiceControl::V1::CheckResponse]
|
200
200
|
#
|
201
201
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
202
|
+
#
|
203
|
+
# @example Basic example
|
204
|
+
# require "google/cloud/service_control/v1"
|
205
|
+
#
|
206
|
+
# # Create a client object. The client can be reused for multiple calls.
|
207
|
+
# client = Google::Cloud::ServiceControl::V1::ServiceController::Rest::Client.new
|
208
|
+
#
|
209
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
210
|
+
# request = Google::Cloud::ServiceControl::V1::CheckRequest.new
|
211
|
+
#
|
212
|
+
# # Call the check method.
|
213
|
+
# result = client.check request
|
214
|
+
#
|
215
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::CheckResponse.
|
216
|
+
# p result
|
217
|
+
#
|
202
218
|
def check request, options = nil
|
203
219
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
204
220
|
|
@@ -298,6 +314,22 @@ module Google
|
|
298
314
|
# @return [::Google::Cloud::ServiceControl::V1::ReportResponse]
|
299
315
|
#
|
300
316
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
317
|
+
#
|
318
|
+
# @example Basic example
|
319
|
+
# require "google/cloud/service_control/v1"
|
320
|
+
#
|
321
|
+
# # Create a client object. The client can be reused for multiple calls.
|
322
|
+
# client = Google::Cloud::ServiceControl::V1::ServiceController::Rest::Client.new
|
323
|
+
#
|
324
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
325
|
+
# request = Google::Cloud::ServiceControl::V1::ReportRequest.new
|
326
|
+
#
|
327
|
+
# # Call the report method.
|
328
|
+
# result = client.report request
|
329
|
+
#
|
330
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::ReportResponse.
|
331
|
+
# p result
|
332
|
+
#
|
301
333
|
def report request, options = nil
|
302
334
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
303
335
|
|
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
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
- !ruby/object:Gem::Version
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
|
-
rubygems_version: 3.4.
|
237
|
+
rubygems_version: 3.4.19
|
238
238
|
signing_key:
|
239
239
|
specification_version: 4
|
240
240
|
summary: Provides admission control and telemetry reporting for services integrated
|