示例#1
0
 /// <summary>
 /// Creates or updates the data store/repository in the data manager.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataStoreName'>
 /// The data store/repository name to be created or updated.
 /// </param>
 /// <param name='dataStore'>
 /// The data store/repository object to be created or updated.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The Resource Group Name
 /// </param>
 /// <param name='dataManagerName'>
 /// The name of the DataManager Resource within the specified resource group.
 /// DataManager names must be between 3 and 24 characters in length and use any
 /// alphanumeric and underscore only
 /// </param>
 public static DataStore CreateOrUpdate(this IDataStoresOperations operations, string dataStoreName, DataStore dataStore, string resourceGroupName, string dataManagerName)
 {
     return(operations.CreateOrUpdateAsync(dataStoreName, dataStore, resourceGroupName, dataManagerName).GetAwaiter().GetResult());
 }