azure_mgmt_compute 0.19.3 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (337) 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-04-01/generated/azure_mgmt_compute/resource_skus.rb +8 -4
  15. data/lib/2019-07-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  16. data/lib/2019-11-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  17. data/lib/2019-12-01/generated/azure_mgmt_compute/availability_sets.rb +4 -0
  18. data/lib/2019-12-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  19. data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb +1 -1
  20. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +2 -2
  21. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +2 -2
  22. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +2 -2
  23. data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +2 -2
  24. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +28 -8
  25. data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +8 -6
  26. data/lib/2020-06-01/generated/azure_mgmt_compute.rb +276 -0
  27. data/lib/2020-06-01/generated/azure_mgmt_compute/availability_sets.rb +920 -0
  28. data/lib/2020-06-01/generated/azure_mgmt_compute/compute_management_client.rb +212 -0
  29. data/lib/2020-06-01/generated/azure_mgmt_compute/dedicated_host_groups.rb +861 -0
  30. data/lib/2020-06-01/generated/azure_mgmt_compute/dedicated_hosts.rb +806 -0
  31. data/lib/2020-06-01/generated/azure_mgmt_compute/images.rb +975 -0
  32. data/lib/2020-06-01/generated/azure_mgmt_compute/log_analytics.rb +341 -0
  33. data/lib/2020-06-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
  34. data/lib/2020-06-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
  35. data/lib/2020-06-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
  36. data/lib/2020-06-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
  37. data/lib/2020-06-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
  38. data/lib/2020-06-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +63 -0
  39. data/lib/2020-06-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
  40. data/lib/2020-06-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb +64 -0
  41. data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
  42. data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
  43. data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
  44. data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
  45. data/lib/2020-06-01/generated/azure_mgmt_compute/models/available_patch_summary.rb +143 -0
  46. data/lib/2020-06-01/generated/azure_mgmt_compute/models/billing_profile.rb +60 -0
  47. data/lib/2020-06-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +63 -0
  48. data/lib/2020-06-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +78 -0
  49. data/lib/2020-06-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
  50. data/lib/2020-06-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
  51. data/lib/2020-06-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
  52. data/lib/2020-06-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
  53. data/lib/2020-06-01/generated/azure_mgmt_compute/models/data_disk.rb +201 -0
  54. data/lib/2020-06-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
  55. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host.rb +219 -0
  56. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb +60 -0
  57. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_available_capacity.rb +57 -0
  58. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group.rb +178 -0
  59. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group_instance_view.rb +57 -0
  60. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group_list_result.rb +100 -0
  61. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group_update.rb +141 -0
  62. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view.rb +81 -0
  63. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view_with_name.rb +84 -0
  64. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_license_types.rb +17 -0
  65. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_list_result.rb +100 -0
  66. data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_update.rb +171 -0
  67. data/lib/2020-06-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
  68. data/lib/2020-06-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
  69. data/lib/2020-06-01/generated/azure_mgmt_compute/models/diff_disk_placement.rb +16 -0
  70. data/lib/2020-06-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +69 -0
  71. data/lib/2020-06-01/generated/azure_mgmt_compute/models/disallowed_configuration.rb +47 -0
  72. data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
  73. data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_encryption_set_parameters.rb +46 -0
  74. data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
  75. data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
  76. data/lib/2020-06-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
  77. data/lib/2020-06-01/generated/azure_mgmt_compute/models/hyper_vgeneration_type.rb +16 -0
  78. data/lib/2020-06-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
  79. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image.rb +139 -0
  80. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_data_disk.rb +108 -0
  81. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb +126 -0
  82. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
  83. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_osdisk.rb +123 -0
  84. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb +114 -0
  85. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
  86. data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
  87. data/lib/2020-06-01/generated/azure_mgmt_compute/models/in_guest_patch_mode.rb +17 -0
  88. data/lib/2020-06-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
  89. data/lib/2020-06-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
  90. data/lib/2020-06-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  91. data/lib/2020-06-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
  92. data/lib/2020-06-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
  93. data/lib/2020-06-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
  94. data/lib/2020-06-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
  95. data/lib/2020-06-01/generated/azure_mgmt_compute/models/last_patch_installation_summary.rb +211 -0
  96. data/lib/2020-06-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
  97. data/lib/2020-06-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
  98. data/lib/2020-06-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
  99. data/lib/2020-06-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
  100. data/lib/2020-06-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
  101. data/lib/2020-06-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
  102. data/lib/2020-06-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
  103. data/lib/2020-06-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +70 -0
  104. data/lib/2020-06-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
  105. data/lib/2020-06-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
  106. data/lib/2020-06-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
  107. data/lib/2020-06-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  108. data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_names.rb +16 -0
  109. data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_state.rb +17 -0
  110. data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_state_action.rb +16 -0
  111. data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_state_input.rb +59 -0
  112. data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_summary.rb +61 -0
  113. data/lib/2020-06-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
  114. data/lib/2020-06-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
  115. data/lib/2020-06-01/generated/azure_mgmt_compute/models/osprofile.rb +204 -0
  116. data/lib/2020-06-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
  117. data/lib/2020-06-01/generated/azure_mgmt_compute/models/patch_assessment_state.rb +20 -0
  118. data/lib/2020-06-01/generated/azure_mgmt_compute/models/patch_operation_status.rb +18 -0
  119. data/lib/2020-06-01/generated/azure_mgmt_compute/models/patch_settings.rb +59 -0
  120. data/lib/2020-06-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
  121. data/lib/2020-06-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
  122. data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +180 -0
  123. data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
  124. data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
  125. data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
  126. data/lib/2020-06-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
  127. data/lib/2020-06-01/generated/azure_mgmt_compute/models/reboot_status.rb +19 -0
  128. data/lib/2020-06-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
  129. data/lib/2020-06-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
  130. data/lib/2020-06-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
  131. data/lib/2020-06-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
  132. data/lib/2020-06-01/generated/azure_mgmt_compute/models/retrieve_boot_diagnostics_data_result.rb +59 -0
  133. data/lib/2020-06-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
  134. data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
  135. data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
  136. data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
  137. data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
  138. data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
  139. data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
  140. data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
  141. data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
  142. data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
  143. data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
  144. data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
  145. data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
  146. data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
  147. data/lib/2020-06-01/generated/azure_mgmt_compute/models/scale_in_policy.rb +71 -0
  148. data/lib/2020-06-01/generated/azure_mgmt_compute/models/scheduled_events_profile.rb +49 -0
  149. data/lib/2020-06-01/generated/azure_mgmt_compute/models/security_profile.rb +52 -0
  150. data/lib/2020-06-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
  151. data/lib/2020-06-01/generated/azure_mgmt_compute/models/sku.rb +73 -0
  152. data/lib/2020-06-01/generated/azure_mgmt_compute/models/software_update_reboot_behavior.rb +17 -0
  153. data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
  154. data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
  155. data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb +73 -0
  156. data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key_resource.rb +102 -0
  157. data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key_update_resource.rb +67 -0
  158. data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_keys_group_list_result.rb +100 -0
  159. data/lib/2020-06-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
  160. data/lib/2020-06-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
  161. data/lib/2020-06-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
  162. data/lib/2020-06-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
  163. data/lib/2020-06-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
  164. data/lib/2020-06-01/generated/azure_mgmt_compute/models/sub_resource_with_colocation_status.rb +57 -0
  165. data/lib/2020-06-01/generated/azure_mgmt_compute/models/terminate_notification_profile.rb +62 -0
  166. data/lib/2020-06-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
  167. data/lib/2020-06-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
  168. data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
  169. data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
  170. data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
  171. data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
  172. data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
  173. data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
  174. data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
  175. data/lib/2020-06-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
  176. data/lib/2020-06-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
  177. data/lib/2020-06-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
  178. data/lib/2020-06-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
  179. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
  180. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb +454 -0
  181. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
  182. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb +152 -0
  183. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
  184. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
  185. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
  186. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +208 -0
  187. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
  188. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
  189. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
  190. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +147 -0
  191. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  192. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
  193. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
  194. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
  195. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +155 -0
  196. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
  197. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +258 -0
  198. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
  199. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_patch_status.rb +61 -0
  200. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +17 -0
  201. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +49 -0
  202. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +332 -0
  203. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +153 -0
  204. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +197 -0
  205. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
  206. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +70 -0
  207. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_update.rb +198 -0
  208. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
  209. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
  210. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +113 -0
  211. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
  212. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
  213. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
  214. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
  215. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
  216. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
  217. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
  218. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +63 -0
  219. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
  220. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
  221. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
  222. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
  223. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
  224. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +120 -0
  225. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
  226. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
  227. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_scale_in_rules.rb +17 -0
  228. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
  229. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
  230. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  231. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
  232. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +210 -0
  233. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +190 -0
  234. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
  235. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +72 -0
  236. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
  237. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
  238. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
  239. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
  240. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +151 -0
  241. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +397 -0
  242. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
  243. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
  244. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
  245. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +211 -0
  246. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
  247. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
  248. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +189 -0
  249. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
  250. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
  251. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
  252. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
  253. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
  254. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_software_patch_properties.rb +173 -0
  255. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
  256. data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +397 -0
  257. data/lib/2020-06-01/generated/azure_mgmt_compute/models/vm_disk_types.rb +16 -0
  258. data/lib/2020-06-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
  259. data/lib/2020-06-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
  260. data/lib/2020-06-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
  261. data/lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb +127 -0
  262. data/lib/2020-06-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
  263. data/lib/2020-06-01/generated/azure_mgmt_compute/operations.rb +109 -0
  264. data/lib/2020-06-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +846 -0
  265. data/lib/2020-06-01/generated/azure_mgmt_compute/ssh_public_keys.rb +939 -0
  266. data/lib/2020-06-01/generated/azure_mgmt_compute/usage_operations.rb +241 -0
  267. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +360 -0
  268. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +701 -0
  269. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_images.rb +600 -0
  270. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +322 -0
  271. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +821 -0
  272. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +498 -0
  273. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vmextensions.rb +709 -0
  274. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +2220 -0
  275. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3290 -0
  276. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +122 -0
  277. data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machines.rb +3302 -0
  278. data/lib/2020-06-30/generated/azure_mgmt_compute.rb +80 -0
  279. data/lib/2020-06-30/generated/azure_mgmt_compute/compute_management_client.rb +145 -0
  280. data/lib/2020-06-30/generated/azure_mgmt_compute/disk_accesses.rb +1120 -0
  281. data/lib/2020-06-30/generated/azure_mgmt_compute/disk_encryption_sets.rb +1236 -0
  282. data/lib/2020-06-30/generated/azure_mgmt_compute/disks.rb +1294 -0
  283. data/lib/2020-06-30/generated/azure_mgmt_compute/models/access_level.rb +17 -0
  284. data/lib/2020-06-30/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
  285. data/lib/2020-06-30/generated/azure_mgmt_compute/models/api_error.rb +100 -0
  286. data/lib/2020-06-30/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
  287. data/lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb +150 -0
  288. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk.rb +422 -0
  289. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_access.rb +133 -0
  290. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_access_list.rb +100 -0
  291. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_access_update.rb +54 -0
  292. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_create_option.rb +21 -0
  293. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set.rb +160 -0
  294. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_identity_type.rb +15 -0
  295. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_list.rb +100 -0
  296. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_type.rb +16 -0
  297. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_update.rb +79 -0
  298. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
  299. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_sku.rb +61 -0
  300. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_state.rb +20 -0
  301. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_storage_account_types.rb +18 -0
  302. data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_update.rb +225 -0
  303. data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption.rb +60 -0
  304. data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_set_identity.rb +78 -0
  305. data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb +85 -0
  306. data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb +62 -0
  307. data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_type.rb +17 -0
  308. data/lib/2020-06-30/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
  309. data/lib/2020-06-30/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
  310. data/lib/2020-06-30/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
  311. data/lib/2020-06-30/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
  312. data/lib/2020-06-30/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
  313. data/lib/2020-06-30/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
  314. data/lib/2020-06-30/generated/azure_mgmt_compute/models/network_access_policy.rb +17 -0
  315. data/lib/2020-06-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  316. data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint.rb +47 -0
  317. data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint_connection.rb +110 -0
  318. data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint_connection_provisioning_state.rb +18 -0
  319. data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint_service_connection_status.rb +17 -0
  320. data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_link_resource.rb +123 -0
  321. data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_link_resource_list_result.rb +55 -0
  322. data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_link_service_connection_state.rb +72 -0
  323. data/lib/2020-06-30/generated/azure_mgmt_compute/models/resource.rb +110 -0
  324. data/lib/2020-06-30/generated/azure_mgmt_compute/models/resource_uri_list.rb +100 -0
  325. data/lib/2020-06-30/generated/azure_mgmt_compute/models/share_info_element.rb +49 -0
  326. data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot.rb +290 -0
  327. data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
  328. data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_sku.rb +60 -0
  329. data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
  330. data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb +145 -0
  331. data/lib/2020-06-30/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
  332. data/lib/2020-06-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
  333. data/lib/2020-06-30/generated/azure_mgmt_compute/snapshots.rb +1294 -0
  334. data/lib/azure_mgmt_compute.rb +15 -13
  335. data/lib/profiles/latest/modules/compute_profile_module.rb +961 -805
  336. data/lib/version.rb +1 -1
  337. metadata +311 -3
