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,237 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2018-06-01/generated/azure_mgmt_compute/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Compute::Mgmt::V2018_06_01
23
+ autoload :Operations, '2018-06-01/generated/azure_mgmt_compute/operations.rb'
24
+ autoload :AvailabilitySets, '2018-06-01/generated/azure_mgmt_compute/availability_sets.rb'
25
+ autoload :VirtualMachineExtensionImages, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb'
26
+ autoload :VirtualMachineExtensions, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb'
27
+ autoload :VirtualMachineImages, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_images.rb'
28
+ autoload :UsageOperations, '2018-06-01/generated/azure_mgmt_compute/usage_operations.rb'
29
+ autoload :VirtualMachineSizes, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb'
30
+ autoload :Images, '2018-06-01/generated/azure_mgmt_compute/images.rb'
31
+ autoload :VirtualMachines, '2018-06-01/generated/azure_mgmt_compute/virtual_machines.rb'
32
+ autoload :VirtualMachineScaleSets, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb'
33
+ autoload :VirtualMachineScaleSetExtensions, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb'
34
+ autoload :VirtualMachineScaleSetRollingUpgrades, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb'
35
+ autoload :VirtualMachineScaleSetVMs, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb'
36
+ autoload :LogAnalytics, '2018-06-01/generated/azure_mgmt_compute/log_analytics.rb'
37
+ autoload :VirtualMachineRunCommands, '2018-06-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb'
38
+ autoload :Galleries, '2018-06-01/generated/azure_mgmt_compute/galleries.rb'
39
+ autoload :GalleryImages, '2018-06-01/generated/azure_mgmt_compute/gallery_images.rb'
40
+ autoload :GalleryImageVersions, '2018-06-01/generated/azure_mgmt_compute/gallery_image_versions.rb'
41
+ autoload :ComputeManagementClient, '2018-06-01/generated/azure_mgmt_compute/compute_management_client.rb'
42
+
43
+ module Models
44
+ autoload :VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb'
45
+ autoload :VirtualMachineScaleSetIpTag, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb'
46
+ autoload :ComputeOperationListResult, '2018-06-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb'
47
+ autoload :VirtualMachineScaleSetPublicIPAddressConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb'
48
+ autoload :SubResource, '2018-06-01/generated/azure_mgmt_compute/models/sub_resource.rb'
49
+ autoload :VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb'
50
+ autoload :RecommendedMachineConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb'
51
+ autoload :ImageListResult, '2018-06-01/generated/azure_mgmt_compute/models/image_list_result.rb'
52
+ autoload :VirtualMachineSize, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb'
53
+ autoload :VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb'
54
+ autoload :GalleryImageVersionList, '2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_list.rb'
55
+ autoload :VirtualMachineScaleSetIdentity, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb'
56
+ autoload :VirtualMachineExtensionInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
57
+ autoload :VirtualMachineScaleSetOSProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
58
+ autoload :GalleryDiskImage, '2018-06-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb'
59
+ autoload :VirtualMachineScaleSetUpdateOSProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb'
60
+ autoload :PurchasePlan, '2018-06-01/generated/azure_mgmt_compute/models/purchase_plan.rb'
61
+ autoload :VirtualMachineScaleSetManagedDiskParameters, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb'
62
+ autoload :DataDiskImage, '2018-06-01/generated/azure_mgmt_compute/models/data_disk_image.rb'
63
+ autoload :VirtualMachineScaleSetOSDisk, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb'
64
+ autoload :UsageName, '2018-06-01/generated/azure_mgmt_compute/models/usage_name.rb'
65
+ autoload :VirtualMachineScaleSetUpdateOSDisk, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb'
66
+ autoload :ListUsagesResult, '2018-06-01/generated/azure_mgmt_compute/models/list_usages_result.rb'
67
+ autoload :VirtualMachineScaleSetDataDisk, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb'
68
+ autoload :GalleryArtifactSource, '2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb'
69
+ autoload :VirtualMachineScaleSetStorageProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
70
+ autoload :HardwareProfile, '2018-06-01/generated/azure_mgmt_compute/models/hardware_profile.rb'
71
+ autoload :VirtualMachineScaleSetUpdateStorageProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb'
72
+ autoload :KeyVaultSecretReference, '2018-06-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb'
73
+ autoload :ApiEntityReference, '2018-06-01/generated/azure_mgmt_compute/models/api_entity_reference.rb'
74
+ autoload :DiskEncryptionSettings, '2018-06-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb'
75
+ autoload :ComputeOperationValue, '2018-06-01/generated/azure_mgmt_compute/models/compute_operation_value.rb'
76
+ autoload :ReplicationStatus, '2018-06-01/generated/azure_mgmt_compute/models/replication_status.rb'
77
+ autoload :InstanceViewStatus, '2018-06-01/generated/azure_mgmt_compute/models/instance_view_status.rb'
78
+ autoload :DataDisk, '2018-06-01/generated/azure_mgmt_compute/models/data_disk.rb'
79
+ autoload :Sku, '2018-06-01/generated/azure_mgmt_compute/models/sku.rb'
80
+ autoload :AdditionalUnattendContent, '2018-06-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb'
81
+ autoload :ResourceRange, '2018-06-01/generated/azure_mgmt_compute/models/resource_range.rb'
82
+ autoload :WinRMConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb'
83
+ autoload :GalleryImageIdentifier, '2018-06-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb'
84
+ autoload :SshPublicKey, '2018-06-01/generated/azure_mgmt_compute/models/ssh_public_key.rb'
85
+ autoload :GalleryIdentifier, '2018-06-01/generated/azure_mgmt_compute/models/gallery_identifier.rb'
86
+ autoload :LinuxConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/linux_configuration.rb'
87
+ autoload :VirtualMachineScaleSetNetworkConfigurationDnsSettings, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb'
88
+ autoload :VaultSecretGroup, '2018-06-01/generated/azure_mgmt_compute/models/vault_secret_group.rb'
89
+ autoload :RunCommandResult, '2018-06-01/generated/azure_mgmt_compute/models/run_command_result.rb'
90
+ autoload :RegionalReplicationStatus, '2018-06-01/generated/azure_mgmt_compute/models/regional_replication_status.rb'
91
+ autoload :RunCommandListResult, '2018-06-01/generated/azure_mgmt_compute/models/run_command_list_result.rb'
92
+ autoload :BootDiagnostics, '2018-06-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb'
93
+ autoload :VirtualMachineScaleSetNetworkProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb'
94
+ autoload :VirtualMachineExtensionHandlerInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb'
95
+ autoload :VirtualMachineScaleSetUpdateNetworkProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb'
96
+ autoload :DiskInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/disk_instance_view.rb'
97
+ autoload :RunCommandDocumentBase, '2018-06-01/generated/azure_mgmt_compute/models/run_command_document_base.rb'
98
+ autoload :VirtualMachineIdentityUserAssignedIdentitiesValue, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb'
99
+ autoload :VirtualMachineScaleSetExtensionListResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb'
100
+ autoload :MaintenanceRedeployStatus, '2018-06-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb'
101
+ autoload :VirtualMachineScaleSetExtensionProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb'
102
+ autoload :GalleryImageVersionStorageProfile, '2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb'
103
+ autoload :VirtualMachineScaleSetVMProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb'
104
+ autoload :VirtualMachineListResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
105
+ autoload :VirtualMachineScaleSetUpdateVMProfile, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb'
106
+ autoload :RollingUpgradePolicy, '2018-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb'
107
+ autoload :RunCommandParameterDefinition, '2018-06-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb'
108
+ autoload :ImageOSDisk, '2018-06-01/generated/azure_mgmt_compute/models/image_osdisk.rb'
109
+ autoload :RunCommandInput, '2018-06-01/generated/azure_mgmt_compute/models/run_command_input.rb'
110
+ autoload :ImageStorageProfile, '2018-06-01/generated/azure_mgmt_compute/models/image_storage_profile.rb'
111
+ autoload :VirtualMachineScaleSetVMInstanceIDs, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb'
112
+ autoload :AvailabilitySetListResult, '2018-06-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb'
113
+ autoload :VirtualMachineScaleSetVMInstanceRequiredIDs, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb'
114
+ autoload :GalleryImageList, '2018-06-01/generated/azure_mgmt_compute/models/gallery_image_list.rb'
115
+ autoload :VirtualMachineStatusCodeCount, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb'
116
+ autoload :VirtualMachineExtensionsListResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb'
117
+ autoload :VirtualMachineScaleSetInstanceViewStatusesSummary, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb'
118
+ autoload :GalleryArtifactPublishingProfileBase, '2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb'
119
+ autoload :VirtualMachineScaleSetVMExtensionsSummary, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb'
120
+ autoload :VirtualMachineCaptureParameters, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
121
+ autoload :VirtualMachineScaleSetInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb'
122
+ autoload :ManagedArtifact, '2018-06-01/generated/azure_mgmt_compute/models/managed_artifact.rb'
123
+ autoload :VirtualMachineScaleSetListResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb'
124
+ autoload :VirtualHardDisk, '2018-06-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb'
125
+ autoload :VirtualMachineScaleSetListWithLinkResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb'
126
+ autoload :StorageProfile, '2018-06-01/generated/azure_mgmt_compute/models/storage_profile.rb'
127
+ autoload :VirtualMachineScaleSetSkuCapacity, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb'
128
+ autoload :WindowsConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb'
129
+ autoload :VirtualMachineScaleSetSku, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb'
130
+ autoload :VaultCertificate, '2018-06-01/generated/azure_mgmt_compute/models/vault_certificate.rb'
131
+ autoload :VirtualMachineScaleSetListSkusResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb'
132
+ autoload :NetworkProfile, '2018-06-01/generated/azure_mgmt_compute/models/network_profile.rb'
133
+ autoload :ApiErrorBase, '2018-06-01/generated/azure_mgmt_compute/models/api_error_base.rb'
134
+ autoload :VirtualMachineAgentInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
135
+ autoload :InnerError, '2018-06-01/generated/azure_mgmt_compute/models/inner_error.rb'
136
+ autoload :VirtualMachineIdentity, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb'
137
+ autoload :ApiError, '2018-06-01/generated/azure_mgmt_compute/models/api_error.rb'
138
+ autoload :ImagePurchasePlan, '2018-06-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb'
139
+ autoload :RollbackStatusInfo, '2018-06-01/generated/azure_mgmt_compute/models/rollback_status_info.rb'
140
+ autoload :UpgradePolicy, '2018-06-01/generated/azure_mgmt_compute/models/upgrade_policy.rb'
141
+ autoload :UpgradeOperationHistoryStatus, '2018-06-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb'
142
+ autoload :Disallowed, '2018-06-01/generated/azure_mgmt_compute/models/disallowed.rb'
143
+ autoload :RollingUpgradeProgressInfo, '2018-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb'
144
+ autoload :GalleryList, '2018-06-01/generated/azure_mgmt_compute/models/gallery_list.rb'
145
+ autoload :UpgradeOperationHistoricalStatusInfoProperties, '2018-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb'
146
+ autoload :Usage, '2018-06-01/generated/azure_mgmt_compute/models/usage.rb'
147
+ autoload :UpgradeOperationHistoricalStatusInfo, '2018-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb'
148
+ autoload :KeyVaultKeyReference, '2018-06-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb'
149
+ autoload :VirtualMachineScaleSetListOSUpgradeHistory, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb'
150
+ autoload :WinRMListener, '2018-06-01/generated/azure_mgmt_compute/models/win_rmlistener.rb'
151
+ autoload :VirtualMachineHealthStatus, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb'
152
+ autoload :OSProfile, '2018-06-01/generated/azure_mgmt_compute/models/osprofile.rb'
153
+ autoload :VirtualMachineScaleSetVMInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb'
154
+ autoload :BootDiagnosticsInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
155
+ autoload :RunCommandInputParameter, '2018-06-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb'
156
+ autoload :AutoOSUpgradePolicy, '2018-06-01/generated/azure_mgmt_compute/models/auto_osupgrade_policy.rb'
157
+ autoload :VirtualMachineScaleSetVMListResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb'
158
+ autoload :VirtualMachineSizeListResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb'
159
+ autoload :RollingUpgradeRunningStatus, '2018-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb'
160
+ autoload :Plan, '2018-06-01/generated/azure_mgmt_compute/models/plan.rb'
161
+ autoload :LogAnalyticsOperationResult, '2018-06-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb'
162
+ autoload :SshConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/ssh_configuration.rb'
163
+ autoload :Resource, '2018-06-01/generated/azure_mgmt_compute/models/resource.rb'
164
+ autoload :VirtualMachineInstanceView, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb'
165
+ autoload :UpdateResource, '2018-06-01/generated/azure_mgmt_compute/models/update_resource.rb'
166
+ autoload :OSDiskImage, '2018-06-01/generated/azure_mgmt_compute/models/osdisk_image.rb'
167
+ autoload :SubResourceReadOnly, '2018-06-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb'
168
+ autoload :DiagnosticsProfile, '2018-06-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb'
169
+ autoload :RecoveryWalkResponse, '2018-06-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb'
170
+ autoload :OSDisk, '2018-06-01/generated/azure_mgmt_compute/models/osdisk.rb'
171
+ autoload :LogAnalyticsOutput, '2018-06-01/generated/azure_mgmt_compute/models/log_analytics_output.rb'
172
+ autoload :ImageDataDisk, '2018-06-01/generated/azure_mgmt_compute/models/image_data_disk.rb'
173
+ autoload :LogAnalyticsInputBase, '2018-06-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb'
174
+ autoload :AvailabilitySet, '2018-06-01/generated/azure_mgmt_compute/models/availability_set.rb'
175
+ autoload :AvailabilitySetUpdate, '2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb'
176
+ autoload :VirtualMachineExtensionImage, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb'
177
+ autoload :VirtualMachineImageResource, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb'
178
+ autoload :VirtualMachineExtension, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb'
179
+ autoload :VirtualMachineExtensionUpdate, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb'
180
+ autoload :VirtualMachineImage, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb'
181
+ autoload :VirtualMachineCaptureResult, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb'
182
+ autoload :ImageReference, '2018-06-01/generated/azure_mgmt_compute/models/image_reference.rb'
183
+ autoload :ManagedDiskParameters, '2018-06-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb'
184
+ autoload :NetworkInterfaceReference, '2018-06-01/generated/azure_mgmt_compute/models/network_interface_reference.rb'
185
+ autoload :VirtualMachine, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb'
186
+ autoload :VirtualMachineUpdate, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb'
187
+ autoload :Image, '2018-06-01/generated/azure_mgmt_compute/models/image.rb'
188
+ autoload :ImageUpdate, '2018-06-01/generated/azure_mgmt_compute/models/image_update.rb'
189
+ autoload :VirtualMachineScaleSetIPConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb'
190
+ autoload :VirtualMachineScaleSetUpdateIPConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb'
191
+ autoload :VirtualMachineScaleSetNetworkConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb'
192
+ autoload :VirtualMachineScaleSetUpdateNetworkConfiguration, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb'
193
+ autoload :VirtualMachineScaleSetExtension, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb'
194
+ autoload :VirtualMachineScaleSet, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb'
195
+ autoload :VirtualMachineScaleSetUpdate, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb'
196
+ autoload :VirtualMachineScaleSetVM, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb'
197
+ autoload :RollingUpgradeStatusInfo, '2018-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb'
198
+ autoload :RequestRateByIntervalInput, '2018-06-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb'
199
+ autoload :ThrottledRequestsInput, '2018-06-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb'
200
+ autoload :RunCommandDocument, '2018-06-01/generated/azure_mgmt_compute/models/run_command_document.rb'
201
+ autoload :Gallery, '2018-06-01/generated/azure_mgmt_compute/models/gallery.rb'
202
+ autoload :GalleryImage, '2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb'
203
+ autoload :GalleryImageVersionPublishingProfile, '2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb'
204
+ autoload :GalleryOSDiskImage, '2018-06-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb'
205
+ autoload :GalleryDataDiskImage, '2018-06-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb'
206
+ autoload :GalleryImageVersion, '2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version.rb'
207
+ autoload :StatusLevelTypes, '2018-06-01/generated/azure_mgmt_compute/models/status_level_types.rb'
208
+ autoload :OperatingSystemTypes, '2018-06-01/generated/azure_mgmt_compute/models/operating_system_types.rb'
209
+ autoload :VirtualMachineSizeTypes, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb'
210
+ autoload :CachingTypes, '2018-06-01/generated/azure_mgmt_compute/models/caching_types.rb'
211
+ autoload :DiskCreateOptionTypes, '2018-06-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb'
212
+ autoload :StorageAccountTypes, '2018-06-01/generated/azure_mgmt_compute/models/storage_account_types.rb'
213
+ autoload :PassNames, '2018-06-01/generated/azure_mgmt_compute/models/pass_names.rb'
214
+ autoload :ComponentNames, '2018-06-01/generated/azure_mgmt_compute/models/component_names.rb'
215
+ autoload :SettingNames, '2018-06-01/generated/azure_mgmt_compute/models/setting_names.rb'
216
+ autoload :ProtocolTypes, '2018-06-01/generated/azure_mgmt_compute/models/protocol_types.rb'
217
+ autoload :ResourceIdentityType, '2018-06-01/generated/azure_mgmt_compute/models/resource_identity_type.rb'
218
+ autoload :MaintenanceOperationResultCodeTypes, '2018-06-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb'
219
+ autoload :UpgradeMode, '2018-06-01/generated/azure_mgmt_compute/models/upgrade_mode.rb'
220
+ autoload :OperatingSystemStateTypes, '2018-06-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb'
221
+ autoload :IPVersion, '2018-06-01/generated/azure_mgmt_compute/models/ipversion.rb'
222
+ autoload :VirtualMachinePriorityTypes, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb'
223
+ autoload :VirtualMachineEvictionPolicyTypes, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb'
224
+ autoload :VirtualMachineScaleSetSkuScaleType, '2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb'
225
+ autoload :UpgradeState, '2018-06-01/generated/azure_mgmt_compute/models/upgrade_state.rb'
226
+ autoload :UpgradeOperationInvoker, '2018-06-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb'
227
+ autoload :RollingUpgradeStatusCode, '2018-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb'
228
+ autoload :RollingUpgradeActionType, '2018-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb'
229
+ autoload :IntervalInMins, '2018-06-01/generated/azure_mgmt_compute/models/interval_in_mins.rb'
230
+ autoload :ScaleTier, '2018-06-01/generated/azure_mgmt_compute/models/scale_tier.rb'
231
+ autoload :AggregatedReplicationState, '2018-06-01/generated/azure_mgmt_compute/models/aggregated_replication_state.rb'
232
+ autoload :ReplicationState, '2018-06-01/generated/azure_mgmt_compute/models/replication_state.rb'
233
+ autoload :HostCaching, '2018-06-01/generated/azure_mgmt_compute/models/host_caching.rb'
234
+ autoload :InstanceViewTypes, '2018-06-01/generated/azure_mgmt_compute/models/instance_view_types.rb'
235
+ autoload :ReplicationStatusTypes, '2018-06-01/generated/azure_mgmt_compute/models/replication_status_types.rb'
236
+ end
237
+ end
@@ -0,0 +1,894 @@
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 AvailabilitySets
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AvailabilitySets 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 an availability set.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param availability_set_name [String] The name of the availability set.
29
+ # @param parameters [AvailabilitySet] Parameters supplied to the Create
30
+ # Availability Set operation.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [AvailabilitySet] operation results.
35
+ #
36
+ def create_or_update(resource_group_name, availability_set_name, parameters, custom_headers:nil)
37
+ response = create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Create or update an availability set.
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group.
45
+ # @param availability_set_name [String] The name of the availability set.
46
+ # @param parameters [AvailabilitySet] Parameters supplied to the Create
47
+ # Availability Set operation.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def create_or_update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers:nil)
54
+ create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Create or update an availability set.
59
+ #
60
+ # @param resource_group_name [String] The name of the resource group.
61
+ # @param availability_set_name [String] The name of the availability set.
62
+ # @param parameters [AvailabilitySet] Parameters supplied to the Create
63
+ # Availability Set operation.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:nil)
70
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
72
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
73
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
+
76
+
77
+ request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
+
80
+ # Set Headers
81
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
82
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
83
+
84
+ # Serialize Request
85
+ request_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet.mapper()
86
+ request_content = @client.serialize(request_mapper, parameters)
87
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
88
+
89
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'
90
+
91
+ request_url = @base_url || @client.base_url
92
+
93
+ options = {
94
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
95
+ path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
96
+ query_params: {'api-version' => @client.api_version},
97
+ body: request_content,
98
+ headers: request_headers.merge(custom_headers || {}),
99
+ base_url: request_url
100
+ }
101
+ promise = @client.make_request_async(:put, path_template, options)
102
+
103
+ promise = promise.then do |result|
104
+ http_response = result.response
105
+ status_code = http_response.status
106
+ response_content = http_response.body
107
+ unless status_code == 200
108
+ error_model = JSON.load(response_content)
109
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
110
+ end
111
+
112
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
113
+ # Deserialize Response
114
+ if status_code == 200
115
+ begin
116
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet.mapper()
118
+ result.body = @client.deserialize(result_mapper, parsed_response)
119
+ rescue Exception => e
120
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
121
+ end
122
+ end
123
+
124
+ result
125
+ end
126
+
127
+ promise.execute
128
+ end
129
+
130
+ #
131
+ # Update an availability set.
132
+ #
133
+ # @param resource_group_name [String] The name of the resource group.
134
+ # @param availability_set_name [String] The name of the availability set.
135
+ # @param parameters [AvailabilitySetUpdate] Parameters supplied to the Update
136
+ # Availability Set operation.
137
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
+ # will be added to the HTTP request.
139
+ #
140
+ # @return [AvailabilitySet] operation results.
141
+ #
142
+ def update(resource_group_name, availability_set_name, parameters, custom_headers:nil)
143
+ response = update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
144
+ response.body unless response.nil?
145
+ end
146
+
147
+ #
148
+ # Update an availability set.
149
+ #
150
+ # @param resource_group_name [String] The name of the resource group.
151
+ # @param availability_set_name [String] The name of the availability set.
152
+ # @param parameters [AvailabilitySetUpdate] Parameters supplied to the Update
153
+ # Availability Set operation.
154
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
155
+ # will be added to the HTTP request.
156
+ #
157
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
158
+ #
159
+ def update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers:nil)
160
+ update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
161
+ end
162
+
163
+ #
164
+ # Update an availability set.
165
+ #
166
+ # @param resource_group_name [String] The name of the resource group.
167
+ # @param availability_set_name [String] The name of the availability set.
168
+ # @param parameters [AvailabilitySetUpdate] Parameters supplied to the Update
169
+ # Availability Set operation.
170
+ # @param [Hash{String => String}] A hash of custom headers that will be added
171
+ # to the HTTP request.
172
+ #
173
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
174
+ #
175
+ def update_async(resource_group_name, availability_set_name, parameters, custom_headers:nil)
176
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
177
+ fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
178
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
179
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
180
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
181
+
182
+
183
+ request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
185
+
186
+ # Set Headers
187
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
188
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
189
+
190
+ # Serialize Request
191
+ request_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate.mapper()
192
+ request_content = @client.serialize(request_mapper, parameters)
193
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
194
+
195
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'
196
+
197
+ request_url = @base_url || @client.base_url
198
+
199
+ options = {
200
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
201
+ path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
202
+ query_params: {'api-version' => @client.api_version},
203
+ body: request_content,
204
+ headers: request_headers.merge(custom_headers || {}),
205
+ base_url: request_url
206
+ }
207
+ promise = @client.make_request_async(:patch, path_template, options)
208
+
209
+ promise = promise.then do |result|
210
+ http_response = result.response
211
+ status_code = http_response.status
212
+ response_content = http_response.body
213
+ unless status_code == 200
214
+ error_model = JSON.load(response_content)
215
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
216
+ end
217
+
218
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
219
+ # Deserialize Response
220
+ if status_code == 200
221
+ begin
222
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
223
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet.mapper()
224
+ result.body = @client.deserialize(result_mapper, parsed_response)
225
+ rescue Exception => e
226
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
227
+ end
228
+ end
229
+
230
+ result
231
+ end
232
+
233
+ promise.execute
234
+ end
235
+
236
+ #
237
+ # Delete an availability set.
238
+ #
239
+ # @param resource_group_name [String] The name of the resource group.
240
+ # @param availability_set_name [String] The name of the availability set.
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ #
245
+ def delete(resource_group_name, availability_set_name, custom_headers:nil)
246
+ response = delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
247
+ nil
248
+ end
249
+
250
+ #
251
+ # Delete an availability set.
252
+ #
253
+ # @param resource_group_name [String] The name of the resource group.
254
+ # @param availability_set_name [String] The name of the availability set.
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 delete_with_http_info(resource_group_name, availability_set_name, custom_headers:nil)
261
+ delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
262
+ end
263
+
264
+ #
265
+ # Delete an availability set.
266
+ #
267
+ # @param resource_group_name [String] The name of the resource group.
268
+ # @param availability_set_name [String] The name of the availability set.
269
+ # @param [Hash{String => String}] A hash of custom headers that will be added
270
+ # to the HTTP request.
271
+ #
272
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
273
+ #
274
+ def delete_async(resource_group_name, availability_set_name, custom_headers:nil)
275
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
276
+ fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
277
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
278
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
279
+
280
+
281
+ request_headers = {}
282
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
283
+
284
+ # Set Headers
285
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
286
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
287
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'
288
+
289
+ request_url = @base_url || @client.base_url
290
+
291
+ options = {
292
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
293
+ path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
294
+ query_params: {'api-version' => @client.api_version},
295
+ headers: request_headers.merge(custom_headers || {}),
296
+ base_url: request_url
297
+ }
298
+ promise = @client.make_request_async(:delete, path_template, options)
299
+
300
+ promise = promise.then do |result|
301
+ http_response = result.response
302
+ status_code = http_response.status
303
+ response_content = http_response.body
304
+ unless status_code == 200 || status_code == 204
305
+ error_model = JSON.load(response_content)
306
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
307
+ end
308
+
309
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
310
+
311
+ result
312
+ end
313
+
314
+ promise.execute
315
+ end
316
+
317
+ #
318
+ # Retrieves information about an availability set.
319
+ #
320
+ # @param resource_group_name [String] The name of the resource group.
321
+ # @param availability_set_name [String] The name of the availability set.
322
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
323
+ # will be added to the HTTP request.
324
+ #
325
+ # @return [AvailabilitySet] operation results.
326
+ #
327
+ def get(resource_group_name, availability_set_name, custom_headers:nil)
328
+ response = get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
329
+ response.body unless response.nil?
330
+ end
331
+
332
+ #
333
+ # Retrieves information about an availability set.
334
+ #
335
+ # @param resource_group_name [String] The name of the resource group.
336
+ # @param availability_set_name [String] The name of the availability set.
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 get_with_http_info(resource_group_name, availability_set_name, custom_headers:nil)
343
+ get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
344
+ end
345
+
346
+ #
347
+ # Retrieves information about an availability set.
348
+ #
349
+ # @param resource_group_name [String] The name of the resource group.
350
+ # @param availability_set_name [String] The name of the availability set.
351
+ # @param [Hash{String => String}] A hash of custom headers that will be added
352
+ # to the HTTP request.
353
+ #
354
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
355
+ #
356
+ def get_async(resource_group_name, availability_set_name, custom_headers:nil)
357
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
358
+ fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
359
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
360
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
361
+
362
+
363
+ request_headers = {}
364
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
365
+
366
+ # Set Headers
367
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
368
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
369
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'
370
+
371
+ request_url = @base_url || @client.base_url
372
+
373
+ options = {
374
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
375
+ path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
376
+ query_params: {'api-version' => @client.api_version},
377
+ headers: request_headers.merge(custom_headers || {}),
378
+ base_url: request_url
379
+ }
380
+ promise = @client.make_request_async(:get, path_template, options)
381
+
382
+ promise = promise.then do |result|
383
+ http_response = result.response
384
+ status_code = http_response.status
385
+ response_content = http_response.body
386
+ unless status_code == 200
387
+ error_model = JSON.load(response_content)
388
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
389
+ end
390
+
391
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
392
+ # Deserialize Response
393
+ if status_code == 200
394
+ begin
395
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
396
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet.mapper()
397
+ result.body = @client.deserialize(result_mapper, parsed_response)
398
+ rescue Exception => e
399
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
400
+ end
401
+ end
402
+
403
+ result
404
+ end
405
+
406
+ promise.execute
407
+ end
408
+
409
+ #
410
+ # Lists all availability sets in a subscription.
411
+ #
412
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
413
+ # will be added to the HTTP request.
414
+ #
415
+ # @return [Array<AvailabilitySet>] operation results.
416
+ #
417
+ def list_by_subscription(custom_headers:nil)
418
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
419
+ first_page.get_all_items
420
+ end
421
+
422
+ #
423
+ # Lists all availability sets in a subscription.
424
+ #
425
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
426
+ # will be added to the HTTP request.
427
+ #
428
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
429
+ #
430
+ def list_by_subscription_with_http_info(custom_headers:nil)
431
+ list_by_subscription_async(custom_headers:custom_headers).value!
432
+ end
433
+
434
+ #
435
+ # Lists all availability sets in a subscription.
436
+ #
437
+ # @param [Hash{String => String}] A hash of custom headers that will be added
438
+ # to the HTTP request.
439
+ #
440
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
441
+ #
442
+ def list_by_subscription_async(custom_headers:nil)
443
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
444
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
445
+
446
+
447
+ request_headers = {}
448
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
449
+
450
+ # Set Headers
451
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
452
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
453
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets'
454
+
455
+ request_url = @base_url || @client.base_url
456
+
457
+ options = {
458
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
459
+ path_params: {'subscriptionId' => @client.subscription_id},
460
+ query_params: {'api-version' => @client.api_version},
461
+ headers: request_headers.merge(custom_headers || {}),
462
+ base_url: request_url
463
+ }
464
+ promise = @client.make_request_async(:get, path_template, options)
465
+
466
+ promise = promise.then do |result|
467
+ http_response = result.response
468
+ status_code = http_response.status
469
+ response_content = http_response.body
470
+ unless status_code == 200
471
+ error_model = JSON.load(response_content)
472
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
473
+ end
474
+
475
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
476
+ # Deserialize Response
477
+ if status_code == 200
478
+ begin
479
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
480
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult.mapper()
481
+ result.body = @client.deserialize(result_mapper, parsed_response)
482
+ rescue Exception => e
483
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
484
+ end
485
+ end
486
+
487
+ result
488
+ end
489
+
490
+ promise.execute
491
+ end
492
+
493
+ #
494
+ # Lists all availability sets in a resource group.
495
+ #
496
+ # @param resource_group_name [String] The name of the resource group.
497
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
498
+ # will be added to the HTTP request.
499
+ #
500
+ # @return [Array<AvailabilitySet>] operation results.
501
+ #
502
+ def list(resource_group_name, custom_headers:nil)
503
+ first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers)
504
+ first_page.get_all_items
505
+ end
506
+
507
+ #
508
+ # Lists all availability sets in a resource group.
509
+ #
510
+ # @param resource_group_name [String] The name of the resource group.
511
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
512
+ # will be added to the HTTP request.
513
+ #
514
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
515
+ #
516
+ def list_with_http_info(resource_group_name, custom_headers:nil)
517
+ list_async(resource_group_name, custom_headers:custom_headers).value!
518
+ end
519
+
520
+ #
521
+ # Lists all availability sets in a resource group.
522
+ #
523
+ # @param resource_group_name [String] The name of the resource group.
524
+ # @param [Hash{String => String}] A hash of custom headers that will be added
525
+ # to the HTTP request.
526
+ #
527
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
528
+ #
529
+ def list_async(resource_group_name, custom_headers:nil)
530
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
531
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
532
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
533
+
534
+
535
+ request_headers = {}
536
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
537
+
538
+ # Set Headers
539
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
540
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
541
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets'
542
+
543
+ request_url = @base_url || @client.base_url
544
+
545
+ options = {
546
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
547
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
548
+ query_params: {'api-version' => @client.api_version},
549
+ headers: request_headers.merge(custom_headers || {}),
550
+ base_url: request_url
551
+ }
552
+ promise = @client.make_request_async(:get, path_template, options)
553
+
554
+ promise = promise.then do |result|
555
+ http_response = result.response
556
+ status_code = http_response.status
557
+ response_content = http_response.body
558
+ unless status_code == 200
559
+ error_model = JSON.load(response_content)
560
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
561
+ end
562
+
563
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
564
+ # Deserialize Response
565
+ if status_code == 200
566
+ begin
567
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
568
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult.mapper()
569
+ result.body = @client.deserialize(result_mapper, parsed_response)
570
+ rescue Exception => e
571
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
572
+ end
573
+ end
574
+
575
+ result
576
+ end
577
+
578
+ promise.execute
579
+ end
580
+
581
+ #
582
+ # Lists all available virtual machine sizes that can be used to create a new
583
+ # virtual machine in an existing availability set.
584
+ #
585
+ # @param resource_group_name [String] The name of the resource group.
586
+ # @param availability_set_name [String] The name of the availability set.
587
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
588
+ # will be added to the HTTP request.
589
+ #
590
+ # @return [VirtualMachineSizeListResult] operation results.
591
+ #
592
+ def list_available_sizes(resource_group_name, availability_set_name, custom_headers:nil)
593
+ response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
594
+ response.body unless response.nil?
595
+ end
596
+
597
+ #
598
+ # Lists all available virtual machine sizes that can be used to create a new
599
+ # virtual machine in an existing availability set.
600
+ #
601
+ # @param resource_group_name [String] The name of the resource group.
602
+ # @param availability_set_name [String] The name of the availability set.
603
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
604
+ # will be added to the HTTP request.
605
+ #
606
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
607
+ #
608
+ def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers:nil)
609
+ list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
610
+ end
611
+
612
+ #
613
+ # Lists all available virtual machine sizes that can be used to create a new
614
+ # virtual machine in an existing availability set.
615
+ #
616
+ # @param resource_group_name [String] The name of the resource group.
617
+ # @param availability_set_name [String] The name of the availability set.
618
+ # @param [Hash{String => String}] A hash of custom headers that will be added
619
+ # to the HTTP request.
620
+ #
621
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
622
+ #
623
+ def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:nil)
624
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
625
+ fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
626
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
627
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
628
+
629
+
630
+ request_headers = {}
631
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
632
+
633
+ # Set Headers
634
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
635
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
636
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes'
637
+
638
+ request_url = @base_url || @client.base_url
639
+
640
+ options = {
641
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
642
+ path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
643
+ query_params: {'api-version' => @client.api_version},
644
+ headers: request_headers.merge(custom_headers || {}),
645
+ base_url: request_url
646
+ }
647
+ promise = @client.make_request_async(:get, path_template, options)
648
+
649
+ promise = promise.then do |result|
650
+ http_response = result.response
651
+ status_code = http_response.status
652
+ response_content = http_response.body
653
+ unless status_code == 200
654
+ error_model = JSON.load(response_content)
655
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
656
+ end
657
+
658
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
659
+ # Deserialize Response
660
+ if status_code == 200
661
+ begin
662
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
663
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeListResult.mapper()
664
+ result.body = @client.deserialize(result_mapper, parsed_response)
665
+ rescue Exception => e
666
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
667
+ end
668
+ end
669
+
670
+ result
671
+ end
672
+
673
+ promise.execute
674
+ end
675
+
676
+ #
677
+ # Lists all availability sets in a subscription.
678
+ #
679
+ # @param next_page_link [String] The NextLink from the previous successful call
680
+ # to List operation.
681
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
682
+ # will be added to the HTTP request.
683
+ #
684
+ # @return [AvailabilitySetListResult] operation results.
685
+ #
686
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
687
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
688
+ response.body unless response.nil?
689
+ end
690
+
691
+ #
692
+ # Lists all availability sets in a subscription.
693
+ #
694
+ # @param next_page_link [String] The NextLink from the previous successful call
695
+ # to List operation.
696
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
697
+ # will be added to the HTTP request.
698
+ #
699
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
700
+ #
701
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
702
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
703
+ end
704
+
705
+ #
706
+ # Lists all availability sets in a subscription.
707
+ #
708
+ # @param next_page_link [String] The NextLink from the previous successful call
709
+ # to List operation.
710
+ # @param [Hash{String => String}] A hash of custom headers that will be added
711
+ # to the HTTP request.
712
+ #
713
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
714
+ #
715
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
716
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
717
+
718
+
719
+ request_headers = {}
720
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
721
+
722
+ # Set Headers
723
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
724
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
725
+ path_template = '{nextLink}'
726
+
727
+ request_url = @base_url || @client.base_url
728
+
729
+ options = {
730
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
731
+ skip_encoding_path_params: {'nextLink' => next_page_link},
732
+ headers: request_headers.merge(custom_headers || {}),
733
+ base_url: request_url
734
+ }
735
+ promise = @client.make_request_async(:get, path_template, options)
736
+
737
+ promise = promise.then do |result|
738
+ http_response = result.response
739
+ status_code = http_response.status
740
+ response_content = http_response.body
741
+ unless status_code == 200
742
+ error_model = JSON.load(response_content)
743
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
744
+ end
745
+
746
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
747
+ # Deserialize Response
748
+ if status_code == 200
749
+ begin
750
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
751
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult.mapper()
752
+ result.body = @client.deserialize(result_mapper, parsed_response)
753
+ rescue Exception => e
754
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
755
+ end
756
+ end
757
+
758
+ result
759
+ end
760
+
761
+ promise.execute
762
+ end
763
+
764
+ #
765
+ # Lists all availability sets in a resource group.
766
+ #
767
+ # @param next_page_link [String] The NextLink from the previous successful call
768
+ # to List operation.
769
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
770
+ # will be added to the HTTP request.
771
+ #
772
+ # @return [AvailabilitySetListResult] operation results.
773
+ #
774
+ def list_next(next_page_link, custom_headers:nil)
775
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
776
+ response.body unless response.nil?
777
+ end
778
+
779
+ #
780
+ # Lists all availability sets in a resource group.
781
+ #
782
+ # @param next_page_link [String] The NextLink from the previous successful call
783
+ # to List operation.
784
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
785
+ # will be added to the HTTP request.
786
+ #
787
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
788
+ #
789
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
790
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
791
+ end
792
+
793
+ #
794
+ # Lists all availability sets in a resource group.
795
+ #
796
+ # @param next_page_link [String] The NextLink from the previous successful call
797
+ # to List operation.
798
+ # @param [Hash{String => String}] A hash of custom headers that will be added
799
+ # to the HTTP request.
800
+ #
801
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
802
+ #
803
+ def list_next_async(next_page_link, custom_headers:nil)
804
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
805
+
806
+
807
+ request_headers = {}
808
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
809
+
810
+ # Set Headers
811
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
812
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
813
+ path_template = '{nextLink}'
814
+
815
+ request_url = @base_url || @client.base_url
816
+
817
+ options = {
818
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
819
+ skip_encoding_path_params: {'nextLink' => next_page_link},
820
+ headers: request_headers.merge(custom_headers || {}),
821
+ base_url: request_url
822
+ }
823
+ promise = @client.make_request_async(:get, path_template, options)
824
+
825
+ promise = promise.then do |result|
826
+ http_response = result.response
827
+ status_code = http_response.status
828
+ response_content = http_response.body
829
+ unless status_code == 200
830
+ error_model = JSON.load(response_content)
831
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
832
+ end
833
+
834
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
835
+ # Deserialize Response
836
+ if status_code == 200
837
+ begin
838
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
839
+ result_mapper = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult.mapper()
840
+ result.body = @client.deserialize(result_mapper, parsed_response)
841
+ rescue Exception => e
842
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
843
+ end
844
+ end
845
+
846
+ result
847
+ end
848
+
849
+ promise.execute
850
+ end
851
+
852
+ #
853
+ # Lists all availability sets in a subscription.
854
+ #
855
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
856
+ # will be added to the HTTP request.
857
+ #
858
+ # @return [AvailabilitySetListResult] which provide lazy access to pages of the
859
+ # response.
860
+ #
861
+ def list_by_subscription_as_lazy(custom_headers:nil)
862
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
863
+ unless response.nil?
864
+ page = response.body
865
+ page.next_method = Proc.new do |next_page_link|
866
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
867
+ end
868
+ page
869
+ end
870
+ end
871
+
872
+ #
873
+ # Lists all availability sets in a resource group.
874
+ #
875
+ # @param resource_group_name [String] The name of the resource group.
876
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
877
+ # will be added to the HTTP request.
878
+ #
879
+ # @return [AvailabilitySetListResult] which provide lazy access to pages of the
880
+ # response.
881
+ #
882
+ def list_as_lazy(resource_group_name, custom_headers:nil)
883
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
884
+ unless response.nil?
885
+ page = response.body
886
+ page.next_method = Proc.new do |next_page_link|
887
+ list_next_async(next_page_link, custom_headers:custom_headers)
888
+ end
889
+ page
890
+ end
891
+ end
892
+
893
+ end
894
+ end