google-apis-serviceusage_v1beta1 0.44.0 → 0.46.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: c7df1100f794f8957e6ef3736e693958c42c41fb278a6ee5fb7787e1411feed1
4
- data.tar.gz: edc2524318d819466554ed46d539b843740a6bc34c825ce6b4cba3bf7fc61d9e
3
+ metadata.gz: eb1b27ccabcc6f89b09f9f1baaa92fd52a69812feadc410ca047e5af84c923d9
4
+ data.tar.gz: 3da362aaa1b07d05682ebb9b3e03e406bfd5527683a650ad9535554d6915ff60
5
5
  SHA512:
6
- metadata.gz: ca83642f4089b9ee7a589fc78c9e2ff8b016af6899206816d784bde89aa4810da8843747de328f6a9555c00e19894bc70d1b5c5af6d5404e880ae1fb50416210
7
- data.tar.gz: e889e4ad2b2a05a659cbc869e8ab1df95d64da3389a94db4ab386fbf42844bce2af8ff9237bbcf3ba543cd5b85d1e738552f8bae6b326192aecf01d8df6c27b0
6
+ metadata.gz: 1b4a748a617b3b1c48f5b9cdc65b18affedd334bc3ed1e1f5913e1024ffeb4753e0ba46825983729db9b01e880571c3b4dfcd5541a7b94c0c7cc4b42bab12544
7
+ data.tar.gz: 2d3d8403fa0dc74ba00c45df3ab3274cda3457fab985a6d28a58ad1ac33b0e28fe8e957e09370d34b8bce93587a13391ec538c07c50a9204b52bcaf7d78b908a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-serviceusage_v1beta1
2
2
 
3
+ ### v0.46.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230907
6
+
7
+ ### v0.45.0 (2023-08-27)
8
+
9
+ * Regenerated from discovery document revision 20230815
10
+
3
11
  ### v0.44.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230806
@@ -35,7 +35,7 @@ module Google
35
35
  end
36
36
  end
37
37
 
38
- # The response message of "AddEnableRules" method.
38
+ # The response message of `AddEnableRules` method.
39
39
  class AddEnableRulesResponse
40
40
  include Google::Apis::Core::Hashable
41
41
 
@@ -806,10 +806,10 @@ module Google
806
806
  # @return [String]
807
807
  attr_accessor :etag
808
808
 
809
- # Output only. The resource name of the policy. For example, We only allow
810
- # consumer policy name as "default" for now: `projects/12345/consumerPolicies/
811
- # default`, `folders/12345/consumerPolicies/default`, `organizations/12345/
812
- # consumerPolicies/default`. Legacy format: `projects/12345/consumerPoly`
809
+ # Output only. The resource name of the policy. We only allow consumer policy
810
+ # name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/
811
+ # 12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`
812
+ # .
813
813
  # Corresponds to the JSON property `name`
814
814
  # @return [String]
815
815
  attr_accessor :name
@@ -1479,7 +1479,7 @@ module Google
1479
1479
 
1480
1480
  # DEPRECATED: Please use field `values`. Service group should have prefix `
1481
1481
  # groups/`. The names of the service groups that are enabled (Not Implemented).
1482
- # go/predefined-service-groups. Example: `groups/googleServices`.
1482
+ # Example: `groups/googleServices`.
1483
1483
  # Corresponds to the JSON property `groups`
1484
1484
  # @return [Array<String>]
1485
1485
  attr_accessor :groups
@@ -1491,7 +1491,8 @@ module Google
1491
1491
  attr_accessor :services
1492
1492
 
1493
1493
  # The names of the services or service groups that are enabled. Example: `
1494
- # services/storage.googleapis.com`, groups/googleServices`, groups/allServices`.
1494
+ # services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`
1495
+ # .
1495
1496
  # Corresponds to the JSON property `values`
1496
1497
  # @return [Array<String>]
1497
1498
  attr_accessor :values
@@ -4044,6 +4045,77 @@ module Google
4044
4045
  end
4045
4046
  end
4046
4047
 
