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,9 @@
|
|
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 end
|
7
|
+
module Azure::Compute end
|
8
|
+
module Azure::Compute::Mgmt end
|
9
|
+
module Azure::Compute::Mgmt::V2016_04_30_preview end
|
@@ -0,0 +1,1272 @@
|
|
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 Snapshots
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Snapshots 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
|
+
# Creates or updates a snapshot.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
29
|
+
# subscription and resource group.
|
30
|
+
# @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
|
31
|
+
# disk operation.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Snapshot] operation results.
|
36
|
+
#
|
37
|
+
def create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
38
|
+
response = create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group.
|
44
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
45
|
+
# subscription and resource group.
|
46
|
+
# @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
|
47
|
+
# disk operation.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
52
|
+
# response.
|
53
|
+
#
|
54
|
+
def create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
55
|
+
# Send request
|
56
|
+
promise = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers)
|
57
|
+
|
58
|
+
promise = promise.then do |response|
|
59
|
+
# Defining deserialization method.
|
60
|
+
deserialize_method = lambda do |parsed_response|
|
61
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot.mapper()
|
62
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Waiting for response.
|
66
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
67
|
+
end
|
68
|
+
|
69
|
+
promise
|
70
|
+
end
|
71
|
+
|
72
|
+
#
|
73
|
+
# Updates (patches) a snapshot.
|
74
|
+
#
|
75
|
+
# @param resource_group_name [String] The name of the resource group.
|
76
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
77
|
+
# subscription and resource group.
|
78
|
+
# @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
|
79
|
+
# Patch snapshot operation.
|
80
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
81
|
+
# will be added to the HTTP request.
|
82
|
+
#
|
83
|
+
# @return [Snapshot] operation results.
|
84
|
+
#
|
85
|
+
def update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
86
|
+
response = update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
|
87
|
+
response.body unless response.nil?
|
88
|
+
end
|
89
|
+
|
90
|
+
#
|
91
|
+
# @param resource_group_name [String] The name of the resource group.
|
92
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
93
|
+
# subscription and resource group.
|
94
|
+
# @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
|
95
|
+
# Patch snapshot operation.
|
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 update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
103
|
+
# Send request
|
104
|
+
promise = begin_update_async(resource_group_name, snapshot_name, snapshot, 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::Snapshot.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
|
+
# Gets information about a snapshot.
|
122
|
+
#
|
123
|
+
# @param resource_group_name [String] The name of the resource group.
|
124
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
125
|
+
# subscription and resource group.
|
126
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
127
|
+
# will be added to the HTTP request.
|
128
|
+
#
|
129
|
+
# @return [Snapshot] operation results.
|
130
|
+
#
|
131
|
+
def get(resource_group_name, snapshot_name, custom_headers = nil)
|
132
|
+
response = get_async(resource_group_name, snapshot_name, custom_headers).value!
|
133
|
+
response.body unless response.nil?
|
134
|
+
end
|
135
|
+
|
136
|
+
#
|
137
|
+
# Gets information about a snapshot.
|
138
|
+
#
|
139
|
+
# @param resource_group_name [String] The name of the resource group.
|
140
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
141
|
+
# subscription and resource group.
|
142
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
|
+
# will be added to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
146
|
+
#
|
147
|
+
def get_with_http_info(resource_group_name, snapshot_name, custom_headers = nil)
|
148
|
+
get_async(resource_group_name, snapshot_name, custom_headers).value!
|
149
|
+
end
|
150
|
+
|
151
|
+
#
|
152
|
+
# Gets information about a snapshot.
|
153
|
+
#
|
154
|
+
# @param resource_group_name [String] The name of the resource group.
|
155
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
156
|
+
# subscription and resource group.
|
157
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
158
|
+
# to the HTTP request.
|
159
|
+
#
|
160
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
161
|
+
#
|
162
|
+
def get_async(resource_group_name, snapshot_name, custom_headers = nil)
|
163
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
164
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
165
|
+
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
166
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
167
|
+
|
168
|
+
|
169
|
+
request_headers = {}
|
170
|
+
|
171
|
+
# Set Headers
|
172
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
173
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
174
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'
|
175
|
+
|
176
|
+
request_url = @base_url || @client.base_url
|
177
|
+
|
178
|
+
options = {
|
179
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
180
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'snapshotName' => snapshot_name},
|
181
|
+
query_params: {'api-version' => @client.api_version},
|
182
|
+
headers: request_headers.merge(custom_headers || {}),
|
183
|
+
base_url: request_url
|
184
|
+
}
|
185
|
+
promise = @client.make_request_async(:get, path_template, options)
|
186
|
+
|
187
|
+
promise = promise.then do |result|
|
188
|
+
http_response = result.response
|
189
|
+
status_code = http_response.status
|
190
|
+
response_content = http_response.body
|
191
|
+
unless status_code == 200
|
192
|
+
error_model = JSON.load(response_content)
|
193
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
194
|
+
end
|
195
|
+
|
196
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
197
|
+
# Deserialize Response
|
198
|
+
if status_code == 200
|
199
|
+
begin
|
200
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
201
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot.mapper()
|
202
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
203
|
+
rescue Exception => e
|
204
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
result
|
209
|
+
end
|
210
|
+
|
211
|
+
promise.execute
|
212
|
+
end
|
213
|
+
|
214
|
+
#
|
215
|
+
# Deletes a snapshot.
|
216
|
+
#
|
217
|
+
# @param resource_group_name [String] The name of the resource group.
|
218
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
219
|
+
# subscription and resource group.
|
220
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
221
|
+
# will be added to the HTTP request.
|
222
|
+
#
|
223
|
+
# @return [OperationStatusResponse] operation results.
|
224
|
+
#
|
225
|
+
def delete(resource_group_name, snapshot_name, custom_headers = nil)
|
226
|
+
response = delete_async(resource_group_name, snapshot_name, custom_headers).value!
|
227
|
+
response.body unless response.nil?
|
228
|
+
end
|
229
|
+
|
230
|
+
#
|
231
|
+
# @param resource_group_name [String] The name of the resource group.
|
232
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
233
|
+
# subscription and resource group.
|
234
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
235
|
+
# will be added to the HTTP request.
|
236
|
+
#
|
237
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
238
|
+
# response.
|
239
|
+
#
|
240
|
+
def delete_async(resource_group_name, snapshot_name, custom_headers = nil)
|
241
|
+
# Send request
|
242
|
+
promise = begin_delete_async(resource_group_name, snapshot_name, custom_headers)
|
243
|
+
|
244
|
+
promise = promise.then do |response|
|
245
|
+
# Defining deserialization method.
|
246
|
+
deserialize_method = lambda do |parsed_response|
|
247
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::OperationStatusResponse.mapper()
|
248
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
249
|
+
end
|
250
|
+
|
251
|
+
# Waiting for response.
|
252
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
253
|
+
end
|
254
|
+
|
255
|
+
promise
|
256
|
+
end
|
257
|
+
|
258
|
+
#
|
259
|
+
# Lists snapshots under a resource group.
|
260
|
+
#
|
261
|
+
# @param resource_group_name [String] The name of the resource group.
|
262
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
263
|
+
# will be added to the HTTP request.
|
264
|
+
#
|
265
|
+
# @return [Array<Snapshot>] operation results.
|
266
|
+
#
|
267
|
+
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
268
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
269
|
+
first_page.get_all_items
|
270
|
+
end
|
271
|
+
|
272
|
+
#
|
273
|
+
# Lists snapshots under a resource group.
|
274
|
+
#
|
275
|
+
# @param resource_group_name [String] The name of the resource group.
|
276
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
277
|
+
# will be added to the HTTP request.
|
278
|
+
#
|
279
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
280
|
+
#
|
281
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
282
|
+
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
283
|
+
end
|
284
|
+
|
285
|
+
#
|
286
|
+
# Lists snapshots under a resource group.
|
287
|
+
#
|
288
|
+
# @param resource_group_name [String] The name of the resource group.
|
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_by_resource_group_async(resource_group_name, custom_headers = nil)
|
295
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
296
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
297
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
298
|
+
|
299
|
+
|
300
|
+
request_headers = {}
|
301
|
+
|
302
|
+
# Set Headers
|
303
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
304
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
305
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots'
|
306
|
+
|
307
|
+
request_url = @base_url || @client.base_url
|
308
|
+
|
309
|
+
options = {
|
310
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
311
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
312
|
+
query_params: {'api-version' => @client.api_version},
|
313
|
+
headers: request_headers.merge(custom_headers || {}),
|
314
|
+
base_url: request_url
|
315
|
+
}
|
316
|
+
promise = @client.make_request_async(:get, path_template, options)
|
317
|
+
|
318
|
+
promise = promise.then do |result|
|
319
|
+
http_response = result.response
|
320
|
+
status_code = http_response.status
|
321
|
+
response_content = http_response.body
|
322
|
+
unless status_code == 200
|
323
|
+
error_model = JSON.load(response_content)
|
324
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
325
|
+
end
|
326
|
+
|
327
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
328
|
+
# Deserialize Response
|
329
|
+
if status_code == 200
|
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::SnapshotList.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
|
+
# Lists snapshots under a subscription.
|
347
|
+
#
|
348
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
349
|
+
# will be added to the HTTP request.
|
350
|
+
#
|
351
|
+
# @return [Array<Snapshot>] operation results.
|
352
|
+
#
|
353
|
+
def list(custom_headers = nil)
|
354
|
+
first_page = list_as_lazy(custom_headers)
|
355
|
+
first_page.get_all_items
|
356
|
+
end
|
357
|
+
|
358
|
+
#
|
359
|
+
# Lists snapshots under a subscription.
|
360
|
+
#
|
361
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
362
|
+
# will be added to the HTTP request.
|
363
|
+
#
|
364
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
365
|
+
#
|
366
|
+
def list_with_http_info(custom_headers = nil)
|
367
|
+
list_async(custom_headers).value!
|
368
|
+
end
|
369
|
+
|
370
|
+
#
|
371
|
+
# Lists snapshots under a subscription.
|
372
|
+
#
|
373
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
374
|
+
# to the HTTP request.
|
375
|
+
#
|
376
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
377
|
+
#
|
378
|
+
def list_async(custom_headers = nil)
|
379
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
380
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
381
|
+
|
382
|
+
|
383
|
+
request_headers = {}
|
384
|
+
|
385
|
+
# Set Headers
|
386
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
387
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
388
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots'
|
389
|
+
|
390
|
+
request_url = @base_url || @client.base_url
|
391
|
+
|
392
|
+
options = {
|
393
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
394
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
395
|
+
query_params: {'api-version' => @client.api_version},
|
396
|
+
headers: request_headers.merge(custom_headers || {}),
|
397
|
+
base_url: request_url
|
398
|
+
}
|
399
|
+
promise = @client.make_request_async(:get, path_template, options)
|
400
|
+
|
401
|
+
promise = promise.then do |result|
|
402
|
+
http_response = result.response
|
403
|
+
status_code = http_response.status
|
404
|
+
response_content = http_response.body
|
405
|
+
unless status_code == 200
|
406
|
+
error_model = JSON.load(response_content)
|
407
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
408
|
+
end
|
409
|
+
|
410
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
411
|
+
# Deserialize Response
|
412
|
+
if status_code == 200
|
413
|
+
begin
|
414
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
415
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::SnapshotList.mapper()
|
416
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
417
|
+
rescue Exception => e
|
418
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
result
|
423
|
+
end
|
424
|
+
|
425
|
+
promise.execute
|
426
|
+
end
|
427
|
+
|
428
|
+
#
|
429
|
+
# Grants access to a snapshot.
|
430
|
+
#
|
431
|
+
# @param resource_group_name [String] The name of the resource group.
|
432
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
433
|
+
# subscription and resource group.
|
434
|
+
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
435
|
+
# body of the get snapshot access operation.
|
436
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
437
|
+
# will be added to the HTTP request.
|
438
|
+
#
|
439
|
+
# @return [AccessUri] operation results.
|
440
|
+
#
|
441
|
+
def grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil)
|
442
|
+
response = grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value!
|
443
|
+
response.body unless response.nil?
|
444
|
+
end
|
445
|
+
|
446
|
+
#
|
447
|
+
# @param resource_group_name [String] The name of the resource group.
|
448
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
449
|
+
# subscription and resource group.
|
450
|
+
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
451
|
+
# body of the get snapshot access operation.
|
452
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
453
|
+
# will be added to the HTTP request.
|
454
|
+
#
|
455
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
456
|
+
# response.
|
457
|
+
#
|
458
|
+
def grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil)
|
459
|
+
# Send request
|
460
|
+
promise = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers)
|
461
|
+
|
462
|
+
promise = promise.then do |response|
|
463
|
+
# Defining deserialization method.
|
464
|
+
deserialize_method = lambda do |parsed_response|
|
465
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::AccessUri.mapper()
|
466
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
467
|
+
end
|
468
|
+
|
469
|
+
# Waiting for response.
|
470
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
471
|
+
end
|
472
|
+
|
473
|
+
promise
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# Revokes access to a snapshot.
|
478
|
+
#
|
479
|
+
# @param resource_group_name [String] The name of the resource group.
|
480
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
481
|
+
# subscription and resource group.
|
482
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
483
|
+
# will be added to the HTTP request.
|
484
|
+
#
|
485
|
+
# @return [OperationStatusResponse] operation results.
|
486
|
+
#
|
487
|
+
def revoke_access(resource_group_name, snapshot_name, custom_headers = nil)
|
488
|
+
response = revoke_access_async(resource_group_name, snapshot_name, custom_headers).value!
|
489
|
+
response.body unless response.nil?
|
490
|
+
end
|
491
|
+
|
492
|
+
#
|
493
|
+
# @param resource_group_name [String] The name of the resource group.
|
494
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
495
|
+
# subscription and resource group.
|
496
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
497
|
+
# will be added to the HTTP request.
|
498
|
+
#
|
499
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
500
|
+
# response.
|
501
|
+
#
|
502
|
+
def revoke_access_async(resource_group_name, snapshot_name, custom_headers = nil)
|
503
|
+
# Send request
|
504
|
+
promise = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers)
|
505
|
+
|
506
|
+
promise = promise.then do |response|
|
507
|
+
# Defining deserialization method.
|
508
|
+
deserialize_method = lambda do |parsed_response|
|
509
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::OperationStatusResponse.mapper()
|
510
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
511
|
+
end
|
512
|
+
|
513
|
+
# Waiting for response.
|
514
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
515
|
+
end
|
516
|
+
|
517
|
+
promise
|
518
|
+
end
|
519
|
+
|
520
|
+
#
|
521
|
+
# Creates or updates a snapshot.
|
522
|
+
#
|
523
|
+
# @param resource_group_name [String] The name of the resource group.
|
524
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
525
|
+
# subscription and resource group.
|
526
|
+
# @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
|
527
|
+
# disk operation.
|
528
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
529
|
+
# will be added to the HTTP request.
|
530
|
+
#
|
531
|
+
# @return [Snapshot] operation results.
|
532
|
+
#
|
533
|
+
def begin_create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
534
|
+
response = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
|
535
|
+
response.body unless response.nil?
|
536
|
+
end
|
537
|
+
|
538
|
+
#
|
539
|
+
# Creates or updates a snapshot.
|
540
|
+
#
|
541
|
+
# @param resource_group_name [String] The name of the resource group.
|
542
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
543
|
+
# subscription and resource group.
|
544
|
+
# @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
|
545
|
+
# disk operation.
|
546
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
547
|
+
# will be added to the HTTP request.
|
548
|
+
#
|
549
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
550
|
+
#
|
551
|
+
def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
552
|
+
begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
|
553
|
+
end
|
554
|
+
|
555
|
+
#
|
556
|
+
# Creates or updates a snapshot.
|
557
|
+
#
|
558
|
+
# @param resource_group_name [String] The name of the resource group.
|
559
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
560
|
+
# subscription and resource group.
|
561
|
+
# @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
|
562
|
+
# disk operation.
|
563
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
564
|
+
# to the HTTP request.
|
565
|
+
#
|
566
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
567
|
+
#
|
568
|
+
def begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
569
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
570
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
571
|
+
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
572
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
573
|
+
fail ArgumentError, 'snapshot is nil' if snapshot.nil?
|
574
|
+
|
575
|
+
|
576
|
+
request_headers = {}
|
577
|
+
|
578
|
+
# Set Headers
|
579
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
580
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
581
|
+
|
582
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
583
|
+
|
584
|
+
# Serialize Request
|
585
|
+
request_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot.mapper()
|
586
|
+
request_content = @client.serialize(request_mapper, snapshot)
|
587
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
588
|
+
|
589
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'
|
590
|
+
|
591
|
+
request_url = @base_url || @client.base_url
|
592
|
+
|
593
|
+
options = {
|
594
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
595
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'snapshotName' => snapshot_name},
|
596
|
+
query_params: {'api-version' => @client.api_version},
|
597
|
+
body: request_content,
|
598
|
+
headers: request_headers.merge(custom_headers || {}),
|
599
|
+
base_url: request_url
|
600
|
+
}
|
601
|
+
promise = @client.make_request_async(:put, path_template, options)
|
602
|
+
|
603
|
+
promise = promise.then do |result|
|
604
|
+
http_response = result.response
|
605
|
+
status_code = http_response.status
|
606
|
+
response_content = http_response.body
|
607
|
+
unless status_code == 200 || status_code == 202
|
608
|
+
error_model = JSON.load(response_content)
|
609
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
610
|
+
end
|
611
|
+
|
612
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
613
|
+
# Deserialize Response
|
614
|
+
if status_code == 200
|
615
|
+
begin
|
616
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
617
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot.mapper()
|
618
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
619
|
+
rescue Exception => e
|
620
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
621
|
+
end
|
622
|
+
end
|
623
|
+
# Deserialize Response
|
624
|
+
if status_code == 202
|
625
|
+
begin
|
626
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
627
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot.mapper()
|
628
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
629
|
+
rescue Exception => e
|
630
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
result
|
635
|
+
end
|
636
|
+
|
637
|
+
promise.execute
|
638
|
+
end
|
639
|
+
|
640
|
+
#
|
641
|
+
# Updates (patches) a snapshot.
|
642
|
+
#
|
643
|
+
# @param resource_group_name [String] The name of the resource group.
|
644
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
645
|
+
# subscription and resource group.
|
646
|
+
# @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
|
647
|
+
# Patch snapshot operation.
|
648
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
649
|
+
# will be added to the HTTP request.
|
650
|
+
#
|
651
|
+
# @return [Snapshot] operation results.
|
652
|
+
#
|
653
|
+
def begin_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
654
|
+
response = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
|
655
|
+
response.body unless response.nil?
|
656
|
+
end
|
657
|
+
|
658
|
+
#
|
659
|
+
# Updates (patches) a snapshot.
|
660
|
+
#
|
661
|
+
# @param resource_group_name [String] The name of the resource group.
|
662
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
663
|
+
# subscription and resource group.
|
664
|
+
# @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
|
665
|
+
# Patch snapshot operation.
|
666
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
667
|
+
# will be added to the HTTP request.
|
668
|
+
#
|
669
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
670
|
+
#
|
671
|
+
def begin_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
672
|
+
begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
|
673
|
+
end
|
674
|
+
|
675
|
+
#
|
676
|
+
# Updates (patches) a snapshot.
|
677
|
+
#
|
678
|
+
# @param resource_group_name [String] The name of the resource group.
|
679
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
680
|
+
# subscription and resource group.
|
681
|
+
# @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
|
682
|
+
# Patch snapshot operation.
|
683
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
684
|
+
# to the HTTP request.
|
685
|
+
#
|
686
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
687
|
+
#
|
688
|
+
def begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
|
689
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
690
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
691
|
+
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
692
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
693
|
+
fail ArgumentError, 'snapshot is nil' if snapshot.nil?
|
694
|
+
|
695
|
+
|
696
|
+
request_headers = {}
|
697
|
+
|
698
|
+
# Set Headers
|
699
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
700
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
701
|
+
|
702
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
703
|
+
|
704
|
+
# Serialize Request
|
705
|
+
request_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::SnapshotUpdate.mapper()
|
706
|
+
request_content = @client.serialize(request_mapper, snapshot)
|
707
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
708
|
+
|
709
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'
|
710
|
+
|
711
|
+
request_url = @base_url || @client.base_url
|
712
|
+
|
713
|
+
options = {
|
714
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
715
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'snapshotName' => snapshot_name},
|
716
|
+
query_params: {'api-version' => @client.api_version},
|
717
|
+
body: request_content,
|
718
|
+
headers: request_headers.merge(custom_headers || {}),
|
719
|
+
base_url: request_url
|
720
|
+
}
|
721
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
722
|
+
|
723
|
+
promise = promise.then do |result|
|
724
|
+
http_response = result.response
|
725
|
+
status_code = http_response.status
|
726
|
+
response_content = http_response.body
|
727
|
+
unless status_code == 200 || status_code == 202
|
728
|
+
error_model = JSON.load(response_content)
|
729
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
730
|
+
end
|
731
|
+
|
732
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
733
|
+
# Deserialize Response
|
734
|
+
if status_code == 200
|
735
|
+
begin
|
736
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
737
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot.mapper()
|
738
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
739
|
+
rescue Exception => e
|
740
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
# Deserialize Response
|
744
|
+
if status_code == 202
|
745
|
+
begin
|
746
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
747
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot.mapper()
|
748
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
749
|
+
rescue Exception => e
|
750
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
751
|
+
end
|
752
|
+
end
|
753
|
+
|
754
|
+
result
|
755
|
+
end
|
756
|
+
|
757
|
+
promise.execute
|
758
|
+
end
|
759
|
+
|
760
|
+
#
|
761
|
+
# Deletes a snapshot.
|
762
|
+
#
|
763
|
+
# @param resource_group_name [String] The name of the resource group.
|
764
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
765
|
+
# subscription and resource group.
|
766
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
767
|
+
# will be added to the HTTP request.
|
768
|
+
#
|
769
|
+
# @return [OperationStatusResponse] operation results.
|
770
|
+
#
|
771
|
+
def begin_delete(resource_group_name, snapshot_name, custom_headers = nil)
|
772
|
+
response = begin_delete_async(resource_group_name, snapshot_name, custom_headers).value!
|
773
|
+
response.body unless response.nil?
|
774
|
+
end
|
775
|
+
|
776
|
+
#
|
777
|
+
# Deletes a snapshot.
|
778
|
+
#
|
779
|
+
# @param resource_group_name [String] The name of the resource group.
|
780
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
781
|
+
# subscription and resource group.
|
782
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
783
|
+
# will be added to the HTTP request.
|
784
|
+
#
|
785
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
786
|
+
#
|
787
|
+
def begin_delete_with_http_info(resource_group_name, snapshot_name, custom_headers = nil)
|
788
|
+
begin_delete_async(resource_group_name, snapshot_name, custom_headers).value!
|
789
|
+
end
|
790
|
+
|
791
|
+
#
|
792
|
+
# Deletes a snapshot.
|
793
|
+
#
|
794
|
+
# @param resource_group_name [String] The name of the resource group.
|
795
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
796
|
+
# subscription and resource group.
|
797
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
798
|
+
# to the HTTP request.
|
799
|
+
#
|
800
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
801
|
+
#
|
802
|
+
def begin_delete_async(resource_group_name, snapshot_name, custom_headers = nil)
|
803
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
804
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
805
|
+
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
806
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
807
|
+
|
808
|
+
|
809
|
+
request_headers = {}
|
810
|
+
|
811
|
+
# Set Headers
|
812
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
813
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
814
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}'
|
815
|
+
|
816
|
+
request_url = @base_url || @client.base_url
|
817
|
+
|
818
|
+
options = {
|
819
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
820
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'snapshotName' => snapshot_name},
|
821
|
+
query_params: {'api-version' => @client.api_version},
|
822
|
+
headers: request_headers.merge(custom_headers || {}),
|
823
|
+
base_url: request_url
|
824
|
+
}
|
825
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
826
|
+
|
827
|
+
promise = promise.then do |result|
|
828
|
+
http_response = result.response
|
829
|
+
status_code = http_response.status
|
830
|
+
response_content = http_response.body
|
831
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
832
|
+
error_model = JSON.load(response_content)
|
833
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
834
|
+
end
|
835
|
+
|
836
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
837
|
+
# Deserialize Response
|
838
|
+
if status_code == 200
|
839
|
+
begin
|
840
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
841
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::OperationStatusResponse.mapper()
|
842
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
843
|
+
rescue Exception => e
|
844
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
845
|
+
end
|
846
|
+
end
|
847
|
+
|
848
|
+
result
|
849
|
+
end
|
850
|
+
|
851
|
+
promise.execute
|
852
|
+
end
|
853
|
+
|
854
|
+
#
|
855
|
+
# Grants access to a snapshot.
|
856
|
+
#
|
857
|
+
# @param resource_group_name [String] The name of the resource group.
|
858
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
859
|
+
# subscription and resource group.
|
860
|
+
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
861
|
+
# body of the get snapshot access operation.
|
862
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
863
|
+
# will be added to the HTTP request.
|
864
|
+
#
|
865
|
+
# @return [AccessUri] operation results.
|
866
|
+
#
|
867
|
+
def begin_grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil)
|
868
|
+
response = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value!
|
869
|
+
response.body unless response.nil?
|
870
|
+
end
|
871
|
+
|
872
|
+
#
|
873
|
+
# Grants access to a snapshot.
|
874
|
+
#
|
875
|
+
# @param resource_group_name [String] The name of the resource group.
|
876
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
877
|
+
# subscription and resource group.
|
878
|
+
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
879
|
+
# body of the get snapshot access operation.
|
880
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
881
|
+
# will be added to the HTTP request.
|
882
|
+
#
|
883
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
884
|
+
#
|
885
|
+
def begin_grant_access_with_http_info(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil)
|
886
|
+
begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value!
|
887
|
+
end
|
888
|
+
|
889
|
+
#
|
890
|
+
# Grants access to a snapshot.
|
891
|
+
#
|
892
|
+
# @param resource_group_name [String] The name of the resource group.
|
893
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
894
|
+
# subscription and resource group.
|
895
|
+
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
896
|
+
# body of the get snapshot access operation.
|
897
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
898
|
+
# to the HTTP request.
|
899
|
+
#
|
900
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
901
|
+
#
|
902
|
+
def begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil)
|
903
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
904
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
905
|
+
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
906
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
907
|
+
fail ArgumentError, 'grant_access_data is nil' if grant_access_data.nil?
|
908
|
+
|
909
|
+
|
910
|
+
request_headers = {}
|
911
|
+
|
912
|
+
# Set Headers
|
913
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
914
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
915
|
+
|
916
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
917
|
+
|
918
|
+
# Serialize Request
|
919
|
+
request_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::GrantAccessData.mapper()
|
920
|
+
request_content = @client.serialize(request_mapper, grant_access_data)
|
921
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
922
|
+
|
923
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess'
|
924
|
+
|
925
|
+
request_url = @base_url || @client.base_url
|
926
|
+
|
927
|
+
options = {
|
928
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
929
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'snapshotName' => snapshot_name},
|
930
|
+
query_params: {'api-version' => @client.api_version},
|
931
|
+
body: request_content,
|
932
|
+
headers: request_headers.merge(custom_headers || {}),
|
933
|
+
base_url: request_url
|
934
|
+
}
|
935
|
+
promise = @client.make_request_async(:post, path_template, options)
|
936
|
+
|
937
|
+
promise = promise.then do |result|
|
938
|
+
http_response = result.response
|
939
|
+
status_code = http_response.status
|
940
|
+
response_content = http_response.body
|
941
|
+
unless status_code == 200 || status_code == 202
|
942
|
+
error_model = JSON.load(response_content)
|
943
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
944
|
+
end
|
945
|
+
|
946
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
947
|
+
# Deserialize Response
|
948
|
+
if status_code == 200
|
949
|
+
begin
|
950
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
951
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::AccessUri.mapper()
|
952
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
953
|
+
rescue Exception => e
|
954
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
955
|
+
end
|
956
|
+
end
|
957
|
+
|
958
|
+
result
|
959
|
+
end
|
960
|
+
|
961
|
+
promise.execute
|
962
|
+
end
|
963
|
+
|
964
|
+
#
|
965
|
+
# Revokes access to a snapshot.
|
966
|
+
#
|
967
|
+
# @param resource_group_name [String] The name of the resource group.
|
968
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
969
|
+
# subscription and resource group.
|
970
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
971
|
+
# will be added to the HTTP request.
|
972
|
+
#
|
973
|
+
# @return [OperationStatusResponse] operation results.
|
974
|
+
#
|
975
|
+
def begin_revoke_access(resource_group_name, snapshot_name, custom_headers = nil)
|
976
|
+
response = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value!
|
977
|
+
response.body unless response.nil?
|
978
|
+
end
|
979
|
+
|
980
|
+
#
|
981
|
+
# Revokes access to a snapshot.
|
982
|
+
#
|
983
|
+
# @param resource_group_name [String] The name of the resource group.
|
984
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
985
|
+
# subscription and resource group.
|
986
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
987
|
+
# will be added to the HTTP request.
|
988
|
+
#
|
989
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
990
|
+
#
|
991
|
+
def begin_revoke_access_with_http_info(resource_group_name, snapshot_name, custom_headers = nil)
|
992
|
+
begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value!
|
993
|
+
end
|
994
|
+
|
995
|
+
#
|
996
|
+
# Revokes access to a snapshot.
|
997
|
+
#
|
998
|
+
# @param resource_group_name [String] The name of the resource group.
|
999
|
+
# @param snapshot_name [String] The name of the snapshot within the given
|
1000
|
+
# subscription and resource group.
|
1001
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1002
|
+
# to the HTTP request.
|
1003
|
+
#
|
1004
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1005
|
+
#
|
1006
|
+
def begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers = nil)
|
1007
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1008
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1009
|
+
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
1010
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1011
|
+
|
1012
|
+
|
1013
|
+
request_headers = {}
|
1014
|
+
|
1015
|
+
# Set Headers
|
1016
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1017
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1018
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess'
|
1019
|
+
|
1020
|
+
request_url = @base_url || @client.base_url
|
1021
|
+
|
1022
|
+
options = {
|
1023
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1024
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'snapshotName' => snapshot_name},
|
1025
|
+
query_params: {'api-version' => @client.api_version},
|
1026
|
+
headers: request_headers.merge(custom_headers || {}),
|
1027
|
+
base_url: request_url
|
1028
|
+
}
|
1029
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1030
|
+
|
1031
|
+
promise = promise.then do |result|
|
1032
|
+
http_response = result.response
|
1033
|
+
status_code = http_response.status
|
1034
|
+
response_content = http_response.body
|
1035
|
+
unless status_code == 200 || status_code == 202
|
1036
|
+
error_model = JSON.load(response_content)
|
1037
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1041
|
+
# Deserialize Response
|
1042
|
+
if status_code == 200
|
1043
|
+
begin
|
1044
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1045
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::OperationStatusResponse.mapper()
|
1046
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1047
|
+
rescue Exception => e
|
1048
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1049
|
+
end
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
result
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
promise.execute
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
#
|
1059
|
+
# Lists snapshots under a resource group.
|
1060
|
+
#
|
1061
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1062
|
+
# to List operation.
|
1063
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1064
|
+
# will be added to the HTTP request.
|
1065
|
+
#
|
1066
|
+
# @return [SnapshotList] operation results.
|
1067
|
+
#
|
1068
|
+
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
1069
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1070
|
+
response.body unless response.nil?
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
#
|
1074
|
+
# Lists snapshots under a resource group.
|
1075
|
+
#
|
1076
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1077
|
+
# to List operation.
|
1078
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1079
|
+
# will be added to the HTTP request.
|
1080
|
+
#
|
1081
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1082
|
+
#
|
1083
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
1084
|
+
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
#
|
1088
|
+
# Lists snapshots under a resource group.
|
1089
|
+
#
|
1090
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1091
|
+
# to List operation.
|
1092
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1093
|
+
# to the HTTP request.
|
1094
|
+
#
|
1095
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1096
|
+
#
|
1097
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
1098
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1099
|
+
|
1100
|
+
|
1101
|
+
request_headers = {}
|
1102
|
+
|
1103
|
+
# Set Headers
|
1104
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1105
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1106
|
+
path_template = '{nextLink}'
|
1107
|
+
|
1108
|
+
request_url = @base_url || @client.base_url
|
1109
|
+
|
1110
|
+
options = {
|
1111
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1112
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1113
|
+
headers: request_headers.merge(custom_headers || {}),
|
1114
|
+
base_url: request_url
|
1115
|
+
}
|
1116
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1117
|
+
|
1118
|
+
promise = promise.then do |result|
|
1119
|
+
http_response = result.response
|
1120
|
+
status_code = http_response.status
|
1121
|
+
response_content = http_response.body
|
1122
|
+
unless status_code == 200
|
1123
|
+
error_model = JSON.load(response_content)
|
1124
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1128
|
+
# Deserialize Response
|
1129
|
+
if status_code == 200
|
1130
|
+
begin
|
1131
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1132
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::SnapshotList.mapper()
|
1133
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1134
|
+
rescue Exception => e
|
1135
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1136
|
+
end
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
result
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
promise.execute
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
#
|
1146
|
+
# Lists snapshots under a subscription.
|
1147
|
+
#
|
1148
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1149
|
+
# to List operation.
|
1150
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1151
|
+
# will be added to the HTTP request.
|
1152
|
+
#
|
1153
|
+
# @return [SnapshotList] operation results.
|
1154
|
+
#
|
1155
|
+
def list_next(next_page_link, custom_headers = nil)
|
1156
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
1157
|
+
response.body unless response.nil?
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
#
|
1161
|
+
# Lists snapshots under a subscription.
|
1162
|
+
#
|
1163
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1164
|
+
# to List operation.
|
1165
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1166
|
+
# will be added to the HTTP request.
|
1167
|
+
#
|
1168
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1169
|
+
#
|
1170
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
1171
|
+
list_next_async(next_page_link, custom_headers).value!
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
#
|
1175
|
+
# Lists snapshots under a subscription.
|
1176
|
+
#
|
1177
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1178
|
+
# to List operation.
|
1179
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1180
|
+
# to the HTTP request.
|
1181
|
+
#
|
1182
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1183
|
+
#
|
1184
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
1185
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1186
|
+
|
1187
|
+
|
1188
|
+
request_headers = {}
|
1189
|
+
|
1190
|
+
# Set Headers
|
1191
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1192
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1193
|
+
path_template = '{nextLink}'
|
1194
|
+
|
1195
|
+
request_url = @base_url || @client.base_url
|
1196
|
+
|
1197
|
+
options = {
|
1198
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1199
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1200
|
+
headers: request_headers.merge(custom_headers || {}),
|
1201
|
+
base_url: request_url
|
1202
|
+
}
|
1203
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1204
|
+
|
1205
|
+
promise = promise.then do |result|
|
1206
|
+
http_response = result.response
|
1207
|
+
status_code = http_response.status
|
1208
|
+
response_content = http_response.body
|
1209
|
+
unless status_code == 200
|
1210
|
+
error_model = JSON.load(response_content)
|
1211
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1215
|
+
# Deserialize Response
|
1216
|
+
if status_code == 200
|
1217
|
+
begin
|
1218
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1219
|
+
result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::SnapshotList.mapper()
|
1220
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1221
|
+
rescue Exception => e
|
1222
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1223
|
+
end
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
result
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
promise.execute
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
#
|
1233
|
+
# Lists snapshots under a resource group.
|
1234
|
+
#
|
1235
|
+
# @param resource_group_name [String] The name of the resource group.
|
1236
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1237
|
+
# will be added to the HTTP request.
|
1238
|
+
#
|
1239
|
+
# @return [SnapshotList] which provide lazy access to pages of the response.
|
1240
|
+
#
|
1241
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
|
1242
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1243
|
+
unless response.nil?
|
1244
|
+
page = response.body
|
1245
|
+
page.next_method = Proc.new do |next_page_link|
|
1246
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1247
|
+
end
|
1248
|
+
page
|
1249
|
+
end
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
#
|
1253
|
+
# Lists snapshots under a subscription.
|
1254
|
+
#
|
1255
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1256
|
+
# will be added to the HTTP request.
|
1257
|
+
#
|
1258
|
+
# @return [SnapshotList] which provide lazy access to pages of the response.
|
1259
|
+
#
|
1260
|
+
def list_as_lazy(custom_headers = nil)
|
1261
|
+
response = list_async(custom_headers).value!
|
1262
|
+
unless response.nil?
|
1263
|
+
page = response.body
|
1264
|
+
page.next_method = Proc.new do |next_page_link|
|
1265
|
+
list_next_async(next_page_link, custom_headers)
|
1266
|
+
end
|
1267
|
+
page
|
1268
|
+
end
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
end
|
1272
|
+
end
|