Package org.kohsuke.github
Class GHDeployment
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHDeployment
-
public class GHDeployment extends GHObject
Represents a deployment
-
-
Field Summary
Fields Modifier and Type Field Description protected GHUsercreatorprotected Stringdescriptionprotected Stringenvironmentprotected Objectpayloadprotected Stringrefprotected Stringrepository_urlprotected Stringshaprotected Stringstatuses_urlprotected Stringtask-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHDeployment()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GHDeploymentStatusBuildercreateStatus(GHDeploymentState state)Create status gh deployment status builder.GHUsergetCreator()Gets creator.StringgetEnvironment()Gets environment.URLgetHtmlUrl()Deprecated.This object has no HTML URL.StringgetPayload()Gets payload.StringgetRef()Gets ref.URLgetRepositoryUrl()Gets repository url.StringgetSha()Gets sha.URLgetStatusesUrl()Gets statuses url.StringgetTask()Gets task.PagedIterable<GHDeploymentStatus>listStatuses()List statuses paged iterable.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Field Detail
-
sha
protected String sha
-
ref
protected String ref
-
task
protected String task
-
payload
protected Object payload
-
environment
protected String environment
-
description
protected String description
-
statuses_url
protected String statuses_url
-
repository_url
protected String repository_url
-
creator
protected GHUser creator
-
-
Method Detail
-
getStatusesUrl
public URL getStatusesUrl()
Gets statuses url.- Returns:
- the statuses url
-
getRepositoryUrl
public URL getRepositoryUrl()
Gets repository url.- Returns:
- the repository url
-
getTask
public String getTask()
Gets task.- Returns:
- the task
-
getPayload
public String getPayload()
Gets payload.- Returns:
- the payload
-
getEnvironment
public String getEnvironment()
Gets environment.- Returns:
- the environment
-
getCreator
public GHUser getCreator() throws IOException
Gets creator.- Returns:
- the creator
- Throws:
IOException- the io exception
-
getRef
public String getRef()
Gets ref.- Returns:
- the ref
-
getSha
public String getSha()
Gets sha.- Returns:
- the sha
-
getHtmlUrl
public URL getHtmlUrl()
Deprecated.This object has no HTML URL.Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
createStatus
public GHDeploymentStatusBuilder createStatus(GHDeploymentState state)
Create status gh deployment status builder.- Parameters:
state- the state- Returns:
- the gh deployment status builder
-
listStatuses
public PagedIterable<GHDeploymentStatus> listStatuses()
List statuses paged iterable.- Returns:
- the paged iterable
-
-