azure_mgmt_compute 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_compute.rb +96 -78
  3. data/lib/generated/azure_mgmt_compute/availability_sets.rb +1 -1
  4. data/lib/generated/azure_mgmt_compute/compute_management_client.rb +6 -1
  5. data/lib/generated/azure_mgmt_compute/container_services.rb +1 -1
  6. data/lib/generated/azure_mgmt_compute/disks.rb +1 -1
  7. data/lib/generated/azure_mgmt_compute/images.rb +1 -1
  8. data/lib/generated/azure_mgmt_compute/models/access_level.rb +1 -1
  9. data/lib/generated/azure_mgmt_compute/models/access_uri.rb +1 -1
  10. data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +2 -2
  11. data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  12. data/lib/generated/azure_mgmt_compute/models/api_error.rb +1 -1
  13. data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +1 -1
  14. data/lib/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
  15. data/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
  16. data/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb +1 -1
  17. data/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
  18. data/lib/generated/azure_mgmt_compute/models/caching_types.rb +1 -1
  19. data/lib/generated/azure_mgmt_compute/models/component_names.rb +1 -1
  20. data/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
  21. data/lib/generated/azure_mgmt_compute/models/container_service.rb +1 -1
  22. data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +1 -1
  23. data/lib/generated/azure_mgmt_compute/models/container_service_custom_profile.rb +1 -1
  24. data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +1 -1
  25. data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +1 -1
  26. data/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb +1 -1
  27. data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +1 -1
  28. data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +1 -1
  29. data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb +1 -1
  30. data/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb +1 -1
  31. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb +1 -1
  32. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +1 -1
  33. data/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb +1 -1
  34. data/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb +1 -1
  35. data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +1 -1
  36. data/lib/generated/azure_mgmt_compute/models/creation_data.rb +1 -1
  37. data/lib/generated/azure_mgmt_compute/models/data_disk.rb +3 -3
  38. data/lib/generated/azure_mgmt_compute/models/data_disk_image.rb +1 -1
  39. data/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
  40. data/lib/generated/azure_mgmt_compute/models/disk.rb +18 -1
  41. data/lib/generated/azure_mgmt_compute/models/disk_create_option.rb +1 -1
  42. data/lib/generated/azure_mgmt_compute/models/disk_create_option_types.rb +4 -4
  43. data/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +1 -1
  44. data/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
  45. data/lib/generated/azure_mgmt_compute/models/disk_list.rb +1 -1
  46. data/lib/generated/azure_mgmt_compute/models/disk_sku.rb +1 -1
  47. data/lib/generated/azure_mgmt_compute/models/disk_update.rb +1 -1
  48. data/lib/generated/azure_mgmt_compute/models/encryption_settings.rb +1 -1
  49. data/lib/generated/azure_mgmt_compute/models/grant_access_data.rb +1 -1
  50. data/lib/generated/azure_mgmt_compute/models/hardware_profile.rb +1 -1
  51. data/lib/generated/azure_mgmt_compute/models/image.rb +1 -1
  52. data/lib/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -1
  53. data/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
  54. data/lib/generated/azure_mgmt_compute/models/image_list_result.rb +1 -1
  55. data/lib/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -1
  56. data/lib/generated/azure_mgmt_compute/models/image_reference.rb +1 -1
  57. data/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb +1 -1
  58. data/lib/generated/azure_mgmt_compute/models/inner_error.rb +1 -1
  59. data/lib/generated/azure_mgmt_compute/models/instance_view_status.rb +1 -1
  60. data/lib/generated/azure_mgmt_compute/models/instance_view_types.rb +1 -1
  61. data/lib/generated/azure_mgmt_compute/models/ipversion.rb +1 -1
  62. data/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +1 -1
  63. data/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +1 -1
  64. data/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
  65. data/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
  66. data/lib/generated/azure_mgmt_compute/models/linux_configuration.rb +1 -1
  67. data/lib/generated/azure_mgmt_compute/models/list_usages_result.rb +1 -1
  68. data/lib/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +1 -1
  69. data/lib/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +1 -1
  70. data/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -1
  71. data/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
  72. data/lib/generated/azure_mgmt_compute/models/network_profile.rb +1 -1
  73. data/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb +1 -1
  74. data/lib/generated/azure_mgmt_compute/models/operating_system_types.rb +1 -1
  75. data/lib/generated/azure_mgmt_compute/models/operation_status_response.rb +1 -1
  76. data/lib/generated/azure_mgmt_compute/models/osdisk.rb +2 -2
  77. data/lib/generated/azure_mgmt_compute/models/osdisk_image.rb +1 -1
  78. data/lib/generated/azure_mgmt_compute/models/osprofile.rb +1 -1
  79. data/lib/generated/azure_mgmt_compute/models/pass_names.rb +2 -2
  80. data/lib/generated/azure_mgmt_compute/models/plan.rb +1 -1
  81. data/lib/generated/azure_mgmt_compute/models/protocol_types.rb +1 -1
  82. data/lib/generated/azure_mgmt_compute/models/purchase_plan.rb +1 -1
  83. data/lib/generated/azure_mgmt_compute/models/resource_identity_type.rb +1 -1
  84. data/lib/generated/azure_mgmt_compute/models/resource_sku.rb +1 -1
  85. data/lib/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
  86. data/lib/generated/azure_mgmt_compute/models/resource_sku_capacity.rb +1 -1
  87. data/lib/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +1 -1
  88. data/lib/generated/azure_mgmt_compute/models/resource_sku_costs.rb +1 -1
  89. data/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb +2 -2
  90. data/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +1 -1
  91. data/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +2 -2
  92. data/lib/generated/azure_mgmt_compute/models/resource_skus_result.rb +1 -1
  93. data/lib/generated/azure_mgmt_compute/models/resource_update.rb +1 -1
  94. data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
  95. data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +104 -0
  96. data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +84 -0
  97. data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +84 -0
  98. data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
  99. data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +131 -0
  100. data/lib/generated/azure_mgmt_compute/models/run_command_document.rb +1 -1
  101. data/lib/generated/azure_mgmt_compute/models/run_command_document_base.rb +1 -1
  102. data/lib/generated/azure_mgmt_compute/models/run_command_input.rb +1 -1
  103. data/lib/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +1 -1
  104. data/lib/generated/azure_mgmt_compute/models/run_command_list_result.rb +1 -1
  105. data/lib/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +1 -1
  106. data/lib/generated/azure_mgmt_compute/models/run_command_result.rb +1 -1
  107. data/lib/generated/azure_mgmt_compute/models/setting_names.rb +1 -1
  108. data/lib/generated/azure_mgmt_compute/models/sku.rb +1 -1
  109. data/lib/generated/azure_mgmt_compute/models/snapshot.rb +2 -3
  110. data/lib/generated/azure_mgmt_compute/models/snapshot_list.rb +1 -1
  111. data/lib/generated/azure_mgmt_compute/models/snapshot_update.rb +1 -1
  112. data/lib/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
  113. data/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
  114. data/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
  115. data/lib/generated/azure_mgmt_compute/models/status_level_types.rb +1 -1
  116. data/lib/generated/azure_mgmt_compute/models/storage_account_types.rb +1 -1
  117. data/lib/generated/azure_mgmt_compute/models/storage_profile.rb +1 -1
  118. data/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +1 -1
  119. data/lib/generated/azure_mgmt_compute/models/update_resource.rb +52 -0
  120. data/lib/generated/azure_mgmt_compute/models/upgrade_mode.rb +2 -1
  121. data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +27 -3
  122. data/lib/generated/azure_mgmt_compute/models/usage.rb +1 -1
  123. data/lib/generated/azure_mgmt_compute/models/usage_name.rb +1 -1
  124. data/lib/generated/azure_mgmt_compute/models/vault_certificate.rb +1 -1
  125. data/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
  126. data/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
  127. data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +18 -1
  128. data/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
  129. data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
  130. data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
  131. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
  132. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
  133. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +1 -1
  134. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
  135. data/lib/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +47 -0
  136. data/lib/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +1 -1
  137. data/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb +1 -1
  138. data/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
  139. data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
  140. data/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
  141. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +18 -1
  142. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +2 -2
  143. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +2 -2
  144. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +1 -1
  145. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
  146. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +2 -2
  147. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
  148. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
  149. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
  150. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
  151. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
  152. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
  153. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -1
  154. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
  155. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +1 -1
  156. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +15 -1
  157. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +2 -2
  158. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
  159. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +1 -1
  160. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +1 -1
  161. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
  162. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
  163. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
  164. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
  165. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +129 -0
  166. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +155 -0
  167. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +117 -0
  168. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +55 -0
  169. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +91 -0
  170. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +87 -0
  171. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +69 -0
  172. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +76 -0
  173. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +106 -0
  174. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  175. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
  176. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
  177. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
  178. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +13 -1
  179. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
  180. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
  181. data/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
  182. data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
  183. data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +1 -1
  184. data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
  185. data/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
  186. data/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
  187. data/lib/generated/azure_mgmt_compute/models/windows_configuration.rb +1 -1
  188. data/lib/generated/azure_mgmt_compute/module_definition.rb +1 -1
  189. data/lib/generated/azure_mgmt_compute/resource_skus.rb +1 -1
  190. data/lib/generated/azure_mgmt_compute/snapshots.rb +1 -1
  191. data/lib/generated/azure_mgmt_compute/usage_operations.rb +1 -1
  192. data/lib/generated/azure_mgmt_compute/version.rb +2 -2
  193. data/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +1 -1
  194. data/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb +1 -1
  195. data/lib/generated/azure_mgmt_compute/virtual_machine_images.rb +1 -1
  196. data/lib/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +1 -1
  197. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +1 -1
  198. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +390 -0
  199. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1 -1
  200. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +154 -1
  201. data/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
  202. data/lib/generated/azure_mgmt_compute/virtual_machines.rb +92 -1
  203. metadata +20 -2
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -67,6 +67,52 @@ module Azure::ARM::Compute
67
67
  promise
