azure_mgmt_compute 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (572) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/lib/2015-06-15/generated/azure_mgmt_compute.rb +131 -0
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +495 -0
  5. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +163 -0
  6. data/lib/2015-06-15/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
  7. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  8. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_error.rb +1 -1
  9. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_error_base.rb +1 -1
  10. data/lib/2015-06-15/generated/azure_mgmt_compute/models/availability_set.rb +137 -0
  11. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
  12. data/lib/{generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb → 2015-06-15/generated/azure_mgmt_compute/models/boot_diagnostics.rb} +11 -12
  13. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
  14. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/caching_types.rb +1 -1
  15. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/component_names.rb +1 -1
  16. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
  17. data/lib/2015-06-15/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
  18. data/lib/2015-06-15/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
  19. data/lib/2015-06-15/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
  20. data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
  21. data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
  22. data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
  23. data/lib/2015-06-15/generated/azure_mgmt_compute/models/hardware_profile.rb +58 -0
  24. data/lib/2015-06-15/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
  25. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/inner_error.rb +1 -1
  26. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/instance_view_status.rb +1 -1
  27. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/instance_view_types.rb +1 -1
  28. data/lib/2015-06-15/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
  29. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
  30. data/lib/2015-06-15/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
  31. data/lib/2015-06-15/generated/azure_mgmt_compute/models/list_usages_result.rb +84 -0
  32. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
  33. data/lib/2015-06-15/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
  34. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/operating_system_types.rb +1 -1
  35. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/operation_status_response.rb +1 -1
  36. data/lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
  37. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/osdisk_image.rb +1 -1
  38. data/lib/2015-06-15/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
  39. data/lib/2015-06-15/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
  40. data/lib/2015-06-15/generated/azure_mgmt_compute/models/plan.rb +74 -0
  41. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/protocol_types.rb +1 -1
  42. data/lib/2015-06-15/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
  43. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/resource.rb +1 -1
  44. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/setting_names.rb +1 -1
  45. data/lib/2015-06-15/generated/azure_mgmt_compute/models/sku.rb +64 -0
  46. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
  47. data/lib/2015-06-15/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
  48. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/status_level_types.rb +1 -1
  49. data/lib/2015-06-15/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
  50. data/lib/2015-06-15/generated/azure_mgmt_compute/models/sub_resource.rb +44 -0
  51. data/lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
  52. data/lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
  53. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/usage.rb +1 -1
  54. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/usage_name.rb +1 -1
  55. data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
  56. data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
  57. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
  58. data/lib/{generated/azure_mgmt_compute/models/container_service.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine.rb} +93 -69
  59. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
  60. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
  61. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
  62. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
  63. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
  64. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_extension_image.rb +1 -1
  65. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
  66. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_image.rb +1 -1
  67. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
  68. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
  69. data/lib/{generated/azure_mgmt_compute/models/container_service_list_result.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb} +13 -13
  70. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +134 -0
  71. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
  72. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
  73. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
  74. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
  75. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +98 -0
  76. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +85 -0
  77. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +86 -0
  78. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
  79. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
  80. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
  81. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
  82. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
  83. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
  84. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
  85. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
  86. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
  87. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +247 -0
  88. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
  89. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
  90. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
  91. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
  92. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +85 -0
  93. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
  94. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
  95. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
  96. data/lib/{generated/azure_mgmt_compute/models/container_service_vmsize_types.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb} +13 -8
  97. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
  98. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
  99. data/lib/2015-06-15/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
  100. data/lib/2015-06-15/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
  101. data/lib/2015-06-15/generated/azure_mgmt_compute/module_definition.rb +9 -0
  102. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/usage_operations.rb +5 -5
  103. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/version.rb +2 -2
  104. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
  105. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_extensions.rb +14 -14
  106. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_images.rb +12 -12
  107. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1285 -0
  108. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2182 -0
  109. data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_sizes.rb +4 -4
  110. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +1839 -0
  111. data/lib/2016-03-30/generated/azure_mgmt_compute.rb +134 -0
  112. data/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +495 -0
  113. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +163 -0
  114. data/lib/2016-03-30/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
  115. data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
  116. data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_error.rb +93 -0
  117. data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
  118. data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set.rb +137 -0
  119. data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
  120. data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
  121. data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
  122. data/lib/2016-03-30/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
  123. data/lib/2016-03-30/generated/azure_mgmt_compute/models/component_names.rb +15 -0
  124. data/lib/2016-03-30/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
  125. data/lib/2016-03-30/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
  126. data/lib/2016-03-30/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
  127. data/lib/2016-03-30/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
  128. data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
  129. data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
  130. data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
  131. data/lib/2016-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +61 -0
  132. data/lib/2016-03-30/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
  133. data/lib/2016-03-30/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
  134. data/lib/2016-03-30/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
  135. data/lib/2016-03-30/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  136. data/lib/2016-03-30/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
  137. data/lib/2016-03-30/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
  138. data/lib/2016-03-30/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
  139. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/list_usages_result.rb +1 -1
  140. data/lib/2016-03-30/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
  141. data/lib/2016-03-30/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
  142. data/lib/2016-03-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  143. data/lib/2016-03-30/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
  144. data/lib/2016-03-30/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
  145. data/lib/{generated/azure_mgmt_compute/models/container_service_custom_profile.rb → 2016-03-30/generated/azure_mgmt_compute/models/osdisk_image.rb} +13 -11
  146. data/lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
  147. data/lib/2016-03-30/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
  148. data/lib/2016-03-30/generated/azure_mgmt_compute/models/plan.rb +74 -0
  149. data/lib/2016-03-30/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
  150. data/lib/2016-03-30/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
  151. data/lib/2016-03-30/generated/azure_mgmt_compute/models/resource.rb +94 -0
  152. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/resource_identity_type.rb +1 -1
  153. data/lib/2016-03-30/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
  154. data/lib/2016-03-30/generated/azure_mgmt_compute/models/sku.rb +64 -0
  155. data/lib/{generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb → 2016-03-30/generated/azure_mgmt_compute/models/ssh_configuration.rb} +11 -11
  156. data/lib/2016-03-30/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
  157. data/lib/2016-03-30/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
  158. data/lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
  159. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/sub_resource.rb +1 -1
  160. data/lib/2016-03-30/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
  161. data/lib/2016-03-30/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
  162. data/lib/2016-03-30/generated/azure_mgmt_compute/models/usage.rb +78 -0
  163. data/lib/2016-03-30/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
  164. data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
  165. data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
  166. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
  167. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +239 -0
  168. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
  169. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
  170. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
  171. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
  172. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
  173. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
  174. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
  175. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_identity.rb +1 -1
  176. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
  177. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
  178. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
  179. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
  180. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +147 -0
  181. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
  182. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
  183. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +1 -1
  184. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
  185. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
  186. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
  187. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
  188. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
  189. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
  190. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
  191. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
  192. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
  193. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
  194. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
  195. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
  196. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  197. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
  198. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +259 -0
  199. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
  200. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
  201. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
  202. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
  203. data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
  204. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
  205. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
  206. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
  207. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +77 -0
  208. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
  209. data/lib/2016-03-30/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
  210. data/lib/2016-03-30/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
  211. data/lib/2016-03-30/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
  212. data/lib/2016-03-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
  213. data/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +234 -0
  214. data/lib/{generated/azure_mgmt_compute/module_definition.rb → 2016-03-30/generated/azure_mgmt_compute/version.rb} +3 -3
  215. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
  216. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
  217. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
  218. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1285 -0
  219. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2182 -0
  220. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
  221. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +1839 -0
  222. data/lib/2016-04-30-preview/generated/azure_mgmt_compute.rb +165 -0
  223. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +495 -0
  224. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +175 -0
  225. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +1272 -0
  226. data/lib/{generated/azure_mgmt_compute/container_services.rb → 2016-04-30-preview/generated/azure_mgmt_compute/images.rb} +235 -347
  227. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/access_level.rb +16 -0
  228. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/access_uri.rb +45 -0
  229. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
  230. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
  231. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_error.rb +93 -0
  232. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
  233. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set.rb +158 -0
  234. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
  235. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
  236. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
  237. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
  238. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/component_names.rb +15 -0
  239. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
  240. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/creation_data.rb +94 -0
  241. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk.rb +125 -0
  242. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
  243. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
  244. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk.rb +174 -0
  245. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
  246. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
  247. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
  248. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
  249. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_list.rb +95 -0
  250. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_update.rb +109 -0
  251. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb +72 -0
  252. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/grant_access_data.rb +56 -0
  253. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/hardware_profile.rb +61 -0
  254. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image.rb +113 -0
  255. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_data_disk.rb +99 -0
  256. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_disk_reference.rb +57 -0
  257. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_list_result.rb +95 -0
  258. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_osdisk.rb +113 -0
  259. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_reference.rb +83 -0
  260. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_storage_profile.rb +63 -0
  261. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
  262. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
  263. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  264. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +57 -0
  265. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +56 -0
  266. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
  267. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
  268. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
  269. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/list_usages_result.rb +96 -0
  270. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +53 -0
  271. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
  272. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
  273. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
  274. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  275. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
  276. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk.rb +138 -0
  277. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
  278. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
  279. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
  280. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/plan.rb +74 -0
  281. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
  282. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
  283. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource.rb +94 -0
  284. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource_identity_type.rb +15 -0
  285. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource_update.rb +51 -0
  286. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
  287. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sku.rb +64 -0
  288. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot.rb +174 -0
  289. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_list.rb +95 -0
  290. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb +109 -0
  291. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/source_vault.rb +45 -0
  292. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
  293. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
  294. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
  295. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
  296. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
  297. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource.rb +45 -0
  298. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +46 -0
  299. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
  300. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
  301. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/usage.rb +78 -0
  302. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
  303. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
  304. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
  305. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
  306. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine.rb +239 -0
  307. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
  308. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
  309. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
  310. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
  311. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
  312. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
  313. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
  314. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +70 -0
  315. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
  316. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
  317. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
  318. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +95 -0
  319. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +170 -0
  320. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +101 -0
  321. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +125 -0
  322. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
  323. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +72 -0
  324. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
  325. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
  326. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
  327. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +96 -0
  328. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
  329. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
  330. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +47 -0
  331. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
  332. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
  333. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +123 -0
  334. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
  335. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
  336. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
  337. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  338. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +74 -0
  339. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +259 -0
  340. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
  341. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
  342. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
  343. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +153 -0
  344. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +97 -0
  345. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
  346. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
  347. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
  348. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +77 -0
  349. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
  350. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
  351. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
  352. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
  353. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/module_definition.rb +9 -0
  354. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +1272 -0
  355. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +234 -0
  356. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/version.rb +8 -0
  357. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
  358. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
  359. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
  360. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1432 -0
  361. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2323 -0
  362. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
  363. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +1976 -0
  364. data/lib/2017-03-30/generated/azure_mgmt_compute.rb +210 -0
  365. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/availability_sets.rb +18 -18
  366. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/compute_management_client.rb +7 -7
  367. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/disks.rb +38 -38
  368. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/images.rb +23 -23
  369. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/access_level.rb +1 -1
  370. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/access_uri.rb +1 -1
  371. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
  372. data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
  373. data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_error.rb +93 -0
  374. data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
  375. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/availability_set.rb +1 -1
  376. data/lib/2017-03-30/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
  377. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/boot_diagnostics.rb +1 -1
  378. data/lib/2017-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
  379. data/lib/2017-03-30/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
  380. data/lib/2017-03-30/generated/azure_mgmt_compute/models/component_names.rb +15 -0
  381. data/lib/2017-03-30/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
  382. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/creation_data.rb +1 -1
  383. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/data_disk.rb +1 -1
  384. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/data_disk_image.rb +1 -1
  385. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
  386. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk.rb +1 -1
  387. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_create_option.rb +1 -1
  388. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
  389. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_encryption_settings.rb +1 -1
  390. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
  391. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_list.rb +1 -1
  392. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_sku.rb +1 -1
  393. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_update.rb +1 -1
  394. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/encryption_settings.rb +1 -1
  395. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/grant_access_data.rb +1 -1
  396. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/hardware_profile.rb +1 -1
  397. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image.rb +1 -1
  398. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_data_disk.rb +1 -1
  399. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
  400. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_list_result.rb +1 -1
  401. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_osdisk.rb +1 -1
  402. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_reference.rb +1 -1
  403. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_storage_profile.rb +1 -1
  404. data/lib/2017-03-30/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
  405. data/lib/2017-03-30/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
  406. data/lib/2017-03-30/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  407. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/ipversion.rb +1 -1
  408. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_and_key_reference.rb +1 -1
  409. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +1 -1
  410. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
  411. data/lib/2017-03-30/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
  412. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/linux_configuration.rb +1 -1
  413. data/lib/2017-03-30/generated/azure_mgmt_compute/models/list_usages_result.rb +96 -0
  414. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +1 -1
  415. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/maintenance_redeploy_status.rb +1 -1
  416. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -1
  417. data/lib/2017-03-30/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
  418. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/network_profile.rb +1 -1
  419. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/operating_system_state_types.rb +1 -1
  420. data/lib/2017-03-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  421. data/lib/2017-03-30/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
  422. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/osdisk.rb +1 -1
  423. data/lib/2017-03-30/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
  424. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/osprofile.rb +1 -1
  425. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/pass_names.rb +1 -1
  426. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/plan.rb +1 -1
  427. data/lib/2017-03-30/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
  428. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/purchase_plan.rb +1 -1
  429. data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource.rb +94 -0
  430. data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource_identity_type.rb +15 -0
  431. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku.rb +1 -1
  432. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
  433. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capacity.rb +1 -1
  434. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +1 -1
  435. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_costs.rb +1 -1
  436. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions.rb +1 -1
  437. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +1 -1
  438. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +1 -1
  439. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_skus_result.rb +1 -1
  440. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_update.rb +1 -1
  441. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +1 -1
  442. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_policy.rb +1 -1
  443. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +1 -1
  444. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +1 -1
  445. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +1 -1
  446. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +1 -1
  447. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_document.rb +1 -1
  448. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_document_base.rb +1 -1
  449. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_input.rb +1 -1
  450. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_input_parameter.rb +1 -1
  451. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_list_result.rb +1 -1
  452. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_parameter_definition.rb +1 -1
  453. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_result.rb +1 -1
  454. data/lib/2017-03-30/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
  455. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/sku.rb +1 -1
  456. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot.rb +1 -1
  457. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot_list.rb +1 -1
  458. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot_update.rb +1 -1
  459. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/source_vault.rb +1 -1
  460. data/lib/2017-03-30/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
  461. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
  462. data/lib/2017-03-30/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
  463. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/storage_account_types.rb +1 -1
  464. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/storage_profile.rb +1 -1
  465. data/lib/2017-03-30/generated/azure_mgmt_compute/models/sub_resource.rb +45 -0
  466. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/sub_resource_read_only.rb +1 -1
  467. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/update_resource.rb +1 -1
  468. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/upgrade_mode.rb +1 -1
  469. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
  470. data/lib/2017-03-30/generated/azure_mgmt_compute/models/usage.rb +78 -0
  471. data/lib/2017-03-30/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
  472. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/vault_certificate.rb +1 -1
  473. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
  474. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
  475. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  476. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
  477. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
  478. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
  479. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
  480. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
  481. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
  482. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
  483. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_health_status.rb +1 -1
  484. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +70 -0
  485. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
  486. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
  487. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
  488. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +95 -0
  489. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
  490. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -1
  491. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +1 -1
  492. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +1 -1
  493. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
  494. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +72 -0
  495. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
  496. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
  497. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
  498. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +96 -0
  499. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
  500. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
  501. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -1
  502. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
  503. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +1 -1
  504. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
  505. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
  506. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
  507. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +1 -1
  508. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +1 -1
  509. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
  510. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
  511. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  512. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
  513. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +1 -1
  514. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +1 -1
  515. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +1 -1
  516. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +1 -1
  517. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +1 -1
  518. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +1 -1
  519. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +1 -1
  520. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +1 -1
  521. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +1 -1
  522. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  523. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
  524. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
  525. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
  526. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +1 -1
  527. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +97 -0
  528. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
  529. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
  530. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
  531. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_size_types.rb +1 -1
  532. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
  533. data/lib/2017-03-30/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
  534. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
  535. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/windows_configuration.rb +1 -1
  536. data/lib/2017-03-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
  537. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/resource_skus.rb +6 -6
  538. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/snapshots.rb +38 -38
  539. data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +234 -0
  540. data/lib/2017-03-30/generated/azure_mgmt_compute/version.rb +8 -0
  541. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_extension_images.rb +9 -9
  542. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
  543. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
  544. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_run_commands.rb +9 -9
  545. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +19 -19
  546. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +13 -13
  547. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +40 -40
  548. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_sets.rb +75 -75
  549. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
  550. data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machines.rb +70 -70
  551. data/lib/azure_mgmt_compute.rb +6 -1
  552. data/lib/module_definition.rb +7 -0
  553. data/lib/profiles/common/configurable.rb +73 -0
  554. data/lib/profiles/common/default.rb +68 -0
  555. data/lib/profiles/latest/compute_latest_profile_client.rb +33 -0
  556. data/lib/profiles/latest/compute_module_definition.rb +9 -0
  557. data/lib/profiles/latest/modules/compute_profile_module.rb +740 -0
  558. data/lib/profiles/v2017_03_09/compute_module_definition.rb +9 -0
  559. data/lib/profiles/v2017_03_09/compute_v2017_03_09_profile_client.rb +33 -0
  560. data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +450 -0
  561. data/lib/version.rb +7 -0
  562. metadata +560 -205
  563. data/lib/generated/azure_mgmt_compute.rb +0 -226
  564. data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +0 -107
  565. data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +0 -47
  566. data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +0 -59
  567. data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +0 -68
  568. data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +0 -48
  569. data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb +0 -18
  570. data/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb +0 -56
  571. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +0 -46
  572. data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +0 -60
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Compute
6
+ module Azure::Compute::Mgmt::V2015_06_15
7
7
  #
