Class: Azure::ARM::Web::Models::SlotDifferenceProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_web/models/slot_difference_properties.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionString

Returns Description of the difference.

Returns:

  • (String)

    Description of the difference



37
38
39
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 37

def description
  @description
end

#diff_ruleString

settings during web app slot swap.

Returns:

  • (String)

    Rule that describes how to process the difference in



25
26
27
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 25

def diff_rule
  @diff_rule
end

#setting_nameString

Returns Name of the setting.

Returns:

  • (String)

    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_typeString

ConnectionString

Returns:

  • (String)

    The type of the settings: General, AppSetting or



21
22
23
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 21

def setting_type
  @setting_type
end

#typeString

Warning or Error.

Returns:

  • (String)

    Indicates the type of the difference: Information,



17
18
19
# File 'lib/azure_mgmt_web/models/slot_difference_properties.rb', line 17

def type
  @type
end

#value_in_current_slotString

Returns Value of the setting in the current web app slot.

Returns:

  • (String)

    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_slotString

Returns Value of the setting in the target web app slot.

Returns:

  • (String)

    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.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of 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

#validateObject

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