Class: Google::Apis::NetworkservicesV1beta1::EndpointMatcher

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

A definition of a matcher that selects endpoints to which the policies should be applied.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EndpointMatcher

Returns a new instance of EndpointMatcher.



236
237
238
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 236

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#metadata_label_matcherGoogle::Apis::NetworkservicesV1beta1::MetadataLabelMatcher

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_v1beta1/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_v1beta1/classes.rb', line 241

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