azure_mgmt_compute 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute.rb +131 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +495 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +163 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_error.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_error_base.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/availability_set.rb +137 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
- data/lib/{generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb → 2015-06-15/generated/azure_mgmt_compute/models/boot_diagnostics.rb} +11 -12
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/caching_types.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/component_names.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/hardware_profile.rb +58 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/inner_error.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/instance_view_status.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/instance_view_types.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/list_usages_result.rb +84 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/operating_system_types.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/operation_status_response.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/osdisk_image.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/protocol_types.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/resource.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/setting_names.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/status_level_types.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/sub_resource.rb +44 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/usage.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/usage_name.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine.rb} +93 -69
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_extension_image.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_image.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service_list_result.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb} +13 -13
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +134 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +98 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +85 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +86 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +247 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +85 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
- data/lib/{generated/azure_mgmt_compute/models/container_service_vmsize_types.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb} +13 -8
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/usage_operations.rb +5 -5
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/version.rb +2 -2
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_extensions.rb +14 -14
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_images.rb +12 -12
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1285 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2182 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_sizes.rb +4 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +1839 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute.rb +134 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +495 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +163 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set.rb +137 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +61 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/list_usages_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service_custom_profile.rb → 2016-03-30/generated/azure_mgmt_compute/models/osdisk_image.rb} +13 -11
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/resource.rb +94 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/resource_identity_type.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb → 2016-03-30/generated/azure_mgmt_compute/models/ssh_configuration.rb} +11 -11
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/sub_resource.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +239 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_identity.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +147 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +259 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +77 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +234 -0
- data/lib/{generated/azure_mgmt_compute/module_definition.rb → 2016-03-30/generated/azure_mgmt_compute/version.rb} +3 -3
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1285 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2182 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +1839 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute.rb +165 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +495 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +175 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +1272 -0
- data/lib/{generated/azure_mgmt_compute/container_services.rb → 2016-04-30-preview/generated/azure_mgmt_compute/images.rb} +235 -347
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/access_level.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/access_uri.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set.rb +158 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/creation_data.rb +94 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk.rb +125 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk.rb +174 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_list.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_update.rb +109 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb +72 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/grant_access_data.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/hardware_profile.rb +61 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image.rb +113 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_data_disk.rb +99 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_disk_reference.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_list_result.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_osdisk.rb +113 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_reference.rb +83 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_storage_profile.rb +63 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/list_usages_result.rb +96 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk.rb +138 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource.rb +94 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource_identity_type.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource_update.rb +51 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot.rb +174 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_list.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb +109 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/source_vault.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +46 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine.rb +239 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +70 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +170 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +101 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +125 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +72 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +96 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +47 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +123 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +74 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +259 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +153 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +97 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +77 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +1272 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +234 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/version.rb +8 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1432 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2323 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +1976 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute.rb +210 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/availability_sets.rb +18 -18
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/compute_management_client.rb +7 -7
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/disks.rb +38 -38
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/images.rb +23 -23
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/access_level.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/access_uri.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/boot_diagnostics.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/creation_data.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/data_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/data_disk_image.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_create_option.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_encryption_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_list.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_sku.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/encryption_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/grant_access_data.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/hardware_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_data_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_list_result.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_osdisk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_storage_profile.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/ipversion.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_and_key_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/linux_configuration.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/list_usages_result.rb +96 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/maintenance_redeploy_status.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/network_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/operating_system_state_types.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/osdisk.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/osprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/pass_names.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/plan.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/purchase_plan.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource.rb +94 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource_identity_type.rb +15 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capacity.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_costs.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_skus_result.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_policy.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_document.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_document_base.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_input.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_input_parameter.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_list_result.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_parameter_definition.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_result.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/sku.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot_list.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/storage_account_types.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/storage_profile.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/sub_resource.rb +45 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/sub_resource_read_only.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/update_resource.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/upgrade_mode.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/vault_certificate.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_health_status.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +70 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +95 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +72 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +96 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +97 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_size_types.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/windows_configuration.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/resource_skus.rb +6 -6
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/snapshots.rb +38 -38
- data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +234 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/version.rb +8 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_extension_images.rb +9 -9
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_run_commands.rb +9 -9
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +19 -19
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +13 -13
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +40 -40
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_sets.rb +75 -75
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machines.rb +70 -70
- data/lib/azure_mgmt_compute.rb +6 -1
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/compute_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/compute_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/compute_profile_module.rb +740 -0
- data/lib/profiles/v2017_03_09/compute_module_definition.rb +9 -0
- data/lib/profiles/v2017_03_09/compute_v2017_03_09_profile_client.rb +33 -0
- data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +450 -0
- data/lib/version.rb +7 -0
- metadata +560 -205
- data/lib/generated/azure_mgmt_compute.rb +0 -226
- data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +0 -107
- data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +0 -47
- data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +0 -59
- data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +0 -68
- data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +0 -48
- data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb +0 -18
- data/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb +0 -56
- data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +0 -46
- data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +0 -60
data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_extensions.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Compute::Mgmt::V2015_06_15
|
7
7
|
#
|
8
8
|
# Compute Client
|
9
9
|
#
|
@@ -60,7 +60,7 @@ module Azure::ARM::Compute
|
|
60
60
|
promise = promise.then do |response|
|
61
61
|
# Defining deserialization method.
|
62
62
|
deserialize_method = lambda do |parsed_response|
|
63
|
-
result_mapper = Azure::
|
63
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
|
64
64
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
65
65
|
end
|
66
66
|
|
@@ -106,7 +106,7 @@ module Azure::ARM::Compute
|
|
106
106
|
promise = promise.then do |response|
|
107
107
|
# Defining deserialization method.
|
108
108
|
deserialize_method = lambda do |parsed_response|
|
109
|
-
result_mapper = Azure::
|
109
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
110
110
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
111
111
|
end
|
112
112
|
|
@@ -169,7 +169,7 @@ module Azure::ARM::Compute
|
|
169
169
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
170
170
|
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
171
171
|
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
172
|
-
api_version
|
172
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
173
173
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
174
174
|
|
175
175
|
|
@@ -185,7 +185,7 @@ module Azure::ARM::Compute
|
|
185
185
|
options = {
|
186
186
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
187
187
|
path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
|
188
|
-
query_params: {'$expand' => expand,'api-version' => api_version},
|
188
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
189
189
|
headers: request_headers.merge(custom_headers || {}),
|
190
190
|
base_url: request_url
|
191
191
|
}
|
@@ -205,7 +205,7 @@ module Azure::ARM::Compute
|
|
205
205
|
if status_code == 200
|
206
206
|
begin
|
207
207
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
208
|
-
result_mapper = Azure::
|
208
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
|
209
209
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
210
210
|
rescue Exception => e
|
211
211
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -274,7 +274,7 @@ module Azure::ARM::Compute
|
|
274
274
|
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
275
275
|
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
276
276
|
fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
|
277
|
-
api_version
|
277
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
278
278
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
279
279
|
|
280
280
|
|
@@ -287,7 +287,7 @@ module Azure::ARM::Compute
|
|
287
287
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
288
288
|
|
289
289
|
# Serialize Request
|
290
|
-
request_mapper = Azure::
|
290
|
+
request_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
|
291
291
|
request_content = @client.serialize(request_mapper, extension_parameters)
|
292
292
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
293
293
|
|
@@ -298,7 +298,7 @@ module Azure::ARM::Compute
|
|
298
298
|
options = {
|
299
299
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
300
300
|
path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
|
301
|
-
query_params: {'api-version' => api_version},
|
301
|
+
query_params: {'api-version' => @client.api_version},
|
302
302
|
body: request_content,
|
303
303
|
headers: request_headers.merge(custom_headers || {}),
|
304
304
|
base_url: request_url
|
@@ -319,7 +319,7 @@ module Azure::ARM::Compute
|
|
319
319
|
if status_code == 200
|
320
320
|
begin
|
321
321
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
322
|
-
result_mapper = Azure::
|
322
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
|
323
323
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
324
324
|
rescue Exception => e
|
325
325
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -329,7 +329,7 @@ module Azure::ARM::Compute
|
|
329
329
|
if status_code == 201
|
330
330
|
begin
|
331
331
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
332
|
-
result_mapper = Azure::
|
332
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
|
333
333
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
334
334
|
rescue Exception => e
|
335
335
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -391,7 +391,7 @@ module Azure::ARM::Compute
|
|
391
391
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
392
392
|
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
393
393
|
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
394
|
-
api_version
|
394
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
395
395
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
396
396
|
|
397
397
|
|
@@ -407,7 +407,7 @@ module Azure::ARM::Compute
|
|
407
407
|
options = {
|
408
408
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
409
409
|
path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
|
410
|
-
query_params: {'api-version' => api_version},
|
410
|
+
query_params: {'api-version' => @client.api_version},
|
411
411
|
headers: request_headers.merge(custom_headers || {}),
|
412
412
|
base_url: request_url
|
413
413
|
}
|
@@ -427,7 +427,7 @@ module Azure::ARM::Compute
|
|
427
427
|
if status_code == 200
|
428
428
|
begin
|
429
429
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
430
|
-
result_mapper = Azure::
|
430
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
431
431
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
432
432
|
rescue Exception => e
|
433
433
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Compute::Mgmt::V2015_06_15
|
7
7
|
#
|
8
8
|
# Compute Client
|
9
9
|
#
|
@@ -75,7 +75,7 @@ module Azure::ARM::Compute
|
|
75
75
|
fail ArgumentError, 'offer is nil' if offer.nil?
|
76
76
|
fail ArgumentError, 'skus is nil' if skus.nil?
|
77
77
|
fail ArgumentError, 'version is nil' if version.nil?
|
78
|
-
api_version
|
78
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
79
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
80
|
|
81
81
|
|
@@ -91,7 +91,7 @@ module Azure::ARM::Compute
|
|
91
91
|
options = {
|
92
92
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
93
93
|
path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'version' => version,'subscriptionId' => @client.subscription_id},
|
94
|
-
query_params: {'api-version' => api_version},
|
94
|
+
query_params: {'api-version' => @client.api_version},
|
95
95
|
headers: request_headers.merge(custom_headers || {}),
|
96
96
|
base_url: request_url
|
97
97
|
}
|
@@ -111,7 +111,7 @@ module Azure::ARM::Compute
|
|
111
111
|
if status_code == 200
|
112
112
|
begin
|
113
113
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
-
result_mapper = Azure::
|
114
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineImage.mapper()
|
115
115
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
116
|
rescue Exception => e
|
117
117
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -186,7 +186,7 @@ module Azure::ARM::Compute
|
|
186
186
|
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
187
187
|
fail ArgumentError, 'offer is nil' if offer.nil?
|
188
188
|
fail ArgumentError, 'skus is nil' if skus.nil?
|
189
|
-
api_version
|
189
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
190
190
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
191
191
|
|
192
192
|
|
@@ -202,7 +202,7 @@ module Azure::ARM::Compute
|
|
202
202
|
options = {
|
203
203
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
204
204
|
path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'subscriptionId' => @client.subscription_id},
|
205
|
-
query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => api_version},
|
205
|
+
query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
206
206
|
headers: request_headers.merge(custom_headers || {}),
|
207
207
|
base_url: request_url
|
208
208
|
}
|
@@ -294,7 +294,7 @@ module Azure::ARM::Compute
|
|
294
294
|
def list_offers_async(location, publisher_name, custom_headers = nil)
|
295
295
|
fail ArgumentError, 'location is nil' if location.nil?
|
296
296
|
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
297
|
-
api_version
|
297
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
298
298
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
299
299
|
|
300
300
|
|
@@ -310,7 +310,7 @@ module Azure::ARM::Compute
|
|
310
310
|
options = {
|
311
311
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
312
312
|
path_params: {'location' => location,'publisherName' => publisher_name,'subscriptionId' => @client.subscription_id},
|
313
|
-
query_params: {'api-version' => api_version},
|
313
|
+
query_params: {'api-version' => @client.api_version},
|
314
314
|
headers: request_headers.merge(custom_headers || {}),
|
315
315
|
base_url: request_url
|
316
316
|
}
|
@@ -398,7 +398,7 @@ module Azure::ARM::Compute
|
|
398
398
|
#
|
399
399
|
def list_publishers_async(location, custom_headers = nil)
|
400
400
|
fail ArgumentError, 'location is nil' if location.nil?
|
401
|
-
api_version
|
401
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
402
402
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
403
403
|
|
404
404
|
|
@@ -414,7 +414,7 @@ module Azure::ARM::Compute
|
|
414
414
|
options = {
|
415
415
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
416
416
|
path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
|
417
|
-
query_params: {'api-version' => api_version},
|
417
|
+
query_params: {'api-version' => @client.api_version},
|
418
418
|
headers: request_headers.merge(custom_headers || {}),
|
419
419
|
base_url: request_url
|
420
420
|
}
|
@@ -510,7 +510,7 @@ module Azure::ARM::Compute
|
|
510
510
|
fail ArgumentError, 'location is nil' if location.nil?
|
511
511
|
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
512
512
|
fail ArgumentError, 'offer is nil' if offer.nil?
|
513
|
-
api_version
|
513
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
514
514
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
515
515
|
|
516
516
|
|
@@ -526,7 +526,7 @@ module Azure::ARM::Compute
|
|
526
526
|
options = {
|
527
527
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
528
528
|
path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'subscriptionId' => @client.subscription_id},
|
529
|
-
query_params: {'api-version' => api_version},
|
529
|
+
query_params: {'api-version' => @client.api_version},
|
530
530
|
headers: request_headers.merge(custom_headers || {}),
|
531
531
|
base_url: request_url
|
532
532
|
}
|
@@ -0,0 +1,1285 @@
|
|
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::V2015_06_15
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class VirtualMachineScaleSetVMs
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineScaleSetVMs 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
|
+
# Reimages (upgrade the operating system) a specific virtual machine in a VM
|
26
|
+
# scale set.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group.
|
29
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
30
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [OperationStatusResponse] operation results.
|
35
|
+
#
|
36
|
+
def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
37
|
+
response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The name of the resource group.
|
43
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
44
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
45
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
|
+
# will be added to the HTTP request.
|
47
|
+
#
|
48
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
49
|
+
# response.
|
50
|
+
#
|
51
|
+
def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
52
|
+
# Send request
|
53
|
+
promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
54
|
+
|
55
|
+
promise = promise.then do |response|
|
56
|
+
# Defining deserialization method.
|
57
|
+
deserialize_method = lambda do |parsed_response|
|
58
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
59
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
60
|
+
end
|
61
|
+
|
62
|
+
# Waiting for response.
|
63
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
64
|
+
end
|
65
|
+
|
66
|
+
promise
|
67
|
+
end
|
68
|
+
|
69
|
+
#
|
70
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
71
|
+
# virtual machine and releases the compute resources it uses. You are not
|
72
|
+
# billed for the compute resources of this virtual machine once it is
|
73
|
+
# deallocated.
|
74
|
+
#
|
75
|
+
# @param resource_group_name [String] The name of the resource group.
|
76
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
77
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
78
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
79
|
+
# will be added to the HTTP request.
|
80
|
+
#
|
81
|
+
# @return [OperationStatusResponse] operation results.
|
82
|
+
#
|
83
|
+
def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
84
|
+
response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
85
|
+
response.body unless response.nil?
|
86
|
+
end
|
87
|
+
|
88
|
+
#
|
89
|
+
# @param resource_group_name [String] The name of the resource group.
|
90
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
91
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
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 deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
99
|
+
# Send request
|
100
|
+
promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
101
|
+
|
102
|
+
promise = promise.then do |response|
|
103
|
+
# Defining deserialization method.
|
104
|
+
deserialize_method = lambda do |parsed_response|
|
105
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.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
|
+
|
116
|
+
#
|
117
|
+
# Deletes a virtual machine from a VM scale set.
|
118
|
+
#
|
119
|
+
# @param resource_group_name [String] The name of the resource group.
|
120
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
121
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
123
|
+
# will be added to the HTTP request.
|
124
|
+
#
|
125
|
+
# @return [OperationStatusResponse] operation results.
|
126
|
+
#
|
127
|
+
def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
128
|
+
response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
129
|
+
response.body unless response.nil?
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# @param resource_group_name [String] The name of the resource group.
|
134
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
135
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
136
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
|
+
# will be added to the HTTP request.
|
138
|
+
#
|
139
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
140
|
+
# response.
|
141
|
+
#
|
142
|
+
def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
143
|
+
# Send request
|
144
|
+
promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
145
|
+
|
146
|
+
promise = promise.then do |response|
|
147
|
+
# Defining deserialization method.
|
148
|
+
deserialize_method = lambda do |parsed_response|
|
149
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
150
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Waiting for response.
|
154
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
155
|
+
end
|
156
|
+
|
157
|
+
promise
|
158
|
+
end
|
159
|
+
|
160
|
+
#
|
161
|
+
# Gets a virtual machine from a VM scale set.
|
162
|
+
#
|
163
|
+
# @param resource_group_name [String] The name of the resource group.
|
164
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
165
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
166
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
167
|
+
# will be added to the HTTP request.
|
168
|
+
#
|
169
|
+
# @return [VirtualMachineScaleSetVM] operation results.
|
170
|
+
#
|
171
|
+
def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
172
|
+
response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
173
|
+
response.body unless response.nil?
|
174
|
+
end
|
175
|
+
|
176
|
+
#
|
177
|
+
# Gets a virtual machine from a VM scale set.
|
178
|
+
#
|
179
|
+
# @param resource_group_name [String] The name of the resource group.
|
180
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
181
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
182
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
183
|
+
# will be added to the HTTP request.
|
184
|
+
#
|
185
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
186
|
+
#
|
187
|
+
def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
188
|
+
get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
189
|
+
end
|
190
|
+
|
191
|
+
#
|
192
|
+
# Gets a virtual machine from a VM scale set.
|
193
|
+
#
|
194
|
+
# @param resource_group_name [String] The name of the resource group.
|
195
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
196
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
197
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
198
|
+
# to the HTTP request.
|
199
|
+
#
|
200
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
201
|
+
#
|
202
|
+
def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
203
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
204
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
205
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
206
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
207
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
208
|
+
|
209
|
+
|
210
|
+
request_headers = {}
|
211
|
+
|
212
|
+
# Set Headers
|
213
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
214
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
215
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
|
216
|
+
|
217
|
+
request_url = @base_url || @client.base_url
|
218
|
+
|
219
|
+
options = {
|
220
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
221
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
222
|
+
query_params: {'api-version' => @client.api_version},
|
223
|
+
headers: request_headers.merge(custom_headers || {}),
|
224
|
+
base_url: request_url
|
225
|
+
}
|
226
|
+
promise = @client.make_request_async(:get, path_template, options)
|
227
|
+
|
228
|
+
promise = promise.then do |result|
|
229
|
+
http_response = result.response
|
230
|
+
status_code = http_response.status
|
231
|
+
response_content = http_response.body
|
232
|
+
unless status_code == 200
|
233
|
+
error_model = JSON.load(response_content)
|
234
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
235
|
+
end
|
236
|
+
|
237
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
238
|
+
# Deserialize Response
|
239
|
+
if status_code == 200
|
240
|
+
begin
|
241
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
242
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVM.mapper()
|
243
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
244
|
+
rescue Exception => e
|
245
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
result
|
250
|
+
end
|
251
|
+
|
252
|
+
promise.execute
|
253
|
+
end
|
254
|
+
|
255
|
+
#
|
256
|
+
# Gets the status of a virtual machine from a VM scale set.
|
257
|
+
#
|
258
|
+
# @param resource_group_name [String] The name of the resource group.
|
259
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
260
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
261
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
262
|
+
# will be added to the HTTP request.
|
263
|
+
#
|
264
|
+
# @return [VirtualMachineScaleSetVMInstanceView] operation results.
|
265
|
+
#
|
266
|
+
def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
267
|
+
response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
268
|
+
response.body unless response.nil?
|
269
|
+
end
|
270
|
+
|
271
|
+
#
|
272
|
+
# Gets the status of a virtual machine from a VM scale set.
|
273
|
+
#
|
274
|
+
# @param resource_group_name [String] The name of the resource group.
|
275
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
276
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
277
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
278
|
+
# will be added to the HTTP request.
|
279
|
+
#
|
280
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
281
|
+
#
|
282
|
+
def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
283
|
+
get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
284
|
+
end
|
285
|
+
|
286
|
+
#
|
287
|
+
# Gets the status of a virtual machine from a VM scale set.
|
288
|
+
#
|
289
|
+
# @param resource_group_name [String] The name of the resource group.
|
290
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
291
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
292
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
293
|
+
# to the HTTP request.
|
294
|
+
#
|
295
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
296
|
+
#
|
297
|
+
def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
298
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
299
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
300
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
301
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
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/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/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,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
317
|
+
query_params: {'api-version' => @client.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::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVMInstanceView.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
|
+
|
350
|
+
#
|
351
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
352
|
+
#
|
353
|
+
# @param resource_group_name [String] The name of the resource group.
|
354
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
355
|
+
# @param filter [String] The filter to apply to the operation.
|
356
|
+
# @param select [String] The list parameters.
|
357
|
+
# @param expand [String] The expand expression to apply to the operation.
|
358
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
359
|
+
# will be added to the HTTP request.
|
360
|
+
#
|
361
|
+
# @return [Array<VirtualMachineScaleSetVM>] operation results.
|
362
|
+
#
|
363
|
+
def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
|
364
|
+
first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers)
|
365
|
+
first_page.get_all_items
|
366
|
+
end
|
367
|
+
|
368
|
+
#
|
369
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
370
|
+
#
|
371
|
+
# @param resource_group_name [String] The name of the resource group.
|
372
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
373
|
+
# @param filter [String] The filter to apply to the operation.
|
374
|
+
# @param select [String] The list parameters.
|
375
|
+
# @param expand [String] The expand expression to apply to the operation.
|
376
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
377
|
+
# will be added to the HTTP request.
|
378
|
+
#
|
379
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
380
|
+
#
|
381
|
+
def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
|
382
|
+
list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
|
383
|
+
end
|
384
|
+
|
385
|
+
#
|
386
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
387
|
+
#
|
388
|
+
# @param resource_group_name [String] The name of the resource group.
|
389
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
390
|
+
# @param filter [String] The filter to apply to the operation.
|
391
|
+
# @param select [String] The list parameters.
|
392
|
+
# @param expand [String] The expand expression to apply to the operation.
|
393
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
394
|
+
# to the HTTP request.
|
395
|
+
#
|
396
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
397
|
+
#
|
398
|
+
def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
|
399
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
400
|
+
fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
|
401
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
402
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
403
|
+
|
404
|
+
|
405
|
+
request_headers = {}
|
406
|
+
|
407
|
+
# Set Headers
|
408
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
409
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
410
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines'
|
411
|
+
|
412
|
+
request_url = @base_url || @client.base_url
|
413
|
+
|
414
|
+
options = {
|
415
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
416
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
|
417
|
+
query_params: {'$filter' => filter,'$select' => select,'$expand' => expand,'api-version' => @client.api_version},
|
418
|
+
headers: request_headers.merge(custom_headers || {}),
|
419
|
+
base_url: request_url
|
420
|
+
}
|
421
|
+
promise = @client.make_request_async(:get, path_template, options)
|
422
|
+
|
423
|
+
promise = promise.then do |result|
|
424
|
+
http_response = result.response
|
425
|
+
status_code = http_response.status
|
426
|
+
response_content = http_response.body
|
427
|
+
unless status_code == 200
|
428
|
+
error_model = JSON.load(response_content)
|
429
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
430
|
+
end
|
431
|
+
|
432
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
433
|
+
# Deserialize Response
|
434
|
+
if status_code == 200
|
435
|
+
begin
|
436
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
437
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVMListResult.mapper()
|
438
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
439
|
+
rescue Exception => e
|
440
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
result
|
445
|
+
end
|
446
|
+
|
447
|
+
promise.execute
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
452
|
+
# still attached and you are getting charged for the resources. Instead, use
|
453
|
+
# deallocate to release resources and avoid charges.
|
454
|
+
#
|
455
|
+
# @param resource_group_name [String] The name of the resource group.
|
456
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
457
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
458
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
459
|
+
# will be added to the HTTP request.
|
460
|
+
#
|
461
|
+
# @return [OperationStatusResponse] operation results.
|
462
|
+
#
|
463
|
+
def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
464
|
+
response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
465
|
+
response.body unless response.nil?
|
466
|
+
end
|
467
|
+
|
468
|
+
#
|
469
|
+
# @param resource_group_name [String] The name of the resource group.
|
470
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
471
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
472
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
473
|
+
# will be added to the HTTP request.
|
474
|
+
#
|
475
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
476
|
+
# response.
|
477
|
+
#
|
478
|
+
def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
479
|
+
# Send request
|
480
|
+
promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
481
|
+
|
482
|
+
promise = promise.then do |response|
|
483
|
+
# Defining deserialization method.
|
484
|
+
deserialize_method = lambda do |parsed_response|
|
485
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
486
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
487
|
+
end
|
488
|
+
|
489
|
+
# Waiting for response.
|
490
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
491
|
+
end
|
492
|
+
|
493
|
+
promise
|
494
|
+
end
|
495
|
+
|
496
|
+
#
|
497
|
+
# Restarts a virtual machine in a VM scale set.
|
498
|
+
#
|
499
|
+
# @param resource_group_name [String] The name of the resource group.
|
500
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
501
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
502
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
503
|
+
# will be added to the HTTP request.
|
504
|
+
#
|
505
|
+
# @return [OperationStatusResponse] operation results.
|
506
|
+
#
|
507
|
+
def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
508
|
+
response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
509
|
+
response.body unless response.nil?
|
510
|
+
end
|
511
|
+
|
512
|
+
#
|
513
|
+
# @param resource_group_name [String] The name of the resource group.
|
514
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
515
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
516
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
517
|
+
# will be added to the HTTP request.
|
518
|
+
#
|
519
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
520
|
+
# response.
|
521
|
+
#
|
522
|
+
def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
523
|
+
# Send request
|
524
|
+
promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
525
|
+
|
526
|
+
promise = promise.then do |response|
|
527
|
+
# Defining deserialization method.
|
528
|
+
deserialize_method = lambda do |parsed_response|
|
529
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
530
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
531
|
+
end
|
532
|
+
|
533
|
+
# Waiting for response.
|
534
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
535
|
+
end
|
536
|
+
|
537
|
+
promise
|
538
|
+
end
|
539
|
+
|
540
|
+
#
|
541
|
+
# Starts a virtual machine in a VM scale set.
|
542
|
+
#
|
543
|
+
# @param resource_group_name [String] The name of the resource group.
|
544
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
545
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
546
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
547
|
+
# will be added to the HTTP request.
|
548
|
+
#
|
549
|
+
# @return [OperationStatusResponse] operation results.
|
550
|
+
#
|
551
|
+
def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
552
|
+
response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
553
|
+
response.body unless response.nil?
|
554
|
+
end
|
555
|
+
|
556
|
+
#
|
557
|
+
# @param resource_group_name [String] The name of the resource group.
|
558
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
559
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
560
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
561
|
+
# will be added to the HTTP request.
|
562
|
+
#
|
563
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
564
|
+
# response.
|
565
|
+
#
|
566
|
+
def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
567
|
+
# Send request
|
568
|
+
promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
569
|
+
|
570
|
+
promise = promise.then do |response|
|
571
|
+
# Defining deserialization method.
|
572
|
+
deserialize_method = lambda do |parsed_response|
|
573
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
574
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
575
|
+
end
|
576
|
+
|
577
|
+
# Waiting for response.
|
578
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
579
|
+
end
|
580
|
+
|
581
|
+
promise
|
582
|
+
end
|
583
|
+
|
584
|
+
#
|
585
|
+
# Reimages (upgrade the operating system) a specific virtual machine in a VM
|
586
|
+
# scale set.
|
587
|
+
#
|
588
|
+
# @param resource_group_name [String] The name of the resource group.
|
589
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
590
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
591
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
592
|
+
# will be added to the HTTP request.
|
593
|
+
#
|
594
|
+
# @return [OperationStatusResponse] operation results.
|
595
|
+
#
|
596
|
+
def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
597
|
+
response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
598
|
+
response.body unless response.nil?
|
599
|
+
end
|
600
|
+
|
601
|
+
#
|
602
|
+
# Reimages (upgrade the operating system) a specific virtual machine in a VM
|
603
|
+
# scale set.
|
604
|
+
#
|
605
|
+
# @param resource_group_name [String] The name of the resource group.
|
606
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
607
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
608
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
609
|
+
# will be added to the HTTP request.
|
610
|
+
#
|
611
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
612
|
+
#
|
613
|
+
def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
614
|
+
begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
615
|
+
end
|
616
|
+
|
617
|
+
#
|
618
|
+
# Reimages (upgrade the operating system) a specific virtual machine in a VM
|
619
|
+
# scale set.
|
620
|
+
#
|
621
|
+
# @param resource_group_name [String] The name of the resource group.
|
622
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
623
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
624
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
625
|
+
# to the HTTP request.
|
626
|
+
#
|
627
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
628
|
+
#
|
629
|
+
def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
630
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
631
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
632
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
633
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
634
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
635
|
+
|
636
|
+
|
637
|
+
request_headers = {}
|
638
|
+
|
639
|
+
# Set Headers
|
640
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
641
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
642
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'
|
643
|
+
|
644
|
+
request_url = @base_url || @client.base_url
|
645
|
+
|
646
|
+
options = {
|
647
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
648
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
649
|
+
query_params: {'api-version' => @client.api_version},
|
650
|
+
headers: request_headers.merge(custom_headers || {}),
|
651
|
+
base_url: request_url
|
652
|
+
}
|
653
|
+
promise = @client.make_request_async(:post, path_template, options)
|
654
|
+
|
655
|
+
promise = promise.then do |result|
|
656
|
+
http_response = result.response
|
657
|
+
status_code = http_response.status
|
658
|
+
response_content = http_response.body
|
659
|
+
unless status_code == 200 || status_code == 202
|
660
|
+
error_model = JSON.load(response_content)
|
661
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
662
|
+
end
|
663
|
+
|
664
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
665
|
+
# Deserialize Response
|
666
|
+
if status_code == 200
|
667
|
+
begin
|
668
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
669
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
670
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
671
|
+
rescue Exception => e
|
672
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
result
|
677
|
+
end
|
678
|
+
|
679
|
+
promise.execute
|
680
|
+
end
|
681
|
+
|
682
|
+
#
|
683
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
684
|
+
# virtual machine and releases the compute resources it uses. You are not
|
685
|
+
# billed for the compute resources of this virtual machine once it is
|
686
|
+
# deallocated.
|
687
|
+
#
|
688
|
+
# @param resource_group_name [String] The name of the resource group.
|
689
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
690
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
691
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
692
|
+
# will be added to the HTTP request.
|
693
|
+
#
|
694
|
+
# @return [OperationStatusResponse] operation results.
|
695
|
+
#
|
696
|
+
def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
697
|
+
response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
698
|
+
response.body unless response.nil?
|
699
|
+
end
|
700
|
+
|
701
|
+
#
|
702
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
703
|
+
# virtual machine and releases the compute resources it uses. You are not
|
704
|
+
# billed for the compute resources of this virtual machine once it is
|
705
|
+
# deallocated.
|
706
|
+
#
|
707
|
+
# @param resource_group_name [String] The name of the resource group.
|
708
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
709
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
710
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
711
|
+
# will be added to the HTTP request.
|
712
|
+
#
|
713
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
714
|
+
#
|
715
|
+
def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
716
|
+
begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
717
|
+
end
|
718
|
+
|
719
|
+
#
|
720
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
721
|
+
# virtual machine and releases the compute resources it uses. You are not
|
722
|
+
# billed for the compute resources of this virtual machine once it is
|
723
|
+
# deallocated.
|
724
|
+
#
|
725
|
+
# @param resource_group_name [String] The name of the resource group.
|
726
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
727
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
728
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
729
|
+
# to the HTTP request.
|
730
|
+
#
|
731
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
732
|
+
#
|
733
|
+
def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
734
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
735
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
736
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
737
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
738
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
739
|
+
|
740
|
+
|
741
|
+
request_headers = {}
|
742
|
+
|
743
|
+
# Set Headers
|
744
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
745
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
746
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'
|
747
|
+
|
748
|
+
request_url = @base_url || @client.base_url
|
749
|
+
|
750
|
+
options = {
|
751
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
752
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
753
|
+
query_params: {'api-version' => @client.api_version},
|
754
|
+
headers: request_headers.merge(custom_headers || {}),
|
755
|
+
base_url: request_url
|
756
|
+
}
|
757
|
+
promise = @client.make_request_async(:post, path_template, options)
|
758
|
+
|
759
|
+
promise = promise.then do |result|
|
760
|
+
http_response = result.response
|
761
|
+
status_code = http_response.status
|
762
|
+
response_content = http_response.body
|
763
|
+
unless status_code == 200 || status_code == 202
|
764
|
+
error_model = JSON.load(response_content)
|
765
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
766
|
+
end
|
767
|
+
|
768
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
769
|
+
# Deserialize Response
|
770
|
+
if status_code == 200
|
771
|
+
begin
|
772
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
773
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
774
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
775
|
+
rescue Exception => e
|
776
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
777
|
+
end
|
778
|
+
end
|
779
|
+
|
780
|
+
result
|
781
|
+
end
|
782
|
+
|
783
|
+
promise.execute
|
784
|
+
end
|
785
|
+
|
786
|
+
#
|
787
|
+
# Deletes a virtual machine from a VM scale set.
|
788
|
+
#
|
789
|
+
# @param resource_group_name [String] The name of the resource group.
|
790
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
791
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
792
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
793
|
+
# will be added to the HTTP request.
|
794
|
+
#
|
795
|
+
# @return [OperationStatusResponse] operation results.
|
796
|
+
#
|
797
|
+
def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
798
|
+
response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
799
|
+
response.body unless response.nil?
|
800
|
+
end
|
801
|
+
|
802
|
+
#
|
803
|
+
# Deletes a virtual machine from a VM scale set.
|
804
|
+
#
|
805
|
+
# @param resource_group_name [String] The name of the resource group.
|
806
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
807
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
808
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
809
|
+
# will be added to the HTTP request.
|
810
|
+
#
|
811
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
812
|
+
#
|
813
|
+
def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
814
|
+
begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
815
|
+
end
|
816
|
+
|
817
|
+
#
|
818
|
+
# Deletes a virtual machine from a VM scale set.
|
819
|
+
#
|
820
|
+
# @param resource_group_name [String] The name of the resource group.
|
821
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
822
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
823
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
824
|
+
# to the HTTP request.
|
825
|
+
#
|
826
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
827
|
+
#
|
828
|
+
def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
829
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
830
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
831
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
832
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
833
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
834
|
+
|
835
|
+
|
836
|
+
request_headers = {}
|
837
|
+
|
838
|
+
# Set Headers
|
839
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
840
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
841
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
|
842
|
+
|
843
|
+
request_url = @base_url || @client.base_url
|
844
|
+
|
845
|
+
options = {
|
846
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
847
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
848
|
+
query_params: {'api-version' => @client.api_version},
|
849
|
+
headers: request_headers.merge(custom_headers || {}),
|
850
|
+
base_url: request_url
|
851
|
+
}
|
852
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
853
|
+
|
854
|
+
promise = promise.then do |result|
|
855
|
+
http_response = result.response
|
856
|
+
status_code = http_response.status
|
857
|
+
response_content = http_response.body
|
858
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
859
|
+
error_model = JSON.load(response_content)
|
860
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
861
|
+
end
|
862
|
+
|
863
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
864
|
+
# Deserialize Response
|
865
|
+
if status_code == 200
|
866
|
+
begin
|
867
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
868
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
869
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
870
|
+
rescue Exception => e
|
871
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
872
|
+
end
|
873
|
+
end
|
874
|
+
|
875
|
+
result
|
876
|
+
end
|
877
|
+
|
878
|
+
promise.execute
|
879
|
+
end
|
880
|
+
|
881
|
+
#
|
882
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
883
|
+
# still attached and you are getting charged for the resources. Instead, use
|
884
|
+
# deallocate to release resources and avoid charges.
|
885
|
+
#
|
886
|
+
# @param resource_group_name [String] The name of the resource group.
|
887
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
888
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
889
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
890
|
+
# will be added to the HTTP request.
|
891
|
+
#
|
892
|
+
# @return [OperationStatusResponse] operation results.
|
893
|
+
#
|
894
|
+
def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
895
|
+
response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
896
|
+
response.body unless response.nil?
|
897
|
+
end
|
898
|
+
|
899
|
+
#
|
900
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
901
|
+
# still attached and you are getting charged for the resources. Instead, use
|
902
|
+
# deallocate to release resources and avoid charges.
|
903
|
+
#
|
904
|
+
# @param resource_group_name [String] The name of the resource group.
|
905
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
906
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
907
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
908
|
+
# will be added to the HTTP request.
|
909
|
+
#
|
910
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
911
|
+
#
|
912
|
+
def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
913
|
+
begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
914
|
+
end
|
915
|
+
|
916
|
+
#
|
917
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
918
|
+
# still attached and you are getting charged for the resources. Instead, use
|
919
|
+
# deallocate to release resources and avoid charges.
|
920
|
+
#
|
921
|
+
# @param resource_group_name [String] The name of the resource group.
|
922
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
923
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
924
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
925
|
+
# to the HTTP request.
|
926
|
+
#
|
927
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
928
|
+
#
|
929
|
+
def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
930
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
931
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
932
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
933
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
934
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
935
|
+
|
936
|
+
|
937
|
+
request_headers = {}
|
938
|
+
|
939
|
+
# Set Headers
|
940
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
941
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
942
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'
|
943
|
+
|
944
|
+
request_url = @base_url || @client.base_url
|
945
|
+
|
946
|
+
options = {
|
947
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
948
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
949
|
+
query_params: {'api-version' => @client.api_version},
|
950
|
+
headers: request_headers.merge(custom_headers || {}),
|
951
|
+
base_url: request_url
|
952
|
+
}
|
953
|
+
promise = @client.make_request_async(:post, path_template, options)
|
954
|
+
|
955
|
+
promise = promise.then do |result|
|
956
|
+
http_response = result.response
|
957
|
+
status_code = http_response.status
|
958
|
+
response_content = http_response.body
|
959
|
+
unless status_code == 200 || status_code == 202
|
960
|
+
error_model = JSON.load(response_content)
|
961
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
962
|
+
end
|
963
|
+
|
964
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
965
|
+
# Deserialize Response
|
966
|
+
if status_code == 200
|
967
|
+
begin
|
968
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
969
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
970
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
971
|
+
rescue Exception => e
|
972
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
973
|
+
end
|
974
|
+
end
|
975
|
+
|
976
|
+
result
|
977
|
+
end
|
978
|
+
|
979
|
+
promise.execute
|
980
|
+
end
|
981
|
+
|
982
|
+
#
|
983
|
+
# Restarts a virtual machine in a VM scale set.
|
984
|
+
#
|
985
|
+
# @param resource_group_name [String] The name of the resource group.
|
986
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
987
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
988
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
989
|
+
# will be added to the HTTP request.
|
990
|
+
#
|
991
|
+
# @return [OperationStatusResponse] operation results.
|
992
|
+
#
|
993
|
+
def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
994
|
+
response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
995
|
+
response.body unless response.nil?
|
996
|
+
end
|
997
|
+
|
998
|
+
#
|
999
|
+
# Restarts a virtual machine in a VM scale set.
|
1000
|
+
#
|
1001
|
+
# @param resource_group_name [String] The name of the resource group.
|
1002
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1003
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1004
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1005
|
+
# will be added to the HTTP request.
|
1006
|
+
#
|
1007
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1008
|
+
#
|
1009
|
+
def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
1010
|
+
begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
#
|
1014
|
+
# Restarts a virtual machine in a VM scale set.
|
1015
|
+
#
|
1016
|
+
# @param resource_group_name [String] The name of the resource group.
|
1017
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1018
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1019
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1020
|
+
# to the HTTP request.
|
1021
|
+
#
|
1022
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1023
|
+
#
|
1024
|
+
def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
1025
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1026
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1027
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1028
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1029
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1030
|
+
|
1031
|
+
|
1032
|
+
request_headers = {}
|
1033
|
+
|
1034
|
+
# Set Headers
|
1035
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1036
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1037
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'
|
1038
|
+
|
1039
|
+
request_url = @base_url || @client.base_url
|
1040
|
+
|
1041
|
+
options = {
|
1042
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1043
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1044
|
+
query_params: {'api-version' => @client.api_version},
|
1045
|
+
headers: request_headers.merge(custom_headers || {}),
|
1046
|
+
base_url: request_url
|
1047
|
+
}
|
1048
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1049
|
+
|
1050
|
+
promise = promise.then do |result|
|
1051
|
+
http_response = result.response
|
1052
|
+
status_code = http_response.status
|
1053
|
+
response_content = http_response.body
|
1054
|
+
unless status_code == 200 || status_code == 202
|
1055
|
+
error_model = JSON.load(response_content)
|
1056
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1060
|
+
# Deserialize Response
|
1061
|
+
if status_code == 200
|
1062
|
+
begin
|
1063
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1064
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
1065
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1066
|
+
rescue Exception => e
|
1067
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
result
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
promise.execute
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
#
|
1078
|
+
# Starts a virtual machine in a VM scale set.
|
1079
|
+
#
|
1080
|
+
# @param resource_group_name [String] The name of the resource group.
|
1081
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1082
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1083
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1084
|
+
# will be added to the HTTP request.
|
1085
|
+
#
|
1086
|
+
# @return [OperationStatusResponse] operation results.
|
1087
|
+
#
|
1088
|
+
def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
1089
|
+
response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
1090
|
+
response.body unless response.nil?
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
#
|
1094
|
+
# Starts a virtual machine in a VM scale set.
|
1095
|
+
#
|
1096
|
+
# @param resource_group_name [String] The name of the resource group.
|
1097
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1098
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1099
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1100
|
+
# will be added to the HTTP request.
|
1101
|
+
#
|
1102
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1103
|
+
#
|
1104
|
+
def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
1105
|
+
begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
#
|
1109
|
+
# Starts a virtual machine in a VM scale set.
|
1110
|
+
#
|
1111
|
+
# @param resource_group_name [String] The name of the resource group.
|
1112
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1113
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1114
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1115
|
+
# to the HTTP request.
|
1116
|
+
#
|
1117
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1118
|
+
#
|
1119
|
+
def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
1120
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1121
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1122
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1123
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1124
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1125
|
+
|
1126
|
+
|
1127
|
+
request_headers = {}
|
1128
|
+
|
1129
|
+
# Set Headers
|
1130
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1131
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1132
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'
|
1133
|
+
|
1134
|
+
request_url = @base_url || @client.base_url
|
1135
|
+
|
1136
|
+
options = {
|
1137
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1138
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1139
|
+
query_params: {'api-version' => @client.api_version},
|
1140
|
+
headers: request_headers.merge(custom_headers || {}),
|
1141
|
+
base_url: request_url
|
1142
|
+
}
|
1143
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1144
|
+
|
1145
|
+
promise = promise.then do |result|
|
1146
|
+
http_response = result.response
|
1147
|
+
status_code = http_response.status
|
1148
|
+
response_content = http_response.body
|
1149
|
+
unless status_code == 200 || status_code == 202
|
1150
|
+
error_model = JSON.load(response_content)
|
1151
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1155
|
+
# Deserialize Response
|
1156
|
+
if status_code == 200
|
1157
|
+
begin
|
1158
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1159
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::OperationStatusResponse.mapper()
|
1160
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1161
|
+
rescue Exception => e
|
1162
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1163
|
+
end
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
result
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
promise.execute
|
1170
|
+
end
|
1171
|
+
|
1172
|
+
#
|
1173
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
1174
|
+
#
|
1175
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1176
|
+
# to List operation.
|
1177
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1178
|
+
# will be added to the HTTP request.
|
1179
|
+
#
|
1180
|
+
# @return [VirtualMachineScaleSetVMListResult] operation results.
|
1181
|
+
#
|
1182
|
+
def list_next(next_page_link, custom_headers = nil)
|
1183
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
1184
|
+
response.body unless response.nil?
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
#
|
1188
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
1189
|
+
#
|
1190
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1191
|
+
# to List operation.
|
1192
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1193
|
+
# will be added to the HTTP request.
|
1194
|
+
#
|
1195
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1196
|
+
#
|
1197
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
1198
|
+
list_next_async(next_page_link, custom_headers).value!
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
#
|
1202
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
1203
|
+
#
|
1204
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1205
|
+
# to List operation.
|
1206
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1207
|
+
# to the HTTP request.
|
1208
|
+
#
|
1209
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1210
|
+
#
|
1211
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
1212
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1213
|
+
|
1214
|
+
|
1215
|
+
request_headers = {}
|
1216
|
+
|
1217
|
+
# Set Headers
|
1218
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1219
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1220
|
+
path_template = '{nextLink}'
|
1221
|
+
|
1222
|
+
request_url = @base_url || @client.base_url
|
1223
|
+
|
1224
|
+
options = {
|
1225
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1226
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1227
|
+
headers: request_headers.merge(custom_headers || {}),
|
1228
|
+
base_url: request_url
|
1229
|
+
}
|
1230
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1231
|
+
|
1232
|
+
promise = promise.then do |result|
|
1233
|
+
http_response = result.response
|
1234
|
+
status_code = http_response.status
|
1235
|
+
response_content = http_response.body
|
1236
|
+
unless status_code == 200
|
1237
|
+
error_model = JSON.load(response_content)
|
1238
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1242
|
+
# Deserialize Response
|
1243
|
+
if status_code == 200
|
1244
|
+
begin
|
1245
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1246
|
+
result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetVMListResult.mapper()
|
1247
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1248
|
+
rescue Exception => e
|
1249
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
result
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
promise.execute
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
#
|
1260
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
1261
|
+
#
|
1262
|
+
# @param resource_group_name [String] The name of the resource group.
|
1263
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
1264
|
+
# @param filter [String] The filter to apply to the operation.
|
1265
|
+
# @param select [String] The list parameters.
|
1266
|
+
# @param expand [String] The expand expression to apply to the operation.
|
1267
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1268
|
+
# will be added to the HTTP request.
|
1269
|
+
#
|
1270
|
+
# @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
|
1271
|
+
# pages of the response.
|
1272
|
+
#
|
1273
|
+
def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
|
1274
|
+
response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
|
1275
|
+
unless response.nil?
|
1276
|
+
page = response.body
|
1277
|
+
page.next_method = Proc.new do |next_page_link|
|
1278
|
+
list_next_async(next_page_link, custom_headers)
|
1279
|
+
end
|
1280
|
+
page
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
end
|
1285
|
+
end
|