azure_mgmt_compute 0.18.5 → 0.18.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (585) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
  5. data/lib/2015-06-15/generated/azure_mgmt_compute/models/hardware_profile.rb +19 -18
  6. data/lib/2015-06-15/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
  7. data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
  8. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  9. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  10. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  11. data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  12. data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
  13. data/lib/2016-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +22 -22
  14. data/lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
  15. data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
  16. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  17. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  18. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  19. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  20. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
  21. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
  22. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
  23. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_certificate.rb +1 -1
  24. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  25. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  26. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  27. data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  28. data/lib/2017-03-30/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
  29. data/lib/2017-03-30/generated/azure_mgmt_compute/models/disk_sku.rb +1 -2
  30. data/lib/2017-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +19 -18
  31. data/lib/2017-03-30/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -2
  32. data/lib/2017-03-30/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -2
  33. data/lib/2017-03-30/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -2
  34. data/lib/2017-03-30/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
  35. data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
  36. data/lib/2017-03-30/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
  37. data/lib/2017-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
  38. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  39. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -2
  40. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  41. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  42. data/lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
  43. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  44. data/lib/2017-12-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  45. data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
  46. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
  47. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
  48. data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
  49. data/lib/2017-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
  50. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  51. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
  52. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  53. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +1 -1
  54. data/lib/2018-04-01/generated/azure_mgmt_compute.rb +75 -70
  55. data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
  56. data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  57. data/lib/2018-04-01/generated/azure_mgmt_compute/models/availability_set.rb +15 -1
  58. data/lib/2018-04-01/generated/azure_mgmt_compute/models/availability_set_update.rb +14 -0
  59. data/lib/2018-04-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
  60. data/lib/2018-04-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
  61. data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
  62. data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
  63. data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
  64. data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
  65. data/lib/2018-04-01/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
  66. data/lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
  67. data/lib/2018-04-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
  68. data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine.rb +15 -1
  69. data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +15 -1
  70. data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  71. data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +15 -1
  72. data/lib/2018-04-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
  73. data/lib/2018-06-01/generated/azure_mgmt_compute.rb +93 -85
  74. data/lib/2018-06-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
  75. data/lib/2018-06-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  76. data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set.rb +15 -1
  77. data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb +14 -0
  78. data/lib/2018-06-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +4 -4
  79. data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk.rb +6 -2
  80. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery.rb +1 -1
  81. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +1 -1
  82. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb +2 -2
  83. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +2 -2
  84. data/lib/2018-06-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
  85. data/lib/2018-06-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  86. data/lib/2018-06-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
  87. data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
  88. data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
  89. data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
  90. data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
  91. data/lib/2018-06-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +1 -1
  92. data/lib/2018-06-01/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
  93. data/lib/2018-06-01/generated/azure_mgmt_compute/models/target_region.rb +1 -1
  94. data/lib/2018-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
  95. data/lib/2018-06-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
  96. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb +15 -1
  97. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
  98. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +15 -1
  99. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +20 -0
  100. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
  101. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
  102. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  103. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
  104. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +15 -1
  105. data/lib/2018-06-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
  106. data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +31 -9
  107. data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +29 -25
  108. data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machines.rb +140 -0
  109. data/lib/2018-09-30/generated/azure_mgmt_compute.rb +54 -0
  110. data/lib/2018-09-30/generated/azure_mgmt_compute/compute_management_client.rb +137 -0
  111. data/lib/2018-09-30/generated/azure_mgmt_compute/disks.rb +1274 -0
  112. data/lib/2018-09-30/generated/azure_mgmt_compute/models/access_level.rb +17 -0
  113. data/lib/2018-09-30/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
  114. data/lib/2018-09-30/generated/azure_mgmt_compute/models/creation_data.rb +97 -0
  115. data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk.rb +262 -0
  116. data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_create_option.rb +21 -0
  117. data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
  118. data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_sku.rb +62 -0
  119. data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_state.rb +20 -0
  120. data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_storage_account_types.rb +18 -0
  121. data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_update.rb +134 -0
  122. data/lib/2018-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb +71 -0
  123. data/lib/2018-09-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb +62 -0
  124. data/lib/2018-09-30/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
  125. data/lib/2018-09-30/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
  126. data/lib/2018-09-30/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
  127. data/lib/2018-09-30/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
  128. data/lib/2018-09-30/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
  129. data/lib/2018-09-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  130. data/lib/2018-09-30/generated/azure_mgmt_compute/models/resource.rb +110 -0
  131. data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot.rb +202 -0
  132. data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
  133. data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_sku.rb +61 -0
  134. data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
  135. data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_update.rb +108 -0
  136. data/lib/2018-09-30/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
  137. data/lib/2018-09-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
  138. data/lib/2018-09-30/generated/azure_mgmt_compute/snapshots.rb +1274 -0
  139. data/lib/2018-10-01/generated/azure_mgmt_compute.rb +220 -0
  140. data/lib/2018-10-01/generated/azure_mgmt_compute/availability_sets.rb +894 -0
  141. data/lib/2018-10-01/generated/azure_mgmt_compute/compute_management_client.rb +195 -0
  142. data/lib/2018-10-01/generated/azure_mgmt_compute/images.rb +959 -0
  143. data/lib/2018-10-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
  144. data/lib/2018-10-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
  145. data/lib/2018-10-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
  146. data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
  147. data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
  148. data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
  149. data/lib/2018-10-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +64 -0
  150. data/lib/2018-10-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
  151. data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
  152. data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
  153. data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
  154. data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
  155. data/lib/2018-10-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
  156. data/lib/2018-10-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
  157. data/lib/2018-10-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
  158. data/lib/2018-10-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
  159. data/lib/2018-10-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
  160. data/lib/2018-10-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
  161. data/lib/2018-10-01/generated/azure_mgmt_compute/models/data_disk.rb +159 -0
  162. data/lib/2018-10-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
  163. data/lib/2018-10-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
  164. data/lib/2018-10-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
  165. data/lib/2018-10-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +49 -0
  166. data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
  167. data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
  168. data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
  169. data/lib/2018-10-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
  170. data/lib/2018-10-01/generated/azure_mgmt_compute/models/image.rb +126 -0
  171. data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_data_disk.rb +126 -0
  172. data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
  173. data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb +141 -0
  174. data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_reference.rb +98 -0
  175. data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
  176. data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_update.rb +89 -0
  177. data/lib/2018-10-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
  178. data/lib/2018-10-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
  179. data/lib/2018-10-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  180. data/lib/2018-10-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
  181. data/lib/2018-10-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
  182. data/lib/2018-10-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
  183. data/lib/2018-10-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
  184. data/lib/2018-10-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
  185. data/lib/2018-10-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
  186. data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
  187. data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
  188. data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
  189. data/lib/2018-10-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
  190. data/lib/2018-10-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
  191. data/lib/2018-10-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +57 -0
  192. data/lib/2018-10-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
  193. data/lib/2018-10-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
  194. data/lib/2018-10-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
  195. data/lib/2018-10-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  196. data/lib/2018-10-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
  197. data/lib/2018-10-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
  198. data/lib/2018-10-01/generated/azure_mgmt_compute/models/osprofile.rb +183 -0
  199. data/lib/2018-10-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
  200. data/lib/2018-10-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
  201. data/lib/2018-10-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
  202. data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
  203. data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
  204. data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
  205. data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
  206. data/lib/2018-10-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
  207. data/lib/2018-10-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
  208. data/lib/2018-10-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
  209. data/lib/2018-10-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
  210. data/lib/2018-10-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
  211. data/lib/2018-10-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
  212. data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
  213. data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
  214. data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
  215. data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
  216. data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
  217. data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
  218. data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
  219. data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
  220. data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
  221. data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
  222. data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
  223. data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
  224. data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
  225. data/lib/2018-10-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
  226. data/lib/2018-10-01/generated/azure_mgmt_compute/models/sku.rb +71 -0
  227. data/lib/2018-10-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
  228. data/lib/2018-10-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
  229. data/lib/2018-10-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
  230. data/lib/2018-10-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
  231. data/lib/2018-10-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
  232. data/lib/2018-10-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
  233. data/lib/2018-10-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
  234. data/lib/2018-10-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
  235. data/lib/2018-10-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
  236. data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
  237. data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
  238. data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
  239. data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
  240. data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
  241. data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
  242. data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
  243. data/lib/2018-10-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
  244. data/lib/2018-10-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
  245. data/lib/2018-10-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
  246. data/lib/2018-10-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
  247. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
  248. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine.rb +331 -0
  249. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
  250. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
  251. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
  252. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
  253. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
  254. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
  255. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
  256. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
  257. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  258. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  259. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
  260. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
  261. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
  262. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +131 -0
  263. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
  264. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +205 -0
  265. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
  266. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
  267. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
  268. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +273 -0
  269. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +126 -0
  270. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +172 -0
  271. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
  272. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
  273. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
  274. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
  275. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +91 -0
  276. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
  277. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
  278. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
  279. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
  280. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
  281. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
  282. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
  283. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +50 -0
  284. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
  285. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
  286. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
  287. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
  288. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
  289. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +106 -0
  290. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
  291. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
  292. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
  293. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
  294. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  295. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
  296. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +138 -0
  297. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +188 -0
  298. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
  299. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +57 -0
  300. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
  301. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
  302. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
  303. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
  304. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +112 -0
  305. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +344 -0
  306. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
  307. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
  308. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
  309. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
  310. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
  311. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +162 -0
  312. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
  313. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
  314. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
  315. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
  316. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
  317. data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +274 -0
  318. data/lib/2018-10-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
  319. data/lib/2018-10-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
  320. data/lib/2018-10-01/generated/azure_mgmt_compute/models/windows_configuration.rb +111 -0
  321. data/lib/2018-10-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
  322. data/lib/2018-10-01/generated/azure_mgmt_compute/operations.rb +107 -0
  323. data/lib/2018-10-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
  324. data/lib/2018-10-01/generated/azure_mgmt_compute/usage_operations.rb +237 -0
  325. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +354 -0
  326. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +691 -0
  327. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_images.rb +590 -0
  328. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
  329. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +636 -0
  330. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +490 -0
  331. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1937 -0
  332. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2971 -0
  333. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +120 -0
  334. data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machines.rb +2746 -0
  335. data/lib/2019-03-01/generated/azure_mgmt_compute.rb +255 -0
  336. data/lib/2019-03-01/generated/azure_mgmt_compute/availability_sets.rb +894 -0
  337. data/lib/2019-03-01/generated/azure_mgmt_compute/compute_management_client.rb +207 -0
  338. data/lib/2019-03-01/generated/azure_mgmt_compute/galleries.rb +810 -0
  339. data/lib/2019-03-01/generated/azure_mgmt_compute/gallery_image_versions.rb +710 -0
  340. data/lib/2019-03-01/generated/azure_mgmt_compute/gallery_images.rb +666 -0
  341. data/lib/2019-03-01/generated/azure_mgmt_compute/images.rb +959 -0
  342. data/lib/2019-03-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
  343. data/lib/2019-03-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
  344. data/lib/2019-03-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
  345. data/lib/2019-03-01/generated/azure_mgmt_compute/models/aggregated_replication_state.rb +18 -0
  346. data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
  347. data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
  348. data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
  349. data/lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +64 -0
  350. data/lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
  351. data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
  352. data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
  353. data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
  354. data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
  355. data/lib/2019-03-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
  356. data/lib/2019-03-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
  357. data/lib/2019-03-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
  358. data/lib/2019-03-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
  359. data/lib/2019-03-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
  360. data/lib/2019-03-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
  361. data/lib/2019-03-01/generated/azure_mgmt_compute/models/data_disk.rb +171 -0
  362. data/lib/2019-03-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
  363. data/lib/2019-03-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
  364. data/lib/2019-03-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
  365. data/lib/2019-03-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +49 -0
  366. data/lib/2019-03-01/generated/azure_mgmt_compute/models/disallowed.rb +54 -0
  367. data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
  368. data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
  369. data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
  370. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery.rb +125 -0
  371. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +68 -0
  372. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +47 -0
  373. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb +69 -0
  374. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb +63 -0
  375. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_identifier.rb +48 -0
  376. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image.rb +236 -0
  377. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +68 -0
  378. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_list.rb +100 -0
  379. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version.rb +140 -0
  380. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_list.rb +100 -0
  381. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +125 -0
  382. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb +69 -0
  383. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_list.rb +99 -0
  384. data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb +54 -0
  385. data/lib/2019-03-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
  386. data/lib/2019-03-01/generated/azure_mgmt_compute/models/host_caching.rb +17 -0
  387. data/lib/2019-03-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
  388. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image.rb +139 -0
  389. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_data_disk.rb +126 -0
  390. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
  391. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_osdisk.rb +141 -0
  392. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb +69 -0
  393. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_reference.rb +98 -0
  394. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
  395. data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
  396. data/lib/2019-03-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
  397. data/lib/2019-03-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
  398. data/lib/2019-03-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  399. data/lib/2019-03-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
  400. data/lib/2019-03-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
  401. data/lib/2019-03-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
  402. data/lib/2019-03-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
  403. data/lib/2019-03-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
  404. data/lib/2019-03-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
  405. data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
  406. data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
  407. data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
  408. data/lib/2019-03-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
  409. data/lib/2019-03-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
  410. data/lib/2019-03-01/generated/azure_mgmt_compute/models/managed_artifact.rb +46 -0
  411. data/lib/2019-03-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +57 -0
  412. data/lib/2019-03-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
  413. data/lib/2019-03-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
  414. data/lib/2019-03-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
  415. data/lib/2019-03-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  416. data/lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
  417. data/lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
  418. data/lib/2019-03-01/generated/azure_mgmt_compute/models/osprofile.rb +183 -0
  419. data/lib/2019-03-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
  420. data/lib/2019-03-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
  421. data/lib/2019-03-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
  422. data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
  423. data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
  424. data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
  425. data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
  426. data/lib/2019-03-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
  427. data/lib/2019-03-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +60 -0
  428. data/lib/2019-03-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
  429. data/lib/2019-03-01/generated/azure_mgmt_compute/models/regional_replication_status.rb +86 -0
  430. data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_state.rb +18 -0
  431. data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_status.rb +71 -0
  432. data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_status_types.rb +15 -0
  433. data/lib/2019-03-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
  434. data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
  435. data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
  436. data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource_range.rb +57 -0
  437. data/lib/2019-03-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
  438. data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
  439. data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
  440. data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
  441. data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
  442. data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
  443. data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
  444. data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
  445. data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
  446. data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
  447. data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
  448. data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
  449. data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
  450. data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
  451. data/lib/2019-03-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
  452. data/lib/2019-03-01/generated/azure_mgmt_compute/models/sku.rb +71 -0
  453. data/lib/2019-03-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
  454. data/lib/2019-03-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
  455. data/lib/2019-03-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
  456. data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_account_type.rb +16 -0
  457. data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
  458. data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
  459. data/lib/2019-03-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
  460. data/lib/2019-03-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
  461. data/lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb +71 -0
  462. data/lib/2019-03-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
  463. data/lib/2019-03-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
  464. data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
  465. data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
  466. data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
  467. data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
  468. data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
  469. data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
  470. data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
  471. data/lib/2019-03-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
  472. data/lib/2019-03-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
  473. data/lib/2019-03-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
  474. data/lib/2019-03-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
  475. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
  476. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine.rb +331 -0
  477. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
  478. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
  479. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
  480. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
  481. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
  482. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
  483. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
  484. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
  485. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  486. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  487. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
  488. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
  489. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
  490. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +131 -0
  491. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
  492. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +205 -0
  493. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
  494. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
  495. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
  496. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +289 -0
  497. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +126 -0
  498. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +172 -0
  499. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
  500. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
  501. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
  502. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
  503. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +91 -0
  504. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
  505. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
  506. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
  507. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
  508. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
  509. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
  510. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
  511. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +50 -0
  512. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
  513. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
  514. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
  515. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
  516. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
  517. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +106 -0
  518. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
  519. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
  520. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
  521. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
  522. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  523. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
  524. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +154 -0
  525. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +188 -0
  526. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
  527. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +57 -0
  528. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
  529. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
  530. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
  531. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
  532. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +112 -0
  533. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +384 -0
  534. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
  535. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
  536. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
  537. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
  538. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
  539. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
  540. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +147 -0
  541. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
  542. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
  543. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
  544. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
  545. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
  546. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
  547. data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +274 -0
  548. data/lib/2019-03-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
  549. data/lib/2019-03-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
  550. data/lib/2019-03-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
  551. data/lib/2019-03-01/generated/azure_mgmt_compute/models/windows_configuration.rb +111 -0
  552. data/lib/2019-03-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
  553. data/lib/2019-03-01/generated/azure_mgmt_compute/operations.rb +107 -0
  554. data/lib/2019-03-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
  555. data/lib/2019-03-01/generated/azure_mgmt_compute/usage_operations.rb +237 -0
  556. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +354 -0
  557. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +691 -0
  558. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_images.rb +590 -0
  559. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
  560. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +636 -0
  561. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +490 -0
  562. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1957 -0
  563. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3090 -0
  564. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +120 -0
  565. data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machines.rb +2766 -0
  566. data/lib/2019-04-01/generated/azure_mgmt_compute.rb +40 -0
  567. data/lib/2019-04-01/generated/azure_mgmt_compute/compute_management_client.rb +133 -0
  568. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku.rb +250 -0
  569. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +59 -0
  570. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capacity.rb +85 -0
  571. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +17 -0
  572. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_costs.rb +72 -0
  573. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_location_info.rb +91 -0
  574. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restriction_info.rb +77 -0
  575. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb +99 -0
  576. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +16 -0
  577. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +16 -0
  578. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_zone_details.rb +78 -0
  579. data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_skus_result.rb +100 -0
  580. data/lib/2019-04-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
  581. data/lib/2019-04-01/generated/azure_mgmt_compute/resource_skus.rb +217 -0
  582. data/lib/azure_mgmt_compute.rb +4 -0
  583. data/lib/profiles/latest/modules/compute_profile_module.rb +722 -668
  584. data/lib/version.rb +1 -1
  585. metadata +489 -3
@@ -0,0 +1,1937 @@
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::V2018_10_01
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 vm_scale_set_vmreimage_input
32
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
33
+ # Virtual machine in ScaleSet.
34
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ def reimage(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
38
+ response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers).value!
39
+ nil
40
+ end
41
+
42
+ #
43
+ # @param resource_group_name [String] The name of the resource group.
44
+ # @param vm_scale_set_name [String] The name of the VM scale set.
45
+ # @param instance_id [String] The instance ID of the virtual machine.
46
+ # @param vm_scale_set_vmreimage_input
47
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
48
+ # Virtual machine in ScaleSet.
49
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
50
+ # will be added to the HTTP request.
51
+ #
52
+ # @return [Concurrent::Promise] promise which provides async access to http
53
+ # response.
54
+ #
55
+ def reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
56
+ # Send request
57
+ promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers)
58
+
59
+ promise = promise.then do |response|
60
+ # Defining deserialization method.
61
+ deserialize_method = lambda do |parsed_response|
62
+ end
63
+
64
+ # Waiting for response.
65
+ @client.get_long_running_operation_result(response, deserialize_method)
66
+ end
67
+
68
+ promise
69
+ end
70
+
71
+ #
72
+ # Allows you to re-image all the disks ( including data disks ) in the a VM
73
+ # scale set instance. This operation is only supported for managed disks.
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
+ def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
82
+ response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
83
+ nil
84
+ end
85
+
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group.
88
+ # @param vm_scale_set_name [String] The name of the VM scale set.
89
+ # @param instance_id [String] The instance ID of the virtual machine.
90
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
91
+ # will be added to the HTTP request.
92
+ #
93
+ # @return [Concurrent::Promise] promise which provides async access to http
94
+ # response.
95
+ #
96
+ def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
97
+ # Send request
98
+ promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
99
+
100
+ promise = promise.then do |response|
101
+ # Defining deserialization method.
102
+ deserialize_method = lambda do |parsed_response|
103
+ end
104
+
105
+ # Waiting for response.
106
+ @client.get_long_running_operation_result(response, deserialize_method)
107
+ end
108
+
109
+ promise
110
+ end
111
+
112
+ #
113
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
114
+ # virtual machine and releases the compute resources it uses. You are not
115
+ # billed for the compute resources of this virtual machine once it is
116
+ # deallocated.
117
+ #
118
+ # @param resource_group_name [String] The name of the resource group.
119
+ # @param vm_scale_set_name [String] The name of the VM scale set.
120
+ # @param instance_id [String] The instance ID of the virtual machine.
121
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
122
+ # will be added to the HTTP request.
123
+ #
124
+ def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
125
+ response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
126
+ nil
127
+ end
128
+
129
+ #
130
+ # @param resource_group_name [String] The name of the resource group.
131
+ # @param vm_scale_set_name [String] The name of the VM scale set.
132
+ # @param instance_id [String] The instance ID of the virtual machine.
133
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
134
+ # will be added to the HTTP request.
135
+ #
136
+ # @return [Concurrent::Promise] promise which provides async access to http
137
+ # response.
138
+ #
139
+ def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
140
+ # Send request
141
+ promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
142
+
143
+ promise = promise.then do |response|
144
+ # Defining deserialization method.
145
+ deserialize_method = lambda do |parsed_response|
146
+ end
147
+
148
+ # Waiting for response.
149
+ @client.get_long_running_operation_result(response, deserialize_method)
150
+ end
151
+
152
+ promise
153
+ end
154
+
155
+ #
156
+ # Updates a virtual machine of a VM scale set.
157
+ #
158
+ # @param resource_group_name [String] The name of the resource group.
159
+ # @param vm_scale_set_name [String] The name of the VM scale set where the
160
+ # extension should be create or updated.
161
+ # @param instance_id [String] The instance ID of the virtual machine.
162
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
163
+ # Update Virtual Machine Scale Sets VM operation.
164
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
165
+ # will be added to the HTTP request.
166
+ #
167
+ # @return [VirtualMachineScaleSetVM] operation results.
168
+ #
169
+ def update(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
170
+ response = update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
171
+ response.body unless response.nil?
172
+ end
173
+
174
+ #
175
+ # @param resource_group_name [String] The name of the resource group.
176
+ # @param vm_scale_set_name [String] The name of the VM scale set where the
177
+ # extension should be create or updated.
178
+ # @param instance_id [String] The instance ID of the virtual machine.
179
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
180
+ # Update Virtual Machine Scale Sets VM operation.
181
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
182
+ # will be added to the HTTP request.
183
+ #
184
+ # @return [Concurrent::Promise] promise which provides async access to http
185
+ # response.
186
+ #
187
+ def update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
188
+ # Send request
189
+ promise = begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers)
190
+
191
+ promise = promise.then do |response|
192
+ # Defining deserialization method.
193
+ deserialize_method = lambda do |parsed_response|
194
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVM.mapper()
195
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
196
+ end
197
+
198
+ # Waiting for response.
199
+ @client.get_long_running_operation_result(response, deserialize_method)
200
+ end
201
+
202
+ promise
203
+ end
204
+
205
+ #
206
+ # Deletes a virtual machine from a VM scale set.
207
+ #
208
+ # @param resource_group_name [String] The name of the resource group.
209
+ # @param vm_scale_set_name [String] The name of the VM scale set.
210
+ # @param instance_id [String] The instance ID of the virtual machine.
211
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
212
+ # will be added to the HTTP request.
213
+ #
214
+ def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
215
+ response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
216
+ nil
217
+ end
218
+
219
+ #
220
+ # @param resource_group_name [String] The name of the resource group.
221
+ # @param vm_scale_set_name [String] The name of the VM scale set.
222
+ # @param instance_id [String] The instance ID of the virtual machine.
223
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
224
+ # will be added to the HTTP request.
225
+ #
226
+ # @return [Concurrent::Promise] promise which provides async access to http
227
+ # response.
228
+ #
229
+ def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
230
+ # Send request
231
+ promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
232
+
233
+ promise = promise.then do |response|
234
+ # Defining deserialization method.
235
+ deserialize_method = lambda do |parsed_response|
236
+ end
237
+
238
+ # Waiting for response.
239
+ @client.get_long_running_operation_result(response, deserialize_method)
240
+ end
241
+
242
+ promise
243
+ end
244
+
245
+ #
246
+ # Gets a virtual machine from a VM scale set.
247
+ #
248
+ # @param resource_group_name [String] The name of the resource group.
249
+ # @param vm_scale_set_name [String] The name of the VM scale set.
250
+ # @param instance_id [String] The instance ID of the virtual machine.
251
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
+ # will be added to the HTTP request.
253
+ #
254
+ # @return [VirtualMachineScaleSetVM] operation results.
255
+ #
256
+ def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
257
+ response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
258
+ response.body unless response.nil?
259
+ end
260
+
261
+ #
262
+ # Gets a virtual machine from a VM scale set.
263
+ #
264
+ # @param resource_group_name [String] The name of the resource group.
265
+ # @param vm_scale_set_name [String] The name of the VM scale set.
266
+ # @param instance_id [String] The instance ID of the virtual machine.
267
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
268
+ # will be added to the HTTP request.
269
+ #
270
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
271
+ #
272
+ def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
273
+ get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
274
+ end
275
+
276
+ #
277
+ # Gets a virtual machine from a VM scale set.
278
+ #
279
+ # @param resource_group_name [String] The name of the resource group.
280
+ # @param vm_scale_set_name [String] The name of the VM scale set.
281
+ # @param instance_id [String] The instance ID of the virtual machine.
282
+ # @param [Hash{String => String}] A hash of custom headers that will be added
283
+ # to the HTTP request.
284
+ #
285
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
286
+ #
287
+ def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
288
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
289
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
290
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
291
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
292
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
293
+
294
+
295
+ request_headers = {}
296
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
297
+
298
+ # Set Headers
299
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
300
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
301
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
302
+
303
+ request_url = @base_url || @client.base_url
304
+
305
+ options = {
306
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
307
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
308
+ query_params: {'api-version' => @client.api_version},
309
+ headers: request_headers.merge(custom_headers || {}),
310
+ base_url: request_url
311
+ }
312
+ promise = @client.make_request_async(:get, path_template, options)
313
+
314
+ promise = promise.then do |result|
315
+ http_response = result.response
316
+ status_code = http_response.status
317
+ response_content = http_response.body
318
+ unless status_code == 200
319
+ error_model = JSON.load(response_content)
320
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
321
+ end
322
+
323
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
324
+ # Deserialize Response
325
+ if status_code == 200
326
+ begin
327
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
328
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVM.mapper()
329
+ result.body = @client.deserialize(result_mapper, parsed_response)
330
+ rescue Exception => e
331
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
332
+ end
333
+ end
334
+
335
+ result
336
+ end
337
+
338
+ promise.execute
339
+ end
340
+
341
+ #
342
+ # Gets the status of a virtual machine from a VM scale set.
343
+ #
344
+ # @param resource_group_name [String] The name of the resource group.
345
+ # @param vm_scale_set_name [String] The name of the VM scale set.
346
+ # @param instance_id [String] The instance ID of the virtual machine.
347
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
348
+ # will be added to the HTTP request.
349
+ #
350
+ # @return [VirtualMachineScaleSetVMInstanceView] operation results.
351
+ #
352
+ def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
353
+ response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
354
+ response.body unless response.nil?
355
+ end
356
+
357
+ #
358
+ # Gets the status of a virtual machine from a VM scale set.
359
+ #
360
+ # @param resource_group_name [String] The name of the resource group.
361
+ # @param vm_scale_set_name [String] The name of the VM scale set.
362
+ # @param instance_id [String] The instance ID of the virtual machine.
363
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
364
+ # will be added to the HTTP request.
365
+ #
366
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
367
+ #
368
+ def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
369
+ get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
370
+ end
371
+
372
+ #
373
+ # Gets the status of a virtual machine from a VM scale set.
374
+ #
375
+ # @param resource_group_name [String] The name of the resource group.
376
+ # @param vm_scale_set_name [String] The name of the VM scale set.
377
+ # @param instance_id [String] The instance ID of the virtual machine.
378
+ # @param [Hash{String => String}] A hash of custom headers that will be added
379
+ # to the HTTP request.
380
+ #
381
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
382
+ #
383
+ def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
384
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
385
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
386
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
387
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
388
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
389
+
390
+
391
+ request_headers = {}
392
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
393
+
394
+ # Set Headers
395
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
396
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
397
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView'
398
+
399
+ request_url = @base_url || @client.base_url
400
+
401
+ options = {
402
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
403
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
404
+ query_params: {'api-version' => @client.api_version},
405
+ headers: request_headers.merge(custom_headers || {}),
406
+ base_url: request_url
407
+ }
408
+ promise = @client.make_request_async(:get, path_template, options)
409
+
410
+ promise = promise.then do |result|
411
+ http_response = result.response
412
+ status_code = http_response.status
413
+ response_content = http_response.body
414
+ unless status_code == 200
415
+ error_model = JSON.load(response_content)
416
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
417
+ end
418
+
419
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
420
+ # Deserialize Response
421
+ if status_code == 200
422
+ begin
423
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
424
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVMInstanceView.mapper()
425
+ result.body = @client.deserialize(result_mapper, parsed_response)
426
+ rescue Exception => e
427
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
428
+ end
429
+ end
430
+
431
+ result
432
+ end
433
+
434
+ promise.execute
435
+ end
436
+
437
+ #
438
+ # Gets a list of all virtual machines in a VM scale sets.
439
+ #
440
+ # @param resource_group_name [String] The name of the resource group.
441
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
442
+ # @param filter [String] The filter to apply to the operation.
443
+ # @param select [String] The list parameters.
444
+ # @param expand [String] The expand expression to apply to the operation.
445
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
446
+ # will be added to the HTTP request.
447
+ #
448
+ # @return [Array<VirtualMachineScaleSetVM>] operation results.
449
+ #
450
+ def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
451
+ first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers)
452
+ first_page.get_all_items
453
+ end
454
+
455
+ #
456
+ # Gets a list of all virtual machines in a VM scale sets.
457
+ #
458
+ # @param resource_group_name [String] The name of the resource group.
459
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
460
+ # @param filter [String] The filter to apply to the operation.
461
+ # @param select [String] The list parameters.
462
+ # @param expand [String] The expand expression to apply to the operation.
463
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
464
+ # will be added to the HTTP request.
465
+ #
466
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
467
+ #
468
+ def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
469
+ list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
470
+ end
471
+
472
+ #
473
+ # Gets a list of all virtual machines in a VM scale sets.
474
+ #
475
+ # @param resource_group_name [String] The name of the resource group.
476
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
477
+ # @param filter [String] The filter to apply to the operation.
478
+ # @param select [String] The list parameters.
479
+ # @param expand [String] The expand expression to apply to the operation.
480
+ # @param [Hash{String => String}] A hash of custom headers that will be added
481
+ # to the HTTP request.
482
+ #
483
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
484
+ #
485
+ def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
486
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
487
+ fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
488
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
489
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
490
+
491
+
492
+ request_headers = {}
493
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
494
+
495
+ # Set Headers
496
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
497
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
498
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines'
499
+
500
+ request_url = @base_url || @client.base_url
501
+
502
+ options = {
503
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
504
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
505
+ query_params: {'$filter' => filter,'$select' => select,'$expand' => expand,'api-version' => @client.api_version},
506
+ headers: request_headers.merge(custom_headers || {}),
507
+ base_url: request_url
508
+ }
509
+ promise = @client.make_request_async(:get, path_template, options)
510
+
511
+ promise = promise.then do |result|
512
+ http_response = result.response
513
+ status_code = http_response.status
514
+ response_content = http_response.body
515
+ unless status_code == 200
516
+ error_model = JSON.load(response_content)
517
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
518
+ end
519
+
520
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
521
+ # Deserialize Response
522
+ if status_code == 200
523
+ begin
524
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
525
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVMListResult.mapper()
526
+ result.body = @client.deserialize(result_mapper, parsed_response)
527
+ rescue Exception => e
528
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
529
+ end
530
+ end
531
+
532
+ result
533
+ end
534
+
535
+ promise.execute
536
+ end
537
+
538
+ #
539
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
540
+ # still attached and you are getting charged for the resources. Instead, use
541
+ # deallocate to release resources and avoid charges.
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
+ def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
550
+ response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
551
+ nil
552
+ end
553
+
554
+ #
555
+ # @param resource_group_name [String] The name of the resource group.
556
+ # @param vm_scale_set_name [String] The name of the VM scale set.
557
+ # @param instance_id [String] The instance ID of the virtual machine.
558
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
559
+ # will be added to the HTTP request.
560
+ #
561
+ # @return [Concurrent::Promise] promise which provides async access to http
562
+ # response.
563
+ #
564
+ def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
565
+ # Send request
566
+ promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
567
+
568
+ promise = promise.then do |response|
569
+ # Defining deserialization method.
570
+ deserialize_method = lambda do |parsed_response|
571
+ end
572
+
573
+ # Waiting for response.
574
+ @client.get_long_running_operation_result(response, deserialize_method)
575
+ end
576
+
577
+ promise
578
+ end
579
+
580
+ #
581
+ # Restarts a virtual machine in a VM scale set.
582
+ #
583
+ # @param resource_group_name [String] The name of the resource group.
584
+ # @param vm_scale_set_name [String] The name of the VM scale set.
585
+ # @param instance_id [String] The instance ID of the virtual machine.
586
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
587
+ # will be added to the HTTP request.
588
+ #
589
+ def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
590
+ response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
591
+ nil
592
+ end
593
+
594
+ #
595
+ # @param resource_group_name [String] The name of the resource group.
596
+ # @param vm_scale_set_name [String] The name of the VM scale set.
597
+ # @param instance_id [String] The instance ID of the virtual machine.
598
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
599
+ # will be added to the HTTP request.
600
+ #
601
+ # @return [Concurrent::Promise] promise which provides async access to http
602
+ # response.
603
+ #
604
+ def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
605
+ # Send request
606
+ promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
607
+
608
+ promise = promise.then do |response|
609
+ # Defining deserialization method.
610
+ deserialize_method = lambda do |parsed_response|
611
+ end
612
+
613
+ # Waiting for response.
614
+ @client.get_long_running_operation_result(response, deserialize_method)
615
+ end
616
+
617
+ promise
618
+ end
619
+
620
+ #
621
+ # Starts a virtual machine in a VM scale set.
622
+ #
623
+ # @param resource_group_name [String] The name of the resource group.
624
+ # @param vm_scale_set_name [String] The name of the VM scale set.
625
+ # @param instance_id [String] The instance ID of the virtual machine.
626
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
627
+ # will be added to the HTTP request.
628
+ #
629
+ def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
630
+ response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
631
+ nil
632
+ end
633
+
634
+ #
635
+ # @param resource_group_name [String] The name of the resource group.
636
+ # @param vm_scale_set_name [String] The name of the VM scale set.
637
+ # @param instance_id [String] The instance ID of the virtual machine.
638
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
639
+ # will be added to the HTTP request.
640
+ #
641
+ # @return [Concurrent::Promise] promise which provides async access to http
642
+ # response.
643
+ #
644
+ def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
645
+ # Send request
646
+ promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
647
+
648
+ promise = promise.then do |response|
649
+ # Defining deserialization method.
650
+ deserialize_method = lambda do |parsed_response|
651
+ end
652
+
653
+ # Waiting for response.
654
+ @client.get_long_running_operation_result(response, deserialize_method)
655
+ end
656
+
657
+ promise
658
+ end
659
+
660
+ #
661
+ # Redeploys a virtual machine in a VM scale set.
662
+ #
663
+ # @param resource_group_name [String] The name of the resource group.
664
+ # @param vm_scale_set_name [String] The name of the VM scale set.
665
+ # @param instance_id [String] The instance ID of the virtual machine.
666
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
667
+ # will be added to the HTTP request.
668
+ #
669
+ def redeploy(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
670
+ response = redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
671
+ nil
672
+ end
673
+
674
+ #
675
+ # @param resource_group_name [String] The name of the resource group.
676
+ # @param vm_scale_set_name [String] The name of the VM scale set.
677
+ # @param instance_id [String] The instance ID of the virtual machine.
678
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
679
+ # will be added to the HTTP request.
680
+ #
681
+ # @return [Concurrent::Promise] promise which provides async access to http
682
+ # response.
683
+ #
684
+ def redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
685
+ # Send request
686
+ promise = begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
687
+
688
+ promise = promise.then do |response|
689
+ # Defining deserialization method.
690
+ deserialize_method = lambda do |parsed_response|
691
+ end
692
+
693
+ # Waiting for response.
694
+ @client.get_long_running_operation_result(response, deserialize_method)
695
+ end
696
+
697
+ promise
698
+ end
699
+
700
+ #
701
+ # Performs maintenance on a virtual machine in a VM scale set.
702
+ #
703
+ # @param resource_group_name [String] The name of the resource group.
704
+ # @param vm_scale_set_name [String] The name of the VM scale set.
705
+ # @param instance_id [String] The instance ID of the virtual machine.
706
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
707
+ # will be added to the HTTP request.
708
+ #
709
+ def perform_maintenance(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
710
+ response = perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
711
+ nil
712
+ end
713
+
714
+ #
715
+ # @param resource_group_name [String] The name of the resource group.
716
+ # @param vm_scale_set_name [String] The name of the VM scale set.
717
+ # @param instance_id [String] The instance ID of the virtual machine.
718
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
719
+ # will be added to the HTTP request.
720
+ #
721
+ # @return [Concurrent::Promise] promise which provides async access to http
722
+ # response.
723
+ #
724
+ def perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
725
+ # Send request
726
+ promise = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
727
+
728
+ promise = promise.then do |response|
729
+ # Defining deserialization method.
730
+ deserialize_method = lambda do |parsed_response|
731
+ end
732
+
733
+ # Waiting for response.
734
+ @client.get_long_running_operation_result(response, deserialize_method)
735
+ end
736
+
737
+ promise
738
+ end
739
+
740
+ #
741
+ # Run command on a virtual machine in a VM scale set.
742
+ #
743
+ # @param resource_group_name [String] The name of the resource group.
744
+ # @param vm_scale_set_name [String] The name of the VM scale set.
745
+ # @param instance_id [String] The instance ID of the virtual machine.
746
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
747
+ # operation.
748
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
749
+ # will be added to the HTTP request.
750
+ #
751
+ # @return [RunCommandResult] operation results.
752
+ #
753
+ def run_command(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
754
+ response = run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
755
+ response.body unless response.nil?
756
+ end
757
+
758
+ #
759
+ # @param resource_group_name [String] The name of the resource group.
760
+ # @param vm_scale_set_name [String] The name of the VM scale set.
761
+ # @param instance_id [String] The instance ID of the virtual machine.
762
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
763
+ # operation.
764
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
765
+ # will be added to the HTTP request.
766
+ #
767
+ # @return [Concurrent::Promise] promise which provides async access to http
768
+ # response.
769
+ #
770
+ def run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
771
+ # Send request
772
+ promise = begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers)
773
+
774
+ promise = promise.then do |response|
775
+ # Defining deserialization method.
776
+ deserialize_method = lambda do |parsed_response|
777
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::RunCommandResult.mapper()
778
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
779
+ end
780
+
781
+ # Waiting for response.
782
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
783
+ end
784
+
785
+ promise
786
+ end
787
+
788
+ #
789
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
790
+ # scale set.
791
+ #
792
+ # @param resource_group_name [String] The name of the resource group.
793
+ # @param vm_scale_set_name [String] The name of the VM scale set.
794
+ # @param instance_id [String] The instance ID of the virtual machine.
795
+ # @param vm_scale_set_vmreimage_input
796
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
797
+ # Virtual machine in ScaleSet.
798
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
799
+ # will be added to the HTTP request.
800
+ #
801
+ #
802
+ def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
803
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers).value!
804
+ nil
805
+ end
806
+
807
+ #
808
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
809
+ # scale set.
810
+ #
811
+ # @param resource_group_name [String] The name of the resource group.
812
+ # @param vm_scale_set_name [String] The name of the VM scale set.
813
+ # @param instance_id [String] The instance ID of the virtual machine.
814
+ # @param vm_scale_set_vmreimage_input
815
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
816
+ # Virtual machine in ScaleSet.
817
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
818
+ # will be added to the HTTP request.
819
+ #
820
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
821
+ #
822
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
823
+ begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers).value!
824
+ end
825
+
826
+ #
827
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
828
+ # scale set.
829
+ #
830
+ # @param resource_group_name [String] The name of the resource group.
831
+ # @param vm_scale_set_name [String] The name of the VM scale set.
832
+ # @param instance_id [String] The instance ID of the virtual machine.
833
+ # @param vm_scale_set_vmreimage_input
834
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
835
+ # Virtual machine in ScaleSet.
836
+ # @param [Hash{String => String}] A hash of custom headers that will be added
837
+ # to the HTTP request.
838
+ #
839
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
840
+ #
841
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
842
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
843
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
844
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
845
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
846
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
847
+
848
+
849
+ request_headers = {}
850
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
851
+
852
+ # Set Headers
853
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
854
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
855
+
856
+ # Serialize Request
857
+ request_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVMReimageParameters.mapper()
858
+ request_content = @client.serialize(request_mapper, vm_scale_set_vmreimage_input)
859
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
860
+
861
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'
862
+
863
+ request_url = @base_url || @client.base_url
864
+
865
+ options = {
866
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
867
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
868
+ query_params: {'api-version' => @client.api_version},
869
+ body: request_content,
870
+ headers: request_headers.merge(custom_headers || {}),
871
+ base_url: request_url
872
+ }
873
+ promise = @client.make_request_async(:post, path_template, options)
874
+
875
+ promise = promise.then do |result|
876
+ http_response = result.response
877
+ status_code = http_response.status
878
+ response_content = http_response.body
879
+ unless status_code == 200 || status_code == 202
880
+ error_model = JSON.load(response_content)
881
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
882
+ end
883
+
884
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
885
+
886
+ result
887
+ end
888
+
889
+ promise.execute
890
+ end
891
+
892
+ #
893
+ # Allows you to re-image all the disks ( including data disks ) in the a VM
894
+ # scale set instance. This operation is only supported for managed disks.
895
+ #
896
+ # @param resource_group_name [String] The name of the resource group.
897
+ # @param vm_scale_set_name [String] The name of the VM scale set.
898
+ # @param instance_id [String] The instance ID of the virtual machine.
899
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
900
+ # will be added to the HTTP request.
901
+ #
902
+ #
903
+ def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
904
+ response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
905
+ nil
906
+ end
907
+
908
+ #
909
+ # Allows you to re-image all the disks ( including data disks ) in the a VM
910
+ # scale set instance. This operation is only supported for managed disks.
911
+ #
912
+ # @param resource_group_name [String] The name of the resource group.
913
+ # @param vm_scale_set_name [String] The name of the VM scale set.
914
+ # @param instance_id [String] The instance ID of the virtual machine.
915
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
916
+ # will be added to the HTTP request.
917
+ #
918
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
919
+ #
920
+ def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
921
+ begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
922
+ end
923
+
924
+ #
925
+ # Allows you to re-image all the disks ( including data disks ) in the a VM
926
+ # scale set instance. This operation is only supported for managed disks.
927
+ #
928
+ # @param resource_group_name [String] The name of the resource group.
929
+ # @param vm_scale_set_name [String] The name of the VM scale set.
930
+ # @param instance_id [String] The instance ID of the virtual machine.
931
+ # @param [Hash{String => String}] A hash of custom headers that will be added
932
+ # to the HTTP request.
933
+ #
934
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
935
+ #
936
+ def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
937
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
938
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
939
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
940
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
941
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
942
+
943
+
944
+ request_headers = {}
945
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
946
+
947
+ # Set Headers
948
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
949
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
950
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall'
951
+
952
+ request_url = @base_url || @client.base_url
953
+
954
+ options = {
955
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
956
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
957
+ query_params: {'api-version' => @client.api_version},
958
+ headers: request_headers.merge(custom_headers || {}),
959
+ base_url: request_url
960
+ }
961
+ promise = @client.make_request_async(:post, path_template, options)
962
+
963
+ promise = promise.then do |result|
964
+ http_response = result.response
965
+ status_code = http_response.status
966
+ response_content = http_response.body
967
+ unless status_code == 200 || status_code == 202
968
+ error_model = JSON.load(response_content)
969
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
970
+ end
971
+
972
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
973
+
974
+ result
975
+ end
976
+
977
+ promise.execute
978
+ end
979
+
980
+ #
981
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
982
+ # virtual machine and releases the compute resources it uses. You are not
983
+ # billed for the compute resources of this virtual machine once it is
984
+ # deallocated.
985
+ #
986
+ # @param resource_group_name [String] The name of the resource group.
987
+ # @param vm_scale_set_name [String] The name of the VM scale set.
988
+ # @param instance_id [String] The instance ID of the virtual machine.
989
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
990
+ # will be added to the HTTP request.
991
+ #
992
+ #
993
+ def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
994
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
995
+ nil
996
+ end
997
+
998
+ #
999
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
1000
+ # virtual machine and releases the compute resources it uses. You are not
1001
+ # billed for the compute resources of this virtual machine once it is
1002
+ # deallocated.
1003
+ #
1004
+ # @param resource_group_name [String] The name of the resource group.
1005
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1006
+ # @param instance_id [String] The instance ID of the virtual machine.
1007
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1008
+ # will be added to the HTTP request.
1009
+ #
1010
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1011
+ #
1012
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1013
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1014
+ end
1015
+
1016
+ #
1017
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
1018
+ # virtual machine and releases the compute resources it uses. You are not
1019
+ # billed for the compute resources of this virtual machine once it is
1020
+ # deallocated.
1021
+ #
1022
+ # @param resource_group_name [String] The name of the resource group.
1023
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1024
+ # @param instance_id [String] The instance ID of the virtual machine.
1025
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1026
+ # to the HTTP request.
1027
+ #
1028
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1029
+ #
1030
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1031
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1032
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1033
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1034
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1035
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1036
+
1037
+
1038
+ request_headers = {}
1039
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1040
+
1041
+ # Set Headers
1042
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1043
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1044
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'
1045
+
1046
+ request_url = @base_url || @client.base_url
1047
+
1048
+ options = {
1049
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1050
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1051
+ query_params: {'api-version' => @client.api_version},
1052
+ headers: request_headers.merge(custom_headers || {}),
1053
+ base_url: request_url
1054
+ }
1055
+ promise = @client.make_request_async(:post, path_template, options)
1056
+
1057
+ promise = promise.then do |result|
1058
+ http_response = result.response
1059
+ status_code = http_response.status
1060
+ response_content = http_response.body
1061
+ unless status_code == 200 || status_code == 202
1062
+ error_model = JSON.load(response_content)
1063
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1064
+ end
1065
+
1066
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1067
+
1068
+ result
1069
+ end
1070
+
1071
+ promise.execute
1072
+ end
1073
+
1074
+ #
1075
+ # Updates a virtual machine of a VM scale set.
1076
+ #
1077
+ # @param resource_group_name [String] The name of the resource group.
1078
+ # @param vm_scale_set_name [String] The name of the VM scale set where the
1079
+ # extension should be create or updated.
1080
+ # @param instance_id [String] The instance ID of the virtual machine.
1081
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
1082
+ # Update Virtual Machine Scale Sets VM operation.
1083
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1084
+ # will be added to the HTTP request.
1085
+ #
1086
+ # @return [VirtualMachineScaleSetVM] operation results.
1087
+ #
1088
+ def begin_update(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1089
+ response = begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
1090
+ response.body unless response.nil?
1091
+ end
1092
+
1093
+ #
1094
+ # Updates a virtual machine of 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 where the
1098
+ # extension should be create or updated.
1099
+ # @param instance_id [String] The instance ID of the virtual machine.
1100
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
1101
+ # Update Virtual Machine Scale Sets VM operation.
1102
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1103
+ # will be added to the HTTP request.
1104
+ #
1105
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1106
+ #
1107
+ def begin_update_with_http_info(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1108
+ begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
1109
+ end
1110
+
1111
+ #
1112
+ # Updates a virtual machine of a VM scale set.
1113
+ #
1114
+ # @param resource_group_name [String] The name of the resource group.
1115
+ # @param vm_scale_set_name [String] The name of the VM scale set where the
1116
+ # extension should be create or updated.
1117
+ # @param instance_id [String] The instance ID of the virtual machine.
1118
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
1119
+ # Update Virtual Machine Scale Sets VM operation.
1120
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1121
+ # to the HTTP request.
1122
+ #
1123
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1124
+ #
1125
+ def begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1126
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1127
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1128
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1129
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1130
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1131
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1132
+
1133
+
1134
+ request_headers = {}
1135
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1136
+
1137
+ # Set Headers
1138
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1139
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1140
+
1141
+ # Serialize Request
1142
+ request_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVM.mapper()
1143
+ request_content = @client.serialize(request_mapper, parameters)
1144
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1145
+
1146
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
1147
+
1148
+ request_url = @base_url || @client.base_url
1149
+
1150
+ options = {
1151
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1152
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1153
+ query_params: {'api-version' => @client.api_version},
1154
+ body: request_content,
1155
+ headers: request_headers.merge(custom_headers || {}),
1156
+ base_url: request_url
1157
+ }
1158
+ promise = @client.make_request_async(:put, path_template, options)
1159
+
1160
+ promise = promise.then do |result|
1161
+ http_response = result.response
1162
+ status_code = http_response.status
1163
+ response_content = http_response.body
1164
+ unless status_code == 200 || status_code == 202
1165
+ error_model = JSON.load(response_content)
1166
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1167
+ end
1168
+
1169
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1170
+ # Deserialize Response
1171
+ if status_code == 200
1172
+ begin
1173
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1174
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVM.mapper()
1175
+ result.body = @client.deserialize(result_mapper, parsed_response)
1176
+ rescue Exception => e
1177
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1178
+ end
1179
+ end
1180
+ # Deserialize Response
1181
+ if status_code == 202
1182
+ begin
1183
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1184
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVM.mapper()
1185
+ result.body = @client.deserialize(result_mapper, parsed_response)
1186
+ rescue Exception => e
1187
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1188
+ end
1189
+ end
1190
+
1191
+ result
1192
+ end
1193
+
1194
+ promise.execute
1195
+ end
1196
+
1197
+ #
1198
+ # Deletes a virtual machine from a VM scale set.
1199
+ #
1200
+ # @param resource_group_name [String] The name of the resource group.
1201
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1202
+ # @param instance_id [String] The instance ID of the virtual machine.
1203
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1204
+ # will be added to the HTTP request.
1205
+ #
1206
+ #
1207
+ def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1208
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1209
+ nil
1210
+ end
1211
+
1212
+ #
1213
+ # Deletes a virtual machine from a VM scale set.
1214
+ #
1215
+ # @param resource_group_name [String] The name of the resource group.
1216
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1217
+ # @param instance_id [String] The instance ID of the virtual machine.
1218
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1219
+ # will be added to the HTTP request.
1220
+ #
1221
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1222
+ #
1223
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1224
+ begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1225
+ end
1226
+
1227
+ #
1228
+ # Deletes a virtual machine from a VM scale set.
1229
+ #
1230
+ # @param resource_group_name [String] The name of the resource group.
1231
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1232
+ # @param instance_id [String] The instance ID of the virtual machine.
1233
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1234
+ # to the HTTP request.
1235
+ #
1236
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1237
+ #
1238
+ def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1239
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1240
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1241
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1242
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1243
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1244
+
1245
+
1246
+ request_headers = {}
1247
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1248
+
1249
+ # Set Headers
1250
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1251
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1252
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
1253
+
1254
+ request_url = @base_url || @client.base_url
1255
+
1256
+ options = {
1257
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1258
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1259
+ query_params: {'api-version' => @client.api_version},
1260
+ headers: request_headers.merge(custom_headers || {}),
1261
+ base_url: request_url
1262
+ }
1263
+ promise = @client.make_request_async(:delete, path_template, options)
1264
+
1265
+ promise = promise.then do |result|
1266
+ http_response = result.response
1267
+ status_code = http_response.status
1268
+ response_content = http_response.body
1269
+ unless status_code == 200 || status_code == 202 || status_code == 204
1270
+ error_model = JSON.load(response_content)
1271
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1272
+ end
1273
+
1274
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1275
+
1276
+ result
1277
+ end
1278
+
1279
+ promise.execute
1280
+ end
1281
+
1282
+ #
1283
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
1284
+ # still attached and you are getting charged for the resources. Instead, use
1285
+ # deallocate to release resources and avoid charges.
1286
+ #
1287
+ # @param resource_group_name [String] The name of the resource group.
1288
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1289
+ # @param instance_id [String] The instance ID of the virtual machine.
1290
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1291
+ # will be added to the HTTP request.
1292
+ #
1293
+ #
1294
+ def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1295
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1296
+ nil
1297
+ end
1298
+
1299
+ #
1300
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
1301
+ # still attached and you are getting charged for the resources. Instead, use
1302
+ # deallocate to release resources and avoid charges.
1303
+ #
1304
+ # @param resource_group_name [String] The name of the resource group.
1305
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1306
+ # @param instance_id [String] The instance ID of the virtual machine.
1307
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1308
+ # will be added to the HTTP request.
1309
+ #
1310
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1311
+ #
1312
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1313
+ begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1314
+ end
1315
+
1316
+ #
1317
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
1318
+ # still attached and you are getting charged for the resources. Instead, use
1319
+ # deallocate to release resources and avoid charges.
1320
+ #
1321
+ # @param resource_group_name [String] The name of the resource group.
1322
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1323
+ # @param instance_id [String] The instance ID of the virtual machine.
1324
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1325
+ # to the HTTP request.
1326
+ #
1327
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1328
+ #
1329
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1330
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1331
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1332
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1333
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1334
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1335
+
1336
+
1337
+ request_headers = {}
1338
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1339
+
1340
+ # Set Headers
1341
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1342
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1343
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'
1344
+
1345
+ request_url = @base_url || @client.base_url
1346
+
1347
+ options = {
1348
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1349
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1350
+ query_params: {'api-version' => @client.api_version},
1351
+ headers: request_headers.merge(custom_headers || {}),
1352
+ base_url: request_url
1353
+ }
1354
+ promise = @client.make_request_async(:post, path_template, options)
1355
+
1356
+ promise = promise.then do |result|
1357
+ http_response = result.response
1358
+ status_code = http_response.status
1359
+ response_content = http_response.body
1360
+ unless status_code == 200 || status_code == 202
1361
+ error_model = JSON.load(response_content)
1362
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1363
+ end
1364
+
1365
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1366
+
1367
+ result
1368
+ end
1369
+
1370
+ promise.execute
1371
+ end
1372
+
1373
+ #
1374
+ # Restarts a virtual machine in a VM scale set.
1375
+ #
1376
+ # @param resource_group_name [String] The name of the resource group.
1377
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1378
+ # @param instance_id [String] The instance ID of the virtual machine.
1379
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1380
+ # will be added to the HTTP request.
1381
+ #
1382
+ #
1383
+ def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1384
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1385
+ nil
1386
+ end
1387
+
1388
+ #
1389
+ # Restarts a virtual machine in a VM scale set.
1390
+ #
1391
+ # @param resource_group_name [String] The name of the resource group.
1392
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1393
+ # @param instance_id [String] The instance ID of the virtual machine.
1394
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1395
+ # will be added to the HTTP request.
1396
+ #
1397
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1398
+ #
1399
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1400
+ begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1401
+ end
1402
+
1403
+ #
1404
+ # Restarts a virtual machine in a VM scale set.
1405
+ #
1406
+ # @param resource_group_name [String] The name of the resource group.
1407
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1408
+ # @param instance_id [String] The instance ID of the virtual machine.
1409
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1410
+ # to the HTTP request.
1411
+ #
1412
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1413
+ #
1414
+ def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1415
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1416
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1417
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1418
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1419
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1420
+
1421
+
1422
+ request_headers = {}
1423
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1424
+
1425
+ # Set Headers
1426
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1427
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1428
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'
1429
+
1430
+ request_url = @base_url || @client.base_url
1431
+
1432
+ options = {
1433
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1434
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1435
+ query_params: {'api-version' => @client.api_version},
1436
+ headers: request_headers.merge(custom_headers || {}),
1437
+ base_url: request_url
1438
+ }
1439
+ promise = @client.make_request_async(:post, path_template, options)
1440
+
1441
+ promise = promise.then do |result|
1442
+ http_response = result.response
1443
+ status_code = http_response.status
1444
+ response_content = http_response.body
1445
+ unless status_code == 200 || status_code == 202
1446
+ error_model = JSON.load(response_content)
1447
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1448
+ end
1449
+
1450
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1451
+
1452
+ result
1453
+ end
1454
+
1455
+ promise.execute
1456
+ end
1457
+
1458
+ #
1459
+ # Starts a virtual machine in a VM scale set.
1460
+ #
1461
+ # @param resource_group_name [String] The name of the resource group.
1462
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1463
+ # @param instance_id [String] The instance ID of the virtual machine.
1464
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1465
+ # will be added to the HTTP request.
1466
+ #
1467
+ #
1468
+ def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1469
+ response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1470
+ nil
1471
+ end
1472
+
1473
+ #
1474
+ # Starts a virtual machine in a VM scale set.
1475
+ #
1476
+ # @param resource_group_name [String] The name of the resource group.
1477
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1478
+ # @param instance_id [String] The instance ID of the virtual machine.
1479
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1480
+ # will be added to the HTTP request.
1481
+ #
1482
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1483
+ #
1484
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1485
+ begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1486
+ end
1487
+
1488
+ #
1489
+ # Starts a virtual machine in a VM scale set.
1490
+ #
1491
+ # @param resource_group_name [String] The name of the resource group.
1492
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1493
+ # @param instance_id [String] The instance ID of the virtual machine.
1494
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1495
+ # to the HTTP request.
1496
+ #
1497
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1498
+ #
1499
+ def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1500
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1501
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1502
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1503
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1504
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1505
+
1506
+
1507
+ request_headers = {}
1508
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1509
+
1510
+ # Set Headers
1511
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1512
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1513
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'
1514
+
1515
+ request_url = @base_url || @client.base_url
1516
+
1517
+ options = {
1518
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1519
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1520
+ query_params: {'api-version' => @client.api_version},
1521
+ headers: request_headers.merge(custom_headers || {}),
1522
+ base_url: request_url
1523
+ }
1524
+ promise = @client.make_request_async(:post, path_template, options)
1525
+
1526
+ promise = promise.then do |result|
1527
+ http_response = result.response
1528
+ status_code = http_response.status
1529
+ response_content = http_response.body
1530
+ unless status_code == 200 || status_code == 202
1531
+ error_model = JSON.load(response_content)
1532
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1533
+ end
1534
+
1535
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1536
+
1537
+ result
1538
+ end
1539
+
1540
+ promise.execute
1541
+ end
1542
+
1543
+ #
1544
+ # Redeploys a virtual machine in a VM scale set.
1545
+ #
1546
+ # @param resource_group_name [String] The name of the resource group.
1547
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1548
+ # @param instance_id [String] The instance ID of the virtual machine.
1549
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1550
+ # will be added to the HTTP request.
1551
+ #
1552
+ #
1553
+ def begin_redeploy(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1554
+ response = begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1555
+ nil
1556
+ end
1557
+
1558
+ #
1559
+ # Redeploys a virtual machine in a VM scale set.
1560
+ #
1561
+ # @param resource_group_name [String] The name of the resource group.
1562
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1563
+ # @param instance_id [String] The instance ID of the virtual machine.
1564
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1565
+ # will be added to the HTTP request.
1566
+ #
1567
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1568
+ #
1569
+ def begin_redeploy_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1570
+ begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1571
+ end
1572
+
1573
+ #
1574
+ # Redeploys a virtual machine in a VM scale set.
1575
+ #
1576
+ # @param resource_group_name [String] The name of the resource group.
1577
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1578
+ # @param instance_id [String] The instance ID of the virtual machine.
1579
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1580
+ # to the HTTP request.
1581
+ #
1582
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1583
+ #
1584
+ def begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1585
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1586
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1587
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1588
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1589
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1590
+
1591
+
1592
+ request_headers = {}
1593
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1594
+
1595
+ # Set Headers
1596
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1597
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1598
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy'
1599
+
1600
+ request_url = @base_url || @client.base_url
1601
+
1602
+ options = {
1603
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1604
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1605
+ query_params: {'api-version' => @client.api_version},
1606
+ headers: request_headers.merge(custom_headers || {}),
1607
+ base_url: request_url
1608
+ }
1609
+ promise = @client.make_request_async(:post, path_template, options)
1610
+
1611
+ promise = promise.then do |result|
1612
+ http_response = result.response
1613
+ status_code = http_response.status
1614
+ response_content = http_response.body
1615
+ unless status_code == 200 || status_code == 202
1616
+ error_model = JSON.load(response_content)
1617
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1618
+ end
1619
+
1620
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1621
+
1622
+ result
1623
+ end
1624
+
1625
+ promise.execute
1626
+ end
1627
+
1628
+ #
1629
+ # Performs maintenance on a virtual machine in a VM scale set.
1630
+ #
1631
+ # @param resource_group_name [String] The name of the resource group.
1632
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1633
+ # @param instance_id [String] The instance ID of the virtual machine.
1634
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1635
+ # will be added to the HTTP request.
1636
+ #
1637
+ #
1638
+ def begin_perform_maintenance(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1639
+ response = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1640
+ nil
1641
+ end
1642
+
1643
+ #
1644
+ # Performs maintenance on a virtual machine in a VM scale set.
1645
+ #
1646
+ # @param resource_group_name [String] The name of the resource group.
1647
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1648
+ # @param instance_id [String] The instance ID of the virtual machine.
1649
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1650
+ # will be added to the HTTP request.
1651
+ #
1652
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1653
+ #
1654
+ def begin_perform_maintenance_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1655
+ begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1656
+ end
1657
+
1658
+ #
1659
+ # Performs maintenance on a virtual machine in a VM scale set.
1660
+ #
1661
+ # @param resource_group_name [String] The name of the resource group.
1662
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1663
+ # @param instance_id [String] The instance ID of the virtual machine.
1664
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1665
+ # to the HTTP request.
1666
+ #
1667
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1668
+ #
1669
+ def begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1670
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1671
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1672
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1673
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1674
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1675
+
1676
+
1677
+ request_headers = {}
1678
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1679
+
1680
+ # Set Headers
1681
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1682
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1683
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance'
1684
+
1685
+ request_url = @base_url || @client.base_url
1686
+
1687
+ options = {
1688
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1689
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1690
+ query_params: {'api-version' => @client.api_version},
1691
+ headers: request_headers.merge(custom_headers || {}),
1692
+ base_url: request_url
1693
+ }
1694
+ promise = @client.make_request_async(:post, path_template, options)
1695
+
1696
+ promise = promise.then do |result|
1697
+ http_response = result.response
1698
+ status_code = http_response.status
1699
+ response_content = http_response.body
1700
+ unless status_code == 200 || status_code == 202
1701
+ error_model = JSON.load(response_content)
1702
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1703
+ end
1704
+
1705
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1706
+
1707
+ result
1708
+ end
1709
+
1710
+ promise.execute
1711
+ end
1712
+
1713
+ #
1714
+ # Run command on a virtual machine in a VM scale set.
1715
+ #
1716
+ # @param resource_group_name [String] The name of the resource group.
1717
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1718
+ # @param instance_id [String] The instance ID of the virtual machine.
1719
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
1720
+ # operation.
1721
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1722
+ # will be added to the HTTP request.
1723
+ #
1724
+ # @return [RunCommandResult] operation results.
1725
+ #
1726
+ def begin_run_command(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1727
+ response = begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
1728
+ response.body unless response.nil?
1729
+ end
1730
+
1731
+ #
1732
+ # Run command on a virtual machine in a VM scale set.
1733
+ #
1734
+ # @param resource_group_name [String] The name of the resource group.
1735
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1736
+ # @param instance_id [String] The instance ID of the virtual machine.
1737
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
1738
+ # operation.
1739
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1740
+ # will be added to the HTTP request.
1741
+ #
1742
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1743
+ #
1744
+ def begin_run_command_with_http_info(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1745
+ begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
1746
+ end
1747
+
1748
+ #
1749
+ # Run command on a virtual machine in a VM scale set.
1750
+ #
1751
+ # @param resource_group_name [String] The name of the resource group.
1752
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1753
+ # @param instance_id [String] The instance ID of the virtual machine.
1754
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
1755
+ # operation.
1756
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1757
+ # to the HTTP request.
1758
+ #
1759
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1760
+ #
1761
+ def begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1762
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1763
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1764
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1765
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1766
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1767
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1768
+
1769
+
1770
+ request_headers = {}
1771
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1772
+
1773
+ # Set Headers
1774
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1775
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1776
+
1777
+ # Serialize Request
1778
+ request_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::RunCommandInput.mapper()
1779
+ request_content = @client.serialize(request_mapper, parameters)
1780
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1781
+
1782
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand'
1783
+
1784
+ request_url = @base_url || @client.base_url
1785
+
1786
+ options = {
1787
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1788
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1789
+ query_params: {'api-version' => @client.api_version},
1790
+ body: request_content,
1791
+ headers: request_headers.merge(custom_headers || {}),
1792
+ base_url: request_url
1793
+ }
1794
+ promise = @client.make_request_async(:post, path_template, options)
1795
+
1796
+ promise = promise.then do |result|
1797
+ http_response = result.response
1798
+ status_code = http_response.status
1799
+ response_content = http_response.body
1800
+ unless status_code == 200 || status_code == 202
1801
+ error_model = JSON.load(response_content)
1802
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1803
+ end
1804
+
1805
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1806
+ # Deserialize Response
1807
+ if status_code == 200
1808
+ begin
1809
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1810
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::RunCommandResult.mapper()
1811
+ result.body = @client.deserialize(result_mapper, parsed_response)
1812
+ rescue Exception => e
1813
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1814
+ end
1815
+ end
1816
+
1817
+ result
1818
+ end
1819
+
1820
+ promise.execute
1821
+ end
1822
+
1823
+ #
1824
+ # Gets a list of all virtual machines in a VM scale sets.
1825
+ #
1826
+ # @param next_page_link [String] The NextLink from the previous successful call
1827
+ # to List operation.
1828
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1829
+ # will be added to the HTTP request.
1830
+ #
1831
+ # @return [VirtualMachineScaleSetVMListResult] operation results.
1832
+ #
1833
+ def list_next(next_page_link, custom_headers:nil)
1834
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1835
+ response.body unless response.nil?
1836
+ end
1837
+
1838
+ #
1839
+ # Gets a list of all virtual machines in a VM scale sets.
1840
+ #
1841
+ # @param next_page_link [String] The NextLink from the previous successful call
1842
+ # to List operation.
1843
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1844
+ # will be added to the HTTP request.
1845
+ #
1846
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1847
+ #
1848
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1849
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1850
+ end
1851
+
1852
+ #
1853
+ # Gets a list of all virtual machines in a VM scale sets.
1854
+ #
1855
+ # @param next_page_link [String] The NextLink from the previous successful call
1856
+ # to List operation.
1857
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1858
+ # to the HTTP request.
1859
+ #
1860
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1861
+ #
1862
+ def list_next_async(next_page_link, custom_headers:nil)
1863
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1864
+
1865
+
1866
+ request_headers = {}
1867
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1868
+
1869
+ # Set Headers
1870
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1871
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1872
+ path_template = '{nextLink}'
1873
+
1874
+ request_url = @base_url || @client.base_url
1875
+
1876
+ options = {
1877
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1878
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1879
+ headers: request_headers.merge(custom_headers || {}),
1880
+ base_url: request_url
1881
+ }
1882
+ promise = @client.make_request_async(:get, path_template, options)
1883
+
1884
+ promise = promise.then do |result|
1885
+ http_response = result.response
1886
+ status_code = http_response.status
1887
+ response_content = http_response.body
1888
+ unless status_code == 200
1889
+ error_model = JSON.load(response_content)
1890
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1891
+ end
1892
+
1893
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1894
+ # Deserialize Response
1895
+ if status_code == 200
1896
+ begin
1897
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1898
+ result_mapper = Azure::Compute::Mgmt::V2018_10_01::Models::VirtualMachineScaleSetVMListResult.mapper()
1899
+ result.body = @client.deserialize(result_mapper, parsed_response)
1900
+ rescue Exception => e
1901
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1902
+ end
1903
+ end
1904
+
1905
+ result
1906
+ end
1907
+
1908
+ promise.execute
1909
+ end
1910
+
1911
+ #
1912
+ # Gets a list of all virtual machines in a VM scale sets.
1913
+ #
1914
+ # @param resource_group_name [String] The name of the resource group.
1915
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
1916
+ # @param filter [String] The filter to apply to the operation.
1917
+ # @param select [String] The list parameters.
1918
+ # @param expand [String] The expand expression to apply to the operation.
1919
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1920
+ # will be added to the HTTP request.
1921
+ #
1922
+ # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
1923
+ # pages of the response.
1924
+ #
1925
+ def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
1926
+ response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
1927
+ unless response.nil?
1928
+ page = response.body
1929
+ page.next_method = Proc.new do |next_page_link|
1930
+ list_next_async(next_page_link, custom_headers:custom_headers)
1931
+ end
1932
+ page
1933
+ end
1934
+ end
1935
+
1936
+ end
1937
+ end