azure_mgmt_compute 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_compute.gemspec +4 -4
  3. data/lib/azure_mgmt_compute.rb +3 -138
  4. data/lib/generated/azure_mgmt_compute.rb +128 -0
  5. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/availability_sets.rb +24 -22
  6. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/compute_management_client.rb +12 -12
  7. data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +88 -0
  8. data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
  9. data/lib/generated/azure_mgmt_compute/models/api_error.rb +93 -0
  10. data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
  11. data/lib/generated/azure_mgmt_compute/models/availability_set.rb +136 -0
  12. data/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
  13. data/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
  14. data/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
  15. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/caching_types.rb +0 -0
  16. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/component_names.rb +0 -0
  17. data/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
  18. data/lib/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
  19. data/lib/generated/azure_mgmt_compute/models/data_disk_image.rb +48 -0
  20. data/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb +45 -0
  21. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/disk_create_option_types.rb +0 -0
  22. data/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
  23. data/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
  24. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/hardware_profile.rb +20 -35
  25. data/lib/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
  26. data/lib/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
  27. data/lib/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
  28. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/instance_view_types.rb +0 -0
  29. data/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
  30. data/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
  31. data/lib/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
  32. data/lib/generated/azure_mgmt_compute/models/list_usages_result.rb +95 -0
  33. data/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb +51 -0
  34. data/lib/generated/azure_mgmt_compute/models/network_profile.rb +52 -0
  35. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/operating_system_types.rb +0 -0
  36. data/lib/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
  37. data/lib/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
  38. data/lib/generated/azure_mgmt_compute/models/osprofile.rb +116 -0
  39. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/pass_names.rb +0 -0
  40. data/lib/generated/azure_mgmt_compute/models/plan.rb +74 -0
  41. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/protocol_types.rb +0 -0
  42. data/lib/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
  43. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/setting_names.rb +0 -0
  44. data/lib/generated/azure_mgmt_compute/models/sku.rb +64 -0
  45. data/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
  46. data/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
  47. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/status_level_types.rb +0 -0
  48. data/lib/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
  49. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/upgrade_mode.rb +0 -0
  50. data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
  51. data/lib/generated/azure_mgmt_compute/models/usage.rb +78 -0
  52. data/lib/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
  53. data/lib/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
  54. data/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
  55. data/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
  56. data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +224 -0
  57. data/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
  58. data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
  59. data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
  60. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
  61. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
  62. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
  63. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
  64. data/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
  65. data/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
  66. data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
  67. data/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +94 -0
  68. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +135 -0
  69. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
  70. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
  71. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
  72. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
  73. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
  74. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +95 -0
  75. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
  76. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +97 -0
  77. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
  78. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
  79. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
  80. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
  81. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
  82. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
  83. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_scale_set_sku_scale_type.rb +0 -0
  84. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
  85. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +248 -0
  86. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
  87. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
  88. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
  89. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
  90. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +96 -0
  91. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
  92. data/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb +95 -0
  93. data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
  94. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_size_types.rb +0 -0
  95. data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
  96. data/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
  97. data/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb +58 -0
  98. data/lib/generated/azure_mgmt_compute/models/windows_configuration.rb +98 -0
  99. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/module_definition.rb +0 -0
  100. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/usage_operations.rb +32 -11
  101. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/version.rb +1 -1
  102. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extension_images.rb +40 -26
  103. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extensions.rb +59 -31
  104. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_images.rb +76 -48
  105. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_set_vms.rb +169 -41
  106. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_sets.rb +341 -125
  107. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_sizes.rb +4 -4
  108. data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machines.rb +340 -84
  109. metadata +126 -142
  110. data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +0 -105
  111. data/lib/azure_mgmt_compute/models/api_entity_reference.rb +0 -57
  112. data/lib/azure_mgmt_compute/models/api_error.rb +0 -119
  113. data/lib/azure_mgmt_compute/models/api_error_base.rb +0 -74
  114. data/lib/azure_mgmt_compute/models/availability_set.rb +0 -92
  115. data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +0 -77
  116. data/lib/azure_mgmt_compute/models/availability_set_properties.rb +0 -128
  117. data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +0 -67
  118. data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +0 -65
  119. data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +0 -56
  120. data/lib/azure_mgmt_compute/models/data_disk.rb +0 -143
  121. data/lib/azure_mgmt_compute/models/data_disk_image.rb +0 -60
  122. data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +0 -62
  123. data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +0 -90
  124. data/lib/azure_mgmt_compute/models/disk_instance_view.rb +0 -86
  125. data/lib/azure_mgmt_compute/models/image_reference.rb +0 -85
  126. data/lib/azure_mgmt_compute/models/inner_error.rb +0 -66
  127. data/lib/azure_mgmt_compute/models/instance_view_status.rb +0 -100
  128. data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +0 -74
  129. data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +0 -75
  130. data/lib/azure_mgmt_compute/models/linux_configuration.rb +0 -73
  131. data/lib/azure_mgmt_compute/models/list_usages_result.rb +0 -76
  132. data/lib/azure_mgmt_compute/models/network_interface_reference.rb +0 -68
  133. data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +0 -57
  134. data/lib/azure_mgmt_compute/models/network_profile.rb +0 -77
  135. data/lib/azure_mgmt_compute/models/osdisk.rb +0 -163
  136. data/lib/azure_mgmt_compute/models/osdisk_image.rb +0 -61
  137. data/lib/azure_mgmt_compute/models/osprofile.rb +0 -147
  138. data/lib/azure_mgmt_compute/models/plan.rb +0 -83
  139. data/lib/azure_mgmt_compute/models/purchase_plan.rb +0 -77
  140. data/lib/azure_mgmt_compute/models/sku.rb +0 -75
  141. data/lib/azure_mgmt_compute/models/ssh_configuration.rb +0 -77
  142. data/lib/azure_mgmt_compute/models/ssh_public_key.rb +0 -70
  143. data/lib/azure_mgmt_compute/models/storage_profile.rb +0 -108
  144. data/lib/azure_mgmt_compute/models/upgrade_policy.rb +0 -60
  145. data/lib/azure_mgmt_compute/models/usage.rb +0 -96
  146. data/lib/azure_mgmt_compute/models/usage_name.rb +0 -66
  147. data/lib/azure_mgmt_compute/models/vault_certificate.rb +0 -68
  148. data/lib/azure_mgmt_compute/models/vault_secret_group.rb +0 -94
  149. data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +0 -57
  150. data/lib/azure_mgmt_compute/models/virtual_machine.rb +0 -140
  151. data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +0 -117
  152. data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +0 -78
  153. data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +0 -68
  154. data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +0 -56
  155. data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +0 -92
  156. data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +0 -83
  157. data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +0 -92
  158. data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +0 -102
  159. data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +0 -137
  160. data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +0 -141
  161. data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +0 -86
  162. data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +0 -108
  163. data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +0 -83
  164. data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +0 -202
  165. data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +0 -87
  166. data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +0 -189
  167. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +0 -108
  168. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +0 -77
  169. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +0 -77
  170. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +0 -116
  171. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +0 -125
  172. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +0 -79
  173. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +0 -78
  174. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +0 -158
  175. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +0 -77
  176. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +0 -77
  177. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +0 -88
  178. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +0 -80
  179. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +0 -89
  180. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +0 -77
  181. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +0 -129
  182. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +0 -147
  183. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +0 -99
  184. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +0 -88
  185. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +0 -90
  186. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +0 -78
  187. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +0 -165
  188. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +0 -87
  189. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +0 -57
  190. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +0 -59
  191. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +0 -202
  192. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +0 -77
  193. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +0 -114
  194. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +0 -190
  195. data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +0 -109
  196. data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +0 -77
  197. data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +0 -68
  198. data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +0 -77
  199. data/lib/azure_mgmt_compute/models/win_rmlistener.rb +0 -71
  200. data/lib/azure_mgmt_compute/models/windows_configuration.rb +0 -124
