azure_mgmt_compute 0.17.1 → 0.18.0

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