Class: Google::Apis::NetworkservicesV1beta1::EndpointMatcher
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::EndpointMatcher
- 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
A definition of a matcher that selects endpoints to which the policies should be applied.
Instance Attribute Summary collapse
-
#metadata_label_matcher ⇒ Google::Apis::NetworkservicesV1beta1::MetadataLabelMatcher
The matcher that is based on node metadata presented by xDS clients.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EndpointMatcher
constructor
A new instance of EndpointMatcher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EndpointMatcher
Returns a new instance of EndpointMatcher.
207 208 209 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metadata_label_matcher ⇒ Google::Apis::NetworkservicesV1beta1::MetadataLabelMatcher
The matcher that is based on node metadata presented by xDS clients.
Corresponds to the JSON property metadataLabelMatcher
205 206 207 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 205 def @metadata_label_matcher end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
212 213 214 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 212 def update!(**args) @metadata_label_matcher = args[:metadata_label_matcher] if args.key?(:metadata_label_matcher) end |