8
8
  # Compute Client
9
9
  #
@@ -60,7 +60,7 @@ module Azure::ARM::Compute
60
60
  promise = promise.then do |response|
61
61
  # Defining deserialization method.
62
62
  deserialize_method = lambda do |parsed_response|
63
- result_mapper = Azure::ARM::Compute::Models::VirtualMachineExtension.mapper()
63
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
64
64
  parsed_response = @client.deserialize(result_mapper, parsed_response)
65
65
  end
66
66
 
@@ -106,7 +106,7 @@ module Azure::ARM::Compute
106
106
  promise = promise.then do |response|
107
107
  # Defining deserialization method.
108
108
  deserialize_method = lambda do |parsed_response|
109
- result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
109
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
110
110
  parsed_response = @client.deserialize(result_mapper, parsed_response)
111
111
  end
112
112
 
@@ -169,7 +169,7 @@ module Azure::ARM::Compute
169
169
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
170
170
  fail ArgumentError, 'vm_name is nil' if vm_name.nil?
171
171
  fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
172
- api_version = '2017-03-30'
172
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
173
173
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
174
174
 
175
175
 
@@ -185,7 +185,7 @@ module Azure::ARM::Compute
185
185
  options = {
186
186
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
187
187
  path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
188
- query_params: {'$expand' => expand,'api-version' => api_version},
188
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
189
189
  headers: request_headers.merge(custom_headers || {}),
190
190
  base_url: request_url
191
191
  }
