Class: Google::Apis::ComputeV1::WafExpressionSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WafExpressionSet

Returns a new instance of WafExpressionSet.



34923
34924
34925
# File 'generated/google/apis/compute_v1/classes.rb', line 34923

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


34911
34912
34913
# File 'generated/google/apis/compute_v1/classes.rb', line 34911

def aliases
  @aliases
end

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

List of available expressions. Corresponds to the JSON property expressions



34916
34917
34918
# File 'generated/google/apis/compute_v1/classes.rb', line 34916

def expressions
  @expressions
end

#idString

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

Returns:

  • (String)


34921
34922
34923
# File 'generated/google/apis/compute_v1/classes.rb', line 34921

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34928
34929
34930
34931
34932
# File 'generated/google/apis/compute_v1/classes.rb', line 34928

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