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,915 @@
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 GalleryApplicationVersions
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the GalleryApplicationVersions 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 Application Version.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param gallery_name [String] The name of the Shared Application Gallery in
29
+ # which the Application Definition resides.
30
+ # @param gallery_application_name [String] The name of the gallery Application
31
+ # Definition in which the Application Version is to be created.
32
+ # @param gallery_application_version_name [String] The name of the gallery
33
+ # Application Version to be created. Needs to follow semantic version name
34
+ # pattern: The allowed characters are digit and period. Digits must be within
35
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
36
+ # @param gallery_application_version [GalleryApplicationVersion] Parameters
37
+ # supplied to the create or update gallery Application 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 [GalleryApplicationVersion] operation results.
42
+ #
43
+ def create_or_update(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
44
+ response = create_or_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_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 Application Gallery in
51
+ # which the Application Definition resides.
52
+ # @param gallery_application_name [String] The name of the gallery Application
53
+ # Definition in which the Application Version is to be created.
54
+ # @param gallery_application_version_name [String] The name of the gallery
55
+ # Application Version to be created. Needs to follow semantic version name
56
+ # pattern: The allowed characters are digit and period. Digits must be within
57
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
58
+ # @param gallery_application_version [GalleryApplicationVersion] Parameters
59
+ # supplied to the create or update gallery Application 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_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
67
+ # Send request
68
+ promise = begin_create_or_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_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::GalleryApplicationVersion.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 Application Version.
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group.
88
+ # @param gallery_name [String] The name of the Shared Application Gallery in
89
+ # which the Application Definition resides.
90
+ # @param gallery_application_name [String] The name of the gallery Application
91
+ # Definition in which the Application Version is to be updated.
92
+ # @param gallery_application_version_name [String] The name of the gallery
93
+ # Application Version to be updated. Needs to follow semantic version name
94
+ # pattern: The allowed characters are digit and period. Digits must be within
95
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
96
+ # @param gallery_application_version [GalleryApplicationVersionUpdate]
97
+ # Parameters supplied to the update gallery Application 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 [GalleryApplicationVersion] operation results.
102
+ #
103
+ def update(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
104
+ response = update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_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 Application Gallery in
111
+ # which the Application Definition resides.
112
+ # @param gallery_application_name [String] The name of the gallery Application
113
+ # Definition in which the Application Version is to be updated.
114
+ # @param gallery_application_version_name [String] The name of the gallery
115
+ # Application Version to be updated. Needs to follow semantic version name
116
+ # pattern: The allowed characters are digit and period. Digits must be within
117
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
118
+ # @param gallery_application_version [GalleryApplicationVersionUpdate]
119
+ # Parameters supplied to the update gallery Application 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_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
127
+ # Send request
128
+ promise = begin_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_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::GalleryApplicationVersion.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 Application Version.
146
+ #
147
+ # @param resource_group_name [String] The name of the resource group.
148
+ # @param gallery_name [String] The name of the Shared Application Gallery in
149
+ # which the Application Definition resides.
150
+ # @param gallery_application_name [String] The name of the gallery Application
151
+ # Definition in which the Application Version resides.
152
+ # @param gallery_application_version_name [String] The name of the gallery
153
+ # Application 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 [GalleryApplicationVersion] operation results.
160
+ #
161
+ def get(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, expand:nil, custom_headers:nil)
162
+ response = get_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_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 Application Version.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group.
170
+ # @param gallery_name [String] The name of the Shared Application Gallery in
171
+ # which the Application Definition resides.
172
+ # @param gallery_application_name [String] The name of the gallery Application
173
+ # Definition in which the Application Version resides.
174
+ # @param gallery_application_version_name [String] The name of the gallery
175
+ # Application 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_application_name, gallery_application_version_name, expand:nil, custom_headers:nil)
184
+ get_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, expand:expand, custom_headers:custom_headers).value!
185
+ end
186
+
187
+ #
188
+ # Retrieves information about a gallery Application Version.
189
+ #
190
+ # @param resource_group_name [String] The name of the resource group.
191
+ # @param gallery_name [String] The name of the Shared Application Gallery in
192
+ # which the Application Definition resides.
193
+ # @param gallery_application_name [String] The name of the gallery Application
194
+ # Definition in which the Application Version resides.
195
+ # @param gallery_application_version_name [String] The name of the gallery
196
+ # Application 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_application_name, gallery_application_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_application_name is nil' if gallery_application_name.nil?
209
+ fail ArgumentError, 'gallery_application_version_name is nil' if gallery_application_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}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}'
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,'galleryApplicationName' => gallery_application_name,'galleryApplicationVersionName' => gallery_application_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::GalleryApplicationVersion.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 Application Version.
263
+ #
264
+ # @param resource_group_name [String] The name of the resource group.
265
+ # @param gallery_name [String] The name of the Shared Application Gallery in
266
+ # which the Application Definition resides.
267
+ # @param gallery_application_name [String] The name of the gallery Application
268
+ # Definition in which the Application Version resides.
269
+ # @param gallery_application_version_name [String] The name of the gallery
270
+ # Application 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_application_name, gallery_application_version_name, custom_headers:nil)
275
+ response = delete_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_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 Application Gallery in
282
+ # which the Application Definition resides.
283
+ # @param gallery_application_name [String] The name of the gallery Application
284
+ # Definition in which the Application Version resides.
285
+ # @param gallery_application_version_name [String] The name of the gallery
286
+ # Application 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_application_name, gallery_application_version_name, custom_headers:nil)
294
+ # Send request
295
+ promise = begin_delete_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_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 Application Versions in a gallery Application Definition.
311
+ #
312
+ # @param resource_group_name [String] The name of the resource group.
313
+ # @param gallery_name [String] The name of the Shared Application Gallery in
314
+ # which the Application Definition resides.
315
+ # @param gallery_application_name [String] The name of the Shared Application
316
+ # Gallery Application Definition from which the Application Versions are to be
317
+ # listed.
318
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
319
+ # will be added to the HTTP request.
320
+ #
321
+ # @return [Array<GalleryApplicationVersion>] operation results.
322
+ #
323
+ def list_by_gallery_application(resource_group_name, gallery_name, gallery_application_name, custom_headers:nil)
324
+ first_page = list_by_gallery_application_as_lazy(resource_group_name, gallery_name, gallery_application_name, custom_headers:custom_headers)
325
+ first_page.get_all_items
326
+ end
327
+
328
+ #
329
+ # List gallery Application Versions in a gallery Application Definition.
330
+ #
331
+ # @param resource_group_name [String] The name of the resource group.
332
+ # @param gallery_name [String] The name of the Shared Application Gallery in
333
+ # which the Application Definition resides.
334
+ # @param gallery_application_name [String] The name of the Shared Application
335
+ # Gallery Application Definition from which the Application Versions are to be
336
+ # listed.
337
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
338
+ # will be added to the HTTP request.
339
+ #
340
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
341
+ #
342
+ def list_by_gallery_application_with_http_info(resource_group_name, gallery_name, gallery_application_name, custom_headers:nil)
343
+ list_by_gallery_application_async(resource_group_name, gallery_name, gallery_application_name, custom_headers:custom_headers).value!
344
+ end
345
+
346
+ #
347
+ # List gallery Application Versions in a gallery Application Definition.
348
+ #
349
+ # @param resource_group_name [String] The name of the resource group.
350
+ # @param gallery_name [String] The name of the Shared Application Gallery in
351
+ # which the Application Definition resides.
352
+ # @param gallery_application_name [String] The name of the Shared Application
353
+ # Gallery Application Definition from which the Application Versions are to be
354
+ # listed.
355
+ # @param [Hash{String => String}] A hash of custom headers that will be added
356
+ # to the HTTP request.
357
+ #
358
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
359
+ #
360
+ def list_by_gallery_application_async(resource_group_name, gallery_name, gallery_application_name, custom_headers:nil)
361
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
362
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
363
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
364
+ fail ArgumentError, 'gallery_application_name is nil' if gallery_application_name.nil?
365
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
366
+
367
+
368
+ request_headers = {}
369
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
370
+
371
+ # Set Headers
372
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
373
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
374
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions'
375
+
376
+ request_url = @base_url || @client.base_url
377
+
378
+ options = {
379
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
380
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryApplicationName' => gallery_application_name},
381
+ query_params: {'api-version' => @client.api_version},
382
+ headers: request_headers.merge(custom_headers || {}),
383
+ base_url: request_url
384
+ }
385
+ promise = @client.make_request_async(:get, path_template, options)
386
+
387
+ promise = promise.then do |result|
388
+ http_response = result.response
389
+ status_code = http_response.status
390
+ response_content = http_response.body
391
+ unless status_code == 200
392
+ error_model = JSON.load(response_content)
393
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
394
+ end
395
+
396
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
397
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
398
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
399
+ # Deserialize Response
400
+ if status_code == 200
401
+ begin
402
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
403
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersionList.mapper()
404
+ result.body = @client.deserialize(result_mapper, parsed_response)
405
+ rescue Exception => e
406
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
407
+ end
408
+ end
409
+
410
+ result
411
+ end
412
+
413
+ promise.execute
414
+ end
415
+
416
+ #
417
+ # Create or update a gallery Application Version.
418
+ #
419
+ # @param resource_group_name [String] The name of the resource group.
420
+ # @param gallery_name [String] The name of the Shared Application Gallery in
421
+ # which the Application Definition resides.
422
+ # @param gallery_application_name [String] The name of the gallery Application
423
+ # Definition in which the Application Version is to be created.
424
+ # @param gallery_application_version_name [String] The name of the gallery
425
+ # Application Version to be created. Needs to follow semantic version name
426
+ # pattern: The allowed characters are digit and period. Digits must be within
427
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
428
+ # @param gallery_application_version [GalleryApplicationVersion] Parameters
429
+ # supplied to the create or update gallery Application Version operation.
430
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
431
+ # will be added to the HTTP request.
432
+ #
433
+ # @return [GalleryApplicationVersion] operation results.
434
+ #
435
+ def begin_create_or_update(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
436
+ response = begin_create_or_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:custom_headers).value!
437
+ response.body unless response.nil?
438
+ end
439
+
440
+ #
441
+ # Create or update a gallery Application Version.
442
+ #
443
+ # @param resource_group_name [String] The name of the resource group.
444
+ # @param gallery_name [String] The name of the Shared Application Gallery in
445
+ # which the Application Definition resides.
446
+ # @param gallery_application_name [String] The name of the gallery Application
447
+ # Definition in which the Application Version is to be created.
448
+ # @param gallery_application_version_name [String] The name of the gallery
449
+ # Application Version to be created. Needs to follow semantic version name
450
+ # pattern: The allowed characters are digit and period. Digits must be within
451
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
452
+ # @param gallery_application_version [GalleryApplicationVersion] Parameters
453
+ # supplied to the create or update gallery Application Version operation.
454
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
455
+ # will be added to the HTTP request.
456
+ #
457
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
458
+ #
459
+ def begin_create_or_update_with_http_info(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
460
+ begin_create_or_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:custom_headers).value!
461
+ end
462
+
463
+ #
464
+ # Create or update a gallery Application Version.
465
+ #
466
+ # @param resource_group_name [String] The name of the resource group.
467
+ # @param gallery_name [String] The name of the Shared Application Gallery in
468
+ # which the Application Definition resides.
469
+ # @param gallery_application_name [String] The name of the gallery Application
470
+ # Definition in which the Application Version is to be created.
471
+ # @param gallery_application_version_name [String] The name of the gallery
472
+ # Application Version to be created. Needs to follow semantic version name
473
+ # pattern: The allowed characters are digit and period. Digits must be within
474
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
475
+ # @param gallery_application_version [GalleryApplicationVersion] Parameters
476
+ # supplied to the create or update gallery Application Version operation.
477
+ # @param [Hash{String => String}] A hash of custom headers that will be added
478
+ # to the HTTP request.
479
+ #
480
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
481
+ #
482
+ def begin_create_or_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
483
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
484
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
485
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
486
+ fail ArgumentError, 'gallery_application_name is nil' if gallery_application_name.nil?
487
+ fail ArgumentError, 'gallery_application_version_name is nil' if gallery_application_version_name.nil?
488
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
489
+ fail ArgumentError, 'gallery_application_version is nil' if gallery_application_version.nil?
490
+
491
+
492
+ request_headers = {}
493
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
494
+
495
+ # Set Headers
496
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
497
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
498
+
499
+ # Serialize Request
500
+ request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersion.mapper()
501
+ request_content = @client.serialize(request_mapper, gallery_application_version)
502
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
503
+
504
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}'
505
+
506
+ request_url = @base_url || @client.base_url
507
+
508
+ options = {
509
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
510
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryApplicationName' => gallery_application_name,'galleryApplicationVersionName' => gallery_application_version_name},
511
+ query_params: {'api-version' => @client.api_version},
512
+ body: request_content,
513
+ headers: request_headers.merge(custom_headers || {}),
514
+ base_url: request_url
515
+ }
516
+ promise = @client.make_request_async(:put, path_template, options)
517
+
518
+ promise = promise.then do |result|
519
+ http_response = result.response
520
+ status_code = http_response.status
521
+ response_content = http_response.body
522
+ unless status_code == 200 || status_code == 201 || status_code == 202
523
+ error_model = JSON.load(response_content)
524
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
525
+ end
526
+
527
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
528
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
529
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
530
+ # Deserialize Response
531
+ if status_code == 200
532
+ begin
533
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
534
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersion.mapper()
535
+ result.body = @client.deserialize(result_mapper, parsed_response)
536
+ rescue Exception => e
537
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
538
+ end
539
+ end
540
+ # Deserialize Response
541
+ if status_code == 201
542
+ begin
543
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
544
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersion.mapper()
545
+ result.body = @client.deserialize(result_mapper, parsed_response)
546
+ rescue Exception => e
547
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
548
+ end
549
+ end
550
+ # Deserialize Response
551
+ if status_code == 202
552
+ begin
553
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
554
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersion.mapper()
555
+ result.body = @client.deserialize(result_mapper, parsed_response)
556
+ rescue Exception => e
557
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
558
+ end
559
+ end
560
+
561
+ result
562
+ end
563
+
564
+ promise.execute
565
+ end
566
+
567
+ #
568
+ # Update a gallery Application Version.
569
+ #
570
+ # @param resource_group_name [String] The name of the resource group.
571
+ # @param gallery_name [String] The name of the Shared Application Gallery in
572
+ # which the Application Definition resides.
573
+ # @param gallery_application_name [String] The name of the gallery Application
574
+ # Definition in which the Application Version is to be updated.
575
+ # @param gallery_application_version_name [String] The name of the gallery
576
+ # Application Version to be updated. Needs to follow semantic version name
577
+ # pattern: The allowed characters are digit and period. Digits must be within
578
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
579
+ # @param gallery_application_version [GalleryApplicationVersionUpdate]
580
+ # Parameters supplied to the update gallery Application Version operation.
581
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
582
+ # will be added to the HTTP request.
583
+ #
584
+ # @return [GalleryApplicationVersion] operation results.
585
+ #
586
+ def begin_update(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
587
+ response = begin_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:custom_headers).value!
588
+ response.body unless response.nil?
589
+ end
590
+
591
+ #
592
+ # Update a gallery Application Version.
593
+ #
594
+ # @param resource_group_name [String] The name of the resource group.
595
+ # @param gallery_name [String] The name of the Shared Application Gallery in
596
+ # which the Application Definition resides.
597
+ # @param gallery_application_name [String] The name of the gallery Application
598
+ # Definition in which the Application Version is to be updated.
599
+ # @param gallery_application_version_name [String] The name of the gallery
600
+ # Application Version to be updated. Needs to follow semantic version name
601
+ # pattern: The allowed characters are digit and period. Digits must be within
602
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
603
+ # @param gallery_application_version [GalleryApplicationVersionUpdate]
604
+ # Parameters supplied to the update gallery Application Version operation.
605
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
606
+ # will be added to the HTTP request.
607
+ #
608
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
609
+ #
610
+ def begin_update_with_http_info(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
611
+ begin_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:custom_headers).value!
612
+ end
613
+
614
+ #
615
+ # Update a gallery Application Version.
616
+ #
617
+ # @param resource_group_name [String] The name of the resource group.
618
+ # @param gallery_name [String] The name of the Shared Application Gallery in
619
+ # which the Application Definition resides.
620
+ # @param gallery_application_name [String] The name of the gallery Application
621
+ # Definition in which the Application Version is to be updated.
622
+ # @param gallery_application_version_name [String] The name of the gallery
623
+ # Application Version to be updated. Needs to follow semantic version name
624
+ # pattern: The allowed characters are digit and period. Digits must be within
625
+ # the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
626
+ # @param gallery_application_version [GalleryApplicationVersionUpdate]
627
+ # Parameters supplied to the update gallery Application Version operation.
628
+ # @param [Hash{String => String}] A hash of custom headers that will be added
629
+ # to the HTTP request.
630
+ #
631
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
632
+ #
633
+ def begin_update_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, gallery_application_version, custom_headers:nil)
634
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
635
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
636
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
637
+ fail ArgumentError, 'gallery_application_name is nil' if gallery_application_name.nil?
638
+ fail ArgumentError, 'gallery_application_version_name is nil' if gallery_application_version_name.nil?
639
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
640
+ fail ArgumentError, 'gallery_application_version is nil' if gallery_application_version.nil?
641
+
642
+
643
+ request_headers = {}
644
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
645
+
646
+ # Set Headers
647
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
648
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
649
+
650
+ # Serialize Request
651
+ request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersionUpdate.mapper()
652
+ request_content = @client.serialize(request_mapper, gallery_application_version)
653
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
654
+
655
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}'
656
+
657
+ request_url = @base_url || @client.base_url
658
+
659
+ options = {
660
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
661
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryApplicationName' => gallery_application_name,'galleryApplicationVersionName' => gallery_application_version_name},
662
+ query_params: {'api-version' => @client.api_version},
663
+ body: request_content,
664
+ headers: request_headers.merge(custom_headers || {}),
665
+ base_url: request_url
666
+ }
667
+ promise = @client.make_request_async(:patch, path_template, options)
668
+
669
+ promise = promise.then do |result|
670
+ http_response = result.response
671
+ status_code = http_response.status
672
+ response_content = http_response.body
673
+ unless status_code == 200
674
+ error_model = JSON.load(response_content)
675
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
676
+ end
677
+
678
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
679
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
680
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
681
+ # Deserialize Response
682
+ if status_code == 200
683
+ begin
684
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
685
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersion.mapper()
686
+ result.body = @client.deserialize(result_mapper, parsed_response)
687
+ rescue Exception => e
688
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
689
+ end
690
+ end
691
+
692
+ result
693
+ end
694
+
695
+ promise.execute
696
+ end
697
+
698
+ #
699
+ # Delete a gallery Application Version.
700
+ #
701
+ # @param resource_group_name [String] The name of the resource group.
702
+ # @param gallery_name [String] The name of the Shared Application Gallery in
703
+ # which the Application Definition resides.
704
+ # @param gallery_application_name [String] The name of the gallery Application
705
+ # Definition in which the Application Version resides.
706
+ # @param gallery_application_version_name [String] The name of the gallery
707
+ # Application Version to be deleted.
708
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
709
+ # will be added to the HTTP request.
710
+ #
711
+ #
712
+ def begin_delete(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, custom_headers:nil)
713
+ response = begin_delete_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, custom_headers:custom_headers).value!
714
+ nil
715
+ end
716
+
717
+ #
718
+ # Delete a gallery Application Version.
719
+ #
720
+ # @param resource_group_name [String] The name of the resource group.
721
+ # @param gallery_name [String] The name of the Shared Application Gallery in
722
+ # which the Application Definition resides.
723
+ # @param gallery_application_name [String] The name of the gallery Application
724
+ # Definition in which the Application Version resides.
725
+ # @param gallery_application_version_name [String] The name of the gallery
726
+ # Application Version to be deleted.
727
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
728
+ # will be added to the HTTP request.
729
+ #
730
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
731
+ #
732
+ def begin_delete_with_http_info(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, custom_headers:nil)
733
+ begin_delete_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, custom_headers:custom_headers).value!
734
+ end
735
+
736
+ #
737
+ # Delete a gallery Application Version.
738
+ #
739
+ # @param resource_group_name [String] The name of the resource group.
740
+ # @param gallery_name [String] The name of the Shared Application Gallery in
741
+ # which the Application Definition resides.
742
+ # @param gallery_application_name [String] The name of the gallery Application
743
+ # Definition in which the Application Version resides.
744
+ # @param gallery_application_version_name [String] The name of the gallery
745
+ # Application Version to be deleted.
746
+ # @param [Hash{String => String}] A hash of custom headers that will be added
747
+ # to the HTTP request.
748
+ #
749
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
750
+ #
751
+ def begin_delete_async(resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, custom_headers:nil)
752
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
753
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
754
+ fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
755
+ fail ArgumentError, 'gallery_application_name is nil' if gallery_application_name.nil?
756
+ fail ArgumentError, 'gallery_application_version_name is nil' if gallery_application_version_name.nil?
757
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
758
+
759
+
760
+ request_headers = {}
761
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
762
+
763
+ # Set Headers
764
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
765
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
766
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}'
767
+
768
+ request_url = @base_url || @client.base_url
769
+
770
+ options = {
771
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
772
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name,'galleryApplicationName' => gallery_application_name,'galleryApplicationVersionName' => gallery_application_version_name},
773
+ query_params: {'api-version' => @client.api_version},
774
+ headers: request_headers.merge(custom_headers || {}),
775
+ base_url: request_url
776
+ }
777
+ promise = @client.make_request_async(:delete, path_template, options)
778
+
779
+ promise = promise.then do |result|
780
+ http_response = result.response
781
+ status_code = http_response.status
782
+ response_content = http_response.body
783
+ unless status_code == 200 || status_code == 202 || status_code == 204
784
+ error_model = JSON.load(response_content)
785
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
786
+ end
787
+
788
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
789
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
790
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
791
+
792
+ result
793
+ end
794
+
795
+ promise.execute
796
+ end
797
+
798
+ #
799
+ # List gallery Application Versions in a gallery Application Definition.
800
+ #
801
+ # @param next_page_link [String] The NextLink from the previous successful call
802
+ # to List operation.
803
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
804
+ # will be added to the HTTP request.
805
+ #
806
+ # @return [GalleryApplicationVersionList] operation results.
807
+ #
808
+ def list_by_gallery_application_next(next_page_link, custom_headers:nil)
809
+ response = list_by_gallery_application_next_async(next_page_link, custom_headers:custom_headers).value!
810
+ response.body unless response.nil?
811
+ end
812
+
813
+ #
814
+ # List gallery Application Versions in a gallery Application Definition.
815
+ #
816
+ # @param next_page_link [String] The NextLink from the previous successful call
817
+ # to List operation.
818
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
819
+ # will be added to the HTTP request.
820
+ #
821
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
822
+ #
823
+ def list_by_gallery_application_next_with_http_info(next_page_link, custom_headers:nil)
824
+ list_by_gallery_application_next_async(next_page_link, custom_headers:custom_headers).value!
825
+ end
826
+
827
+ #
828
+ # List gallery Application Versions in a gallery Application Definition.
829
+ #
830
+ # @param next_page_link [String] The NextLink from the previous successful call
831
+ # to List operation.
832
+ # @param [Hash{String => String}] A hash of custom headers that will be added
833
+ # to the HTTP request.
834
+ #
835
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
836
+ #
837
+ def list_by_gallery_application_next_async(next_page_link, custom_headers:nil)
838
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
839
+
840
+
841
+ request_headers = {}
842
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
843
+
844
+ # Set Headers
845
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
846
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
847
+ path_template = '{nextLink}'
848
+
849
+ request_url = @base_url || @client.base_url
850
+
851
+ options = {
852
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
853
+ skip_encoding_path_params: {'nextLink' => next_page_link},
854
+ headers: request_headers.merge(custom_headers || {}),
855
+ base_url: request_url
856
+ }
857
+ promise = @client.make_request_async(:get, path_template, options)
858
+
859
+ promise = promise.then do |result|
860
+ http_response = result.response
861
+ status_code = http_response.status
862
+ response_content = http_response.body
863
+ unless status_code == 200
864
+ error_model = JSON.load(response_content)
865
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
866
+ end
867
+
868
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
869
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
870
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
871
+ # Deserialize Response
872
+ if status_code == 200
873
+ begin
874
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
875
+ result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::GalleryApplicationVersionList.mapper()
876
+ result.body = @client.deserialize(result_mapper, parsed_response)
877
+ rescue Exception => e
878
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
879
+ end
880
+ end
881
+
882
+ result
883
+ end
884
+
885
+ promise.execute
886
+ end
887
+
888
+ #
889
+ # List gallery Application Versions in a gallery Application Definition.
890
+ #
891
+ # @param resource_group_name [String] The name of the resource group.
892
+ # @param gallery_name [String] The name of the Shared Application Gallery in
893
+ # which the Application Definition resides.
894
+ # @param gallery_application_name [String] The name of the Shared Application
895
+ # Gallery Application Definition from which the Application Versions are to be
896
+ # listed.
897
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
898
+ # will be added to the HTTP request.
899
+ #
900
+ # @return [GalleryApplicationVersionList] which provide lazy access to pages of
901
+ # the response.
902
+ #
903
+ def list_by_gallery_application_as_lazy(resource_group_name, gallery_name, gallery_application_name, custom_headers:nil)
904
+ response = list_by_gallery_application_async(resource_group_name, gallery_name, gallery_application_name, custom_headers:custom_headers).value!
905
+ unless response.nil?
906
+ page = response.body
907
+ page.next_method = Proc.new do |next_page_link|
908
+ list_by_gallery_application_next_async(next_page_link, custom_headers:custom_headers)
909
+ end
910
+ page
911
+ end
912
+ end
913
+
914
+ end
915
+ end