Exemplo n.º 1
0
 /// <summary>
 /// Gets the list of the Notification Recipient User subscribed to the
 /// notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RecipientUserCollection> ListByNotificationAsync(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByNotificationWithHttpMessagesAsync(resourceGroupName, serviceName, notificationName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the API Management User to the list of Recipients for the
 /// Notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 /// <param name='userId'>
 /// User identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RecipientUserContract> CreateOrUpdateAsync(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName, string userId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, notificationName, userId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Determine if the Notification Recipient User is subscribed to the
 /// notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 /// <param name='uid'>
 /// User identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <bool> CheckEntityExistsAsync(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName, string uid, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckEntityExistsWithHttpMessagesAsync(resourceGroupName, serviceName, notificationName, uid, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the list of the Notification Recipient User subscribed to the
 /// notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 public static RecipientUserCollection ListByNotification(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName)
 {
     return(operations.ListByNotificationAsync(resourceGroupName, serviceName, notificationName).GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Removes the API Management user from the list of Notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 /// <param name='userId'>
 /// User identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName, string userId, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, notificationName, userId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemplo n.º 6
0
 /// <summary>
 /// Removes the API Management user from the list of Notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 /// <param name='userId'>
 /// User identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 public static void Delete(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName, string userId)
 {
     operations.DeleteAsync(resourceGroupName, serviceName, notificationName, userId).GetAwaiter().GetResult();
 }
Exemplo n.º 7
0
 /// <summary>
 /// Adds the API Management User to the list of Recipients for the
 /// Notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 /// <param name='userId'>
 /// User identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 public static RecipientUserContract CreateOrUpdate(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName, string userId)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, notificationName, userId).GetAwaiter().GetResult());
 }
Exemplo n.º 8
0
 /// <summary>
 /// Determine if the Notification Recipient User is subscribed to the
 /// notification.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='notificationName'>
 /// Notification Name Identifier. Possible values include:
 /// 'RequestPublisherNotificationMessage',
 /// 'PurchasePublisherNotificationMessage',
 /// 'NewApplicationNotificationMessage', 'BCC',
 /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
 /// 'QuotaLimitApproachingPublisherNotificationMessage'
 /// </param>
 /// <param name='userId'>
 /// User identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 public static bool CheckEntityExists(this INotificationRecipientUserOperations operations, string resourceGroupName, string serviceName, string notificationName, string userId)
 {
     return(operations.CheckEntityExistsAsync(resourceGroupName, serviceName, notificationName, userId).GetAwaiter().GetResult());
 }