/// <summary> /// Creates or updates a Private DNS zone. Does not modify Links to virtual /// networks or DNS records within the zone. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='privateZoneName'> /// The name of the Private DNS zone (without a terminating dot). /// </param> /// <param name='parameters'> /// Parameters supplied to the CreateOrUpdate operation. /// </param> /// <param name='ifMatch'> /// The ETag of the Private DNS zone. Omit this value to always overwrite the /// current zone. Specify the last-seen ETag value to prevent accidentally /// overwriting any concurrent changes. /// </param> /// <param name='ifNoneMatch'> /// Set to '*' to allow a new Private DNS zone to be created, but to prevent /// updating an existing zone. Other values will be ignored. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateZone> CreateOrUpdateAsync(this IPrivateZonesOperations operations, string resourceGroupName, string privateZoneName, PrivateZone parameters, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateZoneName, parameters, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the Private DNS zones within 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 <PrivateZone> > ListByResourceGroupNextAsync(this IPrivateZonesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the Private DNS zones in all resource groups in a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// The maximum number of Private DNS zones to return. If not specified, /// returns up to 100 zones. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PrivateZone> > ListAsync(this IPrivateZonesOperations operations, int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a Private DNS zone. Retrieves the zone properties, but not the virtual /// networks links or the record sets within the zone. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='privateZoneName'> /// The name of the Private DNS zone (without a terminating dot). /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateZone> GetAsync(this IPrivateZonesOperations operations, string resourceGroupName, string privateZoneName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateZoneName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates a Private DNS zone. Does not modify Links to virtual /// networks or DNS records within the zone. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='privateZoneName'> /// The name of the Private DNS zone (without a terminating dot). /// </param> /// <param name='parameters'> /// Parameters supplied to the CreateOrUpdate operation. /// </param> /// <param name='ifMatch'> /// The ETag of the Private DNS zone. Omit this value to always overwrite the /// current zone. Specify the last-seen ETag value to prevent accidentally /// overwriting any concurrent changes. /// </param> /// <param name='ifNoneMatch'> /// Set to '*' to allow a new Private DNS zone to be created, but to prevent /// updating an existing zone. Other values will be ignored. /// </param> public static PrivateZone CreateOrUpdate(this IPrivateZonesOperations operations, string resourceGroupName, string privateZoneName, PrivateZone parameters, string ifMatch = default(string), string ifNoneMatch = default(string)) { return(operations.CreateOrUpdateAsync(resourceGroupName, privateZoneName, parameters, ifMatch, ifNoneMatch).GetAwaiter().GetResult()); }
/// <summary> /// Lists the Private DNS zones within 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 <PrivateZone> ListByResourceGroupNext(this IPrivateZonesOperations operations, string nextPageLink) { return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a Private DNS zone. WARNING: All DNS records in the zone will also /// be deleted. This operation cannot be undone. Private DNS zone cannot be /// deleted unless all virtual network links to it are removed. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='privateZoneName'> /// The name of the Private DNS zone (without a terminating dot). /// </param> /// <param name='ifMatch'> /// The ETag of the Private DNS zone. Omit this value to always delete the /// current zone. Specify the last-seen ETag value to prevent accidentally /// deleting any concurrent changes. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IPrivateZonesOperations operations, string resourceGroupName, string privateZoneName, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateZoneName, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes a Private DNS zone. WARNING: All DNS records in the zone will also /// be deleted. This operation cannot be undone. Private DNS zone cannot be /// deleted unless all virtual network links to it are removed. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='privateZoneName'> /// The name of the Private DNS zone (without a terminating dot). /// </param> /// <param name='ifMatch'> /// The ETag of the Private DNS zone. Omit this value to always delete the /// current zone. Specify the last-seen ETag value to prevent accidentally /// deleting any concurrent changes. /// </param> public static void BeginDelete(this IPrivateZonesOperations operations, string resourceGroupName, string privateZoneName, string ifMatch = default(string)) { operations.BeginDeleteAsync(resourceGroupName, privateZoneName, ifMatch).GetAwaiter().GetResult(); }
/// <summary> /// Lists the Private DNS zones within 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> /// <param name='top'> /// The maximum number of record sets to return. If not specified, returns up /// to 100 record sets. /// </param> public static IPage <PrivateZone> ListByResourceGroup(this IPrivateZonesOperations operations, string resourceGroupName, int?top = default(int?)) { return(operations.ListByResourceGroupAsync(resourceGroupName, top).GetAwaiter().GetResult()); }
/// <summary> /// Lists the Private DNS zones in all resource groups in a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// The maximum number of Private DNS zones to return. If not specified, /// returns up to 100 zones. /// </param> public static IPage <PrivateZone> List(this IPrivateZonesOperations operations, int?top = default(int?)) { return(operations.ListAsync(top).GetAwaiter().GetResult()); }
/// <summary> /// Gets a Private DNS zone. Retrieves the zone properties, but not the virtual /// networks links or the record sets within the zone. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='privateZoneName'> /// The name of the Private DNS zone (without a terminating dot). /// </param> public static PrivateZone Get(this IPrivateZonesOperations operations, string resourceGroupName, string privateZoneName) { return(operations.GetAsync(resourceGroupName, privateZoneName).GetAwaiter().GetResult()); }
/// <summary> /// Lists the Private DNS zones within 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> /// <param name='top'> /// The maximum number of record sets to return. If not specified, returns up /// to 100 record sets. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PrivateZoneInner> > ListByResourceGroupAsync(this IPrivateZonesOperations operations, string resourceGroupName, int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }