/// <summary> /// Gets all the data store/repository types that the resource supports. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </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 <IPage <DataStoreType> > ListByDataManagerAsync(this IDataStoreTypesOperations operations, string resourceGroupName, string dataManagerName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDataManagerWithHttpMessagesAsync(resourceGroupName, dataManagerName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets all the data store/repository types that the resource supports. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DataStoreType> > ListByDataManagerNextAsync(this IDataStoreTypesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDataManagerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the data store/repository type given its name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='dataStoreTypeName'> /// The data store/repository type name for which details are needed. /// </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 DataStoreType Get(this IDataStoreTypesOperations operations, string dataStoreTypeName, string resourceGroupName, string dataManagerName) { return(operations.GetAsync(dataStoreTypeName, resourceGroupName, dataManagerName).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the data store/repository types that the resource supports. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </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 IPage <DataStoreType> ListByDataManager(this IDataStoreTypesOperations operations, string resourceGroupName, string dataManagerName) { return(operations.ListByDataManagerAsync(resourceGroupName, dataManagerName).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the data store/repository types that the resource supports. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <DataStoreType> ListByDataManagerNext(this IDataStoreTypesOperations operations, string nextPageLink) { return(operations.ListByDataManagerNextAsync(nextPageLink).GetAwaiter().GetResult()); }