google-cloud-service_control-v1 0.4.4 → 0.4.5
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: 44865b72852210f1be156d154d92ba6374b6e66f55811ca133e3858c41f7167f
|
4
|
+
data.tar.gz: 6e693e2d37fa4b9aa8129955e108f517f8106c36f64bfb4fced6006a405741cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1225c233c4a5493695f02573be1e9aad66491ef731e7ab8fcc380cbbd47ed22d9ad395852f49b9a4f0ce17bfae4391923d1d00c04ba1c31c0d77e097f07d7fce
|
7
|
+
data.tar.gz: '097cb81813729989ef6cec3d822c258394629f0142f55565a2c3dba2f992ad64a7df202496b9be5d8f916bf190c2c9c33fa789f007c4a5e4547bc5a88aad8863'
|
@@ -193,6 +193,21 @@ module Google
|
|
193
193
|
#
|
194
194
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
195
195
|
#
|
196
|
+
# @example Basic example
|
197
|
+
# require "google/cloud/service_control/v1"
|
198
|
+
#
|
199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
200
|
+
# client = Google::Cloud::ServiceControl::V1::QuotaController::Client.new
|
201
|
+
#
|
202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
203
|
+
# request = Google::Cloud::ServiceControl::V1::AllocateQuotaRequest.new
|
204
|
+
#
|
205
|
+
# # Call the allocate_quota method.
|
206
|
+
# result = client.allocate_quota request
|
207
|
+
#
|
208
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::AllocateQuotaResponse.
|
209
|
+
# p result
|
210
|
+
#
|
196
211
|
def allocate_quota request, options = nil
|
197
212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
198
213
|
|
@@ -210,9 +225,11 @@ module Google
|
|
210
225
|
gapic_version: ::Google::Cloud::ServiceControl::V1::VERSION
|
211
226
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
212
227
|
|
213
|
-
header_params = {
|
214
|
-
|
215
|
-
|
228
|
+
header_params = {}
|
229
|
+
if request.service_name
|
230
|
+
header_params["service_name"] = request.service_name
|
231
|
+
end
|
232
|
+
|
216
233
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
217
234
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
218
235
|
|
@@ -210,6 +210,21 @@ module Google
|
|
210
210
|
#
|
211
211
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
212
212
|
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/service_control/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::ServiceControl::V1::CheckRequest.new
|
221
|
+
#
|
222
|
+
# # Call the check method.
|
223
|
+
# result = client.check request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::CheckResponse.
|
226
|
+
# p result
|
227
|
+
#
|
213
228
|
def check request, options = nil
|
214
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
215
230
|
|
@@ -227,9 +242,11 @@ module Google
|
|
227
242
|
gapic_version: ::Google::Cloud::ServiceControl::V1::VERSION
|
228
243
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
229
244
|
|
230
|
-
header_params = {
|
231
|
-
|
232
|
-
|
245
|
+
header_params = {}
|
246
|
+
if request.service_name
|
247
|
+
header_params["service_name"] = request.service_name
|
248
|
+
end
|
249
|
+
|
233
250
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
234
251
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
235
252
|
|
@@ -315,6 +332,21 @@ module Google
|
|
315
332
|
#
|
316
333
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
317
334
|
#
|
335
|
+
# @example Basic example
|
336
|
+
# require "google/cloud/service_control/v1"
|
337
|
+
#
|
338
|
+
# # Create a client object. The client can be reused for multiple calls.
|
339
|
+
# client = Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
340
|
+
#
|
341
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
342
|
+
# request = Google::Cloud::ServiceControl::V1::ReportRequest.new
|
343
|
+
#
|
344
|
+
# # Call the report method.
|
345
|
+
# result = client.report request
|
346
|
+
#
|
347
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::ReportResponse.
|
348
|
+
# p result
|
349
|
+
#
|
318
350
|
def report request, options = nil
|
319
351
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
320
352
|
|
@@ -332,9 +364,11 @@ module Google
|
|
332
364
|
gapic_version: ::Google::Cloud::ServiceControl::V1::VERSION
|
333
365
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
334
366
|
|
335
|
-
header_params = {
|
336
|
-
|
337
|
-
|
367
|
+
header_params = {}
|
368
|
+
if request.service_name
|
369
|
+
header_params["service_name"] = request.service_name
|
370
|
+
end
|
371
|
+
|
338
372
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
339
373
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
340
374
|
|
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.5
|
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-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|