class Google::Apis::PubsubV1beta1a::Label
A key-value pair applied to a given object.
Attributes
The key of a label is a syntactically valid URL (as per RFC 1738) with the “ scheme” and initial slashes omitted and with the additional restrictions noted below. Each key should be globally unique. The “host” portion is called the “ namespace” and is not necessarily resolvable to a network endpoint. Instead, the namespace indicates what system or entity defines the semantics of the label. Namespaces do not restrict the set of objects to which a label may be associated. Keys are defined by the following grammar: key = hostname “/” kpath kpath = ksegment *[ “/” ksegment ] ksegment = alphadigit | *[ alphadigit | “-” | “_” | “.” ] where “hostname” and “alphadigit” are defined as in RFC
-
Example key: spanner.google.com/universe
Corresponds to the JSON property `key` @return [String]
An integer value. Corresponds to the JSON property `numValue` @return [Fixnum]
A string value. Corresponds to the JSON property `strValue` @return [String]
Public Class Methods
# File lib/google/apis/pubsub_v1beta1a/classes.rb, line 98 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/pubsub_v1beta1a/classes.rb, line 103 def update!(**args) @key = args[:key] if args.key?(:key) @num_value = args[:num_value] if args.key?(:num_value) @str_value = args[:str_value] if args.key?(:str_value) end