Class: Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcherMetadataLabels
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcherMetadataLabels
- 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
-
#label_name ⇒ String
Required.
-
#label_value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EndpointMatcherMetadataLabelMatcherMetadataLabels
constructor
A new instance of EndpointMatcherMetadataLabelMatcherMetadataLabels.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
Required. Label name presented as key in xDS Node Metadata.
Corresponds to the JSON property labelName
292 293 294 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 292 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
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 |