/// <summary> /// Create or update a Datastore. /// </summary> /// <remarks> /// Create or update 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='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> public static void Create(this IDataStoresOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, DataStore dto = default(DataStore), bool?createIfNotExists = false, bool?skipValidation = false) { operations.CreateAsync(subscriptionId, resourceGroupName, workspaceName, dto, createIfNotExists, skipValidation).GetAwaiter().GetResult(); }