Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionConditionConfig
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionConditionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigee_v1/classes.rb,
lib/google/apis/apigee_v1/representations.rb,
lib/google/apis/apigee_v1/representations.rb
Overview
The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: api_keys: ["key1", "key2"] and developers: ["dev1", "dev2"] then this is interpreted as: enforce the action if the incoming request has (( api_key = "key1" OR api_key="key") AND (developer="dev1" OR developer="dev2")).
Instance Attribute Summary collapse
-
#bot_reasons ⇒ Array<String>
Optional.
-
#ip_address_ranges ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1SecurityActionConditionConfig
constructor
A new instance of GoogleCloudApigeeV1SecurityActionConditionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1SecurityActionConditionConfig
Returns a new instance of GoogleCloudApigeeV1SecurityActionConditionConfig.
8884 8885 8886 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 8884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bot_reasons ⇒ Array<String>
Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor,
Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced
Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Cloud,
Public Cloud AWS, Public Cloud Azure, and Public Cloud GCP.
Corresponds to the JSON property botReasons
8876 8877 8878 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 8876 def bot_reasons @bot_reasons end |
#ip_address_ranges ⇒ Array<String>
Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited
to 100 per action.
Corresponds to the JSON property ipAddressRanges
8882 8883 8884 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 8882 def ip_address_ranges @ip_address_ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8889 8890 8891 8892 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 8889 def update!(**args) @bot_reasons = args[:bot_reasons] if args.key?(:bot_reasons) @ip_address_ranges = args[:ip_address_ranges] if args.key?(:ip_address_ranges) end |