google-cloud-cloud_quotas-v1 0.3.2 → 1.0.0

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: 380c9fd2b5cacdacb87643f9cd822dc8d1a52e9c79be58856a6d0af2a1aaca53
4
- data.tar.gz: fbbcd69a180330593a10e2ed6e28f023fed9d9706255135b5c904dcf4d4a8e9b
3
+ metadata.gz: 79d84443c2bc7196a5733a8a7536c782570d82959d5127b717d3372c1b11c00c
4
+ data.tar.gz: 319ca9cebdd7b4d9b2f3452cd5af7827432f16c52a913cf348b756fa7f9c964e
5
5
  SHA512:
6
- metadata.gz: 520141e8c09742c117d7f2261dd991c693f5116acad07319e712ee965083cd79c56f54e66e82189a96b5ba0e726ee82b497efbd8483178e55fc22c1c89e582e6
7
- data.tar.gz: ec4ae5fb5b6e5ffcac4a97c451a38584adac263657b912788fe384d2d5905b5a05f719f287bd0e22690b61882a632b034f7b87c1ec5230a05dddc9b2a0c24760
6
+ metadata.gz: 1fc5ddf2fe3d5e5183641972e1c2f6f8e24d86a859943849869a937d38dc8ba59bf9002ac04d3cf461f63dff8e33f8f059619cd2cd1fcb67b2226ba7c33c5d8c
7
+ data.tar.gz: 1707b6b76948e5341daf248ceeba1eeb64d41513ac9af5999435797ba92145517d3449b1b1649edb573d1d693ebae3d752ac83ce94f8f31fbe28a3f4a43a001c
@@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb'
10
10
  require 'google/protobuf/wrappers_pb'
11
11
 
12
12
 
