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.



275
276
277
# File 'lib/google/apis/networkservices_v1/classes.rb', line 275

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)


267
268
269
# File 'lib/google/apis/networkservices_v1/classes.rb', line 267

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)


273
274
275
# File 'lib/google/apis/networkservices_v1/classes.rb', line 273

def label_value
  @label_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



280
281
282
283
# File 'lib/google/apis/networkservices_v1/classes.rb', line 280

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