azure_mgmt_compute 0.18.5 → 0.18.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/hardware_profile.rb +19 -18
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +22 -22
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_certificate.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/disk_sku.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +19 -18
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute.rb +75 -70
- data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/availability_set.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/availability_set_update.rb +14 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute.rb +93 -85
- data/lib/2018-06-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb +14 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +4 -4
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk.rb +6 -2
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb +2 -2
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +2 -2
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/target_region.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +20 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +31 -9
- data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +29 -25
- data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machines.rb +140 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute.rb +54 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/compute_management_client.rb +137 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/disks.rb +1274 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/access_level.rb +17 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/creation_data.rb +97 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk.rb +262 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_create_option.rb +21 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_sku.rb +62 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_state.rb +20 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_storage_account_types.rb +18 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_update.rb +134 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb +71 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb +62 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot.rb +202 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_sku.rb +61 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_update.rb +108 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/snapshots.rb +1274 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute.rb +220 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/availability_sets.rb +894 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/compute_management_client.rb +195 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/images.rb +959 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +64 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/data_disk.rb +159 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +49 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image.rb +126 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_data_disk.rb +126 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb +141 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_reference.rb +98 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_update.rb +89 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/osprofile.rb +183 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/sku.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine.rb +331 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +131 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +205 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +273 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +126 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +172 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +91 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +50 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +106 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +138 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +188 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +112 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +344 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +162 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +274 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/windows_configuration.rb +111 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/operations.rb +107 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/usage_operations.rb +237 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +354 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +691 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_images.rb +590 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +636 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +490 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1937 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2971 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +120 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machines.rb +2746 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute.rb +255 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/availability_sets.rb +894 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/compute_management_client.rb +207 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/galleries.rb +810 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/gallery_image_versions.rb +710 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/gallery_images.rb +666 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/images.rb +959 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/aggregated_replication_state.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +64 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/data_disk.rb +171 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +49 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disallowed.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery.rb +125 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb +63 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_identifier.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image.rb +236 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version.rb +140 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +125 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_list.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/host_caching.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image.rb +139 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_data_disk.rb +126 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_osdisk.rb +141 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_reference.rb +98 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/managed_artifact.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/osprofile.rb +183 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/regional_replication_status.rb +86 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_state.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_status.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_status_types.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource_range.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/sku.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_account_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine.rb +331 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +131 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +205 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +289 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +126 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +172 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +91 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +50 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +106 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +154 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +188 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +112 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +384 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +147 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +274 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/windows_configuration.rb +111 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/operations.rb +107 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/usage_operations.rb +237 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +354 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +691 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_images.rb +590 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +636 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +490 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1957 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3090 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +120 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machines.rb +2766 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute.rb +40 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/compute_management_client.rb +133 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku.rb +250 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capacity.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_costs.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_location_info.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restriction_info.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_zone_details.rb +78 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_skus_result.rb +100 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/resource_skus.rb +217 -0
- data/lib/azure_mgmt_compute.rb +4 -0
- data/lib/profiles/latest/modules/compute_profile_module.rb +722 -668
- data/lib/version.rb +1 -1
- metadata +489 -3
@@ -0,0 +1,316 @@
|
|
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_03_01
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class VirtualMachineRunCommands
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineRunCommands 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
|
+
# Lists all available run commands for a subscription in a location.
|
26
|
+
#
|
27
|
+
# @param location [String] The location upon which run commands is queried.
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
|
+
#
|
31
|
+
# @return [Array<RunCommandDocumentBase>] operation results.
|
32
|
+
#
|
33
|
+
def list(location, custom_headers:nil)
|
34
|
+
first_page = list_as_lazy(location, custom_headers:custom_headers)
|
35
|
+
first_page.get_all_items
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# Lists all available run commands for a subscription in a location.
|
40
|
+
#
|
41
|
+
# @param location [String] The location upon which run commands is queried.
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
|
+
#
|
47
|
+
def list_with_http_info(location, custom_headers:nil)
|
48
|
+
list_async(location, custom_headers:custom_headers).value!
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Lists all available run commands for a subscription in a location.
|
53
|
+
#
|
54
|
+
# @param location [String] The location upon which run commands is queried.
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
+
# to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
+
#
|
60
|
+
def list_async(location, custom_headers:nil)
|
61
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
62
|
+
fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
63
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
64
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
65
|
+
|
66
|
+
|
67
|
+
request_headers = {}
|
68
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
69
|
+
|
70
|
+
# Set Headers
|
71
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
72
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
73
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands'
|
74
|
+
|
75
|
+
request_url = @base_url || @client.base_url
|
76
|
+
|
77
|
+
options = {
|
78
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
79
|
+
path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
|
80
|
+
query_params: {'api-version' => @client.api_version},
|
81
|
+
headers: request_headers.merge(custom_headers || {}),
|
82
|
+
base_url: request_url
|
83
|
+
}
|
84
|
+
promise = @client.make_request_async(:get, path_template, options)
|
85
|
+
|
86
|
+
promise = promise.then do |result|
|
87
|
+
http_response = result.response
|
88
|
+
status_code = http_response.status
|
89
|
+
response_content = http_response.body
|
90
|
+
unless status_code == 200
|
91
|
+
error_model = JSON.load(response_content)
|
92
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
93
|
+
end
|
94
|
+
|
95
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
96
|
+
# Deserialize Response
|
97
|
+
if status_code == 200
|
98
|
+
begin
|
99
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
100
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::RunCommandListResult.mapper()
|
101
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
102
|
+
rescue Exception => e
|
103
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
result
|
108
|
+
end
|
109
|
+
|
110
|
+
promise.execute
|
111
|
+
end
|
112
|
+
|
113
|
+
#
|
114
|
+
# Gets specific run command for a subscription in a location.
|
115
|
+
#
|
116
|
+
# @param location [String] The location upon which run commands is queried.
|
117
|
+
# @param command_id [String] The command id.
|
118
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
119
|
+
# will be added to the HTTP request.
|
120
|
+
#
|
121
|
+
# @return [RunCommandDocument] operation results.
|
122
|
+
#
|
123
|
+
def get(location, command_id, custom_headers:nil)
|
124
|
+
response = get_async(location, command_id, custom_headers:custom_headers).value!
|
125
|
+
response.body unless response.nil?
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Gets specific run command for a subscription in a location.
|
130
|
+
#
|
131
|
+
# @param location [String] The location upon which run commands is queried.
|
132
|
+
# @param command_id [String] The command id.
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
137
|
+
#
|
138
|
+
def get_with_http_info(location, command_id, custom_headers:nil)
|
139
|
+
get_async(location, command_id, custom_headers:custom_headers).value!
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Gets specific run command for a subscription in a location.
|
144
|
+
#
|
145
|
+
# @param location [String] The location upon which run commands is queried.
|
146
|
+
# @param command_id [String] The command id.
|
147
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
148
|
+
# to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
151
|
+
#
|
152
|
+
def get_async(location, command_id, custom_headers:nil)
|
153
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
154
|
+
fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
155
|
+
fail ArgumentError, 'command_id is nil' if command_id.nil?
|
156
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
157
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
158
|
+
|
159
|
+
|
160
|
+
request_headers = {}
|
161
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
162
|
+
|
163
|
+
# Set Headers
|
164
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
165
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
166
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}'
|
167
|
+
|
168
|
+
request_url = @base_url || @client.base_url
|
169
|
+
|
170
|
+
options = {
|
171
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
172
|
+
path_params: {'location' => location,'commandId' => command_id,'subscriptionId' => @client.subscription_id},
|
173
|
+
query_params: {'api-version' => @client.api_version},
|
174
|
+
headers: request_headers.merge(custom_headers || {}),
|
175
|
+
base_url: request_url
|
176
|
+
}
|
177
|
+
promise = @client.make_request_async(:get, path_template, options)
|
178
|
+
|
179
|
+
promise = promise.then do |result|
|
180
|
+
http_response = result.response
|
181
|
+
status_code = http_response.status
|
182
|
+
response_content = http_response.body
|
183
|
+
unless status_code == 200
|
184
|
+
error_model = JSON.load(response_content)
|
185
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
186
|
+
end
|
187
|
+
|
188
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
189
|
+
# Deserialize Response
|
190
|
+
if status_code == 200
|
191
|
+
begin
|
192
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
193
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::RunCommandDocument.mapper()
|
194
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
195
|
+
rescue Exception => e
|
196
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
result
|
201
|
+
end
|
202
|
+
|
203
|
+
promise.execute
|
204
|
+
end
|
205
|
+
|
206
|
+
#
|
207
|
+
# Lists all available run commands for a subscription in a location.
|
208
|
+
#
|
209
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
210
|
+
# to List operation.
|
211
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
212
|
+
# will be added to the HTTP request.
|
213
|
+
#
|
214
|
+
# @return [RunCommandListResult] operation results.
|
215
|
+
#
|
216
|
+
def list_next(next_page_link, custom_headers:nil)
|
217
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
218
|
+
response.body unless response.nil?
|
219
|
+
end
|
220
|
+
|
221
|
+
#
|
222
|
+
# Lists all available run commands for a subscription in a location.
|
223
|
+
#
|
224
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
225
|
+
# to List operation.
|
226
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
227
|
+
# will be added to the HTTP request.
|
228
|
+
#
|
229
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
230
|
+
#
|
231
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
232
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
233
|
+
end
|
234
|
+
|
235
|
+
#
|
236
|
+
# Lists all available run commands for a subscription in a location.
|
237
|
+
#
|
238
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
239
|
+
# to List operation.
|
240
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
241
|
+
# to the HTTP request.
|
242
|
+
#
|
243
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
244
|
+
#
|
245
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
246
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
247
|
+
|
248
|
+
|
249
|
+
request_headers = {}
|
250
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
251
|
+
|
252
|
+
# Set Headers
|
253
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
254
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
255
|
+
path_template = '{nextLink}'
|
256
|
+
|
257
|
+
request_url = @base_url || @client.base_url
|
258
|
+
|
259
|
+
options = {
|
260
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
261
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
262
|
+
headers: request_headers.merge(custom_headers || {}),
|
263
|
+
base_url: request_url
|
264
|
+
}
|
265
|
+
promise = @client.make_request_async(:get, path_template, options)
|
266
|
+
|
267
|
+
promise = promise.then do |result|
|
268
|
+
http_response = result.response
|
269
|
+
status_code = http_response.status
|
270
|
+
response_content = http_response.body
|
271
|
+
unless status_code == 200
|
272
|
+
error_model = JSON.load(response_content)
|
273
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
274
|
+
end
|
275
|
+
|
276
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
277
|
+
# Deserialize Response
|
278
|
+
if status_code == 200
|
279
|
+
begin
|
280
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
281
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::RunCommandListResult.mapper()
|
282
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
283
|
+
rescue Exception => e
|
284
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
result
|
289
|
+
end
|
290
|
+
|
291
|
+
promise.execute
|
292
|
+
end
|
293
|
+
|
294
|
+
#
|
295
|
+
# Lists all available run commands for a subscription in a location.
|
296
|
+
#
|
297
|
+
# @param location [String] The location upon which run commands is queried.
|
298
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
299
|
+
# will be added to the HTTP request.
|
300
|
+
#
|
301
|
+
# @return [RunCommandListResult] which provide lazy access to pages of the
|
302
|
+
# response.
|
303
|
+
#
|
304
|
+
def list_as_lazy(location, custom_headers:nil)
|
305
|
+
response = list_async(location, custom_headers:custom_headers).value!
|
306
|
+
unless response.nil?
|
307
|
+
page = response.body
|
308
|
+
page.next_method = Proc.new do |next_page_link|
|
309
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
310
|
+
end
|
311
|
+
page
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
end
|
316
|
+
end
|
@@ -0,0 +1,636 @@
|
|
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_03_01
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class VirtualMachineScaleSetExtensions
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineScaleSetExtensions 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
|
+
# The operation to create or update an extension.
|
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 where the
|
29
|
+
# extension should be create or updated.
|
30
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
31
|
+
# @param extension_parameters [VirtualMachineScaleSetExtension] Parameters
|
32
|
+
# supplied to the Create VM scale set Extension operation.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [VirtualMachineScaleSetExtension] operation results.
|
37
|
+
#
|
38
|
+
def create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil)
|
39
|
+
response = create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group.
|
45
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
46
|
+
# extension should be create or updated.
|
47
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
48
|
+
# @param extension_parameters [VirtualMachineScaleSetExtension] Parameters
|
49
|
+
# supplied to the Create VM scale set Extension operation.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
54
|
+
# response.
|
55
|
+
#
|
56
|
+
def create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil)
|
57
|
+
# Send request
|
58
|
+
promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers)
|
59
|
+
|
60
|
+
promise = promise.then do |response|
|
61
|
+
# Defining deserialization method.
|
62
|
+
deserialize_method = lambda do |parsed_response|
|
63
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::VirtualMachineScaleSetExtension.mapper()
|
64
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
65
|
+
end
|
66
|
+
|
67
|
+
# Waiting for response.
|
68
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
69
|
+
end
|
70
|
+
|
71
|
+
promise
|
72
|
+
end
|
73
|
+
|
74
|
+
#
|
75
|
+
# The operation to delete the extension.
|
76
|
+
#
|
77
|
+
# @param resource_group_name [String] The name of the resource group.
|
78
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
79
|
+
# extension should be deleted.
|
80
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
81
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
82
|
+
# will be added to the HTTP request.
|
83
|
+
#
|
84
|
+
def delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil)
|
85
|
+
response = delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value!
|
86
|
+
nil
|
87
|
+
end
|
88
|
+
|
89
|
+
#
|
90
|
+
# @param resource_group_name [String] The name of the resource group.
|
91
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
92
|
+
# extension should be deleted.
|
93
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
94
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
95
|
+
# will be added to the HTTP request.
|
96
|
+
#
|
97
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
98
|
+
# response.
|
99
|
+
#
|
100
|
+
def delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil)
|
101
|
+
# Send request
|
102
|
+
promise = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers)
|
103
|
+
|
104
|
+
promise = promise.then do |response|
|
105
|
+
# Defining deserialization method.
|
106
|
+
deserialize_method = lambda do |parsed_response|
|
107
|
+
end
|
108
|
+
|
109
|
+
# Waiting for response.
|
110
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
111
|
+
end
|
112
|
+
|
113
|
+
promise
|
114
|
+
end
|
115
|
+
|
116
|
+
#
|
117
|
+
# The operation to get the extension.
|
118
|
+
#
|
119
|
+
# @param resource_group_name [String] The name of the resource group.
|
120
|
+
# @param vm_scale_set_name [String] The name of the VM scale set containing the
|
121
|
+
# extension.
|
122
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
123
|
+
# @param expand [String] The expand expression to apply on the operation.
|
124
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
125
|
+
# will be added to the HTTP request.
|
126
|
+
#
|
127
|
+
# @return [VirtualMachineScaleSetExtension] operation results.
|
128
|
+
#
|
129
|
+
def get(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil)
|
130
|
+
response = get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:expand, custom_headers:custom_headers).value!
|
131
|
+
response.body unless response.nil?
|
132
|
+
end
|
133
|
+
|
134
|
+
#
|
135
|
+
# The operation to get the extension.
|
136
|
+
#
|
137
|
+
# @param resource_group_name [String] The name of the resource group.
|
138
|
+
# @param vm_scale_set_name [String] The name of the VM scale set containing the
|
139
|
+
# extension.
|
140
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
141
|
+
# @param expand [String] The expand expression to apply on the operation.
|
142
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
|
+
# will be added to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
146
|
+
#
|
147
|
+
def get_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil)
|
148
|
+
get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:expand, custom_headers:custom_headers).value!
|
149
|
+
end
|
150
|
+
|
151
|
+
#
|
152
|
+
# The operation to get the extension.
|
153
|
+
#
|
154
|
+
# @param resource_group_name [String] The name of the resource group.
|
155
|
+
# @param vm_scale_set_name [String] The name of the VM scale set containing the
|
156
|
+
# extension.
|
157
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
158
|
+
# @param expand [String] The expand expression to apply on the operation.
|
159
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
160
|
+
# to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
163
|
+
#
|
164
|
+
def get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil)
|
165
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
166
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
167
|
+
fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'
|
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: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'vmssExtensionName' => vmss_extension_name,'subscriptionId' => @client.subscription_id},
|
185
|
+
query_params: {'$expand' => expand,'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
|
+
# Deserialize Response
|
202
|
+
if status_code == 200
|
203
|
+
begin
|
204
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
205
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::VirtualMachineScaleSetExtension.mapper()
|
206
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
207
|
+
rescue Exception => e
|
208
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
result
|
213
|
+
end
|
214
|
+
|
215
|
+
promise.execute
|
216
|
+
end
|
217
|
+
|
218
|
+
#
|
219
|
+
# Gets a list of all extensions in a VM scale set.
|
220
|
+
#
|
221
|
+
# @param resource_group_name [String] The name of the resource group.
|
222
|
+
# @param vm_scale_set_name [String] The name of the VM scale set containing the
|
223
|
+
# extension.
|
224
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
225
|
+
# will be added to the HTTP request.
|
226
|
+
#
|
227
|
+
# @return [Array<VirtualMachineScaleSetExtension>] operation results.
|
228
|
+
#
|
229
|
+
def list(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
230
|
+
first_page = list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
|
231
|
+
first_page.get_all_items
|
232
|
+
end
|
233
|
+
|
234
|
+
#
|
235
|
+
# Gets a list of all extensions in a VM scale set.
|
236
|
+
#
|
237
|
+
# @param resource_group_name [String] The name of the resource group.
|
238
|
+
# @param vm_scale_set_name [String] The name of the VM scale set containing the
|
239
|
+
# extension.
|
240
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
241
|
+
# will be added to the HTTP request.
|
242
|
+
#
|
243
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
244
|
+
#
|
245
|
+
def list_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
246
|
+
list_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
247
|
+
end
|
248
|
+
|
249
|
+
#
|
250
|
+
# Gets a list of all extensions in a VM scale set.
|
251
|
+
#
|
252
|
+
# @param resource_group_name [String] The name of the resource group.
|
253
|
+
# @param vm_scale_set_name [String] The name of the VM scale set containing the
|
254
|
+
# extension.
|
255
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
256
|
+
# to the HTTP request.
|
257
|
+
#
|
258
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
259
|
+
#
|
260
|
+
def list_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
261
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
262
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
263
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
264
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
265
|
+
|
266
|
+
|
267
|
+
request_headers = {}
|
268
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
269
|
+
|
270
|
+
# Set Headers
|
271
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
272
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
273
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions'
|
274
|
+
|
275
|
+
request_url = @base_url || @client.base_url
|
276
|
+
|
277
|
+
options = {
|
278
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
279
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
|
280
|
+
query_params: {'api-version' => @client.api_version},
|
281
|
+
headers: request_headers.merge(custom_headers || {}),
|
282
|
+
base_url: request_url
|
283
|
+
}
|
284
|
+
promise = @client.make_request_async(:get, path_template, options)
|
285
|
+
|
286
|
+
promise = promise.then do |result|
|
287
|
+
http_response = result.response
|
288
|
+
status_code = http_response.status
|
289
|
+
response_content = http_response.body
|
290
|
+
unless status_code == 200
|
291
|
+
error_model = JSON.load(response_content)
|
292
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
293
|
+
end
|
294
|
+
|
295
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
296
|
+
# Deserialize Response
|
297
|
+
if status_code == 200
|
298
|
+
begin
|
299
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
300
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::VirtualMachineScaleSetExtensionListResult.mapper()
|
301
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
302
|
+
rescue Exception => e
|
303
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
result
|
308
|
+
end
|
309
|
+
|
310
|
+
promise.execute
|
311
|
+
end
|
312
|
+
|
313
|
+
#
|
314
|
+
# The operation to create or update an extension.
|
315
|
+
#
|
316
|
+
# @param resource_group_name [String] The name of the resource group.
|
317
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
318
|
+
# extension should be create or updated.
|
319
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
320
|
+
# @param extension_parameters [VirtualMachineScaleSetExtension] Parameters
|
321
|
+
# supplied to the Create VM scale set Extension operation.
|
322
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
323
|
+
# will be added to the HTTP request.
|
324
|
+
#
|
325
|
+
# @return [VirtualMachineScaleSetExtension] operation results.
|
326
|
+
#
|
327
|
+
def begin_create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil)
|
328
|
+
response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value!
|
329
|
+
response.body unless response.nil?
|
330
|
+
end
|
331
|
+
|
332
|
+
#
|
333
|
+
# The operation to create or update an extension.
|
334
|
+
#
|
335
|
+
# @param resource_group_name [String] The name of the resource group.
|
336
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
337
|
+
# extension should be create or updated.
|
338
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
339
|
+
# @param extension_parameters [VirtualMachineScaleSetExtension] Parameters
|
340
|
+
# supplied to the Create VM scale set Extension operation.
|
341
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
342
|
+
# will be added to the HTTP request.
|
343
|
+
#
|
344
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
345
|
+
#
|
346
|
+
def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil)
|
347
|
+
begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value!
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# The operation to create or update an extension.
|
352
|
+
#
|
353
|
+
# @param resource_group_name [String] The name of the resource group.
|
354
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
355
|
+
# extension should be create or updated.
|
356
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
357
|
+
# @param extension_parameters [VirtualMachineScaleSetExtension] Parameters
|
358
|
+
# supplied to the Create VM scale set Extension operation.
|
359
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
360
|
+
# to the HTTP request.
|
361
|
+
#
|
362
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
363
|
+
#
|
364
|
+
def begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil)
|
365
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
366
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
367
|
+
fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil?
|
368
|
+
fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
|
369
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
370
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
371
|
+
|
372
|
+
|
373
|
+
request_headers = {}
|
374
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
375
|
+
|
376
|
+
# Set Headers
|
377
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
378
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
379
|
+
|
380
|
+
# Serialize Request
|
381
|
+
request_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::VirtualMachineScaleSetExtension.mapper()
|
382
|
+
request_content = @client.serialize(request_mapper, extension_parameters)
|
383
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
384
|
+
|
385
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'
|
386
|
+
|
387
|
+
request_url = @base_url || @client.base_url
|
388
|
+
|
389
|
+
options = {
|
390
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
391
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'vmssExtensionName' => vmss_extension_name,'subscriptionId' => @client.subscription_id},
|
392
|
+
query_params: {'api-version' => @client.api_version},
|
393
|
+
body: request_content,
|
394
|
+
headers: request_headers.merge(custom_headers || {}),
|
395
|
+
base_url: request_url
|
396
|
+
}
|
397
|
+
promise = @client.make_request_async(:put, path_template, options)
|
398
|
+
|
399
|
+
promise = promise.then do |result|
|
400
|
+
http_response = result.response
|
401
|
+
status_code = http_response.status
|
402
|
+
response_content = http_response.body
|
403
|
+
unless status_code == 200 || status_code == 201
|
404
|
+
error_model = JSON.load(response_content)
|
405
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
406
|
+
end
|
407
|
+
|
408
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
409
|
+
# Deserialize Response
|
410
|
+
if status_code == 200
|
411
|
+
begin
|
412
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
413
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::VirtualMachineScaleSetExtension.mapper()
|
414
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
415
|
+
rescue Exception => e
|
416
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
# Deserialize Response
|
420
|
+
if status_code == 201
|
421
|
+
begin
|
422
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
423
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::VirtualMachineScaleSetExtension.mapper()
|
424
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
425
|
+
rescue Exception => e
|
426
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
result
|
431
|
+
end
|
432
|
+
|
433
|
+
promise.execute
|
434
|
+
end
|
435
|
+
|
436
|
+
#
|
437
|
+
# The operation to delete the extension.
|
438
|
+
#
|
439
|
+
# @param resource_group_name [String] The name of the resource group.
|
440
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
441
|
+
# extension should be deleted.
|
442
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
443
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
444
|
+
# will be added to the HTTP request.
|
445
|
+
#
|
446
|
+
#
|
447
|
+
def begin_delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil)
|
448
|
+
response = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value!
|
449
|
+
nil
|
450
|
+
end
|
451
|
+
|
452
|
+
#
|
453
|
+
# The operation to delete the extension.
|
454
|
+
#
|
455
|
+
# @param resource_group_name [String] The name of the resource group.
|
456
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
457
|
+
# extension should be deleted.
|
458
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
459
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
460
|
+
# will be added to the HTTP request.
|
461
|
+
#
|
462
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
463
|
+
#
|
464
|
+
def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil)
|
465
|
+
begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value!
|
466
|
+
end
|
467
|
+
|
468
|
+
#
|
469
|
+
# The operation to delete the extension.
|
470
|
+
#
|
471
|
+
# @param resource_group_name [String] The name of the resource group.
|
472
|
+
# @param vm_scale_set_name [String] The name of the VM scale set where the
|
473
|
+
# extension should be deleted.
|
474
|
+
# @param vmss_extension_name [String] The name of the VM scale set extension.
|
475
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
476
|
+
# to the HTTP request.
|
477
|
+
#
|
478
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
479
|
+
#
|
480
|
+
def begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil)
|
481
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
482
|
+
fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
|
483
|
+
fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil?
|
484
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
485
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
486
|
+
|
487
|
+
|
488
|
+
request_headers = {}
|
489
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
490
|
+
|
491
|
+
# Set Headers
|
492
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
493
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
494
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'
|
495
|
+
|
496
|
+
request_url = @base_url || @client.base_url
|
497
|
+
|
498
|
+
options = {
|
499
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
500
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'vmssExtensionName' => vmss_extension_name,'subscriptionId' => @client.subscription_id},
|
501
|
+
query_params: {'api-version' => @client.api_version},
|
502
|
+
headers: request_headers.merge(custom_headers || {}),
|
503
|
+
base_url: request_url
|
504
|
+
}
|
505
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
506
|
+
|
507
|
+
promise = promise.then do |result|
|
508
|
+
http_response = result.response
|
509
|
+
status_code = http_response.status
|
510
|
+
response_content = http_response.body
|
511
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
512
|
+
error_model = JSON.load(response_content)
|
513
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
514
|
+
end
|
515
|
+
|
516
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
517
|
+
|
518
|
+
result
|
519
|
+
end
|
520
|
+
|
521
|
+
promise.execute
|
522
|
+
end
|
523
|
+
|
524
|
+
#
|
525
|
+
# Gets a list of all extensions in a VM scale set.
|
526
|
+
#
|
527
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
528
|
+
# to List operation.
|
529
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
530
|
+
# will be added to the HTTP request.
|
531
|
+
#
|
532
|
+
# @return [VirtualMachineScaleSetExtensionListResult] operation results.
|
533
|
+
#
|
534
|
+
def list_next(next_page_link, custom_headers:nil)
|
535
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
536
|
+
response.body unless response.nil?
|
537
|
+
end
|
538
|
+
|
539
|
+
#
|
540
|
+
# Gets a list of all extensions in a VM scale set.
|
541
|
+
#
|
542
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
543
|
+
# to List operation.
|
544
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
545
|
+
# will be added to the HTTP request.
|
546
|
+
#
|
547
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
548
|
+
#
|
549
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
550
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
551
|
+
end
|
552
|
+
|
553
|
+
#
|
554
|
+
# Gets a list of all extensions in a VM scale set.
|
555
|
+
#
|
556
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
557
|
+
# to List operation.
|
558
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
559
|
+
# to the HTTP request.
|
560
|
+
#
|
561
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
562
|
+
#
|
563
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
564
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
565
|
+
|
566
|
+
|
567
|
+
request_headers = {}
|
568
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
|
+
|
570
|
+
# Set Headers
|
571
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
572
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
573
|
+
path_template = '{nextLink}'
|
574
|
+
|
575
|
+
request_url = @base_url || @client.base_url
|
576
|
+
|
577
|
+
options = {
|
578
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
579
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
580
|
+
headers: request_headers.merge(custom_headers || {}),
|
581
|
+
base_url: request_url
|
582
|
+
}
|
583
|
+
promise = @client.make_request_async(:get, path_template, options)
|
584
|
+
|
585
|
+
promise = promise.then do |result|
|
586
|
+
http_response = result.response
|
587
|
+
status_code = http_response.status
|
588
|
+
response_content = http_response.body
|
589
|
+
unless status_code == 200
|
590
|
+
error_model = JSON.load(response_content)
|
591
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
592
|
+
end
|
593
|
+
|
594
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
595
|
+
# Deserialize Response
|
596
|
+
if status_code == 200
|
597
|
+
begin
|
598
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
599
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::VirtualMachineScaleSetExtensionListResult.mapper()
|
600
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
601
|
+
rescue Exception => e
|
602
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
result
|
607
|
+
end
|
608
|
+
|
609
|
+
promise.execute
|
610
|
+
end
|
611
|
+
|
612
|
+
#
|
613
|
+
# Gets a list of all extensions in a VM scale set.
|
614
|
+
#
|
615
|
+
# @param resource_group_name [String] The name of the resource group.
|
616
|
+
# @param vm_scale_set_name [String] The name of the VM scale set containing the
|
617
|
+
# extension.
|
618
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
619
|
+
# will be added to the HTTP request.
|
620
|
+
#
|
621
|
+
# @return [VirtualMachineScaleSetExtensionListResult] which provide lazy access
|
622
|
+
# to pages of the response.
|
623
|
+
#
|
624
|
+
def list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil)
|
625
|
+
response = list_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
|
626
|
+
unless response.nil?
|
627
|
+
page = response.body
|
628
|
+
page.next_method = Proc.new do |next_page_link|
|
629
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
630
|
+
end
|
631
|
+
page
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
635
|
+
end
|
636
|
+
end
|