@@ -0,0 +1,600 @@
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 VirtualMachineImages
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the VirtualMachineImages 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
+ # Gets a virtual machine image.
26
+ #
27
+ # @param location [String] The name of a supported Azure region.
28
+ # @param publisher_name [String] A valid image publisher.
29
+ # @param offer [String] A valid image publisher offer.
30
+ # @param skus [String] A valid image SKU.
31
+ # @param version [String] A valid image SKU version.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [VirtualMachineImage] operation results.
36
+ #
37
+ def get(location, publisher_name, offer, skus, version, custom_headers:nil)
38
+ response = get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # Gets a virtual machine image.
44
+ #
45
+ # @param location [String] The name of a supported Azure region.
46
+ # @param publisher_name [String] A valid image publisher.
47
+ # @param offer [String] A valid image publisher offer.
48
+ # @param skus [String] A valid image SKU.
49
+ # @param version [String] A valid image SKU version.
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers:nil)
56
+ get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Gets a virtual machine image.
61
+ #
62
+ # @param location [String] The name of a supported Azure region.
63
+ # @param publisher_name [String] A valid image publisher.
64
+ # @param offer [String] A valid image publisher offer.
65
+ # @param skus [String] A valid image SKU.
66
+ # @param version [String] A valid image SKU version.
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def get_async(location, publisher_name, offer, skus, version, custom_headers:nil)
73
+ fail ArgumentError, 'location is nil' if location.nil?
74
+ fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
75
+ fail ArgumentError, 'offer is nil' if offer.nil?
76
+ fail ArgumentError, 'skus is nil' if skus.nil?
77
+ fail ArgumentError, 'version is nil' if version.nil?
78
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
79
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
80
+
81
+
82
+ request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
+
85
+ # Set Headers
86
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
87
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
88
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}'
89
+
90
+ request_url = @base_url || @client.base_url
91
+
92
+ options = {
93
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
94
+ path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'version' => version,'subscriptionId' => @client.subscription_id},
95
+ query_params: {'api-version' => @client.api_version},
96
+ headers: request_headers.merge(custom_headers || {}),
97
+ base_url: request_url
98
+ }
99
+ promise = @client.make_request_async(:get, path_template, options)
100
+
101
+ promise = promise.then do |result|
102
+ http_response = result.response
103
+ status_code = http_response.status
104
+ response_content = http_response.body
105
+ unless status_code == 200
106
+ error_model = JSON.load(response_content)
107
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
108
+ end
109
+
110
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
111
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
112
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
113
+ # Deserialize Response
114
+ if status_code == 200
115
+ begin
116
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
+ result_mapper = Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineImage.mapper()
118
+ result.body = @client.deserialize(result_mapper, parsed_response)
119
+ rescue Exception => e
120
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
121
+ end
122
+ end
123
+
124
+ result
125
+ end
126
+
127
+ promise.execute
128
+ end
129
+
130
+ #
131
+ # Gets a list of all virtual machine image versions for the specified location,
132
+ # publisher, offer, and SKU.
133
+ #
134
+ # @param location [String] The name of a supported Azure region.
135
+ # @param publisher_name [String] A valid image publisher.
136
+ # @param offer [String] A valid image publisher offer.
137
+ # @param skus [String] A valid image SKU.
138
+ # @param expand [String] The expand expression to apply on the operation.
139
+ # @param top [Integer]
140
+ # @param orderby [String]
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
143
+ #
144
+ # @return [Array] operation results.
145
+ #
146
+ def list(location, publisher_name, offer, skus, expand:nil, top:nil, orderby:nil, custom_headers:nil)
147
+ response = list_async(location, publisher_name, offer, skus, expand:expand, top:top, orderby:orderby, custom_headers:custom_headers).value!
148
+ response.body unless response.nil?
149
+ end
150
+
151
+ #
152
+ # Gets a list of all virtual machine image versions for the specified location,
153
+ # publisher, offer, and SKU.
154
+ #
155
+ # @param location [String] The name of a supported Azure region.
156
+ # @param publisher_name [String] A valid image publisher.
157
+ # @param offer [String] A valid image publisher offer.
158
+ # @param skus [String] A valid image SKU.
159
+ # @param expand [String] The expand expression to apply on the operation.
160
+ # @param top [Integer]
161
+ # @param orderby [String]
162
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
163
+ # will be added to the HTTP request.
164
+ #
165
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
166
+ #
167
+ def list_with_http_info(location, publisher_name, offer, skus, expand:nil, top:nil, orderby:nil, custom_headers:nil)
168
+ list_async(location, publisher_name, offer, skus, expand:expand, top:top, orderby:orderby, custom_headers:custom_headers).value!
169
+ end
170
+
171
+ #
172
+ # Gets a list of all virtual machine image versions for the specified location,
173
+ # publisher, offer, and SKU.
174
+ #
175
+ # @param location [String] The name of a supported Azure region.
176
+ # @param publisher_name [String] A valid image publisher.
177
+ # @param offer [String] A valid image publisher offer.
178
+ # @param skus [String] A valid image SKU.
179
+ # @param expand [String] The expand expression to apply on the operation.
180
+ # @param top [Integer]
181
+ # @param orderby [String]
182
+ # @param [Hash{String => String}] A hash of custom headers that will be added
183
+ # to the HTTP request.
184
+ #
185
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
186
+ #
187
+ def list_async(location, publisher_name, offer, skus, expand:nil, top:nil, orderby:nil, custom_headers:nil)
188
+ fail ArgumentError, 'location is nil' if location.nil?
189
+ fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
190
+ fail ArgumentError, 'offer is nil' if offer.nil?
191
+ fail ArgumentError, 'skus is nil' if skus.nil?
192
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
193
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
194
+
195
+
196
+ request_headers = {}
197
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
198
+
199
+ # Set Headers
200
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
201
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
202
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions'
203
+
204
+ request_url = @base_url || @client.base_url
205
+
206
+ options = {
207
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
208
+ path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'subscriptionId' => @client.subscription_id},
209
+ query_params: {'$expand' => expand,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
210
+ headers: request_headers.merge(custom_headers || {}),
211
+ base_url: request_url
212
+ }
213
+ promise = @client.make_request_async(:get, path_template, options)
214
+
215
+ promise = promise.then do |result|
216
+ http_response = result.response
217
+ status_code = http_response.status
218
+ response_content = http_response.body
219
+ unless status_code == 200
220
+ error_model = JSON.load(response_content)
221
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
222
+ end
223
+
224
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
225
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
226
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
227
+ # Deserialize Response
228
+ if status_code == 200
229
+ begin
230
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
231
+ result_mapper = {
232
+ client_side_validation: true,
233
+ required: false,
234
+ serialized_name: 'parsed_response',
235
+ type: {
236
+ name: 'Sequence',
237
+ element: {
238
+ client_side_validation: true,
239
+ required: false,
240
+ serialized_name: 'VirtualMachineImageResourceElementType',
241
+ type: {
242
+ name: 'Composite',
243
+ class_name: 'VirtualMachineImageResource'
244
+ }
245
+ }
246
+ }
247
+ }
248
+ result.body = @client.deserialize(result_mapper, parsed_response)
249
+ rescue Exception => e
250
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
251
+ end
252
+ end
253
+
254
+ result
255
+ end
256
+
257
+ promise.execute
258
+ end
259
+
260
+ #
261
+ # Gets a list of virtual machine image offers for the specified location and
262
+ # publisher.
263
+ #
264
+ # @param location [String] The name of a supported Azure region.
265
+ # @param publisher_name [String] A valid image publisher.
266
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
267
+ # will be added to the HTTP request.
268
+ #
269
+ # @return [Array] operation results.
270
+ #
271
+ def list_offers(location, publisher_name, custom_headers:nil)
272
+ response = list_offers_async(location, publisher_name, custom_headers:custom_headers).value!
273
+ response.body unless response.nil?
274
+ end
275
+
276
+ #
277
+ # Gets a list of virtual machine image offers for the specified location and
278
+ # publisher.
279
+ #
280
+ # @param location [String] The name of a supported Azure region.
281
+ # @param publisher_name [String] A valid image publisher.
282
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
283
+ # will be added to the HTTP request.
284
+ #
285
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
286
+ #
287
+ def list_offers_with_http_info(location, publisher_name, custom_headers:nil)
288
+ list_offers_async(location, publisher_name, custom_headers:custom_headers).value!
289
+ end
290
+
291
+ #
292
+ # Gets a list of virtual machine image offers for the specified location and
293
+ # publisher.
294
+ #
295
+ # @param location [String] The name of a supported Azure region.
296
+ # @param publisher_name [String] A valid image publisher.
297
+ # @param [Hash{String => String}] A hash of custom headers that will be added
298
+ # to the HTTP request.
299
+ #
300
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
301
+ #
302
+ def list_offers_async(location, publisher_name, custom_headers:nil)
303
+ fail ArgumentError, 'location is nil' if location.nil?
304
+ fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
305
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
306
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
307
+
308
+
309
+ request_headers = {}
310
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
311
+
312
+ # Set Headers
313
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
314
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
315
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers'
316
+
317
+ request_url = @base_url || @client.base_url
318
+
319
+ options = {
320
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
321
+ path_params: {'location' => location,'publisherName' => publisher_name,'subscriptionId' => @client.subscription_id},
322
+ query_params: {'api-version' => @client.api_version},
323
+ headers: request_headers.merge(custom_headers || {}),
324
+ base_url: request_url
325
+ }
326
+ promise = @client.make_request_async(:get, path_template, options)
327
+
328
+ promise = promise.then do |result|
329
+ http_response = result.response
330
+ status_code = http_response.status
331
+ response_content = http_response.body
332
+ unless status_code == 200
333
+ error_model = JSON.load(response_content)
334
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
335
+ end
336
+
337
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
338
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
339
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
340
+ # Deserialize Response
341
+ if status_code == 200
342
+ begin
343
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
344
+ result_mapper = {
345
+ client_side_validation: true,
346
+ required: false,
347
+ serialized_name: 'parsed_response',
348
+ type: {
349
+ name: 'Sequence',
350
+ element: {
351
+ client_side_validation: true,
352
+ required: false,
353
+ serialized_name: 'VirtualMachineImageResourceElementType',
354
+ type: {
355
+ name: 'Composite',
356
+ class_name: 'VirtualMachineImageResource'
357
+ }
358
+ }
359
+ }
360
+ }
361
+ result.body = @client.deserialize(result_mapper, parsed_response)
362
+ rescue Exception => e
363
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
364
+ end
365
+ end
366
+
367
+ result
368
+ end
369
+
370
+ promise.execute
371
+ end
372
+
373
+ #
374
+ # Gets a list of virtual machine image publishers for the specified Azure
375
+ # location.
376
+ #
377
+ # @param location [String] The name of a supported Azure region.
378
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
379
+ # will be added to the HTTP request.
380
+ #
381
+ # @return [Array] operation results.
382
+ #
383
+ def list_publishers(location, custom_headers:nil)
384
+ response = list_publishers_async(location, custom_headers:custom_headers).value!
385
+ response.body unless response.nil?
386
+ end
387
+
388
+ #
389
+ # Gets a list of virtual machine image publishers for the specified Azure
390
+ # location.
391
+ #
392
+ # @param location [String] The name of a supported Azure region.
393
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
394
+ # will be added to the HTTP request.
395
+ #
396
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
397
+ #
398
+ def list_publishers_with_http_info(location, custom_headers:nil)
399
+ list_publishers_async(location, custom_headers:custom_headers).value!
400
+ end
401
+
402
+ #
403
+ # Gets a list of virtual machine image publishers for the specified Azure
404
+ # location.
405
+ #
406
+ # @param location [String] The name of a supported Azure region.
407
+ # @param [Hash{String => String}] A hash of custom headers that will be added
408
+ # to the HTTP request.
409
+ #
410
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
411
+ #
412
+ def list_publishers_async(location, custom_headers:nil)
413
+ fail ArgumentError, 'location is nil' if location.nil?
414
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
415
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
416
+
417
+
418
+ request_headers = {}
419
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
420
+
421
+ # Set Headers
422
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
423
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
424
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers'
425
+
426
+ request_url = @base_url || @client.base_url
427
+
428
+ options = {
429
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
430
+ path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
431
+ query_params: {'api-version' => @client.api_version},
432
+ headers: request_headers.merge(custom_headers || {}),
433
+ base_url: request_url
434
+ }
435
+ promise = @client.make_request_async(:get, path_template, options)
436
+
437
+ promise = promise.then do |result|
438
+ http_response = result.response
439
+ status_code = http_response.status
440
+ response_content = http_response.body
441
+ unless status_code == 200
442
+ error_model = JSON.load(response_content)
443
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
444
+ end
445
+
446
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
447
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
448
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
449
+ # Deserialize Response
450
+ if status_code == 200
451
+ begin
452
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
453
+ result_mapper = {
454
+ client_side_validation: true,
455
+ required: false,
456
+ serialized_name: 'parsed_response',
457
+ type: {
458
+ name: 'Sequence',
459
+ element: {
460
+ client_side_validation: true,
461
+ required: false,
462
+ serialized_name: 'VirtualMachineImageResourceElementType',
463
+ type: {
464
+ name: 'Composite',
465
+ class_name: 'VirtualMachineImageResource'
466
+ }
467
+ }
468
+ }
469
+ }
470
+ result.body = @client.deserialize(result_mapper, parsed_response)
471
+ rescue Exception => e
472
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
473
+ end
474
+ end
475
+
476
+ result
477
+ end
478
+
479
+ promise.execute
480
+ end
481
+
482
+ #
483
+ # Gets a list of virtual machine image SKUs for the specified location,
484
+ # publisher, and offer.
485
+ #
486
+ # @param location [String] The name of a supported Azure region.
487
+ # @param publisher_name [String] A valid image publisher.
488
+ # @param offer [String] A valid image publisher offer.
489
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
490
+ # will be added to the HTTP request.
491
+ #
492
+ # @return [Array] operation results.
493
+ #
494
+ def list_skus(location, publisher_name, offer, custom_headers:nil)
495
+ response = list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value!
496
+ response.body unless response.nil?
497
+ end
498
+
499
+ #
500
+ # Gets a list of virtual machine image SKUs for the specified location,
501
+ # publisher, and offer.
502
+ #
503
+ # @param location [String] The name of a supported Azure region.
504
+ # @param publisher_name [String] A valid image publisher.
505
+ # @param offer [String] A valid image publisher offer.
506
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
507
+ # will be added to the HTTP request.
508
+ #
509
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
510
+ #
511
+ def list_skus_with_http_info(location, publisher_name, offer, custom_headers:nil)
512
+ list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value!
513
+ end
514
+
515
+ #
516
+ # Gets a list of virtual machine image SKUs for the specified location,
517
+ # publisher, and offer.
518
+ #
519
+ # @param location [String] The name of a supported Azure region.
520
+ # @param publisher_name [String] A valid image publisher.
521
+ # @param offer [String] A valid image publisher offer.
522
+ # @param [Hash{String => String}] A hash of custom headers that will be added
523
+ # to the HTTP request.
524
+ #
525
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
526
+ #
527
+ def list_skus_async(location, publisher_name, offer, custom_headers:nil)
528
+ fail ArgumentError, 'location is nil' if location.nil?
529
+ fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
530
+ fail ArgumentError, 'offer is nil' if offer.nil?
531
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
532
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
533
+
534
+
535
+ request_headers = {}
536
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
537
+
538
+ # Set Headers
539
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
540
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
541
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus'
542
+
543
+ request_url = @base_url || @client.base_url
544
+
545
+ options = {
546
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
547
+ path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'subscriptionId' => @client.subscription_id},
548
+ query_params: {'api-version' => @client.api_version},
549
+ headers: request_headers.merge(custom_headers || {}),
550
+ base_url: request_url
551
+ }
552
+ promise = @client.make_request_async(:get, path_template, options)
553
+
554
+ promise = promise.then do |result|
555
+ http_response = result.response
556
+ status_code = http_response.status
557
+ response_content = http_response.body
558
+ unless status_code == 200
559
+ error_model = JSON.load(response_content)
560
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
561
+ end
562
+
563
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
564
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
565
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
566
+ # Deserialize Response
567
+ if status_code == 200
568
+ begin
569
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
570
+ result_mapper = {
571
+ client_side_validation: true,
572
+ required: false,
573
+ serialized_name: 'parsed_response',
574
+ type: {
575
+ name: 'Sequence',
576
+ element: {
577
+ client_side_validation: true,
578
+ required: false,
579
+ serialized_name: 'VirtualMachineImageResourceElementType',
580
+ type: {
581
+ name: 'Composite',
582
+ class_name: 'VirtualMachineImageResource'
583
+ }
584
+ }
585
+ }
586
+ }
587
+ result.body = @client.deserialize(result_mapper, parsed_response)
588
+ rescue Exception => e
589
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
590
+ end
591
+ end
592
+
593
+ result
594
+ end
595
+
596
+ promise.execute
597
+ end
598
+
599
+ end
600
+ end