13
- descriptor_data = "\n)google/api/cloudquotas/v1/resources.proto\x12\x19google.api.cloudquotas.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x9f\x07\n\tQuotaInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08quota_id\x18\x02 \x01(\t\x12\x0e\n\x06metric\x18\x03 \x01(\t\x12\x0f\n\x07service\x18\x04 \x01(\t\x12\x12\n\nis_precise\x18\x05 \x01(\x08\x12\x18\n\x10refresh_interval\x18\x06 \x01(\t\x12J\n\x0e\x63ontainer_type\x18\x07 \x01(\x0e\x32\x32.google.api.cloudquotas.v1.QuotaInfo.ContainerType\x12\x12\n\ndimensions\x18\x08 \x03(\t\x12\x1b\n\x13metric_display_name\x18\t \x01(\t\x12\x1a\n\x12quota_display_name\x18\n \x01(\t\x12\x13\n\x0bmetric_unit\x18\x0b \x01(\t\x12W\n\x1aquota_increase_eligibility\x18\x0c \x01(\x0b\x32\x33.google.api.cloudquotas.v1.QuotaIncreaseEligibility\x12\x10\n\x08is_fixed\x18\r \x01(\x08\x12\x43\n\x10\x64imensions_infos\x18\x0e \x03(\x0b\x32).google.api.cloudquotas.v1.DimensionsInfo\x12\x15\n\ris_concurrent\x18\x0f \x01(\x08\x12!\n\x19service_request_quota_uri\x18\x11 \x01(\t\"Z\n\rContainerType\x12\x1e\n\x1a\x43ONTAINER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PROJECT\x10\x01\x12\n\n\x06\x46OLDER\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03:\xae\x02\xea\x41\xaa\x02\n$cloudquotas.googleapis.com/QuotaInfo\x12Rprojects/{project}/locations/{location}/services/{service}/quotaInfos/{quota_info}\x12Pfolders/{folder}/locations/{location}/services/{service}/quotaInfos/{quota_info}\x12\\organizations/{organization}/locations/{location}/services/{service}/quotaInfos/{quota_info}\"\xfc\x01\n\x18QuotaIncreaseEligibility\x12\x13\n\x0bis_eligible\x18\x01 \x01(\x08\x12\x65\n\x14ineligibility_reason\x18\x02 \x01(\x0e\x32G.google.api.cloudquotas.v1.QuotaIncreaseEligibility.IneligibilityReason\"d\n\x13IneligibilityReason\x12$\n INELIGIBILITY_REASON_UNSPECIFIED\x10\x00\x12\x1c\n\x18NO_VALID_BILLING_ACCOUNT\x10\x01\x12\t\n\x05OTHER\x10\x02\"\x85\x06\n\x0fQuotaPreference\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\ndimensions\x18\x02 \x03(\x0b\x32:.google.api.cloudquotas.v1.QuotaPreference.DimensionsEntryB\x03\xe0\x41\x05\x12\x41\n\x0cquota_config\x18\x03 \x01(\x0b\x32&.google.api.cloudquotas.v1.QuotaConfigB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07service\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08quota_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0breconciling\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12\x15\n\rjustification\x18\x0b \x01(\t\x12\x1a\n\rcontact_email\x18\x0c \x01(\tB\x03\xe0\x41\x04\x1a\x31\n\x0f\x44imensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x02\xea\x41\x9b\x02\n*cloudquotas.googleapis.com/QuotaPreference\x12Kprojects/{project}/locations/{location}/quotaPreferences/{quota_preference}\x12Ifolders/{folder}/locations/{location}/quotaPreferences/{quota_preference}\x12Uorganizations/{organization}/locations/{location}/quotaPreferences/{quota_preference}\"\xb1\x03\n\x0bQuotaConfig\x12\x1c\n\x0fpreferred_value\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x19\n\x0cstate_detail\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x37\n\rgranted_value\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x15\n\x08trace_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12Q\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32\x37.google.api.cloudquotas.v1.QuotaConfig.AnnotationsEntryB\x03\xe0\x41\x01\x12J\n\x0erequest_origin\x18\x06 \x01(\x0e\x32-.google.api.cloudquotas.v1.QuotaConfig.OriginB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x06Origin\x12\x16\n\x12ORIGIN_UNSPECIFIED\x10\x00\x12\x11\n\rCLOUD_CONSOLE\x10\x01\x12\x11\n\rAUTO_ADJUSTER\x10\x02\"\xea\x01\n\x0e\x44imensionsInfo\x12M\n\ndimensions\x18\x01 \x03(\x0b\x32\x39.google.api.cloudquotas.v1.DimensionsInfo.DimensionsEntry\x12\x38\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\'.google.api.cloudquotas.v1.QuotaDetails\x12\x1c\n\x14\x61pplicable_locations\x18\x03 \x03(\t\x1a\x31\n\x0f\x44imensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1d\n\x0cQuotaDetails\x12\r\n\x05value\x18\x01 \x01(\x03*~\n\x10QuotaSafetyCheck\x12\"\n\x1eQUOTA_SAFETY_CHECK_UNSPECIFIED\x10\x00\x12\x1e\n\x1aQUOTA_DECREASE_BELOW_USAGE\x10\x01\x12&\n\"QUOTA_DECREASE_PERCENTAGE_TOO_HIGH\x10\x02\x42\xd1\x01\n\x1d\x63om.google.api.cloudquotas.v1B\x0eResourcesProtoP\x01ZAcloud.google.com/go/cloudquotas/apiv1/cloudquotaspb;cloudquotaspb\xaa\x02\x1bGoogle.Cloud.CloudQuotas.V1\xca\x02\x1bGoogle\\Cloud\\CloudQuotas\\V1\xea\x02\x1eGoogle::Cloud::CloudQuotas::V1b\x06proto3"
13
+ descriptor_data = "\n)google/api/cloudquotas/v1/resources.proto\x12\x19google.api.cloudquotas.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x9f\x07\n\tQuotaInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08quota_id\x18\x02 \x01(\t\x12\x0e\n\x06metric\x18\x03 \x01(\t\x12\x0f\n\x07service\x18\x04 \x01(\t\x12\x12\n\nis_precise\x18\x05 \x01(\x08\x12\x18\n\x10refresh_interval\x18\x06 \x01(\t\x12J\n\x0e\x63ontainer_type\x18\x07 \x01(\x0e\x32\x32.google.api.cloudquotas.v1.QuotaInfo.ContainerType\x12\x12\n\ndimensions\x18\x08 \x03(\t\x12\x1b\n\x13metric_display_name\x18\t \x01(\t\x12\x1a\n\x12quota_display_name\x18\n \x01(\t\x12\x13\n\x0bmetric_unit\x18\x0b \x01(\t\x12W\n\x1aquota_increase_eligibility\x18\x0c \x01(\x0b\x32\x33.google.api.cloudquotas.v1.QuotaIncreaseEligibility\x12\x10\n\x08is_fixed\x18\r \x01(\x08\x12\x43\n\x10\x64imensions_infos\x18\x0e \x03(\x0b\x32).google.api.cloudquotas.v1.DimensionsInfo\x12\x15\n\ris_concurrent\x18\x0f \x01(\x08\x12!\n\x19service_request_quota_uri\x18\x11 \x01(\t\"Z\n\rContainerType\x12\x1e\n\x1a\x43ONTAINER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PROJECT\x10\x01\x12\n\n\x06\x46OLDER\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03:\xae\x02\xea\x41\xaa\x02\n$cloudquotas.googleapis.com/QuotaInfo\x12Rprojects/{project}/locations/{location}/services/{service}/quotaInfos/{quota_info}\x12Pfolders/{folder}/locations/{location}/services/{service}/quotaInfos/{quota_info}\x12\\organizations/{organization}/locations/{location}/services/{service}/quotaInfos/{quota_info}\"\xfc\x01\n\x18QuotaIncreaseEligibility\x12\x13\n\x0bis_eligible\x18\x01 \x01(\x08\x12\x65\n\x14ineligibility_reason\x18\x02 \x01(\x0e\x32G.google.api.cloudquotas.v1.QuotaIncreaseEligibility.IneligibilityReason\"d\n\x13IneligibilityReason\x12$\n INELIGIBILITY_REASON_UNSPECIFIED\x10\x00\x12\x1c\n\x18NO_VALID_BILLING_ACCOUNT\x10\x01\x12\t\n\x05OTHER\x10\x02\"\x85\x06\n\x0fQuotaPreference\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\ndimensions\x18\x02 \x03(\x0b\x32:.google.api.cloudquotas.v1.QuotaPreference.DimensionsEntryB\x03\xe0\x41\x05\x12\x41\n\x0cquota_config\x18\x03 \x01(\x0b\x32&.google.api.cloudquotas.v1.QuotaConfigB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07service\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08quota_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0breconciling\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12\x15\n\rjustification\x18\x0b \x01(\t\x12\x1a\n\rcontact_email\x18\x0c \x01(\tB\x03\xe0\x41\x04\x1a\x31\n\x0f\x44imensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x02\xea\x41\x9b\x02\n*cloudquotas.googleapis.com/QuotaPreference\x12Kprojects/{project}/locations/{location}/quotaPreferences/{quota_preference}\x12Ifolders/{folder}/locations/{location}/quotaPreferences/{quota_preference}\x12Uorganizations/{organization}/locations/{location}/quotaPreferences/{quota_preference}\"\xb1\x03\n\x0bQuotaConfig\x12\x1c\n\x0fpreferred_value\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x19\n\x0cstate_detail\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x37\n\rgranted_value\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x15\n\x08trace_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12Q\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32\x37.google.api.cloudquotas.v1.QuotaConfig.AnnotationsEntryB\x03\xe0\x41\x01\x12J\n\x0erequest_origin\x18\x06 \x01(\x0e\x32-.google.api.cloudquotas.v1.QuotaConfig.OriginB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x06Origin\x12\x16\n\x12ORIGIN_UNSPECIFIED\x10\x00\x12\x11\n\rCLOUD_CONSOLE\x10\x01\x12\x11\n\rAUTO_ADJUSTER\x10\x02\"\xea\x01\n\x0e\x44imensionsInfo\x12M\n\ndimensions\x18\x01 \x03(\x0b\x32\x39.google.api.cloudquotas.v1.DimensionsInfo.DimensionsEntry\x12\x38\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\'.google.api.cloudquotas.v1.QuotaDetails\x12\x1c\n\x14\x61pplicable_locations\x18\x03 \x03(\t\x1a\x31\n\x0f\x44imensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"[\n\x0cQuotaDetails\x12\r\n\x05value\x18\x01 \x01(\x03\x12<\n\x0crollout_info\x18\x03 \x01(\x0b\x32&.google.api.cloudquotas.v1.RolloutInfo\"&\n\x0bRolloutInfo\x12\x17\n\x0fongoing_rollout\x18\x01 \x01(\x08*~\n\x10QuotaSafetyCheck\x12\"\n\x1eQUOTA_SAFETY_CHECK_UNSPECIFIED\x10\x00\x12\x1e\n\x1aQUOTA_DECREASE_BELOW_USAGE\x10\x01\x12&\n\"QUOTA_DECREASE_PERCENTAGE_TOO_HIGH\x10\x02\x42\xd1\x01\n\x1d\x63om.google.api.cloudquotas.v1B\x0eResourcesProtoP\x01ZAcloud.google.com/go/cloudquotas/apiv1/cloudquotaspb;cloudquotaspb\xaa\x02\x1bGoogle.Cloud.CloudQuotas.V1\xca\x02\x1bGoogle\\Cloud\\CloudQuotas\\V1\xea\x02\x1eGoogle::Cloud::CloudQuotas::V1b\x06proto3"
14
14
 
15
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
16
 
@@ -51,6 +51,7 @@ module Google
51
51
  QuotaConfig::Origin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.cloudquotas.v1.QuotaConfig.Origin").enummodule
52
52
  DimensionsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.cloudquotas.v1.DimensionsInfo").msgclass
53
53
  QuotaDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.cloudquotas.v1.QuotaDetails").msgclass
54
+ RolloutInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.cloudquotas.v1.RolloutInfo").msgclass
54
55
  QuotaSafetyCheck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.cloudquotas.v1.QuotaSafetyCheck").enummodule
55
56
  end
56
57
  end
@@ -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.2"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -190,16 +190,15 @@ module Google
190
190
  # The reason / justification for this quota preference.
191
191
  # @!attribute [rw] contact_email
192
192
  # @return [::String]
193
- # Input only. An email address that can be used for quota related
194
- # communication between the Google Cloud and the user in case the Google
195
- # Cloud needs further information to make a decision on whether the user
196
- # preferred quota can be granted.
193
+ # Input only. An email address that can be used to contact the the user, in
194
+ # case Google Cloud needs more information to make a decision before
195
+ # additional quota can be granted.
197
196
  #
198
- # The email address is optional for decrease quota preferences. In another
199
- # word, QuotaConfig.preferred_value is smaller than the
200
- # QuotaDetails.reset_value. It is required for increase quota preferences.
201
- # The Google account for the email address must have quota update permission
202
- # for the project, folder or organization this quota preference is for.
197
+ # When requesting a quota increase, the email address is required.
198
+ # When requesting a quota decrease, the email address is optional.
199
+ # For example, the email address is optional when the
200
+ # `QuotaConfig.preferred_value` is smaller than the
201
+ # `QuotaDetails.reset_value`.
203
202
  class QuotaPreference
204
203
  include ::Google::Protobuf::MessageExts
205
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -305,11 +304,25 @@ module Google
305
304
  # @!attribute [rw] value
306
305
  # @return [::Integer]
307
306
  # The value currently in effect and being enforced.
307
+ # @!attribute [rw] rollout_info
308
+ # @return [::Google::Cloud::CloudQuotas::V1::RolloutInfo]
309
+ # Rollout information of this quota.
310
+ # This field is present only if the effective limit will change due to the
311
+ # ongoing rollout of the service config.
308
312
  class QuotaDetails
309
313
  include ::Google::Protobuf::MessageExts
310
314
  extend ::Google::Protobuf::MessageExts::ClassMethods
311
315
  end
312
316
 
317
+ # [Output only] Rollout information of a quota.
318
+ # @!attribute [rw] ongoing_rollout
319
+ # @return [::Boolean]
320
+ # Whether there is an ongoing rollout for a quota or not.
321
+ class RolloutInfo
322
+ include ::Google::Protobuf::MessageExts
323
+ extend ::Google::Protobuf::MessageExts::ClassMethods
324
+ end
325
+
313
326
  # Enumerations of quota safety checks.
314
327
  module QuotaSafetyCheck
315
328
  # Unspecified quota safety check.
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.2
4
+ version: 1.0.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: 2024-04-15 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common