Language

MaintenanceExtensions.CreateOrUpdate Method

Definition

Apply maintenance updates to resource <item> Mocking. To mock this method, please mock CreateOrUpdate(ResourceIdentifier, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.Maintenance.MaintenanceApplyUpdateData> CreateOrUpdate(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdate : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Maintenance.MaintenanceApplyUpdateData>
<Extension()>
Public Function CreateOrUpdate (client As ArmClient, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MaintenanceApplyUpdateData)

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to