Package org.kohsuke.github
Class GHProjectsV2Item
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHProjectsV2Item
-
public class GHProjectsV2Item extends GHObject
A Projects V2 item in the organization.Projects V2 are not attached to a repository but to an organization, even if it is possible to create shortcuts at the repository level.
This event exposes the GraphQL object (more or less - the ids are handled differently for instance) directly. The new Projects V2 API is only available through GraphQL so for now you cannot execute any actions on this object.
- Author:
- Guillaume Smet
- See Also:
- The GraphQL API for Projects V2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGHProjectsV2Item.ContentTypeThe Enum ContentType.
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHProjectsV2Item()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DategetArchivedAt()Gets the archived at.StringgetContentNodeId()Gets the content node id.GHProjectsV2Item.ContentTypegetContentType()Gets the content type.GHUsergetCreator()Gets the creator.URLgetHtmlUrl()Gets the html url.StringgetProjectNodeId()Gets the project node id.GitHubgetRoot()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Method Detail
-
getProjectNodeId
public String getProjectNodeId()
Gets the project node id.- Returns:
- the project node id
-
getContentNodeId
public String getContentNodeId()
Gets the content node id.- Returns:
- the content node id
-
getContentType
public GHProjectsV2Item.ContentType getContentType()
Gets the content type.- Returns:
- the content type
-
getCreator
public GHUser getCreator() throws IOException
Gets the creator.- Returns:
- the creator
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getArchivedAt
public Date getArchivedAt()
Gets the archived at.- Returns:
- the archived at
-
getHtmlUrl
public URL getHtmlUrl()
Gets the html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- the html url
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
-