Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch

Returns a new instance of SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.



41519
41520
41521
# File 'lib/google/apis/compute_alpha/classes.rb', line 41519

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)


41510
41511
41512
# File 'lib/google/apis/compute_alpha/classes.rb', line 41510

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>)


41517
41518
41519
# File 'lib/google/apis/compute_alpha/classes.rb', line 41517

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



41524
41525
41526
41527
# File 'lib/google/apis/compute_alpha/classes.rb', line 41524

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