Class: Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcherMetadataLabels

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb

Overview

Defines a name-pair value for a single label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EndpointMatcherMetadataLabelMatcherMetadataLabels

Returns a new instance of EndpointMatcherMetadataLabelMatcherMetadataLabels.



300
301
302
# File 'lib/google/apis/networkservices_v1/classes.rb', line 300

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#label_nameString

Required. Label name presented as key in xDS Node Metadata. Corresponds to the JSON property labelName

Returns:

  • (String)


292
293
294
# File 'lib/google/apis/networkservices_v1/classes.rb', line 292

def label_name
  @label_name
end

#label_valueString

Required. Label value presented as value corresponding to the above key, in xDS Node Metadata. Corresponds to the JSON property labelValue

Returns:

  • (String)


298
299
300
# File 'lib/google/apis/networkservices_v1/classes.rb', line 298

def label_value
  @label_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



305
306
307
308
# File 'lib/google/apis/networkservices_v1/classes.rb', line 305

def update!(**args)
  @label_name = args[:label_name] if args.key?(:label_name)
  @label_value = args[:label_value] if args.key?(:label_value)
end