Class: Google::Apis::ComputeBeta::WafExpressionSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WafExpressionSet

Returns a new instance of WafExpressionSet.



44868
44869
44870
# File 'lib/google/apis/compute_beta/classes.rb', line 44868

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


44855
44856
44857
# File 'lib/google/apis/compute_beta/classes.rb', line 44855

def aliases
  @aliases
end

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

List of available expressions. Corresponds to the JSON property expressions



44860
44861
44862
# File 'lib/google/apis/compute_beta/classes.rb', line 44860

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)


44866
44867
44868
# File 'lib/google/apis/compute_beta/classes.rb', line 44866

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44873
44874
44875
44876
44877
# File 'lib/google/apis/compute_beta/classes.rb', line 44873

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