google-cloud-cloud_quotas-v1 0.a → 0.1.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/api/cloudquotas/v1/cloudquotas_pb.rb +58 -0
  6. data/lib/google/api/cloudquotas/v1/cloudquotas_services_pb.rb +62 -0
  7. data/lib/google/api/cloudquotas/v1/resources_pb.rb +58 -0
  8. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas/client.rb +979 -0
  9. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas/credentials.rb +47 -0
  10. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas/paths.rb +265 -0
  11. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas/rest/client.rb +907 -0
  12. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas/rest/service_stub.rb +492 -0
  13. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas/rest.rb +58 -0
  14. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas.rb +61 -0
  15. data/lib/google/cloud/cloud_quotas/v1/rest.rb +37 -0
  16. data/lib/google/cloud/cloud_quotas/v1/version.rb +7 -2
  17. data/lib/google/cloud/cloud_quotas/v1.rb +45 -0
  18. data/lib/google-cloud-cloud_quotas-v1.rb +21 -0
  19. data/proto_docs/README.md +4 -0
  20. data/proto_docs/google/api/client.rb +394 -0
  21. data/proto_docs/google/api/cloudquotas/v1/cloudquotas.rb +196 -0
  22. data/proto_docs/google/api/cloudquotas/v1/resources.rb +332 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/protobuf/duration.rb +98 -0
  27. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  28. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  29. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  30. metadata +184 -10
