google-cloud-service_control-v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6806aa4cbd7d925b3a3e4d80dd111bcaa7492d2c73624cc005d7acf17d00851d
4
- data.tar.gz: 8930728a13512b71375e26062deaf5c68711c50d87adaf33f5847a0753077e40
3
+ metadata.gz: 225f55e0b0fc03d2b2a8327079f78716c3f94eb2c1a43cd507fe8917b957ea4d
4
+ data.tar.gz: aa545b14a0b68f5c8c5b5d344c21415ad65fcc531d600372a3d34a71e26adff7
5
5
  SHA512:
6
- metadata.gz: 3787cc1e5e0e30fbeb5a39133cdcef84ef4cbfe599f8637584c6d86d410dd3cc8b244b60dcf94b9309e45bbd9810962d8460a7c9050ef2b28631773f05b122b9
7
- data.tar.gz: cad54b890c62a9ef91d6899786b8b5f9a41565fa1fdb1e9054e41e0759620cfc0ca8a289ebaf7609824eeffdc6510e8084263dfb4cce6f9ecbd7178c86d2731d
6
+ metadata.gz: 678248330d173f170913cd826feaaaaa2b255b06793164fc79629138f25f8bf9922a40e441f34d8688c051bc63f0e811324da4c59e584e0b66dad76ca3e9c65c
7
+ data.tar.gz: 51908aedbce981473aea0910d2ff1397136f1a9317e4dba1d910bc0732d34b39dcbc50f52bb21bd4cdbd2f358af7bfc61e058f7380560d36972a649b31af4a90
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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
 
@@ -331,7 +332,9 @@ module Google
331
332
  class Configuration
332
333
  extend ::Gapic::Config
333
334
 
334
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
335
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
336
+
337
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
335
338
  config_attr :credentials, nil do |value|
336
339
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
337
340
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -366,6 +369,14 @@ module Google
366
369
  end
367
370
  end
368
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
+
369
380
  ##
370
381
  # Configuration RPC class for the QuotaController API.
371
382
  #
@@ -120,7 +120,7 @@ module Google
120
120
  credentials = @config.credentials
121
121
  # Use self-signed JWT if the endpoint is unchanged from default,
122
122
  # but only if the default endpoint does not have a region prefix.
123
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
123
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
124
124
  !@config.endpoint.split(".").first.include?("-")
125
125
  credentials ||= Credentials.default scope: @config.scope,
126
126
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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
 
@@ -290,7 +306,9 @@ module Google
290
306
  class Configuration
291
307
  extend ::Gapic::Config
292
308
 
293
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
309
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
310
+
311
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
294
312
  config_attr :credentials, nil do |value|
295
313
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
296
314
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_allocate_quota_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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
 
@@ -470,7 +471,9 @@ module Google
470
471
  class Configuration
471
472
  extend ::Gapic::Config
472
473
 
473
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
474
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
475
+
476
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
474
477
  config_attr :credentials, nil do |value|
475
478
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
476
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -505,6 +508,14 @@ module Google
505
508
  end
506
509
  end
507
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
+
508
519
  ##
509
520
  # Configuration RPC class for the ServiceController API.
510
521
  #
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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
 
@@ -406,7 +438,9 @@ module Google
406
438
  class Configuration
407
439
  extend ::Gapic::Config
408
440
 
409
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
441
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
442
+
443
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
410
444
  config_attr :credentials, nil do |value|
411
445
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
412
446
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_check_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_report_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceControl
23
23
  module V1
24
- VERSION = "0.7.0"
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.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-05-31 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.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.19.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.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