Exemple #1
0
 /// <summary>
 /// Get an event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Get properties of an event subscription of a partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be found. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EventSubscription> GetAsync(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// List event subscriptions of a partner topic.
 /// </summary>
 /// <remarks>
 /// List event subscriptions that belong to a specific partner topic.
 /// </remarks>
 /// <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 <EventSubscription> ListByPartnerTopicNext(this IPartnerTopicEventSubscriptionsOperations operations, string nextPageLink)
 {
     return(operations.ListByPartnerTopicNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemple #3
0
 /// <summary>
 /// List event subscriptions of a partner topic.
 /// </summary>
 /// <remarks>
 /// List event subscriptions that belong to a specific partner topic.
 /// </remarks>
 /// <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 <EventSubscription> > ListByPartnerTopicNextAsync(this IPartnerTopicEventSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByPartnerTopicNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #4
0
 /// <summary>
 /// Delete an event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Delete an existing event subscription of a partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be created. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemple #5
0
 /// <summary>
 /// Update event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Update an existing event subscription of a partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be created. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 /// <param name='eventSubscriptionUpdateParameters'>
 /// Updated event subscription information.
 /// </param>
 public static EventSubscription BeginUpdate(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionUpdateParameters).GetAwaiter().GetResult());
 }
Exemple #6
0
 /// <summary>
 /// Get an event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Get properties of an event subscription of a partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be found. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 public static EventSubscription Get(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName)
 {
     return(operations.GetAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).GetAwaiter().GetResult());
 }
Exemple #7
0
 /// <summary>
 /// Delete an event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Delete an existing event subscription of a partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be created. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 public static void BeginDelete(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName)
 {
     operations.BeginDeleteAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).GetAwaiter().GetResult();
 }
Exemple #8
0
 /// <summary>
 /// Get delivery attributes for an event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Get all delivery attributes for an event subscription of a partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be created. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 public static DeliveryAttributeListResult GetDeliveryAttributes(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName)
 {
     return(operations.GetDeliveryAttributesAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).GetAwaiter().GetResult());
 }
Exemple #9
0
 /// <summary>
 /// List event subscriptions of a partner topic.
 /// </summary>
 /// <remarks>
 /// List event subscriptions that belong to a specific partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='filter'>
 /// The query used to filter the search results using OData syntax. Filtering
 /// is permitted on the 'name' property only and with limited number of OData
 /// operations. These operations are: the 'contains' function as well as the
 /// following logical operations: not, and, or, eq (for equal), and ne (for not
 /// equal). No arithmetic operations are supported. The following is a valid
 /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
 /// The following is not a valid filter example: $filter=location eq 'westus'.
 /// </param>
 /// <param name='top'>
 /// The number of results to return per page for the list operation. Valid
 /// range for top parameter is 1 to 100. If not specified, the default number
 /// of results to be returned is 20 items per page.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <EventSubscription> > ListByPartnerTopicAsync(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string filter = default(string), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByPartnerTopicWithHttpMessagesAsync(resourceGroupName, partnerTopicName, filter, top, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #10
0
 /// <summary>
 /// List event subscriptions of a partner topic.
 /// </summary>
 /// <remarks>
 /// List event subscriptions that belong to a specific partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='filter'>
 /// The query used to filter the search results using OData syntax. Filtering
 /// is permitted on the 'name' property only and with limited number of OData
 /// operations. These operations are: the 'contains' function as well as the
 /// following logical operations: not, and, or, eq (for equal), and ne (for not
 /// equal). No arithmetic operations are supported. The following is a valid
 /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
 /// The following is not a valid filter example: $filter=location eq 'westus'.
 /// </param>
 /// <param name='top'>
 /// The number of results to return per page for the list operation. Valid
 /// range for top parameter is 1 to 100. If not specified, the default number
 /// of results to be returned is 20 items per page.
 /// </param>
 public static IPage <EventSubscription> ListByPartnerTopic(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string filter = default(string), int?top = default(int?))
 {
     return(operations.ListByPartnerTopicAsync(resourceGroupName, partnerTopicName, filter, top).GetAwaiter().GetResult());
 }
Exemple #11
0
 /// <summary>
 /// Create or update an event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Asynchronously creates or updates an event subscription of a partner topic
 /// with the specified parameters. Existing event subscriptions will be updated
 /// with this API.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be created. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 /// <param name='eventSubscriptionInfo'>
 /// Event subscription properties containing the destination and filter
 /// information.
 /// </param>
 public static EventSubscription CreateOrUpdate(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionInfo).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List event subscriptions of a partner topic.
 /// </summary>
 /// <remarks>
 /// List event subscriptions that belong to a specific partner topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 public static IEnumerable <EventSubscription> ListByPartnerTopic(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName)
 {
     return(operations.ListByPartnerTopicAsync(resourceGroupName, partnerTopicName).GetAwaiter().GetResult());
 }