Class: Azure::CDN::Mgmt::V2020_09_01::Models::MatchCondition
- Inherits:
-
Object
- Object
- Azure::CDN::Mgmt::V2020_09_01::Models::MatchCondition
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb
Overview
Define match conditions
Instance Attribute Summary collapse
-
#match_value ⇒ Array<String>
List of possible match values.
-
#match_variable ⇒ MatchVariable
values include: ‘RemoteAddr’, ‘SocketAddr’, ‘RequestMethod’, ‘RequestHeader’, ‘RequestUri’, ‘QueryString’, ‘RequestBody’, ‘Cookies’, ‘PostArgs’.
-
#negate_condition ⇒ Boolean
negated.
-
#operator ⇒ Operator
include: ‘Any’, ‘IPMatch’, ‘GeoMatch’, ‘Equal’, ‘Contains’, ‘LessThan’, ‘GreaterThan’, ‘LessThanOrEqual’, ‘GreaterThanOrEqual’, ‘BeginsWith’, ‘EndsWith’, ‘RegEx’.
-
#selector ⇒ String
QueryString, Cookies, RequestHeader or PostArgs.
-
#transforms ⇒ Array<TransformType>
List of transforms.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MatchCondition class as Ruby Hash.
Instance Attribute Details
#match_value ⇒ Array<String>
Returns List of possible match values.
36 37 38 |
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 36 def match_value @match_value end |
#match_variable ⇒ MatchVariable
values include: ‘RemoteAddr’, ‘SocketAddr’, ‘RequestMethod’, ‘RequestHeader’, ‘RequestUri’, ‘QueryString’, ‘RequestBody’, ‘Cookies’, ‘PostArgs’
19 20 21 |
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 19 def match_variable @match_variable end |
#negate_condition ⇒ Boolean
negated.
33 34 35 |
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 33 def negate_condition @negate_condition end |
#operator ⇒ Operator
include: ‘Any’, ‘IPMatch’, ‘GeoMatch’, ‘Equal’, ‘Contains’, ‘LessThan’, ‘GreaterThan’, ‘LessThanOrEqual’, ‘GreaterThanOrEqual’, ‘BeginsWith’, ‘EndsWith’, ‘RegEx’
29 30 31 |
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 29 def operator @operator end |
#selector ⇒ String
QueryString, Cookies, RequestHeader or PostArgs.
23 24 25 |
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 23 def selector @selector end |
#transforms ⇒ Array<TransformType>
Returns List of transforms.
39 40 41 |
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 39 def transforms @transforms end |
Class Method Details
.mapper ⇒ Object
Mapper for MatchCondition class as Ruby Hash. This will be used for serialization/deserialization.
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 115 116 117 118 119 120 121 122 |
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 46 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MatchCondition', type: { name: 'Composite', class_name: 'MatchCondition', model_properties: { match_variable: { client_side_validation: true, required: true, serialized_name: 'matchVariable', type: { name: 'String' } }, selector: { client_side_validation: true, required: false, serialized_name: 'selector', type: { name: 'String' } }, operator: { client_side_validation: true, required: true, serialized_name: 'operator', type: { name: 'String' } }, negate_condition: { client_side_validation: true, required: false, serialized_name: 'negateCondition', type: { name: 'Boolean' } }, match_value: { client_side_validation: true, required: true, serialized_name: 'matchValue', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, transforms: { client_side_validation: true, required: false, serialized_name: 'transforms', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'TransformTypeElementType', type: { name: 'String' } } } } } } } end |