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,911 @@
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 GalleryImageVersions
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the GalleryImageVersions 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
+ # Create or update a gallery Image Version.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
29
+ # the Image Definition resides.
30
+ # @param gallery_image_name [String] The name of the gallery Image Definition
31
+ # in which the Image Version is to be created.
32
+ # @param gallery_image_version_name [String] The name of the gallery Image
33
+ # Version to be created. Needs to follow semantic version name pattern: The
34
+ # allowed characters are digit and period. Digits must be within the range of a
35
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
36
+ # @param gallery_image_version [GalleryImageVersion] Parameters supplied to the
37
+ # create or update gallery Image Version operation.
38
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
39
+ # will be added to the HTTP request.
40
+ #
41
+ # @return [GalleryImageVersion] operation results.
42
+ #
43
+ def create_or_update(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
44
+ response = create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers).value!
45
+ response.body unless response.nil?
46
+ end
47
+
48
+ #
49
+ # @param resource_group_name [String] The name of the resource group.
50
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
51
+ # the Image Definition resides.
52
+ # @param gallery_image_name [String] The name of the gallery Image Definition
53
+ # in which the Image Version is to be created.
54
+ # @param gallery_image_version_name [String] The name of the gallery Image
55
+ # Version to be created. Needs to follow semantic version name pattern: The
56
+ # allowed characters are digit and period. Digits must be within the range of a
57
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
58
+ # @param gallery_image_version [GalleryImageVersion] Parameters supplied to the
59
+ # create or update gallery Image Version operation.
60
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
61
+ # will be added to the HTTP request.
62
+ #
63
+ # @return [Concurrent::Promise] promise which provides async access to http
64
+ # response.
65
+ #
66
+ def create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
67
+ # Send request
68
+ promise = begin_create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers)
69
+
70
+ promise = promise.then do |response|
71
+ # Defining deserialization method.
72
+ deserialize_method = lambda do |parsed_response|
73
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
74
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
75
+ end
76
+
77
+ # Waiting for response.
78
+ @client.get_long_running_operation_result(response, deserialize_method)
79
+ end
80
+
81
+ promise
82
+ end
83
+
84
+ #
85
+ # Update a gallery Image Version.
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group.
88
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
89
+ # the Image Definition resides.
90
+ # @param gallery_image_name [String] The name of the gallery Image Definition
91
+ # in which the Image Version is to be updated.
92
+ # @param gallery_image_version_name [String] The name of the gallery Image
93
+ # Version to be updated. Needs to follow semantic version name pattern: The
94
+ # allowed characters are digit and period. Digits must be within the range of a
95
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
96
+ # @param gallery_image_version [GalleryImageVersionUpdate] Parameters supplied
97
+ # to the update gallery Image Version operation.
98
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
99
+ # will be added to the HTTP request.
100
+ #
101
+ # @return [GalleryImageVersion] operation results.
102
+ #
103
+ def update(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
104
+ response = update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers).value!
105
+ response.body unless response.nil?
106
+ end
107
+
108
+ #
109
+ # @param resource_group_name [String] The name of the resource group.
110
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
111
+ # the Image Definition resides.
112
+ # @param gallery_image_name [String] The name of the gallery Image Definition
113
+ # in which the Image Version is to be updated.
114
+ # @param gallery_image_version_name [String] The name of the gallery Image
115
+ # Version to be updated. Needs to follow semantic version name pattern: The
116
+ # allowed characters are digit and period. Digits must be within the range of a
117
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
118
+ # @param gallery_image_version [GalleryImageVersionUpdate] Parameters supplied
119
+ # to the update gallery Image Version operation.
120
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
121
+ # will be added to the HTTP request.
122
+ #
123
+ # @return [Concurrent::Promise] promise which provides async access to http
124
+ # response.
125
+ #
126
+ def update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
127
+ # Send request
128
+ promise = begin_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers)
129
+
130
+ promise = promise.then do |response|
131
+ # Defining deserialization method.
132
+ deserialize_method = lambda do |parsed_response|
133
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
134
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
135
+ end
136
+
137
+ # Waiting for response.
138
+ @client.get_long_running_operation_result(response, deserialize_method)
139
+ end
140
+
141
+ promise
142
+ end
143
+
144
+ #
145
+ # Retrieves information about a gallery Image Version.
146
+ #
147
+ # @param resource_group_name [String] The name of the resource group.
148
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
149
+ # the Image Definition resides.
150
+ # @param gallery_image_name [String] The name of the gallery Image Definition
151
+ # in which the Image Version resides.
152
+ # @param gallery_image_version_name [String] The name of the gallery Image
153
+ # Version to be retrieved.
154
+ # @param expand [ReplicationStatusTypes] The expand expression to apply on the
155
+ # operation. Possible values include: 'ReplicationStatus'
156
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
157
+ # will be added to the HTTP request.
158
+ #
159
+ # @return [GalleryImageVersion] operation results.
160
+ #
161
+ def get(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, expand:nil, custom_headers:nil)
162
+ response = get_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, expand:expand, custom_headers:custom_headers).value!
163
+ response.body unless response.nil?
164
+ end
165
+
166
+ #
167
+ # Retrieves information about a gallery Image Version.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group.
170
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
171
+ # the Image Definition resides.
172
+ # @param gallery_image_name [String] The name of the gallery Image Definition
173
+ # in which the Image Version resides.
174
+ # @param gallery_image_version_name [String] The name of the gallery Image
175
+ # Version to be retrieved.
176
+ # @param expand [ReplicationStatusTypes] The expand expression to apply on the
177
+ # operation. Possible values include: 'ReplicationStatus'
178
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
179
+ # will be added to the HTTP request.
180
+ #
181
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
182
+ #
183
+ def get_with_http_info(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, expand:nil, custom_headers:nil)
184
+ get_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, expand:expand, custom_headers:custom_headers).value!
185
+ end
186
+
187
+ #
188
+ # Retrieves information about a gallery Image Version.
189
+ #
190
+ # @param resource_group_name [String] The name of the resource group.
191
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
192
+ # the Image Definition resides.
193
+ # @param gallery_image_name [String] The name of the gallery Image Definition
194
+ # in which the Image Version resides.
195
+ # @param gallery_image_version_name [String] The name of the gallery Image
196
+ # Version to be retrieved.
197
+ # @param expand [ReplicationStatusTypes] The expand expression to apply on the
198
+ # operation. Possible values include: 'ReplicationStatus'
199
+ # @param [Hash{String => String}] A hash of custom headers that will be added
200
+ # to the HTTP request.
201
+ #
202
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
203
+ #
204
+ def get_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, expand:nil, custom_headers:nil)
205
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
206
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
207
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
208
+ fail ArgumentError, 'gallery_image_name is nil' if gallery_image_name.nil?
209
+ fail ArgumentError, 'gallery_image_version_name is nil' if gallery_image_version_name.nil?
210
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
211
+
212
+
213
+ request_headers = {}
214
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
215
+
216
+ # Set Headers
217
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
218
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
219
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}'
220
+
221
+ request_url = @base_url || @client.base_url
222
+
223
+ options = {
224
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
225
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryImageName' => gallery_image_name,'galleryImageVersionName' => gallery_image_version_name},
226
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
227
+ headers: request_headers.merge(custom_headers || {}),
228
+ base_url: request_url
229
+ }
230
+ promise = @client.make_request_async(:get, path_template, options)
231
+
232
+ promise = promise.then do |result|
233
+ http_response = result.response
234
+ status_code = http_response.status
235
+ response_content = http_response.body
236
+ unless status_code == 200
237
+ error_model = JSON.load(response_content)
238
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
239
+ end
240
+
241
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
242
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
243
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
244
+ # Deserialize Response
245
+ if status_code == 200
246
+ begin
247
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
248
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
249
+ result.body = @client.deserialize(result_mapper, parsed_response)
250
+ rescue Exception => e
251
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
252
+ end
253
+ end
254
+
255
+ result
256
+ end
257
+
258
+ promise.execute
259
+ end
260
+
261
+ #
262
+ # Delete a gallery Image Version.
263
+ #
264
+ # @param resource_group_name [String] The name of the resource group.
265
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
266
+ # the Image Definition resides.
267
+ # @param gallery_image_name [String] The name of the gallery Image Definition
268
+ # in which the Image Version resides.
269
+ # @param gallery_image_version_name [String] The name of the gallery Image
270
+ # Version to be deleted.
271
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
272
+ # will be added to the HTTP request.
273
+ #
274
+ def delete(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:nil)
275
+ response = delete_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:custom_headers).value!
276
+ nil
277
+ end
278
+
279
+ #
280
+ # @param resource_group_name [String] The name of the resource group.
281
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
282
+ # the Image Definition resides.
283
+ # @param gallery_image_name [String] The name of the gallery Image Definition
284
+ # in which the Image Version resides.
285
+ # @param gallery_image_version_name [String] The name of the gallery Image
286
+ # Version to be deleted.
287
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
288
+ # will be added to the HTTP request.
289
+ #
290
+ # @return [Concurrent::Promise] promise which provides async access to http
291
+ # response.
292
+ #
293
+ def delete_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:nil)
294
+ # Send request
295
+ promise = begin_delete_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:custom_headers)
296
+
297
+ promise = promise.then do |response|
298
+ # Defining deserialization method.
299
+ deserialize_method = lambda do |parsed_response|
300
+ end
301
+
302
+ # Waiting for response.
303
+ @client.get_long_running_operation_result(response, deserialize_method)
304
+ end
305
+
306
+ promise
307
+ end
308
+
309
+ #
310
+ # List gallery Image Versions in a gallery Image Definition.
311
+ #
312
+ # @param resource_group_name [String] The name of the resource group.
313
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
314
+ # the Image Definition resides.
315
+ # @param gallery_image_name [String] The name of the Shared Image Gallery Image
316
+ # Definition from which the Image Versions are to be listed.
317
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
318
+ # will be added to the HTTP request.
319
+ #
320
+ # @return [Array<GalleryImageVersion>] operation results.
321
+ #
322
+ def list_by_gallery_image(resource_group_name, gallery_name, gallery_image_name, custom_headers:nil)
323
+ first_page = list_by_gallery_image_as_lazy(resource_group_name, gallery_name, gallery_image_name, custom_headers:custom_headers)
324
+ first_page.get_all_items
325
+ end
326
+
327
+ #
328
+ # List gallery Image Versions in a gallery Image Definition.
329
+ #
330
+ # @param resource_group_name [String] The name of the resource group.
331
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
332
+ # the Image Definition resides.
333
+ # @param gallery_image_name [String] The name of the Shared Image Gallery Image
334
+ # Definition from which the Image Versions are to be listed.
335
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
336
+ # will be added to the HTTP request.
337
+ #
338
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
339
+ #
340
+ def list_by_gallery_image_with_http_info(resource_group_name, gallery_name, gallery_image_name, custom_headers:nil)
341
+ list_by_gallery_image_async(resource_group_name, gallery_name, gallery_image_name, custom_headers:custom_headers).value!
342
+ end
343
+
344
+ #
345
+ # List gallery Image Versions in a gallery Image Definition.
346
+ #
347
+ # @param resource_group_name [String] The name of the resource group.
348
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
349
+ # the Image Definition resides.
350
+ # @param gallery_image_name [String] The name of the Shared Image Gallery Image
351
+ # Definition from which the Image Versions are to be listed.
352
+ # @param [Hash{String => String}] A hash of custom headers that will be added
353
+ # to the HTTP request.
354
+ #
355
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
356
+ #
357
+ def list_by_gallery_image_async(resource_group_name, gallery_name, gallery_image_name, custom_headers:nil)
358
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
359
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
360
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
361
+ fail ArgumentError, 'gallery_image_name is nil' if gallery_image_name.nil?
362
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
363
+
364
+
365
+ request_headers = {}
366
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
367
+
368
+ # Set Headers
369
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
370
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
371
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions'
372
+
373
+ request_url = @base_url || @client.base_url
374
+
375
+ options = {
376
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
377
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryImageName' => gallery_image_name},
378
+ query_params: {'api-version' => @client.api_version},
379
+ headers: request_headers.merge(custom_headers || {}),
380
+ base_url: request_url
381
+ }
382
+ promise = @client.make_request_async(:get, path_template, options)
383
+
384
+ promise = promise.then do |result|
385
+ http_response = result.response
386
+ status_code = http_response.status
387
+ response_content = http_response.body
388
+ unless status_code == 200
389
+ error_model = JSON.load(response_content)
390
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
391
+ end
392
+
393
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
394
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
395
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
396
+ # Deserialize Response
397
+ if status_code == 200
398
+ begin
399
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
400
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersionList.mapper()
401
+ result.body = @client.deserialize(result_mapper, parsed_response)
402
+ rescue Exception => e
403
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
404
+ end
405
+ end
406
+
407
+ result
408
+ end
409
+
410
+ promise.execute
411
+ end
412
+
413
+ #
414
+ # Create or update a gallery Image Version.
415
+ #
416
+ # @param resource_group_name [String] The name of the resource group.
417
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
418
+ # the Image Definition resides.
419
+ # @param gallery_image_name [String] The name of the gallery Image Definition
420
+ # in which the Image Version is to be created.
421
+ # @param gallery_image_version_name [String] The name of the gallery Image
422
+ # Version to be created. Needs to follow semantic version name pattern: The
423
+ # allowed characters are digit and period. Digits must be within the range of a
424
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
425
+ # @param gallery_image_version [GalleryImageVersion] Parameters supplied to the
426
+ # create or update gallery Image Version operation.
427
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
428
+ # will be added to the HTTP request.
429
+ #
430
+ # @return [GalleryImageVersion] operation results.
431
+ #
432
+ def begin_create_or_update(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
433
+ response = begin_create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers).value!
434
+ response.body unless response.nil?
435
+ end
436
+
437
+ #
438
+ # Create or update a gallery Image Version.
439
+ #
440
+ # @param resource_group_name [String] The name of the resource group.
441
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
442
+ # the Image Definition resides.
443
+ # @param gallery_image_name [String] The name of the gallery Image Definition
444
+ # in which the Image Version is to be created.
445
+ # @param gallery_image_version_name [String] The name of the gallery Image
446
+ # Version to be created. Needs to follow semantic version name pattern: The
447
+ # allowed characters are digit and period. Digits must be within the range of a
448
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
449
+ # @param gallery_image_version [GalleryImageVersion] Parameters supplied to the
450
+ # create or update gallery Image Version operation.
451
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
452
+ # will be added to the HTTP request.
453
+ #
454
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
455
+ #
456
+ def begin_create_or_update_with_http_info(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
457
+ begin_create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers).value!
458
+ end
459
+
460
+ #
461
+ # Create or update a gallery Image Version.
462
+ #
463
+ # @param resource_group_name [String] The name of the resource group.
464
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
465
+ # the Image Definition resides.
466
+ # @param gallery_image_name [String] The name of the gallery Image Definition
467
+ # in which the Image Version is to be created.
468
+ # @param gallery_image_version_name [String] The name of the gallery Image
469
+ # Version to be created. Needs to follow semantic version name pattern: The
470
+ # allowed characters are digit and period. Digits must be within the range of a
471
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
472
+ # @param gallery_image_version [GalleryImageVersion] Parameters supplied to the
473
+ # create or update gallery Image Version operation.
474
+ # @param [Hash{String => String}] A hash of custom headers that will be added
475
+ # to the HTTP request.
476
+ #
477
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
478
+ #
479
+ def begin_create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
480
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
481
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
482
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
483
+ fail ArgumentError, 'gallery_image_name is nil' if gallery_image_name.nil?
484
+ fail ArgumentError, 'gallery_image_version_name is nil' if gallery_image_version_name.nil?
485
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
486
+ fail ArgumentError, 'gallery_image_version is nil' if gallery_image_version.nil?
487
+
488
+
489
+ request_headers = {}
490
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
491
+
492
+ # Set Headers
493
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
494
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
495
+
496
+ # Serialize Request
497
+ request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
498
+ request_content = @client.serialize(request_mapper, gallery_image_version)
499
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
500
+
501
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}'
502
+
503
+ request_url = @base_url || @client.base_url
504
+
505
+ options = {
506
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
507
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryImageName' => gallery_image_name,'galleryImageVersionName' => gallery_image_version_name},
508
+ query_params: {'api-version' => @client.api_version},
509
+ body: request_content,
510
+ headers: request_headers.merge(custom_headers || {}),
511
+ base_url: request_url
512
+ }
513
+ promise = @client.make_request_async(:put, path_template, options)
514
+
515
+ promise = promise.then do |result|
516
+ http_response = result.response
517
+ status_code = http_response.status
518
+ response_content = http_response.body
519
+ unless status_code == 200 || status_code == 201 || status_code == 202
520
+ error_model = JSON.load(response_content)
521
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
522
+ end
523
+
524
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
525
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
526
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
527
+ # Deserialize Response
528
+ if status_code == 200
529
+ begin
530
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
531
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
532
+ result.body = @client.deserialize(result_mapper, parsed_response)
533
+ rescue Exception => e
534
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
535
+ end
536
+ end
537
+ # Deserialize Response
538
+ if status_code == 201
539
+ begin
540
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
541
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
542
+ result.body = @client.deserialize(result_mapper, parsed_response)
543
+ rescue Exception => e
544
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
545
+ end
546
+ end
547
+ # Deserialize Response
548
+ if status_code == 202
549
+ begin
550
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
551
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
552
+ result.body = @client.deserialize(result_mapper, parsed_response)
553
+ rescue Exception => e
554
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
555
+ end
556
+ end
557
+
558
+ result
559
+ end
560
+
561
+ promise.execute
562
+ end
563
+
564
+ #
565
+ # Update a gallery Image Version.
566
+ #
567
+ # @param resource_group_name [String] The name of the resource group.
568
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
569
+ # the Image Definition resides.
570
+ # @param gallery_image_name [String] The name of the gallery Image Definition
571
+ # in which the Image Version is to be updated.
572
+ # @param gallery_image_version_name [String] The name of the gallery Image
573
+ # Version to be updated. Needs to follow semantic version name pattern: The
574
+ # allowed characters are digit and period. Digits must be within the range of a
575
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
576
+ # @param gallery_image_version [GalleryImageVersionUpdate] Parameters supplied
577
+ # to the update gallery Image Version operation.
578
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
579
+ # will be added to the HTTP request.
580
+ #
581
+ # @return [GalleryImageVersion] operation results.
582
+ #
583
+ def begin_update(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
584
+ response = begin_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers).value!
585
+ response.body unless response.nil?
586
+ end
587
+
588
+ #
589
+ # Update a gallery Image Version.
590
+ #
591
+ # @param resource_group_name [String] The name of the resource group.
592
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
593
+ # the Image Definition resides.
594
+ # @param gallery_image_name [String] The name of the gallery Image Definition
595
+ # in which the Image Version is to be updated.
596
+ # @param gallery_image_version_name [String] The name of the gallery Image
597
+ # Version to be updated. Needs to follow semantic version name pattern: The
598
+ # allowed characters are digit and period. Digits must be within the range of a
599
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
600
+ # @param gallery_image_version [GalleryImageVersionUpdate] Parameters supplied
601
+ # to the update gallery Image Version operation.
602
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
603
+ # will be added to the HTTP request.
604
+ #
605
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
606
+ #
607
+ def begin_update_with_http_info(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
608
+ begin_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:custom_headers).value!
609
+ end
610
+
611
+ #
612
+ # Update a gallery Image Version.
613
+ #
614
+ # @param resource_group_name [String] The name of the resource group.
615
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
616
+ # the Image Definition resides.
617
+ # @param gallery_image_name [String] The name of the gallery Image Definition
618
+ # in which the Image Version is to be updated.
619
+ # @param gallery_image_version_name [String] The name of the gallery Image
620
+ # Version to be updated. Needs to follow semantic version name pattern: The
621
+ # allowed characters are digit and period. Digits must be within the range of a
622
+ # 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
623
+ # @param gallery_image_version [GalleryImageVersionUpdate] Parameters supplied
624
+ # to the update gallery Image Version operation.
625
+ # @param [Hash{String => String}] A hash of custom headers that will be added
626
+ # to the HTTP request.
627
+ #
628
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
629
+ #
630
+ def begin_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers:nil)
631
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
632
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
633
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
634
+ fail ArgumentError, 'gallery_image_name is nil' if gallery_image_name.nil?
635
+ fail ArgumentError, 'gallery_image_version_name is nil' if gallery_image_version_name.nil?
636
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
637
+ fail ArgumentError, 'gallery_image_version is nil' if gallery_image_version.nil?
638
+
639
+
640
+ request_headers = {}
641
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
642
+
643
+ # Set Headers
644
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
645
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
646
+
647
+ # Serialize Request
648
+ request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersionUpdate.mapper()
649
+ request_content = @client.serialize(request_mapper, gallery_image_version)
650
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
651
+
652
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}'
653
+
654
+ request_url = @base_url || @client.base_url
655
+
656
+ options = {
657
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
658
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryImageName' => gallery_image_name,'galleryImageVersionName' => gallery_image_version_name},
659
+ query_params: {'api-version' => @client.api_version},
660
+ body: request_content,
661
+ headers: request_headers.merge(custom_headers || {}),
662
+ base_url: request_url
663
+ }
664
+ promise = @client.make_request_async(:patch, path_template, options)
665
+
666
+ promise = promise.then do |result|
667
+ http_response = result.response
668
+ status_code = http_response.status
669
+ response_content = http_response.body
670
+ unless status_code == 200
671
+ error_model = JSON.load(response_content)
672
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
673
+ end
674
+
675
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
676
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
677
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
678
+ # Deserialize Response
679
+ if status_code == 200
680
+ begin
681
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
682
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersion.mapper()
683
+ result.body = @client.deserialize(result_mapper, parsed_response)
684
+ rescue Exception => e
685
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
686
+ end
687
+ end
688
+
689
+ result
690
+ end
691
+
692
+ promise.execute
693
+ end
694
+
695
+ #
696
+ # Delete a gallery Image Version.
697
+ #
698
+ # @param resource_group_name [String] The name of the resource group.
699
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
700
+ # the Image Definition resides.
701
+ # @param gallery_image_name [String] The name of the gallery Image Definition
702
+ # in which the Image Version resides.
703
+ # @param gallery_image_version_name [String] The name of the gallery Image
704
+ # Version to be deleted.
705
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
706
+ # will be added to the HTTP request.
707
+ #
708
+ #
709
+ def begin_delete(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:nil)
710
+ response = begin_delete_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:custom_headers).value!
711
+ nil
712
+ end
713
+
714
+ #
715
+ # Delete a gallery Image Version.
716
+ #
717
+ # @param resource_group_name [String] The name of the resource group.
718
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
719
+ # the Image Definition resides.
720
+ # @param gallery_image_name [String] The name of the gallery Image Definition
721
+ # in which the Image Version resides.
722
+ # @param gallery_image_version_name [String] The name of the gallery Image
723
+ # Version to be deleted.
724
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
725
+ # will be added to the HTTP request.
726
+ #
727
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
728
+ #
729
+ def begin_delete_with_http_info(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:nil)
730
+ begin_delete_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:custom_headers).value!
731
+ end
732
+
733
+ #
734
+ # Delete a gallery Image Version.
735
+ #
736
+ # @param resource_group_name [String] The name of the resource group.
737
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
738
+ # the Image Definition resides.
739
+ # @param gallery_image_name [String] The name of the gallery Image Definition
740
+ # in which the Image Version resides.
741
+ # @param gallery_image_version_name [String] The name of the gallery Image
742
+ # Version to be deleted.
743
+ # @param [Hash{String => String}] A hash of custom headers that will be added
744
+ # to the HTTP request.
745
+ #
746
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
747
+ #
748
+ def begin_delete_async(resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, custom_headers:nil)
749
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
750
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
751
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
752
+ fail ArgumentError, 'gallery_image_name is nil' if gallery_image_name.nil?
753
+ fail ArgumentError, 'gallery_image_version_name is nil' if gallery_image_version_name.nil?
754
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
755
+
756
+
757
+ request_headers = {}
758
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
759
+
760
+ # Set Headers
761
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
762
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
763
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}'
764
+
765
+ request_url = @base_url || @client.base_url
766
+
767
+ options = {
768
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
769
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryImageName' => gallery_image_name,'galleryImageVersionName' => gallery_image_version_name},
770
+ query_params: {'api-version' => @client.api_version},
771
+ headers: request_headers.merge(custom_headers || {}),
772
+ base_url: request_url
773
+ }
774
+ promise = @client.make_request_async(:delete, path_template, options)
775
+
776
+ promise = promise.then do |result|
777
+ http_response = result.response
778
+ status_code = http_response.status
779
+ response_content = http_response.body
780
+ unless status_code == 200 || status_code == 202 || status_code == 204
781
+ error_model = JSON.load(response_content)
782
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
783
+ end
784
+
785
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
786
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
787
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
788
+
789
+ result
790
+ end
791
+
792
+ promise.execute
793
+ end
794
+
795
+ #
796
+ # List gallery Image Versions in a gallery Image Definition.
797
+ #
798
+ # @param next_page_link [String] The NextLink from the previous successful call
799
+ # to List operation.
800
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
801
+ # will be added to the HTTP request.
802
+ #
803
+ # @return [GalleryImageVersionList] operation results.
804
+ #
805
+ def list_by_gallery_image_next(next_page_link, custom_headers:nil)
806
+ response = list_by_gallery_image_next_async(next_page_link, custom_headers:custom_headers).value!
807
+ response.body unless response.nil?
808
+ end
809
+
810
+ #
811
+ # List gallery Image Versions in a gallery Image Definition.
812
+ #
813
+ # @param next_page_link [String] The NextLink from the previous successful call
814
+ # to List operation.
815
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
816
+ # will be added to the HTTP request.
817
+ #
818
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
819
+ #
820
+ def list_by_gallery_image_next_with_http_info(next_page_link, custom_headers:nil)
821
+ list_by_gallery_image_next_async(next_page_link, custom_headers:custom_headers).value!
822
+ end
823
+
824
+ #
825
+ # List gallery Image Versions in a gallery Image Definition.
826
+ #
827
+ # @param next_page_link [String] The NextLink from the previous successful call
828
+ # to List operation.
829
+ # @param [Hash{String => String}] A hash of custom headers that will be added
830
+ # to the HTTP request.
831
+ #
832
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
833
+ #
834
+ def list_by_gallery_image_next_async(next_page_link, custom_headers:nil)
835
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
836
+
837
+
838
+ request_headers = {}
839
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
840
+
841
+ # Set Headers
842
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
843
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
844
+ path_template = '{nextLink}'
845
+
846
+ request_url = @base_url || @client.base_url
847
+
848
+ options = {
849
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
850
+ skip_encoding_path_params: {'nextLink' => next_page_link},
851
+ headers: request_headers.merge(custom_headers || {}),
852
+ base_url: request_url
853
+ }
854
+ promise = @client.make_request_async(:get, path_template, options)
855
+
856
+ promise = promise.then do |result|
857
+ http_response = result.response
858
+ status_code = http_response.status
859
+ response_content = http_response.body
860
+ unless status_code == 200
861
+ error_model = JSON.load(response_content)
862
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
863
+ end
864
+
865
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
866
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
867
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
868
+ # Deserialize Response
869
+ if status_code == 200
870
+ begin
871
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
872
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersionList.mapper()
873
+ result.body = @client.deserialize(result_mapper, parsed_response)
874
+ rescue Exception => e
875
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
876
+ end
877
+ end
878
+
879
+ result
880
+ end
881
+
882
+ promise.execute
883
+ end
884
+
885
+ #
886
+ # List gallery Image Versions in a gallery Image Definition.
887
+ #
888
+ # @param resource_group_name [String] The name of the resource group.
889
+ # @param gallery_name [String] The name of the Shared Image Gallery in which
890
+ # the Image Definition resides.
891
+ # @param gallery_image_name [String] The name of the Shared Image Gallery Image
892
+ # Definition from which the Image Versions are to be listed.
893
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
894
+ # will be added to the HTTP request.
895
+ #
896
+ # @return [GalleryImageVersionList] which provide lazy access to pages of the
897
+ # response.
898
+ #
899
+ def list_by_gallery_image_as_lazy(resource_group_name, gallery_name, gallery_image_name, custom_headers:nil)
900
+ response = list_by_gallery_image_async(resource_group_name, gallery_name, gallery_image_name, custom_headers:custom_headers).value!
901
+ unless response.nil?
902
+ page = response.body
903
+ page.next_method = Proc.new do |next_page_link|
904
+ list_by_gallery_image_next_async(next_page_link, custom_headers:custom_headers)
905
+ end
906
+ page
907
+ end
908
+ end
909
+
910
+ end
911
+ end