4048
+ # Quota policy created by service producer.
4049
+ class ProducerQuotaPolicy
4050
+ include Google::Apis::Core::Hashable
4051
+
4052
+ # The cloud resource container at which the quota policy is created. The format
4053
+ # is ``container_type`/`container_number``
4054
+ # Corresponds to the JSON property `container`
4055
+ # @return [String]
4056
+ attr_accessor :container
4057
+
4058
+ # If this map is nonempty, then this policy applies only to specific values for
4059
+ # dimensions defined in the limit unit. For example, a policy on a limit with
4060
+ # the unit `1/`project`/`region`` could contain an entry with the key `region`
4061
+ # and the value `us-east-1`; the policy is only applied to quota consumed in
4062
+ # that region. This map has the following restrictions: * Keys that are not
4063
+ # defined in the limit's unit are not valid keys. Any string appearing in `
4064
+ # brackets` in the unit (besides `project` or `user`) is a defined key. * `
4065
+ # project` is not a valid key; the project is already specified in the parent
4066
+ # resource name. * `user` is not a valid key; the API does not support quota
4067
+ # policies that apply only to a specific user. * If `region` appears as a key,
4068
+ # its value must be a valid Cloud region. * If `zone` appears as a key, its
4069
+ # value must be a valid Cloud zone. * If any valid key other than `region` or `
4070
+ # zone` appears in the map, then all valid keys other than `region` or `zone`
4071
+ # must also appear in the map.
4072
+ # Corresponds to the JSON property `dimensions`
4073
+ # @return [Hash<String,String>]
4074
+ attr_accessor :dimensions
4075
+
4076
+ # The name of the metric to which this policy applies. An example name would be:
4077
+ # `compute.googleapis.com/cpus`
4078
+ # Corresponds to the JSON property `metric`
4079
+ # @return [String]
4080
+ attr_accessor :metric
4081
+
4082
+ # The resource name of the policy. This name is generated by the server when the
4083
+ # policy is created. Example names would be: `organizations/123/services/compute.
4084
+ # googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%
4085
+ # 2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
4086
+ # Corresponds to the JSON property `name`
4087
+ # @return [String]
4088
+ attr_accessor :name
4089
+
4090
+ # The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota)
4091
+ # .
4092
+ # Corresponds to the JSON property `policyValue`
4093
+ # @return [Fixnum]
4094
+ attr_accessor :policy_value
4095
+
4096
+ # The limit unit of the limit to which this policy applies. An example unit
4097
+ # would be: `1/`project`/`region`` Note that ``project`` and ``region`` are not
4098
+ # placeholders in this example; the literal characters ``` and ``` occur in the
4099
+ # string.
4100
+ # Corresponds to the JSON property `unit`
4101
+ # @return [String]
4102
+ attr_accessor :unit
4103
+
4104
+ def initialize(**args)
4105
+ update!(**args)
4106
+ end
4107
+
4108
+ # Update properties of this object
4109
+ def update!(**args)
4110
+ @container = args[:container] if args.key?(:container)
4111
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
4112
+ @metric = args[:metric] if args.key?(:metric)
4113
+ @name = args[:name] if args.key?(:name)
4114
+ @policy_value = args[:policy_value] if args.key?(:policy_value)
4115
+ @unit = args[:unit] if args.key?(:unit)
4116
+ end
4117
+ end
4118
+
4047
4119
  # This message configures the settings for publishing [Google Cloud Client
4048
4120
  # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
4049
4121
  # generated from the service config.
@@ -4234,6 +4306,11 @@ module Google
4234
4306
  # @return [Google::Apis::ServiceusageV1beta1::QuotaOverride]
4235
4307
  attr_accessor :producer_override
4236
4308
 
4309
+ # Quota policy created by service producer.
4310
+ # Corresponds to the JSON property `producerQuotaPolicy`
4311
+ # @return [Google::Apis::ServiceusageV1beta1::ProducerQuotaPolicy]
4312
+ attr_accessor :producer_quota_policy
4313
+
4237
4314
  def initialize(**args)
4238
4315
  update!(**args)
4239
4316
  end
@@ -4246,6 +4323,7 @@ module Google
4246
4323
  @dimensions = args[:dimensions] if args.key?(:dimensions)
4247
4324
  @effective_limit = args[:effective_limit] if args.key?(:effective_limit)
4248
4325
  @producer_override = args[:producer_override] if args.key?(:producer_override)
4326
+ @producer_quota_policy = args[:producer_quota_policy] if args.key?(:producer_quota_policy)
4249
4327
  end
4250
4328
  end
4251
4329
 
@@ -4444,7 +4522,7 @@ module Google
4444
4522
  end
4445
4523
  end
4446
4524
 
4447
- # The response message of "RemoveEnableRules" method.
4525
+ # The response message of `RemoveEnableRules` method.
4448
4526
  class RemoveEnableRulesResponse
4449
4527
  include Google::Apis::Core::Hashable
4450
4528
 
@@ -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.46.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 = "20230907"
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.46.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-09-17 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.46.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