Ejemplo n.º 1
0
 /// <summary>
 /// Get a nested event subscription for domain topic.
 /// </summary>
 /// <remarks>
 /// Get properties of a nested event subscription for a domain 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='domainName'>
 /// Name of the top level domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the domain topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EventSubscription> GetAsync(this IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// List all nested event subscriptions for a specific domain topic.
 /// </summary>
 /// <remarks>
 /// List all event subscriptions that have been created for a specific domain
 /// 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> > ListNextAsync(this IDomainTopicEventSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// List all nested event subscriptions for a specific domain topic.
 /// </summary>
 /// <remarks>
 /// List all event subscriptions that have been created for a specific domain
 /// 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='domainName'>
 /// Name of the top level domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the domain 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> > ListAsync(this IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string filter = default(string), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, domainName, topicName, filter, top, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Update a nested event subscription for a domain topic.
 /// </summary>
 /// <remarks>
 /// Update an existing event subscription for a domain 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='domainName'>
 /// Name of the domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be updated.
 /// </param>
 /// <param name='eventSubscriptionUpdateParameters'>
 /// Updated event subscription information.
 /// </param>
 public static EventSubscription BeginUpdate(this IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, eventSubscriptionUpdateParameters).GetAwaiter().GetResult());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Delete a nested event subscription for a domain topic.
 /// </summary>
 /// <remarks>
 /// Delete a nested existing event subscription for a domain 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='domainName'>
 /// Name of the top level domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the domain topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be deleted. 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 IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Delete a nested event subscription for a domain topic.
 /// </summary>
 /// <remarks>
 /// Delete a nested existing event subscription for a domain 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='domainName'>
 /// Name of the top level domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the domain topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be deleted. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 public static void BeginDelete(this IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName)
 {
     operations.BeginDeleteAsync(resourceGroupName, domainName, topicName, eventSubscriptionName).GetAwaiter().GetResult();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Get a nested event subscription for domain topic.
 /// </summary>
 /// <remarks>
 /// Get properties of a nested event subscription for a domain 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='domainName'>
 /// Name of the top level domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the domain topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription.
 /// </param>
 public static EventSubscription Get(this IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName)
 {
     return(operations.GetAsync(resourceGroupName, domainName, topicName, eventSubscriptionName).GetAwaiter().GetResult());
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Create or update a nested event subscription to a domain topic.
 /// </summary>
 /// <remarks>
 /// Asynchronously creates a new event subscription or updates an existing
 /// event subscription.
 /// </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='domainName'>
 /// Name of the top level domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the domain 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 IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, eventSubscriptionInfo).GetAwaiter().GetResult());
 }
Ejemplo n.º 9
0
 /// <summary>
 /// List all nested event subscriptions for a specific domain topic.
 /// </summary>
 /// <remarks>
 /// List all event subscriptions that have been created for a specific domain
 /// 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> ListNext(this IDomainTopicEventSubscriptionsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Ejemplo n.º 10
0
 /// <summary>
 /// List all nested event subscriptions for a specific domain topic.
 /// </summary>
 /// <remarks>
 /// List all event subscriptions that have been created for a specific domain
 /// 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='domainName'>
 /// Name of the top level domain.
 /// </param>
 /// <param name='topicName'>
 /// Name of the domain 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> List(this IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string filter = default(string), int?top = default(int?))
 {
     return(operations.ListAsync(resourceGroupName, domainName, topicName, filter, top).GetAwaiter().GetResult());
 }