Package sh.createos.jenkins.sandbox
Class CreateOSCloud.DescriptorImpl
- Enclosing class:
CreateOSCloud
Exposes CreateOS cloud metadata, options, and validation to Jenkins.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckApiUrl(String value) Validates that the configured API endpoint uses TLS, except for local test servers.Returns the secret-text credentials available to Jenkins administrators.doTestConnection(String apiUrl, String credentialsId) Tests the configured credential against the CreateOS API.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<Cloud>
-
doFillCredentialsIdItems
Returns the secret-text credentials available to Jenkins administrators. -
doCheckApiUrl
Validates that the configured API endpoint uses TLS, except for local test servers. -
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter String apiUrl, @QueryParameter String credentialsId) Tests the configured credential against the CreateOS API.
-