IDisksOperations.UpdateWithHttpMessagesAsync(String, String, DiskUpdateInner, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Updates (patches) a disk.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Compute.Fluent.Models.DiskInner>> UpdateWithHttpMessagesAsync (string resourceGroupName, string diskName, Microsoft.Azure.Management.Compute.Fluent.Models.DiskUpdateInner disk, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Compute.Fluent.Models.DiskUpdateInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Compute.Fluent.Models.DiskInner>>

Parameters

resourceGroupName
String

The name of the resource group.

diskName
String

The name of the disk within the given subscription and resource group.

disk
DiskUpdateInner

Disk object supplied in the body of the Patch disk operation.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.AzureOperationResponse<DiskInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

Applies to