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,67 +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 Boot Diagnostics.
10
- #
11
- class BootDiagnostics
12
-
13
- include MsRestAzure
14
-
15
- # @return [Boolean] Gets or sets whether boot diagnostics should be
16
- # enabled on the Virtual Machine.
17
- attr_accessor :enabled
18
-
19
- # @return [String] Gets or sets the boot diagnostics storage Uri. It
20
- # should be a valid Uri
21
- attr_accessor :storage_uri
22
-
23
- #
24
- # Validate the object. Throws ValidationError if validation fails.
25
- #
26
- def validate
27
- # Nothing to 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.enabled
40
- output_object['enabled'] = serialized_property unless serialized_property.nil?
41
-
42
- serialized_property = object.storage_uri
43
- output_object['storageUri'] = serialized_property unless serialized_property.nil?
44
-
45
- output_object
46
- end
47
-
48
- #
49
- # Deserializes given Ruby Hash into Model object.
50
- # @param object [Hash] Ruby Hash object to deserialize.
51
- # @return [BootDiagnostics] Deserialized object.
52
- #
53
- def self.deserialize_object(object)
54
- return if object.nil?
55
- output_object = BootDiagnostics.new
56
-
57
- deserialized_property = object['enabled']
58
- output_object.enabled = deserialized_property
59
-
60
- deserialized_property = object['storageUri']
61
- output_object.storage_uri = deserialized_property
62
-
63
- output_object
64
- end
65
- end
66
- end
67
- end
@@ -1,65 +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 boot diagnostics.
10
- #
11
- class BootDiagnosticsInstanceView
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets the console screenshot blob Uri.
16
- attr_accessor :console_screenshot_blob_uri
17
-
18
- # @return [String] Gets or sets the Linux serial console log blob Uri.
19
- attr_accessor :serial_console_log_blob_uri
20
-
21
- #
22
- # Validate the object. Throws ValidationError if validation fails.
23
- #
24
- def validate
25
- # Nothing to validate
26
- end
27
-
28
- #
29
- # Serializes given Model object into Ruby Hash.
30
- # @param object Model object to serialize.
31
- # @return [Hash] Serialized object in form of Ruby Hash.
32
- #
33
- def self.serialize_object(object)
34
- object.validate
35
- output_object = {}
36
-
37
- serialized_property = object.console_screenshot_blob_uri
38
- output_object['consoleScreenshotBlobUri'] = serialized_property unless serialized_property.nil?
39
-
40
- serialized_property = object.serial_console_log_blob_uri
41
- output_object['serialConsoleLogBlobUri'] = serialized_property unless serialized_property.nil?
42
-
43
- output_object
44
- end
45
-
46
- #
47
- # Deserializes given Ruby Hash into Model object.
48
- # @param object [Hash] Ruby Hash object to deserialize.
49
- # @return [BootDiagnosticsInstanceView] Deserialized object.
50
- #
51
- def self.deserialize_object(object)
52
- return if object.nil?
53
- output_object = BootDiagnosticsInstanceView.new
54
-
55
- deserialized_property = object['consoleScreenshotBlobUri']
56
- output_object.console_screenshot_blob_uri = deserialized_property
57
-
58
- deserialized_property = object['serialConsoleLogBlobUri']
59
- output_object.serial_console_log_blob_uri = deserialized_property
60
-
61
- output_object
62
- end
63
- end
64
- end
65
- end
@@ -1,56 +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
- # Compute-specific operation properties, including output
10
- #
11
- class ComputeLongRunningOperationProperties
12
-
13
- include MsRestAzure
14
-
15
- # @return Operation output data (raw JSON)
16
- attr_accessor :output
17
-
18
- #
19
- # Validate the object. Throws ValidationError if validation fails.
20
- #
21
- def validate
22
- # Nothing to validate
23
- end
24
-
25
- #
26
- # Serializes given Model object into Ruby Hash.
27
- # @param object Model object to serialize.
28
- # @return [Hash] Serialized object in form of Ruby Hash.
29
- #
30
- def self.serialize_object(object)
31
- object.validate
32
- output_object = {}
33
-
34
- serialized_property = object.output
35
- output_object['output'] = serialized_property unless serialized_property.nil?
36
-
37
- output_object
38
- end
39
-
40
- #
41
- # Deserializes given Ruby Hash into Model object.
42
- # @param object [Hash] Ruby Hash object to deserialize.
43
- # @return [ComputeLongRunningOperationProperties] Deserialized object.
44
- #
45
- def self.deserialize_object(object)
46
- return if object.nil?
47
- output_object = ComputeLongRunningOperationProperties.new
48
-
49
- deserialized_property = object['output']
50
- output_object.output = deserialized_property
51
-
52
- output_object
53
- end
54
- end
55
- end
56
- end
@@ -1,143 +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 data disk.
10
- #
11
- class DataDisk
12
-
13
- include MsRestAzure
14
-
15
- # @return [Integer] Gets or sets the logical unit number.
16
- attr_accessor :lun
17
-
18
- # @return [String] Gets or sets the disk name.
19
- attr_accessor :name
20
-
21
- # @return [VirtualHardDisk] Gets or sets the Virtual Hard Disk.
22
- attr_accessor :vhd
23
-
24
- # @return [VirtualHardDisk] Gets or sets the Source User Image
25
- # VirtualHardDisk. This VirtualHardDisk will be copied before using it
26
- # to attach to the Virtual Machine.If SourceImage is provided, the
27
- # destination VirtualHardDisk should not exist.
28
- attr_accessor :image
29
-
30
- # @return [CachingTypes] Gets or sets the caching type. Possible values
31
- # include: 'None', 'ReadOnly', 'ReadWrite'
32
- attr_accessor :caching
33
-
34
- # @return [DiskCreateOptionTypes] Gets or sets the create option.
35
- # Possible values include: 'fromImage', 'empty', 'attach'
36
- attr_accessor :create_option
37
-
38
- # @return [Integer] Gets or sets the initial disk size in GB for blank
39
- # data disks, and the new desired size for existing OS and Data disks.
40
- attr_accessor :disk_size_gb
41
-
42
- #
43
- # Validate the object. Throws ValidationError if validation fails.
44
- #
45
- def validate
46
- fail MsRest::ValidationError, 'property lun is nil' if @lun.nil?
47
- fail MsRest::ValidationError, 'property name is nil' if @name.nil?
48
- fail MsRest::ValidationError, 'property vhd is nil' if @vhd.nil?
49
- fail MsRest::ValidationError, 'property create_option is nil' if @create_option.nil?
50
- @vhd.validate unless @vhd.nil?
51
- @image.validate unless @image.nil?
52
- end
53
-
54
- #
55
- # Serializes given Model object into Ruby Hash.
56
- # @param object Model object to serialize.
57
- # @return [Hash] Serialized object in form of Ruby Hash.
58
- #
59
- def self.serialize_object(object)
60
- object.validate
61
- output_object = {}
62
-
63
- serialized_property = object.lun
64
- output_object['lun'] = serialized_property unless serialized_property.nil?
65
-
66
- serialized_property = object.name
67
- output_object['name'] = serialized_property unless serialized_property.nil?
68
-
69
- serialized_property = object.vhd
70
- unless serialized_property.nil?
71
- serialized_property = VirtualHardDisk.serialize_object(serialized_property)
72
- end
73
- output_object['vhd'] = serialized_property unless serialized_property.nil?
74
-
75
- serialized_property = object.create_option
76
- output_object['createOption'] = serialized_property unless serialized_property.nil?
77
-
78
- serialized_property = object.image
79
- unless serialized_property.nil?
80
- serialized_property = VirtualHardDisk.serialize_object(serialized_property)
81
- end
82
- output_object['image'] = serialized_property unless serialized_property.nil?
83
-
84
- serialized_property = object.caching
85
- output_object['caching'] = serialized_property unless serialized_property.nil?
86
-
87
- serialized_property = object.disk_size_gb
88
- output_object['diskSizeGB'] = serialized_property unless serialized_property.nil?
89
-
90
- output_object
91
- end
92
-
93
- #
94
- # Deserializes given Ruby Hash into Model object.
95
- # @param object [Hash] Ruby Hash object to deserialize.
96
- # @return [DataDisk] Deserialized object.
97
- #
98
- def self.deserialize_object(object)
99
- return if object.nil?
100
- output_object = DataDisk.new
101
-
102
- deserialized_property = object['lun']
103
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
104
- output_object.lun = deserialized_property
105
-
106
- deserialized_property = object['name']
107
- output_object.name = deserialized_property
108
-
109
- deserialized_property = object['vhd']
110
- unless deserialized_property.nil?
111
- deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
112
- end
113
- output_object.vhd = deserialized_property
114
-
115
- deserialized_property = object['createOption']
116
- if (!deserialized_property.nil? && !deserialized_property.empty?)
117
- enum_is_valid = DiskCreateOptionTypes.constants.any? { |e| DiskCreateOptionTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
118
- warn 'Enum DiskCreateOptionTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
119
- end
120
- output_object.create_option = deserialized_property
121
-
122
- deserialized_property = object['image']
123
- unless deserialized_property.nil?
124
- deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
125
- end
126
- output_object.image = deserialized_property
127
-
128
- deserialized_property = object['caching']
129
- if (!deserialized_property.nil? && !deserialized_property.empty?)
130
- enum_is_valid = CachingTypes.constants.any? { |e| CachingTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
131
- warn 'Enum CachingTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
132
- end
133
- output_object.caching = deserialized_property
134
-
135
- deserialized_property = object['diskSizeGB']
136
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
137
- output_object.disk_size_gb = deserialized_property
138
-
139
- output_object
140
- end
141
- end
142
- end
143
- end
@@ -1,60 +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
- # Contains the data disk images information.
10
- #
11
- class DataDiskImage
12
-
13
- include MsRestAzure
14
-
15
- # @return [Integer] Gets the LUN number for a data disk.This value is
16
- # used to identify data disk image inside the VMImage therefore it must
17
- # be unique for each data disk.The allowed character for the value is
18
- # digit.
19
- attr_accessor :lun
20
-
21
- #
22
- # Validate the object. Throws ValidationError if validation fails.
23
- #
24
- def validate
25
- # Nothing to validate
26
- end
27
-
28
- #
29
- # Serializes given Model object into Ruby Hash.
30
- # @param object Model object to serialize.
31
- # @return [Hash] Serialized object in form of Ruby Hash.
32
- #
33
- def self.serialize_object(object)
34
- object.validate
35
- output_object = {}
36
-
37
- serialized_property = object.lun
38
- output_object['lun'] = serialized_property unless serialized_property.nil?
39
-
40
- output_object
41
- end
42
-
43
- #
44
- # Deserializes given Ruby Hash into Model object.
45
- # @param object [Hash] Ruby Hash object to deserialize.
46
- # @return [DataDiskImage] Deserialized object.
47
- #
48
- def self.deserialize_object(object)
49
- return if object.nil?
50
- output_object = DataDiskImage.new
51
-
52
- deserialized_property = object['lun']
53
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
54
- output_object.lun = deserialized_property
55
-
56
- output_object
57
- end
58
- end
59
- end
60
- end
@@ -1,62 +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 diagnostics profile.
10
- #
11
- class DiagnosticsProfile
12
-
13
- include MsRestAzure
14
-
15
- # @return [BootDiagnostics] Gets or sets the boot diagnostics.
16
- attr_accessor :boot_diagnostics
17
-
18
- #
19
- # Validate the object. Throws ValidationError if validation fails.
20
- #
21
- def validate
22
- @boot_diagnostics.validate unless @boot_diagnostics.nil?
23
- end
24
-
25
- #
26
- # Serializes given Model object into Ruby Hash.
27
- # @param object Model object to serialize.
28
- # @return [Hash] Serialized object in form of Ruby Hash.
29
- #
30
- def self.serialize_object(object)
31
- object.validate
32
- output_object = {}
33
-
34
- serialized_property = object.boot_diagnostics
35
- unless serialized_property.nil?
36
- serialized_property = BootDiagnostics.serialize_object(serialized_property)
37
- end
38
- output_object['bootDiagnostics'] = serialized_property unless serialized_property.nil?
39
-
40
- output_object
41
- end
42
-
43
- #
44
- # Deserializes given Ruby Hash into Model object.
45
- # @param object [Hash] Ruby Hash object to deserialize.
46
- # @return [DiagnosticsProfile] Deserialized object.
47
- #
48
- def self.deserialize_object(object)
49
- return if object.nil?
50
- output_object = DiagnosticsProfile.new
51
-
52
- deserialized_property = object['bootDiagnostics']
53
- unless deserialized_property.nil?
54
- deserialized_property = BootDiagnostics.deserialize_object(deserialized_property)
55
- end
56
- output_object.boot_diagnostics = deserialized_property
57
-
58
- output_object
59
- end
60
- end
61
- end
62
- end