@@ -205,7 +205,7 @@ module Azure::ARM::Compute
205
205
  if status_code == 200
206
206
  begin
207
207
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
208
- result_mapper = Azure::ARM::Compute::Models::VirtualMachineExtension.mapper()
208
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
209
209
  result.body = @client.deserialize(result_mapper, parsed_response)
210
210
  rescue Exception => e
211
211
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -274,7 +274,7 @@ module Azure::ARM::Compute
274
274
  fail ArgumentError, 'vm_name is nil' if vm_name.nil?
275
275
  fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
276
276
  fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
277
- api_version = '2017-03-30'
277
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
278
278
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
279
279
 
280
280
 
@@ -287,7 +287,7 @@ module Azure::ARM::Compute
287
287
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
288
288
 
289
289
  # Serialize Request
290
- request_mapper = Azure::ARM::Compute::Models::VirtualMachineExtension.mapper()
290
+ request_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
291
291
  request_content = @client.serialize(request_mapper, extension_parameters)
292
292
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
293
293
 
@@ -298,7 +298,7 @@ module Azure::ARM::Compute
298
298
  options = {
299
299
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
300
300
  path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
301
- query_params: {'api-version' => api_version},
301
+ query_params: {'api-version' => @client.api_version},
302
302
  body: request_content,
303
303
  headers: request_headers.merge(custom_headers || {}),
304
304
  base_url: request_url
@@ -319,7 +319,7 @@ module Azure::ARM::Compute
319
319
  if status_code == 200
320
320
  begin
321
321
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
322
- result_mapper = Azure::ARM::Compute::Models::VirtualMachineExtension.mapper()
322
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
323
323
  result.body = @client.deserialize(result_mapper, parsed_response)
324
324
  rescue Exception => e
325
325
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -329,7 +329,7 @@ module Azure::ARM::Compute
329
329
  if status_code == 201
330
330
  begin
331
331
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
332
- result_mapper = Azure::ARM::Compute::Models::VirtualMachineExtension.mapper()
332
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
333
333
  result.body = @client.deserialize(result_mapper, parsed_response)
334
334
  rescue Exception => e
335
335
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -391,7 +391,7 @@ module Azure::ARM::Compute
391
391
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
392
392
  fail ArgumentError, 'vm_name is nil' if vm_name.nil?
393
393
  fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
394
- api_version = '2017-03-30'
394
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
395
395
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
396
396
 
397
397
 
@@ -407,7 +407,7 @@ module Azure::ARM::Compute
407
407
  options = {
408
408
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
409
409
  path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
410
- query_params: {'api-version' => api_version},
410
+ query_params: {'api-version' => @client.api_version},
411
411
  headers: request_headers.merge(custom_headers || {}),
412
412
  base_url: request_url
413
413
  }
@@ -427,7 +427,7 @@ module Azure::ARM::Compute
427
427
  if status_code == 200
428
428
  begin
429
429
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
430
- result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
430
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
431
431
  result.body = @client.deserialize(result_mapper, parsed_response)
432
432
  rescue Exception => e
433
433
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Compute
6
+ module Azure::Compute::Mgmt::V2015_06_15
7
7
  #
8
8
  # Compute Client
9
9
  #
@@ -75,7 +75,7 @@ module Azure::ARM::Compute
75
75
  fail ArgumentError, 'offer is nil' if offer.nil?
76
76
  fail ArgumentError, 'skus is nil' if skus.nil?
77
77
  fail ArgumentError, 'version is nil' if version.nil?
78
- api_version = '2017-03-30'
78
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
79
79
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
80
80
 
81
81
 
@@ -91,7 +91,7 @@ module Azure::ARM::Compute
91
91
  options = {
92
92
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
93
93
  path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'version' => version,'subscriptionId' => @client.subscription_id},
94
- query_params: {'api-version' => api_version},
94
+ query_params: {'api-version' => @client.api_version},
95
95
  headers: request_headers.merge(custom_headers || {}),
96
96
  base_url: request_url
97
97
  }
