Class: Google::Apis::NetworkservicesV1beta1::MetadataLabels
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::MetadataLabels
- 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
-
#label_name ⇒ String
Required.
-
#label_value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetadataLabels
constructor
A new instance of MetadataLabels.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
Required. Label name presented as key in xDS Node Metadata.
Corresponds to the JSON property labelName
2761 2762 2763 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2761 def label_name @label_name end |
#label_value ⇒ String
Required. Label value presented as value corresponding to the above key, in
xDS Node Metadata.
Corresponds to the JSON property labelValue
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 |