Exemple #1
0
 /// <summary>
 /// Get a Target Type resources for given location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='locationName'>
 /// String that represents a Location resource name.
 /// </param>
 /// <param name='targetTypeName'>
 /// String that represents a Target Type resource name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <TargetType> GetAsync(this ITargetTypesOperations operations, string locationName, string targetTypeName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(locationName, targetTypeName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Get a list of Target Type resources for given location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='locationName'>
 /// String that represents a Location resource name.
 /// </param>
 /// <param name='continuationToken'>
 /// String that sets the continuation token.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <TargetType> > ListAsync(this ITargetTypesOperations operations, string locationName, string continuationToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(locationName, continuationToken, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <summary>
 /// Get a list of Target Type resources for given location.
 /// </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 <TargetType> > ListNextAsync(this ITargetTypesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #4
0
 /// <summary>
 /// Get a Target Type resources for given location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='locationName'>
 /// String that represents a Location resource name.
 /// </param>
 /// <param name='targetTypeName'>
 /// String that represents a Target Type resource name.
 /// </param>
 public static TargetType Get(this ITargetTypesOperations operations, string locationName, string targetTypeName)
 {
     return(operations.GetAsync(locationName, targetTypeName).GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <summary>
 /// Get a list of Target Type resources for given location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='locationName'>
 /// String that represents a Location resource name.
 /// </param>
 /// <param name='continuationToken'>
 /// String that sets the continuation token.
 /// </param>
 public static IPage <TargetType> List(this ITargetTypesOperations operations, string locationName, string continuationToken = default(string))
 {
     return(operations.ListAsync(locationName, continuationToken).GetAwaiter().GetResult());
 }
Exemple #6
0
 /// <summary>
 /// Get a list of Target Type resources for given location.
 /// </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 <TargetType> ListNext(this ITargetTypesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }