class Google::Apis::NetworkservicesV1beta1::MetadataLabels

Defines a name-pair value for a single label.

Attributes

label_name[RW]

Required. Label name presented as key in xDS Node Metadata. Corresponds to the JSON property `labelName` @return [String]

label_value[RW]

Required. Label value presented as value corresponding to the above key, in xDS Node Metadata. Corresponds to the JSON property `labelValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/networkservices_v1beta1/classes.rb, line 547
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/networkservices_v1beta1/classes.rb, line 552
def update!(**args)
  @label_name = args[:label_name] if args.key?(:label_name)
  @label_value = args[:label_value] if args.key?(:label_value)
end