Class Ticketing
- java.lang.Object
-
- com.stackone.stackone_client_java.Ticketing
-
public class Ticketing extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
async
public AsyncTicketing async()
Switches to the async SDK.- Returns:
- The async SDK
-
listTickets
public TicketingListTicketsRequestBuilder listTickets()
List TicketsRetrieve a paginated list of tickets.
- Returns:
- The call builder
-
listTickets
public TicketingListTicketsResponse listTickets(TicketingListTicketsRequest request)
List TicketsRetrieve a paginated list of tickets.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listTickets
public TicketingListTicketsResponse listTickets(TicketingListTicketsRequest request, java.util.Optional<Options> options)
List TicketsRetrieve a paginated list of tickets.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createTicket
public TicketingCreateTicketRequestBuilder createTicket()
Create TicketCreate a new ticket record.
- Returns:
- The call builder
-
createTicket
public TicketingCreateTicketResponse createTicket(java.lang.String xAccountId, TicketingTicketCreateRequestDto ticketingTicketCreateRequestDto)
Create TicketCreate a new ticket record.
- Parameters:
xAccountId- The account identifierticketingTicketCreateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createTicket
public TicketingCreateTicketResponse createTicket(java.lang.String xAccountId, TicketingTicketCreateRequestDto ticketingTicketCreateRequestDto, java.util.Optional<Options> options)
Create TicketCreate a new ticket record.
- Parameters:
xAccountId- The account identifierticketingTicketCreateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getTicket
public TicketingGetTicketRequestBuilder getTicket()
Get TicketRetrieve a single ticket by its identifier.
- Returns:
- The call builder
-
getTicket
public TicketingGetTicketResponse getTicket(TicketingGetTicketRequest request)
Get TicketRetrieve a single ticket by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getTicket
public TicketingGetTicketResponse getTicket(TicketingGetTicketRequest request, java.util.Optional<Options> options)
Get TicketRetrieve a single ticket by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateTicket
public TicketingUpdateTicketRequestBuilder updateTicket()
Update TicketUpdate an existing ticket record by its identifier.
- Returns:
- The call builder
-
updateTicket
public TicketingUpdateTicketResponse updateTicket(java.lang.String xAccountId, java.lang.String id, TicketingTicketUpdateRequestDto ticketingTicketUpdateRequestDto)
Update TicketUpdate an existing ticket record by its identifier.
- Parameters:
xAccountId- The account identifierid-ticketingTicketUpdateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateTicket
public TicketingUpdateTicketResponse updateTicket(java.lang.String xAccountId, java.lang.String id, TicketingTicketUpdateRequestDto ticketingTicketUpdateRequestDto, java.util.Optional<Options> options)
Update TicketUpdate an existing ticket record by its identifier.
- Parameters:
xAccountId- The account identifierid-ticketingTicketUpdateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listUsers
public TicketingListUsersRequestBuilder listUsers()
List UsersRetrieve a paginated list of users.
- Returns:
- The call builder
-
listUsers
public TicketingListUsersResponse listUsers(TicketingListUsersRequest request)
List UsersRetrieve a paginated list of users.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listUsers
public TicketingListUsersResponse listUsers(TicketingListUsersRequest request, java.util.Optional<Options> options)
List UsersRetrieve a paginated list of users.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getUser
public TicketingGetUserRequestBuilder getUser()
Get UserRetrieve a single user by their identifier.
- Returns:
- The call builder
-
getUser
public TicketingGetUserResponse getUser(TicketingGetUserRequest request)
Get UserRetrieve a single user by their identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getUser
public TicketingGetUserResponse getUser(TicketingGetUserRequest request, java.util.Optional<Options> options)
Get UserRetrieve a single user by their identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listComments
public TicketingListCommentsRequestBuilder listComments()
List CommentsRetrieve a paginated list of comments for a ticket.
- Returns:
- The call builder
-
listComments
public TicketingListCommentsResponse listComments(TicketingListCommentsRequest request)
List CommentsRetrieve a paginated list of comments for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listComments
public TicketingListCommentsResponse listComments(TicketingListCommentsRequest request, java.util.Optional<Options> options)
List CommentsRetrieve a paginated list of comments for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getComment
public TicketingGetCommentRequestBuilder getComment()
Get CommentRetrieve a single comment by its identifier for a ticket.
- Returns:
- The call builder
-
getComment
public TicketingGetCommentResponse getComment(TicketingGetCommentRequest request)
Get CommentRetrieve a single comment by its identifier for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getComment
public TicketingGetCommentResponse getComment(TicketingGetCommentRequest request, java.util.Optional<Options> options)
Get CommentRetrieve a single comment by its identifier for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
downloadTicketingAttachment
public TicketingDownloadTicketingAttachmentRequestBuilder downloadTicketingAttachment()
Download AttachmentDownload the attachment file from a ticket.
- Returns:
- The call builder
-
downloadTicketingAttachment
public TicketingDownloadTicketingAttachmentResponse downloadTicketingAttachment(TicketingDownloadTicketingAttachmentRequest request)
Download AttachmentDownload the attachment file from a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
downloadTicketingAttachment
public TicketingDownloadTicketingAttachmentResponse downloadTicketingAttachment(TicketingDownloadTicketingAttachmentRequest request, java.util.Optional<Options> options)
Download AttachmentDownload the attachment file from a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listAttachments
public TicketingListAttachmentsRequestBuilder listAttachments()
List AttachmentsRetrieve a paginated list of attachment details for a ticket.
- Returns:
- The call builder
-
listAttachments
public TicketingListAttachmentsResponse listAttachments(TicketingListAttachmentsRequest request)
List AttachmentsRetrieve a paginated list of attachment details for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listAttachments
public TicketingListAttachmentsResponse listAttachments(TicketingListAttachmentsRequest request, java.util.Optional<Options> options)
List AttachmentsRetrieve a paginated list of attachment details for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAttachment
public TicketingGetAttachmentRequestBuilder getAttachment()
Get AttachmentRetrieve the details of a single attachment for a ticket.
- Returns:
- The call builder
-
getAttachment
public TicketingGetAttachmentResponse getAttachment(TicketingGetAttachmentRequest request)
Get AttachmentRetrieve the details of a single attachment for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAttachment
public TicketingGetAttachmentResponse getAttachment(TicketingGetAttachmentRequest request, java.util.Optional<Options> options)
Get AttachmentRetrieve the details of a single attachment for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listTicketTypes
public TicketingListTicketTypesRequestBuilder listTicketTypes()
List Ticket TypesRetrieve a paginated list of all ticket types.
- Returns:
- The call builder
-
listTicketTypes
public TicketingListTicketTypesResponse listTicketTypes(TicketingListTicketTypesRequest request)
List Ticket TypesRetrieve a paginated list of all ticket types.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listTicketTypes
public TicketingListTicketTypesResponse listTicketTypes(TicketingListTicketTypesRequest request, java.util.Optional<Options> options)
List Ticket TypesRetrieve a paginated list of all ticket types.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getTicketType
public TicketingGetTicketTypeRequestBuilder getTicketType()
Get Ticket TypeRetrieve a single ticket type by its identifier.
- Returns:
- The call builder
-
getTicketType
public TicketingGetTicketTypeResponse getTicketType(TicketingGetTicketTypeRequest request)
Get Ticket TypeRetrieve a single ticket type by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getTicketType
public TicketingGetTicketTypeResponse getTicketType(TicketingGetTicketTypeRequest request, java.util.Optional<Options> options)
Get Ticket TypeRetrieve a single ticket type by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listProjects
public TicketingListProjectsRequestBuilder listProjects()
List ProjectsRetrieve a paginated list of projects.
- Returns:
- The call builder
-
listProjects
public TicketingListProjectsResponse listProjects(TicketingListProjectsRequest request)
List ProjectsRetrieve a paginated list of projects.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listProjects
public TicketingListProjectsResponse listProjects(TicketingListProjectsRequest request, java.util.Optional<Options> options)
List ProjectsRetrieve a paginated list of projects.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getProject
public TicketingGetProjectRequestBuilder getProject()
Get ProjectRetrieve a single project by its identifier.
- Returns:
- The call builder
-
getProject
public TicketingGetProjectResponse getProject(TicketingGetProjectRequest request)
Get ProjectRetrieve a single project by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getProject
public TicketingGetProjectResponse getProject(TicketingGetProjectRequest request, java.util.Optional<Options> options)
Get ProjectRetrieve a single project by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listProjectComponents
public TicketingListProjectComponentsRequestBuilder listProjectComponents()
List Project ComponentsRetrieve a paginated list of project components.
- Returns:
- The call builder
-
listProjectComponents
public TicketingListProjectComponentsResponse listProjectComponents(TicketingListProjectComponentsRequest request)
List Project ComponentsRetrieve a paginated list of project components.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listProjectComponents
public TicketingListProjectComponentsResponse listProjectComponents(TicketingListProjectComponentsRequest request, java.util.Optional<Options> options)
List Project ComponentsRetrieve a paginated list of project components.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getProjectComponent
public TicketingGetProjectComponentRequestBuilder getProjectComponent()
Get Project ComponentRetrieve a single project component by its identifier.
- Returns:
- The call builder
-
getProjectComponent
public TicketingGetProjectComponentResponse getProjectComponent(TicketingGetProjectComponentRequest request)
Get Project ComponentRetrieve a single project component by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getProjectComponent
public TicketingGetProjectComponentResponse getProjectComponent(TicketingGetProjectComponentRequest request, java.util.Optional<Options> options)
Get Project ComponentRetrieve a single project component by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listProjectTicketTypes
public TicketingListProjectTicketTypesRequestBuilder listProjectTicketTypes()
List Project Ticket TypesRetrieve a paginated list of ticket types for a project.
- Returns:
- The call builder
-
listProjectTicketTypes
public TicketingListProjectTicketTypesResponse listProjectTicketTypes(TicketingListProjectTicketTypesRequest request)
List Project Ticket TypesRetrieve a paginated list of ticket types for a project.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listProjectTicketTypes
public TicketingListProjectTicketTypesResponse listProjectTicketTypes(TicketingListProjectTicketTypesRequest request, java.util.Optional<Options> options)
List Project Ticket TypesRetrieve a paginated list of ticket types for a project.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listTicketStatuses
public TicketingListTicketStatusesRequestBuilder listTicketStatuses()
List Ticket StatusesRetrieve a paginated list of statuses for a ticket.
- Returns:
- The call builder
-
listTicketStatuses
public TicketingListTicketStatusesResponse listTicketStatuses(TicketingListTicketStatusesRequest request)
List Ticket StatusesRetrieve a paginated list of statuses for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listTicketStatuses
public TicketingListTicketStatusesResponse listTicketStatuses(TicketingListTicketStatusesRequest request, java.util.Optional<Options> options)
List Ticket StatusesRetrieve a paginated list of statuses for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
-