Class: Google::Apis::ComputeAlpha::MetadataFilterLabelMatch

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MetadataFilterLabelMatch

Returns a new instance of MetadataFilterLabelMatch



18300
18301
18302
# File 'generated/google/apis/compute_alpha/classes.rb', line 18300

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)


18292
18293
18294
# File 'generated/google/apis/compute_alpha/classes.rb', line 18292

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)


18298
18299
18300
# File 'generated/google/apis/compute_alpha/classes.rb', line 18298

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18305
18306
18307
18308
# File 'generated/google/apis/compute_alpha/classes.rb', line 18305

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