68
68
  end
69
69
 
70
+ #
71
+ # Update a VM scale set.
72
+ #
73
+ # @param resource_group_name [String] The name of the resource group.
74
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
75
+ # update.
76
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
77
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
78
+ # will be added to the HTTP request.
79
+ #
80
+ # @return [VirtualMachineScaleSet] operation results.
81
+ #
82
+ def update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
83
+ response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
84
+ response.body unless response.nil?
85
+ end
86
+
87
+ #
88
+ # @param resource_group_name [String] The name of the resource group.
89
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
90
+ # update.
91
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
92
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
93
+ # will be added to the HTTP request.
94
+ #
95
+ # @return [Concurrent::Promise] promise which provides async access to http
96
+ # response.
97
+ #
98
+ def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
99
+ # Send request
100
+ promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers)
101
+
102
+ promise = promise.then do |response|
103
+ # Defining deserialization method.
104
+ deserialize_method = lambda do |parsed_response|
105
+ result_mapper = Azure::ARM::Compute::Models::VirtualMachineScaleSet.mapper()
106
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
107
+ end
108
+
109
+ # Waiting for response.
110
+ @client.get_long_running_operation_result(response, deserialize_method)
111
+ end
112
+
113
+ promise
114
+ end
115
+
70
116
  #
