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
All Implemented Interfaces:
Saveable, Loadable, OnMaster, IconSpec
Enclosing class:
GoogleRobotMetadataCredentials

public static class GoogleRobotMetadataCredentials.Descriptor extends GoogleRobotCredentials.AbstractGoogleRobotCredentialsDescriptor
Descriptor for our unlimited service account extension.
  • Method Details

    • 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 class Descriptor<com.cloudbees.plugins.credentials.Credentials>
    • getModule

      The module to use for instantiating depended upon resources
      Overrides:
      getModule in class GoogleRobotCredentials.AbstractGoogleRobotCredentialsDescriptor
    • defaultProject

      @Nullable public String defaultProject()
      When we are running on GCE, we should be able to pre-populate the projectId field with the "right" project id.
      Returns:
      the project associated with this GCE instance, or null.
    • defaultScopes

      public List<String> defaultScopes()
      When we are running on GCE, we should be able to pre-populate the projectId field with the "right" project id.
      Returns:
      the project associated with this GCE instance, or null.