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,2220 @@
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::V2020_06_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::V2020_06_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::V2020_06_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::V2020_06_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::V2020_06_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
+ # The operation to retrieve SAS URIs of boot diagnostic logs for a virtual
738
+ # machine in a VM scale set.
739
+ #
740
+ # @param resource_group_name [String] The name of the resource group.
741
+ # @param vm_scale_set_name [String] The name of the VM scale set.
742
+ # @param instance_id [String] The instance ID of the virtual machine.
743
+ # @param sas_uri_expiration_time_in_minutes [Integer] Expiration duration in
744
+ # minutes for the SAS URIs with a value between 1 to 1440 minutes.
745
+ # <br><br>NOTE: If not specified, SAS URIs will be generated with a default
746
+ # expiration duration of 120 minutes.
747
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
748
+ # will be added to the HTTP request.
749
+ #
750
+ # @return [RetrieveBootDiagnosticsDataResult] operation results.
751
+ #
752
+ def retrieve_boot_diagnostics_data(resource_group_name, vm_scale_set_name, instance_id, sas_uri_expiration_time_in_minutes:nil, custom_headers:nil)
753
+ response = retrieve_boot_diagnostics_data_async(resource_group_name, vm_scale_set_name, instance_id, sas_uri_expiration_time_in_minutes:sas_uri_expiration_time_in_minutes, custom_headers:custom_headers).value!
754
+ response.body unless response.nil?
755
+ end
756
+
757
+ #
758
+ # The operation to retrieve SAS URIs of boot diagnostic logs for a virtual
759
+ # machine in a VM scale set.
760
+ #
761
+ # @param resource_group_name [String] The name of the resource group.
762
+ # @param vm_scale_set_name [String] The name of the VM scale set.
763
+ # @param instance_id [String] The instance ID of the virtual machine.
764
+ # @param sas_uri_expiration_time_in_minutes [Integer] Expiration duration in
765
+ # minutes for the SAS URIs with a value between 1 to 1440 minutes.
766
+ # <br><br>NOTE: If not specified, SAS URIs will be generated with a default
767
+ # expiration duration of 120 minutes.
768
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
769
+ # will be added to the HTTP request.
770
+ #
771
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
772
+ #
773
+ def retrieve_boot_diagnostics_data_with_http_info(resource_group_name, vm_scale_set_name, instance_id, sas_uri_expiration_time_in_minutes:nil, custom_headers:nil)
774
+ retrieve_boot_diagnostics_data_async(resource_group_name, vm_scale_set_name, instance_id, sas_uri_expiration_time_in_minutes:sas_uri_expiration_time_in_minutes, custom_headers:custom_headers).value!
775
+ end
776
+
777
+ #
778
+ # The operation to retrieve SAS URIs of boot diagnostic logs for a virtual
779
+ # machine in a VM scale set.
780
+ #
781
+ # @param resource_group_name [String] The name of the resource group.
782
+ # @param vm_scale_set_name [String] The name of the VM scale set.
783
+ # @param instance_id [String] The instance ID of the virtual machine.
784
+ # @param sas_uri_expiration_time_in_minutes [Integer] Expiration duration in
785
+ # minutes for the SAS URIs with a value between 1 to 1440 minutes.
786
+ # <br><br>NOTE: If not specified, SAS URIs will be generated with a default
787
+ # expiration duration of 120 minutes.
788
+ # @param [Hash{String => String}] A hash of custom headers that will be added
789
+ # to the HTTP request.
790
+ #
791
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
792
+ #
793
+ def retrieve_boot_diagnostics_data_async(resource_group_name, vm_scale_set_name, instance_id, sas_uri_expiration_time_in_minutes:nil, custom_headers:nil)
794
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
795
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
796
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
797
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
798
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
799
+
800
+
801
+ request_headers = {}
802
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
803
+
804
+ # Set Headers
805
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
806
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
807
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData'
808
+
809
+ request_url = @base_url || @client.base_url
810
+
811
+ options = {
812
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
813
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
814
+ query_params: {'sasUriExpirationTimeInMinutes' => sas_uri_expiration_time_in_minutes,'api-version' => @client.api_version},
815
+ headers: request_headers.merge(custom_headers || {}),
816
+ base_url: request_url
817
+ }
818
+ promise = @client.make_request_async(:post, path_template, options)
819
+
820
+ promise = promise.then do |result|
821
+ http_response = result.response
822
+ status_code = http_response.status
823
+ response_content = http_response.body
824
+ unless status_code == 200
825
+ error_model = JSON.load(response_content)
826
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
827
+ end
828
+
829
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
830
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
831
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
832
+ # Deserialize Response
833
+ if status_code == 200
834
+ begin
835
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
836
+ result_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::RetrieveBootDiagnosticsDataResult.mapper()
837
+ result.body = @client.deserialize(result_mapper, parsed_response)
838
+ rescue Exception => e
839
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
840
+ end
841
+ end
842
+
843
+ result
844
+ end
845
+
846
+ promise.execute
847
+ end
848
+
849
+ #
850
+ # Performs maintenance on a virtual machine in a VM scale set.
851
+ #
852
+ # @param resource_group_name [String] The name of the resource group.
853
+ # @param vm_scale_set_name [String] The name of the VM scale set.
854
+ # @param instance_id [String] The instance ID of the virtual machine.
855
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
856
+ # will be added to the HTTP request.
857
+ #
858
+ def perform_maintenance(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
859
+ response = perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
860
+ nil
861
+ end
862
+
863
+ #
864
+ # @param resource_group_name [String] The name of the resource group.
865
+ # @param vm_scale_set_name [String] The name of the VM scale set.
866
+ # @param instance_id [String] The instance ID of the virtual machine.
867
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
868
+ # will be added to the HTTP request.
869
+ #
870
+ # @return [Concurrent::Promise] promise which provides async access to http
871
+ # response.
872
+ #
873
+ def perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
874
+ # Send request
875
+ promise = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
876
+
877
+ promise = promise.then do |response|
878
+ # Defining deserialization method.
879
+ deserialize_method = lambda do |parsed_response|
880
+ end
881
+
882
+ # Waiting for response.
883
+ @client.get_long_running_operation_result(response, deserialize_method)
884
+ end
885
+
886
+ promise
887
+ end
888
+
889
+ #
890
+ # The operation to simulate the eviction of spot virtual machine in a VM scale
891
+ # set.
892
+ #
893
+ # @param resource_group_name [String] The name of the resource group.
894
+ # @param vm_scale_set_name [String] The name of the VM scale set.
895
+ # @param instance_id [String] The instance ID of the virtual machine.
896
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
897
+ # will be added to the HTTP request.
898
+ #
899
+ #
900
+ def simulate_eviction(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
901
+ response = simulate_eviction_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
902
+ nil
903
+ end
904
+
905
+ #
906
+ # The operation to simulate the eviction of spot virtual machine in a VM scale
907
+ # set.
908
+ #
909
+ # @param resource_group_name [String] The name of the resource group.
910
+ # @param vm_scale_set_name [String] The name of the VM scale set.
911
+ # @param instance_id [String] The instance ID of the virtual machine.
912
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
913
+ # will be added to the HTTP request.
914
+ #
915
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
916
+ #
917
+ def simulate_eviction_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
918
+ simulate_eviction_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
919
+ end
920
+
921
+ #
922
+ # The operation to simulate the eviction of spot virtual machine in a VM scale
923
+ # set.
924
+ #
925
+ # @param resource_group_name [String] The name of the resource group.
926
+ # @param vm_scale_set_name [String] The name of the VM scale set.
927
+ # @param instance_id [String] The instance ID of the virtual machine.
928
+ # @param [Hash{String => String}] A hash of custom headers that will be added
929
+ # to the HTTP request.
930
+ #
931
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
932
+ #
933
+ def simulate_eviction_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
934
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
935
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
936
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
937
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
938
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
939
+
940
+
941
+ request_headers = {}
942
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
943
+
944
+ # Set Headers
945
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
946
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
947
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction'
948
+
949
+ request_url = @base_url || @client.base_url
950
+
951
+ options = {
952
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
953
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
954
+ query_params: {'api-version' => @client.api_version},
955
+ headers: request_headers.merge(custom_headers || {}),
956
+ base_url: request_url
957
+ }
958
+ promise = @client.make_request_async(:post, path_template, options)
959
+
960
+ promise = promise.then do |result|
961
+ http_response = result.response
962
+ status_code = http_response.status
963
+ response_content = http_response.body
964
+ unless status_code == 204
965
+ error_model = JSON.load(response_content)
966
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
967
+ end
968
+
969
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
970
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
971
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
972
+
973
+ result
974
+ end
975
+
976
+ promise.execute
977
+ end
978
+
979
+ #
980
+ # Run command on a virtual machine in a VM scale set.
981
+ #
982
+ # @param resource_group_name [String] The name of the resource group.
983
+ # @param vm_scale_set_name [String] The name of the VM scale set.
984
+ # @param instance_id [String] The instance ID of the virtual machine.
985
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
986
+ # operation.
987
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
988
+ # will be added to the HTTP request.
989
+ #
990
+ # @return [RunCommandResult] operation results.
991
+ #
992
+ def run_command(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
993
+ response = run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
994
+ response.body unless response.nil?
995
+ end
996
+
997
+ #
998
+ # @param resource_group_name [String] The name of the resource group.
999
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1000
+ # @param instance_id [String] The instance ID of the virtual machine.
1001
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
1002
+ # operation.
1003
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1004
+ # will be added to the HTTP request.
1005
+ #
1006
+ # @return [Concurrent::Promise] promise which provides async access to http
1007
+ # response.
1008
+ #
1009
+ def run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1010
+ # Send request
1011
+ promise = begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers)
1012
+
1013
+ promise = promise.then do |response|
1014
+ # Defining deserialization method.
1015
+ deserialize_method = lambda do |parsed_response|
1016
+ result_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::RunCommandResult.mapper()
1017
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1018
+ end
1019
+
1020
+ # Waiting for response.
1021
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1022
+ end
1023
+
1024
+ promise
1025
+ end
1026
+
1027
+ #
1028
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
1029
+ # scale set.
1030
+ #
1031
+ # @param resource_group_name [String] The name of the resource group.
1032
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1033
+ # @param instance_id [String] The instance ID of the virtual machine.
1034
+ # @param vm_scale_set_vmreimage_input
1035
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
1036
+ # Virtual machine in ScaleSet.
1037
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1038
+ # will be added to the HTTP request.
1039
+ #
1040
+ #
1041
+ def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
1042
+ 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!
1043
+ nil
1044
+ end
1045
+
1046
+ #
1047
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
1048
+ # scale set.
1049
+ #
1050
+ # @param resource_group_name [String] The name of the resource group.
1051
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1052
+ # @param instance_id [String] The instance ID of the virtual machine.
1053
+ # @param vm_scale_set_vmreimage_input
1054
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
1055
+ # Virtual machine in ScaleSet.
1056
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1057
+ # will be added to the HTTP request.
1058
+ #
1059
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1060
+ #
1061
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
1062
+ 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!
1063
+ end
1064
+
1065
+ #
1066
+ # Reimages (upgrade the operating system) a specific virtual machine in a VM
1067
+ # scale set.
1068
+ #
1069
+ # @param resource_group_name [String] The name of the resource group.
1070
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1071
+ # @param instance_id [String] The instance ID of the virtual machine.
1072
+ # @param vm_scale_set_vmreimage_input
1073
+ # [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
1074
+ # Virtual machine in ScaleSet.
1075
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1076
+ # to the HTTP request.
1077
+ #
1078
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1079
+ #
1080
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
1081
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1082
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1083
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1084
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1085
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1086
+
1087
+
1088
+ request_headers = {}
1089
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1090
+
1091
+ # Set Headers
1092
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1093
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1094
+
1095
+ # Serialize Request
1096
+ request_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetVMReimageParameters.mapper()
1097
+ request_content = @client.serialize(request_mapper, vm_scale_set_vmreimage_input)
1098
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1099
+
1100
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'
1101
+
1102
+ request_url = @base_url || @client.base_url
1103
+
1104
+ options = {
1105
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1106
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1107
+ query_params: {'api-version' => @client.api_version},
1108
+ body: request_content,
1109
+ headers: request_headers.merge(custom_headers || {}),
1110
+ base_url: request_url
1111
+ }
1112
+ promise = @client.make_request_async(:post, path_template, options)
1113
+
1114
+ promise = promise.then do |result|
1115
+ http_response = result.response
1116
+ status_code = http_response.status
1117
+ response_content = http_response.body
1118
+ unless status_code == 200 || status_code == 202
1119
+ error_model = JSON.load(response_content)
1120
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1121
+ end
1122
+
1123
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1124
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1125
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1126
+
1127
+ result
1128
+ end
1129
+
1130
+ promise.execute
1131
+ end
1132
+
1133
+ #
1134
+ # Allows you to re-image all the disks ( including data disks ) in the a VM
1135
+ # scale set instance. This operation is only supported for managed disks.
1136
+ #
1137
+ # @param resource_group_name [String] The name of the resource group.
1138
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1139
+ # @param instance_id [String] The instance ID of the virtual machine.
1140
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1141
+ # will be added to the HTTP request.
1142
+ #
1143
+ #
1144
+ def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1145
+ response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1146
+ nil
1147
+ end
1148
+
1149
+ #
1150
+ # Allows you to re-image all the disks ( including data disks ) in the a VM
1151
+ # scale set instance. This operation is only supported for managed disks.
1152
+ #
1153
+ # @param resource_group_name [String] The name of the resource group.
1154
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1155
+ # @param instance_id [String] The instance ID of the virtual machine.
1156
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1157
+ # will be added to the HTTP request.
1158
+ #
1159
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1160
+ #
1161
+ def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1162
+ begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1163
+ end
1164
+
1165
+ #
1166
+ # Allows you to re-image all the disks ( including data disks ) in the a VM
1167
+ # scale set instance. This operation is only supported for managed disks.
1168
+ #
1169
+ # @param resource_group_name [String] The name of the resource group.
1170
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1171
+ # @param instance_id [String] The instance ID of the virtual machine.
1172
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1173
+ # to the HTTP request.
1174
+ #
1175
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1176
+ #
1177
+ def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1178
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1179
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1180
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1181
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1182
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1183
+
1184
+
1185
+ request_headers = {}
1186
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1187
+
1188
+ # Set Headers
1189
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1190
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1191
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall'
1192
+
1193
+ request_url = @base_url || @client.base_url
1194
+
1195
+ options = {
1196
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1197
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1198
+ query_params: {'api-version' => @client.api_version},
1199
+ headers: request_headers.merge(custom_headers || {}),
1200
+ base_url: request_url
1201
+ }
1202
+ promise = @client.make_request_async(:post, path_template, options)
1203
+
1204
+ promise = promise.then do |result|
1205
+ http_response = result.response
1206
+ status_code = http_response.status
1207
+ response_content = http_response.body
1208
+ unless status_code == 200 || status_code == 202
1209
+ error_model = JSON.load(response_content)
1210
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1211
+ end
1212
+
1213
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1214
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1215
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1216
+
1217
+ result
1218
+ end
1219
+
1220
+ promise.execute
1221
+ end
1222
+
1223
+ #
1224
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
1225
+ # virtual machine and releases the compute resources it uses. You are not
1226
+ # billed for the compute resources of this virtual machine once it is
1227
+ # deallocated.
1228
+ #
1229
+ # @param resource_group_name [String] The name of the resource group.
1230
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1231
+ # @param instance_id [String] The instance ID of the virtual machine.
1232
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1233
+ # will be added to the HTTP request.
1234
+ #
1235
+ #
1236
+ def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1237
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1238
+ nil
1239
+ end
1240
+
1241
+ #
1242
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
1243
+ # virtual machine and releases the compute resources it uses. You are not
1244
+ # billed for the compute resources of this virtual machine once it is
1245
+ # deallocated.
1246
+ #
1247
+ # @param resource_group_name [String] The name of the resource group.
1248
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1249
+ # @param instance_id [String] The instance ID of the virtual machine.
1250
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1251
+ # will be added to the HTTP request.
1252
+ #
1253
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1254
+ #
1255
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1256
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1257
+ end
1258
+
1259
+ #
1260
+ # Deallocates a specific virtual machine in a VM scale set. Shuts down the
1261
+ # virtual machine and releases the compute resources it uses. You are not
1262
+ # billed for the compute resources of this virtual machine once it is
1263
+ # deallocated.
1264
+ #
1265
+ # @param resource_group_name [String] The name of the resource group.
1266
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1267
+ # @param instance_id [String] The instance ID of the virtual machine.
1268
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1269
+ # to the HTTP request.
1270
+ #
1271
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1272
+ #
1273
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1274
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1275
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1276
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1277
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1278
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1279
+
1280
+
1281
+ request_headers = {}
1282
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1283
+
1284
+ # Set Headers
1285
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1286
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1287
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'
1288
+
1289
+ request_url = @base_url || @client.base_url
1290
+
1291
+ options = {
1292
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1293
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1294
+ query_params: {'api-version' => @client.api_version},
1295
+ headers: request_headers.merge(custom_headers || {}),
1296
+ base_url: request_url
1297
+ }
1298
+ promise = @client.make_request_async(:post, path_template, options)
1299
+
1300
+ promise = promise.then do |result|
1301
+ http_response = result.response
1302
+ status_code = http_response.status
1303
+ response_content = http_response.body
1304
+ unless status_code == 200 || status_code == 202
1305
+ error_model = JSON.load(response_content)
1306
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1307
+ end
1308
+
1309
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1310
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1311
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1312
+
1313
+ result
1314
+ end
1315
+
1316
+ promise.execute
1317
+ end
1318
+
1319
+ #
1320
+ # Updates a virtual machine of a VM scale set.
1321
+ #
1322
+ # @param resource_group_name [String] The name of the resource group.
1323
+ # @param vm_scale_set_name [String] The name of the VM scale set where the
1324
+ # extension should be create or updated.
1325
+ # @param instance_id [String] The instance ID of the virtual machine.
1326
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
1327
+ # Update Virtual Machine Scale Sets VM operation.
1328
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1329
+ # will be added to the HTTP request.
1330
+ #
1331
+ # @return [VirtualMachineScaleSetVM] operation results.
1332
+ #
1333
+ def begin_update(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1334
+ response = begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
1335
+ response.body unless response.nil?
1336
+ end
1337
+
1338
+ #
1339
+ # Updates a virtual machine of a VM scale set.
1340
+ #
1341
+ # @param resource_group_name [String] The name of the resource group.
1342
+ # @param vm_scale_set_name [String] The name of the VM scale set where the
1343
+ # extension should be create or updated.
1344
+ # @param instance_id [String] The instance ID of the virtual machine.
1345
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
1346
+ # Update Virtual Machine Scale Sets VM operation.
1347
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1348
+ # will be added to the HTTP request.
1349
+ #
1350
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1351
+ #
1352
+ def begin_update_with_http_info(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1353
+ begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
1354
+ end
1355
+
1356
+ #
1357
+ # Updates a virtual machine of a VM scale set.
1358
+ #
1359
+ # @param resource_group_name [String] The name of the resource group.
1360
+ # @param vm_scale_set_name [String] The name of the VM scale set where the
1361
+ # extension should be create or updated.
1362
+ # @param instance_id [String] The instance ID of the virtual machine.
1363
+ # @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
1364
+ # Update Virtual Machine Scale Sets VM operation.
1365
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1366
+ # to the HTTP request.
1367
+ #
1368
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1369
+ #
1370
+ def begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
1371
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1372
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1373
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1374
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1375
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1376
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1377
+
1378
+
1379
+ request_headers = {}
1380
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1381
+
1382
+ # Set Headers
1383
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1384
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1385
+
1386
+ # Serialize Request
1387
+ request_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetVM.mapper()
1388
+ request_content = @client.serialize(request_mapper, parameters)
1389
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1390
+
1391
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
1392
+
1393
+ request_url = @base_url || @client.base_url
1394
+
1395
+ options = {
1396
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1397
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1398
+ query_params: {'api-version' => @client.api_version},
1399
+ body: request_content,
1400
+ headers: request_headers.merge(custom_headers || {}),
1401
+ base_url: request_url
1402
+ }
1403
+ promise = @client.make_request_async(:put, path_template, options)
1404
+
1405
+ promise = promise.then do |result|
1406
+ http_response = result.response
1407
+ status_code = http_response.status
1408
+ response_content = http_response.body
1409
+ unless status_code == 200 || status_code == 202
1410
+ error_model = JSON.load(response_content)
1411
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1412
+ end
1413
+
1414
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1415
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1416
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1417
+ # Deserialize Response
1418
+ if status_code == 200
1419
+ begin
1420
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1421
+ result_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetVM.mapper()
1422
+ result.body = @client.deserialize(result_mapper, parsed_response)
1423
+ rescue Exception => e
1424
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1425
+ end
1426
+ end
1427
+ # Deserialize Response
1428
+ if status_code == 202
1429
+ begin
1430
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1431
+ result_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetVM.mapper()
1432
+ result.body = @client.deserialize(result_mapper, parsed_response)
1433
+ rescue Exception => e
1434
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1435
+ end
1436
+ end
1437
+
1438
+ result
1439
+ end
1440
+
1441
+ promise.execute
1442
+ end
1443
+
1444
+ #
1445
+ # Deletes a virtual machine from a VM scale set.
1446
+ #
1447
+ # @param resource_group_name [String] The name of the resource group.
1448
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1449
+ # @param instance_id [String] The instance ID of the virtual machine.
1450
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1451
+ # will be added to the HTTP request.
1452
+ #
1453
+ #
1454
+ def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1455
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1456
+ nil
1457
+ end
1458
+
1459
+ #
1460
+ # Deletes a virtual machine from a VM scale set.
1461
+ #
1462
+ # @param resource_group_name [String] The name of the resource group.
1463
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1464
+ # @param instance_id [String] The instance ID of the virtual machine.
1465
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1466
+ # will be added to the HTTP request.
1467
+ #
1468
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1469
+ #
1470
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1471
+ begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1472
+ end
1473
+
1474
+ #
1475
+ # Deletes a virtual machine from a VM scale set.
1476
+ #
1477
+ # @param resource_group_name [String] The name of the resource group.
1478
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1479
+ # @param instance_id [String] The instance ID of the virtual machine.
1480
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1481
+ # to the HTTP request.
1482
+ #
1483
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1484
+ #
1485
+ def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1486
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1487
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1488
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1489
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1490
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1491
+
1492
+
1493
+ request_headers = {}
1494
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1495
+
1496
+ # Set Headers
1497
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1498
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1499
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
1500
+
1501
+ request_url = @base_url || @client.base_url
1502
+
1503
+ options = {
1504
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1505
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1506
+ query_params: {'api-version' => @client.api_version},
1507
+ headers: request_headers.merge(custom_headers || {}),
1508
+ base_url: request_url
1509
+ }
1510
+ promise = @client.make_request_async(:delete, path_template, options)
1511
+
1512
+ promise = promise.then do |result|
1513
+ http_response = result.response
1514
+ status_code = http_response.status
1515
+ response_content = http_response.body
1516
+ unless status_code == 200 || status_code == 202 || status_code == 204
1517
+ error_model = JSON.load(response_content)
1518
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1519
+ end
1520
+
1521
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1522
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1523
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1524
+
1525
+ result
1526
+ end
1527
+
1528
+ promise.execute
1529
+ end
1530
+
1531
+ #
1532
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
1533
+ # still attached and you are getting charged for the resources. Instead, use
1534
+ # deallocate to release resources and avoid charges.
1535
+ #
1536
+ # @param resource_group_name [String] The name of the resource group.
1537
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1538
+ # @param instance_id [String] The instance ID of the virtual machine.
1539
+ # @param skip_shutdown [Boolean] The parameter to request non-graceful VM
1540
+ # shutdown. True value for this flag indicates non-graceful shutdown whereas
1541
+ # false indicates otherwise. Default value for this flag is false if not
1542
+ # specified
1543
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1544
+ # will be added to the HTTP request.
1545
+ #
1546
+ #
1547
+ def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
1548
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:skip_shutdown, custom_headers:custom_headers).value!
1549
+ nil
1550
+ end
1551
+
1552
+ #
1553
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
1554
+ # still attached and you are getting charged for the resources. Instead, use
1555
+ # deallocate to release resources and avoid charges.
1556
+ #
1557
+ # @param resource_group_name [String] The name of the resource group.
1558
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1559
+ # @param instance_id [String] The instance ID of the virtual machine.
1560
+ # @param skip_shutdown [Boolean] The parameter to request non-graceful VM
1561
+ # shutdown. True value for this flag indicates non-graceful shutdown whereas
1562
+ # false indicates otherwise. Default value for this flag is false if not
1563
+ # specified
1564
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1565
+ # will be added to the HTTP request.
1566
+ #
1567
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1568
+ #
1569
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
1570
+ begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:skip_shutdown, custom_headers:custom_headers).value!
1571
+ end
1572
+
1573
+ #
1574
+ # Power off (stop) a virtual machine in a VM scale set. Note that resources are
1575
+ # still attached and you are getting charged for the resources. Instead, use
1576
+ # deallocate to release resources and avoid charges.
1577
+ #
1578
+ # @param resource_group_name [String] The name of the resource group.
1579
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1580
+ # @param instance_id [String] The instance ID of the virtual machine.
1581
+ # @param skip_shutdown [Boolean] The parameter to request non-graceful VM
1582
+ # shutdown. True value for this flag indicates non-graceful shutdown whereas
1583
+ # false indicates otherwise. Default value for this flag is false if not
1584
+ # specified
1585
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1586
+ # to the HTTP request.
1587
+ #
1588
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1589
+ #
1590
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
1591
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1592
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1593
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1594
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1595
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1596
+
1597
+
1598
+ request_headers = {}
1599
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1600
+
1601
+ # Set Headers
1602
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1603
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1604
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'
1605
+
1606
+ request_url = @base_url || @client.base_url
1607
+
1608
+ options = {
1609
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1610
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1611
+ query_params: {'skipShutdown' => skip_shutdown,'api-version' => @client.api_version},
1612
+ headers: request_headers.merge(custom_headers || {}),
1613
+ base_url: request_url
1614
+ }
1615
+ promise = @client.make_request_async(:post, path_template, options)
1616
+
1617
+ promise = promise.then do |result|
1618
+ http_response = result.response
1619
+ status_code = http_response.status
1620
+ response_content = http_response.body
1621
+ unless status_code == 200 || status_code == 202
1622
+ error_model = JSON.load(response_content)
1623
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1624
+ end
1625
+
1626
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1627
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1628
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1629
+
1630
+ result
1631
+ end
1632
+
1633
+ promise.execute
1634
+ end
1635
+
1636
+ #
1637
+ # Restarts a virtual machine in a VM scale set.
1638
+ #
1639
+ # @param resource_group_name [String] The name of the resource group.
1640
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1641
+ # @param instance_id [String] The instance ID of the virtual machine.
1642
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1643
+ # will be added to the HTTP request.
1644
+ #
1645
+ #
1646
+ def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1647
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1648
+ nil
1649
+ end
1650
+
1651
+ #
1652
+ # Restarts a virtual machine in a VM scale set.
1653
+ #
1654
+ # @param resource_group_name [String] The name of the resource group.
1655
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1656
+ # @param instance_id [String] The instance ID of the virtual machine.
1657
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1658
+ # will be added to the HTTP request.
1659
+ #
1660
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1661
+ #
1662
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1663
+ begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1664
+ end
1665
+
1666
+ #
1667
+ # Restarts a virtual machine in a VM scale set.
1668
+ #
1669
+ # @param resource_group_name [String] The name of the resource group.
1670
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1671
+ # @param instance_id [String] The instance ID of the virtual machine.
1672
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1673
+ # to the HTTP request.
1674
+ #
1675
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1676
+ #
1677
+ def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1678
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1679
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1680
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1681
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1682
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1683
+
1684
+
1685
+ request_headers = {}
1686
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1687
+
1688
+ # Set Headers
1689
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1690
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1691
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'
1692
+
1693
+ request_url = @base_url || @client.base_url
1694
+
1695
+ options = {
1696
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1697
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1698
+ query_params: {'api-version' => @client.api_version},
1699
+ headers: request_headers.merge(custom_headers || {}),
1700
+ base_url: request_url
1701
+ }
1702
+ promise = @client.make_request_async(:post, path_template, options)
1703
+
1704
+ promise = promise.then do |result|
1705
+ http_response = result.response
1706
+ status_code = http_response.status
1707
+ response_content = http_response.body
1708
+ unless status_code == 200 || status_code == 202
1709
+ error_model = JSON.load(response_content)
1710
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1711
+ end
1712
+
1713
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1714
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1715
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1716
+
1717
+ result
1718
+ end
1719
+
1720
+ promise.execute
1721
+ end
1722
+
1723
+ #
1724
+ # Starts a virtual machine in a VM scale set.
1725
+ #
1726
+ # @param resource_group_name [String] The name of the resource group.
1727
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1728
+ # @param instance_id [String] The instance ID of the virtual machine.
1729
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1730
+ # will be added to the HTTP request.
1731
+ #
1732
+ #
1733
+ def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1734
+ response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1735
+ nil
1736
+ end
1737
+
1738
+ #
1739
+ # Starts a virtual machine in a VM scale set.
1740
+ #
1741
+ # @param resource_group_name [String] The name of the resource group.
1742
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1743
+ # @param instance_id [String] The instance ID of the virtual machine.
1744
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1745
+ # will be added to the HTTP request.
1746
+ #
1747
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1748
+ #
1749
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1750
+ begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1751
+ end
1752
+
1753
+ #
1754
+ # Starts a virtual machine in a VM scale set.
1755
+ #
1756
+ # @param resource_group_name [String] The name of the resource group.
1757
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1758
+ # @param instance_id [String] The instance ID of the virtual machine.
1759
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1760
+ # to the HTTP request.
1761
+ #
1762
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1763
+ #
1764
+ def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1765
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1766
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1767
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1768
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1769
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1770
+
1771
+
1772
+ request_headers = {}
1773
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1774
+
1775
+ # Set Headers
1776
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1777
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1778
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'
1779
+
1780
+ request_url = @base_url || @client.base_url
1781
+
1782
+ options = {
1783
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1784
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1785
+ query_params: {'api-version' => @client.api_version},
1786
+ headers: request_headers.merge(custom_headers || {}),
1787
+ base_url: request_url
1788
+ }
1789
+ promise = @client.make_request_async(:post, path_template, options)
1790
+
1791
+ promise = promise.then do |result|
1792
+ http_response = result.response
1793
+ status_code = http_response.status
1794
+ response_content = http_response.body
1795
+ unless status_code == 200 || status_code == 202
1796
+ error_model = JSON.load(response_content)
1797
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1798
+ end
1799
+
1800
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1801
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1802
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1803
+
1804
+ result
1805
+ end
1806
+
1807
+ promise.execute
1808
+ end
1809
+
1810
+ #
1811
+ # Shuts down the virtual machine in the virtual machine scale set, moves it to
1812
+ # a new node, and powers it back on.
1813
+ #
1814
+ # @param resource_group_name [String] The name of the resource group.
1815
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1816
+ # @param instance_id [String] The instance ID of the virtual machine.
1817
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1818
+ # will be added to the HTTP request.
1819
+ #
1820
+ #
1821
+ def begin_redeploy(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1822
+ response = begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1823
+ nil
1824
+ end
1825
+
1826
+ #
1827
+ # Shuts down the virtual machine in the virtual machine scale set, moves it to
1828
+ # a new node, and powers it back on.
1829
+ #
1830
+ # @param resource_group_name [String] The name of the resource group.
1831
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1832
+ # @param instance_id [String] The instance ID of the virtual machine.
1833
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1834
+ # will be added to the HTTP request.
1835
+ #
1836
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1837
+ #
1838
+ def begin_redeploy_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1839
+ begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1840
+ end
1841
+
1842
+ #
1843
+ # Shuts down the virtual machine in the virtual machine scale set, moves it to
1844
+ # a new node, and powers it back on.
1845
+ #
1846
+ # @param resource_group_name [String] The name of the resource group.
1847
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1848
+ # @param instance_id [String] The instance ID of the virtual machine.
1849
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1850
+ # to the HTTP request.
1851
+ #
1852
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1853
+ #
1854
+ def begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1855
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1856
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1857
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1858
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1859
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1860
+
1861
+
1862
+ request_headers = {}
1863
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1864
+
1865
+ # Set Headers
1866
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1867
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1868
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy'
1869
+
1870
+ request_url = @base_url || @client.base_url
1871
+
1872
+ options = {
1873
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1874
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1875
+ query_params: {'api-version' => @client.api_version},
1876
+ headers: request_headers.merge(custom_headers || {}),
1877
+ base_url: request_url
1878
+ }
1879
+ promise = @client.make_request_async(:post, path_template, options)
1880
+
1881
+ promise = promise.then do |result|
1882
+ http_response = result.response
1883
+ status_code = http_response.status
1884
+ response_content = http_response.body
1885
+ unless status_code == 200 || status_code == 202
1886
+ error_model = JSON.load(response_content)
1887
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1888
+ end
1889
+
1890
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1891
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1892
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1893
+
1894
+ result
1895
+ end
1896
+
1897
+ promise.execute
1898
+ end
1899
+
1900
+ #
1901
+ # Performs maintenance on a virtual machine in a VM scale set.
1902
+ #
1903
+ # @param resource_group_name [String] The name of the resource group.
1904
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1905
+ # @param instance_id [String] The instance ID of the virtual machine.
1906
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1907
+ # will be added to the HTTP request.
1908
+ #
1909
+ #
1910
+ def begin_perform_maintenance(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1911
+ response = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1912
+ nil
1913
+ end
1914
+
1915
+ #
1916
+ # Performs maintenance on a virtual machine in a VM scale set.
1917
+ #
1918
+ # @param resource_group_name [String] The name of the resource group.
1919
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1920
+ # @param instance_id [String] The instance ID of the virtual machine.
1921
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1922
+ # will be added to the HTTP request.
1923
+ #
1924
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1925
+ #
1926
+ def begin_perform_maintenance_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1927
+ begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1928
+ end
1929
+
1930
+ #
1931
+ # Performs maintenance on a virtual machine in a VM scale set.
1932
+ #
1933
+ # @param resource_group_name [String] The name of the resource group.
1934
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1935
+ # @param instance_id [String] The instance ID of the virtual machine.
1936
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1937
+ # to the HTTP request.
1938
+ #
1939
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1940
+ #
1941
+ def begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1942
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1943
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1944
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1945
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1946
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1947
+
1948
+
1949
+ request_headers = {}
1950
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1951
+
1952
+ # Set Headers
1953
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1954
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1955
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance'
1956
+
1957
+ request_url = @base_url || @client.base_url
1958
+
1959
+ options = {
1960
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1961
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1962
+ query_params: {'api-version' => @client.api_version},
1963
+ headers: request_headers.merge(custom_headers || {}),
1964
+ base_url: request_url
1965
+ }
1966
+ promise = @client.make_request_async(:post, path_template, options)
1967
+
1968
+ promise = promise.then do |result|
1969
+ http_response = result.response
1970
+ status_code = http_response.status
1971
+ response_content = http_response.body
1972
+ unless status_code == 200 || status_code == 202
1973
+ error_model = JSON.load(response_content)
1974
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1975
+ end
1976
+
1977
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1978
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1979
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1980
+
1981
+ result
1982
+ end
1983
+
1984
+ promise.execute
1985
+ end
1986
+
1987
+ #
1988
+ # Run command on a virtual machine in a VM scale set.
1989
+ #
1990
+ # @param resource_group_name [String] The name of the resource group.
1991
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1992
+ # @param instance_id [String] The instance ID of the virtual machine.
1993
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
1994
+ # operation.
1995
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1996
+ # will be added to the HTTP request.
1997
+ #
1998
+ # @return [RunCommandResult] operation results.
1999
+ #
2000
+ def begin_run_command(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
2001
+ response = begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
2002
+ response.body unless response.nil?
2003
+ end
2004
+
2005
+ #
2006
+ # Run command on a virtual machine in a VM scale set.
2007
+ #
2008
+ # @param resource_group_name [String] The name of the resource group.
2009
+ # @param vm_scale_set_name [String] The name of the VM scale set.
2010
+ # @param instance_id [String] The instance ID of the virtual machine.
2011
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
2012
+ # operation.
2013
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2014
+ # will be added to the HTTP request.
2015
+ #
2016
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2017
+ #
2018
+ def begin_run_command_with_http_info(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
2019
+ begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
2020
+ end
2021
+
2022
+ #
2023
+ # Run command on a virtual machine in a VM scale set.
2024
+ #
2025
+ # @param resource_group_name [String] The name of the resource group.
2026
+ # @param vm_scale_set_name [String] The name of the VM scale set.
2027
+ # @param instance_id [String] The instance ID of the virtual machine.
2028
+ # @param parameters [RunCommandInput] Parameters supplied to the Run command
2029
+ # operation.
2030
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2031
+ # to the HTTP request.
2032
+ #
2033
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2034
+ #
2035
+ def begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
2036
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2037
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
2038
+ fail ArgumentError, 'instance_id is nil' if instance_id.nil?
2039
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2040
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2041
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2042
+
2043
+
2044
+ request_headers = {}
2045
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2046
+
2047
+ # Set Headers
2048
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2049
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2050
+
2051
+ # Serialize Request
2052
+ request_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::RunCommandInput.mapper()
2053
+ request_content = @client.serialize(request_mapper, parameters)
2054
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2055
+
2056
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand'
2057
+
2058
+ request_url = @base_url || @client.base_url
2059
+
2060
+ options = {
2061
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2062
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
2063
+ query_params: {'api-version' => @client.api_version},
2064
+ body: request_content,
2065
+ headers: request_headers.merge(custom_headers || {}),
2066
+ base_url: request_url
2067
+ }
2068
+ promise = @client.make_request_async(:post, path_template, options)
2069
+
2070
+ promise = promise.then do |result|
2071
+ http_response = result.response
2072
+ status_code = http_response.status
2073
+ response_content = http_response.body
2074
+ unless status_code == 200 || status_code == 202
2075
+ error_model = JSON.load(response_content)
2076
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2077
+ end
2078
+
2079
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2080
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2081
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2082
+ # Deserialize Response
2083
+ if status_code == 200
2084
+ begin
2085
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2086
+ result_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::RunCommandResult.mapper()
2087
+ result.body = @client.deserialize(result_mapper, parsed_response)
2088
+ rescue Exception => e
2089
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2090
+ end
2091
+ end
2092
+
2093
+ result
2094
+ end
2095
+
2096
+ promise.execute
2097
+ end
2098
+
2099
+ #
2100
+ # Gets a list of all virtual machines in a VM scale sets.
2101
+ #
2102
+ # @param next_page_link [String] The NextLink from the previous successful call
2103
+ # to List operation.
2104
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2105
+ # will be added to the HTTP request.
2106
+ #
2107
+ # @return [VirtualMachineScaleSetVMListResult] operation results.
2108
+ #
2109
+ def list_next(next_page_link, custom_headers:nil)
2110
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
2111
+ response.body unless response.nil?
2112
+ end
2113
+
2114
+ #
2115
+ # Gets a list of all virtual machines in a VM scale sets.
2116
+ #
2117
+ # @param next_page_link [String] The NextLink from the previous successful call
2118
+ # to List operation.
2119
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2120
+ # will be added to the HTTP request.
2121
+ #
2122
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2123
+ #
2124
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
2125
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
2126
+ end
2127
+
2128
+ #
2129
+ # Gets a list of all virtual machines in a VM scale sets.
2130
+ #
2131
+ # @param next_page_link [String] The NextLink from the previous successful call
2132
+ # to List operation.
2133
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2134
+ # to the HTTP request.
2135
+ #
2136
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2137
+ #
2138
+ def list_next_async(next_page_link, custom_headers:nil)
2139
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2140
+
2141
+
2142
+ request_headers = {}
2143
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2144
+
2145
+ # Set Headers
2146
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2147
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2148
+ path_template = '{nextLink}'
2149
+
2150
+ request_url = @base_url || @client.base_url
2151
+
2152
+ options = {
2153
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2154
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2155
+ headers: request_headers.merge(custom_headers || {}),
2156
+ base_url: request_url
2157
+ }
2158
+ promise = @client.make_request_async(:get, path_template, options)
2159
+
2160
+ promise = promise.then do |result|
2161
+ http_response = result.response
2162
+ status_code = http_response.status
2163
+ response_content = http_response.body
2164
+ unless status_code == 200
2165
+ error_model = JSON.load(response_content)
2166
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2167
+ end
2168
+
2169
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2170
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2171
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2172
+ # Deserialize Response
2173
+ if status_code == 200
2174
+ begin
2175
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2176
+ result_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetVMListResult.mapper()
2177
+ result.body = @client.deserialize(result_mapper, parsed_response)
2178
+ rescue Exception => e
2179
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2180
+ end
2181
+ end
2182
+
2183
+ result
2184
+ end
2185
+
2186
+ promise.execute
2187
+ end
2188
+
2189
+ #
2190
+ # Gets a list of all virtual machines in a VM scale sets.
2191
+ #
2192
+ # @param resource_group_name [String] The name of the resource group.
2193
+ # @param virtual_machine_scale_set_name [String] The name of the VM scale set.
2194
+ # @param filter [String] The filter to apply to the operation. Allowed values
2195
+ # are 'startswith(instanceView/statuses/code, 'PowerState') eq true',
2196
+ # 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq
2197
+ # false'.
2198
+ # @param select [String] The list parameters. Allowed values are
2199
+ # 'instanceView', 'instanceView/statuses'.
2200
+ # @param expand [String] The expand expression to apply to the operation.
2201
+ # Allowed values are 'instanceView'.
2202
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2203
+ # will be added to the HTTP request.
2204
+ #
2205
+ # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
2206
+ # pages of the response.
2207
+ #
2208
+ def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
2209
+ response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
2210
+ unless response.nil?
2211
+ page = response.body
2212
+ page.next_method = Proc.new do |next_page_link|
2213
+ list_next_async(next_page_link, custom_headers:custom_headers)
2214
+ end
2215
+ page
2216
+ end
2217
+ end
2218
+
2219
+ end
2220
+ end