71
117
  # Deletes a VM scale set.
72
118
  #
@@ -1056,6 +1102,113 @@ module Azure::ARM::Compute
1056
1102
  promise.execute
1057
1103
  end
1058
1104
 
1105
+ #
1106
+ # Update a VM scale set.
1107
+ #
1108
+ # @param resource_group_name [String] The name of the resource group.
1109
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
1110
+ # update.
1111
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
1112
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1113
+ # will be added to the HTTP request.
1114
+ #
1115
+ # @return [VirtualMachineScaleSet] operation results.
1116
+ #
1117
+ def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1118
+ response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
1119
+ response.body unless response.nil?
1120
+ end
1121
+
1122
+ #
1123
+ # Update a VM scale set.
1124
+ #
1125
+ # @param resource_group_name [String] The name of the resource group.
1126
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
1127
+ # update.
1128
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
1129
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1130
+ # will be added to the HTTP request.
1131
+ #
1132
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1133
+ #
1134
+ def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1135
+ begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
1136
+ end
1137
+
1138
+ #
1139
+ # Update a VM scale set.
1140
+ #
1141
+ # @param resource_group_name [String] The name of the resource group.
1142
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
1143
+ # update.
1144
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
1145
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1146
+ # to the HTTP request.
1147
+ #
1148
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1149
+ #
1150
+ def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1151
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1152
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1153
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1154
+ api_version = '2017-03-30'
1155
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1156
+
1157
+
1158
+ request_headers = {}
1159
+
1160
+ # Set Headers
1161
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1162
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1163
+
1164
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1165
+
1166
+ # Serialize Request
1167
+ request_mapper = Azure::ARM::Compute::Models::VirtualMachineScaleSetUpdate.mapper()
1168
+ request_content = @client.serialize(request_mapper, parameters)
1169
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1170
+
1171
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'
1172
+
1173
+ request_url = @base_url || @client.base_url
1174
+
1175
+ options = {
1176
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1177
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1178
+ query_params: {'api-version' => api_version},
1179
+ body: request_content,
1180
+ headers: request_headers.merge(custom_headers || {}),
1181
+ base_url: request_url
1182
+ }
1183
+ promise = @client.make_request_async(:patch, path_template, options)
1184
+
1185
+ promise = promise.then do |result|
1186
+ http_response = result.response
1187
+ status_code = http_response.status
1188
+ response_content = http_response.body
1189
+ unless status_code == 200
1190
+ error_model = JSON.load(response_content)
1191
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1192
+ end
1193
+
1194
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1195
+ # Deserialize Response
1196
+ if status_code == 200
1197
+ begin
1198
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1199
+ result_mapper = Azure::ARM::Compute::Models::VirtualMachineScaleSet.mapper()
1200
+ result.body = @client.deserialize(result_mapper, parsed_response)
1201
+ rescue Exception => e
1202
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1203
+ end
1204
+ end
1205
+
1206
+ result
1207
+ end
1208
+
1209
+ promise.execute
1210
+ end
1211
+
1059
1212
  #
