Class InstanceConfiguration
java.lang.Object
com.google.jenkins.plugins.computeengine.InstanceConfiguration
- All Implemented Interfaces:
Describable<InstanceConfiguration>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInstanceConfiguration
(String description, String namePrefix, String region, String zone, String machineType, String numExecutorsStr, String startupScript, boolean preemptible, String minCpuPlatform, String labels, String runAsUser, String bootDiskType, boolean bootDiskAutoDelete, String bootDiskSourceImageName, String bootDiskSourceImageProject, NetworkConfiguration networkConfiguration, NetworkInterfaceIpStackMode networkInterfaceIpStackMode, Boolean externalAddress, boolean useInternalAddress, boolean ignoreProxy, String networkTags, String serviceAccountEmail, Node.Mode mode, AcceleratorConfiguration acceleratorConfiguration, String retentionTimeMinutesStr, String launchTimeoutSecondsStr, String bootDiskSizeGbStr, boolean oneShot, String template, WindowsConfiguration windowsConfiguration, SshConfiguration sshConfiguration, boolean createSnapshot, String remoteFs, String javaExecPath, GoogleKeyCredential sshKeyCredential, Map<String, String> googleLabels, Integer numExecutors, Integer retentionTimeMinutes, Integer launchTimeoutSeconds, Long bootDiskSizeGb, Set<LabelAtom> labelSet, ComputeEngineCloud cloud) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendLabel
(String key, String value) void
appendLabels
(Map<String, String> labels) builder()
protected ComputeEngineCloud
getCloud()
Deprecated.int
getMode()
getZone()
com.google.api.services.compute.model.Instance
instance()
static Integer
intOrDefault
(String toParse, Integer defaultTo) boolean
boolean
boolean
boolean
boolean
boolean
static Long
longOrDefault
(String toParse, Long defaultTo) protected Object
Initializes transient propertiesvoid
setAcceleratorConfiguration
(AcceleratorConfiguration acceleratorConfiguration) void
setBootDiskAutoDelete
(boolean bootDiskAutoDelete) void
setBootDiskSizeGb
(Long bootDiskSizeGb) void
setBootDiskSizeGbStr
(String bootDiskSizeGbStr) void
setBootDiskSourceImageName
(String bootDiskSourceImageName) void
setBootDiskSourceImageProject
(String bootDiskSourceImageProject) void
setBootDiskType
(String bootDiskType) protected void
setCloud
(ComputeEngineCloud cloud) void
setCreateSnapshot
(boolean createSnapshot) void
setDescription
(String description) void
setExternalAddress
(Boolean externalAddress) Deprecated.void
setGoogleLabels
(Map<String, String> googleLabels) void
setIgnoreProxy
(boolean ignoreProxy) void
setJavaExecPath
(String javaExecPath) void
void
setLabelSet
(Set<LabelAtom> labelSet) void
setLabelString
(String labelString) void
setLaunchTimeoutSeconds
(Integer launchTimeoutSeconds) void
setLaunchTimeoutSecondsStr
(String launchTimeoutSecondsStr) void
setMachineType
(String machineType) void
setMinCpuPlatform
(String minCpuPlatform) void
void
setNamePrefix
(String namePrefix) void
setNetworkConfiguration
(NetworkConfiguration networkConfiguration) void
setNetworkInterfaceIpStackMode
(NetworkInterfaceIpStackMode networkInterfaceIpStackMode) void
setNetworkTags
(String networkTags) void
setNumExecutors
(Integer numExecutors) void
setNumExecutorsStr
(String numExecutorsStr) void
setOneShot
(boolean oneShot) void
setPreemptible
(boolean preemptible) void
void
setRemoteFs
(String remoteFs) void
setRetentionTimeMinutes
(Integer retentionTimeMinutes) void
setRetentionTimeMinutesStr
(String retentionTimeMinutesStr) void
setRunAsUser
(String runAsUser) void
setServiceAccountEmail
(String serviceAccountEmail) void
setSshConfiguration
(SshConfiguration sshConfiguration) void
setSshKeyCredential
(GoogleKeyCredential sshKeyCredential) void
setStartupScript
(String startupScript) void
setTemplate
(String template) void
setUseInternalAddress
(boolean useInternalAddress) void
setWindowsConfiguration
(WindowsConfiguration windowsConfiguration) void
-
Field Details
-
GUEST_ATTRIBUTES_METADATA_KEY
- See Also:
-
SSH_METADATA_KEY
- See Also:
-
DEFAULT_BOOT_DISK_SIZE_GB
-
DEFAULT_NUM_EXECUTORS
-
DEFAULT_LAUNCH_TIMEOUT_SECONDS
-
DEFAULT_RETENTION_TIME_MINUTES
-
DEFAULT_RUN_AS_USER
- See Also:
-
METADATA_LINUX_STARTUP_SCRIPT_KEY
- See Also:
-
METADATA_WINDOWS_STARTUP_SCRIPT_KEY
- See Also:
-
KNOWN_IMAGE_PROJECTS
-
cloud
-
-
Constructor Details
-
InstanceConfiguration
@DataBoundConstructor public InstanceConfiguration() -
InstanceConfiguration
public InstanceConfiguration(String description, String namePrefix, String region, String zone, String machineType, String numExecutorsStr, String startupScript, boolean preemptible, String minCpuPlatform, String labels, String runAsUser, String bootDiskType, boolean bootDiskAutoDelete, String bootDiskSourceImageName, String bootDiskSourceImageProject, NetworkConfiguration networkConfiguration, NetworkInterfaceIpStackMode networkInterfaceIpStackMode, Boolean externalAddress, boolean useInternalAddress, boolean ignoreProxy, String networkTags, String serviceAccountEmail, Node.Mode mode, AcceleratorConfiguration acceleratorConfiguration, String retentionTimeMinutesStr, String launchTimeoutSecondsStr, String bootDiskSizeGbStr, boolean oneShot, String template, @Nullable WindowsConfiguration windowsConfiguration, @Nullable SshConfiguration sshConfiguration, boolean createSnapshot, String remoteFs, String javaExecPath, GoogleKeyCredential sshKeyCredential, Map<String, String> googleLabels, Integer numExecutors, Integer retentionTimeMinutes, Integer launchTimeoutSeconds, Long bootDiskSizeGb, Set<LabelAtom> labelSet, ComputeEngineCloud cloud)
-
-
Method Details
-
setNumExecutorsStr
-
setLabelString
-
setNetworkTags
-
setRetentionTimeMinutesStr
-
setLaunchTimeoutSecondsStr
-
setBootDiskSizeGbStr
-
setOneShot
@DataBoundSetter public void setOneShot(boolean oneShot) -
setCreateSnapshot
@DataBoundSetter public void setCreateSnapshot(boolean createSnapshot) -
intOrDefault
-
longOrDefault
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<InstanceConfiguration>
-
getLabelString
-
getLabelSet
-
getDisplayName
-
getLaunchTimeoutMillis
public int getLaunchTimeoutMillis() -
appendLabels
-
appendLabel
-
provision
- Throws:
IOException
-
readResolve
Initializes transient properties -
instance
- Throws:
IOException
-
builder
-
getDescription
-
getNamePrefix
-
getRegion
-
getZone
-
getMachineType
-
getNumExecutorsStr
-
getStartupScript
-
isPreemptible
public boolean isPreemptible() -
getMinCpuPlatform
-
getLabels
-
getRunAsUser
-
getBootDiskType
-
isBootDiskAutoDelete
public boolean isBootDiskAutoDelete() -
getBootDiskSourceImageName
-
getBootDiskSourceImageProject
-
getNetworkConfiguration
-
getNetworkInterfaceIpStackMode
-
getExternalAddress
Deprecated. -
isUseInternalAddress
public boolean isUseInternalAddress() -
isIgnoreProxy
public boolean isIgnoreProxy() -
getNetworkTags
-
getServiceAccountEmail
-
getMode
-
getAcceleratorConfiguration
-
getRetentionTimeMinutesStr
-
getLaunchTimeoutSecondsStr
-
getBootDiskSizeGbStr
-
isOneShot
public boolean isOneShot() -
getTemplate
-
getWindowsConfiguration
-
getSshConfiguration
-
isCreateSnapshot
public boolean isCreateSnapshot() -
getRemoteFs
-
getJavaExecPath
-
getSshKeyCredential
-
getGoogleLabels
-
getNumExecutors
-
getRetentionTimeMinutes
-
getLaunchTimeoutSeconds
-
getBootDiskSizeGb
-
setDescription
-
setNamePrefix
-
setRegion
-
setZone
-
setMachineType
-
setStartupScript
-
setPreemptible
@DataBoundSetter public void setPreemptible(boolean preemptible) -
setMinCpuPlatform
-
setLabels
-
setRunAsUser
-
setBootDiskType
-
setBootDiskAutoDelete
@DataBoundSetter public void setBootDiskAutoDelete(boolean bootDiskAutoDelete) -
setBootDiskSourceImageName
-
setBootDiskSourceImageProject
-
setNetworkConfiguration
-
setNetworkInterfaceIpStackMode
@DataBoundSetter public void setNetworkInterfaceIpStackMode(NetworkInterfaceIpStackMode networkInterfaceIpStackMode) -
setExternalAddress
Deprecated. -
setUseInternalAddress
@DataBoundSetter public void setUseInternalAddress(boolean useInternalAddress) -
setIgnoreProxy
@DataBoundSetter public void setIgnoreProxy(boolean ignoreProxy) -
setServiceAccountEmail
-
setMode
-
setAcceleratorConfiguration
@DataBoundSetter public void setAcceleratorConfiguration(AcceleratorConfiguration acceleratorConfiguration) -
setTemplate
-
setWindowsConfiguration
@DataBoundSetter public void setWindowsConfiguration(@Nullable WindowsConfiguration windowsConfiguration) -
setSshConfiguration
-
setRemoteFs
-
setJavaExecPath
-
setSshKeyCredential
-
setGoogleLabels
-
setNumExecutors
-
setRetentionTimeMinutes
-
setLaunchTimeoutSeconds
-
setBootDiskSizeGb
-
setLabelSet
-
getCloud
-
setCloud
-