public class Connector extends Object
github-api
.Modifier and Type | Class and Description |
---|---|
static class |
Connector.UnusedConnectionDestroyer |
Modifier and Type | Field and Description |
---|---|
static org.kohsuke.github.RateLimitHandler |
CUSTOMIZED
Fail immediately and throw a customized exception.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkApiUrlValidity(org.kohsuke.github.GitHub gitHub,
com.cloudbees.plugins.credentials.common.StandardCredentials credentials) |
static FormValidation |
checkScanCredentials(Item context,
String apiUri,
String scanCredentialsId)
Checks the credential ID for use as scan credentials in the supplied context against the supplied API endpoint.
|
static FormValidation |
checkScanCredentials(jenkins.scm.api.SCMSourceOwner context,
String apiUri,
String scanCredentialsId)
Deprecated.
|
static org.kohsuke.github.GitHub |
connect(String apiUri,
com.cloudbees.plugins.credentials.common.StandardCredentials credentials) |
static ListBoxModel |
listCheckoutCredentials(Item context,
String apiUri)
Populates a
ListBoxModel with the checkout credentials appropriate for the supplied context against the
supplied API endpoint. |
static ListBoxModel |
listCheckoutCredentials(jenkins.scm.api.SCMSourceOwner context,
String apiUri)
Deprecated.
|
static ListBoxModel |
listScanCredentials(Item context,
String apiUri)
Populates a
ListBoxModel with the scan credentials appropriate for the supplied context against the
supplied API endpoint. |
static ListBoxModel |
listScanCredentials(jenkins.scm.api.SCMSourceOwner context,
String apiUri)
Deprecated.
|
static com.cloudbees.plugins.credentials.common.StandardCredentials |
lookupScanCredentials(Item context,
String apiUri,
String scanCredentialsId)
Resolves the specified scan credentials in the specified context for use against the specified API endpoint.
|
static com.cloudbees.plugins.credentials.common.StandardCredentials |
lookupScanCredentials(jenkins.scm.api.SCMSourceOwner context,
String apiUri,
String scanCredentialsId)
Deprecated.
|
static void |
release(org.kohsuke.github.GitHub hub) |
public static final org.kohsuke.github.RateLimitHandler CUSTOMIZED
@NonNull @Deprecated public static ListBoxModel listScanCredentials(@CheckForNull jenkins.scm.api.SCMSourceOwner context, String apiUri)
listCheckoutCredentials(Item, String)
.context
- the context.apiUri
- the api endpoint.ListBoxModel
.@NonNull public static ListBoxModel listScanCredentials(@CheckForNull Item context, String apiUri)
ListBoxModel
with the scan credentials appropriate for the supplied context against the
supplied API endpoint.context
- the context.apiUri
- the api endpoint.ListBoxModel
.@Deprecated public static FormValidation checkScanCredentials(@CheckForNull jenkins.scm.api.SCMSourceOwner context, String apiUri, String scanCredentialsId)
checkScanCredentials(Item, String, String)
context
- the context.apiUri
- the api endpoint.scanCredentialsId
- the credentials ID.FormValidation
results.public static FormValidation checkScanCredentials(@CheckForNull Item context, String apiUri, String scanCredentialsId)
context
- the context.apiUri
- the api endpoint.scanCredentialsId
- the credentials ID.FormValidation
results.@Deprecated @CheckForNull public static com.cloudbees.plugins.credentials.common.StandardCredentials lookupScanCredentials(@CheckForNull jenkins.scm.api.SCMSourceOwner context, @CheckForNull String apiUri, @CheckForNull String scanCredentialsId)
lookupScanCredentials(Item, String, String)
context
- the context.apiUri
- the API endpoint.scanCredentialsId
- the credentials to resolve.StandardCredentials
or null
@CheckForNull public static com.cloudbees.plugins.credentials.common.StandardCredentials lookupScanCredentials(@CheckForNull Item context, @CheckForNull String apiUri, @CheckForNull String scanCredentialsId)
context
- the context.apiUri
- the API endpoint.scanCredentialsId
- the credentials to resolve.StandardCredentials
or null
@NonNull public static ListBoxModel listCheckoutCredentials(@CheckForNull jenkins.scm.api.SCMSourceOwner context, String apiUri)
listCheckoutCredentials(Item, String)
context
- the context.apiUri
- the API endpoint.StandardCredentials
or null
@NonNull public static ListBoxModel listCheckoutCredentials(@CheckForNull Item context, String apiUri)
ListBoxModel
with the checkout credentials appropriate for the supplied context against the
supplied API endpoint.context
- the context.apiUri
- the api endpoint.ListBoxModel
.public static void checkApiUrlValidity(@Nonnull org.kohsuke.github.GitHub gitHub, @CheckForNull com.cloudbees.plugins.credentials.common.StandardCredentials credentials) throws IOException
IOException
@Nonnull public static org.kohsuke.github.GitHub connect(@CheckForNull String apiUri, @CheckForNull com.cloudbees.plugins.credentials.common.StandardCredentials credentials) throws IOException
IOException
public static void release(@CheckForNull org.kohsuke.github.GitHub hub)
Copyright © 2016–2020. All rights reserved.