1060
1213
  # Deletes a VM scale set.
1061
1214
  #
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -256,6 +256,97 @@ module Azure::ARM::Compute
256
256
  promise.execute
257
257
  end
258
258
 
259
+ #
260
+ # Retrieves information about the run-time state of a virtual machine.
261
+ #
262
+ # @param resource_group_name [String] The name of the resource group.
263
+ # @param vm_name [String] The name of the virtual machine.
264
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
265
+ # will be added to the HTTP request.
266
+ #
267
+ # @return [VirtualMachineInstanceView] operation results.
268
+ #
269
+ def instance_view(resource_group_name, vm_name, custom_headers = nil)
270
+ response = instance_view_async(resource_group_name, vm_name, custom_headers).value!
271
+ response.body unless response.nil?
272
+ end
273
+
274
+ #
275
+ # Retrieves information about the run-time state of a virtual machine.
276
+ #
277
+ # @param resource_group_name [String] The name of the resource group.
278
+ # @param vm_name [String] The name of the virtual machine.
279
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
280
+ # will be added to the HTTP request.
281
+ #
282
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
283
+ #
284
+ def instance_view_with_http_info(resource_group_name, vm_name, custom_headers = nil)
285
+ instance_view_async(resource_group_name, vm_name, custom_headers).value!
286
+ end
287
+
288
+ #
289
+ # Retrieves information about the run-time state of a virtual machine.
290
+ #
291
+ # @param resource_group_name [String] The name of the resource group.
292
+ # @param vm_name [String] The name of the virtual machine.
293
+ # @param [Hash{String => String}] A hash of custom headers that will be added
294
+ # to the HTTP request.
295
+ #
296
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
297
+ #
298
+ def instance_view_async(resource_group_name, vm_name, custom_headers = nil)
299
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
300
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
301
+ api_version = '2017-03-30'
302
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
303
+
304
+
305
+ request_headers = {}
306
+
307
+ # Set Headers
308
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
309
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
310
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView'
311
+
312
+ request_url = @base_url || @client.base_url
313
+
314
+ options = {
315
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
316
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'subscriptionId' => @client.subscription_id},
317
+ query_params: {'api-version' => api_version},
318
+ headers: request_headers.merge(custom_headers || {}),
319
+ base_url: request_url
320
+ }
321
+ promise = @client.make_request_async(:get, path_template, options)
322
+
323
+ promise = promise.then do |result|
324
+ http_response = result.response
325
+ status_code = http_response.status
326
+ response_content = http_response.body
327
+ unless status_code == 200
328
+ error_model = JSON.load(response_content)
329
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
330
+ end
331
+
332
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
333
+ # Deserialize Response
334
+ if status_code == 200
335
+ begin
336
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
337
+ result_mapper = Azure::ARM::Compute::Models::VirtualMachineInstanceView.mapper()
338
+ result.body = @client.deserialize(result_mapper, parsed_response)
339
+ rescue Exception => e
340
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
341
+ end
342
+ end
343
+
344
+ result
345
+ end
346
+
347
+ promise.execute
348
+ end
349
+
259
350
  #
