azure_mgmt_compute 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +17 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +139 -0
  8. data/Rakefile +5 -0
  9. data/azure_mgmt_compute.gemspec +39 -0
  10. data/lib/azure_mgmt_compute.rb +103 -0
  11. data/lib/azure_mgmt_compute/Models/additional_unattend_content.rb +108 -0
  12. data/lib/azure_mgmt_compute/Models/api_error.rb +121 -0
  13. data/lib/azure_mgmt_compute/Models/api_error_base.rb +76 -0
  14. data/lib/azure_mgmt_compute/Models/availability_set.rb +94 -0
  15. data/lib/azure_mgmt_compute/Models/availability_set_list_result.rb +79 -0
  16. data/lib/azure_mgmt_compute/Models/availability_set_properties.rb +130 -0
  17. data/lib/azure_mgmt_compute/Models/caching_types.rb +17 -0
  18. data/lib/azure_mgmt_compute/Models/component_names.rb +15 -0
  19. data/lib/azure_mgmt_compute/Models/compute_long_running_operation_properties.rb +58 -0
  20. data/lib/azure_mgmt_compute/Models/compute_long_running_operation_result.rb +126 -0
  21. data/lib/azure_mgmt_compute/Models/compute_operation_status.rb +18 -0
  22. data/lib/azure_mgmt_compute/Models/data_disk.rb +142 -0
  23. data/lib/azure_mgmt_compute/Models/data_disk_image.rb +62 -0
  24. data/lib/azure_mgmt_compute/Models/delete_operation_result.rb +109 -0
  25. data/lib/azure_mgmt_compute/Models/disk_create_option_types.rb +17 -0
  26. data/lib/azure_mgmt_compute/Models/disk_instance_view.rb +88 -0
  27. data/lib/azure_mgmt_compute/Models/hardware_profile.rb +67 -0
  28. data/lib/azure_mgmt_compute/Models/image_reference.rb +87 -0
  29. data/lib/azure_mgmt_compute/Models/inner_error.rb +68 -0
  30. data/lib/azure_mgmt_compute/Models/instance_view_status.rb +102 -0
  31. data/lib/azure_mgmt_compute/Models/linux_configuration.rb +75 -0
  32. data/lib/azure_mgmt_compute/Models/list_usages_result.rb +78 -0
  33. data/lib/azure_mgmt_compute/Models/network_interface_reference.rb +70 -0
  34. data/lib/azure_mgmt_compute/Models/network_interface_reference_properties.rb +59 -0
  35. data/lib/azure_mgmt_compute/Models/network_profile.rb +79 -0
  36. data/lib/azure_mgmt_compute/Models/operating_system_types.rb +16 -0
  37. data/lib/azure_mgmt_compute/Models/operation_status.rb +17 -0
  38. data/lib/azure_mgmt_compute/Models/osdisk.rb +135 -0
  39. data/lib/azure_mgmt_compute/Models/osdisk_image.rb +63 -0
  40. data/lib/azure_mgmt_compute/Models/osprofile.rb +149 -0
  41. data/lib/azure_mgmt_compute/Models/pass_names.rb +15 -0
  42. data/lib/azure_mgmt_compute/Models/plan.rb +85 -0
  43. data/lib/azure_mgmt_compute/Models/protocol_types.rb +16 -0
  44. data/lib/azure_mgmt_compute/Models/purchase_plan.rb +77 -0
  45. data/lib/azure_mgmt_compute/Models/setting_names.rb +16 -0
  46. data/lib/azure_mgmt_compute/Models/ssh_configuration.rb +79 -0
  47. data/lib/azure_mgmt_compute/Models/ssh_public_key.rb +72 -0
  48. data/lib/azure_mgmt_compute/Models/status_level_types.rb +17 -0
  49. data/lib/azure_mgmt_compute/Models/storage_profile.rb +110 -0
  50. data/lib/azure_mgmt_compute/Models/usage.rb +98 -0
  51. data/lib/azure_mgmt_compute/Models/usage_name.rb +68 -0
  52. data/lib/azure_mgmt_compute/Models/usage_unit.rb +15 -0
  53. data/lib/azure_mgmt_compute/Models/vault_certificate.rb +70 -0
  54. data/lib/azure_mgmt_compute/Models/vault_secret_group.rb +96 -0
  55. data/lib/azure_mgmt_compute/Models/virtual_hard_disk.rb +59 -0
  56. data/lib/azure_mgmt_compute/Models/virtual_machine.rb +142 -0
  57. data/lib/azure_mgmt_compute/Models/virtual_machine_agent_instance_view.rb +119 -0
  58. data/lib/azure_mgmt_compute/Models/virtual_machine_capture_parameters.rb +78 -0
  59. data/lib/azure_mgmt_compute/Models/virtual_machine_extension.rb +94 -0
  60. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_handler_instance_view.rb +85 -0
  61. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_image.rb +99 -0
  62. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_image_properties.rb +102 -0
  63. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_instance_view.rb +139 -0
  64. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_properties.rb +133 -0
  65. data/lib/azure_mgmt_compute/Models/virtual_machine_image.rb +99 -0
  66. data/lib/azure_mgmt_compute/Models/virtual_machine_image_properties.rb +110 -0
  67. data/lib/azure_mgmt_compute/Models/virtual_machine_image_resource.rb +83 -0
  68. data/lib/azure_mgmt_compute/Models/virtual_machine_instance_view.rb +188 -0
  69. data/lib/azure_mgmt_compute/Models/virtual_machine_list_result.rb +89 -0
  70. data/lib/azure_mgmt_compute/Models/virtual_machine_properties.rb +156 -0
  71. data/lib/azure_mgmt_compute/Models/virtual_machine_size.rb +111 -0
  72. data/lib/azure_mgmt_compute/Models/virtual_machine_size_list_result.rb +79 -0
  73. data/lib/azure_mgmt_compute/Models/virtual_machine_size_types.rb +34 -0
  74. data/lib/azure_mgmt_compute/Models/win_rmconfiguration.rb +79 -0
  75. data/lib/azure_mgmt_compute/Models/win_rmlistener.rb +73 -0
  76. data/lib/azure_mgmt_compute/Models/windows_configuration.rb +126 -0
  77. data/lib/azure_mgmt_compute/availability_sets.rb +473 -0
  78. data/lib/azure_mgmt_compute/compute_management_client.rb +85 -0
  79. data/lib/azure_mgmt_compute/module_definition.rb +6 -0
  80. data/lib/azure_mgmt_compute/usage_operations.rb +113 -0
  81. data/lib/azure_mgmt_compute/version.rb +6 -0
  82. data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +325 -0
  83. data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +384 -0
  84. data/lib/azure_mgmt_compute/virtual_machine_images.rb +525 -0
  85. data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +114 -0
  86. data/lib/azure_mgmt_compute/virtual_machines.rb +1412 -0
  87. metadata +303 -0
