Class: Google::Apis::ComputeAlpha::WafExpressionSet

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

Returns a new instance of WafExpressionSet.



48789
48790
48791
# File 'lib/google/apis/compute_alpha/classes.rb', line 48789

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

Instance Attribute Details

#aliasesArray<String>

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can' t be used for more than one entity set. Corresponds to the JSON property aliases

Returns:

  • (Array<String>)


48776
48777
48778
# File 'lib/google/apis/compute_alpha/classes.rb', line 48776

def aliases
  @aliases
end

#expressionsArray<Google::Apis::ComputeAlpha::WafExpressionSetExpression>

List of available expressions. Corresponds to the JSON property expressions



48781
48782
48783
# File 'lib/google/apis/compute_alpha/classes.rb', line 48781

def expressions
  @expressions
end

#idString

Google specified expression set ID. The format should be: - E.g. XSS-20170329 required Corresponds to the JSON property id

Returns:

  • (String)


48787
48788
48789
# File 'lib/google/apis/compute_alpha/classes.rb', line 48787

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48794
48795
48796
48797
48798
# File 'lib/google/apis/compute_alpha/classes.rb', line 48794

def update!(**args)
  @aliases = args[:aliases] if args.key?(:aliases)
  @expressions = args[:expressions] if args.key?(:expressions)
  @id = args[:id] if args.key?(:id)
end