Class AzureTemplateOptions
- java.lang.Object
-
- org.jclouds.compute.options.RunScriptOptions
-
- org.jclouds.compute.options.TemplateOptions
-
- org.jclouds.azurecompute.arm.compute.options.AzureTemplateOptions
-
- All Implemented Interfaces:
Cloneable
public class AzureTemplateOptions extends TemplateOptions implements Cloneable
Azure ARM custom options
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AzureTemplateOptions.Builder
-
Nested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions
TemplateOptions.ImmutableTemplateOptions
-
Nested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions
RunScriptOptions.ImmutableRunScriptOptions
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.options.TemplateOptions
blockUntilRunning, inboundPorts, networks, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadata
-
Fields inherited from class org.jclouds.compute.options.RunScriptOptions
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
-
-
Constructor Summary
Constructors Constructor Description AzureTemplateOptions()
-
Method Summary
-
Methods inherited from class org.jclouds.compute.options.TemplateOptions
as, authorizePublicKey, blockOnComplete, blockOnPort, blockUntilRunning, dontAuthorizePublicKey, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, inboundPorts, installPrivateKey, nameTask, networks, networks, nodeNames, overrideAuthenticateSudo, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, tags, userMetadata, userMetadata, wrapInInitScript
-
Methods inherited from class org.jclouds.compute.options.RunScriptOptions
copyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
-
-
-
-
Method Detail
-
availabilitySet
public AzureTemplateOptions availabilitySet(AvailabilitySet availabilitySet)
Sets the availability set where the nodes will be configured. If it does not exist jclouds will create a new one with the given configuration.
-
availabilitySet
public AzureTemplateOptions availabilitySet(String availabilitySetName)
Sets the availability set where the nodes will be configured. The availability set must exist.
-
resourceGroup
public AzureTemplateOptions resourceGroup(String resourceGroup)
The resource group where the new resources will be created.
-
dataDisks
public AzureTemplateOptions dataDisks(Iterable<DataDisk> dataDisks)
-
dataDisks
public AzureTemplateOptions dataDisks(DataDisk... dataDisks)
-
ipOptions
public AzureTemplateOptions ipOptions(Iterable<IpOptions> ipOptions)
Configure the NICs that will be attached to the created nodes.Note that the number of NICs that can be attached depends on the size of the virtual machine, and that the guest operating system needs to be prepared to set up all the configured interfaces.
Depending on the image being used, a cloud-init or bootstrap script might be needed to make the interface setup.
-
ipOptions
public AzureTemplateOptions ipOptions(IpOptions... ipOptions)
-
windowsConfiguration
public AzureTemplateOptions windowsConfiguration(OSProfile.WindowsConfiguration windowsConfiguration)
Windows configuration parameters- See Also:
- docs
-
secrets
public AzureTemplateOptions secrets(Iterable<? extends Secrets> secrets)
Import certificates in the Windows Certificate Store- See Also:
- docs
-
customData
public AzureTemplateOptions customData(String customData)
Custom data (for cloud-init) for the Azure ARM API
-
osDiskStorageType
public AzureTemplateOptions osDiskStorageType(StorageAccountType osDiskStorageType)
-
planPublisher
public AzureTemplateOptions planPublisher(String planPublisher)
-
planName
public AzureTemplateOptions planName(String planName)
-
planProduct
public AzureTemplateOptions planProduct(String planProduct)
-
getAvailabilitySet
public AvailabilitySet getAvailabilitySet()
-
getAvailabilitySetName
public String getAvailabilitySetName()
-
getResourceGroup
public String getResourceGroup()
-
getWindowsConfiguration
public OSProfile.WindowsConfiguration getWindowsConfiguration()
-
getCustomData
public String getCustomData()
-
getOsDiskStorageType
public StorageAccountType getOsDiskStorageType()
-
getPlanPublisher
public String getPlanPublisher()
-
getPlanName
public String getPlanName()
-
getPlanProduct
public String getPlanProduct()
-
clone
public AzureTemplateOptions clone()
- Overrides:
clone
in classTemplateOptions
-
copyTo
public void copyTo(TemplateOptions to)
- Overrides:
copyTo
in classTemplateOptions
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classTemplateOptions
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTemplateOptions
-
string
public com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classTemplateOptions
-
-