Class: Google::Apis::ComputeV1::MetadataFilterLabelMatch

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the load balancer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetadataFilterLabelMatch

Returns a new instance of MetadataFilterLabelMatch.



23186
23187
23188
# File 'lib/google/apis/compute_v1/classes.rb', line 23186

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


23178
23179
23180
# File 'lib/google/apis/compute_v1/classes.rb', line 23178

def name
  @name
end

#valueString

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

Returns:

  • (String)


23184
23185
23186
# File 'lib/google/apis/compute_v1/classes.rb', line 23184

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23191
23192
23193
23194
# File 'lib/google/apis/compute_v1/classes.rb', line 23191

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