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.EnhancedCheckMethod
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
defaultProject()
When we are running on GCE, we should be able to pre-populate theprojectId
field with the "right" project id.List<String>
defaultScopes()
When we are running on GCE, we should be able to pre-populate theprojectId
field with the "right" project id.String
getDisplayName()
GoogleRobotMetadataCredentialsModule
getModule()
The module to use for instantiating depended upon resourcesstatic GoogleRobotMetadataCredentials.Descriptor
metadataDescriptor()
This 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
doCheckProjectId
-
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsDescriptor
calcAutoCompleteSettings, calcFillSettings, doFillScopeItems, findContextInPath, findContextInPath, getCheckMethod, getCredentialsPage, getIconClassName, isApplicable, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, lookupContext, unwrapContext
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, configure, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
metadataDescriptor
@Extension @Nullable public static GoogleRobotMetadataCredentials.Descriptor metadataDescriptor() throws IOException
This factory method determines whether the host machine has an associated metadata server, and if so registers the metadata-based robot credential.- Throws:
IOException
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<com.cloudbees.plugins.credentials.Credentials>
-
getModule
public GoogleRobotMetadataCredentialsModule getModule()
The module to use for instantiating depended upon resources- Overrides:
getModule
in classGoogleRobotCredentials.AbstractGoogleRobotCredentialsDescriptor
-
defaultProject
@Nullable public String defaultProject()
When we are running on GCE, we should be able to pre-populate theprojectId
field with the "right" project id.- Returns:
- the project associated with this GCE instance, or null.
-
-