azure_mgmt_compute 0.19.1 → 0.19.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (305) hide show
  1. checksums.yaml +4 -4
  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/compute_management_client.rb +1 -1
  13. data/lib/2019-04-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  14. data/lib/2019-07-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  15. data/lib/2019-11-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  16. data/lib/2019-12-01/generated/azure_mgmt_compute.rb +310 -0
  17. data/lib/2019-12-01/generated/azure_mgmt_compute/availability_sets.rb +916 -0
  18. data/lib/2019-12-01/generated/azure_mgmt_compute/compute_management_client.rb +232 -0
  19. data/lib/2019-12-01/generated/azure_mgmt_compute/dedicated_host_groups.rb +852 -0
  20. data/lib/2019-12-01/generated/azure_mgmt_compute/dedicated_hosts.rb +806 -0
  21. data/lib/2019-12-01/generated/azure_mgmt_compute/galleries.rb +988 -0
  22. data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_application_versions.rb +915 -0
  23. data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_applications.rb +856 -0
  24. data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_image_versions.rb +911 -0
  25. data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_images.rb +856 -0
  26. data/lib/2019-12-01/generated/azure_mgmt_compute/images.rb +975 -0
  27. data/lib/2019-12-01/generated/azure_mgmt_compute/log_analytics.rb +341 -0
  28. data/lib/2019-12-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
  29. data/lib/2019-12-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
  30. data/lib/2019-12-01/generated/azure_mgmt_compute/models/aggregated_replication_state.rb +18 -0
  31. data/lib/2019-12-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
  32. data/lib/2019-12-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
  33. data/lib/2019-12-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
  34. data/lib/2019-12-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +63 -0
  35. data/lib/2019-12-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
  36. data/lib/2019-12-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb +64 -0
  37. data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
  38. data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
  39. data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
  40. data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
  41. data/lib/2019-12-01/generated/azure_mgmt_compute/models/billing_profile.rb +60 -0
  42. data/lib/2019-12-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
  43. data/lib/2019-12-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
  44. data/lib/2019-12-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
  45. data/lib/2019-12-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
  46. data/lib/2019-12-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
  47. data/lib/2019-12-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
  48. data/lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb +201 -0
  49. data/lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
  50. data/lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk_image_encryption.rb +57 -0
  51. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb +220 -0
  52. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb +60 -0
  53. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_available_capacity.rb +57 -0
  54. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_group.rb +148 -0
  55. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_list_result.rb +100 -0
  56. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_update.rb +111 -0
  57. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view.rb +81 -0
  58. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_license_types.rb +17 -0
  59. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_list_result.rb +100 -0
  60. data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_update.rb +172 -0
  61. data/lib/2019-12-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
  62. data/lib/2019-12-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
  63. data/lib/2019-12-01/generated/azure_mgmt_compute/models/diff_disk_placement.rb +16 -0
  64. data/lib/2019-12-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +69 -0
  65. data/lib/2019-12-01/generated/azure_mgmt_compute/models/disallowed.rb +54 -0
  66. data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
  67. data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_encryption_set_parameters.rb +46 -0
  68. data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
  69. data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_image_encryption.rb +47 -0
  70. data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
  71. data/lib/2019-12-01/generated/azure_mgmt_compute/models/encryption_images.rb +69 -0
  72. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery.rb +125 -0
  73. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application.rb +161 -0
  74. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_list.rb +100 -0
  75. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_update.rb +153 -0
  76. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version.rb +127 -0
  77. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version_list.rb +101 -0
  78. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version_publishing_profile.rb +130 -0
  79. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version_update.rb +119 -0
  80. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +120 -0
  81. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +47 -0
  82. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb +47 -0
  83. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb +76 -0
  84. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb +74 -0
  85. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_identifier.rb +48 -0
  86. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image.rb +251 -0
  87. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +68 -0
  88. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_list.rb +100 -0
  89. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_update.rb +243 -0
  90. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version.rb +139 -0
  91. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_list.rb +100 -0
  92. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +93 -0
  93. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb +79 -0
  94. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_update.rb +131 -0
  95. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_list.rb +99 -0
  96. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb +62 -0
  97. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_update.rb +117 -0
  98. data/lib/2019-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
  99. data/lib/2019-12-01/generated/azure_mgmt_compute/models/host_caching.rb +17 -0
  100. data/lib/2019-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
  101. data/lib/2019-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration_type.rb +16 -0
  102. data/lib/2019-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
  103. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image.rb +139 -0
  104. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_data_disk.rb +108 -0
  105. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb +126 -0
  106. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
  107. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb +123 -0
  108. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb +69 -0
  109. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_reference.rb +114 -0
  110. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
  111. data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
  112. data/lib/2019-12-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
  113. data/lib/2019-12-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
  114. data/lib/2019-12-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  115. data/lib/2019-12-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
  116. data/lib/2019-12-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
  117. data/lib/2019-12-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
  118. data/lib/2019-12-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
  119. data/lib/2019-12-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
  120. data/lib/2019-12-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
  121. data/lib/2019-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
  122. data/lib/2019-12-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
  123. data/lib/2019-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
  124. data/lib/2019-12-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
  125. data/lib/2019-12-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
  126. data/lib/2019-12-01/generated/azure_mgmt_compute/models/managed_artifact.rb +46 -0
  127. data/lib/2019-12-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +70 -0
  128. data/lib/2019-12-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
  129. data/lib/2019-12-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
  130. data/lib/2019-12-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
  131. data/lib/2019-12-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  132. data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_names.rb +16 -0
  133. data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_state.rb +17 -0
  134. data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_state_action.rb +16 -0
  135. data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_state_input.rb +59 -0
  136. data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_summary.rb +61 -0
  137. data/lib/2019-12-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
  138. data/lib/2019-12-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
  139. data/lib/2019-12-01/generated/azure_mgmt_compute/models/osdisk_image_encryption.rb +43 -0
  140. data/lib/2019-12-01/generated/azure_mgmt_compute/models/osprofile.rb +202 -0
  141. data/lib/2019-12-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
  142. data/lib/2019-12-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
  143. data/lib/2019-12-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
  144. data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +180 -0
  145. data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
  146. data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
  147. data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
  148. data/lib/2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
  149. data/lib/2019-12-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +60 -0
  150. data/lib/2019-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
  151. data/lib/2019-12-01/generated/azure_mgmt_compute/models/regional_replication_status.rb +86 -0
  152. data/lib/2019-12-01/generated/azure_mgmt_compute/models/replication_state.rb +18 -0
  153. data/lib/2019-12-01/generated/azure_mgmt_compute/models/replication_status.rb +71 -0
  154. data/lib/2019-12-01/generated/azure_mgmt_compute/models/replication_status_types.rb +15 -0
  155. data/lib/2019-12-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
  156. data/lib/2019-12-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
  157. data/lib/2019-12-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
  158. data/lib/2019-12-01/generated/azure_mgmt_compute/models/resource_range.rb +57 -0
  159. data/lib/2019-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
  160. data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
  161. data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
  162. data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
  163. data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
  164. data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
  165. data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
  166. data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
  167. data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
  168. data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
  169. data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
  170. data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
  171. data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
  172. data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
  173. data/lib/2019-12-01/generated/azure_mgmt_compute/models/scale_in_policy.rb +71 -0
  174. data/lib/2019-12-01/generated/azure_mgmt_compute/models/scheduled_events_profile.rb +49 -0
  175. data/lib/2019-12-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
  176. data/lib/2019-12-01/generated/azure_mgmt_compute/models/sku.rb +73 -0
  177. data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
  178. data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
  179. data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb +73 -0
  180. data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_resource.rb +102 -0
  181. data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_update_resource.rb +67 -0
  182. data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_keys_group_list_result.rb +100 -0
  183. data/lib/2019-12-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
  184. data/lib/2019-12-01/generated/azure_mgmt_compute/models/storage_account_type.rb +17 -0
  185. data/lib/2019-12-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
  186. data/lib/2019-12-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
  187. data/lib/2019-12-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
  188. data/lib/2019-12-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
  189. data/lib/2019-12-01/generated/azure_mgmt_compute/models/sub_resource_with_colocation_status.rb +57 -0
  190. data/lib/2019-12-01/generated/azure_mgmt_compute/models/target_region.rb +83 -0
  191. data/lib/2019-12-01/generated/azure_mgmt_compute/models/terminate_notification_profile.rb +62 -0
  192. data/lib/2019-12-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
  193. data/lib/2019-12-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
  194. data/lib/2019-12-01/generated/azure_mgmt_compute/models/update_resource_definition.rb +90 -0
  195. data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
  196. data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
  197. data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
  198. data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
  199. data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
  200. data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
  201. data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
  202. data/lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
  203. data/lib/2019-12-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
  204. data/lib/2019-12-01/generated/azure_mgmt_compute/models/user_artifact_source.rb +58 -0
  205. data/lib/2019-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
  206. data/lib/2019-12-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
  207. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
  208. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +412 -0
  209. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
  210. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
  211. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
  212. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
  213. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
  214. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
  215. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
  216. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
  217. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  218. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  219. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
  220. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
  221. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
  222. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +142 -0
  223. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
  224. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +217 -0
  225. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
  226. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +17 -0
  227. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +49 -0
  228. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +318 -0
  229. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +153 -0
  230. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +184 -0
  231. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
  232. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
  233. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_update.rb +185 -0
  234. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
  235. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
  236. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +113 -0
  237. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
  238. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
  239. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
  240. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
  241. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
  242. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
  243. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
  244. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +63 -0
  245. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
  246. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
  247. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
  248. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
  249. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
  250. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +120 -0
  251. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
  252. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
  253. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_scale_in_rules.rb +17 -0
  254. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
  255. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
  256. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  257. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
  258. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +210 -0
  259. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +190 -0
  260. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
  261. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +72 -0
  262. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
  263. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
  264. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
  265. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
  266. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +138 -0
  267. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +384 -0
  268. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
  269. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
  270. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
  271. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
  272. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
  273. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
  274. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +176 -0
  275. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
  276. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
  277. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
  278. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
  279. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
  280. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
  281. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +355 -0
  282. data/lib/2019-12-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
  283. data/lib/2019-12-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
  284. data/lib/2019-12-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
  285. data/lib/2019-12-01/generated/azure_mgmt_compute/models/windows_configuration.rb +114 -0
  286. data/lib/2019-12-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
  287. data/lib/2019-12-01/generated/azure_mgmt_compute/operations.rb +109 -0
  288. data/lib/2019-12-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +846 -0
  289. data/lib/2019-12-01/generated/azure_mgmt_compute/ssh_public_keys.rb +939 -0
  290. data/lib/2019-12-01/generated/azure_mgmt_compute/usage_operations.rb +241 -0
  291. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +360 -0
  292. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +701 -0
  293. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +600 -0
  294. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +322 -0
  295. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +821 -0
  296. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +498 -0
  297. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vmextensions.rb +709 -0
  298. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +2087 -0
  299. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3288 -0
  300. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +122 -0
  301. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machines.rb +3050 -0
  302. data/lib/azure_mgmt_compute.rb +12 -11
  303. data/lib/profiles/latest/modules/compute_profile_module.rb +891 -821
  304. data/lib/version.rb +1 -1
  305. metadata +288 -2
