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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_compute.rb +96 -78
- data/lib/generated/azure_mgmt_compute/availability_sets.rb +1 -1
- data/lib/generated/azure_mgmt_compute/compute_management_client.rb +6 -1
- data/lib/generated/azure_mgmt_compute/container_services.rb +1 -1
- data/lib/generated/azure_mgmt_compute/disks.rb +1 -1
- data/lib/generated/azure_mgmt_compute/images.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/access_level.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/access_uri.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/api_error.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/caching_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/component_names.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_custom_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/creation_data.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/data_disk.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/data_disk_image.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/disk.rb +18 -1
- data/lib/generated/azure_mgmt_compute/models/disk_create_option.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/disk_create_option_types.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/disk_list.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/disk_sku.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/disk_update.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/encryption_settings.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/grant_access_data.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/hardware_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/inner_error.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/instance_view_status.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/instance_view_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/ipversion.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/linux_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/list_usages_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/network_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/operating_system_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/operation_status_response.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/osdisk.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/osdisk_image.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/osprofile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/pass_names.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/plan.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/protocol_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/purchase_plan.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_identity_type.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_sku.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_sku_capacity.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_sku_costs.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/resource_skus_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/resource_update.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +104 -0
- data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +84 -0
- data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +84 -0
- data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +131 -0
- data/lib/generated/azure_mgmt_compute/models/run_command_document.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/run_command_document_base.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/run_command_input.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/run_command_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/run_command_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/setting_names.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/sku.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/snapshot.rb +2 -3
- data/lib/generated/azure_mgmt_compute/models/snapshot_list.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/snapshot_update.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/status_level_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/storage_account_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/storage_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/update_resource.rb +52 -0
- data/lib/generated/azure_mgmt_compute/models/upgrade_mode.rb +2 -1
- data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +27 -3
- data/lib/generated/azure_mgmt_compute/models/usage.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/usage_name.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/vault_certificate.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +18 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +47 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +18 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +15 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +129 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +155 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +117 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +55 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +91 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +87 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +69 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +76 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +106 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +13 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/windows_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_compute/resource_skus.rb +1 -1
- data/lib/generated/azure_mgmt_compute/snapshots.rb +1 -1
- data/lib/generated/azure_mgmt_compute/usage_operations.rb +1 -1
- data/lib/generated/azure_mgmt_compute/version.rb +2 -2
- data/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_images.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +390 -0
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +154 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machines.rb +92 -1
- metadata +20 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator
|
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
|
|
@@ -33,6 +33,9 @@ module Azure::ARM::Compute
|
|
33
33
|
# information.
|
34
34
|
attr_accessor :extensions
|
35
35
|
|
36
|
+
# @return [VirtualMachineHealthStatus] The health status for the VM.
|
37
|
+
attr_accessor :vm_health
|
38
|
+
|
36
39
|
# @return [BootDiagnosticsInstanceView] Boot Diagnostics is a debugging
|
37
40
|
# feature which allows you to view Console Output and Screenshot to
|
38
41
|
# diagnose VM status. <br><br> For Linux Virtual Machines, you can easily
|
@@ -120,6 +123,15 @@ module Azure::ARM::Compute
|
|
120
123
|
}
|
121
124
|
}
|
122
125
|
},
|
126
|
+
vm_health: {
|
127
|
+
required: false,
|
128
|
+
read_only: true,
|
129
|
+
serialized_name: 'vmHealth',
|
130
|
+
type: {
|
131
|
+
name: 'Composite',
|
132
|
+
class_name: 'VirtualMachineHealthStatus'
|
133
|
+
}
|
134
|
+
},
|
123
135
|
boot_diagnostics: {
|
124
136
|
required: false,
|
125
137
|
serialized_name: 'bootDiagnostics',
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator
|
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
|
|
6
6
|
module Azure::ARM::Compute
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.13.0'
|
8
8
|
end
|
@@ -0,0 +1,390 @@
|
|
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::ARM::Compute
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class VirtualMachineScaleSetRollingUpgrades
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineScaleSetRollingUpgrades 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
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [OperationStatusResponse] operation results.
|
33
|
+
#
|
34
|
+
def cancel(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
35
|
+
response = cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# @param resource_group_name [String] The name of the resource group.
|
41
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
46
|
+
# response.
|
47
|
+
#
|
48
|
+
def cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
49
|
+
# Send request
|
50
|
+
promise = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers)
|
51
|
+
|
52
|
+
promise = promise.then do |response|
|
53
|
+
# Defining deserialization method.
|
54
|
+
deserialize_method = lambda do |parsed_response|
|
55
|
+
result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
|
56
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Waiting for response.
|
60
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
61
|
+
end
|
62
|
+
|
63
|
+
promise
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
68
|
+
# the latest available Platform Image OS version. Instances which are already
|
69
|
+
# running the latest available OS version are not affected.
|
70
|
+
#
|
71
|
+
# @param resource_group_name [String] The name of the resource group.
|
72
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
73
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
74
|
+
# will be added to the HTTP request.
|
75
|
+
#
|
76
|
+
# @return [OperationStatusResponse] operation results.
|
77
|
+
#
|
78
|
+
def start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
79
|
+
response = start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
80
|
+
response.body unless response.nil?
|
81
|
+
end
|
82
|
+
|
83
|
+
#
|
84
|
+
# @param resource_group_name [String] The name of the resource group.
|
85
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
86
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
87
|
+
# will be added to the HTTP request.
|
88
|
+
#
|
89
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
90
|
+
# response.
|
91
|
+
#
|
92
|
+
def start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
93
|
+
# Send request
|
94
|
+
promise = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers)
|
95
|
+
|
96
|
+
promise = promise.then do |response|
|
97
|
+
# Defining deserialization method.
|
98
|
+
deserialize_method = lambda do |parsed_response|
|
99
|
+
result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
|
100
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Waiting for response.
|
104
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
105
|
+
end
|
106
|
+
|
107
|
+
promise
|
108
|
+
end
|
109
|
+
|
110
|
+
#
|
111
|
+
# Gets the status of the latest virtual machine scale set rolling upgrade.
|
112
|
+
#
|
113
|
+
# @param resource_group_name [String] The name of the resource group.
|
114
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
115
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
|
+
# will be added to the HTTP request.
|
117
|
+
#
|
118
|
+
# @return [RollingUpgradeStatusInfo] operation results.
|
119
|
+
#
|
120
|
+
def get_latest(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
121
|
+
response = get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
122
|
+
response.body unless response.nil?
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Gets the status of the latest virtual machine scale set rolling upgrade.
|
127
|
+
#
|
128
|
+
# @param resource_group_name [String] The name of the resource group.
|
129
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
130
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
|
+
# will be added to the HTTP request.
|
132
|
+
#
|
133
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
134
|
+
#
|
135
|
+
def get_latest_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
136
|
+
get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
137
|
+
end
|
138
|
+
|
139
|
+
#
|
140
|
+
# Gets the status of the latest virtual machine scale set rolling upgrade.
|
141
|
+
#
|
142
|
+
# @param resource_group_name [String] The name of the resource group.
|
143
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
144
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
145
|
+
# to the HTTP request.
|
146
|
+
#
|
147
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
148
|
+
#
|
149
|
+
def get_latest_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
150
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
151
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
152
|
+
api_version = '2017-03-30'
|
153
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
154
|
+
|
155
|
+
|
156
|
+
request_headers = {}
|
157
|
+
|
158
|
+
# Set Headers
|
159
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
160
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
161
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest'
|
162
|
+
|
163
|
+
request_url = @base_url || @client.base_url
|
164
|
+
|
165
|
+
options = {
|
166
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
167
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
168
|
+
query_params: {'api-version' => api_version},
|
169
|
+
headers: request_headers.merge(custom_headers || {}),
|
170
|
+
base_url: request_url
|
171
|
+
}
|
172
|
+
promise = @client.make_request_async(:get, path_template, options)
|
173
|
+
|
174
|
+
promise = promise.then do |result|
|
175
|
+
http_response = result.response
|
176
|
+
status_code = http_response.status
|
177
|
+
response_content = http_response.body
|
178
|
+
unless status_code == 200
|
179
|
+
error_model = JSON.load(response_content)
|
180
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
181
|
+
end
|
182
|
+
|
183
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
184
|
+
# Deserialize Response
|
185
|
+
if status_code == 200
|
186
|
+
begin
|
187
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
188
|
+
result_mapper = Azure::ARM::Compute::Models::RollingUpgradeStatusInfo.mapper()
|
189
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
190
|
+
rescue Exception => e
|
191
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
result
|
196
|
+
end
|
197
|
+
|
198
|
+
promise.execute
|
199
|
+
end
|
200
|
+
|
201
|
+
#
|
202
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
203
|
+
#
|
204
|
+
# @param resource_group_name [String] The name of the resource group.
|
205
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
206
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
207
|
+
# will be added to the HTTP request.
|
208
|
+
#
|
209
|
+
# @return [OperationStatusResponse] operation results.
|
210
|
+
#
|
211
|
+
def begin_cancel(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
212
|
+
response = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
213
|
+
response.body unless response.nil?
|
214
|
+
end
|
215
|
+
|
216
|
+
#
|
217
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
218
|
+
#
|
219
|
+
# @param resource_group_name [String] The name of the resource group.
|
220
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
221
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
222
|
+
# will be added to the HTTP request.
|
223
|
+
#
|
224
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
225
|
+
#
|
226
|
+
def begin_cancel_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
227
|
+
begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
228
|
+
end
|
229
|
+
|
230
|
+
#
|
231
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
232
|
+
#
|
233
|
+
# @param resource_group_name [String] The name of the resource group.
|
234
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
235
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
236
|
+
# to the HTTP request.
|
237
|
+
#
|
238
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
239
|
+
#
|
240
|
+
def begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
241
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
242
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
243
|
+
api_version = '2017-03-30'
|
244
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
245
|
+
|
246
|
+
|
247
|
+
request_headers = {}
|
248
|
+
|
249
|
+
# Set Headers
|
250
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
251
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
252
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel'
|
253
|
+
|
254
|
+
request_url = @base_url || @client.base_url
|
255
|
+
|
256
|
+
options = {
|
257
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
258
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
259
|
+
query_params: {'api-version' => api_version},
|
260
|
+
headers: request_headers.merge(custom_headers || {}),
|
261
|
+
base_url: request_url
|
262
|
+
}
|
263
|
+
promise = @client.make_request_async(:post, path_template, options)
|
264
|
+
|
265
|
+
promise = promise.then do |result|
|
266
|
+
http_response = result.response
|
267
|
+
status_code = http_response.status
|
268
|
+
response_content = http_response.body
|
269
|
+
unless status_code == 200 || status_code == 202
|
270
|
+
error_model = JSON.load(response_content)
|
271
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
272
|
+
end
|
273
|
+
|
274
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
275
|
+
# Deserialize Response
|
276
|
+
if status_code == 200
|
277
|
+
begin
|
278
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
279
|
+
result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
|
280
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
281
|
+
rescue Exception => e
|
282
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
result
|
287
|
+
end
|
288
|
+
|
289
|
+
promise.execute
|
290
|
+
end
|
291
|
+
|
292
|
+
#
|
293
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
294
|
+
# the latest available Platform Image OS version. Instances which are already
|
295
|
+
# running the latest available OS version are not affected.
|
296
|
+
#
|
297
|
+
# @param resource_group_name [String] The name of the resource group.
|
298
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
299
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
300
|
+
# will be added to the HTTP request.
|
301
|
+
#
|
302
|
+
# @return [OperationStatusResponse] operation results.
|
303
|
+
#
|
304
|
+
def begin_start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
305
|
+
response = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
306
|
+
response.body unless response.nil?
|
307
|
+
end
|
308
|
+
|
309
|
+
#
|
310
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
311
|
+
# the latest available Platform Image OS version. Instances which are already
|
312
|
+
# running the latest available OS version are not affected.
|
313
|
+
#
|
314
|
+
# @param resource_group_name [String] The name of the resource group.
|
315
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
316
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
317
|
+
# will be added to the HTTP request.
|
318
|
+
#
|
319
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
320
|
+
#
|
321
|
+
def begin_start_osupgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
322
|
+
begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value!
|
323
|
+
end
|
324
|
+
|
325
|
+
#
|
326
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
327
|
+
# the latest available Platform Image OS version. Instances which are already
|
328
|
+
# running the latest available OS version are not affected.
|
329
|
+
#
|
330
|
+
# @param resource_group_name [String] The name of the resource group.
|
331
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
332
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
333
|
+
# to the HTTP request.
|
334
|
+
#
|
335
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
336
|
+
#
|
337
|
+
def begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
|
338
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
339
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
340
|
+
api_version = '2017-03-30'
|
341
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
342
|
+
|
343
|
+
|
344
|
+
request_headers = {}
|
345
|
+
|
346
|
+
# Set Headers
|
347
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
348
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
349
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'
|
350
|
+
|
351
|
+
request_url = @base_url || @client.base_url
|
352
|
+
|
353
|
+
options = {
|
354
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
355
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
356
|
+
query_params: {'api-version' => api_version},
|
357
|
+
headers: request_headers.merge(custom_headers || {}),
|
358
|
+
base_url: request_url
|
359
|
+
}
|
360
|
+
promise = @client.make_request_async(:post, path_template, options)
|
361
|
+
|
362
|
+
promise = promise.then do |result|
|
363
|
+
http_response = result.response
|
364
|
+
status_code = http_response.status
|
365
|
+
response_content = http_response.body
|
366
|
+
unless status_code == 200 || status_code == 202
|
367
|
+
error_model = JSON.load(response_content)
|
368
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
369
|
+
end
|
370
|
+
|
371
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
372
|
+
# Deserialize Response
|
373
|
+
if status_code == 200
|
374
|
+
begin
|
375
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
376
|
+
result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
|
377
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
378
|
+
rescue Exception => e
|
379
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
383
|
+
result
|
384
|
+
end
|
385
|
+
|
386
|
+
promise.execute
|
387
|
+
end
|
388
|
+
|
389
|
+
end
|
390
|
+
end
|