/// <summary> /// Update or create a Datastore. /// </summary> /// <remarks> /// Update or create a Datastore in the given workspace. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='name'> /// The Datastore name. /// </param> /// <param name='dto'> /// The Datastore details. /// </param> /// <param name='createIfNotExists'> /// If set to true, the call will create an Datastore if it doesn't exist. /// </param> /// <param name='skipValidation'> /// If set to true, the call will skip Datastore validation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateAsync(this IDataStoresOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string name, DataStore dto = default(DataStore), bool?createIfNotExists = false, bool?skipValidation = false, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateWithHttpMessagesAsync(subscriptionId, resourceGroupName, workspaceName, name, dto, createIfNotExists, skipValidation, null, cancellationToken).ConfigureAwait(false)).Dispose(); }