azure_mgmt_compute 0.19.1 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2018-09-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2018-10-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2019-03-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_compute/resource_skus.rb +8 -4
- data/lib/2019-07-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2019-11-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2019-12-01/generated/azure_mgmt_compute.rb +311 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/availability_sets.rb +920 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/compute_management_client.rb +232 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/dedicated_host_groups.rb +852 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/dedicated_hosts.rb +806 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/galleries.rb +988 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_application_versions.rb +915 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_applications.rb +856 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_image_versions.rb +911 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/gallery_images.rb +856 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/images.rb +975 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/log_analytics.rb +341 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/aggregated_replication_state.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +63 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb +64 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/billing_profile.rb +60 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk.rb +201 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/data_disk_image_encryption.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb +220 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb +60 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_available_capacity.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_group.rb +148 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_list_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_update.rb +111 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view.rb +81 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_license_types.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_list_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_update.rb +172 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/diff_disk_placement.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +69 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/disallowed.rb +54 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_encryption_set_parameters.rb +46 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_image_encryption.rb +47 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/encryption_images.rb +69 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery.rb +125 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application.rb +161 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_list.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_update.rb +153 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version.rb +127 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version_list.rb +101 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version_publishing_profile.rb +130 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_application_version_update.rb +119 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +120 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +47 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb +47 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb +76 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb +74 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_identifier.rb +48 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image.rb +251 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +68 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_list.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_update.rb +243 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version.rb +139 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_list.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +93 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb +79 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_update.rb +131 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_list.rb +99 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb +62 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_update.rb +117 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/host_caching.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration_type.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image.rb +139 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_data_disk.rb +108 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb +126 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb +123 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb +69 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_reference.rb +114 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/managed_artifact.rb +46 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +70 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_names.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_state.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_state_action.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_state_input.rb +59 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/orchestration_service_summary.rb +61 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/osdisk_image_encryption.rb +43 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/osprofile.rb +202 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +180 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +60 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/regional_replication_status.rb +86 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/replication_state.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/replication_status.rb +71 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/replication_status_types.rb +15 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/resource_range.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/scale_in_policy.rb +71 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/scheduled_events_profile.rb +49 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/sku.rb +73 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb +73 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_resource.rb +102 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_update_resource.rb +67 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_keys_group_list_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/storage_account_type.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/sub_resource_with_colocation_status.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/target_region.rb +83 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/terminate_notification_profile.rb +62 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/update_resource_definition.rb +90 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/user_artifact_manage.rb +74 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/user_artifact_source.rb +59 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +412 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +142 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +217 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +49 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +318 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +153 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +184 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_update.rb +185 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +113 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +63 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +120 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_scale_in_rules.rb +17 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +210 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +190 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +72 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +138 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +384 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +176 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +355 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/windows_configuration.rb +114 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/operations.rb +109 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +846 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/ssh_public_keys.rb +939 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/usage_operations.rb +241 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +360 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +701 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +600 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +322 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +821 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +498 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vmextensions.rb +709 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +2115 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3290 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +122 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machines.rb +3078 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute.rb +286 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/availability_sets.rb +920 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/compute_management_client.rb +217 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/dedicated_host_groups.rb +861 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/dedicated_hosts.rb +806 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/images.rb +975 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/log_analytics.rb +341 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +63 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb +64 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/available_patch_summary.rb +143 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/billing_profile.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +63 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +78 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/data_disk.rb +201 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host.rb +219 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_available_capacity.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group.rb +178 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group_instance_view.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_group_update.rb +141 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view.rb +81 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view_with_name.rb +84 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_license_types.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_update.rb +171 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/diff_disk_placement.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/disallowed_configuration.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_encryption_set_parameters.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/execution_state.rb +21 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/hardware_profile.rb +109 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/hyper_vgeneration_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image.rb +139 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_data_disk.rb +108 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_disk.rb +126 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_osdisk.rb +123 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb +114 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/in_guest_patch_mode.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/last_patch_installation_summary.rb +211 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +124 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +70 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_names.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_state.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_state_action.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_state_input.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/orchestration_service_summary.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/osprofile.rb +204 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/patch_assessment_state.rb +20 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/patch_operation_status.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/patch_settings.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +180 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/reboot_status.rb +19 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +113 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/retrieve_boot_diagnostics_data_result.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/scale_in_policy.rb +71 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/scheduled_events_profile.rb +49 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/security_profile.rb +52 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/sku.rb +73 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/software_update_reboot_behavior.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb +73 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key_resource.rb +102 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_key_update_resource.rb +67 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/ssh_public_keys_group_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/sub_resource_with_colocation_status.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/terminate_notification_profile.rb +62 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb +455 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb +152 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +208 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +147 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +155 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +258 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_patch_status.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +49 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command.rb +241 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb +135 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_script_source.rb +68 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_update.rb +206 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_commands_list_result.rb +98 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +332 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +153 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +197 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +70 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_update.rb +198 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +113 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +63 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +149 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +120 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_scale_in_rules.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +210 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +190 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +148 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +72 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +151 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +398 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextension.rb +190 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextension_update.rb +164 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_list_result.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +211 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +190 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_software_patch_properties.rb +173 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +398 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/vm_disk_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb +127 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/operations.rb +109 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +846 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/ssh_public_keys.rb +939 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/usage_operations.rb +241 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +360 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +701 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_images.rb +600 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +1112 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +821 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +498 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vmextensions.rb +709 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vmrun_commands.rb +827 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +2220 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3290 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +122 -0
- data/lib/2020-06-01/generated/azure_mgmt_compute/virtual_machines.rb +3302 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute.rb +80 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/compute_management_client.rb +145 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/disk_accesses.rb +1120 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/disk_encryption_sets.rb +1236 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/disks.rb +1294 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/access_level.rb +17 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb +150 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk.rb +422 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_access.rb +133 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_access_list.rb +100 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_access_update.rb +54 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_create_option.rb +21 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set.rb +160 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_identity_type.rb +15 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_list.rb +100 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_type.rb +16 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_encryption_set_update.rb +79 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_sku.rb +61 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_state.rb +20 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_storage_account_types.rb +18 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/disk_update.rb +225 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption.rb +60 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_set_identity.rb +78 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb +85 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb +62 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/encryption_type.rb +17 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/network_access_policy.rb +17 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint.rb +47 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint_connection.rb +110 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint_connection_provisioning_state.rb +18 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_endpoint_service_connection_status.rb +17 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_link_resource.rb +123 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_link_resource_list_result.rb +55 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/private_link_service_connection_state.rb +72 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/resource_uri_list.rb +100 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/share_info_element.rb +49 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot.rb +290 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_sku.rb +60 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb +145 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2020-06-30/generated/azure_mgmt_compute/snapshots.rb +1294 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute.rb +106 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +165 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/galleries.rb +994 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/gallery_application_versions.rb +915 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/gallery_applications.rb +856 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/gallery_image_versions.rb +911 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/gallery_images.rb +856 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/gallery_sharing_profile.rb +189 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/aggregated_replication_state.rb +18 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/data_disk_image_encryption.rb +57 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/disallowed.rb +54 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/disk_image_encryption.rb +47 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/encryption_images.rb +69 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery.rb +137 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_application.rb +161 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_application_list.rb +100 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_application_update.rb +153 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_application_version.rb +127 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_application_version_list.rb +101 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_application_version_publishing_profile.rb +130 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_application_version_update.rb +119 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +120 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +47 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb +60 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb +76 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_disk_image.rb +74 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_identifier.rb +48 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image.rb +271 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_feature.rb +57 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +68 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_list.rb +100 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_update.rb +263 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_version.rb +139 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_version_list.rb +100 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +93 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb +79 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_image_version_update.rb +131 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_list.rb +99 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb +62 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_sharing_permission_types.rb +16 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_update.rb +129 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/host_caching.rb +17 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/image_purchase_plan.rb +69 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/managed_artifact.rb +46 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/osdisk_image_encryption.rb +43 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/pir_resource.rb +59 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/pir_shared_gallery_resource.rb +64 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +60 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/regional_replication_status.rb +86 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/replication_state.rb +18 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/replication_status.rb +71 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/replication_status_types.rb +15 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/resource_range.rb +57 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/select_permissions.rb +15 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery.rb +62 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb +186 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image_list.rb +100 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image_version.rb +88 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image_version_list.rb +101 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_list.rb +99 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_to_values.rb +15 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_profile.rb +70 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_profile_group.rb +69 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_profile_group_types.rb +16 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_update.rb +69 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_update_operation_types.rb +17 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/storage_account_type.rb +17 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/target_region.rb +83 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/update_resource_definition.rb +90 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/user_artifact_manage.rb +74 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/models/user_artifact_source.rb +59 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/shared_galleries.rb +332 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/shared_gallery_image_versions.rb +366 -0
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/shared_gallery_images.rb +344 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute.rb +89 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/compute_management_client.rb +149 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/disk_accesses.rb +1804 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/disk_encryption_sets.rb +1236 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/disk_restore_point_operations.rb +372 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/disks.rb +1294 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/access_level.rb +17 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/creation_data.rb +150 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk.rb +462 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_access.rb +133 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_access_list.rb +100 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_access_update.rb +54 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_create_option.rb +21 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_encryption_set.rb +160 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_encryption_set_identity_type.rb +16 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_encryption_set_list.rb +100 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_encryption_set_type.rb +16 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_encryption_set_update.rb +79 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_restore_point.rb +164 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_restore_point_list.rb +100 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_sku.rb +61 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_state.rb +20 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_storage_account_types.rb +18 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb +251 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/encryption.rb +60 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_set_identity.rb +81 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb +85 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb +62 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/encryption_type.rb +17 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/extended_location.rb +58 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/extended_location_types.rb +15 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/key_for_disk_encryption_set.rb +61 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/network_access_policy.rb +17 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_endpoint.rb +47 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_endpoint_connection.rb +110 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_endpoint_connection_list_result.rb +100 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_endpoint_connection_provisioning_state.rb +18 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_endpoint_service_connection_status.rb +17 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_link_resource.rb +123 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_link_resource_list_result.rb +55 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/private_link_service_connection_state.rb +72 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/proxy_only_resource.rb +71 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/purchase_plan.rb +82 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/resource_uri_list.rb +100 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/share_info_element.rb +49 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/snapshot.rb +316 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/snapshot_sku.rb +62 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/snapshot_update.rb +145 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2020-09-30/generated/azure_mgmt_compute/snapshots.rb +1294 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute.rb +73 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/cloud_service_role_instances.rb +1091 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/cloud_service_roles.rb +343 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/cloud_services.rb +1870 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/cloud_services_update_domain.rb +486 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/compute_management_client.rb +145 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service.rb +113 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_extension_profile.rb +55 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_extension_properties.rb +180 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_instance_view.rb +81 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_list_result.rb +98 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_network_profile.rb +68 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_os_profile.rb +56 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_properties.rb +176 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role.rb +107 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_list_result.rb +98 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_profile.rb +56 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_profile_properties.rb +58 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_properties.rb +49 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_sku.rb +72 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_update.rb +55 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_upgrade_mode.rb +17 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_vault_and_secret_reference.rb +59 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_vault_certificate.rb +48 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_vault_secret_group.rb +69 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/extension.rb +58 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/instance_sku.rb +60 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/instance_view_statuses_summary.rb +56 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/load_balancer_configuration.rb +58 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/load_balancer_configuration_properties.rb +56 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/load_balancer_frontend_ipconfiguration.rb +59 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/load_balancer_frontend_ipconfiguration_properties.rb +72 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/resource_instance_view_status.rb +97 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/role_instance.rb +128 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/role_instance_instance_view.rb +95 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/role_instance_list_result.rb +98 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/role_instance_network_profile.rb +57 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/role_instance_properties.rb +60 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/role_instances.rb +55 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/status_code_count.rb +60 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/update_domain.rb +59 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/models/update_domain_list_result.rb +98 -0
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/azure_mgmt_compute.rb +16 -10
- data/lib/profiles/latest/modules/compute_profile_module.rb +1244 -786
- data/lib/version.rb +1 -1
- metadata +806 -5
@@ -0,0 +1,2115 @@
|
|
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::V2019_12_01
|
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 vm_scale_set_vmreimage_input
|
32
|
+
# [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
|
33
|
+
# Virtual machine in ScaleSet.
|
34
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
+
# will be added to the HTTP request.
|
36
|
+
#
|
37
|
+
def reimage(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
|
38
|
+
response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers).value!
|
39
|
+
nil
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group.
|
44
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
45
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
46
|
+
# @param vm_scale_set_vmreimage_input
|
47
|
+
# [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
|
48
|
+
# Virtual machine in ScaleSet.
|
49
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
|
+
# will be added to the HTTP request.
|
51
|
+
#
|
52
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
53
|
+
# response.
|
54
|
+
#
|
55
|
+
def reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
|
56
|
+
# Send request
|
57
|
+
promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers)
|
58
|
+
|
59
|
+
promise = promise.then do |response|
|
60
|
+
# Defining deserialization method.
|
61
|
+
deserialize_method = lambda do |parsed_response|
|
62
|
+
end
|
63
|
+
|
64
|
+
# Waiting for response.
|
65
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
66
|
+
end
|
67
|
+
|
68
|
+
promise
|
69
|
+
end
|
70
|
+
|
71
|
+
#
|
72
|
+
# Allows you to re-image all the disks ( including data disks ) in the a VM
|
73
|
+
# scale set instance. This operation is only supported for managed disks.
|
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
|
+
def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
82
|
+
response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
83
|
+
nil
|
84
|
+
end
|
85
|
+
|
86
|
+
#
|
87
|
+
# @param resource_group_name [String] The name of the resource group.
|
88
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
89
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
90
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
91
|
+
# will be added to the HTTP request.
|
92
|
+
#
|
93
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
94
|
+
# response.
|
95
|
+
#
|
96
|
+
def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
97
|
+
# Send request
|
98
|
+
promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
|
99
|
+
|
100
|
+
promise = promise.then do |response|
|
101
|
+
# Defining deserialization method.
|
102
|
+
deserialize_method = lambda do |parsed_response|
|
103
|
+
end
|
104
|
+
|
105
|
+
# Waiting for response.
|
106
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
107
|
+
end
|
108
|
+
|
109
|
+
promise
|
110
|
+
end
|
111
|
+
|
112
|
+
#
|
113
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
114
|
+
# virtual machine and releases the compute resources it uses. You are not
|
115
|
+
# billed for the compute resources of this virtual machine once it is
|
116
|
+
# deallocated.
|
117
|
+
#
|
118
|
+
# @param resource_group_name [String] The name of the resource group.
|
119
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
120
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
121
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
122
|
+
# will be added to the HTTP request.
|
123
|
+
#
|
124
|
+
def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
125
|
+
response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
126
|
+
nil
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# @param resource_group_name [String] The name of the resource group.
|
131
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
132
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
137
|
+
# response.
|
138
|
+
#
|
139
|
+
def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
140
|
+
# Send request
|
141
|
+
promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
|
142
|
+
|
143
|
+
promise = promise.then do |response|
|
144
|
+
# Defining deserialization method.
|
145
|
+
deserialize_method = lambda do |parsed_response|
|
146
|
+
end
|
147
|
+
|
148
|
+
# Waiting for response.
|
149
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
150
|
+
end
|
151
|
+
|
152
|
+
promise
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# Updates a virtual machine of a VM scale set.
|
157
|
+
#
|
158
|
+
# @param resource_group_name [String] The name of the resource group.
|
159
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
160
|
+
# extension should be create or updated.
|
161
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
162
|
+
# @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
|
163
|
+
# Update Virtual Machine Scale Sets VM operation.
|
164
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
165
|
+
# will be added to the HTTP request.
|
166
|
+
#
|
167
|
+
# @return [VirtualMachineScaleSetVM] operation results.
|
168
|
+
#
|
169
|
+
def update(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
170
|
+
response = update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
|
171
|
+
response.body unless response.nil?
|
172
|
+
end
|
173
|
+
|
174
|
+
#
|
175
|
+
# @param resource_group_name [String] The name of the resource group.
|
176
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
177
|
+
# extension should be create or updated.
|
178
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
179
|
+
# @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
|
180
|
+
# Update Virtual Machine Scale Sets VM operation.
|
181
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
182
|
+
# will be added to the HTTP request.
|
183
|
+
#
|
184
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
185
|
+
# response.
|
186
|
+
#
|
187
|
+
def update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
188
|
+
# Send request
|
189
|
+
promise = begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers)
|
190
|
+
|
191
|
+
promise = promise.then do |response|
|
192
|
+
# Defining deserialization method.
|
193
|
+
deserialize_method = lambda do |parsed_response|
|
194
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVM.mapper()
|
195
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
196
|
+
end
|
197
|
+
|
198
|
+
# Waiting for response.
|
199
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
200
|
+
end
|
201
|
+
|
202
|
+
promise
|
203
|
+
end
|
204
|
+
|
205
|
+
#
|
206
|
+
# Deletes a virtual machine from a VM scale set.
|
207
|
+
#
|
208
|
+
# @param resource_group_name [String] The name of the resource group.
|
209
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
210
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
211
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
212
|
+
# will be added to the HTTP request.
|
213
|
+
#
|
214
|
+
def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
215
|
+
response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
216
|
+
nil
|
217
|
+
end
|
218
|
+
|
219
|
+
#
|
220
|
+
# @param resource_group_name [String] The name of the resource group.
|
221
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
222
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
223
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
224
|
+
# will be added to the HTTP request.
|
225
|
+
#
|
226
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
227
|
+
# response.
|
228
|
+
#
|
229
|
+
def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
230
|
+
# Send request
|
231
|
+
promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
|
232
|
+
|
233
|
+
promise = promise.then do |response|
|
234
|
+
# Defining deserialization method.
|
235
|
+
deserialize_method = lambda do |parsed_response|
|
236
|
+
end
|
237
|
+
|
238
|
+
# Waiting for response.
|
239
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
240
|
+
end
|
241
|
+
|
242
|
+
promise
|
243
|
+
end
|
244
|
+
|
245
|
+
#
|
246
|
+
# Gets a virtual machine from a VM scale set.
|
247
|
+
#
|
248
|
+
# @param resource_group_name [String] The name of the resource group.
|
249
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
250
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
251
|
+
# @param expand [InstanceViewTypes] The expand expression to apply on the
|
252
|
+
# operation. Possible values include: 'instanceView'
|
253
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
254
|
+
# will be added to the HTTP request.
|
255
|
+
#
|
256
|
+
# @return [VirtualMachineScaleSetVM] operation results.
|
257
|
+
#
|
258
|
+
def get(resource_group_name, vm_scale_set_name, instance_id, expand:nil, custom_headers:nil)
|
259
|
+
response = get_async(resource_group_name, vm_scale_set_name, instance_id, expand:expand, custom_headers:custom_headers).value!
|
260
|
+
response.body unless response.nil?
|
261
|
+
end
|
262
|
+
|
263
|
+
#
|
264
|
+
# Gets a virtual machine from a VM scale set.
|
265
|
+
#
|
266
|
+
# @param resource_group_name [String] The name of the resource group.
|
267
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
268
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
269
|
+
# @param expand [InstanceViewTypes] The expand expression to apply on the
|
270
|
+
# operation. Possible values include: 'instanceView'
|
271
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
272
|
+
# will be added to the HTTP request.
|
273
|
+
#
|
274
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
275
|
+
#
|
276
|
+
def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, expand:nil, custom_headers:nil)
|
277
|
+
get_async(resource_group_name, vm_scale_set_name, instance_id, expand:expand, custom_headers:custom_headers).value!
|
278
|
+
end
|
279
|
+
|
280
|
+
#
|
281
|
+
# Gets a virtual machine from a VM scale set.
|
282
|
+
#
|
283
|
+
# @param resource_group_name [String] The name of the resource group.
|
284
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
285
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
286
|
+
# @param expand [InstanceViewTypes] The expand expression to apply on the
|
287
|
+
# operation. Possible values include: 'instanceView'
|
288
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
289
|
+
# to the HTTP request.
|
290
|
+
#
|
291
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
292
|
+
#
|
293
|
+
def get_async(resource_group_name, vm_scale_set_name, instance_id, expand:nil, custom_headers:nil)
|
294
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
295
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
296
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
297
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
298
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
299
|
+
|
300
|
+
|
301
|
+
request_headers = {}
|
302
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
303
|
+
|
304
|
+
# Set Headers
|
305
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
306
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
307
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
|
308
|
+
|
309
|
+
request_url = @base_url || @client.base_url
|
310
|
+
|
311
|
+
options = {
|
312
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
313
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
314
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
315
|
+
headers: request_headers.merge(custom_headers || {}),
|
316
|
+
base_url: request_url
|
317
|
+
}
|
318
|
+
promise = @client.make_request_async(:get, path_template, options)
|
319
|
+
|
320
|
+
promise = promise.then do |result|
|
321
|
+
http_response = result.response
|
322
|
+
status_code = http_response.status
|
323
|
+
response_content = http_response.body
|
324
|
+
unless status_code == 200
|
325
|
+
error_model = JSON.load(response_content)
|
326
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
327
|
+
end
|
328
|
+
|
329
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
330
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
331
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
332
|
+
# Deserialize Response
|
333
|
+
if status_code == 200
|
334
|
+
begin
|
335
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
336
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVM.mapper()
|
337
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
338
|
+
rescue Exception => e
|
339
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
result
|
344
|
+
end
|
345
|
+
|
346
|
+
promise.execute
|
347
|
+
end
|
348
|
+
|
349
|
+
#
|
350
|
+
# Gets the status of a virtual machine from a VM scale set.
|
351
|
+
#
|
352
|
+
# @param resource_group_name [String] The name of the resource group.
|
353
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
354
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
355
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
356
|
+
# will be added to the HTTP request.
|
357
|
+
#
|
358
|
+
# @return [VirtualMachineScaleSetVMInstanceView] operation results.
|
359
|
+
#
|
360
|
+
def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
361
|
+
response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
362
|
+
response.body unless response.nil?
|
363
|
+
end
|
364
|
+
|
365
|
+
#
|
366
|
+
# Gets the status of a virtual machine from a VM scale set.
|
367
|
+
#
|
368
|
+
# @param resource_group_name [String] The name of the resource group.
|
369
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
370
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
371
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
372
|
+
# will be added to the HTTP request.
|
373
|
+
#
|
374
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
375
|
+
#
|
376
|
+
def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
377
|
+
get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
378
|
+
end
|
379
|
+
|
380
|
+
#
|
381
|
+
# Gets the status of a virtual machine from a VM scale set.
|
382
|
+
#
|
383
|
+
# @param resource_group_name [String] The name of the resource group.
|
384
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
385
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
386
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
387
|
+
# to the HTTP request.
|
388
|
+
#
|
389
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
390
|
+
#
|
391
|
+
def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
392
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
393
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
394
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
395
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
396
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
397
|
+
|
398
|
+
|
399
|
+
request_headers = {}
|
400
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
401
|
+
|
402
|
+
# Set Headers
|
403
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
404
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
405
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView'
|
406
|
+
|
407
|
+
request_url = @base_url || @client.base_url
|
408
|
+
|
409
|
+
options = {
|
410
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
411
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
412
|
+
query_params: {'api-version' => @client.api_version},
|
413
|
+
headers: request_headers.merge(custom_headers || {}),
|
414
|
+
base_url: request_url
|
415
|
+
}
|
416
|
+
promise = @client.make_request_async(:get, path_template, options)
|
417
|
+
|
418
|
+
promise = promise.then do |result|
|
419
|
+
http_response = result.response
|
420
|
+
status_code = http_response.status
|
421
|
+
response_content = http_response.body
|
422
|
+
unless status_code == 200
|
423
|
+
error_model = JSON.load(response_content)
|
424
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
425
|
+
end
|
426
|
+
|
427
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
428
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
429
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
430
|
+
# Deserialize Response
|
431
|
+
if status_code == 200
|
432
|
+
begin
|
433
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
434
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVMInstanceView.mapper()
|
435
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
436
|
+
rescue Exception => e
|
437
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
result
|
442
|
+
end
|
443
|
+
|
444
|
+
promise.execute
|
445
|
+
end
|
446
|
+
|
447
|
+
#
|
448
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
449
|
+
#
|
450
|
+
# @param resource_group_name [String] The name of the resource group.
|
451
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
452
|
+
# @param filter [String] The filter to apply to the operation. Allowed values
|
453
|
+
# are 'startswith(instanceView/statuses/code, 'PowerState') eq true',
|
454
|
+
# 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq
|
455
|
+
# false'.
|
456
|
+
# @param select [String] The list parameters. Allowed values are
|
457
|
+
# 'instanceView', 'instanceView/statuses'.
|
458
|
+
# @param expand [String] The expand expression to apply to the operation.
|
459
|
+
# Allowed values are 'instanceView'.
|
460
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
461
|
+
# will be added to the HTTP request.
|
462
|
+
#
|
463
|
+
# @return [Array<VirtualMachineScaleSetVM>] operation results.
|
464
|
+
#
|
465
|
+
def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
|
466
|
+
first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers)
|
467
|
+
first_page.get_all_items
|
468
|
+
end
|
469
|
+
|
470
|
+
#
|
471
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
472
|
+
#
|
473
|
+
# @param resource_group_name [String] The name of the resource group.
|
474
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
475
|
+
# @param filter [String] The filter to apply to the operation. Allowed values
|
476
|
+
# are 'startswith(instanceView/statuses/code, 'PowerState') eq true',
|
477
|
+
# 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq
|
478
|
+
# false'.
|
479
|
+
# @param select [String] The list parameters. Allowed values are
|
480
|
+
# 'instanceView', 'instanceView/statuses'.
|
481
|
+
# @param expand [String] The expand expression to apply to the operation.
|
482
|
+
# Allowed values are 'instanceView'.
|
483
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
484
|
+
# will be added to the HTTP request.
|
485
|
+
#
|
486
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
487
|
+
#
|
488
|
+
def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
|
489
|
+
list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
|
490
|
+
end
|
491
|
+
|
492
|
+
#
|
493
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
494
|
+
#
|
495
|
+
# @param resource_group_name [String] The name of the resource group.
|
496
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
497
|
+
# @param filter [String] The filter to apply to the operation. Allowed values
|
498
|
+
# are 'startswith(instanceView/statuses/code, 'PowerState') eq true',
|
499
|
+
# 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq
|
500
|
+
# false'.
|
501
|
+
# @param select [String] The list parameters. Allowed values are
|
502
|
+
# 'instanceView', 'instanceView/statuses'.
|
503
|
+
# @param expand [String] The expand expression to apply to the operation.
|
504
|
+
# Allowed values are 'instanceView'.
|
505
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
506
|
+
# to the HTTP request.
|
507
|
+
#
|
508
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
509
|
+
#
|
510
|
+
def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
|
511
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
512
|
+
fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
|
513
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
514
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
515
|
+
|
516
|
+
|
517
|
+
request_headers = {}
|
518
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
519
|
+
|
520
|
+
# Set Headers
|
521
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
522
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
523
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines'
|
524
|
+
|
525
|
+
request_url = @base_url || @client.base_url
|
526
|
+
|
527
|
+
options = {
|
528
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
529
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
|
530
|
+
query_params: {'$filter' => filter,'$select' => select,'$expand' => expand,'api-version' => @client.api_version},
|
531
|
+
headers: request_headers.merge(custom_headers || {}),
|
532
|
+
base_url: request_url
|
533
|
+
}
|
534
|
+
promise = @client.make_request_async(:get, path_template, options)
|
535
|
+
|
536
|
+
promise = promise.then do |result|
|
537
|
+
http_response = result.response
|
538
|
+
status_code = http_response.status
|
539
|
+
response_content = http_response.body
|
540
|
+
unless status_code == 200
|
541
|
+
error_model = JSON.load(response_content)
|
542
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
543
|
+
end
|
544
|
+
|
545
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
546
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
547
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
548
|
+
# Deserialize Response
|
549
|
+
if status_code == 200
|
550
|
+
begin
|
551
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
552
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVMListResult.mapper()
|
553
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
554
|
+
rescue Exception => e
|
555
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
result
|
560
|
+
end
|
561
|
+
|
562
|
+
promise.execute
|
563
|
+
end
|
564
|
+
|
565
|
+
#
|
566
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
567
|
+
# still attached and you are getting charged for the resources. Instead, use
|
568
|
+
# deallocate to release resources and avoid charges.
|
569
|
+
#
|
570
|
+
# @param resource_group_name [String] The name of the resource group.
|
571
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
572
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
573
|
+
# @param skip_shutdown [Boolean] The parameter to request non-graceful VM
|
574
|
+
# shutdown. True value for this flag indicates non-graceful shutdown whereas
|
575
|
+
# false indicates otherwise. Default value for this flag is false if not
|
576
|
+
# specified
|
577
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
578
|
+
# will be added to the HTTP request.
|
579
|
+
#
|
580
|
+
def power_off(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
|
581
|
+
response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:skip_shutdown, custom_headers:custom_headers).value!
|
582
|
+
nil
|
583
|
+
end
|
584
|
+
|
585
|
+
#
|
586
|
+
# @param resource_group_name [String] The name of the resource group.
|
587
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
588
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
589
|
+
# @param skip_shutdown [Boolean] The parameter to request non-graceful VM
|
590
|
+
# shutdown. True value for this flag indicates non-graceful shutdown whereas
|
591
|
+
# false indicates otherwise. Default value for this flag is false if not
|
592
|
+
# specified
|
593
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
594
|
+
# will be added to the HTTP request.
|
595
|
+
#
|
596
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
597
|
+
# response.
|
598
|
+
#
|
599
|
+
def power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
|
600
|
+
# Send request
|
601
|
+
promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:skip_shutdown, custom_headers:custom_headers)
|
602
|
+
|
603
|
+
promise = promise.then do |response|
|
604
|
+
# Defining deserialization method.
|
605
|
+
deserialize_method = lambda do |parsed_response|
|
606
|
+
end
|
607
|
+
|
608
|
+
# Waiting for response.
|
609
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
610
|
+
end
|
611
|
+
|
612
|
+
promise
|
613
|
+
end
|
614
|
+
|
615
|
+
#
|
616
|
+
# Restarts a virtual machine in a VM scale set.
|
617
|
+
#
|
618
|
+
# @param resource_group_name [String] The name of the resource group.
|
619
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
620
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
621
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
622
|
+
# will be added to the HTTP request.
|
623
|
+
#
|
624
|
+
def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
625
|
+
response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
626
|
+
nil
|
627
|
+
end
|
628
|
+
|
629
|
+
#
|
630
|
+
# @param resource_group_name [String] The name of the resource group.
|
631
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
632
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
633
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
634
|
+
# will be added to the HTTP request.
|
635
|
+
#
|
636
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
637
|
+
# response.
|
638
|
+
#
|
639
|
+
def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
640
|
+
# Send request
|
641
|
+
promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
|
642
|
+
|
643
|
+
promise = promise.then do |response|
|
644
|
+
# Defining deserialization method.
|
645
|
+
deserialize_method = lambda do |parsed_response|
|
646
|
+
end
|
647
|
+
|
648
|
+
# Waiting for response.
|
649
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
650
|
+
end
|
651
|
+
|
652
|
+
promise
|
653
|
+
end
|
654
|
+
|
655
|
+
#
|
656
|
+
# Starts a virtual machine in a VM scale set.
|
657
|
+
#
|
658
|
+
# @param resource_group_name [String] The name of the resource group.
|
659
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
660
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
661
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
662
|
+
# will be added to the HTTP request.
|
663
|
+
#
|
664
|
+
def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
665
|
+
response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
666
|
+
nil
|
667
|
+
end
|
668
|
+
|
669
|
+
#
|
670
|
+
# @param resource_group_name [String] The name of the resource group.
|
671
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
672
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
673
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
674
|
+
# will be added to the HTTP request.
|
675
|
+
#
|
676
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
677
|
+
# response.
|
678
|
+
#
|
679
|
+
def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
680
|
+
# Send request
|
681
|
+
promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
|
682
|
+
|
683
|
+
promise = promise.then do |response|
|
684
|
+
# Defining deserialization method.
|
685
|
+
deserialize_method = lambda do |parsed_response|
|
686
|
+
end
|
687
|
+
|
688
|
+
# Waiting for response.
|
689
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
690
|
+
end
|
691
|
+
|
692
|
+
promise
|
693
|
+
end
|
694
|
+
|
695
|
+
#
|
696
|
+
# Shuts down the virtual machine in the virtual machine scale set, moves it to
|
697
|
+
# a new node, and powers it back on.
|
698
|
+
#
|
699
|
+
# @param resource_group_name [String] The name of the resource group.
|
700
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
701
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
702
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
703
|
+
# will be added to the HTTP request.
|
704
|
+
#
|
705
|
+
def redeploy(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
706
|
+
response = redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
707
|
+
nil
|
708
|
+
end
|
709
|
+
|
710
|
+
#
|
711
|
+
# @param resource_group_name [String] The name of the resource group.
|
712
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
713
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
714
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
715
|
+
# will be added to the HTTP request.
|
716
|
+
#
|
717
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
718
|
+
# response.
|
719
|
+
#
|
720
|
+
def redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
721
|
+
# Send request
|
722
|
+
promise = begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
|
723
|
+
|
724
|
+
promise = promise.then do |response|
|
725
|
+
# Defining deserialization method.
|
726
|
+
deserialize_method = lambda do |parsed_response|
|
727
|
+
end
|
728
|
+
|
729
|
+
# Waiting for response.
|
730
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
731
|
+
end
|
732
|
+
|
733
|
+
promise
|
734
|
+
end
|
735
|
+
|
736
|
+
#
|
737
|
+
# Shuts down the virtual machine in a VMScaleSet, moves it to an already
|
738
|
+
# updated node, and powers it back on during the self-service phase of planned
|
739
|
+
# maintenance.
|
740
|
+
#
|
741
|
+
# @param resource_group_name [String] The name of the resource group.
|
742
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
743
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
744
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
745
|
+
# will be added to the HTTP request.
|
746
|
+
#
|
747
|
+
def perform_maintenance(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
748
|
+
response = perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
749
|
+
nil
|
750
|
+
end
|
751
|
+
|
752
|
+
#
|
753
|
+
# @param resource_group_name [String] The name of the resource group.
|
754
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
755
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
756
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
757
|
+
# will be added to the HTTP request.
|
758
|
+
#
|
759
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
760
|
+
# response.
|
761
|
+
#
|
762
|
+
def perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
763
|
+
# Send request
|
764
|
+
promise = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
|
765
|
+
|
766
|
+
promise = promise.then do |response|
|
767
|
+
# Defining deserialization method.
|
768
|
+
deserialize_method = lambda do |parsed_response|
|
769
|
+
end
|
770
|
+
|
771
|
+
# Waiting for response.
|
772
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
773
|
+
end
|
774
|
+
|
775
|
+
promise
|
776
|
+
end
|
777
|
+
|
778
|
+
#
|
779
|
+
# The operation to simulate the eviction of spot virtual machine in a VM scale
|
780
|
+
# set. The eviction will occur within 30 minutes of calling the API
|
781
|
+
#
|
782
|
+
# @param resource_group_name [String] The name of the resource group.
|
783
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
784
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
785
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
786
|
+
# will be added to the HTTP request.
|
787
|
+
#
|
788
|
+
#
|
789
|
+
def simulate_eviction(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
790
|
+
response = simulate_eviction_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
791
|
+
nil
|
792
|
+
end
|
793
|
+
|
794
|
+
#
|
795
|
+
# The operation to simulate the eviction of spot virtual machine in a VM scale
|
796
|
+
# set. The eviction will occur within 30 minutes of calling the API
|
797
|
+
#
|
798
|
+
# @param resource_group_name [String] The name of the resource group.
|
799
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
800
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
801
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
802
|
+
# will be added to the HTTP request.
|
803
|
+
#
|
804
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
805
|
+
#
|
806
|
+
def simulate_eviction_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
807
|
+
simulate_eviction_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
808
|
+
end
|
809
|
+
|
810
|
+
#
|
811
|
+
# The operation to simulate the eviction of spot virtual machine in a VM scale
|
812
|
+
# set. The eviction will occur within 30 minutes of calling the API
|
813
|
+
#
|
814
|
+
# @param resource_group_name [String] The name of the resource group.
|
815
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
816
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
817
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
818
|
+
# to the HTTP request.
|
819
|
+
#
|
820
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
821
|
+
#
|
822
|
+
def simulate_eviction_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
823
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
824
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
825
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
826
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
827
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
828
|
+
|
829
|
+
|
830
|
+
request_headers = {}
|
831
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
832
|
+
|
833
|
+
# Set Headers
|
834
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
835
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
836
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction'
|
837
|
+
|
838
|
+
request_url = @base_url || @client.base_url
|
839
|
+
|
840
|
+
options = {
|
841
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
842
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
843
|
+
query_params: {'api-version' => @client.api_version},
|
844
|
+
headers: request_headers.merge(custom_headers || {}),
|
845
|
+
base_url: request_url
|
846
|
+
}
|
847
|
+
promise = @client.make_request_async(:post, path_template, options)
|
848
|
+
|
849
|
+
promise = promise.then do |result|
|
850
|
+
http_response = result.response
|
851
|
+
status_code = http_response.status
|
852
|
+
response_content = http_response.body
|
853
|
+
unless status_code == 204
|
854
|
+
error_model = JSON.load(response_content)
|
855
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
856
|
+
end
|
857
|
+
|
858
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
859
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
860
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
861
|
+
|
862
|
+
result
|
863
|
+
end
|
864
|
+
|
865
|
+
promise.execute
|
866
|
+
end
|
867
|
+
|
868
|
+
#
|
869
|
+
# Run command on a virtual machine in a VM scale set.
|
870
|
+
#
|
871
|
+
# @param resource_group_name [String] The name of the resource group.
|
872
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
873
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
874
|
+
# @param parameters [RunCommandInput] Parameters supplied to the Run command
|
875
|
+
# operation.
|
876
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
877
|
+
# will be added to the HTTP request.
|
878
|
+
#
|
879
|
+
# @return [RunCommandResult] operation results.
|
880
|
+
#
|
881
|
+
def run_command(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
882
|
+
response = run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
|
883
|
+
response.body unless response.nil?
|
884
|
+
end
|
885
|
+
|
886
|
+
#
|
887
|
+
# @param resource_group_name [String] The name of the resource group.
|
888
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
889
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
890
|
+
# @param parameters [RunCommandInput] Parameters supplied to the Run command
|
891
|
+
# operation.
|
892
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
893
|
+
# will be added to the HTTP request.
|
894
|
+
#
|
895
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
896
|
+
# response.
|
897
|
+
#
|
898
|
+
def run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
899
|
+
# Send request
|
900
|
+
promise = begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers)
|
901
|
+
|
902
|
+
promise = promise.then do |response|
|
903
|
+
# Defining deserialization method.
|
904
|
+
deserialize_method = lambda do |parsed_response|
|
905
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::RunCommandResult.mapper()
|
906
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
907
|
+
end
|
908
|
+
|
909
|
+
# Waiting for response.
|
910
|
+
@client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
|
911
|
+
end
|
912
|
+
|
913
|
+
promise
|
914
|
+
end
|
915
|
+
|
916
|
+
#
|
917
|
+
# Reimages (upgrade the operating system) a specific virtual machine in a VM
|
918
|
+
# scale set.
|
919
|
+
#
|
920
|
+
# @param resource_group_name [String] The name of the resource group.
|
921
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
922
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
923
|
+
# @param vm_scale_set_vmreimage_input
|
924
|
+
# [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
|
925
|
+
# Virtual machine in ScaleSet.
|
926
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
927
|
+
# will be added to the HTTP request.
|
928
|
+
#
|
929
|
+
#
|
930
|
+
def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
|
931
|
+
response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers).value!
|
932
|
+
nil
|
933
|
+
end
|
934
|
+
|
935
|
+
#
|
936
|
+
# Reimages (upgrade the operating system) a specific virtual machine in a VM
|
937
|
+
# scale set.
|
938
|
+
#
|
939
|
+
# @param resource_group_name [String] The name of the resource group.
|
940
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
941
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
942
|
+
# @param vm_scale_set_vmreimage_input
|
943
|
+
# [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
|
944
|
+
# Virtual machine in ScaleSet.
|
945
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
946
|
+
# will be added to the HTTP request.
|
947
|
+
#
|
948
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
949
|
+
#
|
950
|
+
def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
|
951
|
+
begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:vm_scale_set_vmreimage_input, custom_headers:custom_headers).value!
|
952
|
+
end
|
953
|
+
|
954
|
+
#
|
955
|
+
# Reimages (upgrade the operating system) a specific virtual machine in a VM
|
956
|
+
# scale set.
|
957
|
+
#
|
958
|
+
# @param resource_group_name [String] The name of the resource group.
|
959
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
960
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
961
|
+
# @param vm_scale_set_vmreimage_input
|
962
|
+
# [VirtualMachineScaleSetVMReimageParameters] Parameters for the Reimaging
|
963
|
+
# Virtual machine in ScaleSet.
|
964
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
965
|
+
# to the HTTP request.
|
966
|
+
#
|
967
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
968
|
+
#
|
969
|
+
def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, vm_scale_set_vmreimage_input:nil, custom_headers:nil)
|
970
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
971
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
972
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
973
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
974
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
975
|
+
|
976
|
+
|
977
|
+
request_headers = {}
|
978
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
979
|
+
|
980
|
+
# Set Headers
|
981
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
982
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
983
|
+
|
984
|
+
# Serialize Request
|
985
|
+
request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVMReimageParameters.mapper()
|
986
|
+
request_content = @client.serialize(request_mapper, vm_scale_set_vmreimage_input)
|
987
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
988
|
+
|
989
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'
|
990
|
+
|
991
|
+
request_url = @base_url || @client.base_url
|
992
|
+
|
993
|
+
options = {
|
994
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
995
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
996
|
+
query_params: {'api-version' => @client.api_version},
|
997
|
+
body: request_content,
|
998
|
+
headers: request_headers.merge(custom_headers || {}),
|
999
|
+
base_url: request_url
|
1000
|
+
}
|
1001
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1002
|
+
|
1003
|
+
promise = promise.then do |result|
|
1004
|
+
http_response = result.response
|
1005
|
+
status_code = http_response.status
|
1006
|
+
response_content = http_response.body
|
1007
|
+
unless status_code == 200 || status_code == 202
|
1008
|
+
error_model = JSON.load(response_content)
|
1009
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1013
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1014
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1015
|
+
|
1016
|
+
result
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
promise.execute
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
#
|
1023
|
+
# Allows you to re-image all the disks ( including data disks ) in the a VM
|
1024
|
+
# scale set instance. This operation is only supported for managed disks.
|
1025
|
+
#
|
1026
|
+
# @param resource_group_name [String] The name of the resource group.
|
1027
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1028
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1029
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1030
|
+
# will be added to the HTTP request.
|
1031
|
+
#
|
1032
|
+
#
|
1033
|
+
def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1034
|
+
response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1035
|
+
nil
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
#
|
1039
|
+
# Allows you to re-image all the disks ( including data disks ) in the a VM
|
1040
|
+
# scale set instance. This operation is only supported for managed disks.
|
1041
|
+
#
|
1042
|
+
# @param resource_group_name [String] The name of the resource group.
|
1043
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1044
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1045
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1046
|
+
# will be added to the HTTP request.
|
1047
|
+
#
|
1048
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1049
|
+
#
|
1050
|
+
def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1051
|
+
begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
#
|
1055
|
+
# Allows you to re-image all the disks ( including data disks ) in the a VM
|
1056
|
+
# scale set instance. This operation is only supported for managed disks.
|
1057
|
+
#
|
1058
|
+
# @param resource_group_name [String] The name of the resource group.
|
1059
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1060
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1061
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1062
|
+
# to the HTTP request.
|
1063
|
+
#
|
1064
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1065
|
+
#
|
1066
|
+
def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1067
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1068
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1069
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1070
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1071
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1072
|
+
|
1073
|
+
|
1074
|
+
request_headers = {}
|
1075
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1076
|
+
|
1077
|
+
# Set Headers
|
1078
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1079
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1080
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall'
|
1081
|
+
|
1082
|
+
request_url = @base_url || @client.base_url
|
1083
|
+
|
1084
|
+
options = {
|
1085
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1086
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1087
|
+
query_params: {'api-version' => @client.api_version},
|
1088
|
+
headers: request_headers.merge(custom_headers || {}),
|
1089
|
+
base_url: request_url
|
1090
|
+
}
|
1091
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1092
|
+
|
1093
|
+
promise = promise.then do |result|
|
1094
|
+
http_response = result.response
|
1095
|
+
status_code = http_response.status
|
1096
|
+
response_content = http_response.body
|
1097
|
+
unless status_code == 200 || status_code == 202
|
1098
|
+
error_model = JSON.load(response_content)
|
1099
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1103
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1104
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1105
|
+
|
1106
|
+
result
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
promise.execute
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
#
|
1113
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
1114
|
+
# virtual machine and releases the compute resources it uses. You are not
|
1115
|
+
# billed for the compute resources of this virtual machine once it is
|
1116
|
+
# deallocated.
|
1117
|
+
#
|
1118
|
+
# @param resource_group_name [String] The name of the resource group.
|
1119
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1120
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1121
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1122
|
+
# will be added to the HTTP request.
|
1123
|
+
#
|
1124
|
+
#
|
1125
|
+
def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1126
|
+
response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1127
|
+
nil
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
#
|
1131
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
1132
|
+
# virtual machine and releases the compute resources it uses. You are not
|
1133
|
+
# billed for the compute resources of this virtual machine once it is
|
1134
|
+
# deallocated.
|
1135
|
+
#
|
1136
|
+
# @param resource_group_name [String] The name of the resource group.
|
1137
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1138
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1140
|
+
# will be added to the HTTP request.
|
1141
|
+
#
|
1142
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1143
|
+
#
|
1144
|
+
def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1145
|
+
begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
#
|
1149
|
+
# Deallocates a specific virtual machine in a VM scale set. Shuts down the
|
1150
|
+
# virtual machine and releases the compute resources it uses. You are not
|
1151
|
+
# billed for the compute resources of this virtual machine once it is
|
1152
|
+
# deallocated.
|
1153
|
+
#
|
1154
|
+
# @param resource_group_name [String] The name of the resource group.
|
1155
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1156
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1157
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1158
|
+
# to the HTTP request.
|
1159
|
+
#
|
1160
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1161
|
+
#
|
1162
|
+
def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1163
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1164
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1165
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1166
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1167
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1168
|
+
|
1169
|
+
|
1170
|
+
request_headers = {}
|
1171
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1172
|
+
|
1173
|
+
# Set Headers
|
1174
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1175
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1176
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'
|
1177
|
+
|
1178
|
+
request_url = @base_url || @client.base_url
|
1179
|
+
|
1180
|
+
options = {
|
1181
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1182
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1183
|
+
query_params: {'api-version' => @client.api_version},
|
1184
|
+
headers: request_headers.merge(custom_headers || {}),
|
1185
|
+
base_url: request_url
|
1186
|
+
}
|
1187
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1188
|
+
|
1189
|
+
promise = promise.then do |result|
|
1190
|
+
http_response = result.response
|
1191
|
+
status_code = http_response.status
|
1192
|
+
response_content = http_response.body
|
1193
|
+
unless status_code == 200 || status_code == 202
|
1194
|
+
error_model = JSON.load(response_content)
|
1195
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1199
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1200
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1201
|
+
|
1202
|
+
result
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
promise.execute
|
1206
|
+
end
|
1207
|
+
|
1208
|
+
#
|
1209
|
+
# Updates a virtual machine of a VM scale set.
|
1210
|
+
#
|
1211
|
+
# @param resource_group_name [String] The name of the resource group.
|
1212
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
1213
|
+
# extension should be create or updated.
|
1214
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1215
|
+
# @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
|
1216
|
+
# Update Virtual Machine Scale Sets VM operation.
|
1217
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1218
|
+
# will be added to the HTTP request.
|
1219
|
+
#
|
1220
|
+
# @return [VirtualMachineScaleSetVM] operation results.
|
1221
|
+
#
|
1222
|
+
def begin_update(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
1223
|
+
response = begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
|
1224
|
+
response.body unless response.nil?
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
#
|
1228
|
+
# Updates a virtual machine of a VM scale set.
|
1229
|
+
#
|
1230
|
+
# @param resource_group_name [String] The name of the resource group.
|
1231
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
1232
|
+
# extension should be create or updated.
|
1233
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1234
|
+
# @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
|
1235
|
+
# Update Virtual Machine Scale Sets VM operation.
|
1236
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1237
|
+
# will be added to the HTTP request.
|
1238
|
+
#
|
1239
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1240
|
+
#
|
1241
|
+
def begin_update_with_http_info(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
1242
|
+
begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
#
|
1246
|
+
# Updates a virtual machine of a VM scale set.
|
1247
|
+
#
|
1248
|
+
# @param resource_group_name [String] The name of the resource group.
|
1249
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
1250
|
+
# extension should be create or updated.
|
1251
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1252
|
+
# @param parameters [VirtualMachineScaleSetVM] Parameters supplied to the
|
1253
|
+
# Update Virtual Machine Scale Sets VM operation.
|
1254
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1255
|
+
# to the HTTP request.
|
1256
|
+
#
|
1257
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1258
|
+
#
|
1259
|
+
def begin_update_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
1260
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1261
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1262
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1263
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1264
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1265
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1266
|
+
|
1267
|
+
|
1268
|
+
request_headers = {}
|
1269
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1270
|
+
|
1271
|
+
# Set Headers
|
1272
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1273
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1274
|
+
|
1275
|
+
# Serialize Request
|
1276
|
+
request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVM.mapper()
|
1277
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1278
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1279
|
+
|
1280
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
|
1281
|
+
|
1282
|
+
request_url = @base_url || @client.base_url
|
1283
|
+
|
1284
|
+
options = {
|
1285
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1286
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1287
|
+
query_params: {'api-version' => @client.api_version},
|
1288
|
+
body: request_content,
|
1289
|
+
headers: request_headers.merge(custom_headers || {}),
|
1290
|
+
base_url: request_url
|
1291
|
+
}
|
1292
|
+
promise = @client.make_request_async(:put, path_template, options)
|
1293
|
+
|
1294
|
+
promise = promise.then do |result|
|
1295
|
+
http_response = result.response
|
1296
|
+
status_code = http_response.status
|
1297
|
+
response_content = http_response.body
|
1298
|
+
unless status_code == 200 || status_code == 202
|
1299
|
+
error_model = JSON.load(response_content)
|
1300
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1304
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1305
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1306
|
+
# Deserialize Response
|
1307
|
+
if status_code == 200
|
1308
|
+
begin
|
1309
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1310
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVM.mapper()
|
1311
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1312
|
+
rescue Exception => e
|
1313
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1314
|
+
end
|
1315
|
+
end
|
1316
|
+
# Deserialize Response
|
1317
|
+
if status_code == 202
|
1318
|
+
begin
|
1319
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1320
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVM.mapper()
|
1321
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1322
|
+
rescue Exception => e
|
1323
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1324
|
+
end
|
1325
|
+
end
|
1326
|
+
|
1327
|
+
result
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
promise.execute
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
#
|
1334
|
+
# Deletes a virtual machine from a VM scale set.
|
1335
|
+
#
|
1336
|
+
# @param resource_group_name [String] The name of the resource group.
|
1337
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1338
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1339
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1340
|
+
# will be added to the HTTP request.
|
1341
|
+
#
|
1342
|
+
#
|
1343
|
+
def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1344
|
+
response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1345
|
+
nil
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
#
|
1349
|
+
# Deletes a virtual machine from a VM scale set.
|
1350
|
+
#
|
1351
|
+
# @param resource_group_name [String] The name of the resource group.
|
1352
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1353
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1354
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1355
|
+
# will be added to the HTTP request.
|
1356
|
+
#
|
1357
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1358
|
+
#
|
1359
|
+
def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1360
|
+
begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
#
|
1364
|
+
# Deletes a virtual machine from a VM scale set.
|
1365
|
+
#
|
1366
|
+
# @param resource_group_name [String] The name of the resource group.
|
1367
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1368
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1369
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1370
|
+
# to the HTTP request.
|
1371
|
+
#
|
1372
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1373
|
+
#
|
1374
|
+
def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1375
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1376
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1377
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1378
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1379
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1380
|
+
|
1381
|
+
|
1382
|
+
request_headers = {}
|
1383
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1384
|
+
|
1385
|
+
# Set Headers
|
1386
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1387
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1388
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'
|
1389
|
+
|
1390
|
+
request_url = @base_url || @client.base_url
|
1391
|
+
|
1392
|
+
options = {
|
1393
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1394
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1395
|
+
query_params: {'api-version' => @client.api_version},
|
1396
|
+
headers: request_headers.merge(custom_headers || {}),
|
1397
|
+
base_url: request_url
|
1398
|
+
}
|
1399
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
1400
|
+
|
1401
|
+
promise = promise.then do |result|
|
1402
|
+
http_response = result.response
|
1403
|
+
status_code = http_response.status
|
1404
|
+
response_content = http_response.body
|
1405
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
1406
|
+
error_model = JSON.load(response_content)
|
1407
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1408
|
+
end
|
1409
|
+
|
1410
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1411
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1412
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1413
|
+
|
1414
|
+
result
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
promise.execute
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
#
|
1421
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
1422
|
+
# still attached and you are getting charged for the resources. Instead, use
|
1423
|
+
# deallocate to release resources and avoid charges.
|
1424
|
+
#
|
1425
|
+
# @param resource_group_name [String] The name of the resource group.
|
1426
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1427
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1428
|
+
# @param skip_shutdown [Boolean] The parameter to request non-graceful VM
|
1429
|
+
# shutdown. True value for this flag indicates non-graceful shutdown whereas
|
1430
|
+
# false indicates otherwise. Default value for this flag is false if not
|
1431
|
+
# specified
|
1432
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1433
|
+
# will be added to the HTTP request.
|
1434
|
+
#
|
1435
|
+
#
|
1436
|
+
def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
|
1437
|
+
response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:skip_shutdown, custom_headers:custom_headers).value!
|
1438
|
+
nil
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
#
|
1442
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
1443
|
+
# still attached and you are getting charged for the resources. Instead, use
|
1444
|
+
# deallocate to release resources and avoid charges.
|
1445
|
+
#
|
1446
|
+
# @param resource_group_name [String] The name of the resource group.
|
1447
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1448
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1449
|
+
# @param skip_shutdown [Boolean] The parameter to request non-graceful VM
|
1450
|
+
# shutdown. True value for this flag indicates non-graceful shutdown whereas
|
1451
|
+
# false indicates otherwise. Default value for this flag is false if not
|
1452
|
+
# specified
|
1453
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1454
|
+
# will be added to the HTTP request.
|
1455
|
+
#
|
1456
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1457
|
+
#
|
1458
|
+
def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
|
1459
|
+
begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:skip_shutdown, custom_headers:custom_headers).value!
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
#
|
1463
|
+
# Power off (stop) a virtual machine in a VM scale set. Note that resources are
|
1464
|
+
# still attached and you are getting charged for the resources. Instead, use
|
1465
|
+
# deallocate to release resources and avoid charges.
|
1466
|
+
#
|
1467
|
+
# @param resource_group_name [String] The name of the resource group.
|
1468
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1469
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1470
|
+
# @param skip_shutdown [Boolean] The parameter to request non-graceful VM
|
1471
|
+
# shutdown. True value for this flag indicates non-graceful shutdown whereas
|
1472
|
+
# false indicates otherwise. Default value for this flag is false if not
|
1473
|
+
# specified
|
1474
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1475
|
+
# to the HTTP request.
|
1476
|
+
#
|
1477
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1478
|
+
#
|
1479
|
+
def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, skip_shutdown:false, custom_headers:nil)
|
1480
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1481
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1482
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1483
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1484
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1485
|
+
|
1486
|
+
|
1487
|
+
request_headers = {}
|
1488
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1489
|
+
|
1490
|
+
# Set Headers
|
1491
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1492
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1493
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'
|
1494
|
+
|
1495
|
+
request_url = @base_url || @client.base_url
|
1496
|
+
|
1497
|
+
options = {
|
1498
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1499
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1500
|
+
query_params: {'skipShutdown' => skip_shutdown,'api-version' => @client.api_version},
|
1501
|
+
headers: request_headers.merge(custom_headers || {}),
|
1502
|
+
base_url: request_url
|
1503
|
+
}
|
1504
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1505
|
+
|
1506
|
+
promise = promise.then do |result|
|
1507
|
+
http_response = result.response
|
1508
|
+
status_code = http_response.status
|
1509
|
+
response_content = http_response.body
|
1510
|
+
unless status_code == 200 || status_code == 202
|
1511
|
+
error_model = JSON.load(response_content)
|
1512
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1513
|
+
end
|
1514
|
+
|
1515
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1516
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1517
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1518
|
+
|
1519
|
+
result
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
promise.execute
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
#
|
1526
|
+
# Restarts a virtual machine in a VM scale set.
|
1527
|
+
#
|
1528
|
+
# @param resource_group_name [String] The name of the resource group.
|
1529
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1530
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1531
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1532
|
+
# will be added to the HTTP request.
|
1533
|
+
#
|
1534
|
+
#
|
1535
|
+
def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1536
|
+
response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1537
|
+
nil
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
#
|
1541
|
+
# Restarts a virtual machine in a VM scale set.
|
1542
|
+
#
|
1543
|
+
# @param resource_group_name [String] The name of the resource group.
|
1544
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1545
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1546
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1547
|
+
# will be added to the HTTP request.
|
1548
|
+
#
|
1549
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1550
|
+
#
|
1551
|
+
def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1552
|
+
begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1553
|
+
end
|
1554
|
+
|
1555
|
+
#
|
1556
|
+
# Restarts a virtual machine in a VM scale set.
|
1557
|
+
#
|
1558
|
+
# @param resource_group_name [String] The name of the resource group.
|
1559
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1560
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1561
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1562
|
+
# to the HTTP request.
|
1563
|
+
#
|
1564
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1565
|
+
#
|
1566
|
+
def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1567
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1568
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1569
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1570
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1571
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1572
|
+
|
1573
|
+
|
1574
|
+
request_headers = {}
|
1575
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1576
|
+
|
1577
|
+
# Set Headers
|
1578
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1579
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1580
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'
|
1581
|
+
|
1582
|
+
request_url = @base_url || @client.base_url
|
1583
|
+
|
1584
|
+
options = {
|
1585
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1586
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1587
|
+
query_params: {'api-version' => @client.api_version},
|
1588
|
+
headers: request_headers.merge(custom_headers || {}),
|
1589
|
+
base_url: request_url
|
1590
|
+
}
|
1591
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1592
|
+
|
1593
|
+
promise = promise.then do |result|
|
1594
|
+
http_response = result.response
|
1595
|
+
status_code = http_response.status
|
1596
|
+
response_content = http_response.body
|
1597
|
+
unless status_code == 200 || status_code == 202
|
1598
|
+
error_model = JSON.load(response_content)
|
1599
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1600
|
+
end
|
1601
|
+
|
1602
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1603
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1604
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1605
|
+
|
1606
|
+
result
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
promise.execute
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
#
|
1613
|
+
# Starts a virtual machine in a VM scale set.
|
1614
|
+
#
|
1615
|
+
# @param resource_group_name [String] The name of the resource group.
|
1616
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1617
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1618
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1619
|
+
# will be added to the HTTP request.
|
1620
|
+
#
|
1621
|
+
#
|
1622
|
+
def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1623
|
+
response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1624
|
+
nil
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
#
|
1628
|
+
# Starts a virtual machine in a VM scale set.
|
1629
|
+
#
|
1630
|
+
# @param resource_group_name [String] The name of the resource group.
|
1631
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1632
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1633
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1634
|
+
# will be added to the HTTP request.
|
1635
|
+
#
|
1636
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1637
|
+
#
|
1638
|
+
def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1639
|
+
begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1640
|
+
end
|
1641
|
+
|
1642
|
+
#
|
1643
|
+
# Starts a virtual machine in a VM scale set.
|
1644
|
+
#
|
1645
|
+
# @param resource_group_name [String] The name of the resource group.
|
1646
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1647
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1648
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1649
|
+
# to the HTTP request.
|
1650
|
+
#
|
1651
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1652
|
+
#
|
1653
|
+
def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1654
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1655
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1656
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1657
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1658
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1659
|
+
|
1660
|
+
|
1661
|
+
request_headers = {}
|
1662
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1663
|
+
|
1664
|
+
# Set Headers
|
1665
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1666
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1667
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'
|
1668
|
+
|
1669
|
+
request_url = @base_url || @client.base_url
|
1670
|
+
|
1671
|
+
options = {
|
1672
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1673
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1674
|
+
query_params: {'api-version' => @client.api_version},
|
1675
|
+
headers: request_headers.merge(custom_headers || {}),
|
1676
|
+
base_url: request_url
|
1677
|
+
}
|
1678
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1679
|
+
|
1680
|
+
promise = promise.then do |result|
|
1681
|
+
http_response = result.response
|
1682
|
+
status_code = http_response.status
|
1683
|
+
response_content = http_response.body
|
1684
|
+
unless status_code == 200 || status_code == 202
|
1685
|
+
error_model = JSON.load(response_content)
|
1686
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1687
|
+
end
|
1688
|
+
|
1689
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1690
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1691
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1692
|
+
|
1693
|
+
result
|
1694
|
+
end
|
1695
|
+
|
1696
|
+
promise.execute
|
1697
|
+
end
|
1698
|
+
|
1699
|
+
#
|
1700
|
+
# Shuts down the virtual machine in the virtual machine scale set, moves it to
|
1701
|
+
# a new node, and powers it back on.
|
1702
|
+
#
|
1703
|
+
# @param resource_group_name [String] The name of the resource group.
|
1704
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1705
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1706
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1707
|
+
# will be added to the HTTP request.
|
1708
|
+
#
|
1709
|
+
#
|
1710
|
+
def begin_redeploy(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1711
|
+
response = begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1712
|
+
nil
|
1713
|
+
end
|
1714
|
+
|
1715
|
+
#
|
1716
|
+
# Shuts down the virtual machine in the virtual machine scale set, moves it to
|
1717
|
+
# a new node, and powers it back on.
|
1718
|
+
#
|
1719
|
+
# @param resource_group_name [String] The name of the resource group.
|
1720
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1721
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1722
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1723
|
+
# will be added to the HTTP request.
|
1724
|
+
#
|
1725
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1726
|
+
#
|
1727
|
+
def begin_redeploy_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1728
|
+
begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1729
|
+
end
|
1730
|
+
|
1731
|
+
#
|
1732
|
+
# Shuts down the virtual machine in the virtual machine scale set, moves it to
|
1733
|
+
# a new node, and powers it back on.
|
1734
|
+
#
|
1735
|
+
# @param resource_group_name [String] The name of the resource group.
|
1736
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1737
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1738
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1739
|
+
# to the HTTP request.
|
1740
|
+
#
|
1741
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1742
|
+
#
|
1743
|
+
def begin_redeploy_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1744
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1745
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1746
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1747
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1748
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1749
|
+
|
1750
|
+
|
1751
|
+
request_headers = {}
|
1752
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1753
|
+
|
1754
|
+
# Set Headers
|
1755
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1756
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1757
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy'
|
1758
|
+
|
1759
|
+
request_url = @base_url || @client.base_url
|
1760
|
+
|
1761
|
+
options = {
|
1762
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1763
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1764
|
+
query_params: {'api-version' => @client.api_version},
|
1765
|
+
headers: request_headers.merge(custom_headers || {}),
|
1766
|
+
base_url: request_url
|
1767
|
+
}
|
1768
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1769
|
+
|
1770
|
+
promise = promise.then do |result|
|
1771
|
+
http_response = result.response
|
1772
|
+
status_code = http_response.status
|
1773
|
+
response_content = http_response.body
|
1774
|
+
unless status_code == 200 || status_code == 202
|
1775
|
+
error_model = JSON.load(response_content)
|
1776
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1780
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1781
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1782
|
+
|
1783
|
+
result
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
promise.execute
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
#
|
1790
|
+
# Shuts down the virtual machine in a VMScaleSet, moves it to an already
|
1791
|
+
# updated node, and powers it back on during the self-service phase of planned
|
1792
|
+
# maintenance.
|
1793
|
+
#
|
1794
|
+
# @param resource_group_name [String] The name of the resource group.
|
1795
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1796
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1797
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1798
|
+
# will be added to the HTTP request.
|
1799
|
+
#
|
1800
|
+
#
|
1801
|
+
def begin_perform_maintenance(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1802
|
+
response = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1803
|
+
nil
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
#
|
1807
|
+
# Shuts down the virtual machine in a VMScaleSet, moves it to an already
|
1808
|
+
# updated node, and powers it back on during the self-service phase of planned
|
1809
|
+
# maintenance.
|
1810
|
+
#
|
1811
|
+
# @param resource_group_name [String] The name of the resource group.
|
1812
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1813
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1814
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1815
|
+
# will be added to the HTTP request.
|
1816
|
+
#
|
1817
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1818
|
+
#
|
1819
|
+
def begin_perform_maintenance_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1820
|
+
begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
|
1821
|
+
end
|
1822
|
+
|
1823
|
+
#
|
1824
|
+
# Shuts down the virtual machine in a VMScaleSet, moves it to an already
|
1825
|
+
# updated node, and powers it back on during the self-service phase of planned
|
1826
|
+
# maintenance.
|
1827
|
+
#
|
1828
|
+
# @param resource_group_name [String] The name of the resource group.
|
1829
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1830
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1831
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1832
|
+
# to the HTTP request.
|
1833
|
+
#
|
1834
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1835
|
+
#
|
1836
|
+
def begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
|
1837
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1838
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1839
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1840
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1841
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1842
|
+
|
1843
|
+
|
1844
|
+
request_headers = {}
|
1845
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1846
|
+
|
1847
|
+
# Set Headers
|
1848
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1849
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1850
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance'
|
1851
|
+
|
1852
|
+
request_url = @base_url || @client.base_url
|
1853
|
+
|
1854
|
+
options = {
|
1855
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1856
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1857
|
+
query_params: {'api-version' => @client.api_version},
|
1858
|
+
headers: request_headers.merge(custom_headers || {}),
|
1859
|
+
base_url: request_url
|
1860
|
+
}
|
1861
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1862
|
+
|
1863
|
+
promise = promise.then do |result|
|
1864
|
+
http_response = result.response
|
1865
|
+
status_code = http_response.status
|
1866
|
+
response_content = http_response.body
|
1867
|
+
unless status_code == 200 || status_code == 202
|
1868
|
+
error_model = JSON.load(response_content)
|
1869
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1870
|
+
end
|
1871
|
+
|
1872
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1873
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1874
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1875
|
+
|
1876
|
+
result
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
promise.execute
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
#
|
1883
|
+
# Run command on a virtual machine in a VM scale set.
|
1884
|
+
#
|
1885
|
+
# @param resource_group_name [String] The name of the resource group.
|
1886
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1887
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1888
|
+
# @param parameters [RunCommandInput] Parameters supplied to the Run command
|
1889
|
+
# operation.
|
1890
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1891
|
+
# will be added to the HTTP request.
|
1892
|
+
#
|
1893
|
+
# @return [RunCommandResult] operation results.
|
1894
|
+
#
|
1895
|
+
def begin_run_command(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
1896
|
+
response = begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
|
1897
|
+
response.body unless response.nil?
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
#
|
1901
|
+
# Run command on a virtual machine in a VM scale set.
|
1902
|
+
#
|
1903
|
+
# @param resource_group_name [String] The name of the resource group.
|
1904
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1905
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1906
|
+
# @param parameters [RunCommandInput] Parameters supplied to the Run command
|
1907
|
+
# operation.
|
1908
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1909
|
+
# will be added to the HTTP request.
|
1910
|
+
#
|
1911
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1912
|
+
#
|
1913
|
+
def begin_run_command_with_http_info(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
1914
|
+
begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:custom_headers).value!
|
1915
|
+
end
|
1916
|
+
|
1917
|
+
#
|
1918
|
+
# Run command on a virtual machine in a VM scale set.
|
1919
|
+
#
|
1920
|
+
# @param resource_group_name [String] The name of the resource group.
|
1921
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
1922
|
+
# @param instance_id [String] The instance ID of the virtual machine.
|
1923
|
+
# @param parameters [RunCommandInput] Parameters supplied to the Run command
|
1924
|
+
# operation.
|
1925
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1926
|
+
# to the HTTP request.
|
1927
|
+
#
|
1928
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1929
|
+
#
|
1930
|
+
def begin_run_command_async(resource_group_name, vm_scale_set_name, instance_id, parameters, custom_headers:nil)
|
1931
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1932
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
1933
|
+
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
1934
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1935
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1936
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1937
|
+
|
1938
|
+
|
1939
|
+
request_headers = {}
|
1940
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1941
|
+
|
1942
|
+
# Set Headers
|
1943
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1944
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1945
|
+
|
1946
|
+
# Serialize Request
|
1947
|
+
request_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::RunCommandInput.mapper()
|
1948
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1949
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1950
|
+
|
1951
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand'
|
1952
|
+
|
1953
|
+
request_url = @base_url || @client.base_url
|
1954
|
+
|
1955
|
+
options = {
|
1956
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1957
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
|
1958
|
+
query_params: {'api-version' => @client.api_version},
|
1959
|
+
body: request_content,
|
1960
|
+
headers: request_headers.merge(custom_headers || {}),
|
1961
|
+
base_url: request_url
|
1962
|
+
}
|
1963
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1964
|
+
|
1965
|
+
promise = promise.then do |result|
|
1966
|
+
http_response = result.response
|
1967
|
+
status_code = http_response.status
|
1968
|
+
response_content = http_response.body
|
1969
|
+
unless status_code == 200 || status_code == 202
|
1970
|
+
error_model = JSON.load(response_content)
|
1971
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1972
|
+
end
|
1973
|
+
|
1974
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1975
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1976
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1977
|
+
# Deserialize Response
|
1978
|
+
if status_code == 200
|
1979
|
+
begin
|
1980
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1981
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::RunCommandResult.mapper()
|
1982
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1983
|
+
rescue Exception => e
|
1984
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1985
|
+
end
|
1986
|
+
end
|
1987
|
+
|
1988
|
+
result
|
1989
|
+
end
|
1990
|
+
|
1991
|
+
promise.execute
|
1992
|
+
end
|
1993
|
+
|
1994
|
+
#
|
1995
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
1996
|
+
#
|
1997
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1998
|
+
# to List operation.
|
1999
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2000
|
+
# will be added to the HTTP request.
|
2001
|
+
#
|
2002
|
+
# @return [VirtualMachineScaleSetVMListResult] operation results.
|
2003
|
+
#
|
2004
|
+
def list_next(next_page_link, custom_headers:nil)
|
2005
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
2006
|
+
response.body unless response.nil?
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
#
|
2010
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
2011
|
+
#
|
2012
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2013
|
+
# to List operation.
|
2014
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2015
|
+
# will be added to the HTTP request.
|
2016
|
+
#
|
2017
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2018
|
+
#
|
2019
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
2020
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
2021
|
+
end
|
2022
|
+
|
2023
|
+
#
|
2024
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
2025
|
+
#
|
2026
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2027
|
+
# to List operation.
|
2028
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2029
|
+
# to the HTTP request.
|
2030
|
+
#
|
2031
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2032
|
+
#
|
2033
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
2034
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2035
|
+
|
2036
|
+
|
2037
|
+
request_headers = {}
|
2038
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2039
|
+
|
2040
|
+
# Set Headers
|
2041
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2042
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2043
|
+
path_template = '{nextLink}'
|
2044
|
+
|
2045
|
+
request_url = @base_url || @client.base_url
|
2046
|
+
|
2047
|
+
options = {
|
2048
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2049
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2050
|
+
headers: request_headers.merge(custom_headers || {}),
|
2051
|
+
base_url: request_url
|
2052
|
+
}
|
2053
|
+
promise = @client.make_request_async(:get, path_template, options)
|
2054
|
+
|
2055
|
+
promise = promise.then do |result|
|
2056
|
+
http_response = result.response
|
2057
|
+
status_code = http_response.status
|
2058
|
+
response_content = http_response.body
|
2059
|
+
unless status_code == 200
|
2060
|
+
error_model = JSON.load(response_content)
|
2061
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2062
|
+
end
|
2063
|
+
|
2064
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2065
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
2066
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
2067
|
+
# Deserialize Response
|
2068
|
+
if status_code == 200
|
2069
|
+
begin
|
2070
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2071
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::VirtualMachineScaleSetVMListResult.mapper()
|
2072
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
2073
|
+
rescue Exception => e
|
2074
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2075
|
+
end
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
result
|
2079
|
+
end
|
2080
|
+
|
2081
|
+
promise.execute
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
#
|
2085
|
+
# Gets a list of all virtual machines in a VM scale sets.
|
2086
|
+
#
|
2087
|
+
# @param resource_group_name [String] The name of the resource group.
|
2088
|
+
# @param virtual_machine_scale_set_name [String] The name of the VM scale set.
|
2089
|
+
# @param filter [String] The filter to apply to the operation. Allowed values
|
2090
|
+
# are 'startswith(instanceView/statuses/code, 'PowerState') eq true',
|
2091
|
+
# 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq
|
2092
|
+
# false'.
|
2093
|
+
# @param select [String] The list parameters. Allowed values are
|
2094
|
+
# 'instanceView', 'instanceView/statuses'.
|
2095
|
+
# @param expand [String] The expand expression to apply to the operation.
|
2096
|
+
# Allowed values are 'instanceView'.
|
2097
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2098
|
+
# will be added to the HTTP request.
|
2099
|
+
#
|
2100
|
+
# @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
|
2101
|
+
# pages of the response.
|
2102
|
+
#
|
2103
|
+
def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
|
2104
|
+
response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
|
2105
|
+
unless response.nil?
|
2106
|
+
page = response.body
|
2107
|
+
page.next_method = Proc.new do |next_page_link|
|
2108
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
2109
|
+
end
|
2110
|
+
page
|
2111
|
+
end
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
end
|
2115
|
+
end
|