azure_mgmt_compute 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute.rb +131 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +495 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +163 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_error.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/api_error_base.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/availability_set.rb +137 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
- data/lib/{generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb → 2015-06-15/generated/azure_mgmt_compute/models/boot_diagnostics.rb} +11 -12
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/caching_types.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/component_names.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/hardware_profile.rb +58 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/inner_error.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/instance_view_status.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/instance_view_types.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/list_usages_result.rb +84 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/operating_system_types.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/operation_status_response.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/osdisk_image.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/protocol_types.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/resource.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/setting_names.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/status_level_types.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/sub_resource.rb +44 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/usage.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/usage_name.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine.rb} +93 -69
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_extension_image.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_image.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service_list_result.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb} +13 -13
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +134 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +98 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +85 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +86 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +247 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +85 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
- data/lib/{generated/azure_mgmt_compute/models/container_service_vmsize_types.rb → 2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb} +13 -8
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/usage_operations.rb +5 -5
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/version.rb +2 -2
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_extensions.rb +14 -14
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_images.rb +12 -12
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1285 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2182 -0
- data/lib/{generated → 2015-06-15/generated}/azure_mgmt_compute/virtual_machine_sizes.rb +4 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +1839 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute.rb +134 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +495 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +163 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set.rb +137 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +61 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/list_usages_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service_custom_profile.rb → 2016-03-30/generated/azure_mgmt_compute/models/osdisk_image.rb} +13 -11
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/resource.rb +94 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/resource_identity_type.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/{generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb → 2016-03-30/generated/azure_mgmt_compute/models/ssh_configuration.rb} +11 -11
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/sub_resource.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +239 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_identity.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +147 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +259 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
- data/lib/{generated → 2016-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +77 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +234 -0
- data/lib/{generated/azure_mgmt_compute/module_definition.rb → 2016-03-30/generated/azure_mgmt_compute/version.rb} +3 -3
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1285 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2182 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +1839 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute.rb +165 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +495 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +175 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +1272 -0
- data/lib/{generated/azure_mgmt_compute/container_services.rb → 2016-04-30-preview/generated/azure_mgmt_compute/images.rb} +235 -347
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/access_level.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/access_uri.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/additional_unattend_content.rb +87 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set.rb +158 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/creation_data.rb +94 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk.rb +125 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk_image.rb +47 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/diagnostics_profile.rb +47 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk.rb +174 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_list.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/disk_update.rb +109 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb +72 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/grant_access_data.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/hardware_profile.rb +61 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image.rb +113 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_data_disk.rb +99 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_disk_reference.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_list_result.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_osdisk.rb +113 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_reference.rb +83 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_storage_profile.rb +63 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/list_usages_result.rb +96 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/network_profile.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk.rb +138 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osprofile.rb +119 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource.rb +94 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource_identity_type.rb +15 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/resource_update.rb +51 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot.rb +174 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_list.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb +109 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/source_vault.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +46 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_mode.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine.rb +239 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +70 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +95 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +170 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +101 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +125 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +72 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +96 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +47 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +123 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +74 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +259 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +153 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +97 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +77 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/win_rmlistener.rb +57 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/windows_configuration.rb +99 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +1272 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +234 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/version.rb +8 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +347 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1432 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2323 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +1976 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute.rb +210 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/availability_sets.rb +18 -18
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/compute_management_client.rb +7 -7
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/disks.rb +38 -38
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/images.rb +23 -23
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/access_level.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/access_uri.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/boot_diagnostics.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/creation_data.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/data_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/data_disk_image.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_create_option.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_encryption_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_list.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_sku.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/disk_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/encryption_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/grant_access_data.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/hardware_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_data_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_list_result.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_osdisk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/image_storage_profile.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/ipversion.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_and_key_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/linux_configuration.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/list_usages_result.rb +96 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/maintenance_redeploy_status.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/network_interface_reference.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/network_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/operating_system_state_types.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/osdisk.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/osprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/pass_names.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/plan.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/purchase_plan.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource.rb +94 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource_identity_type.rb +15 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capacity.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_costs.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_skus_result.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/resource_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_policy.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_document.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_document_base.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_input.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_input_parameter.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_list_result.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_parameter_definition.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/run_command_result.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/sku.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot_list.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/snapshot_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/storage_account_types.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/storage_profile.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/sub_resource.rb +45 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/sub_resource_read_only.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/update_resource.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/upgrade_mode.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/vault_certificate.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_health_status.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +70 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +95 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +72 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +96 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +98 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +97 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_size.rb +99 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/virtual_machine_size_types.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/models/windows_configuration.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/resource_skus.rb +6 -6
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/snapshots.rb +38 -38
- data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +234 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/version.rb +8 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_extension_images.rb +9 -9
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +444 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +577 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_run_commands.rb +9 -9
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +19 -19
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +13 -13
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +40 -40
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machine_scale_sets.rb +75 -75
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +115 -0
- data/lib/{generated → 2017-03-30/generated}/azure_mgmt_compute/virtual_machines.rb +70 -70
- data/lib/azure_mgmt_compute.rb +6 -1
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/compute_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/compute_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/compute_profile_module.rb +740 -0
- data/lib/profiles/v2017_03_09/compute_module_definition.rb +9 -0
- data/lib/profiles/v2017_03_09/compute_v2017_03_09_profile_client.rb +33 -0
- data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +450 -0
- data/lib/version.rb +7 -0
- metadata +560 -205
- data/lib/generated/azure_mgmt_compute.rb +0 -226
- data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +0 -107
- data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +0 -47
- data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +0 -59
- data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +0 -68
- data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +0 -48
- data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb +0 -18
- data/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb +0 -56
- data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +0 -46
- data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +0 -60
@@ -0,0 +1,444 @@
|
|
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::V2016_04_30_preview
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class VirtualMachineExtensions
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineExtensions 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 the extension.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
29
|
+
# should be create or updated.
|
30
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
31
|
+
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
32
|
+
# the Create Virtual Machine 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 [VirtualMachineExtension] operation results.
|
37
|
+
#
|
38
|
+
def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
39
|
+
response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, 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_name [String] The name of the virtual machine where the extension
|
46
|
+
# should be create or updated.
|
47
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
48
|
+
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
49
|
+
# the Create Virtual Machine 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_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
57
|
+
# Send request
|
58
|
+
promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, 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::V2016_04_30_preview::Models::VirtualMachineExtension.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_name [String] The name of the virtual machine where the extension
|
79
|
+
# should be deleted.
|
80
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
81
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
82
|
+
# will be added to the HTTP request.
|
83
|
+
#
|
84
|
+
# @return [OperationStatusResponse] operation results.
|
85
|
+
#
|
86
|
+
def delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
87
|
+
response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value!
|
88
|
+
response.body unless response.nil?
|
89
|
+
end
|
90
|
+
|
91
|
+
#
|
92
|
+
# @param resource_group_name [String] The name of the resource group.
|
93
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
94
|
+
# should be deleted.
|
95
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
96
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
97
|
+
# will be added to the HTTP request.
|
98
|
+
#
|
99
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
100
|
+
# response.
|
101
|
+
#
|
102
|
+
def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
103
|
+
# Send request
|
104
|
+
promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers)
|
105
|
+
|
106
|
+
promise = promise.then do |response|
|
107
|
+
# Defining deserialization method.
|
108
|
+
deserialize_method = lambda do |parsed_response|
|
109
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::OperationStatusResponse.mapper()
|
110
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
111
|
+
end
|
112
|
+
|
113
|
+
# Waiting for response.
|
114
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
115
|
+
end
|
116
|
+
|
117
|
+
promise
|
118
|
+
end
|
119
|
+
|
120
|
+
#
|
121
|
+
# The operation to get the extension.
|
122
|
+
#
|
123
|
+
# @param resource_group_name [String] The name of the resource group.
|
124
|
+
# @param vm_name [String] The name of the virtual machine containing the
|
125
|
+
# extension.
|
126
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
127
|
+
# @param expand [String] The expand expression to apply on the operation.
|
128
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
129
|
+
# will be added to the HTTP request.
|
130
|
+
#
|
131
|
+
# @return [VirtualMachineExtension] operation results.
|
132
|
+
#
|
133
|
+
def get(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil)
|
134
|
+
response = get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value!
|
135
|
+
response.body unless response.nil?
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# The operation to get the extension.
|
140
|
+
#
|
141
|
+
# @param resource_group_name [String] The name of the resource group.
|
142
|
+
# @param vm_name [String] The name of the virtual machine containing the
|
143
|
+
# extension.
|
144
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
145
|
+
# @param expand [String] The expand expression to apply on the operation.
|
146
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
147
|
+
# will be added to the HTTP request.
|
148
|
+
#
|
149
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
150
|
+
#
|
151
|
+
def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil)
|
152
|
+
get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value!
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# The operation to get the extension.
|
157
|
+
#
|
158
|
+
# @param resource_group_name [String] The name of the resource group.
|
159
|
+
# @param vm_name [String] The name of the virtual machine containing the
|
160
|
+
# extension.
|
161
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
162
|
+
# @param expand [String] The expand expression to apply on the operation.
|
163
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
164
|
+
# to the HTTP request.
|
165
|
+
#
|
166
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
167
|
+
#
|
168
|
+
def get_async(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil)
|
169
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
170
|
+
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
171
|
+
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
172
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
173
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
174
|
+
|
175
|
+
|
176
|
+
request_headers = {}
|
177
|
+
|
178
|
+
# Set Headers
|
179
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
180
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
181
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
|
182
|
+
|
183
|
+
request_url = @base_url || @client.base_url
|
184
|
+
|
185
|
+
options = {
|
186
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
187
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
|
188
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
189
|
+
headers: request_headers.merge(custom_headers || {}),
|
190
|
+
base_url: request_url
|
191
|
+
}
|
192
|
+
promise = @client.make_request_async(:get, path_template, options)
|
193
|
+
|
194
|
+
promise = promise.then do |result|
|
195
|
+
http_response = result.response
|
196
|
+
status_code = http_response.status
|
197
|
+
response_content = http_response.body
|
198
|
+
unless status_code == 200
|
199
|
+
error_model = JSON.load(response_content)
|
200
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
201
|
+
end
|
202
|
+
|
203
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
204
|
+
# Deserialize Response
|
205
|
+
if status_code == 200
|
206
|
+
begin
|
207
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
208
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::VirtualMachineExtension.mapper()
|
209
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
210
|
+
rescue Exception => e
|
211
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
result
|
216
|
+
end
|
217
|
+
|
218
|
+
promise.execute
|
219
|
+
end
|
220
|
+
|
221
|
+
#
|
222
|
+
# The operation to create or update the extension.
|
223
|
+
#
|
224
|
+
# @param resource_group_name [String] The name of the resource group.
|
225
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
226
|
+
# should be create or updated.
|
227
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
228
|
+
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
229
|
+
# the Create Virtual Machine Extension operation.
|
230
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
231
|
+
# will be added to the HTTP request.
|
232
|
+
#
|
233
|
+
# @return [VirtualMachineExtension] operation results.
|
234
|
+
#
|
235
|
+
def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
236
|
+
response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value!
|
237
|
+
response.body unless response.nil?
|
238
|
+
end
|
239
|
+
|
240
|
+
#
|
241
|
+
# The operation to create or update the extension.
|
242
|
+
#
|
243
|
+
# @param resource_group_name [String] The name of the resource group.
|
244
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
245
|
+
# should be create or updated.
|
246
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
247
|
+
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
248
|
+
# the Create Virtual Machine Extension operation.
|
249
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
250
|
+
# will be added to the HTTP request.
|
251
|
+
#
|
252
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
253
|
+
#
|
254
|
+
def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
255
|
+
begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value!
|
256
|
+
end
|
257
|
+
|
258
|
+
#
|
259
|
+
# The operation to create or update the extension.
|
260
|
+
#
|
261
|
+
# @param resource_group_name [String] The name of the resource group.
|
262
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
263
|
+
# should be create or updated.
|
264
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
265
|
+
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
266
|
+
# the Create Virtual Machine Extension operation.
|
267
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
268
|
+
# to the HTTP request.
|
269
|
+
#
|
270
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
271
|
+
#
|
272
|
+
def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
273
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
274
|
+
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
275
|
+
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
276
|
+
fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
|
277
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
278
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
279
|
+
|
280
|
+
|
281
|
+
request_headers = {}
|
282
|
+
|
283
|
+
# Set Headers
|
284
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
285
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
286
|
+
|
287
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
288
|
+
|
289
|
+
# Serialize Request
|
290
|
+
request_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::VirtualMachineExtension.mapper()
|
291
|
+
request_content = @client.serialize(request_mapper, extension_parameters)
|
292
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
293
|
+
|
294
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
|
295
|
+
|
296
|
+
request_url = @base_url || @client.base_url
|
297
|
+
|
298
|
+
options = {
|
299
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
300
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
|
301
|
+
query_params: {'api-version' => @client.api_version},
|
302
|
+
body: request_content,
|
303
|
+
headers: request_headers.merge(custom_headers || {}),
|
304
|
+
base_url: request_url
|
305
|
+
}
|
306
|
+
promise = @client.make_request_async(:put, path_template, options)
|
307
|
+
|
308
|
+
promise = promise.then do |result|
|
309
|
+
http_response = result.response
|
310
|
+
status_code = http_response.status
|
311
|
+
response_content = http_response.body
|
312
|
+
unless status_code == 200 || status_code == 201
|
313
|
+
error_model = JSON.load(response_content)
|
314
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
315
|
+
end
|
316
|
+
|
317
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
318
|
+
# Deserialize Response
|
319
|
+
if status_code == 200
|
320
|
+
begin
|
321
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
322
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::VirtualMachineExtension.mapper()
|
323
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
324
|
+
rescue Exception => e
|
325
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
326
|
+
end
|
327
|
+
end
|
328
|
+
# Deserialize Response
|
329
|
+
if status_code == 201
|
330
|
+
begin
|
331
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
332
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::VirtualMachineExtension.mapper()
|
333
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
334
|
+
rescue Exception => e
|
335
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
result
|
340
|
+
end
|
341
|
+
|
342
|
+
promise.execute
|
343
|
+
end
|
344
|
+
|
345
|
+
#
|
346
|
+
# The operation to delete the extension.
|
347
|
+
#
|
348
|
+
# @param resource_group_name [String] The name of the resource group.
|
349
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
350
|
+
# should be deleted.
|
351
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
352
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
353
|
+
# will be added to the HTTP request.
|
354
|
+
#
|
355
|
+
# @return [OperationStatusResponse] operation results.
|
356
|
+
#
|
357
|
+
def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
358
|
+
response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value!
|
359
|
+
response.body unless response.nil?
|
360
|
+
end
|
361
|
+
|
362
|
+
#
|
363
|
+
# The operation to delete the extension.
|
364
|
+
#
|
365
|
+
# @param resource_group_name [String] The name of the resource group.
|
366
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
367
|
+
# should be deleted.
|
368
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
369
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
370
|
+
# will be added to the HTTP request.
|
371
|
+
#
|
372
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
373
|
+
#
|
374
|
+
def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
375
|
+
begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value!
|
376
|
+
end
|
377
|
+
|
378
|
+
#
|
379
|
+
# The operation to delete the extension.
|
380
|
+
#
|
381
|
+
# @param resource_group_name [String] The name of the resource group.
|
382
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
383
|
+
# should be deleted.
|
384
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
385
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
386
|
+
# to the HTTP request.
|
387
|
+
#
|
388
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
389
|
+
#
|
390
|
+
def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
391
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
392
|
+
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
393
|
+
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
394
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
395
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
396
|
+
|
397
|
+
|
398
|
+
request_headers = {}
|
399
|
+
|
400
|
+
# Set Headers
|
401
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
402
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
403
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
|
404
|
+
|
405
|
+
request_url = @base_url || @client.base_url
|
406
|
+
|
407
|
+
options = {
|
408
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
409
|
+
path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
|
410
|
+
query_params: {'api-version' => @client.api_version},
|
411
|
+
headers: request_headers.merge(custom_headers || {}),
|
412
|
+
base_url: request_url
|
413
|
+
}
|
414
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
415
|
+
|
416
|
+
promise = promise.then do |result|
|
417
|
+
http_response = result.response
|
418
|
+
status_code = http_response.status
|
419
|
+
response_content = http_response.body
|
420
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
421
|
+
error_model = JSON.load(response_content)
|
422
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
423
|
+
end
|
424
|
+
|
425
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
426
|
+
# Deserialize Response
|
427
|
+
if status_code == 200
|
428
|
+
begin
|
429
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
430
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::OperationStatusResponse.mapper()
|
431
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
432
|
+
rescue Exception => e
|
433
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
result
|
438
|
+
end
|
439
|
+
|
440
|
+
promise.execute
|
441
|
+
end
|
442
|
+
|
443
|
+
end
|
444
|
+
end
|
@@ -0,0 +1,577 @@
|
|
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::V2016_04_30_preview
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class VirtualMachineImages
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the VirtualMachineImages class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [ComputeManagementClient] reference to the ComputeManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets a virtual machine image.
|
26
|
+
#
|
27
|
+
# @param location [String] The name of a supported Azure region.
|
28
|
+
# @param publisher_name [String] A valid image publisher.
|
29
|
+
# @param offer [String] A valid image publisher offer.
|
30
|
+
# @param skus [String] A valid image SKU.
|
31
|
+
# @param version [String] A valid image SKU version.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [VirtualMachineImage] operation results.
|
36
|
+
#
|
37
|
+
def get(location, publisher_name, offer, skus, version, custom_headers = nil)
|
38
|
+
response = get_async(location, publisher_name, offer, skus, version, custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets a virtual machine image.
|
44
|
+
#
|
45
|
+
# @param location [String] The name of a supported Azure region.
|
46
|
+
# @param publisher_name [String] A valid image publisher.
|
47
|
+
# @param offer [String] A valid image publisher offer.
|
48
|
+
# @param skus [String] A valid image SKU.
|
49
|
+
# @param version [String] A valid image SKU version.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil)
|
56
|
+
get_async(location, publisher_name, offer, skus, version, custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Gets a virtual machine image.
|
61
|
+
#
|
62
|
+
# @param location [String] The name of a supported Azure region.
|
63
|
+
# @param publisher_name [String] A valid image publisher.
|
64
|
+
# @param offer [String] A valid image publisher offer.
|
65
|
+
# @param skus [String] A valid image SKU.
|
66
|
+
# @param version [String] A valid image SKU version.
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def get_async(location, publisher_name, offer, skus, version, custom_headers = nil)
|
73
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
74
|
+
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
75
|
+
fail ArgumentError, 'offer is nil' if offer.nil?
|
76
|
+
fail ArgumentError, 'skus is nil' if skus.nil?
|
77
|
+
fail ArgumentError, 'version is nil' if version.nil?
|
78
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
|
+
|
81
|
+
|
82
|
+
request_headers = {}
|
83
|
+
|
84
|
+
# Set Headers
|
85
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}'
|
88
|
+
|
89
|
+
request_url = @base_url || @client.base_url
|
90
|
+
|
91
|
+
options = {
|
92
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
93
|
+
path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'version' => version,'subscriptionId' => @client.subscription_id},
|
94
|
+
query_params: {'api-version' => @client.api_version},
|
95
|
+
headers: request_headers.merge(custom_headers || {}),
|
96
|
+
base_url: request_url
|
97
|
+
}
|
98
|
+
promise = @client.make_request_async(:get, path_template, options)
|
99
|
+
|
100
|
+
promise = promise.then do |result|
|
101
|
+
http_response = result.response
|
102
|
+
status_code = http_response.status
|
103
|
+
response_content = http_response.body
|
104
|
+
unless status_code == 200
|
105
|
+
error_model = JSON.load(response_content)
|
106
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
107
|
+
end
|
108
|
+
|
109
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
|
+
# Deserialize Response
|
111
|
+
if status_code == 200
|
112
|
+
begin
|
113
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::VirtualMachineImage.mapper()
|
115
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
|
+
rescue Exception => e
|
117
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
result
|
122
|
+
end
|
123
|
+
|
124
|
+
promise.execute
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# Gets a list of all virtual machine image versions for the specified location,
|
129
|
+
# publisher, offer, and SKU.
|
130
|
+
#
|
131
|
+
# @param location [String] The name of a supported Azure region.
|
132
|
+
# @param publisher_name [String] A valid image publisher.
|
133
|
+
# @param offer [String] A valid image publisher offer.
|
134
|
+
# @param skus [String] A valid image SKU.
|
135
|
+
# @param filter [String] The filter to apply on the operation.
|
136
|
+
# @param top [Integer]
|
137
|
+
# @param orderby [String]
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [Array] operation results.
|
142
|
+
#
|
143
|
+
def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
144
|
+
response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value!
|
145
|
+
response.body unless response.nil?
|
146
|
+
end
|
147
|
+
|
148
|
+
#
|
149
|
+
# Gets a list of all virtual machine image versions for the specified location,
|
150
|
+
# publisher, offer, and SKU.
|
151
|
+
#
|
152
|
+
# @param location [String] The name of a supported Azure region.
|
153
|
+
# @param publisher_name [String] A valid image publisher.
|
154
|
+
# @param offer [String] A valid image publisher offer.
|
155
|
+
# @param skus [String] A valid image SKU.
|
156
|
+
# @param filter [String] The filter to apply on the operation.
|
157
|
+
# @param top [Integer]
|
158
|
+
# @param orderby [String]
|
159
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
160
|
+
# will be added to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
163
|
+
#
|
164
|
+
def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
165
|
+
list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value!
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
# Gets a list of all virtual machine image versions for the specified location,
|
170
|
+
# publisher, offer, and SKU.
|
171
|
+
#
|
172
|
+
# @param location [String] The name of a supported Azure region.
|
173
|
+
# @param publisher_name [String] A valid image publisher.
|
174
|
+
# @param offer [String] A valid image publisher offer.
|
175
|
+
# @param skus [String] A valid image SKU.
|
176
|
+
# @param filter [String] The filter to apply on the operation.
|
177
|
+
# @param top [Integer]
|
178
|
+
# @param orderby [String]
|
179
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
180
|
+
# to the HTTP request.
|
181
|
+
#
|
182
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
|
+
#
|
184
|
+
def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
185
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
186
|
+
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
187
|
+
fail ArgumentError, 'offer is nil' if offer.nil?
|
188
|
+
fail ArgumentError, 'skus is nil' if skus.nil?
|
189
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
190
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
191
|
+
|
192
|
+
|
193
|
+
request_headers = {}
|
194
|
+
|
195
|
+
# Set Headers
|
196
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
197
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
198
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions'
|
199
|
+
|
200
|
+
request_url = @base_url || @client.base_url
|
201
|
+
|
202
|
+
options = {
|
203
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
204
|
+
path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'subscriptionId' => @client.subscription_id},
|
205
|
+
query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
206
|
+
headers: request_headers.merge(custom_headers || {}),
|
207
|
+
base_url: request_url
|
208
|
+
}
|
209
|
+
promise = @client.make_request_async(:get, path_template, options)
|
210
|
+
|
211
|
+
promise = promise.then do |result|
|
212
|
+
http_response = result.response
|
213
|
+
status_code = http_response.status
|
214
|
+
response_content = http_response.body
|
215
|
+
unless status_code == 200
|
216
|
+
error_model = JSON.load(response_content)
|
217
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
218
|
+
end
|
219
|
+
|
220
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
221
|
+
# Deserialize Response
|
222
|
+
if status_code == 200
|
223
|
+
begin
|
224
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
225
|
+
result_mapper = {
|
226
|
+
required: false,
|
227
|
+
serialized_name: 'parsed_response',
|
228
|
+
type: {
|
229
|
+
name: 'Sequence',
|
230
|
+
element: {
|
231
|
+
required: false,
|
232
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
233
|
+
type: {
|
234
|
+
name: 'Composite',
|
235
|
+
class_name: 'VirtualMachineImageResource'
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
241
|
+
rescue Exception => e
|
242
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
result
|
247
|
+
end
|
248
|
+
|
249
|
+
promise.execute
|
250
|
+
end
|
251
|
+
|
252
|
+
#
|
253
|
+
# Gets a list of virtual machine image offers for the specified location and
|
254
|
+
# publisher.
|
255
|
+
#
|
256
|
+
# @param location [String] The name of a supported Azure region.
|
257
|
+
# @param publisher_name [String] A valid image publisher.
|
258
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
259
|
+
# will be added to the HTTP request.
|
260
|
+
#
|
261
|
+
# @return [Array] operation results.
|
262
|
+
#
|
263
|
+
def list_offers(location, publisher_name, custom_headers = nil)
|
264
|
+
response = list_offers_async(location, publisher_name, custom_headers).value!
|
265
|
+
response.body unless response.nil?
|
266
|
+
end
|
267
|
+
|
268
|
+
#
|
269
|
+
# Gets a list of virtual machine image offers for the specified location and
|
270
|
+
# publisher.
|
271
|
+
#
|
272
|
+
# @param location [String] The name of a supported Azure region.
|
273
|
+
# @param publisher_name [String] A valid image publisher.
|
274
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
275
|
+
# will be added to the HTTP request.
|
276
|
+
#
|
277
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
278
|
+
#
|
279
|
+
def list_offers_with_http_info(location, publisher_name, custom_headers = nil)
|
280
|
+
list_offers_async(location, publisher_name, custom_headers).value!
|
281
|
+
end
|
282
|
+
|
283
|
+
#
|
284
|
+
# Gets a list of virtual machine image offers for the specified location and
|
285
|
+
# publisher.
|
286
|
+
#
|
287
|
+
# @param location [String] The name of a supported Azure region.
|
288
|
+
# @param publisher_name [String] A valid image publisher.
|
289
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
290
|
+
# to the HTTP request.
|
291
|
+
#
|
292
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
293
|
+
#
|
294
|
+
def list_offers_async(location, publisher_name, custom_headers = nil)
|
295
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
296
|
+
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
297
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
298
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
299
|
+
|
300
|
+
|
301
|
+
request_headers = {}
|
302
|
+
|
303
|
+
# Set Headers
|
304
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
305
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
306
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers'
|
307
|
+
|
308
|
+
request_url = @base_url || @client.base_url
|
309
|
+
|
310
|
+
options = {
|
311
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
312
|
+
path_params: {'location' => location,'publisherName' => publisher_name,'subscriptionId' => @client.subscription_id},
|
313
|
+
query_params: {'api-version' => @client.api_version},
|
314
|
+
headers: request_headers.merge(custom_headers || {}),
|
315
|
+
base_url: request_url
|
316
|
+
}
|
317
|
+
promise = @client.make_request_async(:get, path_template, options)
|
318
|
+
|
319
|
+
promise = promise.then do |result|
|
320
|
+
http_response = result.response
|
321
|
+
status_code = http_response.status
|
322
|
+
response_content = http_response.body
|
323
|
+
unless status_code == 200
|
324
|
+
error_model = JSON.load(response_content)
|
325
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
326
|
+
end
|
327
|
+
|
328
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
329
|
+
# Deserialize Response
|
330
|
+
if status_code == 200
|
331
|
+
begin
|
332
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
333
|
+
result_mapper = {
|
334
|
+
required: false,
|
335
|
+
serialized_name: 'parsed_response',
|
336
|
+
type: {
|
337
|
+
name: 'Sequence',
|
338
|
+
element: {
|
339
|
+
required: false,
|
340
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
341
|
+
type: {
|
342
|
+
name: 'Composite',
|
343
|
+
class_name: 'VirtualMachineImageResource'
|
344
|
+
}
|
345
|
+
}
|
346
|
+
}
|
347
|
+
}
|
348
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
349
|
+
rescue Exception => e
|
350
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
result
|
355
|
+
end
|
356
|
+
|
357
|
+
promise.execute
|
358
|
+
end
|
359
|
+
|
360
|
+
#
|
361
|
+
# Gets a list of virtual machine image publishers for the specified Azure
|
362
|
+
# location.
|
363
|
+
#
|
364
|
+
# @param location [String] The name of a supported Azure region.
|
365
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
|
+
# will be added to the HTTP request.
|
367
|
+
#
|
368
|
+
# @return [Array] operation results.
|
369
|
+
#
|
370
|
+
def list_publishers(location, custom_headers = nil)
|
371
|
+
response = list_publishers_async(location, custom_headers).value!
|
372
|
+
response.body unless response.nil?
|
373
|
+
end
|
374
|
+
|
375
|
+
#
|
376
|
+
# Gets a list of virtual machine image publishers for the specified Azure
|
377
|
+
# location.
|
378
|
+
#
|
379
|
+
# @param location [String] The name of a supported Azure region.
|
380
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
381
|
+
# will be added to the HTTP request.
|
382
|
+
#
|
383
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
384
|
+
#
|
385
|
+
def list_publishers_with_http_info(location, custom_headers = nil)
|
386
|
+
list_publishers_async(location, custom_headers).value!
|
387
|
+
end
|
388
|
+
|
389
|
+
#
|
390
|
+
# Gets a list of virtual machine image publishers for the specified Azure
|
391
|
+
# location.
|
392
|
+
#
|
393
|
+
# @param location [String] The name of a supported Azure region.
|
394
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
395
|
+
# to the HTTP request.
|
396
|
+
#
|
397
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
398
|
+
#
|
399
|
+
def list_publishers_async(location, custom_headers = nil)
|
400
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
401
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
402
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
403
|
+
|
404
|
+
|
405
|
+
request_headers = {}
|
406
|
+
|
407
|
+
# Set Headers
|
408
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
409
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
410
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers'
|
411
|
+
|
412
|
+
request_url = @base_url || @client.base_url
|
413
|
+
|
414
|
+
options = {
|
415
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
416
|
+
path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
|
417
|
+
query_params: {'api-version' => @client.api_version},
|
418
|
+
headers: request_headers.merge(custom_headers || {}),
|
419
|
+
base_url: request_url
|
420
|
+
}
|
421
|
+
promise = @client.make_request_async(:get, path_template, options)
|
422
|
+
|
423
|
+
promise = promise.then do |result|
|
424
|
+
http_response = result.response
|
425
|
+
status_code = http_response.status
|
426
|
+
response_content = http_response.body
|
427
|
+
unless status_code == 200
|
428
|
+
error_model = JSON.load(response_content)
|
429
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
430
|
+
end
|
431
|
+
|
432
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
433
|
+
# Deserialize Response
|
434
|
+
if status_code == 200
|
435
|
+
begin
|
436
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
437
|
+
result_mapper = {
|
438
|
+
required: false,
|
439
|
+
serialized_name: 'parsed_response',
|
440
|
+
type: {
|
441
|
+
name: 'Sequence',
|
442
|
+
element: {
|
443
|
+
required: false,
|
444
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
445
|
+
type: {
|
446
|
+
name: 'Composite',
|
447
|
+
class_name: 'VirtualMachineImageResource'
|
448
|
+
}
|
449
|
+
}
|
450
|
+
}
|
451
|
+
}
|
452
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
453
|
+
rescue Exception => e
|
454
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
result
|
459
|
+
end
|
460
|
+
|
461
|
+
promise.execute
|
462
|
+
end
|
463
|
+
|
464
|
+
#
|
465
|
+
# Gets a list of virtual machine image SKUs for the specified location,
|
466
|
+
# publisher, and offer.
|
467
|
+
#
|
468
|
+
# @param location [String] The name of a supported Azure region.
|
469
|
+
# @param publisher_name [String] A valid image publisher.
|
470
|
+
# @param offer [String] A valid image publisher offer.
|
471
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
472
|
+
# will be added to the HTTP request.
|
473
|
+
#
|
474
|
+
# @return [Array] operation results.
|
475
|
+
#
|
476
|
+
def list_skus(location, publisher_name, offer, custom_headers = nil)
|
477
|
+
response = list_skus_async(location, publisher_name, offer, custom_headers).value!
|
478
|
+
response.body unless response.nil?
|
479
|
+
end
|
480
|
+
|
481
|
+
#
|
482
|
+
# Gets a list of virtual machine image SKUs for the specified location,
|
483
|
+
# publisher, and offer.
|
484
|
+
#
|
485
|
+
# @param location [String] The name of a supported Azure region.
|
486
|
+
# @param publisher_name [String] A valid image publisher.
|
487
|
+
# @param offer [String] A valid image publisher offer.
|
488
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
489
|
+
# will be added to the HTTP request.
|
490
|
+
#
|
491
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
492
|
+
#
|
493
|
+
def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil)
|
494
|
+
list_skus_async(location, publisher_name, offer, custom_headers).value!
|
495
|
+
end
|
496
|
+
|
497
|
+
#
|
498
|
+
# Gets a list of virtual machine image SKUs for the specified location,
|
499
|
+
# publisher, and offer.
|
500
|
+
#
|
501
|
+
# @param location [String] The name of a supported Azure region.
|
502
|
+
# @param publisher_name [String] A valid image publisher.
|
503
|
+
# @param offer [String] A valid image publisher offer.
|
504
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
505
|
+
# to the HTTP request.
|
506
|
+
#
|
507
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
508
|
+
#
|
509
|
+
def list_skus_async(location, publisher_name, offer, custom_headers = nil)
|
510
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
511
|
+
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
512
|
+
fail ArgumentError, 'offer is nil' if offer.nil?
|
513
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
514
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
515
|
+
|
516
|
+
|
517
|
+
request_headers = {}
|
518
|
+
|
519
|
+
# Set Headers
|
520
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
521
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
522
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus'
|
523
|
+
|
524
|
+
request_url = @base_url || @client.base_url
|
525
|
+
|
526
|
+
options = {
|
527
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
528
|
+
path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'subscriptionId' => @client.subscription_id},
|
529
|
+
query_params: {'api-version' => @client.api_version},
|
530
|
+
headers: request_headers.merge(custom_headers || {}),
|
531
|
+
base_url: request_url
|
532
|
+
}
|
533
|
+
promise = @client.make_request_async(:get, path_template, options)
|
534
|
+
|
535
|
+
promise = promise.then do |result|
|
536
|
+
http_response = result.response
|
537
|
+
status_code = http_response.status
|
538
|
+
response_content = http_response.body
|
539
|
+
unless status_code == 200
|
540
|
+
error_model = JSON.load(response_content)
|
541
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
542
|
+
end
|
543
|
+
|
544
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
545
|
+
# Deserialize Response
|
546
|
+
if status_code == 200
|
547
|
+
begin
|
548
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
549
|
+
result_mapper = {
|
550
|
+
required: false,
|
551
|
+
serialized_name: 'parsed_response',
|
552
|
+
type: {
|
553
|
+
name: 'Sequence',
|
554
|
+
element: {
|
555
|
+
required: false,
|
556
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
557
|
+
type: {
|
558
|
+
name: 'Composite',
|
559
|
+
class_name: 'VirtualMachineImageResource'
|
560
|
+
}
|
561
|
+
}
|
562
|
+
}
|
563
|
+
}
|
564
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
565
|
+
rescue Exception => e
|
566
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
570
|
+
result
|
571
|
+
end
|
572
|
+
|
573
|
+
promise.execute
|
574
|
+
end
|
575
|
+
|
576
|
+
end
|
577
|
+
end
|