NetworkCloudVolumeResource.UpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpdateAsync(NetworkCloudVolumePatch, CancellationToken) |
Update tags associated with the provided volume.
|
UpdateAsync(NetworkCloudVolumePatch, String, String, CancellationToken) |
Update tags associated with the provided volume.
|
UpdateAsync(NetworkCloudVolumePatch, CancellationToken)
Update tags associated with the provided volume.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}
- Operation Id: Volumes_Update
- Resource: NetworkCloudVolumeResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVolumeResource>> UpdateAsync(Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVolumePatch patch, System.Threading.CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVolumeResource>> UpdateAsync(Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVolumePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVolumePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVolumeResource>>
override this.UpdateAsync : Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVolumePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVolumeResource>>
Public Overridable Function UpdateAsync (patch As NetworkCloudVolumePatch, cancellationToken As CancellationToken) As Task(Of Response(Of NetworkCloudVolumeResource))
Public Overridable Function UpdateAsync (patch As NetworkCloudVolumePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkCloudVolumeResource))
Parameters
- patch
- NetworkCloudVolumePatch
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
patch
is null.
Applies to
UpdateAsync(NetworkCloudVolumePatch, String, String, CancellationToken)
Update tags associated with the provided volume.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}
- Operation Id: Volumes_Update
- Default Api Version: 2025-02-01
- Resource: NetworkCloudVolumeResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVolumeResource>> UpdateAsync(Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVolumePatch patch, string ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVolumePatch * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVolumeResource>>
override this.UpdateAsync : Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVolumePatch * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVolumeResource>>
Public Overridable Function UpdateAsync (patch As NetworkCloudVolumePatch, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkCloudVolumeResource))
Parameters
- patch
- NetworkCloudVolumePatch
The request body.
- ifMatch
- String
The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
- ifNoneMatch
- String
Set to '*' to allow a new record set to be created, but to prevent updating an existing resource. Other values will result in error from server as they are not supported.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
patch
is null.