C# Class DD.CBU.CaasDeploy.Library.Macros.NextAvailablePublicIpMacro

A macro to retrieve the next available public IP and create a new public IP block if necessary.
Inheritance: IMacro
Mostrar archivo Open project: DimensionDataCBUSydney/CaaSDeploy Class Usage Examples

Public Methods

Method Description
SubstituteTokensInString ( DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext runtimeContext, DD.CBU.CaasDeploy.Library.Contracts.TaskContext taskContext, string input ) : Task

Substitutes the property tokens in the supplied string.

Private Methods

Method Description
AddPublicIpBlock ( DD.CBU.CaasDeploy.Library.Models.CaasAccountDetails accountDetails, string networkDomainId ) : System.Threading.Tasks.Task

Adds a new public IP address block.

IncrementIpAddress ( string baseIp, int offset ) : string

Increments the IP address.

ListAvailablePublicIps ( DD.CBU.CaasDeploy.Library.Models.CaasAccountDetails accountDetails, string networkDomainId ) : Task>

Lists the available public IP addresses.

Method Details

SubstituteTokensInString() public method

Substitutes the property tokens in the supplied string.
public SubstituteTokensInString ( DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext runtimeContext, DD.CBU.CaasDeploy.Library.Contracts.TaskContext taskContext, string input ) : Task
runtimeContext DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext The runtime context.
taskContext DD.CBU.CaasDeploy.Library.Contracts.TaskContext The task execution context.
input string The input string.
return Task