azure_mgmt_compute 0.18.7 → 0.20.0

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