/// <summary> /// Gets information about the specified private link resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> /// <param name='privateLinkResourceName'> /// The private link resource name. This must be unique within the account. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateLinkResource> GetAsync(this IPrivateLinkResourceOperations operations, string resourceGroupName, string accountName, string privateLinkResourceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, privateLinkResourceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets information about the specified private link resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> /// <param name='privateLinkResourceName'> /// The private link resource name. This must be unique within the account. /// </param> public static PrivateLinkResource Get(this IPrivateLinkResourceOperations operations, string resourceGroupName, string accountName, string privateLinkResourceName) { return(operations.GetAsync(resourceGroupName, accountName, privateLinkResourceName).GetAwaiter().GetResult()); }
/// <summary> /// Lists all of the private link resources in the specified account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> /// <param name='maxresults'> /// The maximum number of items to return in the response. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PrivateLinkResource> > ListByBatchAccountAsync(this IPrivateLinkResourceOperations operations, string resourceGroupName, string accountName, int?maxresults = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByBatchAccountWithHttpMessagesAsync(resourceGroupName, accountName, maxresults, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all of the private link resources in the specified account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> /// <param name='maxresults'> /// The maximum number of items to return in the response. /// </param> public static IPage <PrivateLinkResource> ListByBatchAccount(this IPrivateLinkResourceOperations operations, string resourceGroupName, string accountName, int?maxresults = default(int?)) { return(operations.ListByBatchAccountAsync(resourceGroupName, accountName, maxresults).GetAwaiter().GetResult()); }
/// <summary> /// Lists all of the private link resources in the specified account. /// </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 <PrivateLinkResource> > ListByBatchAccountNextAsync(this IPrivateLinkResourceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByBatchAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all of the private link resources in the specified account. /// </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 <PrivateLinkResource> ListByBatchAccountNext(this IPrivateLinkResourceOperations operations, string nextPageLink) { return(operations.ListByBatchAccountNextAsync(nextPageLink).GetAwaiter().GetResult()); }