Class: Azure::CDN::Mgmt::V2020_04_15::Models::DeliveryRuleIsDeviceCondition
- Inherits:
-
DeliveryRuleCondition
- Object
- DeliveryRuleCondition
- Azure::CDN::Mgmt::V2020_04_15::Models::DeliveryRuleIsDeviceCondition
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb
Overview
Defines the IsDevice condition for the delivery rule.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#parameters ⇒ IsDeviceMatchConditionParameters
the condition.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DeliveryRuleIsDeviceCondition class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ DeliveryRuleIsDeviceCondition
constructor
A new instance of DeliveryRuleIsDeviceCondition.
Constructor Details
#initialize ⇒ DeliveryRuleIsDeviceCondition
Returns a new instance of DeliveryRuleIsDeviceCondition.
16 17 18 |
# File 'lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb', line 16 def initialize @name = "IsDevice" end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb', line 20 def name @name end |
#parameters ⇒ IsDeviceMatchConditionParameters
the condition.
24 25 26 |
# File 'lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb', line 24 def parameters @parameters end |
Class Method Details
.mapper ⇒ Object
Mapper for DeliveryRuleIsDeviceCondition class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'IsDevice', type: { name: 'Composite', class_name: 'DeliveryRuleIsDeviceCondition', model_properties: { name: { client_side_validation: true, required: true, serialized_name: 'name', type: { name: 'String' } }, parameters: { client_side_validation: true, required: true, serialized_name: 'parameters', default_value: {}, type: { name: 'Composite', class_name: 'IsDeviceMatchConditionParameters' } } } } } end |