/// <summary> /// Gets all custom IP prefixes in a resource group. /// </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 <CustomIpPrefix> > ListNextAsync(this ICustomIPPrefixesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the specified custom IP prefix in a specified resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='customIpPrefixName'> /// The name of the custom IP prefix. /// </param> /// <param name='expand'> /// Expands referenced resources. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CustomIpPrefix> GetAsync(this ICustomIPPrefixesOperations operations, string resourceGroupName, string customIpPrefixName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, customIpPrefixName, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates a custom IP prefix. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='customIpPrefixName'> /// The name of the custom IP prefix. /// </param> /// <param name='parameters'> /// Parameters supplied to the create or update custom IP prefix operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CustomIpPrefix> BeginCreateOrUpdateAsync(this ICustomIPPrefixesOperations operations, string resourceGroupName, string customIpPrefixName, CustomIpPrefix parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, customIpPrefixName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the specified custom IP prefix in a specified resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='customIpPrefixName'> /// The name of the custom IP prefix. /// </param> /// <param name='expand'> /// Expands referenced resources. /// </param> public static CustomIpPrefix Get(this ICustomIPPrefixesOperations operations, string resourceGroupName, string customIpPrefixName, string expand = default(string)) { return(operations.GetAsync(resourceGroupName, customIpPrefixName, expand).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified custom IP prefix. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='customIpPrefixName'> /// The name of the CustomIpPrefix. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this ICustomIPPrefixesOperations operations, string resourceGroupName, string customIpPrefixName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, customIpPrefixName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Gets all custom IP prefixes in a resource group. /// </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 <CustomIpPrefix> ListNext(this ICustomIPPrefixesOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified custom IP prefix. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='customIpPrefixName'> /// The name of the CustomIpPrefix. /// </param> public static void Delete(this ICustomIPPrefixesOperations operations, string resourceGroupName, string customIpPrefixName) { operations.DeleteAsync(resourceGroupName, customIpPrefixName).GetAwaiter().GetResult(); }
/// <summary> /// Creates or updates a custom IP prefix. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='customIpPrefixName'> /// The name of the custom IP prefix. /// </param> /// <param name='parameters'> /// Parameters supplied to the create or update custom IP prefix operation. /// </param> public static CustomIpPrefix BeginCreateOrUpdate(this ICustomIPPrefixesOperations operations, string resourceGroupName, string customIpPrefixName, CustomIpPrefix parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, customIpPrefixName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets all custom IP prefixes in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> public static IPage <CustomIpPrefix> List(this ICustomIPPrefixesOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the custom IP prefixes in a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <CustomIpPrefix> ListAll(this ICustomIPPrefixesOperations operations) { return(operations.ListAllAsync().GetAwaiter().GetResult()); }
/// <summary> /// Updates custom IP prefix tags. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='customIpPrefixName'> /// The name of the custom IP prefix. /// </param> /// <param name='parameters'> /// Parameters supplied to update custom IP prefix tags. /// </param> public static CustomIpPrefix UpdateTags(this ICustomIPPrefixesOperations operations, string resourceGroupName, string customIpPrefixName, TagsObject parameters) { return(operations.UpdateTagsAsync(resourceGroupName, customIpPrefixName, parameters).GetAwaiter().GetResult()); }