Class GoogleRobotMetadataCredentials.Descriptor
java.lang.Object
hudson.model.Descriptor<com.cloudbees.plugins.credentials.Credentials>
com.cloudbees.plugins.credentials.CredentialsDescriptor
com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.AbstractGoogleRobotCredentialsDescriptor
com.google.jenkins.plugins.credentials.oauth.GoogleRobotMetadataCredentials.Descriptor
- Enclosing class:
- GoogleRobotMetadataCredentials
public static class GoogleRobotMetadataCredentials.Descriptor
extends GoogleRobotCredentials.AbstractGoogleRobotCredentialsDescriptor
Descriptor for our unlimited service account extension.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.CredentialsDescriptor
com.cloudbees.plugins.credentials.CredentialsDescriptor.EnhancedCheckMethodNested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Method Summary
Modifier and TypeMethodDescriptionWhen we are running on GCE, we should be able to pre-populate theprojectIdfield with the "right" project id.When we are running on GCE, we should be able to pre-populate theprojectIdfield with the "right" project id.The module to use for instantiating depended upon resourcesThis factory method determines whether the host machine has an associated metadata server, and if so registers the metadata-based robot credential.Methods inherited from class com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.AbstractGoogleRobotCredentialsDescriptor
doCheckProjectIdMethods inherited from class com.cloudbees.plugins.credentials.CredentialsDescriptor
calcAutoCompleteSettings, calcFillSettings, doFillScopeItems, findContextInPath, findContextInPath, getCheckMethod, getCredentialsPage, getIconClassName, isApplicable, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, lookupContext, unwrapContextMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, 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
-
Method Details
-
metadataDescriptor
@Extension @Nullable public static GoogleRobotMetadataCredentials.Descriptor metadataDescriptor() throws IOExceptionThis factory method determines whether the host machine has an associated metadata server, and if so registers the metadata-based robot credential.- Throws:
IOException
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<com.cloudbees.plugins.credentials.Credentials>
-
getModule
The module to use for instantiating depended upon resources- Overrides:
getModulein classGoogleRobotCredentials.AbstractGoogleRobotCredentialsDescriptor
-
defaultProject
When we are running on GCE, we should be able to pre-populate theprojectIdfield with the "right" project id.- Returns:
- the project associated with this GCE instance, or null.
-
defaultScopes
When we are running on GCE, we should be able to pre-populate theprojectIdfield with the "right" project id.- Returns:
- the project associated with this GCE instance, or null.
-