@@ -0,0 +1,701 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Compute::Mgmt::V2019_12_01
7
+ #
8
+ # Compute Client
9
+ #
10
+ class VirtualMachineExtensions
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the VirtualMachineExtensions 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
+ # The operation to create or update the extension.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param vm_name [String] The name of the virtual machine where the extension
29
+ # should be created or updated.
30
+ # @param vm_extension_name [String] The name of the virtual machine extension.
31
+ # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
32
+ # the Create Virtual Machine Extension operation.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [VirtualMachineExtension] operation results.
37
+ #
38
+ def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
39
+ response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group.
45
+ # @param vm_name [String] The name of the virtual machine where the extension
46
+ # should be created or updated.
47
+ # @param vm_extension_name [String] The name of the virtual machine extension.
48
+ # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
49
+ # the Create Virtual Machine Extension operation.
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [Concurrent::Promise] promise which provides async access to http
54
+ # response.
55
+ #
56
+ def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
57
+ # Send request
58
+ promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers)
59
+
60
+ promise = promise.then do |response|
61
+ # Defining deserialization method.
62
+ deserialize_method = lambda do |parsed_response|
63
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtension.mapper()
64
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
65
+ end
66
+
67
+ # Waiting for response.
68
+ @client.get_long_running_operation_result(response, deserialize_method)
69
+ end
70
+
71
+ promise
72
+ end
73
+
74
+ #
75
+ # The operation to update the extension.
76
+ #
77
+ # @param resource_group_name [String] The name of the resource group.
78
+ # @param vm_name [String] The name of the virtual machine where the extension
79
+ # should be updated.
80
+ # @param vm_extension_name [String] The name of the virtual machine extension.
81
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
82
+ # supplied to the Update Virtual Machine Extension operation.
83
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
84
+ # will be added to the HTTP request.
85
+ #
86
+ # @return [VirtualMachineExtension] operation results.
87
+ #
88
+ def update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
89
+ response = update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
90
+ response.body unless response.nil?
91
+ end
92
+
93
+ #
94
+ # @param resource_group_name [String] The name of the resource group.
95
+ # @param vm_name [String] The name of the virtual machine where the extension
96
+ # should be updated.
97
+ # @param vm_extension_name [String] The name of the virtual machine extension.
98
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
99
+ # supplied to the Update Virtual Machine Extension operation.
100
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
101
+ # will be added to the HTTP request.
102
+ #
103
+ # @return [Concurrent::Promise] promise which provides async access to http
104
+ # response.
105
+ #
106
+ def update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
107
+ # Send request
108
+ promise = begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers)
109
+
110
+ promise = promise.then do |response|
111
+ # Defining deserialization method.
112
+ deserialize_method = lambda do |parsed_response|
113
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtension.mapper()
114
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
115
+ end
116
+
117
+ # Waiting for response.
118
+ @client.get_long_running_operation_result(response, deserialize_method)
119
+ end
120
+
121
+ promise
122
+ end
123
+
124
+ #
125
+ # The operation to delete the extension.
126
+ #
127
+ # @param resource_group_name [String] The name of the resource group.
128
+ # @param vm_name [String] The name of the virtual machine where the extension
129
+ # should be deleted.
130
+ # @param vm_extension_name [String] The name of the virtual machine extension.
131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
132
+ # will be added to the HTTP request.
133
+ #
134
+ def delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil)
135
+ response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value!
136
+ nil
137
+ end
138
+
139
+ #
140
+ # @param resource_group_name [String] The name of the resource group.
141
+ # @param vm_name [String] The name of the virtual machine where the extension
142
+ # should be deleted.
143
+ # @param vm_extension_name [String] The name of the virtual machine extension.
144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
+ # will be added to the HTTP request.
146
+ #
147
+ # @return [Concurrent::Promise] promise which provides async access to http
148
+ # response.
149
+ #
150
+ def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil)
151
+ # Send request
152
+ promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers)
153
+
154
+ promise = promise.then do |response|
155
+ # Defining deserialization method.
156
+ deserialize_method = lambda do |parsed_response|
157
+ end
158
+
159
+ # Waiting for response.
160
+ @client.get_long_running_operation_result(response, deserialize_method)
161
+ end
162
+
163
+ promise
164
+ end
165
+
166
+ #
167
+ # The operation to get the extension.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group.
170
+ # @param vm_name [String] The name of the virtual machine containing the
171
+ # extension.
172
+ # @param vm_extension_name [String] The name of the virtual machine extension.
173
+ # @param expand [String] The expand expression to apply on the operation.
174
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
175
+ # will be added to the HTTP request.
176
+ #
177
+ # @return [VirtualMachineExtension] operation results.
178
+ #
179
+ def get(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil)
180
+ response = get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value!
181
+ response.body unless response.nil?
182
+ end
183
+
184
+ #
185
+ # The operation to get the extension.
186
+ #
187
+ # @param resource_group_name [String] The name of the resource group.
188
+ # @param vm_name [String] The name of the virtual machine containing the
189
+ # extension.
190
+ # @param vm_extension_name [String] The name of the virtual machine extension.
191
+ # @param expand [String] The expand expression to apply on the operation.
192
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
193
+ # will be added to the HTTP request.
194
+ #
195
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
196
+ #
197
+ def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil)
198
+ get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value!
199
+ end
200
+
201
+ #
202
+ # The operation to get the extension.
203
+ #
204
+ # @param resource_group_name [String] The name of the resource group.
205
+ # @param vm_name [String] The name of the virtual machine containing the
206
+ # extension.
207
+ # @param vm_extension_name [String] The name of the virtual machine extension.
208
+ # @param expand [String] The expand expression to apply on the operation.
209
+ # @param [Hash{String => String}] A hash of custom headers that will be added
210
+ # to the HTTP request.
211
+ #
212
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
213
+ #
214
+ def get_async(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil)
215
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
216
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
217
+ fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
218
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
219
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
220
+
221
+
222
+ request_headers = {}
223
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
224
+
225
+ # Set Headers
226
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
227
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
228
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
229
+
230
+ request_url = @base_url || @client.base_url
231
+
232
+ options = {
233
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
234
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
235
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
236
+ headers: request_headers.merge(custom_headers || {}),
237
+ base_url: request_url
238
+ }
239
+ promise = @client.make_request_async(:get, path_template, options)
240
+
241
+ promise = promise.then do |result|
242
+ http_response = result.response
243
+ status_code = http_response.status
244
+ response_content = http_response.body
245
+ unless status_code == 200
246
+ error_model = JSON.load(response_content)
247
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
248
+ end
249
+
250
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
251
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
252
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
253
+ # Deserialize Response
254
+ if status_code == 200
255
+ begin
256
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
257
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtension.mapper()
258
+ result.body = @client.deserialize(result_mapper, parsed_response)
259
+ rescue Exception => e
260
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
261
+ end
262
+ end
263
+
264
+ result
265
+ end
266
+
267
+ promise.execute
268
+ end
269
+
270
+ #
271
+ # The operation to get all extensions of a Virtual Machine.
272
+ #
273
+ # @param resource_group_name [String] The name of the resource group.
274
+ # @param vm_name [String] The name of the virtual machine containing the
275
+ # extension.
276
+ # @param expand [String] The expand expression to apply on the operation.
277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
278
+ # will be added to the HTTP request.
279
+ #
280
+ # @return [VirtualMachineExtensionsListResult] operation results.
281
+ #
282
+ def list(resource_group_name, vm_name, expand:nil, custom_headers:nil)
283
+ response = list_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value!
284
+ response.body unless response.nil?
285
+ end
286
+
287
+ #
288
+ # The operation to get all extensions of a Virtual Machine.
289
+ #
290
+ # @param resource_group_name [String] The name of the resource group.
291
+ # @param vm_name [String] The name of the virtual machine containing the
292
+ # extension.
293
+ # @param expand [String] The expand expression to apply on the operation.
294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
295
+ # will be added to the HTTP request.
296
+ #
297
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
298
+ #
299
+ def list_with_http_info(resource_group_name, vm_name, expand:nil, custom_headers:nil)
300
+ list_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value!
301
+ end
302
+
303
+ #
304
+ # The operation to get all extensions of a Virtual Machine.
305
+ #
306
+ # @param resource_group_name [String] The name of the resource group.
307
+ # @param vm_name [String] The name of the virtual machine containing the
308
+ # extension.
309
+ # @param expand [String] The expand expression to apply on the operation.
310
+ # @param [Hash{String => String}] A hash of custom headers that will be added
311
+ # to the HTTP request.
312
+ #
313
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
314
+ #
315
+ def list_async(resource_group_name, vm_name, expand:nil, custom_headers:nil)
316
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
317
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
318
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
319
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
320
+
321
+
322
+ request_headers = {}
323
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
324
+
325
+ # Set Headers
326
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
327
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
328
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'
329
+
330
+ request_url = @base_url || @client.base_url
331
+
332
+ options = {
333
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
334
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'subscriptionId' => @client.subscription_id},
335
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
336
+ headers: request_headers.merge(custom_headers || {}),
337
+ base_url: request_url
338
+ }
339
+ promise = @client.make_request_async(:get, path_template, options)
340
+
341
+ promise = promise.then do |result|
342
+ http_response = result.response
343
+ status_code = http_response.status
344
+ response_content = http_response.body
345
+ unless status_code == 200
346
+ error_model = JSON.load(response_content)
347
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
348
+ end
349
+
350
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
351
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
352
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
353
+ # Deserialize Response
354
+ if status_code == 200
355
+ begin
356
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
357
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtensionsListResult.mapper()
358
+ result.body = @client.deserialize(result_mapper, parsed_response)
359
+ rescue Exception => e
360
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
361
+ end
362
+ end
363
+
364
+ result
365
+ end
366
+
367
+ promise.execute
368
+ end
369
+
370
+ #
371
+ # The operation to create or update the extension.
372
+ #
373
+ # @param resource_group_name [String] The name of the resource group.
374
+ # @param vm_name [String] The name of the virtual machine where the extension
375
+ # should be created or updated.
376
+ # @param vm_extension_name [String] The name of the virtual machine extension.
377
+ # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
378
+ # the Create Virtual Machine Extension operation.
379
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
380
+ # will be added to the HTTP request.
381
+ #
382
+ # @return [VirtualMachineExtension] operation results.
383
+ #
384
+ def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
385
+ response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
386
+ response.body unless response.nil?
387
+ end
388
+
389
+ #
390
+ # The operation to create or update the extension.
391
+ #
392
+ # @param resource_group_name [String] The name of the resource group.
393
+ # @param vm_name [String] The name of the virtual machine where the extension
394
+ # should be created or updated.
395
+ # @param vm_extension_name [String] The name of the virtual machine extension.
396
+ # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
397
+ # the Create Virtual Machine Extension operation.
398
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
399
+ # will be added to the HTTP request.
400
+ #
401
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
402
+ #
403
+ def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
404
+ begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
405
+ end
406
+
407
+ #
408
+ # The operation to create or update the extension.
409
+ #
410
+ # @param resource_group_name [String] The name of the resource group.
411
+ # @param vm_name [String] The name of the virtual machine where the extension
412
+ # should be created or updated.
413
+ # @param vm_extension_name [String] The name of the virtual machine extension.
414
+ # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
415
+ # the Create Virtual Machine Extension operation.
416
+ # @param [Hash{String => String}] A hash of custom headers that will be added
417
+ # to the HTTP request.
418
+ #
419
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
420
+ #
421
+ def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
422
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
423
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
424
+ fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
425
+ fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
426
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
427
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
428
+
429
+
430
+ request_headers = {}
431
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
432
+
433
+ # Set Headers
434
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
435
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
436
+
437
+ # Serialize Request
438
+ request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtension.mapper()
439
+ request_content = @client.serialize(request_mapper, extension_parameters)
440
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
441
+
442
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
443
+
444
+ request_url = @base_url || @client.base_url
445
+
446
+ options = {
447
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
448
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
449
+ query_params: {'api-version' => @client.api_version},
450
+ body: request_content,
451
+ headers: request_headers.merge(custom_headers || {}),
452
+ base_url: request_url
453
+ }
454
+ promise = @client.make_request_async(:put, path_template, options)
455
+
456
+ promise = promise.then do |result|
457
+ http_response = result.response
458
+ status_code = http_response.status
459
+ response_content = http_response.body
460
+ unless status_code == 200 || status_code == 201
461
+ error_model = JSON.load(response_content)
462
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
463
+ end
464
+
465
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
466
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
467
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
468
+ # Deserialize Response
469
+ if status_code == 200
470
+ begin
471
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
472
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtension.mapper()
473
+ result.body = @client.deserialize(result_mapper, parsed_response)
474
+ rescue Exception => e
475
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
476
+ end
477
+ end
478
+ # Deserialize Response
479
+ if status_code == 201
480
+ begin
481
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
482
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtension.mapper()
483
+ result.body = @client.deserialize(result_mapper, parsed_response)
484
+ rescue Exception => e
485
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
486
+ end
487
+ end
488
+
489
+ result
490
+ end
491
+
492
+ promise.execute
493
+ end
494
+
495
+ #
496
+ # The operation to update the extension.
497
+ #
498
+ # @param resource_group_name [String] The name of the resource group.
499
+ # @param vm_name [String] The name of the virtual machine where the extension
500
+ # should be updated.
501
+ # @param vm_extension_name [String] The name of the virtual machine extension.
502
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
503
+ # supplied to the Update Virtual Machine Extension operation.
504
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
505
+ # will be added to the HTTP request.
506
+ #
507
+ # @return [VirtualMachineExtension] operation results.
508
+ #
509
+ def begin_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
510
+ response = begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
511
+ response.body unless response.nil?
512
+ end
513
+
514
+ #
515
+ # The operation to update the extension.
516
+ #
517
+ # @param resource_group_name [String] The name of the resource group.
518
+ # @param vm_name [String] The name of the virtual machine where the extension
519
+ # should be updated.
520
+ # @param vm_extension_name [String] The name of the virtual machine extension.
521
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
522
+ # supplied to the Update Virtual Machine Extension operation.
523
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
524
+ # will be added to the HTTP request.
525
+ #
526
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
527
+ #
528
+ def begin_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
529
+ begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
530
+ end
531
+
532
+ #
533
+ # The operation to update the extension.
534
+ #
535
+ # @param resource_group_name [String] The name of the resource group.
536
+ # @param vm_name [String] The name of the virtual machine where the extension
537
+ # should be updated.
538
+ # @param vm_extension_name [String] The name of the virtual machine extension.
539
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
540
+ # supplied to the Update Virtual Machine Extension operation.
541
+ # @param [Hash{String => String}] A hash of custom headers that will be added
542
+ # to the HTTP request.
543
+ #
544
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
545
+ #
546
+ def begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
547
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
548
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
549
+ fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
550
+ fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
551
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
552
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
553
+
554
+
555
+ request_headers = {}
556
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
557
+
558
+ # Set Headers
559
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
560
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
561
+
562
+ # Serialize Request
563
+ request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtensionUpdate.mapper()
564
+ request_content = @client.serialize(request_mapper, extension_parameters)
565
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
566
+
567
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
568
+
569
+ request_url = @base_url || @client.base_url
570
+
571
+ options = {
572
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
573
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
574
+ query_params: {'api-version' => @client.api_version},
575
+ body: request_content,
576
+ headers: request_headers.merge(custom_headers || {}),
577
+ base_url: request_url
578
+ }
579
+ promise = @client.make_request_async(:patch, path_template, options)
580
+
581
+ promise = promise.then do |result|
582
+ http_response = result.response
583
+ status_code = http_response.status
584
+ response_content = http_response.body
585
+ unless status_code == 200
586
+ error_model = JSON.load(response_content)
587
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
588
+ end
589
+
590
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
591
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
592
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
593
+ # Deserialize Response
594
+ if status_code == 200
595
+ begin
596
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
597
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineExtension.mapper()
598
+ result.body = @client.deserialize(result_mapper, parsed_response)
599
+ rescue Exception => e
600
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
601
+ end
602
+ end
603
+
604
+ result
605
+ end
606
+
607
+ promise.execute
608
+ end
609
+
610
+ #
611
+ # The operation to delete the extension.
612
+ #
613
+ # @param resource_group_name [String] The name of the resource group.
614
+ # @param vm_name [String] The name of the virtual machine where the extension
615
+ # should be deleted.
616
+ # @param vm_extension_name [String] The name of the virtual machine extension.
617
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
618
+ # will be added to the HTTP request.
619
+ #
620
+ #
621
+ def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil)
622
+ response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value!
623
+ nil
624
+ end
625
+
626
+ #
627
+ # The operation to delete the extension.
628
+ #
629
+ # @param resource_group_name [String] The name of the resource group.
630
+ # @param vm_name [String] The name of the virtual machine where the extension
631
+ # should be deleted.
632
+ # @param vm_extension_name [String] The name of the virtual machine extension.
633
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
634
+ # will be added to the HTTP request.
635
+ #
636
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
637
+ #
638
+ def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers:nil)
639
+ begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value!
640
+ end
641
+
642
+ #
643
+ # The operation to delete the extension.
644
+ #
645
+ # @param resource_group_name [String] The name of the resource group.
646
+ # @param vm_name [String] The name of the virtual machine where the extension
647
+ # should be deleted.
648
+ # @param vm_extension_name [String] The name of the virtual machine extension.
649
+ # @param [Hash{String => String}] A hash of custom headers that will be added
650
+ # to the HTTP request.
651
+ #
652
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
653
+ #
654
+ def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil)
655
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
656
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
657
+ fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
658
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
659
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
660
+
661
+
662
+ request_headers = {}
663
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
664
+
665
+ # Set Headers
666
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
667
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
668
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
669
+
670
+ request_url = @base_url || @client.base_url
671
+
672
+ options = {
673
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
674
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
675
+ query_params: {'api-version' => @client.api_version},
676
+ headers: request_headers.merge(custom_headers || {}),
677
+ base_url: request_url
678
+ }
679
+ promise = @client.make_request_async(:delete, path_template, options)
680
+
681
+ promise = promise.then do |result|
682
+ http_response = result.response
683
+ status_code = http_response.status
684
+ response_content = http_response.body
685
+ unless status_code == 200 || status_code == 202 || status_code == 204
686
+ error_model = JSON.load(response_content)
687
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
688
+ end
689
+
690
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
691
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
692
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
693
+
694
+ result
695
+ end
696
+
697
+ promise.execute
698
+ end
699
+
700
+ end
701
+ end