generated/google/apis/servicemanagement_v1/classes.rb in google-api-client-0.42.2 vs generated/google/apis/servicemanagement_v1/classes.rb in google-api-client-0.43.0
- old
+ new
@@ -2564,11 +2564,11 @@
# Defines a metric type and its schema. Once a metric descriptor is created,
# deleting or altering it stops data collection and makes the metric type's
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
- # * `type`, `metric_kind`, `value_type`, `description`, and `display_name`
+ # * `type`, `metric_kind`, `value_type` and `description`
# fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
# The default maximum limit can be overridden. Please follow
@@ -3647,9 +3647,57 @@
@max_limit = args[:max_limit] if args.key?(:max_limit)
@metric = args[:metric] if args.key?(:metric)
@name = args[:name] if args.key?(:name)
@unit = args[:unit] if args.key?(:unit)
@values = args[:values] if args.key?(:values)
+ end
+ end
+
+ # Defines a proto annotation that describes a string field that refers to
+ # an API resource.
+ class ResourceReference
+ include Google::Apis::Core::Hashable
+
+ # The resource type of a child collection that the annotated field
+ # references. This is useful for annotating the `parent` field that
+ # doesn't have a fixed resource type.
+ # Example:
+ # message ListLogEntriesRequest `
+ # string parent = 1 [(google.api.resource_reference) = `
+ # child_type: "logging.googleapis.com/LogEntry"
+ # `;
+ # `
+ # Corresponds to the JSON property `childType`
+ # @return [String]
+ attr_accessor :child_type
+
+ # The resource type that the annotated field references.
+ # Example:
+ # message Subscription `
+ # string topic = 2 [(google.api.resource_reference) = `
+ # type: "pubsub.googleapis.com/Topic"
+ # `];
+ # `
+ # Occasionally, a field may reference an arbitrary resource. In this case,
+ # APIs use the special value * in their resource reference.
+ # Example:
+ # message GetIamPolicyRequest `
+ # string resource = 2 [(google.api.resource_reference) = `
+ # type: "*"
+ # `];
+ # `
+ # Corresponds to the JSON property `type`
+ # @return [String]
+ attr_accessor :type
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @child_type = args[:child_type] if args.key?(:child_type)
+ @type = args[:type] if args.key?(:type)
end
end
# A rollout resource that defines how service configuration versions are pushed
# to control plane systems. Typically, you create a new version of the