google-cloud-service_usage-v1 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -101
- data/lib/google/api/serviceusage/v1/resources_pb.rb +2 -1
- data/lib/google/api/serviceusage/v1/serviceusage_pb.rb +2 -2
- data/lib/google/cloud/service_usage/v1/rest.rb +37 -0
- data/lib/google/cloud/service_usage/v1/service_usage/client.rb +32 -8
- data/lib/google/cloud/service_usage/v1/service_usage/operations.rb +28 -6
- data/lib/google/cloud/service_usage/v1/service_usage/rest/client.rb +950 -0
- data/lib/google/cloud/service_usage/v1/service_usage/rest/operations.rb +893 -0
- data/lib/google/cloud/service_usage/v1/service_usage/rest/service_stub.rb +417 -0
- data/lib/google/cloud/service_usage/v1/service_usage/rest.rb +56 -0
- data/lib/google/cloud/service_usage/v1/service_usage.rb +6 -0
- data/lib/google/cloud/service_usage/v1/version.rb +1 -1
- data/lib/google/cloud/service_usage/v1.rb +5 -0
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/endpoint.rb +1 -0
- data/proto_docs/google/api/serviceusage/v1/resources.rb +2 -1
- metadata +10 -5
@@ -0,0 +1,417 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/api/serviceusage/v1/serviceusage_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module ServiceUsage
|
24
|
+
module V1
|
25
|
+
module ServiceUsage
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the ServiceUsage service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
42
|
+
numeric_enums: true,
|
43
|
+
raise_faraday_errors: false
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# Baseline implementation for the enable_service REST call
|
57
|
+
#
|
58
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::EnableServiceRequest]
|
59
|
+
# A request object representing the call parameters. Required.
|
60
|
+
# @param options [::Gapic::CallOptions]
|
61
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
62
|
+
#
|
63
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
64
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
65
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
66
|
+
#
|
67
|
+
# @return [::Google::Longrunning::Operation]
|
68
|
+
# A result object deserialized from the server's reply
|
69
|
+
def enable_service request_pb, options = nil
|
70
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
71
|
+
|
72
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_enable_service_request request_pb
|
73
|
+
query_string_params = if query_string_params.any?
|
74
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
75
|
+
else
|
76
|
+
{}
|
77
|
+
end
|
78
|
+
|
79
|
+
response = @client_stub.make_http_request(
|
80
|
+
verb,
|
81
|
+
uri: uri,
|
82
|
+
body: body || "",
|
83
|
+
params: query_string_params,
|
84
|
+
options: options
|
85
|
+
)
|
86
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
87
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
88
|
+
|
89
|
+
yield result, operation if block_given?
|
90
|
+
result
|
91
|
+
end
|
92
|
+
|
93
|
+
##
|
94
|
+
# Baseline implementation for the disable_service REST call
|
95
|
+
#
|
96
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::DisableServiceRequest]
|
97
|
+
# A request object representing the call parameters. Required.
|
98
|
+
# @param options [::Gapic::CallOptions]
|
99
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
100
|
+
#
|
101
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
102
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
103
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
104
|
+
#
|
105
|
+
# @return [::Google::Longrunning::Operation]
|
106
|
+
# A result object deserialized from the server's reply
|
107
|
+
def disable_service request_pb, options = nil
|
108
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
109
|
+
|
110
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_disable_service_request request_pb
|
111
|
+
query_string_params = if query_string_params.any?
|
112
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
113
|
+
else
|
114
|
+
{}
|
115
|
+
end
|
116
|
+
|
117
|
+
response = @client_stub.make_http_request(
|
118
|
+
verb,
|
119
|
+
uri: uri,
|
120
|
+
body: body || "",
|
121
|
+
params: query_string_params,
|
122
|
+
options: options
|
123
|
+
)
|
124
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
125
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
126
|
+
|
127
|
+
yield result, operation if block_given?
|
128
|
+
result
|
129
|
+
end
|
130
|
+
|
131
|
+
##
|
132
|
+
# Baseline implementation for the get_service REST call
|
133
|
+
#
|
134
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::GetServiceRequest]
|
135
|
+
# A request object representing the call parameters. Required.
|
136
|
+
# @param options [::Gapic::CallOptions]
|
137
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
138
|
+
#
|
139
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
140
|
+
# @yieldparam result [::Google::Cloud::ServiceUsage::V1::Service]
|
141
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
142
|
+
#
|
143
|
+
# @return [::Google::Cloud::ServiceUsage::V1::Service]
|
144
|
+
# A result object deserialized from the server's reply
|
145
|
+
def get_service request_pb, options = nil
|
146
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
147
|
+
|
148
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_service_request request_pb
|
149
|
+
query_string_params = if query_string_params.any?
|
150
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
151
|
+
else
|
152
|
+
{}
|
153
|
+
end
|
154
|
+
|
155
|
+
response = @client_stub.make_http_request(
|
156
|
+
verb,
|
157
|
+
uri: uri,
|
158
|
+
body: body || "",
|
159
|
+
params: query_string_params,
|
160
|
+
options: options
|
161
|
+
)
|
162
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
163
|
+
result = ::Google::Cloud::ServiceUsage::V1::Service.decode_json response.body, ignore_unknown_fields: true
|
164
|
+
|
165
|
+
yield result, operation if block_given?
|
166
|
+
result
|
167
|
+
end
|
168
|
+
|
169
|
+
##
|
170
|
+
# Baseline implementation for the list_services REST call
|
171
|
+
#
|
172
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::ListServicesRequest]
|
173
|
+
# A request object representing the call parameters. Required.
|
174
|
+
# @param options [::Gapic::CallOptions]
|
175
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
176
|
+
#
|
177
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
178
|
+
# @yieldparam result [::Google::Cloud::ServiceUsage::V1::ListServicesResponse]
|
179
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
180
|
+
#
|
181
|
+
# @return [::Google::Cloud::ServiceUsage::V1::ListServicesResponse]
|
182
|
+
# A result object deserialized from the server's reply
|
183
|
+
def list_services request_pb, options = nil
|
184
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
185
|
+
|
186
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_services_request request_pb
|
187
|
+
query_string_params = if query_string_params.any?
|
188
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
189
|
+
else
|
190
|
+
{}
|
191
|
+
end
|
192
|
+
|
193
|
+
response = @client_stub.make_http_request(
|
194
|
+
verb,
|
195
|
+
uri: uri,
|
196
|
+
body: body || "",
|
197
|
+
params: query_string_params,
|
198
|
+
options: options
|
199
|
+
)
|
200
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
201
|
+
result = ::Google::Cloud::ServiceUsage::V1::ListServicesResponse.decode_json response.body, ignore_unknown_fields: true
|
202
|
+
|
203
|
+
yield result, operation if block_given?
|
204
|
+
result
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# Baseline implementation for the batch_enable_services REST call
|
209
|
+
#
|
210
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::BatchEnableServicesRequest]
|
211
|
+
# A request object representing the call parameters. Required.
|
212
|
+
# @param options [::Gapic::CallOptions]
|
213
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
214
|
+
#
|
215
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
216
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
217
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
218
|
+
#
|
219
|
+
# @return [::Google::Longrunning::Operation]
|
220
|
+
# A result object deserialized from the server's reply
|
221
|
+
def batch_enable_services request_pb, options = nil
|
222
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
223
|
+
|
224
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_enable_services_request request_pb
|
225
|
+
query_string_params = if query_string_params.any?
|
226
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
227
|
+
else
|
228
|
+
{}
|
229
|
+
end
|
230
|
+
|
231
|
+
response = @client_stub.make_http_request(
|
232
|
+
verb,
|
233
|
+
uri: uri,
|
234
|
+
body: body || "",
|
235
|
+
params: query_string_params,
|
236
|
+
options: options
|
237
|
+
)
|
238
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
239
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
240
|
+
|
241
|
+
yield result, operation if block_given?
|
242
|
+
result
|
243
|
+
end
|
244
|
+
|
245
|
+
##
|
246
|
+
# Baseline implementation for the batch_get_services REST call
|
247
|
+
#
|
248
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::BatchGetServicesRequest]
|
249
|
+
# A request object representing the call parameters. Required.
|
250
|
+
# @param options [::Gapic::CallOptions]
|
251
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
252
|
+
#
|
253
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
254
|
+
# @yieldparam result [::Google::Cloud::ServiceUsage::V1::BatchGetServicesResponse]
|
255
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
256
|
+
#
|
257
|
+
# @return [::Google::Cloud::ServiceUsage::V1::BatchGetServicesResponse]
|
258
|
+
# A result object deserialized from the server's reply
|
259
|
+
def batch_get_services request_pb, options = nil
|
260
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
261
|
+
|
262
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_get_services_request request_pb
|
263
|
+
query_string_params = if query_string_params.any?
|
264
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
265
|
+
else
|
266
|
+
{}
|
267
|
+
end
|
268
|
+
|
269
|
+
response = @client_stub.make_http_request(
|
270
|
+
verb,
|
271
|
+
uri: uri,
|
272
|
+
body: body || "",
|
273
|
+
params: query_string_params,
|
274
|
+
options: options
|
275
|
+
)
|
276
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
277
|
+
result = ::Google::Cloud::ServiceUsage::V1::BatchGetServicesResponse.decode_json response.body, ignore_unknown_fields: true
|
278
|
+
|
279
|
+
yield result, operation if block_given?
|
280
|
+
result
|
281
|
+
end
|
282
|
+
|
283
|
+
##
|
284
|
+
# @private
|
285
|
+
#
|
286
|
+
# GRPC transcoding helper method for the enable_service REST call
|
287
|
+
#
|
288
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::EnableServiceRequest]
|
289
|
+
# A request object representing the call parameters. Required.
|
290
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
291
|
+
# Uri, Body, Query string parameters
|
292
|
+
def self.transcode_enable_service_request request_pb
|
293
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
294
|
+
.with_bindings(
|
295
|
+
uri_method: :post,
|
296
|
+
uri_template: "/v1/{name}:enable",
|
297
|
+
body: "*",
|
298
|
+
matches: [
|
299
|
+
["name", %r{^[^/]+/[^/]+/services/[^/]+/?$}, false]
|
300
|
+
]
|
301
|
+
)
|
302
|
+
transcoder.transcode request_pb
|
303
|
+
end
|
304
|
+
|
305
|
+
##
|
306
|
+
# @private
|
307
|
+
#
|
308
|
+
# GRPC transcoding helper method for the disable_service REST call
|
309
|
+
#
|
310
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::DisableServiceRequest]
|
311
|
+
# A request object representing the call parameters. Required.
|
312
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
313
|
+
# Uri, Body, Query string parameters
|
314
|
+
def self.transcode_disable_service_request request_pb
|
315
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
316
|
+
.with_bindings(
|
317
|
+
uri_method: :post,
|
318
|
+
uri_template: "/v1/{name}:disable",
|
319
|
+
body: "*",
|
320
|
+
matches: [
|
321
|
+
["name", %r{^[^/]+/[^/]+/services/[^/]+/?$}, false]
|
322
|
+
]
|
323
|
+
)
|
324
|
+
transcoder.transcode request_pb
|
325
|
+
end
|
326
|
+
|
327
|
+
##
|
328
|
+
# @private
|
329
|
+
#
|
330
|
+
# GRPC transcoding helper method for the get_service REST call
|
331
|
+
#
|
332
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::GetServiceRequest]
|
333
|
+
# A request object representing the call parameters. Required.
|
334
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
335
|
+
# Uri, Body, Query string parameters
|
336
|
+
def self.transcode_get_service_request request_pb
|
337
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
338
|
+
.with_bindings(
|
339
|
+
uri_method: :get,
|
340
|
+
uri_template: "/v1/{name}",
|
341
|
+
matches: [
|
342
|
+
["name", %r{^[^/]+/[^/]+/services/[^/]+/?$}, false]
|
343
|
+
]
|
344
|
+
)
|
345
|
+
transcoder.transcode request_pb
|
346
|
+
end
|
347
|
+
|
348
|
+
##
|
349
|
+
# @private
|
350
|
+
#
|
351
|
+
# GRPC transcoding helper method for the list_services REST call
|
352
|
+
#
|
353
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::ListServicesRequest]
|
354
|
+
# A request object representing the call parameters. Required.
|
355
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
356
|
+
# Uri, Body, Query string parameters
|
357
|
+
def self.transcode_list_services_request request_pb
|
358
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
359
|
+
.with_bindings(
|
360
|
+
uri_method: :get,
|
361
|
+
uri_template: "/v1/{parent}/services",
|
362
|
+
matches: [
|
363
|
+
["parent", %r{^[^/]+/[^/]+/?$}, false]
|
364
|
+
]
|
365
|
+
)
|
366
|
+
transcoder.transcode request_pb
|
367
|
+
end
|
368
|
+
|
369
|
+
##
|
370
|
+
# @private
|
371
|
+
#
|
372
|
+
# GRPC transcoding helper method for the batch_enable_services REST call
|
373
|
+
#
|
374
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::BatchEnableServicesRequest]
|
375
|
+
# A request object representing the call parameters. Required.
|
376
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
377
|
+
# Uri, Body, Query string parameters
|
378
|
+
def self.transcode_batch_enable_services_request request_pb
|
379
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
380
|
+
.with_bindings(
|
381
|
+
uri_method: :post,
|
382
|
+
uri_template: "/v1/{parent}/services:batchEnable",
|
383
|
+
body: "*",
|
384
|
+
matches: [
|
385
|
+
["parent", %r{^[^/]+/[^/]+/?$}, false]
|
386
|
+
]
|
387
|
+
)
|
388
|
+
transcoder.transcode request_pb
|
389
|
+
end
|
390
|
+
|
391
|
+
##
|
392
|
+
# @private
|
393
|
+
#
|
394
|
+
# GRPC transcoding helper method for the batch_get_services REST call
|
395
|
+
#
|
396
|
+
# @param request_pb [::Google::Cloud::ServiceUsage::V1::BatchGetServicesRequest]
|
397
|
+
# A request object representing the call parameters. Required.
|
398
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
399
|
+
# Uri, Body, Query string parameters
|
400
|
+
def self.transcode_batch_get_services_request request_pb
|
401
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
402
|
+
.with_bindings(
|
403
|
+
uri_method: :get,
|
404
|
+
uri_template: "/v1/{parent}/services:batchGet",
|
405
|
+
matches: [
|
406
|
+
["parent", %r{^[^/]+/[^/]+/?$}, false]
|
407
|
+
]
|
408
|
+
)
|
409
|
+
transcoder.transcode request_pb
|
410
|
+
end
|
411
|
+
end
|
412
|
+
end
|
413
|
+
end
|
414
|
+
end
|
415
|
+
end
|
416
|
+
end
|
417
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/service_usage/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/service_usage/v1/service_usage/credentials"
|
26
|
+
require "google/cloud/service_usage/v1/service_usage/rest/operations"
|
27
|
+
require "google/cloud/service_usage/v1/service_usage/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module ServiceUsage
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Enables services that service consumers want to use on Google Cloud Platform,
|
35
|
+
# lists the available or enabled services, or disables services that service
|
36
|
+
# consumers no longer use.
|
37
|
+
#
|
38
|
+
# See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
|
39
|
+
#
|
40
|
+
# To load this service and instantiate a REST client:
|
41
|
+
#
|
42
|
+
# require "google/cloud/service_usage/v1/service_usage/rest"
|
43
|
+
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::Client.new
|
44
|
+
#
|
45
|
+
module ServiceUsage
|
46
|
+
# Client for the REST transport
|
47
|
+
module Rest
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
56
|
+
require "google/cloud/service_usage/v1/service_usage/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/service_usage/v1/version"
|
|
25
25
|
require "google/cloud/service_usage/v1/service_usage/credentials"
|
26
26
|
require "google/cloud/service_usage/v1/service_usage/operations"
|
27
27
|
require "google/cloud/service_usage/v1/service_usage/client"
|
28
|
+
require "google/cloud/service_usage/v1/service_usage/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -42,6 +43,11 @@ module Google
|
|
42
43
|
# require "google/cloud/service_usage/v1/service_usage"
|
43
44
|
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new
|
44
45
|
#
|
46
|
+
# @example Load this service and instantiate a REST client
|
47
|
+
#
|
48
|
+
# require "google/cloud/service_usage/v1/service_usage/rest"
|
49
|
+
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::Client.new
|
50
|
+
#
|
45
51
|
module ServiceUsage
|
46
52
|
end
|
47
53
|
end
|
@@ -30,6 +30,11 @@ module Google
|
|
30
30
|
# require "google/cloud/service_usage/v1"
|
31
31
|
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/service_usage/v1"
|
36
|
+
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1
|
34
39
|
end
|
35
40
|
end
|
@@ -21,6 +21,7 @@ module Google
|
|
21
21
|
module Api
|
22
22
|
# Required information for every language.
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
24
25
|
# @return [::String]
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
@@ -304,6 +305,19 @@ module Google
|
|
304
305
|
# seconds: 360 # 6 minutes
|
305
306
|
# total_poll_timeout:
|
306
307
|
# seconds: 54000 # 90 minutes
|
308
|
+
# @!attribute [rw] auto_populated_fields
|
309
|
+
# @return [::Array<::String>]
|
310
|
+
# List of top-level fields of the request message, that should be
|
311
|
+
# automatically populated by the client libraries based on their
|
312
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
313
|
+
#
|
314
|
+
# Example of a YAML configuration:
|
315
|
+
#
|
316
|
+
# publishing:
|
317
|
+
# method_settings:
|
318
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
319
|
+
# auto_populated_fields:
|
320
|
+
# - request_id
|
307
321
|
class MethodSettings
|
308
322
|
include ::Google::Protobuf::MessageExts
|
309
323
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,6 +44,7 @@ module Google
|
|
44
44
|
# @return [::String]
|
45
45
|
# The canonical name of this endpoint.
|
46
46
|
# @!attribute [rw] aliases
|
47
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
47
48
|
# @return [::Array<::String>]
|
48
49
|
# Unimplemented. Dot not use.
|
49
50
|
#
|
@@ -82,7 +82,8 @@ module Google
|
|
82
82
|
# @!attribute [rw] monitored_resources
|
83
83
|
# @return [::Array<::Google::Api::MonitoredResourceDescriptor>]
|
84
84
|
# Defines the monitored resources used by this service. This is required
|
85
|
-
# by the [Service.monitoring][google.api.Service.monitoring] and
|
85
|
+
# by the [Service.monitoring][google.api.Service.monitoring] and
|
86
|
+
# [Service.logging][google.api.Service.logging] configurations.
|
86
87
|
# @!attribute [rw] monitoring
|
87
88
|
# @return [::Google::Api::Monitoring]
|
88
89
|
# Monitoring configuration.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-service_usage-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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:
|
11
|
+
date: 2024-01-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.21.1
|
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.21.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -176,10 +176,15 @@ files:
|
|
176
176
|
- lib/google/api/serviceusage/v1/serviceusage_pb.rb
|
177
177
|
- lib/google/api/serviceusage/v1/serviceusage_services_pb.rb
|
178
178
|
- lib/google/cloud/service_usage/v1.rb
|
179
|
+
- lib/google/cloud/service_usage/v1/rest.rb
|
179
180
|
- lib/google/cloud/service_usage/v1/service_usage.rb
|
180
181
|
- lib/google/cloud/service_usage/v1/service_usage/client.rb
|
181
182
|
- lib/google/cloud/service_usage/v1/service_usage/credentials.rb
|
182
183
|
- lib/google/cloud/service_usage/v1/service_usage/operations.rb
|
184
|
+
- lib/google/cloud/service_usage/v1/service_usage/rest.rb
|
185
|
+
- lib/google/cloud/service_usage/v1/service_usage/rest/client.rb
|
186
|
+
- lib/google/cloud/service_usage/v1/service_usage/rest/operations.rb
|
187
|
+
- lib/google/cloud/service_usage/v1/service_usage/rest/service_stub.rb
|
183
188
|
- lib/google/cloud/service_usage/v1/version.rb
|
184
189
|
- proto_docs/README.md
|
185
190
|
- proto_docs/google/api/auth.rb
|
@@ -223,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
228
|
- !ruby/object:Gem::Version
|
224
229
|
version: '0'
|
225
230
|
requirements: []
|
226
|
-
rubygems_version: 3.
|
231
|
+
rubygems_version: 3.5.3
|
227
232
|
signing_key:
|
228
233
|
specification_version: 4
|
229
234
|
summary: Enables services that service consumers want to use on Google Cloud Platform,
|