Exemplo n.º 1
0
 /// <summary>
 /// This method gets the data store/repository by name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataStoreName'>
 /// The data store/repository name queried.
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DataStore> GetAsync(this IDataStoresOperations operations, string dataStoreName, string resourceGroupName, string dataManagerName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(dataStoreName, resourceGroupName, dataManagerName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get Datastore details.
 /// </summary>
 /// <remarks>
 /// Get details of a Datastore with a specific name.
 /// </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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DataStore> GetAsync(this IDataStoresOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(subscriptionId, resourceGroupName, workspaceName, name, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }