public abstract class VPC extends Cloud
Modifier and Type | Class and Description |
---|---|
static class |
VPC.DescriptorImpl |
Cloud.CloudState
ExtensionPoint.LegacyInstancesAreScopedToHudson
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Modifier | Constructor and Description |
---|---|
protected |
VPC(String id,
String credentialsId,
String sshKeysCredentialsId,
String instanceCapStr,
String vpcID,
List<? extends ECSTemplate> templates) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProvision(Cloud.CloudState state) |
static com.huaweicloud.sdk.core.auth.ICredential |
createBasicCredential(String credentialsId) |
static com.huaweicloud.sdk.ecs.v2.EcsClient |
createEcsClient(String region,
String credentialsId) |
static com.huaweicloud.sdk.eip.v2.EipClient |
createEipClient(String region,
String credentialsId) |
static com.huaweicloud.sdk.core.auth.ICredential |
createGlobalCredential(String credentialsId) |
static com.huaweicloud.sdk.iam.v3.IamClient |
createIamClient(String region,
String credentialsId) |
void |
doAttach(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String id)
Debug command to attach to a running instance.
|
org.kohsuke.stapler.HttpResponse |
doProvision(String template) |
static AccessKeyCredentials |
getCredentials(String credentialsId) |
String |
getCredentialsId() |
abstract URL |
getEc2EndpointUrl() |
com.huaweicloud.sdk.ecs.v2.EcsClient |
getEcsClient() |
com.huaweicloud.sdk.eip.v2.EipClient |
getEipClient() |
int |
getInstanceCap() |
String |
getInstanceCapStr() |
com.huaweicloud.sdk.ecs.v2.model.NovaKeypair |
getKeyPair()
Gets the
NovaKeypairDetail used for the launch. |
String |
getRegion() |
String |
getSshKeysCredentialsId() |
ECSTemplate |
getTemplate(String template) |
List<ECSTemplate> |
getTemplates() |
Collection<ECSTemplate> |
getTemplates(Label label)
Gets list of
ECSTemplate that matches Label . |
String |
getVpcID() |
static void |
log(Logger logger,
Level level,
TaskListener listener,
String message) |
static void |
log(Logger logger,
Level level,
TaskListener listener,
String message,
Throwable exception) |
Collection<NodeProvisioner.PlannedNode> |
provision(Cloud.CloudState state,
int excessWorkload) |
void |
provision(ECSTemplate t,
int number) |
protected Object |
readResolve() |
ECSPrivateKey |
resolvePrivateKey() |
void |
setRegion(String region) |
all, canProvision, getACL, getDescriptor, getDisplayName, getSearchUrl, getUrl, provision
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
protected VPC(String id, @CheckForNull String credentialsId, @CheckForNull String sshKeysCredentialsId, String instanceCapStr, String vpcID, List<? extends ECSTemplate> templates)
public String getCredentialsId()
public String getRegion()
@DataBoundSetter public void setRegion(String region)
protected Object readResolve()
@CheckForNull public String getSshKeysCredentialsId()
public String getInstanceCapStr()
public String getVpcID()
public List<ECSTemplate> getTemplates()
@CheckForNull public ECSTemplate getTemplate(String template)
public Collection<ECSTemplate> getTemplates(Label label)
ECSTemplate
that matches Label
.public int getInstanceCap()
public com.huaweicloud.sdk.ecs.v2.EcsClient getEcsClient()
public com.huaweicloud.sdk.eip.v2.EipClient getEipClient()
public abstract URL getEc2EndpointUrl() throws IOException
IOException
@CheckForNull public ECSPrivateKey resolvePrivateKey()
public void doAttach(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String id) throws javax.servlet.ServletException, IOException, com.huaweicloud.sdk.core.exception.SdkException
javax.servlet.ServletException
IOException
com.huaweicloud.sdk.core.exception.SdkException
public org.kohsuke.stapler.HttpResponse doProvision(@QueryParameter String template) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
@CheckForNull public com.huaweicloud.sdk.ecs.v2.model.NovaKeypair getKeyPair() throws com.huaweicloud.sdk.core.exception.SdkException, IOException
NovaKeypairDetail
used for the launch.com.huaweicloud.sdk.core.exception.SdkException
IOException
public Collection<NodeProvisioner.PlannedNode> provision(Cloud.CloudState state, int excessWorkload)
public boolean canProvision(Cloud.CloudState state)
canProvision
in class Cloud
public void provision(ECSTemplate t, int number)
public static void log(Logger logger, Level level, TaskListener listener, String message)
public static void log(Logger logger, Level level, TaskListener listener, String message, Throwable exception)
public static com.huaweicloud.sdk.core.auth.ICredential createGlobalCredential(String credentialsId)
public static com.huaweicloud.sdk.core.auth.ICredential createBasicCredential(String credentialsId)
public static com.huaweicloud.sdk.iam.v3.IamClient createIamClient(String region, String credentialsId)
public static com.huaweicloud.sdk.ecs.v2.EcsClient createEcsClient(String region, String credentialsId)
public static com.huaweicloud.sdk.eip.v2.EipClient createEipClient(String region, String credentialsId)
public static AccessKeyCredentials getCredentials(@CheckForNull String credentialsId)
Copyright © 2016–2021. All rights reserved.