Class: Azure::ARM::Web::Models::SlotDifferenceProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::SlotDifferenceProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/slot_difference_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#description ⇒ String
Description of the difference.
-
#diff_rule ⇒ String
settings during web app slot swap.
-
#setting_name ⇒ String
Name of the setting.
-
#setting_type ⇒ String
ConnectionString.
-
#type ⇒ String
Warning or Error.
-
#value_in_current_slot ⇒ String
Value of the setting in the current web app slot.
-
#value_in_target_slot ⇒ String
Value of the setting in the target web app slot.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ SlotDifferenceProperties
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#description ⇒ String
Returns Description of the difference.
37 38 39 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 37 def description @description end |
#diff_rule ⇒ String
settings during web app slot swap.
25 26 27 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 25 def diff_rule @diff_rule end |
#setting_name ⇒ String
Returns Name of the setting.
28 29 30 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 28 def setting_name @setting_name end |
#setting_type ⇒ String
ConnectionString
21 22 23 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 21 def setting_type @setting_type end |
#type ⇒ String
Warning or Error.
17 18 19 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 17 def type @type end |
#value_in_current_slot ⇒ String
Returns Value of the setting in the current web app slot.
31 32 33 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 31 def value_in_current_slot @value_in_current_slot end |
#value_in_target_slot ⇒ String
Returns Value of the setting in the target web app slot.
34 35 36 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 34 def value_in_target_slot @value_in_target_slot end |
Class Method Details
.deserialize_object(object) ⇒ SlotDifferenceProperties
Deserializes given Ruby Hash into Model object.
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 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 84 def self.deserialize_object(object) return if object.nil? output_object = SlotDifferenceProperties.new deserialized_property = object['type'] output_object.type = deserialized_property deserialized_property = object['settingType'] output_object.setting_type = deserialized_property deserialized_property = object['diffRule'] output_object.diff_rule = deserialized_property deserialized_property = object['settingName'] output_object.setting_name = deserialized_property deserialized_property = object['valueInCurrentSlot'] output_object.value_in_current_slot = deserialized_property deserialized_property = object['valueInTargetSlot'] output_object.value_in_target_slot = deserialized_property deserialized_property = object['description'] output_object.description = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
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 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 51 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.type output_object['type'] = serialized_property unless serialized_property.nil? serialized_property = object.setting_type output_object['settingType'] = serialized_property unless serialized_property.nil? serialized_property = object.diff_rule output_object['diffRule'] = serialized_property unless serialized_property.nil? serialized_property = object.setting_name output_object['settingName'] = serialized_property unless serialized_property.nil? serialized_property = object.value_in_current_slot output_object['valueInCurrentSlot'] = serialized_property unless serialized_property.nil? serialized_property = object.value_in_target_slot output_object['valueInTargetSlot'] = serialized_property unless serialized_property.nil? serialized_property = object.description output_object['description'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
42 43 44 |
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 42 def validate # Nothing to validate end |