Class: Google::Apis::ComputeV1::MetadataFilterLabelMatch
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::MetadataFilterLabelMatch
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb
Overview
MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of metadata label.
-
#value ⇒ String
The value of the label must match the specified value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetadataFilterLabelMatch
constructor
A new instance of MetadataFilterLabelMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ MetadataFilterLabelMatch
Returns a new instance of MetadataFilterLabelMatch.
15266 15267 15268 |
# File 'generated/google/apis/compute_v1/classes.rb', line 15266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of metadata label.
The name can have a maximum length of 1024 characters and must be at least 1
character long.
Corresponds to the JSON property name
15258 15259 15260 |
# File 'generated/google/apis/compute_v1/classes.rb', line 15258 def name @name end |
#value ⇒ String
The value of the label must match the specified value.
value can have a maximum length of 1024 characters.
Corresponds to the JSON property value
15264 15265 15266 |
# File 'generated/google/apis/compute_v1/classes.rb', line 15264 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15271 15272 15273 15274 |
# File 'generated/google/apis/compute_v1/classes.rb', line 15271 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |