Class: Google::Apis::NetworkservicesV1::EndpointMatcher
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1::EndpointMatcher
- 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
A definition of a matcher that selects endpoints to which the policies should be applied.
Instance Attribute Summary collapse
-
#metadata_label_matcher ⇒ Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcher
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.
236 237 238 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metadata_label_matcher ⇒ Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcher
The matcher that is based on node metadata presented by xDS clients.
Corresponds to the JSON property metadataLabelMatcher
234 235 236 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 234 def @metadata_label_matcher end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
241 242 243 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 241 def update!(**args) @metadata_label_matcher = args[:metadata_label_matcher] if args.key?(:metadata_label_matcher) end |