@@ -0,0 +1,492 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/cloudquotas/v1/cloudquotas_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module CloudQuotas
24
+ module V1
25
+ module CloudQuotas
26
+ module Rest
27
+ ##
28
+ # REST service stub for the CloudQuotas 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:, 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, credentials: credentials,
39
+ numeric_enums: true,
40
+ raise_faraday_errors: false
41
+ end
42
+
43
+ ##
44
+ # Baseline implementation for the list_quota_infos REST call
45
+ #
46
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaInfosRequest]
47
+ # A request object representing the call parameters. Required.
48
+ # @param options [::Gapic::CallOptions]
49
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
50
+ #
51
+ # @yield [result, operation] Access the result along with the TransportOperation object
52
+ # @yieldparam result [::Google::Cloud::CloudQuotas::V1::ListQuotaInfosResponse]
53
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
54
+ #
55
+ # @return [::Google::Cloud::CloudQuotas::V1::ListQuotaInfosResponse]
56
+ # A result object deserialized from the server's reply
57
+ def list_quota_infos request_pb, options = nil
58
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
59
+
60
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_quota_infos_request request_pb
61
+ query_string_params = if query_string_params.any?
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
+ else
64
+ {}
65
+ end
66
+
67
+ response = @client_stub.make_http_request(
68
+ verb,
69
+ uri: uri,
70
+ body: body || "",
71
+ params: query_string_params,
72
+ options: options
73
+ )
74
+ operation = ::Gapic::Rest::TransportOperation.new response
75
+ result = ::Google::Cloud::CloudQuotas::V1::ListQuotaInfosResponse.decode_json response.body, ignore_unknown_fields: true
76
+
77
+ yield result, operation if block_given?
78
+ result
79
+ end
80
+
81
+ ##
82
+ # Baseline implementation for the get_quota_info REST call
83
+ #
84
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaInfoRequest]
85
+ # A request object representing the call parameters. Required.
86
+ # @param options [::Gapic::CallOptions]
87
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
88
+ #
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
90
+ # @yieldparam result [::Google::Cloud::CloudQuotas::V1::QuotaInfo]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
92
+ #
93
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaInfo]
94
+ # A result object deserialized from the server's reply
95
+ def get_quota_info request_pb, options = nil
96
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
97
+
98
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_quota_info_request request_pb
99
+ query_string_params = if query_string_params.any?
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
+ else
102
+ {}
103
+ end
104
+
105
+ response = @client_stub.make_http_request(
106
+ verb,
107
+ uri: uri,
108
+ body: body || "",
109
+ params: query_string_params,
110
+ options: options
111
+ )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
113
+ result = ::Google::Cloud::CloudQuotas::V1::QuotaInfo.decode_json response.body, ignore_unknown_fields: true
114
+
115
+ yield result, operation if block_given?
116
+ result
117
+ end
118
+
119
+ ##
120
+ # Baseline implementation for the list_quota_preferences REST call
121
+ #
122
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesRequest]
123
+ # A request object representing the call parameters. Required.
124
+ # @param options [::Gapic::CallOptions]
125
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
126
+ #
127
+ # @yield [result, operation] Access the result along with the TransportOperation object
128
+ # @yieldparam result [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesResponse]
129
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
130
+ #
131
+ # @return [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesResponse]
132
+ # A result object deserialized from the server's reply
133
+ def list_quota_preferences request_pb, options = nil
134
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
135
+
136
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_quota_preferences_request request_pb
137
+ query_string_params = if query_string_params.any?
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
+ else
140
+ {}
141
+ end
142
+
143
+ response = @client_stub.make_http_request(
144
+ verb,
145
+ uri: uri,
146
+ body: body || "",
147
+ params: query_string_params,
148
+ options: options
149
+ )
150
+ operation = ::Gapic::Rest::TransportOperation.new response
151
+ result = ::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesResponse.decode_json response.body, ignore_unknown_fields: true
152
+
153
+ yield result, operation if block_given?
154
+ result
155
+ end
156
+
157
+ ##
158
+ # Baseline implementation for the get_quota_preference REST call
159
+ #
160
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaPreferenceRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
170
+ # A result object deserialized from the server's reply
171
+ def get_quota_preference request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_quota_preference_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::CloudQuotas::V1::QuotaPreference.decode_json response.body, ignore_unknown_fields: true
190
+
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+
195
+ ##
196
+ # Baseline implementation for the create_quota_preference REST call
197
+ #
198
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::CreateQuotaPreferenceRequest]
199
+ # A request object representing the call parameters. Required.
200
+ # @param options [::Gapic::CallOptions]
201
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
202
+ #
203
+ # @yield [result, operation] Access the result along with the TransportOperation object
204
+ # @yieldparam result [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
205
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
206
+ #
207
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
208
+ # A result object deserialized from the server's reply
209
+ def create_quota_preference request_pb, options = nil
210
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
211
+
212
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_quota_preference_request request_pb
213
+ query_string_params = if query_string_params.any?
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
+ else
216
+ {}
217
+ end
218
+
219
+ response = @client_stub.make_http_request(
220
+ verb,
221
+ uri: uri,
222
+ body: body || "",
223
+ params: query_string_params,
224
+ options: options
225
+ )
226
+ operation = ::Gapic::Rest::TransportOperation.new response
227
+ result = ::Google::Cloud::CloudQuotas::V1::QuotaPreference.decode_json response.body, ignore_unknown_fields: true
228
+
229
+ yield result, operation if block_given?
230
+ result
231
+ end
232
+
233
+ ##
234
+ # Baseline implementation for the update_quota_preference REST call
235
+ #
236
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::UpdateQuotaPreferenceRequest]
237
+ # A request object representing the call parameters. Required.
238
+ # @param options [::Gapic::CallOptions]
239
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
240
+ #
241
+ # @yield [result, operation] Access the result along with the TransportOperation object
242
+ # @yieldparam result [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
243
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
244
+ #
245
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
246
+ # A result object deserialized from the server's reply
247
+ def update_quota_preference request_pb, options = nil
248
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
249
+
250
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_quota_preference_request request_pb
251
+ query_string_params = if query_string_params.any?
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
+ else
254
+ {}
255
+ end
256
+
257
+ response = @client_stub.make_http_request(
258
+ verb,
259
+ uri: uri,
260
+ body: body || "",
261
+ params: query_string_params,
262
+ options: options
263
+ )
264
+ operation = ::Gapic::Rest::TransportOperation.new response
265
+ result = ::Google::Cloud::CloudQuotas::V1::QuotaPreference.decode_json response.body, ignore_unknown_fields: true
266
+
267
+ yield result, operation if block_given?
268
+ result
269
+ end
270
+
271
+ ##
272
+ # @private
273
+ #
274
+ # GRPC transcoding helper method for the list_quota_infos REST call
275
+ #
276
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaInfosRequest]
277
+ # A request object representing the call parameters. Required.
278
+ # @return [Array(String, [String, nil], Hash{String => String})]
279
+ # Uri, Body, Query string parameters
280
+ def self.transcode_list_quota_infos_request request_pb
281
+ transcoder = Gapic::Rest::GrpcTranscoder.new
282
+ .with_bindings(
283
+ uri_method: :get,
284
+ uri_template: "/v1/{parent}/quotaInfos",
285
+ matches: [
286
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
287
+ ]
288
+ )
289
+ .with_bindings(
290
+ uri_method: :get,
291
+ uri_template: "/v1/{parent}/quotaInfos",
292
+ matches: [
293
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
294
+ ]
295
+ )
296
+ .with_bindings(
297
+ uri_method: :get,
298
+ uri_template: "/v1/{parent}/quotaInfos",
299
+ matches: [
300
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
301
+ ]
302
+ )
303
+ transcoder.transcode request_pb
304
+ end
305
+
306
+ ##
307
+ # @private
308
+ #
309
+ # GRPC transcoding helper method for the get_quota_info REST call
310
+ #
311
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaInfoRequest]
312
+ # A request object representing the call parameters. Required.
313
+ # @return [Array(String, [String, nil], Hash{String => String})]
314
+ # Uri, Body, Query string parameters
315
+ def self.transcode_get_quota_info_request request_pb
316
+ transcoder = Gapic::Rest::GrpcTranscoder.new
317
+ .with_bindings(
318
+ uri_method: :get,
319
+ uri_template: "/v1/{name}",
320
+ matches: [
321
+ ["name", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/quotaInfos/[^/]+/?$}, false]
322
+ ]
323
+ )
324
+ .with_bindings(
325
+ uri_method: :get,
326
+ uri_template: "/v1/{name}",
327
+ matches: [
328
+ ["name", %r{^organizations/[^/]+/locations/[^/]+/services/[^/]+/quotaInfos/[^/]+/?$}, false]
329
+ ]
330
+ )
331
+ .with_bindings(
332
+ uri_method: :get,
333
+ uri_template: "/v1/{name}",
334
+ matches: [
335
+ ["name", %r{^folders/[^/]+/locations/[^/]+/services/[^/]+/quotaInfos/[^/]+/?$}, false]
336
+ ]
337
+ )
338
+ transcoder.transcode request_pb
339
+ end
340
+
341
+ ##
342
+ # @private
343
+ #
344
+ # GRPC transcoding helper method for the list_quota_preferences REST call
345
+ #
346
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesRequest]
347
+ # A request object representing the call parameters. Required.
348
+ # @return [Array(String, [String, nil], Hash{String => String})]
349
+ # Uri, Body, Query string parameters
350
+ def self.transcode_list_quota_preferences_request request_pb
351
+ transcoder = Gapic::Rest::GrpcTranscoder.new
352
+ .with_bindings(
353
+ uri_method: :get,
354
+ uri_template: "/v1/{parent}/quotaPreferences",
355
+ matches: [
356
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
357
+ ]
358
+ )
359
+ .with_bindings(
360
+ uri_method: :get,
361
+ uri_template: "/v1/{parent}/quotaPreferences",
362
+ matches: [
363
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
364
+ ]
365
+ )
366
+ .with_bindings(
367
+ uri_method: :get,
368
+ uri_template: "/v1/{parent}/quotaPreferences",
369
+ matches: [
370
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
371
+ ]
372
+ )
373
+ transcoder.transcode request_pb
374
+ end
375
+
376
+ ##
377
+ # @private
378
+ #
379
+ # GRPC transcoding helper method for the get_quota_preference REST call
380
+ #
381
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaPreferenceRequest]
382
+ # A request object representing the call parameters. Required.
383
+ # @return [Array(String, [String, nil], Hash{String => String})]
384
+ # Uri, Body, Query string parameters
385
+ def self.transcode_get_quota_preference_request request_pb
386
+ transcoder = Gapic::Rest::GrpcTranscoder.new
387
+ .with_bindings(
388
+ uri_method: :get,
389
+ uri_template: "/v1/{name}",
390
+ matches: [
391
+ ["name", %r{^projects/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
392
+ ]
393
+ )
394
+ .with_bindings(
395
+ uri_method: :get,
396
+ uri_template: "/v1/{name}",
397
+ matches: [
398
+ ["name", %r{^organizations/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
399
+ ]
400
+ )
401
+ .with_bindings(
402
+ uri_method: :get,
403
+ uri_template: "/v1/{name}",
404
+ matches: [
405
+ ["name", %r{^folders/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
406
+ ]
407
+ )
408
+ transcoder.transcode request_pb
409
+ end
410
+
411
+ ##
412
+ # @private
413
+ #
414
+ # GRPC transcoding helper method for the create_quota_preference REST call
415
+ #
416
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::CreateQuotaPreferenceRequest]
417
+ # A request object representing the call parameters. Required.
418
+ # @return [Array(String, [String, nil], Hash{String => String})]
419
+ # Uri, Body, Query string parameters
420
+ def self.transcode_create_quota_preference_request request_pb
421
+ transcoder = Gapic::Rest::GrpcTranscoder.new
422
+ .with_bindings(
423
+ uri_method: :post,
424
+ uri_template: "/v1/{parent}/quotaPreferences",
425
+ body: "quota_preference",
426
+ matches: [
427
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
428
+ ]
429
+ )
430
+ .with_bindings(
431
+ uri_method: :post,
432
+ uri_template: "/v1/{parent}/quotaPreferences",
433
+ body: "quota_preference",
434
+ matches: [
435
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
436
+ ]
437
+ )
438
+ .with_bindings(
439
+ uri_method: :post,
440
+ uri_template: "/v1/{parent}/quotaPreferences",
441
+ body: "quota_preference",
442
+ matches: [
443
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
444
+ ]
445
+ )
446
+ transcoder.transcode request_pb
447
+ end
448
+
449
+ ##
450
+ # @private
451
+ #
452
+ # GRPC transcoding helper method for the update_quota_preference REST call
453
+ #
454
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::UpdateQuotaPreferenceRequest]
455
+ # A request object representing the call parameters. Required.
456
+ # @return [Array(String, [String, nil], Hash{String => String})]
457
+ # Uri, Body, Query string parameters
458
+ def self.transcode_update_quota_preference_request request_pb
459
+ transcoder = Gapic::Rest::GrpcTranscoder.new
460
+ .with_bindings(
461
+ uri_method: :patch,
462
+ uri_template: "/v1/{quota_preference.name}",
463
+ body: "quota_preference",
464
+ matches: [
465
+ ["quota_preference.name", %r{^projects/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
466
+ ]
467
+ )
468
+ .with_bindings(
469
+ uri_method: :patch,
470
+ uri_template: "/v1/{quota_preference.name}",
471
+ body: "quota_preference",
472
+ matches: [
473
+ ["quota_preference.name", %r{^folders/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
474
+ ]
475
+ )
476
+ .with_bindings(
477
+ uri_method: :patch,
478
+ uri_template: "/v1/{quota_preference.name}",
479
+ body: "quota_preference",
480
+ matches: [
481
+ ["quota_preference.name", %r{^organizations/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
482
+ ]
483
+ )
484
+ transcoder.transcode request_pb
485
+ end
486
+ end
487
+ end
488
+ end
489
+ end
490
+ end
491
+ end
492
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/cloud_quotas/v1/version"
24
+
25
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/credentials"
26
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/paths"
27
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/rest/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module CloudQuotas
32
+ module V1
33
+ ##
34
+ # The Cloud Quotas API is an infrastructure service for Google Cloud that lets
35
+ # service consumers list and manage their resource usage limits.
36
+ #
37
+ # - List/Get the metadata and current status of the quotas for a service.
38
+ # - Create/Update quota preferencess that declare the preferred quota values.
39
+ # - Check the status of a quota preference request.
40
+ # - List/Get pending and historical quota preference.
41
+ #
42
+ # To load this service and instantiate a REST client:
43
+ #
44
+ # require "google/cloud/cloud_quotas/v1/cloud_quotas/rest"
45
+ # client = ::Google::Cloud::CloudQuotas::V1::CloudQuotas::Rest::Client.new
46
+ #
47
+ module CloudQuotas
48
+ # Client for the REST transport
49
+ module Rest
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+
57
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
58
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/cloud_quotas/v1/version"
24
+
25
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/credentials"
26
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/paths"
27
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/client"
28
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/rest"
29
+
30
+ module Google
31
+ module Cloud
32
+ module CloudQuotas
33
+ module V1
34
+ ##
35
+ # The Cloud Quotas API is an infrastructure service for Google Cloud that lets
36
+ # service consumers list and manage their resource usage limits.
37
+ #
38
+ # - List/Get the metadata and current status of the quotas for a service.
39
+ # - Create/Update quota preferencess that declare the preferred quota values.
40
+ # - Check the status of a quota preference request.
41
+ # - List/Get pending and historical quota preference.
42
+ #
43
+ # @example Load this service and instantiate a gRPC client
44
+ #
45
+ # require "google/cloud/cloud_quotas/v1/cloud_quotas"
46
+ # client = ::Google::Cloud::CloudQuotas::V1::CloudQuotas::Client.new
47
+ #
48
+ # @example Load this service and instantiate a REST client
49
+ #
50
+ # require "google/cloud/cloud_quotas/v1/cloud_quotas/rest"
51
+ # client = ::Google::Cloud::CloudQuotas::V1::CloudQuotas::Rest::Client.new
52
+ #
53
+ module CloudQuotas
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+
60
+ helper_path = ::File.join __dir__, "cloud_quotas", "helpers.rb"
61
+ require "google/cloud/cloud_quotas/v1/cloud_quotas/helpers" if ::File.file? helper_path
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/cloud/cloud_quotas/v1/cloud_quotas/rest"
20
+ require "google/cloud/cloud_quotas/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module CloudQuotas
25
+ ##
26
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
+ #
28
+ # @example
29
+ #
30
+ # require "google/cloud/cloud_quotas/v1/rest"
31
+ # client = ::Google::Cloud::CloudQuotas::V1::CloudQuotas::Rest::Client.new
32
+ #
33
+ module V1
34
+ end
35
+ end
36
+ end
37
+ end