@@ -0,0 +1,109 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # The compute long running operation response.
10
+ #
11
+ class DeleteOperationResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets the operation identifier.
16
+ attr_accessor :operation_id
17
+
18
+ # @return [OperationStatus] Gets the operation status. Possible values
19
+ # for this property include: 'InProgress', 'Succeeded', 'Failed'.
20
+ attr_accessor :status
21
+
22
+ # @return [DateTime] Gets the operation start time
23
+ attr_accessor :start_time
24
+
25
+ # @return [DateTime] Gets the operation end time
26
+ attr_accessor :end_time
27
+
28
+ # @return [ApiError] Gets or sets the operation error if any occurred
29
+ attr_accessor :error
30
+
31
+ #
32
+ # Validate the object. Throws ValidationError if validation fails.
33
+ #
34
+ def validate
35
+ @error.validate unless @error.nil?
36
+ end
37
+
38
+ #
39
+ # Serializes given Model object into Ruby Hash.
40
+ # @param object Model object to serialize.
41
+ # @return [Hash] Serialized object in form of Ruby Hash.
42
+ #
43
+ def self.serialize_object(object)
44
+ object.validate
45
+ output_object = {}
46
+
47
+ serialized_property = object.operation_id
48
+ output_object['operationId'] = serialized_property unless serialized_property.nil?
49
+
50
+ serialized_property = object.status
51
+ output_object['status'] = serialized_property unless serialized_property.nil?
52
+
53
+ serialized_property = object.start_time
54
+ serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
55
+ output_object['startTime'] = serialized_property unless serialized_property.nil?
56
+
57
+ serialized_property = object.end_time
58
+ serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
59
+ output_object['endTime'] = serialized_property unless serialized_property.nil?
60
+
61
+ serialized_property = object.error
62
+ unless serialized_property.nil?
63
+ serialized_property = ApiError.serialize_object(serialized_property)
64
+ end
65
+ output_object['error'] = serialized_property unless serialized_property.nil?
66
+
67
+ output_object
68
+ end
69
+
70
+ #
71
+ # Deserializes given Ruby Hash into Model object.
72
+ # @param object [Hash] Ruby Hash object to deserialize.
73
+ # @return [DeleteOperationResult] Deserialized object.
74
+ #
75
+ def self.deserialize_object(object)
76
+ return if object.nil?
77
+ output_object = DeleteOperationResult.new
78
+
79
+ deserialized_property = object['operationId']
80
+ output_object.operation_id = deserialized_property
81
+
82
+ deserialized_property = object['status']
83
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
84
+ enum_is_valid = OperationStatus.constants.any? { |e| OperationStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
85
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
86
+ end
87
+ output_object.status = deserialized_property
88
+
89
+ deserialized_property = object['startTime']
90
+ deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
91
+ output_object.start_time = deserialized_property
92
+
93
+ deserialized_property = object['endTime']
94
+ deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
95
+ output_object.end_time = deserialized_property
96
+
97
+ deserialized_property = object['error']
98
+ unless deserialized_property.nil?
99
+ deserialized_property = ApiError.deserialize_object(deserialized_property)
100
+ end
101
+ output_object.error = deserialized_property
102
+
103
+ output_object.validate
104
+
105
+ output_object
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # Defines values for DiskCreateOptionTypes
10
+ #
11
+ module DiskCreateOptionTypes
12
+ FromImage = "fromImage"
13
+ Empty = "empty"
14
+ Attach = "attach"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,88 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # The instance view of the disk.
10
+ #
11
+ class DiskInstanceView
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the disk name.
16
+ attr_accessor :name
17
+
18
+ # @return [Array<InstanceViewStatus>] Gets or sets the resource status
19
+ # information.
20
+ attr_accessor :statuses
21
+
22
+ #
23
+ # Validate the object. Throws ValidationError if validation fails.
24
+ #
25
+ def validate
26
+ @statuses.each{ |e| e.validate if e.respond_to?(:validate) } unless @statuses.nil?
27
+ end
28
+
29
+ #
30
+ # Serializes given Model object into Ruby Hash.
31
+ # @param object Model object to serialize.
32
+ # @return [Hash] Serialized object in form of Ruby Hash.
33
+ #
34
+ def self.serialize_object(object)
35
+ object.validate
36
+ output_object = {}
37
+
38
+ serialized_property = object.name
39
+ output_object['name'] = serialized_property unless serialized_property.nil?
40
+
41
+ serialized_property = object.statuses
42
+ unless serialized_property.nil?
43
+ serializedArray = []
44
+ serialized_property.each do |element|
45
+ unless element.nil?
46
+ element = InstanceViewStatus.serialize_object(element)
47
+ end
48
+ serializedArray.push(element)
49
+ end
50
+ serialized_property = serializedArray
51
+ end
52
+ output_object['statuses'] = serialized_property unless serialized_property.nil?
53
+
54
+ output_object
55
+ end
56
+
57
+ #
58
+ # Deserializes given Ruby Hash into Model object.
59
+ # @param object [Hash] Ruby Hash object to deserialize.
60
+ # @return [DiskInstanceView] Deserialized object.
61
+ #
62
+ def self.deserialize_object(object)
63
+ return if object.nil?
64
+ output_object = DiskInstanceView.new
65
+
66
+ deserialized_property = object['name']
67
+ output_object.name = deserialized_property
68
+
69
+ deserialized_property = object['statuses']
70
+ unless deserialized_property.nil?
71
+ deserializedArray = [];
72
+ deserialized_property.each do |element1|
73
+ unless element1.nil?
74
+ element1 = InstanceViewStatus.deserialize_object(element1)
75
+ end
76
+ deserializedArray.push(element1);
77
+ end
78
+ deserialized_property = deserializedArray;
79
+ end
80
+ output_object.statuses = deserialized_property
81
+
82
+ output_object.validate
83
+
84
+ output_object
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,67 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # Describes a hardware profile.
10
+ #
11
+ class HardwareProfile
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [VirtualMachineSizeTypes] The virtual machine size name.
16
+ # Possible values for this property include: 'Basic_A0', 'Basic_A1',
17
+ # 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1',
18
+ # 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5',
19
+ # 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9',
20
+ # 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4',
21
+ # 'Standard_G5'.
22
+ attr_accessor :vm_size
23
+
24
+ #
25
+ # Validate the object. Throws ValidationError if validation fails.
26
+ #
27
+ def validate
28
+ end
29
+
30
+ #
31
+ # Serializes given Model object into Ruby Hash.
32
+ # @param object Model object to serialize.
33
+ # @return [Hash] Serialized object in form of Ruby Hash.
34
+ #
35
+ def self.serialize_object(object)
36
+ object.validate
37
+ output_object = {}
38
+
39
+ serialized_property = object.vm_size
40
+ output_object['vmSize'] = serialized_property unless serialized_property.nil?
41
+
42
+ output_object
43
+ end
44
+
45
+ #
46
+ # Deserializes given Ruby Hash into Model object.
47
+ # @param object [Hash] Ruby Hash object to deserialize.
48
+ # @return [HardwareProfile] Deserialized object.
49
+ #
50
+ def self.deserialize_object(object)
51
+ return if object.nil?
52
+ output_object = HardwareProfile.new
53
+
54
+ deserialized_property = object['vmSize']
55
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
56
+ enum_is_valid = VirtualMachineSizeTypes.constants.any? { |e| VirtualMachineSizeTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
57
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
58
+ end
59
+ output_object.vm_size = deserialized_property
60
+
61
+ output_object.validate
62
+
63
+ output_object
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,87 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # The image reference.
10
+ #
11
+ class ImageReference
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the image publisher.
16
+ attr_accessor :publisher
17
+
18
+ # @return [String] Gets or sets the image offer.
19
+ attr_accessor :offer
20
+
21
+ # @return [String] Gets or sets the image sku.
22
+ attr_accessor :sku
23
+
24
+ # @return [String] Gets or sets the image version. The allowed formats
25
+ # are Major.Minor.Build or 'latest'. Major, Minor and Build being
26
+ # decimal numbers. Specify 'latest' to use the latest version of image.
27
+ attr_accessor :version
28
+
29
+ #
30
+ # Validate the object. Throws ValidationError if validation fails.
31
+ #
32
+ def validate
33
+ # Nothing to validate
34
+ end
35
+
36
+ #
37
+ # Serializes given Model object into Ruby Hash.
38
+ # @param object Model object to serialize.
39
+ # @return [Hash] Serialized object in form of Ruby Hash.
40
+ #
41
+ def self.serialize_object(object)
42
+ object.validate
43
+ output_object = {}
44
+
45
+ serialized_property = object.publisher
46
+ output_object['publisher'] = serialized_property unless serialized_property.nil?
47
+
48
+ serialized_property = object.offer
49
+ output_object['offer'] = serialized_property unless serialized_property.nil?
50
+
51
+ serialized_property = object.sku
52
+ output_object['sku'] = serialized_property unless serialized_property.nil?
53
+
54
+ serialized_property = object.version
55
+ output_object['version'] = serialized_property unless serialized_property.nil?
56
+
57
+ output_object
58
+ end
59
+
60
+ #
61
+ # Deserializes given Ruby Hash into Model object.
62
+ # @param object [Hash] Ruby Hash object to deserialize.
63
+ # @return [ImageReference] Deserialized object.
64
+ #
65
+ def self.deserialize_object(object)
66
+ return if object.nil?
67
+ output_object = ImageReference.new
68
+
69
+ deserialized_property = object['publisher']
70
+ output_object.publisher = deserialized_property
71
+
72
+ deserialized_property = object['offer']
73
+ output_object.offer = deserialized_property
74
+
75
+ deserialized_property = object['sku']
76
+ output_object.sku = deserialized_property
77
+
78
+ deserialized_property = object['version']
79
+ output_object.version = deserialized_property
80
+
81
+ output_object.validate
82
+
83
+ output_object
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # Inner error details.
10
+ #
11
+ class InnerError
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the exception type.
16
+ attr_accessor :exceptiontype
17
+
18
+ # @return [String] Gets or sets the internal error message or exception
19
+ # dump.
20
+ attr_accessor :errordetail
21
+
22
+ #
23
+ # Validate the object. Throws ValidationError if validation fails.
24
+ #
25
+ def validate
26
+ # Nothing to validate
27
+ end
28
+
29
+ #
30
+ # Serializes given Model object into Ruby Hash.
31
+ # @param object Model object to serialize.
32
+ # @return [Hash] Serialized object in form of Ruby Hash.
33
+ #
34
+ def self.serialize_object(object)
35
+ object.validate
36
+ output_object = {}
37
+
38
+ serialized_property = object.exceptiontype
39
+ output_object['exceptiontype'] = serialized_property unless serialized_property.nil?
40
+
41
+ serialized_property = object.errordetail
42
+ output_object['errordetail'] = serialized_property unless serialized_property.nil?
43
+
44
+ output_object
45
+ end
46
+
47
+ #
48
+ # Deserializes given Ruby Hash into Model object.
49
+ # @param object [Hash] Ruby Hash object to deserialize.
50
+ # @return [InnerError] Deserialized object.
51
+ #
52
+ def self.deserialize_object(object)
53
+ return if object.nil?
54
+ output_object = InnerError.new
55
+
56
+ deserialized_property = object['exceptiontype']
57
+ output_object.exceptiontype = deserialized_property
58
+
59
+ deserialized_property = object['errordetail']
60
+ output_object.errordetail = deserialized_property
61
+
62
+ output_object.validate
63
+
64
+ output_object
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,102 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # Instance view status.
10
+ #
11
+ class InstanceViewStatus
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the status Code.
16
+ attr_accessor :code
17
+
18
+ # @return [StatusLevelTypes] Gets or sets the level Code. Possible
19
+ # values for this property include: 'Info', 'Warning', 'Error'.
20
+ attr_accessor :level
21
+
22
+ # @return [String] Gets or sets the short localizable label for the
23
+ # status.
24
+ attr_accessor :display_status
25
+
26
+ # @return [String] Gets or sets the optional detailed Message, including
27
+ # for alerts and error messages.
28
+ attr_accessor :message
29
+
30
+ # @return [DateTime] Gets or sets the time of the status.
31
+ attr_accessor :time
32
+
33
+ #
34
+ # Validate the object. Throws ValidationError if validation fails.
35
+ #
36
+ def validate
37
+ end
38
+
39
+ #
40
+ # Serializes given Model object into Ruby Hash.
41
+ # @param object Model object to serialize.
42
+ # @return [Hash] Serialized object in form of Ruby Hash.
43
+ #
44
+ def self.serialize_object(object)
45
+ object.validate
46
+ output_object = {}
47
+
48
+ serialized_property = object.code
49
+ output_object['code'] = serialized_property unless serialized_property.nil?
50
+
51
+ serialized_property = object.level
52
+ output_object['level'] = serialized_property unless serialized_property.nil?
53
+
54
+ serialized_property = object.display_status
55
+ output_object['displayStatus'] = serialized_property unless serialized_property.nil?
56
+
57
+ serialized_property = object.message
58
+ output_object['message'] = serialized_property unless serialized_property.nil?
59
+
60
+ serialized_property = object.time
61
+ serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
62
+ output_object['time'] = serialized_property unless serialized_property.nil?
63
+
64
+ output_object
65
+ end
66
+
67
+ #
68
+ # Deserializes given Ruby Hash into Model object.
69
+ # @param object [Hash] Ruby Hash object to deserialize.
70
+ # @return [InstanceViewStatus] Deserialized object.
71
+ #
72
+ def self.deserialize_object(object)
73
+ return if object.nil?
74
+ output_object = InstanceViewStatus.new
75
+
76
+ deserialized_property = object['code']
77
+ output_object.code = deserialized_property
78
+
79
+ deserialized_property = object['level']
80
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
81
+ enum_is_valid = StatusLevelTypes.constants.any? { |e| StatusLevelTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
82
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
83
+ end
84
+ output_object.level = deserialized_property
85
+
86
+ deserialized_property = object['displayStatus']
87
+ output_object.display_status = deserialized_property
88
+
89
+ deserialized_property = object['message']
90
+ output_object.message = deserialized_property
91
+
92
+ deserialized_property = object['time']
93
+ deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
94
+ output_object.time = deserialized_property
95
+
96
+ output_object.validate
97
+
98
+ output_object
99
+ end
100
+ end
101
+ end
102
+ end