Ejemplo n.º 1
0
 /// <summary>
 /// List domain topics.
 /// </summary>
 /// <remarks>
 /// List all the topics in a domain.
 /// </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 <DomainTopic> > ListByDomainNextAsync(this IDomainTopicsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByDomainNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get a domain topic.
 /// </summary>
 /// <remarks>
 /// Get properties of 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='domainTopicName'>
 /// Name of the topic.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DomainTopic> GetAsync(this IDomainTopicsOperations operations, string resourceGroupName, string domainName, string domainTopicName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, domainName, domainTopicName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// List domain topics.
 /// </summary>
 /// <remarks>
 /// List all the topics in a domain.
 /// </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'>
 /// Domain name.
 /// </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 <DomainTopic> > ListByDomainAsync(this IDomainTopicsOperations operations, string resourceGroupName, string domainName, string filter = default(string), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByDomainWithHttpMessagesAsync(resourceGroupName, domainName, filter, top, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Create or update a domain topic.
 /// </summary>
 /// <remarks>
 /// Asynchronously creates or updates a new domain topic with the specified
 /// parameters.
 /// </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='domainTopicName'>
 /// Name of the domain topic.
 /// </param>
 public static DomainTopic CreateOrUpdate(this IDomainTopicsOperations operations, string resourceGroupName, string domainName, string domainTopicName)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, domainName, domainTopicName).GetAwaiter().GetResult());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// List domain topics.
 /// </summary>
 /// <remarks>
 /// List all the topics in a domain.
 /// </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 <DomainTopic> ListByDomainNext(this IDomainTopicsOperations operations, string nextPageLink)
 {
     return(operations.ListByDomainNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Delete a domain topic.
 /// </summary>
 /// <remarks>
 /// Delete existing 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='domainTopicName'>
 /// Name of the domain topic.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IDomainTopicsOperations operations, string resourceGroupName, string domainName, string domainTopicName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, domainName, domainTopicName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Delete a domain topic.
 /// </summary>
 /// <remarks>
 /// Delete existing 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='domainTopicName'>
 /// Name of the domain topic.
 /// </param>
 public static void BeginDelete(this IDomainTopicsOperations operations, string resourceGroupName, string domainName, string domainTopicName)
 {
     operations.BeginDeleteAsync(resourceGroupName, domainName, domainTopicName).GetAwaiter().GetResult();
 }
Ejemplo n.º 8
0
 /// <summary>
 /// List domain topics.
 /// </summary>
 /// <remarks>
 /// List all the topics in a domain.
 /// </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'>
 /// Domain name.
 /// </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 <DomainTopic> ListByDomain(this IDomainTopicsOperations operations, string resourceGroupName, string domainName, string filter = default(string), int?top = default(int?))
 {
     return(operations.ListByDomainAsync(resourceGroupName, domainName, filter, top).GetAwaiter().GetResult());
 }