Class CredentialApi
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.impl.pipeline.credential.CredentialApi
- All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable
public class CredentialApi
extends io.jenkins.blueocean.rest.model.Resource
Credential API implementation.
TODO: Remove it once proper REST API is implemented in Credentials plugin
- Author:
- Vivek Pandey
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCredentialApi
(com.cloudbees.plugins.credentials.CredentialsStoreAction ca, io.jenkins.blueocean.rest.Reachable parent) -
Method Summary
Modifier and TypeMethodDescriptionio.jenkins.blueocean.rest.model.CreateResponse
create
(net.sf.json.JSONObject body, org.kohsuke.stapler.StaplerRequest request) io.jenkins.blueocean.rest.model.Container<CredentialApi.CredentialDomain>
io.jenkins.blueocean.rest.hal.Link
getLink()
getStore()
Methods inherited from class io.jenkins.blueocean.rest.model.Resource
getLinks, getState
-
Field Details
-
DOMAIN_NAME
- See Also:
-
-
Constructor Details
-
CredentialApi
public CredentialApi(com.cloudbees.plugins.credentials.CredentialsStoreAction ca, io.jenkins.blueocean.rest.Reachable parent)
-
-
Method Details
-
getStore
-
create
@POST @WebMethod(name="") public io.jenkins.blueocean.rest.model.CreateResponse create(@JsonBody net.sf.json.JSONObject body, org.kohsuke.stapler.StaplerRequest request) throws IOException - Throws:
IOException
-
getDomains
@Navigable public io.jenkins.blueocean.rest.model.Container<CredentialApi.CredentialDomain> getDomains() -
getLink
public io.jenkins.blueocean.rest.hal.Link getLink()
-