google-cloud-cloud_quotas-v1 0.a → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -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 +1002 -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 +933 -0
  12. data/lib/google/cloud/cloud_quotas/v1/cloud_quotas/rest/service_stub.rb +504 -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 +395 -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,504 @@
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:, 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 list_quota_infos REST call
57
+ #
58
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaInfosRequest]
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::Cloud::CloudQuotas::V1::ListQuotaInfosResponse]
65
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
66
+ #
67
+ # @return [::Google::Cloud::CloudQuotas::V1::ListQuotaInfosResponse]
68
+ # A result object deserialized from the server's reply
69
+ def list_quota_infos 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_list_quota_infos_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::Cloud::CloudQuotas::V1::ListQuotaInfosResponse.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 get_quota_info REST call
95
+ #
96
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaInfoRequest]
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::Cloud::CloudQuotas::V1::QuotaInfo]
103
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
104
+ #
105
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaInfo]
106
+ # A result object deserialized from the server's reply
107
+ def get_quota_info 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_get_quota_info_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::Cloud::CloudQuotas::V1::QuotaInfo.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 list_quota_preferences REST call
133
+ #
134
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesRequest]
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::CloudQuotas::V1::ListQuotaPreferencesResponse]
141
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
142
+ #
143
+ # @return [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesResponse]
144
+ # A result object deserialized from the server's reply
145
+ def list_quota_preferences 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_list_quota_preferences_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::CloudQuotas::V1::ListQuotaPreferencesResponse.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 get_quota_preference REST call
171
+ #
172
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaPreferenceRequest]
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::CloudQuotas::V1::QuotaPreference]
179
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
180
+ #
181
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
182
+ # A result object deserialized from the server's reply
183
+ def get_quota_preference 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_get_quota_preference_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::CloudQuotas::V1::QuotaPreference.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 create_quota_preference REST call
209
+ #
210
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::CreateQuotaPreferenceRequest]
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::Cloud::CloudQuotas::V1::QuotaPreference]
217
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
218
+ #
219
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
220
+ # A result object deserialized from the server's reply
221
+ def create_quota_preference 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_create_quota_preference_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::Cloud::CloudQuotas::V1::QuotaPreference.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 update_quota_preference REST call
247
+ #
248
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::UpdateQuotaPreferenceRequest]
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::CloudQuotas::V1::QuotaPreference]
255
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
256
+ #
257
+ # @return [::Google::Cloud::CloudQuotas::V1::QuotaPreference]
258
+ # A result object deserialized from the server's reply
259
+ def update_quota_preference 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_update_quota_preference_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::CloudQuotas::V1::QuotaPreference.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 list_quota_infos REST call
287
+ #
288
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaInfosRequest]
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_list_quota_infos_request request_pb
293
+ transcoder = Gapic::Rest::GrpcTranscoder.new
294
+ .with_bindings(
295
+ uri_method: :get,
296
+ uri_template: "/v1/{parent}/quotaInfos",
297
+ matches: [
298
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
299
+ ]
300
+ )
301
+ .with_bindings(
302
+ uri_method: :get,
303
+ uri_template: "/v1/{parent}/quotaInfos",
304
+ matches: [
305
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
306
+ ]
307
+ )
308
+ .with_bindings(
309
+ uri_method: :get,
310
+ uri_template: "/v1/{parent}/quotaInfos",
311
+ matches: [
312
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
313
+ ]
314
+ )
315
+ transcoder.transcode request_pb
316
+ end
317
+
318
+ ##
319
+ # @private
320
+ #
321
+ # GRPC transcoding helper method for the get_quota_info REST call
322
+ #
323
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaInfoRequest]
324
+ # A request object representing the call parameters. Required.
325
+ # @return [Array(String, [String, nil], Hash{String => String})]
326
+ # Uri, Body, Query string parameters
327
+ def self.transcode_get_quota_info_request request_pb
328
+ transcoder = Gapic::Rest::GrpcTranscoder.new
329
+ .with_bindings(
330
+ uri_method: :get,
331
+ uri_template: "/v1/{name}",
332
+ matches: [
333
+ ["name", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/quotaInfos/[^/]+/?$}, false]
334
+ ]
335
+ )
336
+ .with_bindings(
337
+ uri_method: :get,
338
+ uri_template: "/v1/{name}",
339
+ matches: [
340
+ ["name", %r{^organizations/[^/]+/locations/[^/]+/services/[^/]+/quotaInfos/[^/]+/?$}, false]
341
+ ]
342
+ )
343
+ .with_bindings(
344
+ uri_method: :get,
345
+ uri_template: "/v1/{name}",
346
+ matches: [
347
+ ["name", %r{^folders/[^/]+/locations/[^/]+/services/[^/]+/quotaInfos/[^/]+/?$}, false]
348
+ ]
349
+ )
350
+ transcoder.transcode request_pb
351
+ end
352
+
353
+ ##
354
+ # @private
355
+ #
356
+ # GRPC transcoding helper method for the list_quota_preferences REST call
357
+ #
358
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesRequest]
359
+ # A request object representing the call parameters. Required.
360
+ # @return [Array(String, [String, nil], Hash{String => String})]
361
+ # Uri, Body, Query string parameters
362
+ def self.transcode_list_quota_preferences_request request_pb
363
+ transcoder = Gapic::Rest::GrpcTranscoder.new
364
+ .with_bindings(
365
+ uri_method: :get,
366
+ uri_template: "/v1/{parent}/quotaPreferences",
367
+ matches: [
368
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
369
+ ]
370
+ )
371
+ .with_bindings(
372
+ uri_method: :get,
373
+ uri_template: "/v1/{parent}/quotaPreferences",
374
+ matches: [
375
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
376
+ ]
377
+ )
378
+ .with_bindings(
379
+ uri_method: :get,
380
+ uri_template: "/v1/{parent}/quotaPreferences",
381
+ matches: [
382
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
383
+ ]
384
+ )
385
+ transcoder.transcode request_pb
386
+ end
387
+
388
+ ##
389
+ # @private
390
+ #
391
+ # GRPC transcoding helper method for the get_quota_preference REST call
392
+ #
393
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::GetQuotaPreferenceRequest]
394
+ # A request object representing the call parameters. Required.
395
+ # @return [Array(String, [String, nil], Hash{String => String})]
396
+ # Uri, Body, Query string parameters
397
+ def self.transcode_get_quota_preference_request request_pb
398
+ transcoder = Gapic::Rest::GrpcTranscoder.new
399
+ .with_bindings(
400
+ uri_method: :get,
401
+ uri_template: "/v1/{name}",
402
+ matches: [
403
+ ["name", %r{^projects/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
404
+ ]
405
+ )
406
+ .with_bindings(
407
+ uri_method: :get,
408
+ uri_template: "/v1/{name}",
409
+ matches: [
410
+ ["name", %r{^organizations/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
411
+ ]
412
+ )
413
+ .with_bindings(
414
+ uri_method: :get,
415
+ uri_template: "/v1/{name}",
416
+ matches: [
417
+ ["name", %r{^folders/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
418
+ ]
419
+ )
420
+ transcoder.transcode request_pb
421
+ end
422
+
423
+ ##
424
+ # @private
425
+ #
426
+ # GRPC transcoding helper method for the create_quota_preference REST call
427
+ #
428
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::CreateQuotaPreferenceRequest]
429
+ # A request object representing the call parameters. Required.
430
+ # @return [Array(String, [String, nil], Hash{String => String})]
431
+ # Uri, Body, Query string parameters
432
+ def self.transcode_create_quota_preference_request request_pb
433
+ transcoder = Gapic::Rest::GrpcTranscoder.new
434
+ .with_bindings(
435
+ uri_method: :post,
436
+ uri_template: "/v1/{parent}/quotaPreferences",
437
+ body: "quota_preference",
438
+ matches: [
439
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
440
+ ]
441
+ )
442
+ .with_bindings(
443
+ uri_method: :post,
444
+ uri_template: "/v1/{parent}/quotaPreferences",
445
+ body: "quota_preference",
446
+ matches: [
447
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
448
+ ]
449
+ )
450
+ .with_bindings(
451
+ uri_method: :post,
452
+ uri_template: "/v1/{parent}/quotaPreferences",
453
+ body: "quota_preference",
454
+ matches: [
455
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
456
+ ]
457
+ )
458
+ transcoder.transcode request_pb
459
+ end
460
+
461
+ ##
462
+ # @private
463
+ #
464
+ # GRPC transcoding helper method for the update_quota_preference REST call
465
+ #
466
+ # @param request_pb [::Google::Cloud::CloudQuotas::V1::UpdateQuotaPreferenceRequest]
467
+ # A request object representing the call parameters. Required.
468
+ # @return [Array(String, [String, nil], Hash{String => String})]
469
+ # Uri, Body, Query string parameters
470
+ def self.transcode_update_quota_preference_request request_pb
471
+ transcoder = Gapic::Rest::GrpcTranscoder.new
472
+ .with_bindings(
473
+ uri_method: :patch,
474
+ uri_template: "/v1/{quota_preference.name}",
475
+ body: "quota_preference",
476
+ matches: [
477
+ ["quota_preference.name", %r{^projects/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
478
+ ]
479
+ )
480
+ .with_bindings(
481
+ uri_method: :patch,
482
+ uri_template: "/v1/{quota_preference.name}",
483
+ body: "quota_preference",
484
+ matches: [
485
+ ["quota_preference.name", %r{^folders/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
486
+ ]
487
+ )
488
+ .with_bindings(
489
+ uri_method: :patch,
490
+ uri_template: "/v1/{quota_preference.name}",
491
+ body: "quota_preference",
492
+ matches: [
493
+ ["quota_preference.name", %r{^organizations/[^/]+/locations/[^/]+/quotaPreferences/[^/]+/?$}, false]
494
+ ]
495
+ )
496
+ transcoder.transcode request_pb
497
+ end
498
+ end
499
+ end
500
+ end
501
+ end
502
+ end
503
+ end
504
+ 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