google-cloud-cloud_quotas-v1 0.3.3 → 1.0.1

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: 4921e0096b15fc9e1cd6284cb886cfa22a936b409d87a2cafb7ec25be157eebd
4
- data.tar.gz: b2487a3f543f52dad77c1ddc6e42e8e689a3d51c5dc0e87b6ea2cca55ab32e28
3
+ metadata.gz: 6bfca08f5c190dce96e95f8e95e51d0f37b26a17cb876d89a5d5571a0b0af334
4
+ data.tar.gz: 5c2c9089fe124d1e4e7c0f24883dd8cab9f1d1a84bf0ef0dc6d49398d2ed2b99
5
5
  SHA512:
6
- metadata.gz: 17a244d15eea8bd8b563cf1a6db62f249c1ed66a3ddc330b3a94f9926db2d2ed431c880d9f265e1a85888a5943c8a9a809b1416d7cfda39613da2b89ef430e30
7
- data.tar.gz: 9cbdda81139a13762a26aa0919b6c32fc561fb051d56c9a4e65b77badce173c2ac96870356e338b4caa70dd1020a38f42286d93be408719dd0320531c8174035
6
+ metadata.gz: 7302e0ab47e3e776ebaa378d4dc6322a096a17f4d6e6423b3cdc28290858596ccb463b75931ebf545c5431d75e48d57b99d29c7480ebdebad2a7b2921409f8c1
7
+ data.tar.gz: 0ea8249054435b50cfd4e6c75c12160392b6f53b8c05d7aa3336a5968fa58e714422e28dbd319e7311ab86b0322dc5d105331d3f52da6182e09884ac2001a284
@@ -36,6 +36,9 @@ module Google
36
36
  # - List/Get pending and historical quota preference.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "cloudquotas.$UNIVERSE_DOMAIN$"
41
44
 
@@ -267,10 +270,11 @@ module Google
267
270
  # Customize the options with defaults
268
271
  metadata = @config.rpcs.list_quota_infos.metadata.to_h
269
272
 
270
- # Set x-goog-api-client and x-goog-user-project headers
273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
271
274
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
272
275
  lib_name: @config.lib_name, lib_version: @config.lib_version,
273
276
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION
277
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
274
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
279
 
276
280
  header_params = {}
@@ -356,10 +360,11 @@ module Google
356
360
  # Customize the options with defaults
357
361
  metadata = @config.rpcs.get_quota_info.metadata.to_h
358
362
 
359
- # Set x-goog-api-client and x-goog-user-project headers
363
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
360
364
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
361
365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
362
366
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION
367
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
363
368
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
364
369
 
365
370
  header_params = {}
@@ -473,10 +478,11 @@ module Google
473
478
  # Customize the options with defaults
474
479
  metadata = @config.rpcs.list_quota_preferences.metadata.to_h
475
480
 
476
- # Set x-goog-api-client and x-goog-user-project headers
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
477
482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
478
483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
479
484
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION
485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
480
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
481
487
 
482
488
  header_params = {}
@@ -562,10 +568,11 @@ module Google
562
568
  # Customize the options with defaults
563
569
  metadata = @config.rpcs.get_quota_preference.metadata.to_h
564
570
 
565
- # Set x-goog-api-client and x-goog-user-project headers
571
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
566
572
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
567
573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
568
574
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION
575
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
569
576
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
570
577
 
571
578
  header_params = {}
@@ -657,10 +664,11 @@ module Google
657
664
  # Customize the options with defaults
658
665
  metadata = @config.rpcs.create_quota_preference.metadata.to_h
659
666
 
660
- # Set x-goog-api-client and x-goog-user-project headers
667
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
661
668
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
662
669
  lib_name: @config.lib_name, lib_version: @config.lib_version,
663
670
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION
671
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
664
672
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
665
673
 
666
674
  header_params = {}
@@ -758,10 +766,11 @@ module Google
758
766
  # Customize the options with defaults
759
767
  metadata = @config.rpcs.update_quota_preference.metadata.to_h
760
768
 
761
- # Set x-goog-api-client and x-goog-user-project headers
769
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
762
770
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
763
771
  lib_name: @config.lib_name, lib_version: @config.lib_version,
764
772
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION
773
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
765
774
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
766
775
 
767
776
  header_params = {}
@@ -38,6 +38,9 @@ module Google
38
38
  # - List/Get pending and historical quota preference.
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "cloudquotas.$UNIVERSE_DOMAIN$"
43
46
 
@@ -259,12 +262,13 @@ module Google
259
262
  # Customize the options with defaults
260
263
  call_metadata = @config.rpcs.list_quota_infos.metadata.to_h
261
264
 
