google-apis-serviceusage_v1beta1 0.44.0 → 0.45.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7df1100f794f8957e6ef3736e693958c42c41fb278a6ee5fb7787e1411feed1
4
- data.tar.gz: edc2524318d819466554ed46d539b843740a6bc34c825ce6b4cba3bf7fc61d9e
3
+ metadata.gz: a04e96f88ca404ccd2c876ae6b9f7e6d8707c6879b65e6ff679aec904626afb3
4
+ data.tar.gz: 1cb8a90253e644cf452daefb92034d55fe07478030ab9f6848c083cca8501397
5
5
  SHA512:
6
- metadata.gz: ca83642f4089b9ee7a589fc78c9e2ff8b016af6899206816d784bde89aa4810da8843747de328f6a9555c00e19894bc70d1b5c5af6d5404e880ae1fb50416210
7
- data.tar.gz: e889e4ad2b2a05a659cbc869e8ab1df95d64da3389a94db4ab386fbf42844bce2af8ff9237bbcf3ba543cd5b85d1e738552f8bae6b326192aecf01d8df6c27b0
6
+ metadata.gz: 03726abbaf720f36e2d95fda1eba0be1107d7853063c3ad30dd261b46ca9f1fdbc512555be08d80aaaeee684135307a55d9d0f2a1c8efed815dc1e1c53ae2c71
7
+ data.tar.gz: 04bb85790110f5592b32d3f86cb6285cc8d446eff1ffb088b15c0827f0fe9a01f4c3b7471e84a89e97e93aa79de837f7c2dac5cbe9f77838643ccbc793c4170b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-serviceusage_v1beta1
2
2
 
3
+ ### v0.45.0 (2023-08-27)
4
+
5
+ * Regenerated from discovery document revision 20230815
6
+
3
7
  ### v0.44.0 (2023-08-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20230806
@@ -4044,6 +4044,77 @@ module Google
4044
4044
  end
4045
4045
  end
4046
4046
 
4047
+ # Quota policy created by service producer.
4048
+ class ProducerQuotaPolicy
4049
+ include Google::Apis::Core::Hashable
4050
+
4051
+ # The cloud resource container at which the quota policy is created. The format
4052
+ # is ``container_type`/`container_number``
4053
+ # Corresponds to the JSON property `container`
4054
+ # @return [String]
4055
+ attr_accessor :container
4056
+
4057
+ # If this map is nonempty, then this policy applies only to specific values for
4058
+ # dimensions defined in the limit unit. For example, a policy on a limit with
4059
+ # the unit `1/`project`/`region`` could contain an entry with the key `region`
4060
+ # and the value `us-east-1`; the policy is only applied to quota consumed in
4061
+ # that region. This map has the following restrictions: * Keys that are not
4062
+ # defined in the limit's unit are not valid keys. Any string appearing in `
4063
+ # brackets` in the unit (besides `project` or `user`) is a defined key. * `
4064
+ # project` is not a valid key; the project is already specified in the parent
4065
+ # resource name. * `user` is not a valid key; the API does not support quota
4066
+ # policies that apply only to a specific user. * If `region` appears as a key,
4067
+ # its value must be a valid Cloud region. * If `zone` appears as a key, its
4068
+ # value must be a valid Cloud zone. * If any valid key other than `region` or `
4069
+ # zone` appears in the map, then all valid keys other than `region` or `zone`
4070
+ # must also appear in the map.
4071
+ # Corresponds to the JSON property `dimensions`
4072
+ # @return [Hash<String,String>]
4073
+ attr_accessor :dimensions
4074
+
4075
+ # The name of the metric to which this policy applies. An example name would be:
4076
+ # `compute.googleapis.com/cpus`
4077
+ # Corresponds to the JSON property `metric`
4078
+ # @return [String]
4079
+ attr_accessor :metric
4080
+
4081
+ # The resource name of the policy. This name is generated by the server when the
4082
+ # policy is created. Example names would be: `organizations/123/services/compute.
4083
+ # googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%
4084
+ # 2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
4085
+ # Corresponds to the JSON property `name`
4086
+ # @return [String]
4087
+ attr_accessor :name
4088
+
4089
+ # The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota)
4090
+ # .
4091
+ # Corresponds to the JSON property `policyValue`
4092
+ # @return [Fixnum]
4093
+ attr_accessor :policy_value
4094
+
4095
+ # The limit unit of the limit to which this policy applies. An example unit
4096
+ # would be: `1/`project`/`region`` Note that ``project`` and ``region`` are not
4097
+ # placeholders in this example; the literal characters ``` and ``` occur in the
4098
+ # string.
4099
+ # Corresponds to the JSON property `unit`
4100
+ # @return [String]
4101
+ attr_accessor :unit
4102
+
4103
+ def initialize(**args)
4104
+ update!(**args)
4105
+ end
4106
+
4107
+ # Update properties of this object
4108
+ def update!(**args)
4109
+ @container = args[:container] if args.key?(:container)
4110
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
4111
+ @metric = args[:metric] if args.key?(:metric)
4112
+ @name = args[:name] if args.key?(:name)
4113
+ @policy_value = args[:policy_value] if args.key?(:policy_value)
4114
+ @unit = args[:unit] if args.key?(:unit)
4115
+ end
4116
+ end
4117
+
4047
4118
  # This message configures the settings for publishing [Google Cloud Client
