Class: Google::Apis::NetworkservicesV1beta1::MetadataLabels

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

Overview

Defines a name-pair value for a single label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetadataLabels

Returns a new instance of MetadataLabels.



2769
2770
2771
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2769

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)


2761
2762
2763
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2761

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)


2767
2768
2769
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2767

def label_value
  @label_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2774
2775
2776
2777
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2774

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