@@ -1,59 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
- # Specifies the list of virtual machine scale set instance IDs.
10
- #
11
- class VirtualMachineScaleSetVMInstanceRequiredIDs
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<String>] Gets or sets the virtual machine scale set
16
- # instance ids.
17
- attr_accessor :instance_ids
18
-
19
- #
20
- # Validate the object. Throws ValidationError if validation fails.
21
- #
22
- def validate
23
- fail MsRest::ValidationError, 'property instance_ids is nil' if @instance_ids.nil?
24
- @instance_ids.each{ |e| e.validate if e.respond_to?(:validate) } unless @instance_ids.nil?
25
- end
26
-
27
- #
28
- # Serializes given Model object into Ruby Hash.
29
- # @param object Model object to serialize.
30
- # @return [Hash] Serialized object in form of Ruby Hash.
31
- #
32
- def self.serialize_object(object)
33
- object.validate
34
- output_object = {}
35
-
36
- serialized_property = object.instance_ids
37
- output_object['instanceIds'] = serialized_property unless serialized_property.nil?
38
-
39
- output_object
40
- end
41
-
42
- #
43
- # Deserializes given Ruby Hash into Model object.
44
- # @param object [Hash] Ruby Hash object to deserialize.
45
- # @return [VirtualMachineScaleSetVMInstanceRequiredIDs] Deserialized
46
- # object.
47
- #
48
- def self.deserialize_object(object)
49
- return if object.nil?
50
- output_object = VirtualMachineScaleSetVMInstanceRequiredIDs.new
51
-
52
- deserialized_property = object['instanceIds']
53
- output_object.instance_ids = deserialized_property
54
-
55
- output_object
56
- end
57
- end
58
- end
59
- end
@@ -1,202 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 a virtual machine scale set VM.
10
- #
11
- class VirtualMachineScaleSetVMInstanceView
12
-
13
- include MsRestAzure
14
-
15
- # @return [Integer] Gets or sets the Update Domain count.
16
- attr_accessor :platform_update_domain
17
-
18
- # @return [Integer] Gets or sets the Fault Domain count.
19
- attr_accessor :platform_fault_domain
20
-
21
- # @return [String] Gets or sets the Remote desktop certificate
22
- # thumbprint.
23
- attr_accessor :rdp_thumb_print
24
-
25
- # @return [VirtualMachineAgentInstanceView] Gets or sets the VM Agent
26
- # running on the virtual machine.
27
- attr_accessor :vm_agent
28
-
29
- # @return [Array<DiskInstanceView>] Gets or sets the disks information.
30
- attr_accessor :disks
31
-
32
- # @return [Array<VirtualMachineExtensionInstanceView>] Gets or sets the
33
- # extensions information.
34
- attr_accessor :extensions
35
-
36
- # @return [BootDiagnosticsInstanceView] Gets or sets the boot
37
- # diagnostics.
38
- attr_accessor :boot_diagnostics
39
-
40
- # @return [Array<InstanceViewStatus>] Gets or sets the resource status
41
- # information.
42
- attr_accessor :statuses
43
-
44
- #
45
- # Validate the object. Throws ValidationError if validation fails.
46
- #
47
- def validate
48
- @vm_agent.validate unless @vm_agent.nil?
49
- @disks.each{ |e| e.validate if e.respond_to?(:validate) } unless @disks.nil?
50
- @extensions.each{ |e| e.validate if e.respond_to?(:validate) } unless @extensions.nil?
51
- @boot_diagnostics.validate unless @boot_diagnostics.nil?
52
- @statuses.each{ |e| e.validate if e.respond_to?(:validate) } unless @statuses.nil?
53
- end
54
-
55
- #
56
- # Serializes given Model object into Ruby Hash.
57
- # @param object Model object to serialize.
58
- # @return [Hash] Serialized object in form of Ruby Hash.
59
- #
60
- def self.serialize_object(object)
61
- object.validate
62
- output_object = {}
63
-
64
- serialized_property = object.platform_update_domain
65
- output_object['platformUpdateDomain'] = serialized_property unless serialized_property.nil?
66
-
67
- serialized_property = object.platform_fault_domain
68
- output_object['platformFaultDomain'] = serialized_property unless serialized_property.nil?
69
-
70
- serialized_property = object.rdp_thumb_print
71
- output_object['rdpThumbPrint'] = serialized_property unless serialized_property.nil?
72
-
73
- serialized_property = object.vm_agent
74
- unless serialized_property.nil?
75
- serialized_property = VirtualMachineAgentInstanceView.serialize_object(serialized_property)
76
- end
77
- output_object['vmAgent'] = serialized_property unless serialized_property.nil?
78
-
79
- serialized_property = object.disks
80
- unless serialized_property.nil?
81
- serializedArray = []
82
- serialized_property.each do |element|
83
- unless element.nil?
84
- element = DiskInstanceView.serialize_object(element)
85
- end
86
- serializedArray.push(element)
87
- end
88
- serialized_property = serializedArray
89
- end
90
- output_object['disks'] = serialized_property unless serialized_property.nil?
91
-
92
- serialized_property = object.extensions
93
- unless serialized_property.nil?
94
- serializedArray = []
95
- serialized_property.each do |element1|
96
- unless element1.nil?
97
- element1 = VirtualMachineExtensionInstanceView.serialize_object(element1)
98
- end
99
- serializedArray.push(element1)
100
- end
101
- serialized_property = serializedArray
102
- end
103
- output_object['extensions'] = serialized_property unless serialized_property.nil?
104
-
105
- serialized_property = object.boot_diagnostics
106
- unless serialized_property.nil?
107
- serialized_property = BootDiagnosticsInstanceView.serialize_object(serialized_property)
108
- end
109
- output_object['bootDiagnostics'] = serialized_property unless serialized_property.nil?
110
-
111
- serialized_property = object.statuses
112
- unless serialized_property.nil?
113
- serializedArray = []
114
- serialized_property.each do |element2|
115
- unless element2.nil?
116
- element2 = InstanceViewStatus.serialize_object(element2)
117
- end
118
- serializedArray.push(element2)
119
- end
120
- serialized_property = serializedArray
121
- end
122
- output_object['statuses'] = serialized_property unless serialized_property.nil?
123
-
124
- output_object
125
- end
126
-
127
- #
128
- # Deserializes given Ruby Hash into Model object.
129
- # @param object [Hash] Ruby Hash object to deserialize.
130
- # @return [VirtualMachineScaleSetVMInstanceView] Deserialized object.
131
- #
132
- def self.deserialize_object(object)
133
- return if object.nil?
134
- output_object = VirtualMachineScaleSetVMInstanceView.new
135
-
136
- deserialized_property = object['platformUpdateDomain']
137
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
138
- output_object.platform_update_domain = deserialized_property
139
-
140
- deserialized_property = object['platformFaultDomain']
141
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
142
- output_object.platform_fault_domain = deserialized_property
143
-
144
- deserialized_property = object['rdpThumbPrint']
145
- output_object.rdp_thumb_print = deserialized_property
146
-
147
- deserialized_property = object['vmAgent']
148
- unless deserialized_property.nil?
149
- deserialized_property = VirtualMachineAgentInstanceView.deserialize_object(deserialized_property)
150
- end
151
- output_object.vm_agent = deserialized_property
152
-
153
- deserialized_property = object['disks']
154
- unless deserialized_property.nil?
155
- deserialized_array = []
156
- deserialized_property.each do |element3|
157
- unless element3.nil?
158
- element3 = DiskInstanceView.deserialize_object(element3)
159
- end
160
- deserialized_array.push(element3)
161
- end
162
- deserialized_property = deserialized_array
163
- end
164
- output_object.disks = deserialized_property
165
-
166
- deserialized_property = object['extensions']
167
- unless deserialized_property.nil?
168
- deserialized_array = []
169
- deserialized_property.each do |element4|
170
- unless element4.nil?
171
- element4 = VirtualMachineExtensionInstanceView.deserialize_object(element4)
172
- end
173
- deserialized_array.push(element4)
174
- end
175
- deserialized_property = deserialized_array
176
- end
177
- output_object.extensions = deserialized_property
178
-
179
- deserialized_property = object['bootDiagnostics']
180
- unless deserialized_property.nil?
181
- deserialized_property = BootDiagnosticsInstanceView.deserialize_object(deserialized_property)
182
- end
183
- output_object.boot_diagnostics = deserialized_property
184
-
185
- deserialized_property = object['statuses']
186
- unless deserialized_property.nil?
187
- deserialized_array = []
188
- deserialized_property.each do |element5|
189
- unless element5.nil?
190
- element5 = InstanceViewStatus.deserialize_object(element5)
191
- end
192
- deserialized_array.push(element5)
193
- end
194
- deserialized_property = deserialized_array
195
- end
196
- output_object.statuses = deserialized_property
197
-
198
- output_object
199
- end
200
- end
201
- end
202
- end
@@ -1,77 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 List Virtual Machine Scale Set VMs operation response.
10
- #
11
- class VirtualMachineScaleSetVMListResult
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<VirtualMachineScaleSetVM>] Gets or sets the list of
16
- # virtual machine scale sets VMs.
17
- attr_accessor :value
18
-
19
- #
20
- # Validate the object. Throws ValidationError if validation fails.
21
- #
22
- def validate
23
- @value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
24
- end
25
-
26
- #
27
- # Serializes given Model object into Ruby Hash.
28
- # @param object Model object to serialize.
29
- # @return [Hash] Serialized object in form of Ruby Hash.
30
- #
31
- def self.serialize_object(object)
32
- object.validate
33
- output_object = {}
34
-
35
- serialized_property = object.value
36
- unless serialized_property.nil?
37
- serializedArray = []
38
- serialized_property.each do |element|
39
- unless element.nil?
40
- element = VirtualMachineScaleSetVM.serialize_object(element)
41
- end
42
- serializedArray.push(element)
43
- end
44
- serialized_property = serializedArray
45
- end
46
- output_object['value'] = serialized_property unless serialized_property.nil?
47
-
48
- output_object
49
- end
50
-
51
- #
52
- # Deserializes given Ruby Hash into Model object.
53
- # @param object [Hash] Ruby Hash object to deserialize.
54
- # @return [VirtualMachineScaleSetVMListResult] Deserialized object.
55
- #
56
- def self.deserialize_object(object)
57
- return if object.nil?
58
- output_object = VirtualMachineScaleSetVMListResult.new
59
-
60
- deserialized_property = object['value']
61
- unless deserialized_property.nil?
62
- deserialized_array = []
63
- deserialized_property.each do |element1|
64
- unless element1.nil?
65
- element1 = VirtualMachineScaleSetVM.deserialize_object(element1)
66
- end
67
- deserialized_array.push(element1)
68
- end
69
- deserialized_property = deserialized_array
70
- end
71
- output_object.value = deserialized_property
72
-
73
- output_object
74
- end
75
- end
76
- end
77
- end
@@ -1,114 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 virtual machine scale set virtual machine profile.
10
- #
11
- class VirtualMachineScaleSetVMProfile
12
-
13
- include MsRestAzure
14
-
15
- # @return [VirtualMachineScaleSetOSProfile] Gets or sets the virtual
16
- # machine scale set OS profile.
17
- attr_accessor :os_profile
18
-
19
- # @return [VirtualMachineScaleSetStorageProfile] Gets or sets the
20
- # virtual machine scale set storage profile.
21
- attr_accessor :storage_profile
22
-
23
- # @return [VirtualMachineScaleSetNetworkProfile] Gets or sets the
24
- # virtual machine scale set network profile.
25
- attr_accessor :network_profile
26
-
27
- # @return [VirtualMachineScaleSetExtensionProfile] Gets the virtual
28
- # machine scale set extension profile.
29
- attr_accessor :extension_profile
30
-
31
- #
32
- # Validate the object. Throws ValidationError if validation fails.
33
- #
34
- def validate
35
- @os_profile.validate unless @os_profile.nil?
36
- @storage_profile.validate unless @storage_profile.nil?
37
- @network_profile.validate unless @network_profile.nil?
38
- @extension_profile.validate unless @extension_profile.nil?
39
- end
40
-
41
- #
42
- # Serializes given Model object into Ruby Hash.
43
- # @param object Model object to serialize.
44
- # @return [Hash] Serialized object in form of Ruby Hash.
45
- #
46
- def self.serialize_object(object)
47
- object.validate
48
- output_object = {}
49
-
50
- serialized_property = object.os_profile
51
- unless serialized_property.nil?
52
- serialized_property = VirtualMachineScaleSetOSProfile.serialize_object(serialized_property)
53
- end
54
- output_object['osProfile'] = serialized_property unless serialized_property.nil?
55
-
56
- serialized_property = object.storage_profile
57
- unless serialized_property.nil?
58
- serialized_property = VirtualMachineScaleSetStorageProfile.serialize_object(serialized_property)
59
- end
60
- output_object['storageProfile'] = serialized_property unless serialized_property.nil?
61
-
62
- serialized_property = object.network_profile
63
- unless serialized_property.nil?
64
- serialized_property = VirtualMachineScaleSetNetworkProfile.serialize_object(serialized_property)
65
- end
66
- output_object['networkProfile'] = serialized_property unless serialized_property.nil?
67
-
68
- serialized_property = object.extension_profile
69
- unless serialized_property.nil?
70
- serialized_property = VirtualMachineScaleSetExtensionProfile.serialize_object(serialized_property)
71
- end
72
- output_object['extensionProfile'] = serialized_property unless serialized_property.nil?
73
-
74
- output_object
75
- end
76
-
77
- #
78
- # Deserializes given Ruby Hash into Model object.
79
- # @param object [Hash] Ruby Hash object to deserialize.
80
- # @return [VirtualMachineScaleSetVMProfile] Deserialized object.
81
- #
82
- def self.deserialize_object(object)
83
- return if object.nil?
84
- output_object = VirtualMachineScaleSetVMProfile.new
85
-
86
- deserialized_property = object['osProfile']
87
- unless deserialized_property.nil?
88
- deserialized_property = VirtualMachineScaleSetOSProfile.deserialize_object(deserialized_property)
89
- end
90
- output_object.os_profile = deserialized_property
91
-
92
- deserialized_property = object['storageProfile']
93
- unless deserialized_property.nil?
94
- deserialized_property = VirtualMachineScaleSetStorageProfile.deserialize_object(deserialized_property)
95
- end
96
- output_object.storage_profile = deserialized_property
97
-
98
- deserialized_property = object['networkProfile']
99
- unless deserialized_property.nil?
100
- deserialized_property = VirtualMachineScaleSetNetworkProfile.deserialize_object(deserialized_property)
101
- end
102
- output_object.network_profile = deserialized_property
103
-
104
- deserialized_property = object['extensionProfile']
105
- unless deserialized_property.nil?
106
- deserialized_property = VirtualMachineScaleSetExtensionProfile.deserialize_object(deserialized_property)
107
- end
108
- output_object.extension_profile = deserialized_property
109
-
110
- output_object
111
- end
112
- end
113
- end
114
- end