Пример #1
0
 /// <summary>
 /// Gets a list of service tag information resources with pagination.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location that will be used as a reference for cloud (not as a filter
 /// based on location, you will get the list of service tags with prefix
 /// details across all regions but limited to the cloud that your subscription
 /// belongs to).
 /// </param>
 /// <param name='noAddressPrefixes'>
 /// Do not return address prefixes for the tag(s).
 /// </param>
 /// <param name='tagName'>
 /// Return tag information for a particular tag.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ServiceTagInformation> > ListAsync(this IServiceTagInformationOperations operations, string location, bool?noAddressPrefixes = default(bool?), string tagName = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, noAddressPrefixes, tagName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Gets a list of service tag information resources with pagination.
 /// </summary>
 /// <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 <ServiceTagInformation> > ListNextAsync(this IServiceTagInformationOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #3
0
 /// <summary>
 /// Gets a list of service tag information resources with pagination.
 /// </summary>
 /// <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 <ServiceTagInformation> ListNext(this IServiceTagInformationOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Пример #4
0
 /// <summary>
 /// Gets a list of service tag information resources with pagination.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location that will be used as a reference for cloud (not as a filter
 /// based on location, you will get the list of service tags with prefix
 /// details across all regions but limited to the cloud that your subscription
 /// belongs to).
 /// </param>
 /// <param name='noAddressPrefixes'>
 /// Do not return address prefixes for the tag(s).
 /// </param>
 /// <param name='tagName'>
 /// Return tag information for a particular tag.
 /// </param>
 public static IPage <ServiceTagInformation> List(this IServiceTagInformationOperations operations, string location, bool?noAddressPrefixes = default(bool?), string tagName = default(string))
 {
     return(operations.ListAsync(location, noAddressPrefixes, tagName).GetAwaiter().GetResult());
 }