google-cloud-service_control-v1 0.7.1 → 0.8.0

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: 45aed4e60a6762e0e00f0e9c5d3fab8531be3c577bd6e39aeb92120fa8fefaf1
4
- data.tar.gz: 25534263ebb7df8aaca735f20426845406914d8d941ef24843585384f8ea626c
3
+ metadata.gz: 225f55e0b0fc03d2b2a8327079f78716c3f94eb2c1a43cd507fe8917b957ea4d
4
+ data.tar.gz: aa545b14a0b68f5c8c5b5d344c21415ad65fcc531d600372a3d34a71e26adff7
5
5
  SHA512:
6
- metadata.gz: 3b38bd2196570dc30ac519140cc317883af93f3d0fa181498cca417512b832a79bf0afe6f335e554934045bbbf256a8f86dde8395a5aa7893ba83a7b2fef3175
7
- data.tar.gz: df35fa4714e418cdc5d50be97fb34f20f6aca7f3ca6ce2da1482ca2513db4a020ac5b74b07df50f23fd9ece58509d634dc731e333a295d4266b346e8df5066f2
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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceControl
23
23
  module V1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.8.0"
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.7.1
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-06-06 00:00:00.000000000 Z
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.1
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.19.1
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.2
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