262
- # Set x-goog-api-client and x-goog-user-project headers
265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
263
266
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
264
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
265
268
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION,
266
269
  transports_version_send: [:rest]
267
270
 
271
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  options.apply_defaults timeout: @config.rpcs.list_quota_infos.timeout,
@@ -341,12 +345,13 @@ module Google
341
345
  # Customize the options with defaults
342
346
  call_metadata = @config.rpcs.get_quota_info.metadata.to_h
343
347
 
344
- # Set x-goog-api-client and x-goog-user-project headers
348
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
345
349
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
346
350
  lib_name: @config.lib_name, lib_version: @config.lib_version,
347
351
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION,
348
352
  transports_version_send: [:rest]
349
353
 
354
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
350
355
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
356
 
352
357
  options.apply_defaults timeout: @config.rpcs.get_quota_info.timeout,
@@ -451,12 +456,13 @@ module Google
451
456
  # Customize the options with defaults
452
457
  call_metadata = @config.rpcs.list_quota_preferences.metadata.to_h
453
458
 
454
- # Set x-goog-api-client and x-goog-user-project headers
459
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
455
460
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
456
461
  lib_name: @config.lib_name, lib_version: @config.lib_version,
457
462
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION,
458
463
  transports_version_send: [:rest]
459
464
 
465
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
466
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
467
 
462
468
  options.apply_defaults timeout: @config.rpcs.list_quota_preferences.timeout,
@@ -532,12 +538,13 @@ module Google
532
538
  # Customize the options with defaults
533
539
  call_metadata = @config.rpcs.get_quota_preference.metadata.to_h
534
540
 
535
- # Set x-goog-api-client and x-goog-user-project headers
541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
536
542
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
537
543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
538
544
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION,
539
545
  transports_version_send: [:rest]
540
546
 
547
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
541
548
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
542
549
 
543
550
  options.apply_defaults timeout: @config.rpcs.get_quota_preference.timeout,
@@ -620,12 +627,13 @@ module Google
620
627
  # Customize the options with defaults
621
628
  call_metadata = @config.rpcs.create_quota_preference.metadata.to_h
622
629
 
623
- # Set x-goog-api-client and x-goog-user-project headers
630
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
624
631
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
625
632
  lib_name: @config.lib_name, lib_version: @config.lib_version,
626
633
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION,
627
634
  transports_version_send: [:rest]
628
635
 
636
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
629
637
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
630
638
 
631
639
  options.apply_defaults timeout: @config.rpcs.create_quota_preference.timeout,
@@ -714,12 +722,13 @@ module Google
714
722
  # Customize the options with defaults
715
723
  call_metadata = @config.rpcs.update_quota_preference.metadata.to_h
716
724
 
717
- # Set x-goog-api-client and x-goog-user-project headers
725
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
718
726
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
719
727
  lib_name: @config.lib_name, lib_version: @config.lib_version,
720
728
  gapic_version: ::Google::Cloud::CloudQuotas::V1::VERSION,
721
729
  transports_version_send: [:rest]
722
730
 
731
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
723
732
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
724
733
 
725
734
  options.apply_defaults timeout: @config.rpcs.update_quota_preference.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module CloudQuotas
23
23
  module V1
24
- VERSION = "0.3.3"
24
+ VERSION = "1.0.1"
25
25
  end
26
26
  end
27
27
  end
@@ -196,9 +196,26 @@ module Google
196
196
  # @!attribute [rw] common
197
197
  # @return [::Google::Api::CommonLanguageSettings]
198
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
199
202
  class PythonSettings
200
203
  include ::Google::Protobuf::MessageExts
201
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
202
219
  end
203
220
 
204
221
  # Settings for Node client libraries.
@@ -290,6 +307,13 @@ module Google
290
307
  # @return [::String]
291
308
  # The fully qualified name of the method, for which the options below apply.
292
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
293
317
  # @!attribute [rw] long_running
294
318
  # @return [::Google::Api::MethodSettings::LongRunning]
295
319
  # Describes settings to use for long-running operations when generating
@@ -298,17 +322,14 @@ module Google
298
322
  #
299
323
  # Example of a YAML configuration::
300
324
  #
301
- # publishing:
302
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
303
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
328
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
307
330
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
312
333
  # @!attribute [rw] auto_populated_fields
313
334
  # @return [::Array<::String>]
314
335
  # List of top-level fields of the request message, that should be
@@ -317,8 +338,8 @@ module Google
317
338
  #
318
339
  # Example of a YAML configuration:
319
340
  #
320
- # publishing:
321
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
322
343
  # - selector: google.example.v1.ExampleService.CreateExample
323
344
  # auto_populated_fields:
324
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-cloud_quotas-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-19 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common