/// <summary> /// Gets a list that allows to build a topology view of a subscription and /// location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <TopologyResource> > ListByHomeRegionAsync(this ITopologyOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByHomeRegionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a specific topology component. /// </summary> /// <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. The name is /// case insensitive. /// </param> /// <param name='topologyResourceName'> /// Name of a topology resources collection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TopologyResource> GetAsync(this ITopologyOperations operations, string resourceGroupName, string topologyResourceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, topologyResourceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a specific topology component. /// </summary> /// <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. The name is /// case insensitive. /// </param> /// <param name='topologyResourceName'> /// Name of a topology resources collection. /// </param> public static TopologyResource Get(this ITopologyOperations operations, string resourceGroupName, string topologyResourceName) { return(operations.GetAsync(resourceGroupName, topologyResourceName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list that allows to build a topology view of a subscription and /// location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <TopologyResource> ListByHomeRegion(this ITopologyOperations operations) { return(operations.ListByHomeRegionAsync().GetAwaiter().GetResult()); }
/// <summary> /// Gets a list that allows to build a topology view of a subscription and /// 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 <TopologyResource> ListByHomeRegionNext(this ITopologyOperations operations, string nextPageLink) { return(operations.ListByHomeRegionNextAsync(nextPageLink).GetAwaiter().GetResult()); }