/// <summary> /// Perform an action on bulk collections /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='payload'> /// </param> public static BulkCollectionsResponse BulkCollectionsAction(this IPrivateStoreOperations operations, string privateStoreId, BulkCollectionsPayload payload = default(BulkCollectionsPayload)) { return(operations.BulkCollectionsActionAsync(privateStoreId, payload).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of available private stores. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='useCache'> /// Determines if to use cache or DB for serving this request /// </param> public static IPage <PrivateStore> List(this IPrivateStoreOperations operations, string useCache = default(string)) { return(operations.ListAsync(useCache).GetAwaiter().GetResult()); }
/// <summary> /// Get map of plans and related approved subscriptions. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='payload'> /// </param> public static QueryApprovedPlansResponse QueryApprovedPlansMethod(this IPrivateStoreOperations operations, string privateStoreId, QueryApprovedPlansPayload payload = default(QueryApprovedPlansPayload)) { return(operations.QueryApprovedPlansMethodAsync(privateStoreId, payload).GetAwaiter().GetResult()); }
/// <summary> /// Get map of plans and related approved subscriptions. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='payload'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <QueryApprovedPlansResponse> QueryApprovedPlansMethodAsync(this IPrivateStoreOperations operations, string privateStoreId, QueryApprovedPlansPayload payload = default(QueryApprovedPlansPayload), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.QueryApprovedPlansMethodWithHttpMessagesAsync(privateStoreId, payload, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// For a given subscriptions list, the API will return a map of collections /// and the related subscriptions from the supplied list. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='payload'> /// </param> public static CollectionsToSubscriptionsMappingResponse CollectionsToSubscriptionsMapping(this IPrivateStoreOperations operations, string privateStoreId, CollectionsToSubscriptionsMappingPayload payload = default(CollectionsToSubscriptionsMappingPayload)) { return(operations.CollectionsToSubscriptionsMappingAsync(privateStoreId, payload).GetAwaiter().GetResult()); }
/// <summary> /// For a given subscriptions list, the API will return a map of collections /// and the related subscriptions from the supplied list. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='payload'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CollectionsToSubscriptionsMappingResponse> CollectionsToSubscriptionsMappingAsync(this IPrivateStoreOperations operations, string privateStoreId, CollectionsToSubscriptionsMappingPayload payload = default(CollectionsToSubscriptionsMappingPayload), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CollectionsToSubscriptionsMappingWithHttpMessagesAsync(privateStoreId, payload, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List of offers, regardless the collections /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> public static QueryOffers QueryOffersMethod(this IPrivateStoreOperations operations, string privateStoreId) { return(operations.QueryOffersMethodAsync(privateStoreId).GetAwaiter().GetResult()); }
/// <summary> /// Tenant billing accounts names /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> public static BillingAccountsResponse BillingAccounts(this IPrivateStoreOperations operations, string privateStoreId) { return(operations.BillingAccountsAsync(privateStoreId).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the private store. All that is not saved will be lost. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> public static void Delete(this IPrivateStoreOperations operations, string privateStoreId) { operations.DeleteAsync(privateStoreId).GetAwaiter().GetResult(); }
/// <summary> /// Deletes the private store. All that is not saved will be lost. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IPrivateStoreOperations operations, string privateStoreId, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(privateStoreId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Changes private store properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='payload'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task CreateOrUpdateAsync(this IPrivateStoreOperations operations, string privateStoreId, PrivateStore payload = default(PrivateStore), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateOrUpdateWithHttpMessagesAsync(privateStoreId, payload, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Changes private store properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> /// <param name='payload'> /// </param> public static void CreateOrUpdate(this IPrivateStoreOperations operations, string privateStoreId, PrivateStore payload = default(PrivateStore)) { operations.CreateOrUpdateAsync(privateStoreId, payload).GetAwaiter().GetResult(); }
/// <summary> /// Get information about the private store /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='privateStoreId'> /// The store ID - must use the tenant ID /// </param> public static PrivateStore Get(this IPrivateStoreOperations operations, string privateStoreId) { return(operations.GetAsync(privateStoreId).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of available private stores /// </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 <PrivateStore> ListNext(this IPrivateStoreOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of available private stores /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <PrivateStore> List(this IPrivateStoreOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }