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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WafExpressionSet

Returns a new instance of WafExpressionSet



26949
26950
26951
# File 'generated/google/apis/compute_beta/classes.rb', line 26949

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


26937
26938
26939
# File 'generated/google/apis/compute_beta/classes.rb', line 26937

def aliases
  @aliases
end

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

List of available expressions. Corresponds to the JSON property expressions



26942
26943
26944
# File 'generated/google/apis/compute_beta/classes.rb', line 26942

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)


26947
26948
26949
# File 'generated/google/apis/compute_beta/classes.rb', line 26947

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26954
26955
26956
26957
26958
# File 'generated/google/apis/compute_beta/classes.rb', line 26954

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