@@ -111,7 +111,7 @@ module Azure::ARM::Compute
111
111
  if status_code == 200
112
112
  begin
113
113
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
114
- result_mapper = Azure::ARM::Compute::Models::VirtualMachineImage.mapper()
114
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineImage.mapper()
115
115
  result.body = @client.deserialize(result_mapper, parsed_response)
116
116
  rescue Exception => e
117
117
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -186,7 +186,7 @@ module Azure::ARM::Compute
186
186
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
187
187
  fail ArgumentError, 'offer is nil' if offer.nil?
188
188
  fail ArgumentError, 'skus is nil' if skus.nil?
189
- api_version = '2017-03-30'
189
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
190
190
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
191
191
 
192
192
 
@@ -202,7 +202,7 @@ module Azure::ARM::Compute
202
202
  options = {
203
203
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
204
204
  path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'subscriptionId' => @client.subscription_id},
205
- query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => api_version},
205
+ query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
206
206
  headers: request_headers.merge(custom_headers || {}),
207
207
  base_url: request_url
208
208
  }
@@ -294,7 +294,7 @@ module Azure::ARM::Compute
294
294
  def list_offers_async(location, publisher_name, custom_headers = nil)
295
295
  fail ArgumentError, 'location is nil' if location.nil?
296
296
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
297
- api_version = '2017-03-30'
297
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
298
298
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
299
299
 
300
300
 
@@ -310,7 +310,7 @@ module Azure::ARM::Compute
310
310
  options = {
311
311
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
312
312
  path_params: {'location' => location,'publisherName' => publisher_name,'subscriptionId' => @client.subscription_id},
313
- query_params: {'api-version' => api_version},
313
+ query_params: {'api-version' => @client.api_version},
314
314
  headers: request_headers.merge(custom_headers || {}),
315
315
  base_url: request_url
316
316
  }
@@ -398,7 +398,7 @@ module Azure::ARM::Compute
398
398
  #
399
399
  def list_publishers_async(location, custom_headers = nil)
400
400
  fail ArgumentError, 'location is nil' if location.nil?
401
- api_version = '2017-03-30'
401
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
402
402
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
403
403
 
404
404
 
@@ -414,7 +414,7 @@ module Azure::ARM::Compute
414
414
  options = {
415
415
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
416
416
  path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
417
- query_params: {'api-version' => api_version},
417
+ query_params: {'api-version' => @client.api_version},
418
418
  headers: request_headers.merge(custom_headers || {}),
419
419
  base_url: request_url
420
420
  }
@@ -510,7 +510,7 @@ module Azure::ARM::Compute
510
510
  fail ArgumentError, 'location is nil' if location.nil?
511
511
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
512
512
  fail ArgumentError, 'offer is nil' if offer.nil?
513
- api_version = '2017-03-30'
513
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
514
514
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
515
515
 
516
516
 
@@ -526,7 +526,7 @@ module Azure::ARM::Compute
526
526
  options = {
527
527
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
528
528
  path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'subscriptionId' => @client.subscription_id},
529
- query_params: {'api-version' => api_version},
529
+ query_params: {'api-version' => @client.api_version},
530
530
  headers: request_headers.merge(custom_headers || {}),
531
531
  base_url: request_url
532
532
  }
