Class: Azure::CDN::Mgmt::V2020_04_15::Models::RateLimitRule
- Inherits:
-
CustomRule
- Object
- CustomRule
- Azure::CDN::Mgmt::V2020_04_15::Models::RateLimitRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb
Overview
Defines a rate limiting rule that can be included in a waf policy
Instance Attribute Summary collapse
-
#rate_limit_duration_in_minutes ⇒ Integer
Defines rate limit duration.
-
#rate_limit_threshold ⇒ Integer
Defines rate limit threshold.
Attributes inherited from CustomRule
#action, #enabled_state, #match_conditions, #name, #priority
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RateLimitRule class as Ruby Hash.
Instance Attribute Details
#rate_limit_duration_in_minutes ⇒ Integer
Returns Defines rate limit duration. Default is 1 minute.
19 20 21 |
# File 'lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb', line 19 def rate_limit_duration_in_minutes @rate_limit_duration_in_minutes end |
#rate_limit_threshold ⇒ Integer
Returns Defines rate limit threshold.
16 17 18 |
# File 'lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb', line 16 def rate_limit_threshold @rate_limit_threshold end |
Class Method Details
.mapper ⇒ Object
Mapper for RateLimitRule class as Ruby Hash. This will be used for serialization/deserialization.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RateLimitRule', type: { name: 'Composite', class_name: 'RateLimitRule', model_properties: { name: { client_side_validation: true, required: true, serialized_name: 'name', type: { name: 'String' } }, enabled_state: { client_side_validation: true, required: false, serialized_name: 'enabledState', type: { name: 'String' } }, priority: { client_side_validation: true, required: true, serialized_name: 'priority', constraints: { InclusiveMaximum: 1000, InclusiveMinimum: 0 }, type: { name: 'Number' } }, match_conditions: { client_side_validation: true, required: true, serialized_name: 'matchConditions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MatchConditionElementType', type: { name: 'Composite', class_name: 'MatchCondition' } } } }, action: { client_side_validation: true, required: true, serialized_name: 'action', type: { name: 'String' } }, rate_limit_threshold: { client_side_validation: true, required: true, serialized_name: 'rateLimitThreshold', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, rate_limit_duration_in_minutes: { client_side_validation: true, required: true, serialized_name: 'rateLimitDurationInMinutes', constraints: { InclusiveMaximum: 60, InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end |