azure_mgmt_compute 0.21.1 → 0.22.0
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/compute_management_client.rb +1 -1
- data/lib/2019-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +3 -2
- data/lib/2020-06-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2020-06-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2020-09-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2020-09-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2020-10-01-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2020-12-01/generated/azure_mgmt_compute.rb +305 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/availability_sets.rb +920 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/compute_management_client.rb +221 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/dedicated_host_groups.rb +861 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/dedicated_hosts.rb +806 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/images.rb +975 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/log_analytics.rb +341 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +63 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/automatic_repairs_policy.rb +64 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/available_patch_summary.rb +143 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/billing_profile.rb +60 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +63 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +78 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/data_disk.rb +224 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb +219 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb +60 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_available_capacity.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_group.rb +178 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_instance_view.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_list_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_update.rb +141 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view.rb +81 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view_with_name.rb +84 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_license_types.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_list_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/dedicated_host_update.rb +171 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/diff_disk_placement.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +69 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/disallowed_configuration.rb +47 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/disk_detach_option_types.rb +15 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/disk_encryption_set_parameters.rb +46 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/execution_state.rb +21 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/extended_location.rb +58 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/extended_location_types.rb +15 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +106 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration_type.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image.rb +151 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image_data_disk.rb +108 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image_disk.rb +126 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb +123 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image_reference.rb +114 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/last_patch_installation_summary.rb +179 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/linux_configuration.rb +94 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/linux_parameters.rb +107 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/linux_patch_settings.rb +52 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/linux_vmguest_patch_mode.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +124 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +70 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/orchestration_mode.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/orchestration_service_names.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/orchestration_service_state.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/orchestration_service_state_action.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/orchestration_service_state_input.rb +59 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/orchestration_service_summary.rb +61 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/osprofile.rb +204 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/patch_assessment_state.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/patch_installation_detail.rb +121 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/patch_installation_state.rb +20 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/patch_operation_status.rb +19 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/patch_settings.rb +71 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +180 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +113 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/retrieve_boot_diagnostics_data_result.rb +59 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +133 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/scale_in_policy.rb +71 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/scheduled_events_profile.rb +49 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/security_profile.rb +81 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/security_types.rb +15 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/sku.rb +73 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb +73 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_resource.rb +102 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_update_resource.rb +67 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_keys_group_list_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/sub_resource_with_colocation_status.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/terminate_notification_profile.rb +62 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +99 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/uefi_settings.rb +60 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +488 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb +152 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +208 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +147 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +184 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_image_feature.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_install_patches_parameters.rb +87 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_install_patches_result.rb +204 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +258 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_patch_status.rb +83 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +49 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_command.rb +241 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb +135 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_script_source.rb +68 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_update.rb +206 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_commands_list_result.rb +98 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +358 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +153 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +197 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +70 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_update.rb +198 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +113 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +63 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +149 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +120 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_scale_in_rules.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +210 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +190 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +148 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +72 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +151 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +398 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextension.rb +190 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextension_update.rb +164 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_list_result.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +211 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +190 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_software_patch_properties.rb +172 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +418 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vm_disk_types.rb +16 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vmguest_patch_classification_linux.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vmguest_patch_classification_windows.rb +22 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vmguest_patch_reboot_behavior.rb +18 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vmguest_patch_reboot_setting.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vmguest_patch_reboot_status.rb +20 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/windows_configuration.rb +127 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/windows_parameters.rb +117 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/models/windows_vmguest_patch_mode.rb +17 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/operations.rb +109 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +846 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/ssh_public_keys.rb +939 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/usage_operations.rb +241 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +360 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +701 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +600 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_images_edge_zone.rb +626 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +1112 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +821 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +498 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vmextensions.rb +709 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vmrun_commands.rb +827 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +2230 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3523 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +122 -0
- data/lib/2020-12-01/generated/azure_mgmt_compute/virtual_machines.rb +3446 -0
- data/lib/azure_mgmt_compute.rb +1 -0
- data/lib/profiles/latest/modules/compute_profile_module.rb +1010 -944
- data/lib/version.rb +1 -1
- metadata +283 -2
@@ -0,0 +1,241 @@
|
|
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::V2020_12_01
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class UsageOperations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the UsageOperations 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
|
+
# Gets, for the specified location, the current compute resource usage
|
26
|
+
# information as well as the limits for compute resources under the
|
27
|
+
# subscription.
|
28
|
+
#
|
29
|
+
# @param location [String] The location for which resource usage is queried.
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Array<Usage>] operation results.
|
34
|
+
#
|
35
|
+
def list(location, custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(location, custom_headers:custom_headers)
|
37
|
+
first_page.get_all_items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets, for the specified location, the current compute resource usage
|
42
|
+
# information as well as the limits for compute resources under the
|
43
|
+
# subscription.
|
44
|
+
#
|
45
|
+
# @param location [String] The location for which resource usage is queried.
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def list_with_http_info(location, custom_headers:nil)
|
52
|
+
list_async(location, custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Gets, for the specified location, the current compute resource usage
|
57
|
+
# information as well as the limits for compute resources under the
|
58
|
+
# subscription.
|
59
|
+
#
|
60
|
+
# @param location [String] The location for which resource usage is queried.
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def list_async(location, custom_headers:nil)
|
67
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
68
|
+
fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
69
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
70
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
71
|
+
|
72
|
+
|
73
|
+
request_headers = {}
|
74
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
|
+
|
76
|
+
# Set Headers
|
77
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
78
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
79
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages'
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
options = {
|
84
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
85
|
+
path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
|
86
|
+
query_params: {'api-version' => @client.api_version},
|
87
|
+
headers: request_headers.merge(custom_headers || {}),
|
88
|
+
base_url: request_url
|
89
|
+
}
|
90
|
+
promise = @client.make_request_async(:get, path_template, options)
|
91
|
+
|
92
|
+
promise = promise.then do |result|
|
93
|
+
http_response = result.response
|
94
|
+
status_code = http_response.status
|
95
|
+
response_content = http_response.body
|
96
|
+
unless status_code == 200
|
97
|
+
error_model = JSON.load(response_content)
|
98
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
99
|
+
end
|
100
|
+
|
101
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
102
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
103
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
104
|
+
# Deserialize Response
|
105
|
+
if status_code == 200
|
106
|
+
begin
|
107
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
108
|
+
result_mapper = Azure::Compute::Mgmt::V2020_12_01::Models::ListUsagesResult.mapper()
|
109
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
110
|
+
rescue Exception => e
|
111
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
result
|
116
|
+
end
|
117
|
+
|
118
|
+
promise.execute
|
119
|
+
end
|
120
|
+
|
121
|
+
#
|
122
|
+
# Gets, for the specified location, the current compute resource usage
|
123
|
+
# information as well as the limits for compute resources under the
|
124
|
+
# subscription.
|
125
|
+
#
|
126
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
127
|
+
# to List operation.
|
128
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
129
|
+
# will be added to the HTTP request.
|
130
|
+
#
|
131
|
+
# @return [ListUsagesResult] operation results.
|
132
|
+
#
|
133
|
+
def list_next(next_page_link, custom_headers:nil)
|
134
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
135
|
+
response.body unless response.nil?
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Gets, for the specified location, the current compute resource usage
|
140
|
+
# information as well as the limits for compute resources under the
|
141
|
+
# subscription.
|
142
|
+
#
|
143
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
144
|
+
# to List operation.
|
145
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
+
# will be added to the HTTP request.
|
147
|
+
#
|
148
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
149
|
+
#
|
150
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
151
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
152
|
+
end
|
153
|
+
|
154
|
+
#
|
155
|
+
# Gets, for the specified location, the current compute resource usage
|
156
|
+
# information as well as the limits for compute resources under the
|
157
|
+
# subscription.
|
158
|
+
#
|
159
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
160
|
+
# to List operation.
|
161
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
162
|
+
# to the HTTP request.
|
163
|
+
#
|
164
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
165
|
+
#
|
166
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
167
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
168
|
+
|
169
|
+
|
170
|
+
request_headers = {}
|
171
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
172
|
+
|
173
|
+
# Set Headers
|
174
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
175
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
176
|
+
path_template = '{nextLink}'
|
177
|
+
|
178
|
+
request_url = @base_url || @client.base_url
|
179
|
+
|
180
|
+
options = {
|
181
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
182
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
183
|
+
headers: request_headers.merge(custom_headers || {}),
|
184
|
+
base_url: request_url
|
185
|
+
}
|
186
|
+
promise = @client.make_request_async(:get, path_template, options)
|
187
|
+
|
188
|
+
promise = promise.then do |result|
|
189
|
+
http_response = result.response
|
190
|
+
status_code = http_response.status
|
191
|
+
response_content = http_response.body
|
192
|
+
unless status_code == 200
|
193
|
+
error_model = JSON.load(response_content)
|
194
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
195
|
+
end
|
196
|
+
|
197
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
198
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
199
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
200
|
+
# Deserialize Response
|
201
|
+
if status_code == 200
|
202
|
+
begin
|
203
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
204
|
+
result_mapper = Azure::Compute::Mgmt::V2020_12_01::Models::ListUsagesResult.mapper()
|
205
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
206
|
+
rescue Exception => e
|
207
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
result
|
212
|
+
end
|
213
|
+
|
214
|
+
promise.execute
|
215
|
+
end
|
216
|
+
|
217
|
+
#
|
218
|
+
# Gets, for the specified location, the current compute resource usage
|
219
|
+
# information as well as the limits for compute resources under the
|
220
|
+
# subscription.
|
221
|
+
#
|
222
|
+
# @param location [String] The location for which resource usage is queried.
|
223
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
224
|
+
# will be added to the HTTP request.
|
225
|
+
#
|
226
|
+
# @return [ListUsagesResult] which provide lazy access to pages of the
|
227
|
+
# response.
|
228
|
+
#
|
229
|
+
def list_as_lazy(location, custom_headers:nil)
|
230
|
+
response = list_async(location, custom_headers:custom_headers).value!
|
231
|
+
unless response.nil?
|
232
|
+
page = response.body
|
233
|
+
page.next_method = Proc.new do |next_page_link|
|
234
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
235
|
+
end
|
236
|
+
page
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
241
|
+
end
|
@@ -0,0 +1,360 @@
|
|
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::V2020_12_01
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class VirtualMachineExtensionImages
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineExtensionImages 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
|
+
# Gets a virtual machine extension image.
|
26
|
+
#
|
27
|
+
# @param location [String] The name of a supported Azure region.
|
28
|
+
# @param publisher_name [String]
|
29
|
+
# @param type [String]
|
30
|
+
# @param version [String]
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [VirtualMachineExtensionImage] operation results.
|
35
|
+
#
|
36
|
+
def get(location, publisher_name, type, version, custom_headers:nil)
|
37
|
+
response = get_async(location, publisher_name, type, version, custom_headers:custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets a virtual machine extension image.
|
43
|
+
#
|
44
|
+
# @param location [String] The name of a supported Azure region.
|
45
|
+
# @param publisher_name [String]
|
46
|
+
# @param type [String]
|
47
|
+
# @param version [String]
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def get_with_http_info(location, publisher_name, type, version, custom_headers:nil)
|
54
|
+
get_async(location, publisher_name, type, version, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Gets a virtual machine extension image.
|
59
|
+
#
|
60
|
+
# @param location [String] The name of a supported Azure region.
|
61
|
+
# @param publisher_name [String]
|
62
|
+
# @param type [String]
|
63
|
+
# @param version [String]
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def get_async(location, publisher_name, type, version, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
71
|
+
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
72
|
+
fail ArgumentError, 'type is nil' if type.nil?
|
73
|
+
fail ArgumentError, 'version is nil' if version.nil?
|
74
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
75
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
76
|
+
|
77
|
+
|
78
|
+
request_headers = {}
|
79
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
80
|
+
|
81
|
+
# Set Headers
|
82
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
83
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
84
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}'
|
85
|
+
|
86
|
+
request_url = @base_url || @client.base_url
|
87
|
+
|
88
|
+
options = {
|
89
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
90
|
+
path_params: {'location' => location,'publisherName' => publisher_name,'type' => type,'version' => version,'subscriptionId' => @client.subscription_id},
|
91
|
+
query_params: {'api-version' => @client.api_version},
|
92
|
+
headers: request_headers.merge(custom_headers || {}),
|
93
|
+
base_url: request_url
|
94
|
+
}
|
95
|
+
promise = @client.make_request_async(:get, path_template, options)
|
96
|
+
|
97
|
+
promise = promise.then do |result|
|
98
|
+
http_response = result.response
|
99
|
+
status_code = http_response.status
|
100
|
+
response_content = http_response.body
|
101
|
+
unless status_code == 200
|
102
|
+
error_model = JSON.load(response_content)
|
103
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
104
|
+
end
|
105
|
+
|
106
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
107
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
108
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
109
|
+
# Deserialize Response
|
110
|
+
if status_code == 200
|
111
|
+
begin
|
112
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
113
|
+
result_mapper = Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineExtensionImage.mapper()
|
114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
115
|
+
rescue Exception => e
|
116
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
result
|
121
|
+
end
|
122
|
+
|
123
|
+
promise.execute
|
124
|
+
end
|
125
|
+
|
126
|
+
#
|
127
|
+
# Gets a list of virtual machine extension image types.
|
128
|
+
#
|
129
|
+
# @param location [String] The name of a supported Azure region.
|
130
|
+
# @param publisher_name [String]
|
131
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
132
|
+
# will be added to the HTTP request.
|
133
|
+
#
|
134
|
+
# @return [Array] operation results.
|
135
|
+
#
|
136
|
+
def list_types(location, publisher_name, custom_headers:nil)
|
137
|
+
response = list_types_async(location, publisher_name, custom_headers:custom_headers).value!
|
138
|
+
response.body unless response.nil?
|
139
|
+
end
|
140
|
+
|
141
|
+
#
|
142
|
+
# Gets a list of virtual machine extension image types.
|
143
|
+
#
|
144
|
+
# @param location [String] The name of a supported Azure region.
|
145
|
+
# @param publisher_name [String]
|
146
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
147
|
+
# will be added to the HTTP request.
|
148
|
+
#
|
149
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
150
|
+
#
|
151
|
+
def list_types_with_http_info(location, publisher_name, custom_headers:nil)
|
152
|
+
list_types_async(location, publisher_name, custom_headers:custom_headers).value!
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# Gets a list of virtual machine extension image types.
|
157
|
+
#
|
158
|
+
# @param location [String] The name of a supported Azure region.
|
159
|
+
# @param publisher_name [String]
|
160
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
161
|
+
# to the HTTP request.
|
162
|
+
#
|
163
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
164
|
+
#
|
165
|
+
def list_types_async(location, publisher_name, custom_headers:nil)
|
166
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
167
|
+
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
168
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
169
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
170
|
+
|
171
|
+
|
172
|
+
request_headers = {}
|
173
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
174
|
+
|
175
|
+
# Set Headers
|
176
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
177
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
178
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types'
|
179
|
+
|
180
|
+
request_url = @base_url || @client.base_url
|
181
|
+
|
182
|
+
options = {
|
183
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
184
|
+
path_params: {'location' => location,'publisherName' => publisher_name,'subscriptionId' => @client.subscription_id},
|
185
|
+
query_params: {'api-version' => @client.api_version},
|
186
|
+
headers: request_headers.merge(custom_headers || {}),
|
187
|
+
base_url: request_url
|
188
|
+
}
|
189
|
+
promise = @client.make_request_async(:get, path_template, options)
|
190
|
+
|
191
|
+
promise = promise.then do |result|
|
192
|
+
http_response = result.response
|
193
|
+
status_code = http_response.status
|
194
|
+
response_content = http_response.body
|
195
|
+
unless status_code == 200
|
196
|
+
error_model = JSON.load(response_content)
|
197
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
198
|
+
end
|
199
|
+
|
200
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
201
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
202
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
203
|
+
# Deserialize Response
|
204
|
+
if status_code == 200
|
205
|
+
begin
|
206
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
207
|
+
result_mapper = {
|
208
|
+
client_side_validation: true,
|
209
|
+
required: false,
|
210
|
+
serialized_name: 'parsed_response',
|
211
|
+
type: {
|
212
|
+
name: 'Sequence',
|
213
|
+
element: {
|
214
|
+
client_side_validation: true,
|
215
|
+
required: false,
|
216
|
+
serialized_name: 'VirtualMachineExtensionImageElementType',
|
217
|
+
type: {
|
218
|
+
name: 'Composite',
|
219
|
+
class_name: 'VirtualMachineExtensionImage'
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
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
|
+
# Gets a list of virtual machine extension image versions.
|
238
|
+
#
|
239
|
+
# @param location [String] The name of a supported Azure region.
|
240
|
+
# @param publisher_name [String]
|
241
|
+
# @param type [String]
|
242
|
+
# @param filter [String] The filter to apply on the operation.
|
243
|
+
# @param top [Integer]
|
244
|
+
# @param orderby [String]
|
245
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
246
|
+
# will be added to the HTTP request.
|
247
|
+
#
|
248
|
+
# @return [Array] operation results.
|
249
|
+
#
|
250
|
+
def list_versions(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
251
|
+
response = list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
252
|
+
response.body unless response.nil?
|
253
|
+
end
|
254
|
+
|
255
|
+
#
|
256
|
+
# Gets a list of virtual machine extension image versions.
|
257
|
+
#
|
258
|
+
# @param location [String] The name of a supported Azure region.
|
259
|
+
# @param publisher_name [String]
|
260
|
+
# @param type [String]
|
261
|
+
# @param filter [String] The filter to apply on the operation.
|
262
|
+
# @param top [Integer]
|
263
|
+
# @param orderby [String]
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
266
|
+
#
|
267
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
268
|
+
#
|
269
|
+
def list_versions_with_http_info(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
270
|
+
list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
271
|
+
end
|
272
|
+
|
273
|
+
#
|
274
|
+
# Gets a list of virtual machine extension image versions.
|
275
|
+
#
|
276
|
+
# @param location [String] The name of a supported Azure region.
|
277
|
+
# @param publisher_name [String]
|
278
|
+
# @param type [String]
|
279
|
+
# @param filter [String] The filter to apply on the operation.
|
280
|
+
# @param top [Integer]
|
281
|
+
# @param orderby [String]
|
282
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
283
|
+
# to the HTTP request.
|
284
|
+
#
|
285
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
286
|
+
#
|
287
|
+
def list_versions_async(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
288
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
289
|
+
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
290
|
+
fail ArgumentError, 'type is nil' if type.nil?
|
291
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
292
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
293
|
+
|
294
|
+
|
295
|
+
request_headers = {}
|
296
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
297
|
+
|
298
|
+
# Set Headers
|
299
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
300
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
301
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions'
|
302
|
+
|
303
|
+
request_url = @base_url || @client.base_url
|
304
|
+
|
305
|
+
options = {
|
306
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
307
|
+
path_params: {'location' => location,'publisherName' => publisher_name,'type' => type,'subscriptionId' => @client.subscription_id},
|
308
|
+
query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
309
|
+
headers: request_headers.merge(custom_headers || {}),
|
310
|
+
base_url: request_url
|
311
|
+
}
|
312
|
+
promise = @client.make_request_async(:get, path_template, options)
|
313
|
+
|
314
|
+
promise = promise.then do |result|
|
315
|
+
http_response = result.response
|
316
|
+
status_code = http_response.status
|
317
|
+
response_content = http_response.body
|
318
|
+
unless status_code == 200
|
319
|
+
error_model = JSON.load(response_content)
|
320
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
321
|
+
end
|
322
|
+
|
323
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
324
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
325
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
326
|
+
# Deserialize Response
|
327
|
+
if status_code == 200
|
328
|
+
begin
|
329
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
330
|
+
result_mapper = {
|
331
|
+
client_side_validation: true,
|
332
|
+
required: false,
|
333
|
+
serialized_name: 'parsed_response',
|
334
|
+
type: {
|
335
|
+
name: 'Sequence',
|
336
|
+
element: {
|
337
|
+
client_side_validation: true,
|
338
|
+
required: false,
|
339
|
+
serialized_name: 'VirtualMachineExtensionImageElementType',
|
340
|
+
type: {
|
341
|
+
name: 'Composite',
|
342
|
+
class_name: 'VirtualMachineExtensionImage'
|
343
|
+
}
|
344
|
+
}
|
345
|
+
}
|
346
|
+
}
|
347
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
348
|
+
rescue Exception => e
|
349
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
result
|
354
|
+
end
|
355
|
+
|
356
|
+
promise.execute
|
357
|
+
end
|
358
|
+
|
359
|
+
end
|
360
|
+
end
|