Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionConditionConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1SecurityActionConditionConfig

Returns a new instance of GoogleCloudApigeeV1SecurityActionConditionConfig.



8839
8840
8841
# File 'lib/google/apis/apigee_v1/classes.rb', line 8839

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

Instance Attribute Details

#bot_reasonsArray<String>

Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection and Advanced API Scraper. Corresponds to the JSON property botReasons

Returns:

  • (Array<String>)


8831
8832
8833
# File 'lib/google/apis/apigee_v1/classes.rb', line 8831

def bot_reasons
  @bot_reasons
end

#ip_address_rangesArray<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

Returns:

  • (Array<String>)


8837
8838
8839
# File 'lib/google/apis/apigee_v1/classes.rb', line 8837

def ip_address_ranges
  @ip_address_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8844
8845
8846
8847
# File 'lib/google/apis/apigee_v1/classes.rb', line 8844

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