azure_mgmt_compute 0.19.1 → 0.19.2
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-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 +310 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/availability_sets.rb +916 -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_source.rb +58 -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 +2087 -0
- data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3288 -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 +3050 -0
- data/lib/azure_mgmt_compute.rb +12 -11
- data/lib/profiles/latest/modules/compute_profile_module.rb +891 -821
- data/lib/version.rb +1 -1
- metadata +288 -2
data/lib/2019-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb
ADDED
@@ -0,0 +1,498 @@
|
|
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 VirtualMachineScaleSetRollingUpgrades
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineScaleSetRollingUpgrades class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [ComputeManagementClient] reference to the ComputeManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
def cancel(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
33
|
+
response = cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
34
|
+
nil
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param resource_group_name [String] The name of the resource group.
|
39
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
44
|
+
# response.
|
45
|
+
#
|
46
|
+
def cancel_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
47
|
+
# Send request
|
48
|
+
promise = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
|
49
|
+
|
50
|
+
promise = promise.then do |response|
|
51
|
+
# Defining deserialization method.
|
52
|
+
deserialize_method = lambda do |parsed_response|
|
53
|
+
end
|
54
|
+
|
55
|
+
# Waiting for response.
|
56
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
57
|
+
end
|
58
|
+
|
59
|
+
promise
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
64
|
+
# the latest available Platform Image OS version. Instances which are already
|
65
|
+
# running the latest available OS version are not affected.
|
66
|
+
#
|
67
|
+
# @param resource_group_name [String] The name of the resource group.
|
68
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
69
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
70
|
+
# will be added to the HTTP request.
|
71
|
+
#
|
72
|
+
def start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
73
|
+
response = start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
74
|
+
nil
|
75
|
+
end
|
76
|
+
|
77
|
+
#
|
78
|
+
# @param resource_group_name [String] The name of the resource group.
|
79
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
80
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
81
|
+
# will be added to the HTTP request.
|
82
|
+
#
|
83
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
84
|
+
# response.
|
85
|
+
#
|
86
|
+
def start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
87
|
+
# Send request
|
88
|
+
promise = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
|
89
|
+
|
90
|
+
promise = promise.then do |response|
|
91
|
+
# Defining deserialization method.
|
92
|
+
deserialize_method = lambda do |parsed_response|
|
93
|
+
end
|
94
|
+
|
95
|
+
# Waiting for response.
|
96
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
97
|
+
end
|
98
|
+
|
99
|
+
promise
|
100
|
+
end
|
101
|
+
|
102
|
+
#
|
103
|
+
# Starts a rolling upgrade to move all extensions for all virtual machine scale
|
104
|
+
# set instances to the latest available extension version. Instances which are
|
105
|
+
# already running the latest extension versions are not affected.
|
106
|
+
#
|
107
|
+
# @param resource_group_name [String] The name of the resource group.
|
108
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
109
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
110
|
+
# will be added to the HTTP request.
|
111
|
+
#
|
112
|
+
def start_extension_upgrade(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
113
|
+
response = start_extension_upgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
114
|
+
nil
|
115
|
+
end
|
116
|
+
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
121
|
+
# will be added to the HTTP request.
|
122
|
+
#
|
123
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
124
|
+
# response.
|
125
|
+
#
|
126
|
+
def start_extension_upgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
127
|
+
# Send request
|
128
|
+
promise = begin_start_extension_upgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
|
129
|
+
|
130
|
+
promise = promise.then do |response|
|
131
|
+
# Defining deserialization method.
|
132
|
+
deserialize_method = lambda do |parsed_response|
|
133
|
+
end
|
134
|
+
|
135
|
+
# Waiting for response.
|
136
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
137
|
+
end
|
138
|
+
|
139
|
+
promise
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Gets the status of the latest virtual machine scale set rolling upgrade.
|
144
|
+
#
|
145
|
+
# @param resource_group_name [String] The name of the resource group.
|
146
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
147
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
|
+
# will be added to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [RollingUpgradeStatusInfo] operation results.
|
151
|
+
#
|
152
|
+
def get_latest(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
153
|
+
response = get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
154
|
+
response.body unless response.nil?
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Gets the status of the latest virtual machine scale set rolling upgrade.
|
159
|
+
#
|
160
|
+
# @param resource_group_name [String] The name of the resource group.
|
161
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
|
+
# will be added to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
|
+
#
|
167
|
+
def get_latest_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
168
|
+
get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
169
|
+
end
|
170
|
+
|
171
|
+
#
|
172
|
+
# Gets the status of the latest virtual machine scale set rolling upgrade.
|
173
|
+
#
|
174
|
+
# @param resource_group_name [String] The name of the resource group.
|
175
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
176
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
177
|
+
# to the HTTP request.
|
178
|
+
#
|
179
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
180
|
+
#
|
181
|
+
def get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
182
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
183
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
184
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
185
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
186
|
+
|
187
|
+
|
188
|
+
request_headers = {}
|
189
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
|
+
|
191
|
+
# Set Headers
|
192
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
193
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
194
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest'
|
195
|
+
|
196
|
+
request_url = @base_url || @client.base_url
|
197
|
+
|
198
|
+
options = {
|
199
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
200
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
201
|
+
query_params: {'api-version' => @client.api_version},
|
202
|
+
headers: request_headers.merge(custom_headers || {}),
|
203
|
+
base_url: request_url
|
204
|
+
}
|
205
|
+
promise = @client.make_request_async(:get, path_template, options)
|
206
|
+
|
207
|
+
promise = promise.then do |result|
|
208
|
+
http_response = result.response
|
209
|
+
status_code = http_response.status
|
210
|
+
response_content = http_response.body
|
211
|
+
unless status_code == 200
|
212
|
+
error_model = JSON.load(response_content)
|
213
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
214
|
+
end
|
215
|
+
|
216
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
217
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
218
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
219
|
+
# Deserialize Response
|
220
|
+
if status_code == 200
|
221
|
+
begin
|
222
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
223
|
+
result_mapper = Azure::Compute::Mgmt::V2019_12_01::Models::RollingUpgradeStatusInfo.mapper()
|
224
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
225
|
+
rescue Exception => e
|
226
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
result
|
231
|
+
end
|
232
|
+
|
233
|
+
promise.execute
|
234
|
+
end
|
235
|
+
|
236
|
+
#
|
237
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
238
|
+
#
|
239
|
+
# @param resource_group_name [String] The name of the resource group.
|
240
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
241
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
242
|
+
# will be added to the HTTP request.
|
243
|
+
#
|
244
|
+
#
|
245
|
+
def begin_cancel(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
246
|
+
response = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
247
|
+
nil
|
248
|
+
end
|
249
|
+
|
250
|
+
#
|
251
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
252
|
+
#
|
253
|
+
# @param resource_group_name [String] The name of the resource group.
|
254
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
255
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
256
|
+
# will be added to the HTTP request.
|
257
|
+
#
|
258
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
259
|
+
#
|
260
|
+
def begin_cancel_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
261
|
+
begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
# Cancels the current virtual machine scale set rolling upgrade.
|
266
|
+
#
|
267
|
+
# @param resource_group_name [String] The name of the resource group.
|
268
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
269
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
270
|
+
# to the HTTP request.
|
271
|
+
#
|
272
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
273
|
+
#
|
274
|
+
def begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
275
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
276
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
277
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
278
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
279
|
+
|
280
|
+
|
281
|
+
request_headers = {}
|
282
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
283
|
+
|
284
|
+
# Set Headers
|
285
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
286
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
287
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel'
|
288
|
+
|
289
|
+
request_url = @base_url || @client.base_url
|
290
|
+
|
291
|
+
options = {
|
292
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
293
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
294
|
+
query_params: {'api-version' => @client.api_version},
|
295
|
+
headers: request_headers.merge(custom_headers || {}),
|
296
|
+
base_url: request_url
|
297
|
+
}
|
298
|
+
promise = @client.make_request_async(:post, path_template, options)
|
299
|
+
|
300
|
+
promise = promise.then do |result|
|
301
|
+
http_response = result.response
|
302
|
+
status_code = http_response.status
|
303
|
+
response_content = http_response.body
|
304
|
+
unless status_code == 200 || status_code == 202
|
305
|
+
error_model = JSON.load(response_content)
|
306
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
307
|
+
end
|
308
|
+
|
309
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
310
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
311
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
312
|
+
|
313
|
+
result
|
314
|
+
end
|
315
|
+
|
316
|
+
promise.execute
|
317
|
+
end
|
318
|
+
|
319
|
+
#
|
320
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
321
|
+
# the latest available Platform Image OS version. Instances which are already
|
322
|
+
# running the latest available OS version are not affected.
|
323
|
+
#
|
324
|
+
# @param resource_group_name [String] The name of the resource group.
|
325
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
326
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
327
|
+
# will be added to the HTTP request.
|
328
|
+
#
|
329
|
+
#
|
330
|
+
def begin_start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
331
|
+
response = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
332
|
+
nil
|
333
|
+
end
|
334
|
+
|
335
|
+
#
|
336
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
337
|
+
# the latest available Platform Image OS version. Instances which are already
|
338
|
+
# running the latest available OS version are not affected.
|
339
|
+
#
|
340
|
+
# @param resource_group_name [String] The name of the resource group.
|
341
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
342
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
343
|
+
# will be added to the HTTP request.
|
344
|
+
#
|
345
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
346
|
+
#
|
347
|
+
def begin_start_osupgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
348
|
+
begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
349
|
+
end
|
350
|
+
|
351
|
+
#
|
352
|
+
# Starts a rolling upgrade to move all virtual machine scale set instances to
|
353
|
+
# the latest available Platform Image OS version. Instances which are already
|
354
|
+
# running the latest available OS version are not affected.
|
355
|
+
#
|
356
|
+
# @param resource_group_name [String] The name of the resource group.
|
357
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
358
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
359
|
+
# to the HTTP request.
|
360
|
+
#
|
361
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
362
|
+
#
|
363
|
+
def begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
364
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
365
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
366
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
367
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
368
|
+
|
369
|
+
|
370
|
+
request_headers = {}
|
371
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
372
|
+
|
373
|
+
# Set Headers
|
374
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
375
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
376
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'
|
377
|
+
|
378
|
+
request_url = @base_url || @client.base_url
|
379
|
+
|
380
|
+
options = {
|
381
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
382
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
383
|
+
query_params: {'api-version' => @client.api_version},
|
384
|
+
headers: request_headers.merge(custom_headers || {}),
|
385
|
+
base_url: request_url
|
386
|
+
}
|
387
|
+
promise = @client.make_request_async(:post, path_template, options)
|
388
|
+
|
389
|
+
promise = promise.then do |result|
|
390
|
+
http_response = result.response
|
391
|
+
status_code = http_response.status
|
392
|
+
response_content = http_response.body
|
393
|
+
unless status_code == 200 || status_code == 202
|
394
|
+
error_model = JSON.load(response_content)
|
395
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
396
|
+
end
|
397
|
+
|
398
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
399
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
400
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
401
|
+
|
402
|
+
result
|
403
|
+
end
|
404
|
+
|
405
|
+
promise.execute
|
406
|
+
end
|
407
|
+
|
408
|
+
#
|
409
|
+
# Starts a rolling upgrade to move all extensions for all virtual machine scale
|
410
|
+
# set instances to the latest available extension version. Instances which are
|
411
|
+
# already running the latest extension versions are not affected.
|
412
|
+
#
|
413
|
+
# @param resource_group_name [String] The name of the resource group.
|
414
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
415
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
416
|
+
# will be added to the HTTP request.
|
417
|
+
#
|
418
|
+
#
|
419
|
+
def begin_start_extension_upgrade(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
420
|
+
response = begin_start_extension_upgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
421
|
+
nil
|
422
|
+
end
|
423
|
+
|
424
|
+
#
|
425
|
+
# Starts a rolling upgrade to move all extensions for all virtual machine scale
|
426
|
+
# set instances to the latest available extension version. Instances which are
|
427
|
+
# already running the latest extension versions are not affected.
|
428
|
+
#
|
429
|
+
# @param resource_group_name [String] The name of the resource group.
|
430
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
431
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
432
|
+
# will be added to the HTTP request.
|
433
|
+
#
|
434
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
435
|
+
#
|
436
|
+
def begin_start_extension_upgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
437
|
+
begin_start_extension_upgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
438
|
+
end
|
439
|
+
|
440
|
+
#
|
441
|
+
# Starts a rolling upgrade to move all extensions for all virtual machine scale
|
442
|
+
# set instances to the latest available extension version. Instances which are
|
443
|
+
# already running the latest extension versions are not affected.
|
444
|
+
#
|
445
|
+
# @param resource_group_name [String] The name of the resource group.
|
446
|
+
# @param vm_scale_set_name [String] The name of the VM scale set.
|
447
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
448
|
+
# to the HTTP request.
|
449
|
+
#
|
450
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
451
|
+
#
|
452
|
+
def begin_start_extension_upgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
453
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
454
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
455
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
456
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
457
|
+
|
458
|
+
|
459
|
+
request_headers = {}
|
460
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
461
|
+
|
462
|
+
# Set Headers
|
463
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
464
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
465
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade'
|
466
|
+
|
467
|
+
request_url = @base_url || @client.base_url
|
468
|
+
|
469
|
+
options = {
|
470
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
471
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
472
|
+
query_params: {'api-version' => @client.api_version},
|
473
|
+
headers: request_headers.merge(custom_headers || {}),
|
474
|
+
base_url: request_url
|
475
|
+
}
|
476
|
+
promise = @client.make_request_async(:post, path_template, options)
|
477
|
+
|
478
|
+
promise = promise.then do |result|
|
479
|
+
http_response = result.response
|
480
|
+
status_code = http_response.status
|
481
|
+
response_content = http_response.body
|
482
|
+
unless status_code == 200 || status_code == 202
|
483
|
+
error_model = JSON.load(response_content)
|
484
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
485
|
+
end
|
486
|
+
|
487
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
488
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
489
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
490
|
+
|
491
|
+
result
|
492
|
+
end
|
493
|
+
|
494
|
+
promise.execute
|
495
|
+
end
|
496
|
+
|
497
|
+
end
|
498
|
+
end
|