4048
4119
  # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
4049
4120
  # generated from the service config.
@@ -4234,6 +4305,11 @@ module Google
4234
4305
  # @return [Google::Apis::ServiceusageV1beta1::QuotaOverride]
4235
4306
  attr_accessor :producer_override
4236
4307
 
4308
+ # Quota policy created by service producer.
4309
+ # Corresponds to the JSON property `producerQuotaPolicy`
4310
+ # @return [Google::Apis::ServiceusageV1beta1::ProducerQuotaPolicy]
4311
+ attr_accessor :producer_quota_policy
4312
+
4237
4313
  def initialize(**args)
4238
4314
  update!(**args)
4239
4315
  end
@@ -4246,6 +4322,7 @@ module Google
4246
4322
  @dimensions = args[:dimensions] if args.key?(:dimensions)
4247
4323
  @effective_limit = args[:effective_limit] if args.key?(:effective_limit)
4248
4324
  @producer_override = args[:producer_override] if args.key?(:producer_override)
4325
+ @producer_quota_policy = args[:producer_quota_policy] if args.key?(:producer_quota_policy)
4249
4326
  end
4250
4327
  end
4251
4328
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServiceusageV1beta1
18
18
  # Version of the google-apis-serviceusage_v1beta1 gem
19
- GEM_VERSION = "0.44.0"
19
+ GEM_VERSION = "0.45.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230806"
25
+ REVISION = "20230815"
26
26
  end
27
27
  end
28
28
  end
@@ -586,6 +586,12 @@ module Google
586
586
  include Google::Apis::Core::JsonObjectSupport
587
587
  end
588
588
 
589
+ class ProducerQuotaPolicy
590
+ class Representation < Google::Apis::Core::JsonRepresentation; end
591
+
592
+ include Google::Apis::Core::JsonObjectSupport
593
+ end
594
+
589
595
  class Publishing
590
596
  class Representation < Google::Apis::Core::JsonRepresentation; end
591
597
 
@@ -1698,6 +1704,18 @@ module Google
1698
1704
  end
1699
1705
  end
1700
1706
 
1707
+ class ProducerQuotaPolicy
1708
+ # @private
1709
+ class Representation < Google::Apis::Core::JsonRepresentation
1710
+ property :container, as: 'container'
1711
+ hash :dimensions, as: 'dimensions'
1712
+ property :metric, as: 'metric'
1713
+ property :name, as: 'name'
1714
+ property :policy_value, :numeric_string => true, as: 'policyValue'
1715
+ property :unit, as: 'unit'
1716
+ end
1717
+ end
1718
+
1701
1719
  class Publishing
1702
1720
  # @private
1703
1721
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1746,6 +1764,8 @@ module Google
1746
1764
  property :effective_limit, :numeric_string => true, as: 'effectiveLimit'
1747
1765
  property :producer_override, as: 'producerOverride', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
1748
1766
 
1767
+ property :producer_quota_policy, as: 'producerQuotaPolicy', class: Google::Apis::ServiceusageV1beta1::ProducerQuotaPolicy, decorator: Google::Apis::ServiceusageV1beta1::ProducerQuotaPolicy::Representation
1768
+
1749
1769
  end
1750
1770
  end
1751
1771
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-serviceusage_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.45.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: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceusage_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1beta1/v0.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1beta1/v0.45.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceusage_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Service Usage API V1beta1