Class: Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch

Returns a new instance of SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.



56211
56212
56213
# File 'lib/google/apis/compute_v1/classes.rb', line 56211

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

Instance Attribute Details

#nameString

Name of the user-defined field, as given in the definition. Corresponds to the JSON property name

Returns:

  • (String)


56202
56203
56204
# File 'lib/google/apis/compute_v1/classes.rb', line 56202

def name
  @name
end

#valuesArray<String>

Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). Corresponds to the JSON property values

Returns:

  • (Array<String>)


56209
56210
56211
# File 'lib/google/apis/compute_v1/classes.rb', line 56209

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



56216
56217
56218
56219
# File 'lib/google/apis/compute_v1/classes.rb', line 56216

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