@@ -0,0 +1,1285 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Compute::Mgmt::V2015_06_15
7
+ #
8
+ # Compute Client
9
+ #
10
+ class VirtualMachineScaleSetVMs
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the VirtualMachineScaleSetVMs class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ComputeManagementClient] reference to the ComputeManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
26
+ # scale set.
27
+ #
28
+ # @param resource_group_name [String] The name of the resource group.
29
+ # @param vm_scale_set_name [String] The name of the VM scale set.
30
+ # @param instance_id [String] The instance ID of the virtual machine.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [OperationStatusResponse] operation results.
35
+ #
36
+ def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
37
+ response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # @param resource_group_name [String] The name of the resource group.
43
+ # @param vm_scale_set_name [String] The name of the VM scale set.
44
+ # @param instance_id [String] The instance ID of the virtual machine.
45
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
46
+ # will be added to the HTTP request.
47
+ #
48
+ # @return [Concurrent::Promise] promise which provides async access to http
49
+ # response.
50
+ #
51
+ def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
52
+ # Send request
53
+ promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
54
+
55
+ promise = promise.then do |response|
56
+ # Defining deserialization method.
57
+ deserialize_method = lambda do |parsed_response|
58
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
59
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
60
+ end
61
+
62
+ # Waiting for response.
63
+ @client.get_long_running_operation_result(response, deserialize_method)
64
+ end
65
+
66
+ promise
67
+ end
68
+
69
+ #
70
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
71
+ # virtual machine and releases the compute resources it uses. You are not
72
+ # billed for the compute resources of this virtual machine once it is
73
+ # deallocated.
74
+ #
75
+ # @param resource_group_name [String] The name of the resource group.
76
+ # @param vm_scale_set_name [String] The name of the VM scale set.
77
+ # @param instance_id [String] The instance ID of the virtual machine.
78
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
79
+ # will be added to the HTTP request.
80
+ #
81
+ # @return [OperationStatusResponse] operation results.
82
+ #
83
+ def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
84
+ response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
85
+ response.body unless response.nil?
86
+ end
87
+
88
+ #
89
+ # @param resource_group_name [String] The name of the resource group.
90
+ # @param vm_scale_set_name [String] The name of the VM scale set.
91
+ # @param instance_id [String] The instance ID of the virtual machine.
92
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
93
+ # will be added to the HTTP request.
94
+ #
95
+ # @return [Concurrent::Promise] promise which provides async access to http
96
+ # response.
97
+ #
98
+ def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
99
+ # Send request
100
+ promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
101
+
102
+ promise = promise.then do |response|
103
+ # Defining deserialization method.
104
+ deserialize_method = lambda do |parsed_response|
105
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
106
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
107
+ end
108
+
109
+ # Waiting for response.
110
+ @client.get_long_running_operation_result(response, deserialize_method)
111
+ end
112
+
113
+ promise
114
+ end
115
+
116
+ #
117
+ # Deletes a virtual machine from a VM scale set.
118
+ #
119
+ # @param resource_group_name [String] The name of the resource group.
120
+ # @param vm_scale_set_name [String] The name of the VM scale set.
121
+ # @param instance_id [String] The instance ID of the virtual machine.
122
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
123
+ # will be added to the HTTP request.
124
+ #
125
+ # @return [OperationStatusResponse] operation results.
126
+ #
127
+ def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
128
+ response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
129
+ response.body unless response.nil?
130
+ end
131
+
132
+ #
133
+ # @param resource_group_name [String] The name of the resource group.
134
+ # @param vm_scale_set_name [String] The name of the VM scale set.
135
+ # @param instance_id [String] The instance ID of the virtual machine.
136
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
137
+ # will be added to the HTTP request.
138
+ #
139
+ # @return [Concurrent::Promise] promise which provides async access to http
140
+ # response.
141
+ #
142
+ def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
143
+ # Send request
144
+ promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
145
+
146
+ promise = promise.then do |response|
147
+ # Defining deserialization method.
148
+ deserialize_method = lambda do |parsed_response|
149
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
150
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
151
+ end
152
+
153
+ # Waiting for response.
154
+ @client.get_long_running_operation_result(response, deserialize_method)
155
+ end
156
+
157
+ promise
158
+ end
159
+
160
+ #
161
+ # Gets a virtual machine from a VM scale set.
162
+ #
163
+ # @param resource_group_name [String] The name of the resource group.
164
+ # @param vm_scale_set_name [String] The name of the VM scale set.
165
+ # @param instance_id [String] The instance ID of the virtual machine.
166
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
167
+ # will be added to the HTTP request.
168
+ #
169
+ # @return [VirtualMachineScaleSetVM] operation results.
170
+ #
171
+ def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
172
+ response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
173
+ response.body unless response.nil?
174
+ end
175
+
176
+ #
177
+ # Gets a virtual machine from a VM scale set.
178
+ #
179
+ # @param resource_group_name [String] The name of the resource group.
180
+ # @param vm_scale_set_name [String] The name of the VM scale set.
181
+ # @param instance_id [String] The instance ID of the virtual machine.
182
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
183
+ # will be added to the HTTP request.
184
+ #
185
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
186
+ #
187
+ def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
188
+ get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
189
+ end
190
+
191
+ #
192
+ # Gets a virtual machine from a VM scale set.
193
+ #
194
+ # @param resource_group_name [String] The name of the resource group.
195
+ # @param vm_scale_set_name [String] The name of the VM scale set.
196
+ # @param instance_id [String] The instance ID of the virtual machine.
197
+ # @param [Hash{String => String}] A hash of custom headers that will be added
198
+ # to the HTTP request.
199
+ #
200
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
201
+ #
202
+ def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
203
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
204
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
205
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
206
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
207
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
208
+
209
+
210
+ request_headers = {}
211
+
212
+ # Set Headers
213
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
214
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
215
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
216
+
217
+ request_url = @base_url || @client.base_url
218
+
219
+ options = {
220
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
221
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
222
+ query_params: {'api-version' => @client.api_version},
223
+ headers: request_headers.merge(custom_headers || {}),
224
+ base_url: request_url
225
+ }
226
+ promise = @client.make_request_async(:get, path_template, options)
227
+
228
+ promise = promise.then do |result|
229
+ http_response = result.response
230
+ status_code = http_response.status
231
+ response_content = http_response.body
232
+ unless status_code == 200
233
+ error_model = JSON.load(response_content)
234
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
235
+ end
236
+
237
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
238
+ # Deserialize Response
239
+ if status_code == 200
240
+ begin
241
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
242
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVM.mapper()
243
+ result.body = @client.deserialize(result_mapper, parsed_response)
244
+ rescue Exception => e
245
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
246
+ end
247
+ end
248
+
249
+ result
250
+ end
251
+
252
+ promise.execute
253
+ end
254
+
255
+ #
256
+ # Gets the status of a virtual machine from a VM scale set.
257
+ #
258
+ # @param resource_group_name [String] The name of the resource group.
259
+ # @param vm_scale_set_name [String] The name of the VM scale set.
260
+ # @param instance_id [String] The instance ID of the virtual machine.
261
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
262
+ # will be added to the HTTP request.
263
+ #
264
+ # @return [VirtualMachineScaleSetVMInstanceView] operation results.
265
+ #
266
+ def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
267
+ response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
268
+ response.body unless response.nil?
269
+ end
270
+
271
+ #
272
+ # Gets the status of a virtual machine from a VM scale set.
273
+ #
274
+ # @param resource_group_name [String] The name of the resource group.
275
+ # @param vm_scale_set_name [String] The name of the VM scale set.
276
+ # @param instance_id [String] The instance ID of the virtual machine.
277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
278
+ # will be added to the HTTP request.
279
+ #
280
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
281
+ #
282
+ def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
283
+ get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
284
+ end
285
+
286
+ #
287
+ # Gets the status of a virtual machine from a VM scale set.
288
+ #
289
+ # @param resource_group_name [String] The name of the resource group.
290
+ # @param vm_scale_set_name [String] The name of the VM scale set.
291
+ # @param instance_id [String] The instance ID of the virtual machine.
292
+ # @param [Hash{String => String}] A hash of custom headers that will be added
293
+ # to the HTTP request.
294
+ #
295
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
296
+ #
297
+ def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
298
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
299
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
300
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
301
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
302
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
303
+
304
+
305
+ request_headers = {}
306
+
307
+ # Set Headers
308
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
309
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
310
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView'
311
+
312
+ request_url = @base_url || @client.base_url
313
+
314
+ options = {
315
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
316
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
317
+ query_params: {'api-version' => @client.api_version},
318
+ headers: request_headers.merge(custom_headers || {}),
319
+ base_url: request_url
320
+ }
321
+ promise = @client.make_request_async(:get, path_template, options)
322
+
323
+ promise = promise.then do |result|
324
+ http_response = result.response
325
+ status_code = http_response.status
326
+ response_content = http_response.body
327
+ unless status_code == 200
328
+ error_model = JSON.load(response_content)
329
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
330
+ end
331
+
332
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
333
+ # Deserialize Response
334
+ if status_code == 200
335
+ begin
336
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
337
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVMInstanceView.mapper()
338
+ result.body = @client.deserialize(result_mapper, parsed_response)
339
+ rescue Exception => e
340
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
341
+ end
342
+ end
343
+
344
+ result
345
+ end
346
+
347
+ promise.execute
348
+ end
349
+
350
+ #
351
+ # Gets a list of all virtual machines in a VM scale sets.
352
+ #
353
+ # @param resource_group_name [String] The name of the resource group.
354
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
355
+ # @param filter [String] The filter to apply to the operation.
356
+ # @param select [String] The list parameters.
357
+ # @param expand [String] The expand expression to apply to the operation.
358
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
359
+ # will be added to the HTTP request.
360
+ #
361
+ # @return [Array<VirtualMachineScaleSetVM>] operation results.
362
+ #
363
+ def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
364
+ first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers)
365
+ first_page.get_all_items
366
+ end
367
+
368
+ #
369
+ # Gets a list of all virtual machines in a VM scale sets.
370
+ #
371
+ # @param resource_group_name [String] The name of the resource group.
372
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
373
+ # @param filter [String] The filter to apply to the operation.
374
+ # @param select [String] The list parameters.
375
+ # @param expand [String] The expand expression to apply to the operation.
376
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
377
+ # will be added to the HTTP request.
378
+ #
379
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
380
+ #
381
+ def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
382
+ list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
383
+ end
384
+
385
+ #
386
+ # Gets a list of all virtual machines in a VM scale sets.
387
+ #
388
+ # @param resource_group_name [String] The name of the resource group.
389
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
390
+ # @param filter [String] The filter to apply to the operation.
391
+ # @param select [String] The list parameters.
392
+ # @param expand [String] The expand expression to apply to the operation.
393
+ # @param [Hash{String => String}] A hash of custom headers that will be added
394
+ # to the HTTP request.
395
+ #
396
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
397
+ #
398
+ def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
399
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
400
+ fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
401
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
402
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
403
+
404
+
405
+ request_headers = {}
406
+
407
+ # Set Headers
408
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
409
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
410
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines'
411
+
412
+ request_url = @base_url || @client.base_url
413
+
414
+ options = {
415
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
416
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
417
+ query_params: {'$filter' => filter,'$select' => select,'$expand' => expand,'api-version' => @client.api_version},
418
+ headers: request_headers.merge(custom_headers || {}),
419
+ base_url: request_url
420
+ }
421
+ promise = @client.make_request_async(:get, path_template, options)
422
+
423
+ promise = promise.then do |result|
424
+ http_response = result.response
425
+ status_code = http_response.status
426
+ response_content = http_response.body
427
+ unless status_code == 200
428
+ error_model = JSON.load(response_content)
429
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
430
+ end
431
+
432
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
433
+ # Deserialize Response
434
+ if status_code == 200
435
+ begin
436
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
437
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVMListResult.mapper()
438
+ result.body = @client.deserialize(result_mapper, parsed_response)
439
+ rescue Exception => e
440
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
441
+ end
442
+ end
443
+
444
+ result
445
+ end
446
+
447
+ promise.execute
448
+ end
449
+
450
+ #
451
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
452
+ # still attached and you are getting charged for the resources. Instead, use
453
+ # deallocate to release resources and avoid charges.
454
+ #
455
+ # @param resource_group_name [String] The name of the resource group.
456
+ # @param vm_scale_set_name [String] The name of the VM scale set.
457
+ # @param instance_id [String] The instance ID of the virtual machine.
458
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
459
+ # will be added to the HTTP request.
460
+ #
461
+ # @return [OperationStatusResponse] operation results.
462
+ #
463
+ def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
464
+ response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
465
+ response.body unless response.nil?
466
+ end
467
+
468
+ #
469
+ # @param resource_group_name [String] The name of the resource group.
470
+ # @param vm_scale_set_name [String] The name of the VM scale set.
471
+ # @param instance_id [String] The instance ID of the virtual machine.
472
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
473
+ # will be added to the HTTP request.
474
+ #
475
+ # @return [Concurrent::Promise] promise which provides async access to http
476
+ # response.
477
+ #
478
+ def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
479
+ # Send request
480
+ promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
481
+
482
+ promise = promise.then do |response|
483
+ # Defining deserialization method.
484
+ deserialize_method = lambda do |parsed_response|
485
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
486
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
487
+ end
488
+
489
+ # Waiting for response.
490
+ @client.get_long_running_operation_result(response, deserialize_method)
491
+ end
492
+
493
+ promise
494
+ end
495
+
496
+ #
497
+ # Restarts a virtual machine in a VM scale set.
498
+ #
499
+ # @param resource_group_name [String] The name of the resource group.
500
+ # @param vm_scale_set_name [String] The name of the VM scale set.
501
+ # @param instance_id [String] The instance ID of the virtual machine.
502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
+ # will be added to the HTTP request.
504
+ #
505
+ # @return [OperationStatusResponse] operation results.
506
+ #
507
+ def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
508
+ response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
509
+ response.body unless response.nil?
510
+ end
511
+
512
+ #
513
+ # @param resource_group_name [String] The name of the resource group.
514
+ # @param vm_scale_set_name [String] The name of the VM scale set.
515
+ # @param instance_id [String] The instance ID of the virtual machine.
516
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
517
+ # will be added to the HTTP request.
518
+ #
519
+ # @return [Concurrent::Promise] promise which provides async access to http
520
+ # response.
521
+ #
522
+ def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
523
+ # Send request
524
+ promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
525
+
526
+ promise = promise.then do |response|
527
+ # Defining deserialization method.
528
+ deserialize_method = lambda do |parsed_response|
529
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
530
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
531
+ end
532
+
533
+ # Waiting for response.
534
+ @client.get_long_running_operation_result(response, deserialize_method)
535
+ end
536
+
537
+ promise
538
+ end
539
+
540
+ #
541
+ # Starts a virtual machine in a VM scale set.
542
+ #
543
+ # @param resource_group_name [String] The name of the resource group.
544
+ # @param vm_scale_set_name [String] The name of the VM scale set.
545
+ # @param instance_id [String] The instance ID of the virtual machine.
546
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
547
+ # will be added to the HTTP request.
548
+ #
549
+ # @return [OperationStatusResponse] operation results.
550
+ #
551
+ def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
552
+ response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
553
+ response.body unless response.nil?
554
+ end
555
+
556
+ #
557
+ # @param resource_group_name [String] The name of the resource group.
558
+ # @param vm_scale_set_name [String] The name of the VM scale set.
559
+ # @param instance_id [String] The instance ID of the virtual machine.
560
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
561
+ # will be added to the HTTP request.
562
+ #
563
+ # @return [Concurrent::Promise] promise which provides async access to http
564
+ # response.
565
+ #
566
+ def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
567
+ # Send request
568
+ promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
569
+
570
+ promise = promise.then do |response|
571
+ # Defining deserialization method.
572
+ deserialize_method = lambda do |parsed_response|
573
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
574
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
575
+ end
576
+
577
+ # Waiting for response.
578
+ @client.get_long_running_operation_result(response, deserialize_method)
579
+ end
580
+
581
+ promise
582
+ end
583
+
584
+ #
585
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
586
+ # scale set.
587
+ #
588
+ # @param resource_group_name [String] The name of the resource group.
589
+ # @param vm_scale_set_name [String] The name of the VM scale set.
590
+ # @param instance_id [String] The instance ID of the virtual machine.
591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
592
+ # will be added to the HTTP request.
593
+ #
594
+ # @return [OperationStatusResponse] operation results.
595
+ #
596
+ def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
597
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
598
+ response.body unless response.nil?
599
+ end
600
+
601
+ #
602
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
603
+ # scale set.
604
+ #
605
+ # @param resource_group_name [String] The name of the resource group.
606
+ # @param vm_scale_set_name [String] The name of the VM scale set.
607
+ # @param instance_id [String] The instance ID of the virtual machine.
608
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
609
+ # will be added to the HTTP request.
610
+ #
611
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
612
+ #
613
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
614
+ begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
615
+ end
616
+
617
+ #
618
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
619
+ # scale set.
620
+ #
621
+ # @param resource_group_name [String] The name of the resource group.
622
+ # @param vm_scale_set_name [String] The name of the VM scale set.
623
+ # @param instance_id [String] The instance ID of the virtual machine.
624
+ # @param [Hash{String => String}] A hash of custom headers that will be added
625
+ # to the HTTP request.
626
+ #
627
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
628
+ #
629
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
630
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
631
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
632
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
633
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
634
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
635
+
636
+
637
+ request_headers = {}
638
+
639
+ # Set Headers
640
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
641
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
642
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'
643
+
644
+ request_url = @base_url || @client.base_url
645
+
646
+ options = {
647
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
648
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
649
+ query_params: {'api-version' => @client.api_version},
650
+ headers: request_headers.merge(custom_headers || {}),
651
+ base_url: request_url
652
+ }
653
+ promise = @client.make_request_async(:post, path_template, options)
654
+
655
+ promise = promise.then do |result|
656
+ http_response = result.response
657
+ status_code = http_response.status
658
+ response_content = http_response.body
659
+ unless status_code == 200 || status_code == 202
660
+ error_model = JSON.load(response_content)
661
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
662
+ end
663
+
664
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
665
+ # Deserialize Response
666
+ if status_code == 200
667
+ begin
668
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
669
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
670
+ result.body = @client.deserialize(result_mapper, parsed_response)
671
+ rescue Exception => e
672
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
673
+ end
674
+ end
675
+
676
+ result
677
+ end
678
+
679
+ promise.execute
680
+ end
681
+
682
+ #
683
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
684
+ # virtual machine and releases the compute resources it uses. You are not
685
+ # billed for the compute resources of this virtual machine once it is
686
+ # deallocated.
687
+ #
688
+ # @param resource_group_name [String] The name of the resource group.
689
+ # @param vm_scale_set_name [String] The name of the VM scale set.
690
+ # @param instance_id [String] The instance ID of the virtual machine.
691
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
692
+ # will be added to the HTTP request.
693
+ #
694
+ # @return [OperationStatusResponse] operation results.
695
+ #
696
+ def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
697
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
698
+ response.body unless response.nil?
699
+ end
700
+
701
+ #
702
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
703
+ # virtual machine and releases the compute resources it uses. You are not
704
+ # billed for the compute resources of this virtual machine once it is
705
+ # deallocated.
706
+ #
707
+ # @param resource_group_name [String] The name of the resource group.
708
+ # @param vm_scale_set_name [String] The name of the VM scale set.
709
+ # @param instance_id [String] The instance ID of the virtual machine.
710
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
711
+ # will be added to the HTTP request.
712
+ #
713
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
714
+ #
715
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
716
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
717
+ end
718
+
719
+ #
720
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
721
+ # virtual machine and releases the compute resources it uses. You are not
722
+ # billed for the compute resources of this virtual machine once it is
723
+ # deallocated.
724
+ #
725
+ # @param resource_group_name [String] The name of the resource group.
726
+ # @param vm_scale_set_name [String] The name of the VM scale set.
727
+ # @param instance_id [String] The instance ID of the virtual machine.
728
+ # @param [Hash{String => String}] A hash of custom headers that will be added
729
+ # to the HTTP request.
730
+ #
731
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
732
+ #
733
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
734
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
735
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
736
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
737
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
738
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
739
+
740
+
741
+ request_headers = {}
742
+
743
+ # Set Headers
744
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
745
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
746
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'
747
+
748
+ request_url = @base_url || @client.base_url
749
+
750
+ options = {
751
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
752
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
753
+ query_params: {'api-version' => @client.api_version},
754
+ headers: request_headers.merge(custom_headers || {}),
755
+ base_url: request_url
756
+ }
757
+ promise = @client.make_request_async(:post, path_template, options)
758
+
759
+ promise = promise.then do |result|
760
+ http_response = result.response
761
+ status_code = http_response.status
762
+ response_content = http_response.body
763
+ unless status_code == 200 || status_code == 202
764
+ error_model = JSON.load(response_content)
765
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
766
+ end
767
+
768
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
769
+ # Deserialize Response
770
+ if status_code == 200
771
+ begin
772
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
773
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
774
+ result.body = @client.deserialize(result_mapper, parsed_response)
775
+ rescue Exception => e
776
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
777
+ end
778
+ end
779
+
780
+ result
781
+ end
782
+
783
+ promise.execute
784
+ end
785
+
786
+ #
787
+ # Deletes a virtual machine from a VM scale set.
788
+ #
789
+ # @param resource_group_name [String] The name of the resource group.
790
+ # @param vm_scale_set_name [String] The name of the VM scale set.
791
+ # @param instance_id [String] The instance ID of the virtual machine.
792
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
793
+ # will be added to the HTTP request.
794
+ #
795
+ # @return [OperationStatusResponse] operation results.
796
+ #
797
+ def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
798
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
799
+ response.body unless response.nil?
800
+ end
801
+
802
+ #
803
+ # Deletes a virtual machine from a VM scale set.
804
+ #
805
+ # @param resource_group_name [String] The name of the resource group.
806
+ # @param vm_scale_set_name [String] The name of the VM scale set.
807
+ # @param instance_id [String] The instance ID of the virtual machine.
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
+ #
813
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
814
+ begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
815
+ end
816
+
817
+ #
818
+ # Deletes a virtual machine from a VM scale set.
819
+ #
820
+ # @param resource_group_name [String] The name of the resource group.
821
+ # @param vm_scale_set_name [String] The name of the VM scale set.
822
+ # @param instance_id [String] The instance ID of the virtual machine.
823
+ # @param [Hash{String => String}] A hash of custom headers that will be added
824
+ # to the HTTP request.
825
+ #
826
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
827
+ #
828
+ def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
829
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
830
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
831
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
832
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
833
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
834
+
835
+
836
+ request_headers = {}
837
+
838
+ # Set Headers
839
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
840
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
841
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
842
+
843
+ request_url = @base_url || @client.base_url
844
+
845
+ options = {
846
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
847
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
848
+ query_params: {'api-version' => @client.api_version},
849
+ headers: request_headers.merge(custom_headers || {}),
850
+ base_url: request_url
851
+ }
852
+ promise = @client.make_request_async(:delete, path_template, options)
853
+
854
+ promise = promise.then do |result|
855
+ http_response = result.response
856
+ status_code = http_response.status
857
+ response_content = http_response.body
858
+ unless status_code == 200 || status_code == 202 || status_code == 204
859
+ error_model = JSON.load(response_content)
860
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
861
+ end
862
+
863
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
864
+ # Deserialize Response
865
+ if status_code == 200
866
+ begin
867
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
868
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
869
+ result.body = @client.deserialize(result_mapper, parsed_response)
870
+ rescue Exception => e
871
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
872
+ end
873
+ end
874
+
875
+ result
876
+ end
877
+
878
+ promise.execute
879
+ end
880
+
881
+ #
882
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
883
+ # still attached and you are getting charged for the resources. Instead, use
884
+ # deallocate to release resources and avoid charges.
885
+ #
886
+ # @param resource_group_name [String] The name of the resource group.
887
+ # @param vm_scale_set_name [String] The name of the VM scale set.
888
+ # @param instance_id [String] The instance ID of the virtual machine.
889
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
890
+ # will be added to the HTTP request.
891
+ #
892
+ # @return [OperationStatusResponse] operation results.
893
+ #
894
+ def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
895
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
896
+ response.body unless response.nil?
897
+ end
898
+
899
+ #
900
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
901
+ # still attached and you are getting charged for the resources. Instead, use
902
+ # deallocate to release resources and avoid charges.
903
+ #
904
+ # @param resource_group_name [String] The name of the resource group.
905
+ # @param vm_scale_set_name [String] The name of the VM scale set.
906
+ # @param instance_id [String] The instance ID of the virtual machine.
907
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
908
+ # will be added to the HTTP request.
909
+ #
910
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
911
+ #
912
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
913
+ begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
914
+ end
915
+
916
+ #
917
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
918
+ # still attached and you are getting charged for the resources. Instead, use
919
+ # deallocate to release resources and avoid charges.
920
+ #
921
+ # @param resource_group_name [String] The name of the resource group.
922
+ # @param vm_scale_set_name [String] The name of the VM scale set.
923
+ # @param instance_id [String] The instance ID of the virtual machine.
924
+ # @param [Hash{String => String}] A hash of custom headers that will be added
925
+ # to the HTTP request.
926
+ #
927
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
928
+ #
929
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
930
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
931
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
932
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
933
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
934
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
935
+
936
+
937
+ request_headers = {}
938
+
939
+ # Set Headers
940
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
941
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
942
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'
943
+
944
+ request_url = @base_url || @client.base_url
945
+
946
+ options = {
947
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
948
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
949
+ query_params: {'api-version' => @client.api_version},
950
+ headers: request_headers.merge(custom_headers || {}),
951
+ base_url: request_url
952
+ }
953
+ promise = @client.make_request_async(:post, path_template, options)
954
+
955
+ promise = promise.then do |result|
956
+ http_response = result.response
957
+ status_code = http_response.status
958
+ response_content = http_response.body
959
+ unless status_code == 200 || status_code == 202
960
+ error_model = JSON.load(response_content)
961
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
962
+ end
963
+
964
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
965
+ # Deserialize Response
966
+ if status_code == 200
967
+ begin
968
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
969
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
970
+ result.body = @client.deserialize(result_mapper, parsed_response)
971
+ rescue Exception => e
972
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
973
+ end
974
+ end
975
+
976
+ result
977
+ end
978
+
979
+ promise.execute
980
+ end
981
+
982
+ #
983
+ # Restarts a virtual machine in a VM scale set.
984
+ #
985
+ # @param resource_group_name [String] The name of the resource group.
986
+ # @param vm_scale_set_name [String] The name of the VM scale set.
987
+ # @param instance_id [String] The instance ID of the virtual machine.
988
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
989
+ # will be added to the HTTP request.
990
+ #
991
+ # @return [OperationStatusResponse] operation results.
992
+ #
993
+ def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
994
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
995
+ response.body unless response.nil?
996
+ end
997
+
998
+ #
999
+ # Restarts a virtual machine in a VM scale set.
1000
+ #
1001
+ # @param resource_group_name [String] The name of the resource group.
1002
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1003
+ # @param instance_id [String] The instance ID of the virtual machine.
1004
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1005
+ # will be added to the HTTP request.
1006
+ #
1007
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1008
+ #
1009
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1010
+ begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1011
+ end
1012
+
1013
+ #
1014
+ # Restarts a virtual machine in a VM scale set.
1015
+ #
1016
+ # @param resource_group_name [String] The name of the resource group.
1017
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1018
+ # @param instance_id [String] The instance ID of the virtual machine.
1019
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1020
+ # to the HTTP request.
1021
+ #
1022
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1023
+ #
1024
+ def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1025
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1026
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1027
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1028
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1029
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1030
+
1031
+
1032
+ request_headers = {}
1033
+
1034
+ # Set Headers
1035
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1036
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1037
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'
1038
+
1039
+ request_url = @base_url || @client.base_url
1040
+
1041
+ options = {
1042
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1043
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1044
+ query_params: {'api-version' => @client.api_version},
1045
+ headers: request_headers.merge(custom_headers || {}),
1046
+ base_url: request_url
1047
+ }
1048
+ promise = @client.make_request_async(:post, path_template, options)
1049
+
1050
+ promise = promise.then do |result|
1051
+ http_response = result.response
1052
+ status_code = http_response.status
1053
+ response_content = http_response.body
1054
+ unless status_code == 200 || status_code == 202
1055
+ error_model = JSON.load(response_content)
1056
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1057
+ end
1058
+
1059
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1060
+ # Deserialize Response
1061
+ if status_code == 200
1062
+ begin
1063
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1064
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
1065
+ result.body = @client.deserialize(result_mapper, parsed_response)
1066
+ rescue Exception => e
1067
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1068
+ end
1069
+ end
1070
+
1071
+ result
1072
+ end
1073
+
1074
+ promise.execute
1075
+ end
1076
+
1077
+ #
1078
+ # Starts a virtual machine in a VM scale set.
1079
+ #
1080
+ # @param resource_group_name [String] The name of the resource group.
1081
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1082
+ # @param instance_id [String] The instance ID of the virtual machine.
1083
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1084
+ # will be added to the HTTP request.
1085
+ #
1086
+ # @return [OperationStatusResponse] operation results.
1087
+ #
1088
+ def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1089
+ response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1090
+ response.body unless response.nil?
1091
+ end
1092
+
1093
+ #
1094
+ # Starts a virtual machine in a VM scale set.
1095
+ #
1096
+ # @param resource_group_name [String] The name of the resource group.
1097
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1098
+ # @param instance_id [String] The instance ID of the virtual machine.
1099
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1100
+ # will be added to the HTTP request.
1101
+ #
1102
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1103
+ #
1104
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1105
+ begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1106
+ end
1107
+
1108
+ #
1109
+ # Starts a virtual machine in a VM scale set.
1110
+ #
1111
+ # @param resource_group_name [String] The name of the resource group.
1112
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1113
+ # @param instance_id [String] The instance ID of the virtual machine.
1114
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1115
+ # to the HTTP request.
1116
+ #
1117
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1118
+ #
1119
+ def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1120
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1121
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1122
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1123
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1124
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1125
+
1126
+
1127
+ request_headers = {}
1128
+
1129
+ # Set Headers
1130
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1131
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1132
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'
1133
+
1134
+ request_url = @base_url || @client.base_url
1135
+
1136
+ options = {
1137
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1138
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1139
+ query_params: {'api-version' => @client.api_version},
1140
+ headers: request_headers.merge(custom_headers || {}),
1141
+ base_url: request_url
1142
+ }
1143
+ promise = @client.make_request_async(:post, path_template, options)
1144
+
1145
+ promise = promise.then do |result|
1146
+ http_response = result.response
1147
+ status_code = http_response.status
1148
+ response_content = http_response.body
1149
+ unless status_code == 200 || status_code == 202
1150
+ error_model = JSON.load(response_content)
1151
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1152
+ end
1153
+
1154
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1155
+ # Deserialize Response
1156
+ if status_code == 200
1157
+ begin
1158
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1159
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
1160
+ result.body = @client.deserialize(result_mapper, parsed_response)
1161
+ rescue Exception => e
1162
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1163
+ end
1164
+ end
1165
+
1166
+ result
1167
+ end
1168
+
1169
+ promise.execute
1170
+ end
1171
+
1172
+ #
1173
+ # Gets a list of all virtual machines in a VM scale sets.
1174
+ #
1175
+ # @param next_page_link [String] The NextLink from the previous successful call
1176
+ # to List operation.
1177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1178
+ # will be added to the HTTP request.
1179
+ #
1180
+ # @return [VirtualMachineScaleSetVMListResult] operation results.
1181
+ #
1182
+ def list_next(next_page_link, custom_headers = nil)
1183
+ response = list_next_async(next_page_link, custom_headers).value!
1184
+ response.body unless response.nil?
1185
+ end
1186
+
1187
+ #
1188
+ # Gets a list of all virtual machines in a VM scale sets.
1189
+ #
1190
+ # @param next_page_link [String] The NextLink from the previous successful call
1191
+ # to List operation.
1192
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1193
+ # will be added to the HTTP request.
1194
+ #
1195
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1196
+ #
1197
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
1198
+ list_next_async(next_page_link, custom_headers).value!
1199
+ end
1200
+
1201
+ #
1202
+ # Gets a list of all virtual machines in a VM scale sets.
1203
+ #
1204
+ # @param next_page_link [String] The NextLink from the previous successful call
1205
+ # to List operation.
1206
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1207
+ # to the HTTP request.
1208
+ #
1209
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1210
+ #
1211
+ def list_next_async(next_page_link, custom_headers = nil)
1212
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1213
+
1214
+
1215
+ request_headers = {}
1216
+
1217
+ # Set Headers
1218
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1219
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1220
+ path_template = '{nextLink}'
1221
+
1222
+ request_url = @base_url || @client.base_url
1223
+
1224
+ options = {
1225
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1226
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1227
+ headers: request_headers.merge(custom_headers || {}),
1228
+ base_url: request_url
1229
+ }
1230
+ promise = @client.make_request_async(:get, path_template, options)
1231
+
1232
+ promise = promise.then do |result|
1233
+ http_response = result.response
1234
+ status_code = http_response.status
1235
+ response_content = http_response.body
1236
+ unless status_code == 200
1237
+ error_model = JSON.load(response_content)
1238
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1239
+ end
1240
+
1241
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1242
+ # Deserialize Response
1243
+ if status_code == 200
1244
+ begin
1245
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1246
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVMListResult.mapper()
1247
+ result.body = @client.deserialize(result_mapper, parsed_response)
1248
+ rescue Exception => e
1249
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1250
+ end
1251
+ end
1252
+
1253
+ result
1254
+ end
1255
+
1256
+ promise.execute
1257
+ end
1258
+
1259
+ #
1260
+ # Gets a list of all virtual machines in a VM scale sets.
1261
+ #
1262
+ # @param resource_group_name [String] The name of the resource group.
1263
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
1264
+ # @param filter [String] The filter to apply to the operation.
1265
+ # @param select [String] The list parameters.
1266
+ # @param expand [String] The expand expression to apply to the operation.
1267
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1268
+ # will be added to the HTTP request.
1269
+ #
1270
+ # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
1271
+ # pages of the response.
1272
+ #
1273
+ def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
1274
+ response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
1275
+ unless response.nil?
1276
+ page = response.body
1277
+ page.next_method = Proc.new do |next_page_link|
1278
+ list_next_async(next_page_link, custom_headers)
1279
+ end
1280
+ page
1281
+ end
1282
+ end
1283
+
1284
+ end
1285
+ end