generated/google/apis/serviceconsumermanagement_v1/classes.rb in google-api-client-0.40.2 vs generated/google/apis/serviceconsumermanagement_v1/classes.rb in google-api-client-0.41.0
- old
+ new
@@ -2080,10 +2080,11 @@
# * `By` byte
# * `s` second
# * `min` minute
# * `h` hour
# * `d` day
+ # * `1` dimensionless
# **Prefixes (PREFIX)**
# * `k` kilo (10^3)
# * `M` mega (10^6)
# * `G` giga (10^9)
# * `T` tera (10^12)
@@ -2334,12 +2335,12 @@
# * The `type`, `display_name`, `description`, `labels` and `launch_stage`
# fields are all required.
# * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`.
- # * It must include a `location` label. * Maximum of default 5 service defined
- # monitored resource descriptors
+ # * It must include a `location` label.
+ # * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow
# https://cloud.google.com/monitoring/quotas
class MonitoredResourceDescriptor
@@ -2385,10 +2386,20 @@
# resource name format `"monitoredResourceDescriptors/`type`"`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
+ # Required. The monitored resource type. For example, the type
+ # `cloudsql_database` represents databases in Google Cloud SQL.
+ # All service defined monitored resource types must be prefixed with the
+ # service name, in the format of ``service name`/`relative resource name``.
+ # The relative resource name must follow:
+ # * Only upper and lower-case letters and digits are allowed.
+ # * It must start with upper case character and is recommended to use Upper
+ # Camel Case style.
+ # * The maximum number of characters allowed for the relative_resource_name
+ # is 100.
# Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@@ -4234,10 +4245,17 @@
# A quota override
class V1Beta1QuotaOverride
include Google::Apis::Core::Hashable
+ # The resource name of the ancestor that requested the override. For example:
+ # "organizations/12345" or "folders/67890".
+ # Used by admin overrides only.
+ # Corresponds to the JSON property `adminOverrideAncestor`
+ # @return [String]
+ attr_accessor :admin_override_ancestor
+
# If this map is nonempty, then this override applies only to specific values
# for dimensions defined in the limit unit.
# For example, an override on a limit with the unit 1/`project`/`region`
# could contain an entry with the key "region" and the value "us-east-1";
# the override is only applied to quota consumed in that region.
@@ -4292,9 +4310,10 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @admin_override_ancestor = args[:admin_override_ancestor] if args.key?(:admin_override_ancestor)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@metric = args[:metric] if args.key?(:metric)
@name = args[:name] if args.key?(:name)
@override_value = args[:override_value] if args.key?(:override_value)
@unit = args[:unit] if args.key?(:unit)