/// <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); } }
/// <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); } }
/// <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); } }
/// <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()); }
/// <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(); }
/// <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(); }
/// <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()); }
/// <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()); }
/// <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()); }
/// <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()); }