260
351
  # Converts virtual machine disks from blob-based to managed disks. Virtual
261
352
  # machine must be stop-deallocated before invoking this operation.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_compute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -181,6 +181,12 @@ files:
181
181
  - lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb
182
182
  - lib/generated/azure_mgmt_compute/models/resource_skus_result.rb
183
183
  - lib/generated/azure_mgmt_compute/models/resource_update.rb
184
+ - lib/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb
185
+ - lib/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb
186
+ - lib/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb
187
+ - lib/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb
188
+ - lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb
189
+ - lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb
184
190
  - lib/generated/azure_mgmt_compute/models/run_command_document.rb
185
191
  - lib/generated/azure_mgmt_compute/models/run_command_document_base.rb
186
192
  - lib/generated/azure_mgmt_compute/models/run_command_input.rb
@@ -200,6 +206,7 @@ files:
200
206
  - lib/generated/azure_mgmt_compute/models/storage_account_types.rb
201
207
  - lib/generated/azure_mgmt_compute/models/storage_profile.rb
202
208
  - lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb
209
+ - lib/generated/azure_mgmt_compute/models/update_resource.rb
203
210
  - lib/generated/azure_mgmt_compute/models/upgrade_mode.rb
204
211
  - lib/generated/azure_mgmt_compute/models/upgrade_policy.rb
205
212
  - lib/generated/azure_mgmt_compute/models/usage.rb
@@ -215,6 +222,7 @@ files:
215
222
  - lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb
216
223
  - lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb
217
224
  - lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb
225
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb
218
226
  - lib/generated/azure_mgmt_compute/models/virtual_machine_identity.rb
219
227
  - lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb
220
228
  - lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb
@@ -244,6 +252,15 @@ files:
244
252
  - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb
245
253
  - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb
246
254
  - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb
255
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb
256
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb
257
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb
258
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb
259
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb
260
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb
261
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb
262
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb
263
+ - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb
247
264
  - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb
248
265
  - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb
249
266
  - lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb
@@ -268,6 +285,7 @@ files:
268
285
  - lib/generated/azure_mgmt_compute/virtual_machine_images.rb
269
286
  - lib/generated/azure_mgmt_compute/virtual_machine_run_commands.rb
270
287
  - lib/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb
288
+ - lib/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb
271
289
  - lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb
272
290
  - lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb
273
291
  - lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb