Documentation
¶
Index ¶
- type APIClient
- func (c *APIClient) CallAPI(path string, method string, postBody interface{}, ...) (*resty.Response, error)
- func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string
- func (c *APIClient) SelectHeaderAccept(accepts []string) string
- func (c *APIClient) SelectHeaderContentType(contentTypes []string) string
- type APIResponse
- type BpmnFile
- type BpmnFileAttributes
- type BpmnImportItem
- type Client
- func (a Client) AddEvent(processId string, eventCreateItem EventCreateItem) (*EventItem, *APIResponse, error)
- func (a Client) AddEventConnector(processId string, eventId string, ...) (*EventConnector1, *APIResponse, error)
- func (a Client) AddFlow(processId string, flowCreateItem FlowCreateItem) (*FlowItem, *APIResponse, error)
- func (a Client) AddGateway(processId string, gatewayCreateItem GatewayCreateItem) (*GatewayItem, *APIResponse, error)
- func (a Client) AddGroup(groupCreateItem GroupCreateItem) (*GroupItem, *APIResponse, error)
- func (a Client) AddGroupsToTask(processId string, taskId string, taskAddGroupsItem TaskAddGroupsItem) (*ResultSuccess, *APIResponse, error)
- func (a Client) AddInputOutput(processId string, taskId string, inputOutputCreateItem InputOutputCreateItem) (*InputOutputItem, *APIResponse, error)
- func (a Client) AddInstance(processId string, instanceCreateItem InstanceCreateItem) (*InstanceItem, *APIResponse, error)
- func (a Client) AddOauthClient(userId string, oauthClientCreateItem OauthClientCreateItem) (*OauthClientItem, *APIResponse, error)
- func (a Client) AddProcess(processCreateItem ProcessCreateItem) (*ProcessItem, *APIResponse, error)
- func (a Client) AddTask(processId string, taskCreateItem TaskCreateItem) (*TaskItem, *APIResponse, error)
- func (a Client) AddTaskConnector(processId string, taskId string, ...) (*TaskConnector1, *APIResponse, error)
- func (a Client) AddUser(userCreateItem UserCreateItem) (*UserItem, *APIResponse, error)
- func (a Client) AddUsersToGroup(id string, groupAddUsersItem GroupAddUsersItem) (*ResultSuccess, *APIResponse, error)
- func (a Client) CallImport(importItem ImportItem) (*ProcessCollection1, *APIResponse, error)
- func (a Client) DeleteEvent(processId string, eventId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteEventConnector(processId string, eventId string, connectorId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteFlow(processId string, flowId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteGateway(processId string, gatewayId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteGroup(id string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteInputOutput(processId string, taskId string, inputoutputUid string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteInstance(processId string, instanceId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteOauthClient(userId string, clientId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteProcess(id string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteTask(processId string, taskId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteTaskConnector(processId string, taskId string, connectorId string) (*ResultSuccess, *APIResponse, error)
- func (a Client) DeleteUser(id string) (*ResultSuccess, *APIResponse, error)
- func (a Client) EventTrigger(processId string, eventId string, ...) (*DataModelItem1, *APIResponse, error)
- func (a Client) EventWebhook(processId string, eventId string, anyVariable string) (*string, *APIResponse, error)
- func (a Client) FindByFieldInsideDataModel(processId string, searchParam string, page int32, perPage int32) (*DataModelCollection, *APIResponse, error)
- func (a Client) FindDataModel(processId string, instanceId string, page int32, perPage int32) (*DataModelItem1, *APIResponse, error)
- func (a Client) FindEventById(processId string, eventId string) (*EventItem, *APIResponse, error)
- func (a Client) FindEventConnectorById(processId string, eventId string, connectorId string) (*EventConnector1, *APIResponse, error)
- func (a Client) FindEventConnectors(processId string, eventId string, page int32, perPage int32) (*EventConnectorsCollection, *APIResponse, error)
- func (a Client) FindEvents(processId string, page int32, perPage int32) (*EventCollection, *APIResponse, error)
- func (a Client) FindFlowById(processId string, flowId string) (*FlowItem, *APIResponse, error)
- func (a Client) FindFlows(processId string, page int32, perPage int32) (*FlowCollection, *APIResponse, error)
- func (a Client) FindGatewayById(processId string, gatewayId string) (*GatewayItem, *APIResponse, error)
- func (a Client) FindGateways(processId string, page int32, perPage int32) (*GatewayCollection, *APIResponse, error)
- func (a Client) FindGroupById(id string) (*GroupItem, *APIResponse, error)
- func (a Client) FindGroups(page int32, perPage int32) (*GroupCollection, *APIResponse, error)
- func (a Client) FindInputOutputById(processId string, taskId string, inputoutputUid string) (*InputOutputItem, *APIResponse, error)
- func (a Client) FindInputOutputs(processId string, taskId string, page int32, perPage int32) (*InputOutputCollection, *APIResponse, error)
- func (a Client) FindInstanceById(processId string, instanceId string) (*InstanceItem, *APIResponse, error)
- func (a Client) FindInstances(processId string, page int32, perPage int32) (*InstanceCollection, *APIResponse, error)
- func (a Client) FindOauthClientById(userId string, clientId string) (*OauthClientItem, *APIResponse, error)
- func (a Client) FindOauthClients(userId string, page int32, perPage int32) (*OauthClientCollection, *APIResponse, error)
- func (a Client) FindProcessById(id string) (*ProcessItem, *APIResponse, error)
- func (a Client) FindProcesses(page int32, perPage int32) (*ProcessCollection, *APIResponse, error)
- func (a Client) FindTaskById(processId string, taskId string) (*TaskItem, *APIResponse, error)
- func (a Client) FindTaskConnectorById(processId string, taskId string, connectorId string) (*TaskConnector1, *APIResponse, error)
- func (a Client) FindTaskConnectors(processId string, taskId string, page int32, perPage int32) (*TaskConnectorsCollection, *APIResponse, error)
- func (a Client) FindTaskInstanceById(taskInstanceId string, page int32, perPage int32) (*InlineResponse200, *APIResponse, error)
- func (a Client) FindTaskInstances(page int32, perPage int32) (*TaskInstanceCollection, *APIResponse, error)
- func (a Client) FindTaskInstancesByInstanceAndTaskId(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
- func (a Client) FindTaskInstancesByInstanceAndTaskIdDelegated(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
- func (a Client) FindTaskInstancesByInstanceAndTaskIdStarted(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
- func (a Client) FindTasks(processId string, page int32, perPage int32) (*TaskCollection, *APIResponse, error)
- func (a Client) FindTokens(processId string, instanceId string, page int32, perPage int32) (*TokenCollection, *APIResponse, error)
- func (a Client) FindUserById(id string) (*UserItem, *APIResponse, error)
- func (a Client) FindUsers(page int32, perPage int32) (*UserCollection, *APIResponse, error)
- func (a Client) ImportBpmnFile(bpmnImportItem BpmnImportItem) (*ProcessCollection1, *APIResponse, error)
- func (a Client) MyselfUser(page int32, perPage int32) (*UserItem, *APIResponse, error)
- func (a Client) RemoveGroupsFromTask(processId string, taskId string, taskRemoveGroupsItem TaskRemoveGroupsItem) (*ResultSuccess, *APIResponse, error)
- func (a Client) RemoveUsersFromGroup(id string, groupRemoveUsersItem GroupRemoveUsersItem) (*ResultSuccess, *APIResponse, error)
- func (a Client) SyncGroupsToTask(processId string, taskId string, taskSyncGroupsItem TaskSyncGroupsItem) (*ResultSuccess, *APIResponse, error)
- func (a Client) SyncUsersToGroup(id string, groupSyncUsersItem GroupSyncUsersItem) (*ResultSuccess, *APIResponse, error)
- func (a Client) UpdateEvent(processId string, eventId string, eventUpdateItem EventUpdateItem) (*EventItem, *APIResponse, error)
- func (a Client) UpdateEventConnector(processId string, eventId string, connectorId string, ...) (*EventConnector1, *APIResponse, error)
- func (a Client) UpdateFlow(processId string, flowId string, flowUpdateItem FlowUpdateItem) (*FlowItem, *APIResponse, error)
- func (a Client) UpdateGateway(processId string, gatewayId string, gatewayUpdateItem GatewayUpdateItem) (*GatewayItem, *APIResponse, error)
- func (a Client) UpdateGroup(id string, groupUpdateItem GroupUpdateItem) (*GroupItem, *APIResponse, error)
- func (a Client) UpdateInputOutput(processId string, taskId string, inputoutputUid string, ...) (*InputOutputItem, *APIResponse, error)
- func (a Client) UpdateInstance(processId string, instanceId string, instanceUpdateItem InstanceUpdateItem) (*InstanceItem, *APIResponse, error)
- func (a Client) UpdateOauthClient(userId string, clientId string, oauthClientUpdateItem OauthClientUpdateItem) (*OauthClientItem, *APIResponse, error)
- func (a Client) UpdateProcess(id string, processUpdateItem ProcessUpdateItem) (*ProcessItem, *APIResponse, error)
- func (a Client) UpdateTask(processId string, taskId string, taskUpdateItem TaskUpdateItem) (*TaskItem, *APIResponse, error)
- func (a Client) UpdateTaskConnector(processId string, taskId string, connectorId string, ...) (*TaskConnector1, *APIResponse, error)
- func (a Client) UpdateTaskInstance(taskInstanceId string, taskInstanceUpdateItem TaskInstanceUpdateItem) (*InlineResponse200, *APIResponse, error)
- func (a Client) UpdateUser(id string, userUpdateItem UserUpdateItem) (*UserItem, *APIResponse, error)
- type Configuration
- type DataModel
- type DataModelAttributes
- type DataModelCollection
- type DataModelItem
- type DataModelItem1
- type DataModelItemAttributes
- type ErrorArray
- type Event
- type EventAttributes
- type EventCollection
- type EventConnector
- type EventConnector1
- type EventConnectorAttributes
- type EventConnectorCreateItem
- type EventConnectorUpdateItem
- type EventConnectorsCollection
- type EventCreateItem
- type EventItem
- type EventUpdateItem
- type Events
- func (a Events) AddEvent(processId string, eventCreateItem EventCreateItem) (*EventItem, *APIResponse, error)
- func (a Events) AddEventConnector(processId string, eventId string, ...) (*EventConnector1, *APIResponse, error)
- func (a Events) DeleteEvent(processId string, eventId string) (*ResultSuccess, *APIResponse, error)
- func (a Events) DeleteEventConnector(processId string, eventId string, connectorId string) (*ResultSuccess, *APIResponse, error)
- func (a Events) EventTrigger(processId string, eventId string, ...) (*DataModelItem1, *APIResponse, error)
- func (a Events) EventWebhook(processId string, eventId string, anyVariable string) (*string, *APIResponse, error)
- func (a Events) FindEventById(processId string, eventId string) (*EventItem, *APIResponse, error)
- func (a Events) FindEventConnectorById(processId string, eventId string, connectorId string) (*EventConnector1, *APIResponse, error)
- func (a Events) FindEventConnectors(processId string, eventId string, page int32, perPage int32) (*EventConnectorsCollection, *APIResponse, error)
- func (a Events) FindEvents(processId string, page int32, perPage int32) (*EventCollection, *APIResponse, error)
- func (a Events) UpdateEvent(processId string, eventId string, eventUpdateItem EventUpdateItem) (*EventItem, *APIResponse, error)
- func (a Events) UpdateEventConnector(processId string, eventId string, connectorId string, ...) (*EventConnector1, *APIResponse, error)
- type Flow
- type FlowAttributes
- type FlowCollection
- type FlowCreateItem
- type FlowItem
- type FlowUpdateItem
- type Flows
- func (a Flows) AddFlow(processId string, flowCreateItem FlowCreateItem) (*FlowItem, *APIResponse, error)
- func (a Flows) DeleteFlow(processId string, flowId string) (*ResultSuccess, *APIResponse, error)
- func (a Flows) FindFlowById(processId string, flowId string) (*FlowItem, *APIResponse, error)
- func (a Flows) FindFlows(processId string, page int32, perPage int32) (*FlowCollection, *APIResponse, error)
- func (a Flows) UpdateFlow(processId string, flowId string, flowUpdateItem FlowUpdateItem) (*FlowItem, *APIResponse, error)
- type Gateway
- type GatewayAttributes
- type GatewayCollection
- type GatewayCreateItem
- type GatewayItem
- type GatewayUpdateItem
- type Gateways
- func (a Gateways) AddGateway(processId string, gatewayCreateItem GatewayCreateItem) (*GatewayItem, *APIResponse, error)
- func (a Gateways) DeleteGateway(processId string, gatewayId string) (*ResultSuccess, *APIResponse, error)
- func (a Gateways) FindGatewayById(processId string, gatewayId string) (*GatewayItem, *APIResponse, error)
- func (a Gateways) FindGateways(processId string, page int32, perPage int32) (*GatewayCollection, *APIResponse, error)
- func (a Gateways) UpdateGateway(processId string, gatewayId string, gatewayUpdateItem GatewayUpdateItem) (*GatewayItem, *APIResponse, error)
- type Group
- type GroupAddUsersItem
- type GroupAttributes
- type GroupCollection
- type GroupCreateItem
- type GroupIds
- type GroupItem
- type GroupRemoveUsersItem
- type GroupSyncUsersItem
- type GroupUpdateItem
- type Groups
- func (a Groups) AddGroup(groupCreateItem GroupCreateItem) (*GroupItem, *APIResponse, error)
- func (a Groups) AddUsersToGroup(id string, groupAddUsersItem GroupAddUsersItem) (*ResultSuccess, *APIResponse, error)
- func (a Groups) DeleteGroup(id string) (*ResultSuccess, *APIResponse, error)
- func (a Groups) FindGroupById(id string) (*GroupItem, *APIResponse, error)
- func (a Groups) FindGroups(page int32, perPage int32) (*GroupCollection, *APIResponse, error)
- func (a Groups) RemoveUsersFromGroup(id string, groupRemoveUsersItem GroupRemoveUsersItem) (*ResultSuccess, *APIResponse, error)
- func (a Groups) SyncUsersToGroup(id string, groupSyncUsersItem GroupSyncUsersItem) (*ResultSuccess, *APIResponse, error)
- func (a Groups) UpdateGroup(id string, groupUpdateItem GroupUpdateItem) (*GroupItem, *APIResponse, error)
- type ImportFile
- type ImportFileAttributes
- type ImportItem
- type InlineResponse200
- type InputOutput
- type InputOutputAttributes
- type InputOutputCollection
- type InputOutputCreateItem
- type InputOutputItem
- type InputOutputUpdateItem
- type Inputoutput
- func (a Inputoutput) AddInputOutput(processId string, taskId string, inputOutputCreateItem InputOutputCreateItem) (*InputOutputItem, *APIResponse, error)
- func (a Inputoutput) DeleteInputOutput(processId string, taskId string, inputoutputUid string) (*ResultSuccess, *APIResponse, error)
- func (a Inputoutput) FindInputOutputById(processId string, taskId string, inputoutputUid string) (*InputOutputItem, *APIResponse, error)
- func (a Inputoutput) FindInputOutputs(processId string, taskId string, page int32, perPage int32) (*InputOutputCollection, *APIResponse, error)
- func (a Inputoutput) UpdateInputOutput(processId string, taskId string, inputoutputUid string, ...) (*InputOutputItem, *APIResponse, error)
- type Instance
- type InstanceAttributes
- type InstanceCollection
- type InstanceCreateItem
- type InstanceItem
- type InstanceUpdateItem
- type Meta
- type MetaLog
- type ModelError
- type Oauth
- func (a Oauth) AddOauthClient(userId string, oauthClientCreateItem OauthClientCreateItem) (*OauthClientItem, *APIResponse, error)
- func (a Oauth) FindOauthClientById(userId string, clientId string) (*OauthClientItem, *APIResponse, error)
- func (a Oauth) FindOauthClients(userId string, page int32, perPage int32) (*OauthClientCollection, *APIResponse, error)
- type OauthClient
- type OauthClientAttributes
- type OauthClientCollection
- type OauthClientCreateItem
- type OauthClientItem
- type OauthClientUpdateItem
- type Pagination
- type PaginationLinks
- type Process
- type ProcessAttributes
- type ProcessCollection
- type ProcessCollection1
- type ProcessCreateItem
- type ProcessInstances
- func (a ProcessInstances) AddInstance(processId string, instanceCreateItem InstanceCreateItem) (*InstanceItem, *APIResponse, error)
- func (a ProcessInstances) DeleteInstance(processId string, instanceId string) (*ResultSuccess, *APIResponse, error)
- func (a ProcessInstances) FindByFieldInsideDataModel(processId string, searchParam string, page int32, perPage int32) (*DataModelCollection, *APIResponse, error)
- func (a ProcessInstances) FindDataModel(processId string, instanceId string, page int32, perPage int32) (*DataModelItem1, *APIResponse, error)
- func (a ProcessInstances) FindInstanceById(processId string, instanceId string) (*InstanceItem, *APIResponse, error)
- func (a ProcessInstances) FindInstances(processId string, page int32, perPage int32) (*InstanceCollection, *APIResponse, error)
- func (a ProcessInstances) FindTaskInstancesByInstanceAndTaskId(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
- func (a ProcessInstances) FindTaskInstancesByInstanceAndTaskIdDelegated(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
- func (a ProcessInstances) FindTaskInstancesByInstanceAndTaskIdStarted(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
- func (a ProcessInstances) FindTokens(processId string, instanceId string, page int32, perPage int32) (*TokenCollection, *APIResponse, error)
- func (a ProcessInstances) UpdateInstance(processId string, instanceId string, instanceUpdateItem InstanceUpdateItem) (*InstanceItem, *APIResponse, error)
- type ProcessItem
- type ProcessUpdateItem
- type Processes
- func (a Processes) AddProcess(processCreateItem ProcessCreateItem) (*ProcessItem, *APIResponse, error)
- func (a Processes) CallImport(importItem ImportItem) (*ProcessCollection1, *APIResponse, error)
- func (a Processes) DeleteProcess(id string) (*ResultSuccess, *APIResponse, error)
- func (a Processes) FindProcessById(id string) (*ProcessItem, *APIResponse, error)
- func (a Processes) FindProcesses(page int32, perPage int32) (*ProcessCollection, *APIResponse, error)
- func (a Processes) ImportBpmnFile(bpmnImportItem BpmnImportItem) (*ProcessCollection1, *APIResponse, error)
- func (a Processes) UpdateProcess(id string, processUpdateItem ProcessUpdateItem) (*ProcessItem, *APIResponse, error)
- type ResultSuccess
- type ResultSuccessMeta
- type Task
- type TaskAddGroupsItem
- type TaskAttributes
- type TaskCollection
- type TaskConnector
- type TaskConnector1
- type TaskConnectorAttributes
- type TaskConnectorCreateItem
- type TaskConnectorUpdateItem
- type TaskConnectorsCollection
- type TaskCreateItem
- type TaskInstance
- type TaskInstanceAttributes
- type TaskInstanceCollection
- type TaskInstanceUpdateItem
- type TaskItem
- type TaskRemoveGroupsItem
- type TaskSyncGroupsItem
- type TaskUpdateItem
- type Tasks
- func (a Tasks) AddGroupsToTask(processId string, taskId string, taskAddGroupsItem TaskAddGroupsItem) (*ResultSuccess, *APIResponse, error)
- func (a Tasks) AddTask(processId string, taskCreateItem TaskCreateItem) (*TaskItem, *APIResponse, error)
- func (a Tasks) AddTaskConnector(processId string, taskId string, ...) (*TaskConnector1, *APIResponse, error)
- func (a Tasks) DeleteTask(processId string, taskId string) (*ResultSuccess, *APIResponse, error)
- func (a Tasks) DeleteTaskConnector(processId string, taskId string, connectorId string) (*ResultSuccess, *APIResponse, error)
- func (a Tasks) FindTaskById(processId string, taskId string) (*TaskItem, *APIResponse, error)
- func (a Tasks) FindTaskConnectorById(processId string, taskId string, connectorId string) (*TaskConnector1, *APIResponse, error)
- func (a Tasks) FindTaskConnectors(processId string, taskId string, page int32, perPage int32) (*TaskConnectorsCollection, *APIResponse, error)
- func (a Tasks) FindTaskInstanceById(taskInstanceId string, page int32, perPage int32) (*InlineResponse200, *APIResponse, error)
- func (a Tasks) FindTaskInstances(page int32, perPage int32) (*TaskInstanceCollection, *APIResponse, error)
- func (a Tasks) FindTasks(processId string, page int32, perPage int32) (*TaskCollection, *APIResponse, error)
- func (a Tasks) RemoveGroupsFromTask(processId string, taskId string, taskRemoveGroupsItem TaskRemoveGroupsItem) (*ResultSuccess, *APIResponse, error)
- func (a Tasks) SyncGroupsToTask(processId string, taskId string, taskSyncGroupsItem TaskSyncGroupsItem) (*ResultSuccess, *APIResponse, error)
- func (a Tasks) UpdateTask(processId string, taskId string, taskUpdateItem TaskUpdateItem) (*TaskItem, *APIResponse, error)
- func (a Tasks) UpdateTaskConnector(processId string, taskId string, connectorId string, ...) (*TaskConnector1, *APIResponse, error)
- func (a Tasks) UpdateTaskInstance(taskInstanceId string, taskInstanceUpdateItem TaskInstanceUpdateItem) (*InlineResponse200, *APIResponse, error)
- type Token
- type TokenAttributes
- type TokenCollection
- type TriggerEventCreateItem
- type User
- type UserAttributes
- type UserCollection
- type UserCreateItem
- type UserIds
- type UserItem
- type UserUpdateItem
- type Users
- func (a Users) AddUser(userCreateItem UserCreateItem) (*UserItem, *APIResponse, error)
- func (a Users) DeleteUser(id string) (*ResultSuccess, *APIResponse, error)
- func (a Users) FindUserById(id string) (*UserItem, *APIResponse, error)
- func (a Users) FindUsers(page int32, perPage int32) (*UserCollection, *APIResponse, error)
- func (a Users) MyselfUser(page int32, perPage int32) (*UserItem, *APIResponse, error)
- func (a Users) UpdateUser(id string, userUpdateItem UserUpdateItem) (*UserItem, *APIResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
}
func (*APIClient) ParameterToString ¶
func (*APIClient) SelectHeaderAccept ¶
func (*APIClient) SelectHeaderContentType ¶
type APIResponse ¶
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type BpmnFile ¶
type BpmnFile struct {
Type_ string `json:"type,omitempty"`
Attributes BpmnFileAttributes `json:"attributes,omitempty"`
}
type BpmnFileAttributes ¶
type BpmnFileAttributes struct {
Bpmn string `json:"bpmn,omitempty"`
}
type BpmnImportItem ¶
type BpmnImportItem struct {
Data BpmnFile `json:"data,omitempty"`
}
type Client ¶
type Client struct {
Configuration Configuration
}
func NewClientWithBasePath ¶
func (Client) AddEvent ¶
func (a Client) AddEvent(processId string, eventCreateItem EventCreateItem) (*EventItem, *APIResponse, error)
*
* * This method creates the new event. * * @param processId ID of the process related to the event * @param eventCreateItem JSON API response with the event object to add * @return *EventItem
func (Client) AddEventConnector ¶
func (a Client) AddEventConnector(processId string, eventId string, eventConnectorCreateItem EventConnectorCreateItem) (*EventConnector1, *APIResponse, error)
*
* * This method is intended for creating a new event connector. * * @param processId ID of the process to fetch * @param eventId ID of the event to fetch * @param eventConnectorCreateItem JSON API with the EventConnector object to add * @return *EventConnector1
func (Client) AddFlow ¶
func (a Client) AddFlow(processId string, flowCreateItem FlowCreateItem) (*FlowItem, *APIResponse, error)
*
* * This method creates a new Sequence Flow. * * @param processId ID of the process related to the flow * @param flowCreateItem JSON API response with the Flow object to add * @return *FlowItem
func (Client) AddGateway ¶
func (a Client) AddGateway(processId string, gatewayCreateItem GatewayCreateItem) (*GatewayItem, *APIResponse, error)
*
* * This method creates a new gateway. * * @param processId ID of the process related to the gateway * @param gatewayCreateItem JSON API response with the gateway object to add * @return *GatewayItem
func (Client) AddGroup ¶
func (a Client) AddGroup(groupCreateItem GroupCreateItem) (*GroupItem, *APIResponse, error)
*
* * This method creates a new group. * * @param groupCreateItem JSON API with the Group object to add * @return *GroupItem
func (Client) AddGroupsToTask ¶
func (a Client) AddGroupsToTask(processId string, taskId string, taskAddGroupsItem TaskAddGroupsItem) (*ResultSuccess, *APIResponse, error)
*
* * This method assigns group(s) to the chosen task * * @param processId Process ID * @param taskId ID of the task to be modified * @param taskAddGroupsItem JSON API with Group IDs to add * @return *ResultSuccess
func (Client) AddInputOutput ¶
func (a Client) AddInputOutput(processId string, taskId string, inputOutputCreateItem InputOutputCreateItem) (*InputOutputItem, *APIResponse, error)
*
* * This method creates a new Input/Output object. * * @param processId Process ID related to Input/Output object * @param taskId Task instance ID related to Input/Output object * @param inputOutputCreateItem Create and add a new Input/Output object with JSON API * @return *InputOutputItem
func (Client) AddInstance ¶
func (a Client) AddInstance(processId string, instanceCreateItem InstanceCreateItem) (*InstanceItem, *APIResponse, error)
*
* * This method creates a new instance. * * @param processId Process ID related to the instance * @param instanceCreateItem JSON API response with the instance object to add * @return *InstanceItem
func (Client) AddOauthClient ¶
func (a Client) AddOauthClient(userId string, oauthClientCreateItem OauthClientCreateItem) (*OauthClientItem, *APIResponse, error)
*
* * This method creates a new Oauth client for the user. * * @param userId ID of the user related to the Oauth client * @param oauthClientCreateItem JSON API with the Oauth Client object to add * @return *OauthClientItem
func (Client) AddProcess ¶
func (a Client) AddProcess(processCreateItem ProcessCreateItem) (*ProcessItem, *APIResponse, error)
*
* * This method creates a new process. * * @param processCreateItem JSON API response with the process object to add * @return *ProcessItem
func (Client) AddTask ¶
func (a Client) AddTask(processId string, taskCreateItem TaskCreateItem) (*TaskItem, *APIResponse, error)
*
* * This method creates a new task. * * @param processId Process ID related to the task * @param taskCreateItem JSON API with the task object to add * @return *TaskItem
func (Client) AddTaskConnector ¶
func (a Client) AddTaskConnector(processId string, taskId string, taskConnectorCreateItem TaskConnectorCreateItem) (*TaskConnector1, *APIResponse, error)
*
* * This method is for creating a new task connector * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param taskConnectorCreateItem JSON API with the TaskConnector object to add * @return *TaskConnector1
func (Client) AddUser ¶
func (a Client) AddUser(userCreateItem UserCreateItem) (*UserItem, *APIResponse, error)
*
* * This method creates a new user in the system. The client_id will appear in the results. The `client_id` is required to obtain a `client_secret` and then you will be able to use it in an Oauth authorization key. Refer to [Oauth Client APIs](#tag/oauth) * * @param userCreateItem JSON API with the User object to add * @return *UserItem
func (Client) AddUsersToGroup ¶
func (a Client) AddUsersToGroup(id string, groupAddUsersItem GroupAddUsersItem) (*ResultSuccess, *APIResponse, error)
*
* * This method adds one or more new users to a group. * * @param id ID of group to be modified * @param groupAddUsersItem JSON API response with array of user IDs * @return *ResultSuccess
func (Client) CallImport ¶
func (a Client) CallImport(importItem ImportItem) (*ProcessCollection1, *APIResponse, error)
*
* * This method imports BPMN 2.0 files. A new process(es) is/are created and its object returned back when import is successful. * * @param importItem JSON API with the BPMN file to import * @return *ProcessCollection1
func (Client) DeleteEvent ¶
func (a Client) DeleteEvent(processId string, eventId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes an event using the event ID and process ID. * * @param processId Process ID * @param eventId ID of the event to delete * @return *ResultSuccess
func (Client) DeleteEventConnector ¶
func (a Client) DeleteEventConnector(processId string, eventId string, connectorId string) (*ResultSuccess, *APIResponse, error)
*
* * This method is for deleting a single event connector based on event ID, process ID and Connector ID. * * @param processId ID of the process item * @param eventId ID of item to fetch * @param connectorId ID of EventConnector to fetch * @return *ResultSuccess
func (Client) DeleteFlow ¶
func (a Client) DeleteFlow(processId string, flowId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes the Sequence Flow using the flow ID and the process ID. * * @param processId Process ID * @param flowId ID of the flow to delete * @return *ResultSuccess
func (Client) DeleteGateway ¶
func (a Client) DeleteGateway(processId string, gatewayId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a single item using the gateway ID and the process ID. * * @param processId Process ID * @param gatewayId ID of the process to delete * @return *ResultSuccess
func (Client) DeleteGroup ¶
func (a Client) DeleteGroup(id string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a group using the group ID. * * @param id ID of group to delete * @return *ResultSuccess
func (Client) DeleteInputOutput ¶
func (a Client) DeleteInputOutput(processId string, taskId string, inputoutputUid string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes the Input/Output based on the Input/Output ID, process ID and task ID. * * @param processId Process ID related to the Input/Output object * @param taskId Task instance ID related to Input/Output object * @param inputoutputUid Input/Output ID to fetch * @return *ResultSuccess
func (Client) DeleteInstance ¶
func (a Client) DeleteInstance(processId string, instanceId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes an instance using the instance ID and the process ID. * * @param processId Process ID * @param instanceId ID of the instance to delete * @return *ResultSuccess
func (Client) DeleteOauthClient ¶
func (a Client) DeleteOauthClient(userId string, clientId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes an Oauth client using the Oauth client and user IDs. * * @param userId User ID * @param clientId ID of Oauth client to delete * @return *ResultSuccess
func (Client) DeleteProcess ¶
func (a Client) DeleteProcess(id string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a process using the process ID. * * @param id Process ID to delete * @return *ResultSuccess
func (Client) DeleteTask ¶
func (a Client) DeleteTask(processId string, taskId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a task using the task ID and the process ID. * * @param processId Process ID * @param taskId ID of a task to delete * @return *ResultSuccess
func (Client) DeleteTaskConnector ¶
func (a Client) DeleteTaskConnector(processId string, taskId string, connectorId string) (*ResultSuccess, *APIResponse, error)
*
* * This method is for deleting a single task connector based on task ID, the process ID and the Connector ID. * * @param processId ID of the process item to fetch * @param taskId ID of the task item to fetch * @param connectorId ID of TaskConnector to fetch * @return *ResultSuccess
func (Client) DeleteUser ¶
func (a Client) DeleteUser(id string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a user from the system. * * @param id ID of user to delete * @return *ResultSuccess
func (Client) EventTrigger ¶
func (a Client) EventTrigger(processId string, eventId string, triggerEventCreateItem TriggerEventCreateItem) (*DataModelItem1, *APIResponse, error)
*
* * This method starts/triggers an event. * * @param processId Process ID related to the event * @param eventId ID of the event to trigger * @param triggerEventCreateItem Json with some parameters * @return *DataModelItem1
func (Client) EventWebhook ¶
func (a Client) EventWebhook(processId string, eventId string, anyVariable string) (*string, *APIResponse, error)
*
* * This webhook method triggers a given event object. * * @param processId Process ID related to the event * @param eventId ID of the event to trigger * @param anyVariable Any POST or GET variable will be passed to the newly created DataModel * @return *string
func (Client) FindByFieldInsideDataModel ¶
func (a Client) FindByFieldInsideDataModel(processId string, searchParam string, page int32, perPage int32) (*DataModelCollection, *APIResponse, error)
*
* * This method returns the data model by field passed in get argument. * * @param processId ID of the process to return * @param searchParam Key and value of searched field in DataModel * @param page Page number to fetch * @param perPage Amount of items per page * @return *DataModelCollection
func (Client) FindDataModel ¶
func (a Client) FindDataModel(processId string, instanceId string, page int32, perPage int32) (*DataModelItem1, *APIResponse, error)
*
* * This method returns the instance data model and lets the user work with it directly. * * @param processId ID of the process to return * @param instanceId ID of the instance to return * @param page Page number to fetch * @param perPage Amount of items per page * @return *DataModelItem1
func (Client) FindEventById ¶
*
* * This method retrieves an event using its ID. * * @param processId ID of the process to return * @param eventId ID of the event to return * @return *EventItem
func (Client) FindEventConnectorById ¶
func (a Client) FindEventConnectorById(processId string, eventId string, connectorId string) (*EventConnector1, *APIResponse, error)
*
* * This method returns all event connectors related to the run process and event. * * @param processId ID of the process to fetch * @param eventId ID of Event to fetch * @param connectorId ID of EventConnector to fetch * @return *EventConnector1
func (Client) FindEventConnectors ¶
func (a Client) FindEventConnectors(processId string, eventId string, page int32, perPage int32) (*EventConnectorsCollection, *APIResponse, error)
*
* * This method returns all event connectors related to the run process and Event. * * @param processId ID of the process to fetch * @param eventId ID of the task to fetch * @param page Page number to fetch * @param perPage Amount of items per page * @return *EventConnectorsCollection
func (Client) FindEvents ¶
func (a Client) FindEvents(processId string, page int32, perPage int32) (*EventCollection, *APIResponse, error)
*
* * This method returns all events related to the running process. * * @param processId ID of the process related to the event * @param page Page number to fetch * @param perPage Amount of items per page * @return *EventCollection
func (Client) FindFlowById ¶
*
* * This method retrieves a flow based on its ID. * * @param processId ID of the process to return * @param flowId ID of the flow to return * @return *FlowItem
func (Client) FindFlows ¶
func (a Client) FindFlows(processId string, page int32, perPage int32) (*FlowCollection, *APIResponse, error)
*
* * This method retrieves all existing flows. * * @param processId ID of the process related to the flow * @param page Page number to fetch * @param perPage Amount of items per page * @return *FlowCollection
func (Client) FindGatewayById ¶
func (a Client) FindGatewayById(processId string, gatewayId string) (*GatewayItem, *APIResponse, error)
*
* * This method retrieves a gateway based on its ID. * * @param processId ID of the process to return * @param gatewayId ID of gateway to return * @return *GatewayItem
func (Client) FindGateways ¶
func (a Client) FindGateways(processId string, page int32, perPage int32) (*GatewayCollection, *APIResponse, error)
*
* * This method retrieves all existing gateways. * * @param processId ID of the process related to the gateway * @param page Page number to fetch * @param perPage Amount of items per page * @return *GatewayCollection
func (Client) FindGroupById ¶
func (a Client) FindGroupById(id string) (*GroupItem, *APIResponse, error)
*
* * This method retrieves a group using its ID. * * @param id ID of group to return * @return *GroupItem
func (Client) FindGroups ¶
func (a Client) FindGroups(page int32, perPage int32) (*GroupCollection, *APIResponse, error)
*
* * This method retrieves all existing groups. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *GroupCollection
func (Client) FindInputOutputById ¶
func (a Client) FindInputOutputById(processId string, taskId string, inputoutputUid string) (*InputOutputItem, *APIResponse, error)
*
* * This method retrieves an Input/Output object using its ID. * * @param processId Process ID related to the Input/Output object * @param taskId Task instance ID related to the Input/Output object * @param inputoutputUid ID of Input/Output to return * @return *InputOutputItem
func (Client) FindInputOutputs ¶
func (a Client) FindInputOutputs(processId string, taskId string, page int32, perPage int32) (*InputOutputCollection, *APIResponse, error)
*
* * This method retrieves all existing Input/Output objects in the related task instance. * * @param processId Process ID related to Input/Output object * @param taskId Task instance ID related to Input/Output object * @param page Page number to fetch * @param perPage Amount of items per page * @return *InputOutputCollection
func (Client) FindInstanceById ¶
func (a Client) FindInstanceById(processId string, instanceId string) (*InstanceItem, *APIResponse, error)
*
* * This method retrieves an instance using its ID. * * @param processId ID of the process to return * @param instanceId ID of the instance to return * @return *InstanceItem
func (Client) FindInstances ¶
func (a Client) FindInstances(processId string, page int32, perPage int32) (*InstanceCollection, *APIResponse, error)
*
* * This method retrieves instances related to the process using the process ID * * @param processId Process ID related to the instances * @param page Page number to fetch * @param perPage Amount of items per page * @return *InstanceCollection
func (Client) FindOauthClientById ¶
func (a Client) FindOauthClientById(userId string, clientId string) (*OauthClientItem, *APIResponse, error)
*
* * This method retrieves an Oauth client for the User based on its ID. The response contains the `client_secret` required to obtain the `access_token`. * * @param userId ID of user to retrieve * @param clientId ID of Oauth client to retrieve * @return *OauthClientItem
func (Client) FindOauthClients ¶
func (a Client) FindOauthClients(userId string, page int32, perPage int32) (*OauthClientCollection, *APIResponse, error)
*
* * This method retrieves all existing Oauth clients belonging to a user. * * @param userId User ID related to the Oauth clients * @param page Page number to fetch * @param perPage Amount of items per page * @return *OauthClientCollection
func (Client) FindProcessById ¶
func (a Client) FindProcessById(id string) (*ProcessItem, *APIResponse, error)
*
* * This method retrieves a process using its ID. * * @param id ID of the process to return * @return *ProcessItem
func (Client) FindProcesses ¶
func (a Client) FindProcesses(page int32, perPage int32) (*ProcessCollection, *APIResponse, error)
*
* * This method retrieves all existing processes. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *ProcessCollection
func (Client) FindTaskById ¶
*
* * This method retrieves a task using its ID. * * @param processId ID of the process to return * @param taskId ID of the task to return * @return *TaskItem
func (Client) FindTaskConnectorById ¶
func (a Client) FindTaskConnectorById(processId string, taskId string, connectorId string) (*TaskConnector1, *APIResponse, error)
*
* * This method is for retrieving a task connector based on its ID. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param connectorId ID of TaskConnector to fetch * @return *TaskConnector1
func (Client) FindTaskConnectors ¶
func (a Client) FindTaskConnectors(processId string, taskId string, page int32, perPage int32) (*TaskConnectorsCollection, *APIResponse, error)
*
* * This method returns all task connectors related to the run process and task. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param page Page number to fetch * @param perPage Amount of items per page * @return *TaskConnectorsCollection
func (Client) FindTaskInstanceById ¶
func (a Client) FindTaskInstanceById(taskInstanceId string, page int32, perPage int32) (*InlineResponse200, *APIResponse, error)
*
* * This method retrieves a task instance based on its ID. * * @param taskInstanceId ID of task instance to return * @param page Page number to fetch * @param perPage Amount of items per page * @return *InlineResponse200
func (Client) FindTaskInstances ¶
func (a Client) FindTaskInstances(page int32, perPage int32) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves all existing task instances. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *TaskInstanceCollection
func (Client) FindTaskInstancesByInstanceAndTaskId ¶
func (a Client) FindTaskInstancesByInstanceAndTaskId(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves task instances using the instance ID and the task ID. * * @param instanceId ID of the instance * @param taskId ID of the task * @return *TaskInstanceCollection
func (Client) FindTaskInstancesByInstanceAndTaskIdDelegated ¶
func (a Client) FindTaskInstancesByInstanceAndTaskIdDelegated(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves delegated task instances using the instance ID and the task ID. * * @param instanceId ID of the instance * @param taskId ID of the task * @return *TaskInstanceCollection
func (Client) FindTaskInstancesByInstanceAndTaskIdStarted ¶
func (a Client) FindTaskInstancesByInstanceAndTaskIdStarted(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves started task instances using the instance ID and the task ID. * * @param instanceId ID of the instance * @param taskId ID of the task * @return *TaskInstanceCollection
func (Client) FindTasks ¶
func (a Client) FindTasks(processId string, page int32, perPage int32) (*TaskCollection, *APIResponse, error)
*
* * This method is intended for returning a list of all tasks related to the process. * * @param processId ID of the process relative to the task * @param page Page number to fetch * @param perPage Amount of items per page * @return *TaskCollection
func (Client) FindTokens ¶
func (a Client) FindTokens(processId string, instanceId string, page int32, perPage int32) (*TokenCollection, *APIResponse, error)
*
* * This method retrieves tokens related to the process and instance using the process and instance IDs * * @param processId Process ID * @param instanceId Instance ID related to the process * @param page Page number to fetch * @param perPage Amount of items per page * @return *TokenCollection
func (Client) FindUserById ¶
func (a Client) FindUserById(id string) (*UserItem, *APIResponse, error)
*
* * This method returns a user using its ID. * * @param id ID of the user to return * @return *UserItem
func (Client) FindUsers ¶
func (a Client) FindUsers(page int32, perPage int32) (*UserCollection, *APIResponse, error)
*
* * This method returns all existing users in the system. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *UserCollection
func (Client) ImportBpmnFile ¶
func (a Client) ImportBpmnFile(bpmnImportItem BpmnImportItem) (*ProcessCollection1, *APIResponse, error)
*
* * This method imports BPMN 2.0 files. A new process(es) is/are created and its object returned back when import is successful. * * @param bpmnImportItem JSON API with the BPMN file to import * @return *ProcessCollection1
func (Client) MyselfUser ¶
*
* * This method returns user information using a token. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *UserItem
func (Client) RemoveGroupsFromTask ¶
func (a Client) RemoveGroupsFromTask(processId string, taskId string, taskRemoveGroupsItem TaskRemoveGroupsItem) (*ResultSuccess, *APIResponse, error)
*
* * This method removes groups from a task. * * @param processId Process ID * @param taskId Task ID * @param taskRemoveGroupsItem JSON API response with Group IDs to remove * @return *ResultSuccess
func (Client) RemoveUsersFromGroup ¶
func (a Client) RemoveUsersFromGroup(id string, groupRemoveUsersItem GroupRemoveUsersItem) (*ResultSuccess, *APIResponse, error)
*
* * This method removes one or more users from a group. * * @param id ID of group to be modified * @param groupRemoveUsersItem JSON API response with Users IDs to remove * @return *ResultSuccess
func (Client) SyncGroupsToTask ¶
func (a Client) SyncGroupsToTask(processId string, taskId string, taskSyncGroupsItem TaskSyncGroupsItem) (*ResultSuccess, *APIResponse, error)
*
* * This method synchronizes one or more groups with a task. * * @param processId Process ID * @param taskId ID of the task to modify * @param taskSyncGroupsItem JSON API response with group IDs to sync * @return *ResultSuccess
func (Client) SyncUsersToGroup ¶
func (a Client) SyncUsersToGroup(id string, groupSyncUsersItem GroupSyncUsersItem) (*ResultSuccess, *APIResponse, error)
*
* * This method synchronizes one or more users with a group. * * @param id ID of group to be modified * @param groupSyncUsersItem JSON API with array of users IDs to sync * @return *ResultSuccess
func (Client) UpdateEvent ¶
func (a Client) UpdateEvent(processId string, eventId string, eventUpdateItem EventUpdateItem) (*EventItem, *APIResponse, error)
*
* * This method updates an existing event. * * @param processId ID of the process to retrieve * @param eventId ID of the event to retrieve * @param eventUpdateItem Event object to edit * @return *EventItem
func (Client) UpdateEventConnector ¶
func (a Client) UpdateEventConnector(processId string, eventId string, connectorId string, eventConnectorUpdateItem EventConnectorUpdateItem) (*EventConnector1, *APIResponse, error)
*
* * This method updates the existing event connector with new parameter values. * * @param processId ID of the process to fetch * @param eventId ID of the event to fetch * @param connectorId ID of the event Connector to fetch * @param eventConnectorUpdateItem EventConnector object to edit * @return *EventConnector1
func (Client) UpdateFlow ¶
func (a Client) UpdateFlow(processId string, flowId string, flowUpdateItem FlowUpdateItem) (*FlowItem, *APIResponse, error)
*
* * This method updates an existing flow. * * @param processId ID of the process to retrieve * @param flowId ID of the flow to retrieve * @param flowUpdateItem Flow object to edit * @return *FlowItem
func (Client) UpdateGateway ¶
func (a Client) UpdateGateway(processId string, gatewayId string, gatewayUpdateItem GatewayUpdateItem) (*GatewayItem, *APIResponse, error)
*
* * This method updates an existing gateway. * * @param processId ID of the process to retrieve * @param gatewayId ID of the gateway to retrieve * @param gatewayUpdateItem Gateway object to edit * @return *GatewayItem
func (Client) UpdateGroup ¶
func (a Client) UpdateGroup(id string, groupUpdateItem GroupUpdateItem) (*GroupItem, *APIResponse, error)
*
* * This method updates an existing group. * * @param id ID of group to retrieve * @param groupUpdateItem Group object to edit * @return *GroupItem
func (Client) UpdateInputOutput ¶
func (a Client) UpdateInputOutput(processId string, taskId string, inputoutputUid string, inputOutputUpdateItem InputOutputUpdateItem) (*InputOutputItem, *APIResponse, error)
*
* * This method updates an existing Input/Output object. * * @param processId Process ID related to the Input/Output object * @param taskId Task instance ID related to the Input/Output object * @param inputoutputUid ID of Input/Output to retrieve * @param inputOutputUpdateItem Input/Output object to edit * @return *InputOutputItem
func (Client) UpdateInstance ¶
func (a Client) UpdateInstance(processId string, instanceId string, instanceUpdateItem InstanceUpdateItem) (*InstanceItem, *APIResponse, error)
*
* * This method updates an existing instance. * * @param processId ID of the process to retrieve * @param instanceId ID of the instance to retrieve * @param instanceUpdateItem Instance object to edit * @return *InstanceItem
func (Client) UpdateOauthClient ¶
func (a Client) UpdateOauthClient(userId string, clientId string, oauthClientUpdateItem OauthClientUpdateItem) (*OauthClientItem, *APIResponse, error)
*
* * This method updates an existing Oauth client. * * @param userId ID of user to retrieve * @param clientId ID of Oauth client to retrieve * @param oauthClientUpdateItem Oauth Client object to edit * @return *OauthClientItem
func (Client) UpdateProcess ¶
func (a Client) UpdateProcess(id string, processUpdateItem ProcessUpdateItem) (*ProcessItem, *APIResponse, error)
*
* * This method updates an existing process. * * @param id ID of the process to retrieve * @param processUpdateItem Process object to edit * @return *ProcessItem
func (Client) UpdateTask ¶
func (a Client) UpdateTask(processId string, taskId string, taskUpdateItem TaskUpdateItem) (*TaskItem, *APIResponse, error)
*
* * This method is for updating an existing task. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param taskUpdateItem Task object to edit * @return *TaskItem
func (Client) UpdateTaskConnector ¶
func (a Client) UpdateTaskConnector(processId string, taskId string, connectorId string, taskConnectorUpdateItem TaskConnectorUpdateItem) (*TaskConnector1, *APIResponse, error)
*
* * This method updates the existing task connector with new parameter values. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param connectorId ID of the task connector to fetch * @param taskConnectorUpdateItem TaskConnector object to edit * @return *TaskConnector1
func (Client) UpdateTaskInstance ¶
func (a Client) UpdateTaskInstance(taskInstanceId string, taskInstanceUpdateItem TaskInstanceUpdateItem) (*InlineResponse200, *APIResponse, error)
*
* * This method updates an existing task instance. * * @param taskInstanceId ID of the task instance to retrieve * @param taskInstanceUpdateItem Task instance object to update * @return *InlineResponse200
func (Client) UpdateUser ¶
func (a Client) UpdateUser(id string, userUpdateItem UserUpdateItem) (*UserItem, *APIResponse, error)
*
* * This method updates an existing user. * * @param id ID of user to retrieve * @param userUpdateItem User object for update * @return *UserItem
type Configuration ¶
type Configuration struct {
UserName string `json:"userName,omitempty"`
Password string `json:"password,omitempty"`
APIKeyPrefix map[string]string `json:"APIKeyPrefix,omitempty"`
APIKey map[string]string `json:"APIKey,omitempty"`
DebugFile string `json:"debugFile,omitempty"`
OAuthToken string `json:"oAuthToken,omitempty"`
Timeout int `json:"timeout,omitempty"`
BasePath string `json:"basePath,omitempty"`
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
AccessToken string `json:"accessToken,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
APIClient APIClient `json:"APIClient,omitempty"`
// contains filtered or unexported fields
}
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
func (*Configuration) GetAPIKeyWithPrefix ¶
func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string
func (*Configuration) GetBasicAuthEncodedString ¶
func (c *Configuration) GetBasicAuthEncodedString() string
func (*Configuration) GetDebug ¶
func (c *Configuration) GetDebug() bool
func (*Configuration) SetDebug ¶
func (c *Configuration) SetDebug(enable bool)
type DataModel ¶
type DataModel struct {
Type_ string `json:"type,omitempty"`
Attributes DataModelAttributes `json:"attributes,omitempty"`
}
type DataModelAttributes ¶
type DataModelCollection ¶
type DataModelCollection struct {
Data []DataModelItem `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with the collection of DataModels in an array
type DataModelItem ¶
type DataModelItem struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes DataModelItemAttributes `json:"attributes,omitempty"`
}
type DataModelItem1 ¶
type DataModelItem1 struct {
Data DataModelItem `json:"data,omitempty"`
}
type DataModelItemAttributes ¶
type DataModelItemAttributes struct {
Content interface{} `json:"content,omitempty"`
}
type ErrorArray ¶
type ErrorArray struct {
Errors []ModelError `json:"errors,omitempty"`
}
type Event ¶
type Event struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes EventAttributes `json:"attributes,omitempty"`
}
type EventAttributes ¶
type EventAttributes struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ProcessId string `json:"process_id,omitempty"`
MessageId int32 `json:"message_id,omitempty"`
Type_ string `json:"type,omitempty"`
Definition string `json:"definition,omitempty"`
Interrupting bool `json:"interrupting,omitempty"`
Condition string `json:"condition,omitempty"`
Time string `json:"time,omitempty"`
Duration string `json:"duration,omitempty"`
Cycle string `json:"cycle,omitempty"`
AttachedToTaskId string `json:"attached_to_task_id,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type EventCollection ¶
type EventCollection struct {
Data []Event `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with a collection of the events in an array
type EventConnector ¶
type EventConnector struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes EventConnectorAttributes `json:"attributes,omitempty"`
}
type EventConnector1 ¶
type EventConnector1 struct {
Data EventConnector `json:"data,omitempty"`
}
type EventConnectorAttributes ¶
type EventConnectorAttributes struct {
EventId int32 `json:"event_id,omitempty"`
ConnectorClass string `json:"connector_class,omitempty"`
InputParameters string `json:"input_parameters,omitempty"`
OutputParameters string `json:"output_parameters,omitempty"`
AsyncBefore bool `json:"async_before,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type EventConnectorCreateItem ¶
type EventConnectorCreateItem struct {
Data EventConnector `json:"data,omitempty"`
}
type EventConnectorUpdateItem ¶
type EventConnectorUpdateItem struct {
Data EventConnector `json:"data,omitempty"`
}
type EventConnectorsCollection ¶
type EventConnectorsCollection struct {
Data []EventConnector `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API Response with collection of Items in array
type EventCreateItem ¶
type EventCreateItem struct {
Data Event `json:"data,omitempty"`
}
type EventUpdateItem ¶
type EventUpdateItem struct {
Data Event `json:"data,omitempty"`
}
type Events ¶
type Events struct {
Configuration Configuration
}
func NewEventsWithBasePath ¶
func (Events) AddEvent ¶
func (a Events) AddEvent(processId string, eventCreateItem EventCreateItem) (*EventItem, *APIResponse, error)
*
* * This method creates the new event. * * @param processId ID of the process related to the event * @param eventCreateItem JSON API response with the event object to add * @return *EventItem
func (Events) AddEventConnector ¶
func (a Events) AddEventConnector(processId string, eventId string, eventConnectorCreateItem EventConnectorCreateItem) (*EventConnector1, *APIResponse, error)
*
* * This method is intended for creating a new event connector. * * @param processId ID of the process to fetch * @param eventId ID of the event to fetch * @param eventConnectorCreateItem JSON API with the EventConnector object to add * @return *EventConnector1
func (Events) DeleteEvent ¶
func (a Events) DeleteEvent(processId string, eventId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes an event using the event ID and process ID. * * @param processId Process ID * @param eventId ID of the event to delete * @return *ResultSuccess
func (Events) DeleteEventConnector ¶
func (a Events) DeleteEventConnector(processId string, eventId string, connectorId string) (*ResultSuccess, *APIResponse, error)
*
* * This method is for deleting a single event connector based on event ID, process ID and Connector ID. * * @param processId ID of the process item * @param eventId ID of item to fetch * @param connectorId ID of EventConnector to fetch * @return *ResultSuccess
func (Events) EventTrigger ¶
func (a Events) EventTrigger(processId string, eventId string, triggerEventCreateItem TriggerEventCreateItem) (*DataModelItem1, *APIResponse, error)
*
* * This method starts/triggers an event. * * @param processId Process ID related to the event * @param eventId ID of the event to trigger * @param triggerEventCreateItem Json with some parameters * @return *DataModelItem1
func (Events) EventWebhook ¶
func (a Events) EventWebhook(processId string, eventId string, anyVariable string) (*string, *APIResponse, error)
*
* * This webhook method triggers a given event object. * * @param processId Process ID related to the event * @param eventId ID of the event to trigger * @param anyVariable Any POST or GET variable will be passed to the newly created DataModel * @return *string
func (Events) FindEventById ¶
*
* * This method retrieves an event using its ID. * * @param processId ID of the process to return * @param eventId ID of the event to return * @return *EventItem
func (Events) FindEventConnectorById ¶
func (a Events) FindEventConnectorById(processId string, eventId string, connectorId string) (*EventConnector1, *APIResponse, error)
*
* * This method returns all event connectors related to the run process and event. * * @param processId ID of the process to fetch * @param eventId ID of Event to fetch * @param connectorId ID of EventConnector to fetch * @return *EventConnector1
func (Events) FindEventConnectors ¶
func (a Events) FindEventConnectors(processId string, eventId string, page int32, perPage int32) (*EventConnectorsCollection, *APIResponse, error)
*
* * This method returns all event connectors related to the run process and Event. * * @param processId ID of the process to fetch * @param eventId ID of the task to fetch * @param page Page number to fetch * @param perPage Amount of items per page * @return *EventConnectorsCollection
func (Events) FindEvents ¶
func (a Events) FindEvents(processId string, page int32, perPage int32) (*EventCollection, *APIResponse, error)
*
* * This method returns all events related to the running process. * * @param processId ID of the process related to the event * @param page Page number to fetch * @param perPage Amount of items per page * @return *EventCollection
func (Events) UpdateEvent ¶
func (a Events) UpdateEvent(processId string, eventId string, eventUpdateItem EventUpdateItem) (*EventItem, *APIResponse, error)
*
* * This method updates an existing event. * * @param processId ID of the process to retrieve * @param eventId ID of the event to retrieve * @param eventUpdateItem Event object to edit * @return *EventItem
func (Events) UpdateEventConnector ¶
func (a Events) UpdateEventConnector(processId string, eventId string, connectorId string, eventConnectorUpdateItem EventConnectorUpdateItem) (*EventConnector1, *APIResponse, error)
*
* * This method updates the existing event connector with new parameter values. * * @param processId ID of the process to fetch * @param eventId ID of the event to fetch * @param connectorId ID of the event Connector to fetch * @param eventConnectorUpdateItem EventConnector object to edit * @return *EventConnector1
type Flow ¶
type Flow struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes FlowAttributes `json:"attributes,omitempty"`
}
type FlowAttributes ¶
type FlowAttributes struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ProcessId string `json:"process_id,omitempty"`
FromObjectId string `json:"from_object_id,omitempty"`
FromObjectType string `json:"from_object_type,omitempty"`
ToObjectId string `json:"to_object_id,omitempty"`
ToObjectType string `json:"to_object_type,omitempty"`
Type_ string `json:"type,omitempty"`
Condition string `json:"condition,omitempty"`
Default_ bool `json:"default,omitempty"`
Optional bool `json:"optional,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type FlowCollection ¶
type FlowCollection struct {
Data []Flow `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with the collection of the flow in an array
type FlowCreateItem ¶
type FlowCreateItem struct {
Data Flow `json:"data,omitempty"`
}
type FlowUpdateItem ¶
type FlowUpdateItem struct {
Data Flow `json:"data,omitempty"`
}
type Flows ¶
type Flows struct {
Configuration Configuration
}
func NewFlowsWithBasePath ¶
func (Flows) AddFlow ¶
func (a Flows) AddFlow(processId string, flowCreateItem FlowCreateItem) (*FlowItem, *APIResponse, error)
*
* * This method creates a new Sequence Flow. * * @param processId ID of the process related to the flow * @param flowCreateItem JSON API response with the Flow object to add * @return *FlowItem
func (Flows) DeleteFlow ¶
func (a Flows) DeleteFlow(processId string, flowId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes the Sequence Flow using the flow ID and the process ID. * * @param processId Process ID * @param flowId ID of the flow to delete * @return *ResultSuccess
func (Flows) FindFlowById ¶
*
* * This method retrieves a flow based on its ID. * * @param processId ID of the process to return * @param flowId ID of the flow to return * @return *FlowItem
func (Flows) FindFlows ¶
func (a Flows) FindFlows(processId string, page int32, perPage int32) (*FlowCollection, *APIResponse, error)
*
* * This method retrieves all existing flows. * * @param processId ID of the process related to the flow * @param page Page number to fetch * @param perPage Amount of items per page * @return *FlowCollection
func (Flows) UpdateFlow ¶
func (a Flows) UpdateFlow(processId string, flowId string, flowUpdateItem FlowUpdateItem) (*FlowItem, *APIResponse, error)
*
* * This method updates an existing flow. * * @param processId ID of the process to retrieve * @param flowId ID of the flow to retrieve * @param flowUpdateItem Flow object to edit * @return *FlowItem
type Gateway ¶
type Gateway struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes GatewayAttributes `json:"attributes,omitempty"`
}
type GatewayAttributes ¶
type GatewayAttributes struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ProcessId string `json:"process_id,omitempty"`
Type_ string `json:"type,omitempty"`
Direction string `json:"direction,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type GatewayCollection ¶
type GatewayCollection struct {
Data []Gateway `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API Response with collection of Items in array
type GatewayCreateItem ¶
type GatewayCreateItem struct {
Data Gateway `json:"data,omitempty"`
}
type GatewayItem ¶
type GatewayItem struct {
Data Gateway `json:"data,omitempty"`
}
type GatewayUpdateItem ¶
type GatewayUpdateItem struct {
Data Gateway `json:"data,omitempty"`
}
type Gateways ¶
type Gateways struct {
Configuration Configuration
}
func NewGateways ¶
func NewGateways() *Gateways
func NewGatewaysWithBasePath ¶
func (Gateways) AddGateway ¶
func (a Gateways) AddGateway(processId string, gatewayCreateItem GatewayCreateItem) (*GatewayItem, *APIResponse, error)
*
* * This method creates a new gateway. * * @param processId ID of the process related to the gateway * @param gatewayCreateItem JSON API response with the gateway object to add * @return *GatewayItem
func (Gateways) DeleteGateway ¶
func (a Gateways) DeleteGateway(processId string, gatewayId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a single item using the gateway ID and the process ID. * * @param processId Process ID * @param gatewayId ID of the process to delete * @return *ResultSuccess
func (Gateways) FindGatewayById ¶
func (a Gateways) FindGatewayById(processId string, gatewayId string) (*GatewayItem, *APIResponse, error)
*
* * This method retrieves a gateway based on its ID. * * @param processId ID of the process to return * @param gatewayId ID of gateway to return * @return *GatewayItem
func (Gateways) FindGateways ¶
func (a Gateways) FindGateways(processId string, page int32, perPage int32) (*GatewayCollection, *APIResponse, error)
*
* * This method retrieves all existing gateways. * * @param processId ID of the process related to the gateway * @param page Page number to fetch * @param perPage Amount of items per page * @return *GatewayCollection
func (Gateways) UpdateGateway ¶
func (a Gateways) UpdateGateway(processId string, gatewayId string, gatewayUpdateItem GatewayUpdateItem) (*GatewayItem, *APIResponse, error)
*
* * This method updates an existing gateway. * * @param processId ID of the process to retrieve * @param gatewayId ID of the gateway to retrieve * @param gatewayUpdateItem Gateway object to edit * @return *GatewayItem
type Group ¶
type Group struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes GroupAttributes `json:"attributes,omitempty"`
}
type GroupAddUsersItem ¶
type GroupAddUsersItem struct {
Data UserIds `json:"data,omitempty"`
}
type GroupAttributes ¶
type GroupAttributes struct {
Code string `json:"code,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Status string `json:"status,omitempty"`
// User IDs array
Users []string `json:"users,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type GroupCollection ¶
type GroupCollection struct {
Data []Group `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with a collection of the groups in an array
type GroupCreateItem ¶
type GroupCreateItem struct {
Data Group `json:"data,omitempty"`
}
type GroupIds ¶
type GroupIds struct {
// Group IDs array
Groups []string `json:"groups,omitempty"`
}
type GroupRemoveUsersItem ¶
type GroupRemoveUsersItem struct {
Data UserIds `json:"data,omitempty"`
}
type GroupSyncUsersItem ¶
type GroupSyncUsersItem struct {
Data UserIds `json:"data,omitempty"`
}
type GroupUpdateItem ¶
type GroupUpdateItem struct {
Data Group `json:"data,omitempty"`
}
type Groups ¶
type Groups struct {
Configuration Configuration
}
func NewGroupsWithBasePath ¶
func (Groups) AddGroup ¶
func (a Groups) AddGroup(groupCreateItem GroupCreateItem) (*GroupItem, *APIResponse, error)
*
* * This method creates a new group. * * @param groupCreateItem JSON API with the Group object to add * @return *GroupItem
func (Groups) AddUsersToGroup ¶
func (a Groups) AddUsersToGroup(id string, groupAddUsersItem GroupAddUsersItem) (*ResultSuccess, *APIResponse, error)
*
* * This method adds one or more new users to a group. * * @param id ID of group to be modified * @param groupAddUsersItem JSON API response with array of user IDs * @return *ResultSuccess
func (Groups) DeleteGroup ¶
func (a Groups) DeleteGroup(id string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a group using the group ID. * * @param id ID of group to delete * @return *ResultSuccess
func (Groups) FindGroupById ¶
func (a Groups) FindGroupById(id string) (*GroupItem, *APIResponse, error)
*
* * This method retrieves a group using its ID. * * @param id ID of group to return * @return *GroupItem
func (Groups) FindGroups ¶
func (a Groups) FindGroups(page int32, perPage int32) (*GroupCollection, *APIResponse, error)
*
* * This method retrieves all existing groups. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *GroupCollection
func (Groups) RemoveUsersFromGroup ¶
func (a Groups) RemoveUsersFromGroup(id string, groupRemoveUsersItem GroupRemoveUsersItem) (*ResultSuccess, *APIResponse, error)
*
* * This method removes one or more users from a group. * * @param id ID of group to be modified * @param groupRemoveUsersItem JSON API response with Users IDs to remove * @return *ResultSuccess
func (Groups) SyncUsersToGroup ¶
func (a Groups) SyncUsersToGroup(id string, groupSyncUsersItem GroupSyncUsersItem) (*ResultSuccess, *APIResponse, error)
*
* * This method synchronizes one or more users with a group. * * @param id ID of group to be modified * @param groupSyncUsersItem JSON API with array of users IDs to sync * @return *ResultSuccess
func (Groups) UpdateGroup ¶
func (a Groups) UpdateGroup(id string, groupUpdateItem GroupUpdateItem) (*GroupItem, *APIResponse, error)
*
* * This method updates an existing group. * * @param id ID of group to retrieve * @param groupUpdateItem Group object to edit * @return *GroupItem
type ImportFile ¶
type ImportFile struct {
Type_ string `json:"type,omitempty"`
Attributes ImportFileAttributes `json:"attributes,omitempty"`
}
type ImportFileAttributes ¶
type ImportFileAttributes struct {
Content string `json:"content,omitempty"`
}
type ImportItem ¶
type ImportItem struct {
Data ImportFile `json:"data,omitempty"`
}
type InlineResponse200 ¶
type InlineResponse200 struct {
Data TaskInstance `json:"data,omitempty"`
}
type InputOutput ¶
type InputOutput struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes InputOutputAttributes `json:"attributes,omitempty"`
}
type InputOutputAttributes ¶
type InputOutputCollection ¶
type InputOutputCollection struct {
Data []InputOutput `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with a collection of the input/outputs in the array
type InputOutputCreateItem ¶
type InputOutputCreateItem struct {
Data InputOutput `json:"data,omitempty"`
}
type InputOutputItem ¶
type InputOutputItem struct {
Data InputOutput `json:"data,omitempty"`
}
type InputOutputUpdateItem ¶
type InputOutputUpdateItem struct {
Data InputOutput `json:"data,omitempty"`
}
type Inputoutput ¶
type Inputoutput struct {
Configuration Configuration
}
func NewInputoutput ¶
func NewInputoutput() *Inputoutput
func NewInputoutputWithBasePath ¶
func NewInputoutputWithBasePath(basePath string) *Inputoutput
func (Inputoutput) AddInputOutput ¶
func (a Inputoutput) AddInputOutput(processId string, taskId string, inputOutputCreateItem InputOutputCreateItem) (*InputOutputItem, *APIResponse, error)
*
* * This method creates a new Input/Output object. * * @param processId Process ID related to Input/Output object * @param taskId Task instance ID related to Input/Output object * @param inputOutputCreateItem Create and add a new Input/Output object with JSON API * @return *InputOutputItem
func (Inputoutput) DeleteInputOutput ¶
func (a Inputoutput) DeleteInputOutput(processId string, taskId string, inputoutputUid string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes the Input/Output based on the Input/Output ID, process ID and task ID. * * @param processId Process ID related to the Input/Output object * @param taskId Task instance ID related to Input/Output object * @param inputoutputUid Input/Output ID to fetch * @return *ResultSuccess
func (Inputoutput) FindInputOutputById ¶
func (a Inputoutput) FindInputOutputById(processId string, taskId string, inputoutputUid string) (*InputOutputItem, *APIResponse, error)
*
* * This method retrieves an Input/Output object using its ID. * * @param processId Process ID related to the Input/Output object * @param taskId Task instance ID related to the Input/Output object * @param inputoutputUid ID of Input/Output to return * @return *InputOutputItem
func (Inputoutput) FindInputOutputs ¶
func (a Inputoutput) FindInputOutputs(processId string, taskId string, page int32, perPage int32) (*InputOutputCollection, *APIResponse, error)
*
* * This method retrieves all existing Input/Output objects in the related task instance. * * @param processId Process ID related to Input/Output object * @param taskId Task instance ID related to Input/Output object * @param page Page number to fetch * @param perPage Amount of items per page * @return *InputOutputCollection
func (Inputoutput) UpdateInputOutput ¶
func (a Inputoutput) UpdateInputOutput(processId string, taskId string, inputoutputUid string, inputOutputUpdateItem InputOutputUpdateItem) (*InputOutputItem, *APIResponse, error)
*
* * This method updates an existing Input/Output object. * * @param processId Process ID related to the Input/Output object * @param taskId Task instance ID related to the Input/Output object * @param inputoutputUid ID of Input/Output to retrieve * @param inputOutputUpdateItem Input/Output object to edit * @return *InputOutputItem
type Instance ¶
type Instance struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes InstanceAttributes `json:"attributes,omitempty"`
}
type InstanceAttributes ¶
type InstanceAttributes struct {
ProcessId string `json:"process_id,omitempty"`
ParentInstanceId string `json:"parent_instance_id,omitempty"`
InitUserId string `json:"init_user_id,omitempty"`
Pin string `json:"pin,omitempty"`
Duration int32 `json:"duration,omitempty"`
Status string `json:"status,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type InstanceCollection ¶
type InstanceCollection struct {
Data []Instance `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with a collection of the instances in an array
type InstanceCreateItem ¶
type InstanceCreateItem struct {
Data Instance `json:"data,omitempty"`
}
type InstanceItem ¶
type InstanceItem struct {
Data Instance `json:"data,omitempty"`
}
type InstanceUpdateItem ¶
type InstanceUpdateItem struct {
Data Instance `json:"data,omitempty"`
}
type Meta ¶
type Meta struct {
Pagination Pagination `json:"pagination,omitempty"`
}
type ModelError ¶
type Oauth ¶
type Oauth struct {
Configuration Configuration
}
func NewOauthWithBasePath ¶
func (Oauth) AddOauthClient ¶
func (a Oauth) AddOauthClient(userId string, oauthClientCreateItem OauthClientCreateItem) (*OauthClientItem, *APIResponse, error)
*
* * This method creates a new Oauth client for the user. * * @param userId ID of the user related to the Oauth client * @param oauthClientCreateItem JSON API with the Oauth Client object to add * @return *OauthClientItem
func (Oauth) FindOauthClientById ¶
func (a Oauth) FindOauthClientById(userId string, clientId string) (*OauthClientItem, *APIResponse, error)
*
* * This method retrieves an Oauth client for the User based on its ID. The response contains the `client_secret` required to obtain the `access_token`. * * @param userId ID of user to retrieve * @param clientId ID of Oauth client to retrieve * @return *OauthClientItem
func (Oauth) FindOauthClients ¶
func (a Oauth) FindOauthClients(userId string, page int32, perPage int32) (*OauthClientCollection, *APIResponse, error)
*
* * This method retrieves all existing Oauth clients belonging to a user. * * @param userId User ID related to the Oauth clients * @param page Page number to fetch * @param perPage Amount of items per page * @return *OauthClientCollection
type OauthClient ¶
type OauthClient struct {
Id int32 `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes OauthClientAttributes `json:"attributes,omitempty"`
}
type OauthClientAttributes ¶
type OauthClientAttributes struct {
Secret string `json:"secret,omitempty"`
Name string `json:"name,omitempty"`
PersonalAccessClient bool `json:"personal_access_client,omitempty"`
PasswordClient bool `json:"password_client,omitempty"`
Revoked bool `json:"revoked,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type OauthClientCollection ¶
type OauthClientCollection struct {
Data []OauthClient `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with a collection of the Oauth clients in an array
type OauthClientCreateItem ¶
type OauthClientCreateItem struct {
Data OauthClient `json:"data,omitempty"`
}
type OauthClientItem ¶
type OauthClientItem struct {
Data OauthClient `json:"data,omitempty"`
}
type OauthClientUpdateItem ¶
type OauthClientUpdateItem struct {
Data OauthClient `json:"data,omitempty"`
}
type Pagination ¶
type PaginationLinks ¶
type Process ¶
type Process struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes ProcessAttributes `json:"attributes,omitempty"`
}
type ProcessAttributes ¶
type ProcessAttributes struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ParentProcessId string `json:"parent_process_id,omitempty"`
Status string `json:"status,omitempty"`
Type_ string `json:"type,omitempty"`
Assignment bool `json:"assignment,omitempty"`
CategoryId string `json:"category_id,omitempty"`
SubCategoryId string `json:"sub_category_id,omitempty"`
CreateUserId string `json:"create_user_id,omitempty"`
Debug bool `json:"debug,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type ProcessCollection ¶
type ProcessCollection struct {
Data []Process `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with a collection of the processes in an array
type ProcessCollection1 ¶
type ProcessCreateItem ¶
type ProcessCreateItem struct {
Data Process `json:"data,omitempty"`
}
type ProcessInstances ¶
type ProcessInstances struct {
Configuration Configuration
}
func NewProcessInstances ¶
func NewProcessInstances() *ProcessInstances
func NewProcessInstancesWithBasePath ¶
func NewProcessInstancesWithBasePath(basePath string) *ProcessInstances
func (ProcessInstances) AddInstance ¶
func (a ProcessInstances) AddInstance(processId string, instanceCreateItem InstanceCreateItem) (*InstanceItem, *APIResponse, error)
*
* * This method creates a new instance. * * @param processId Process ID related to the instance * @param instanceCreateItem JSON API response with the instance object to add * @return *InstanceItem
func (ProcessInstances) DeleteInstance ¶
func (a ProcessInstances) DeleteInstance(processId string, instanceId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes an instance using the instance ID and the process ID. * * @param processId Process ID * @param instanceId ID of the instance to delete * @return *ResultSuccess
func (ProcessInstances) FindByFieldInsideDataModel ¶
func (a ProcessInstances) FindByFieldInsideDataModel(processId string, searchParam string, page int32, perPage int32) (*DataModelCollection, *APIResponse, error)
*
* * This method returns the data model by field passed in get argument. * * @param processId ID of the process to return * @param searchParam Key and value of searched field in DataModel * @param page Page number to fetch * @param perPage Amount of items per page * @return *DataModelCollection
func (ProcessInstances) FindDataModel ¶
func (a ProcessInstances) FindDataModel(processId string, instanceId string, page int32, perPage int32) (*DataModelItem1, *APIResponse, error)
*
* * This method returns the instance data model and lets the user work with it directly. * * @param processId ID of the process to return * @param instanceId ID of the instance to return * @param page Page number to fetch * @param perPage Amount of items per page * @return *DataModelItem1
func (ProcessInstances) FindInstanceById ¶
func (a ProcessInstances) FindInstanceById(processId string, instanceId string) (*InstanceItem, *APIResponse, error)
*
* * This method retrieves an instance using its ID. * * @param processId ID of the process to return * @param instanceId ID of the instance to return * @return *InstanceItem
func (ProcessInstances) FindInstances ¶
func (a ProcessInstances) FindInstances(processId string, page int32, perPage int32) (*InstanceCollection, *APIResponse, error)
*
* * This method retrieves instances related to the process using the process ID * * @param processId Process ID related to the instances * @param page Page number to fetch * @param perPage Amount of items per page * @return *InstanceCollection
func (ProcessInstances) FindTaskInstancesByInstanceAndTaskId ¶
func (a ProcessInstances) FindTaskInstancesByInstanceAndTaskId(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves task instances using the instance ID and the task ID. * * @param instanceId ID of the instance * @param taskId ID of the task * @return *TaskInstanceCollection
func (ProcessInstances) FindTaskInstancesByInstanceAndTaskIdDelegated ¶
func (a ProcessInstances) FindTaskInstancesByInstanceAndTaskIdDelegated(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves delegated task instances using the instance ID and the task ID. * * @param instanceId ID of the instance * @param taskId ID of the task * @return *TaskInstanceCollection
func (ProcessInstances) FindTaskInstancesByInstanceAndTaskIdStarted ¶
func (a ProcessInstances) FindTaskInstancesByInstanceAndTaskIdStarted(instanceId string, taskId string) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves started task instances using the instance ID and the task ID. * * @param instanceId ID of the instance * @param taskId ID of the task * @return *TaskInstanceCollection
func (ProcessInstances) FindTokens ¶
func (a ProcessInstances) FindTokens(processId string, instanceId string, page int32, perPage int32) (*TokenCollection, *APIResponse, error)
*
* * This method retrieves tokens related to the process and instance using the process and instance IDs * * @param processId Process ID * @param instanceId Instance ID related to the process * @param page Page number to fetch * @param perPage Amount of items per page * @return *TokenCollection
func (ProcessInstances) UpdateInstance ¶
func (a ProcessInstances) UpdateInstance(processId string, instanceId string, instanceUpdateItem InstanceUpdateItem) (*InstanceItem, *APIResponse, error)
*
* * This method updates an existing instance. * * @param processId ID of the process to retrieve * @param instanceId ID of the instance to retrieve * @param instanceUpdateItem Instance object to edit * @return *InstanceItem
type ProcessItem ¶
type ProcessItem struct {
Data Process `json:"data,omitempty"`
}
type ProcessUpdateItem ¶
type ProcessUpdateItem struct {
Data Process `json:"data,omitempty"`
}
type Processes ¶
type Processes struct {
Configuration Configuration
}
func NewProcesses ¶
func NewProcesses() *Processes
func (Processes) AddProcess ¶
func (a Processes) AddProcess(processCreateItem ProcessCreateItem) (*ProcessItem, *APIResponse, error)
*
* * This method creates a new process. * * @param processCreateItem JSON API response with the process object to add * @return *ProcessItem
func (Processes) CallImport ¶
func (a Processes) CallImport(importItem ImportItem) (*ProcessCollection1, *APIResponse, error)
*
* * This method imports BPMN 2.0 files. A new process(es) is/are created and its object returned back when import is successful. * * @param importItem JSON API with the BPMN file to import * @return *ProcessCollection1
func (Processes) DeleteProcess ¶
func (a Processes) DeleteProcess(id string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a process using the process ID. * * @param id Process ID to delete * @return *ResultSuccess
func (Processes) FindProcessById ¶
func (a Processes) FindProcessById(id string) (*ProcessItem, *APIResponse, error)
*
* * This method retrieves a process using its ID. * * @param id ID of the process to return * @return *ProcessItem
func (Processes) FindProcesses ¶
func (a Processes) FindProcesses(page int32, perPage int32) (*ProcessCollection, *APIResponse, error)
*
* * This method retrieves all existing processes. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *ProcessCollection
func (Processes) ImportBpmnFile ¶
func (a Processes) ImportBpmnFile(bpmnImportItem BpmnImportItem) (*ProcessCollection1, *APIResponse, error)
*
* * This method imports BPMN 2.0 files. A new process(es) is/are created and its object returned back when import is successful. * * @param bpmnImportItem JSON API with the BPMN file to import * @return *ProcessCollection1
func (Processes) UpdateProcess ¶
func (a Processes) UpdateProcess(id string, processUpdateItem ProcessUpdateItem) (*ProcessItem, *APIResponse, error)
*
* * This method updates an existing process. * * @param id ID of the process to retrieve * @param processUpdateItem Process object to edit * @return *ProcessItem
type ResultSuccess ¶
type ResultSuccess struct {
Meta ResultSuccessMeta `json:"meta,omitempty"`
}
type ResultSuccessMeta ¶
type Task ¶
type Task struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes TaskAttributes `json:"attributes,omitempty"`
}
type TaskAddGroupsItem ¶
type TaskAddGroupsItem struct {
Data GroupIds `json:"data,omitempty"`
}
type TaskAttributes ¶
type TaskAttributes struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ProcessId string `json:"process_id,omitempty"`
Type_ string `json:"type,omitempty"`
AssignType string `json:"assign_type,omitempty"`
LastAssignedUserId string `json:"last_assigned_user_id,omitempty"`
Script string `json:"script,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type TaskCollection ¶
type TaskCollection struct {
Data []Task `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API Response with collection of Items in array
type TaskConnector ¶
type TaskConnector struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes TaskConnectorAttributes `json:"attributes,omitempty"`
}
type TaskConnector1 ¶
type TaskConnector1 struct {
Data TaskConnector `json:"data,omitempty"`
}
type TaskConnectorAttributes ¶
type TaskConnectorAttributes struct {
TaskId int32 `json:"task_id,omitempty"`
ConnectorClass string `json:"connector_class,omitempty"`
InputParameters interface{} `json:"input_parameters,omitempty"`
OutputParameters interface{} `json:"output_parameters,omitempty"`
AsyncBefore bool `json:"async_before,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type TaskConnectorCreateItem ¶
type TaskConnectorCreateItem struct {
Data TaskConnector `json:"data,omitempty"`
}
type TaskConnectorUpdateItem ¶
type TaskConnectorUpdateItem struct {
Data TaskConnector `json:"data,omitempty"`
}
type TaskConnectorsCollection ¶
type TaskConnectorsCollection struct {
Data []TaskConnector `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API Response with collection of Items in array
type TaskCreateItem ¶
type TaskCreateItem struct {
Data Task `json:"data,omitempty"`
}
type TaskInstance ¶
type TaskInstance struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes TaskInstanceAttributes `json:"attributes,omitempty"`
}
type TaskInstanceAttributes ¶
type TaskInstanceAttributes struct {
TaskId string `json:"task_id,omitempty"`
InstanceId string `json:"instance_id,omitempty"`
GroupId string `json:"group_id,omitempty"`
UserId string `json:"user_id,omitempty"`
Status string `json:"status,omitempty"`
Priority string `json:"priority,omitempty"`
DelegateDate string `json:"delegate_date,omitempty"`
StartDate string `json:"start_date,omitempty"`
FinishDate string `json:"finish_date,omitempty"`
TaskDueDate string `json:"task_due_date,omitempty"`
RiskDate string `json:"risk_date,omitempty"`
Duration int32 `json:"duration,omitempty"`
InstanceOverduePercentage float64 `json:"instance_overdue_percentage,omitempty"`
Data string `json:"data,omitempty"`
Content string `json:"content,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type TaskInstanceCollection ¶
type TaskInstanceCollection struct {
Data []TaskInstance `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with the collection of task instances in an array
type TaskInstanceUpdateItem ¶
type TaskInstanceUpdateItem struct {
Data TaskInstance `json:"data,omitempty"`
}
type TaskRemoveGroupsItem ¶
type TaskRemoveGroupsItem struct {
Data GroupIds `json:"data,omitempty"`
}
type TaskSyncGroupsItem ¶
type TaskSyncGroupsItem struct {
Data GroupIds `json:"data,omitempty"`
}
type TaskUpdateItem ¶
type TaskUpdateItem struct {
Data Task `json:"data,omitempty"`
}
type Tasks ¶
type Tasks struct {
Configuration Configuration
}
func NewTasksWithBasePath ¶
func (Tasks) AddGroupsToTask ¶
func (a Tasks) AddGroupsToTask(processId string, taskId string, taskAddGroupsItem TaskAddGroupsItem) (*ResultSuccess, *APIResponse, error)
*
* * This method assigns group(s) to the chosen task * * @param processId Process ID * @param taskId ID of the task to be modified * @param taskAddGroupsItem JSON API with Group IDs to add * @return *ResultSuccess
func (Tasks) AddTask ¶
func (a Tasks) AddTask(processId string, taskCreateItem TaskCreateItem) (*TaskItem, *APIResponse, error)
*
* * This method creates a new task. * * @param processId Process ID related to the task * @param taskCreateItem JSON API with the task object to add * @return *TaskItem
func (Tasks) AddTaskConnector ¶
func (a Tasks) AddTaskConnector(processId string, taskId string, taskConnectorCreateItem TaskConnectorCreateItem) (*TaskConnector1, *APIResponse, error)
*
* * This method is for creating a new task connector * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param taskConnectorCreateItem JSON API with the TaskConnector object to add * @return *TaskConnector1
func (Tasks) DeleteTask ¶
func (a Tasks) DeleteTask(processId string, taskId string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a task using the task ID and the process ID. * * @param processId Process ID * @param taskId ID of a task to delete * @return *ResultSuccess
func (Tasks) DeleteTaskConnector ¶
func (a Tasks) DeleteTaskConnector(processId string, taskId string, connectorId string) (*ResultSuccess, *APIResponse, error)
*
* * This method is for deleting a single task connector based on task ID, the process ID and the Connector ID. * * @param processId ID of the process item to fetch * @param taskId ID of the task item to fetch * @param connectorId ID of TaskConnector to fetch * @return *ResultSuccess
func (Tasks) FindTaskById ¶
*
* * This method retrieves a task using its ID. * * @param processId ID of the process to return * @param taskId ID of the task to return * @return *TaskItem
func (Tasks) FindTaskConnectorById ¶
func (a Tasks) FindTaskConnectorById(processId string, taskId string, connectorId string) (*TaskConnector1, *APIResponse, error)
*
* * This method is for retrieving a task connector based on its ID. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param connectorId ID of TaskConnector to fetch * @return *TaskConnector1
func (Tasks) FindTaskConnectors ¶
func (a Tasks) FindTaskConnectors(processId string, taskId string, page int32, perPage int32) (*TaskConnectorsCollection, *APIResponse, error)
*
* * This method returns all task connectors related to the run process and task. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param page Page number to fetch * @param perPage Amount of items per page * @return *TaskConnectorsCollection
func (Tasks) FindTaskInstanceById ¶
func (a Tasks) FindTaskInstanceById(taskInstanceId string, page int32, perPage int32) (*InlineResponse200, *APIResponse, error)
*
* * This method retrieves a task instance based on its ID. * * @param taskInstanceId ID of task instance to return * @param page Page number to fetch * @param perPage Amount of items per page * @return *InlineResponse200
func (Tasks) FindTaskInstances ¶
func (a Tasks) FindTaskInstances(page int32, perPage int32) (*TaskInstanceCollection, *APIResponse, error)
*
* * This method retrieves all existing task instances. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *TaskInstanceCollection
func (Tasks) FindTasks ¶
func (a Tasks) FindTasks(processId string, page int32, perPage int32) (*TaskCollection, *APIResponse, error)
*
* * This method is intended for returning a list of all tasks related to the process. * * @param processId ID of the process relative to the task * @param page Page number to fetch * @param perPage Amount of items per page * @return *TaskCollection
func (Tasks) RemoveGroupsFromTask ¶
func (a Tasks) RemoveGroupsFromTask(processId string, taskId string, taskRemoveGroupsItem TaskRemoveGroupsItem) (*ResultSuccess, *APIResponse, error)
*
* * This method removes groups from a task. * * @param processId Process ID * @param taskId Task ID * @param taskRemoveGroupsItem JSON API response with Group IDs to remove * @return *ResultSuccess
func (Tasks) SyncGroupsToTask ¶
func (a Tasks) SyncGroupsToTask(processId string, taskId string, taskSyncGroupsItem TaskSyncGroupsItem) (*ResultSuccess, *APIResponse, error)
*
* * This method synchronizes one or more groups with a task. * * @param processId Process ID * @param taskId ID of the task to modify * @param taskSyncGroupsItem JSON API response with group IDs to sync * @return *ResultSuccess
func (Tasks) UpdateTask ¶
func (a Tasks) UpdateTask(processId string, taskId string, taskUpdateItem TaskUpdateItem) (*TaskItem, *APIResponse, error)
*
* * This method is for updating an existing task. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param taskUpdateItem Task object to edit * @return *TaskItem
func (Tasks) UpdateTaskConnector ¶
func (a Tasks) UpdateTaskConnector(processId string, taskId string, connectorId string, taskConnectorUpdateItem TaskConnectorUpdateItem) (*TaskConnector1, *APIResponse, error)
*
* * This method updates the existing task connector with new parameter values. * * @param processId ID of the process to fetch * @param taskId ID of the task to fetch * @param connectorId ID of the task connector to fetch * @param taskConnectorUpdateItem TaskConnector object to edit * @return *TaskConnector1
func (Tasks) UpdateTaskInstance ¶
func (a Tasks) UpdateTaskInstance(taskInstanceId string, taskInstanceUpdateItem TaskInstanceUpdateItem) (*InlineResponse200, *APIResponse, error)
*
* * This method updates an existing task instance. * * @param taskInstanceId ID of the task instance to retrieve * @param taskInstanceUpdateItem Task instance object to update * @return *InlineResponse200
type Token ¶
type Token struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes TokenAttributes `json:"attributes,omitempty"`
}
type TokenAttributes ¶
type TokenAttributes struct {
InstanceId string `json:"instance_id,omitempty"`
FlowId string `json:"flow_id,omitempty"`
TokenKey string `json:"token_key,omitempty"`
TokenCount int32 `json:"token_count,omitempty"`
InitiatorObjectId string `json:"initiator_object_id,omitempty"`
InitiatorObjectType string `json:"initiator_object_type,omitempty"`
TargetObjectId string `json:"target_object_id,omitempty"`
TargetObjectType string `json:"target_object_type,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type TokenCollection ¶
type TokenCollection struct {
Data []Token `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with a collection of the tokens in an array
type TriggerEventCreateItem ¶
type TriggerEventCreateItem struct {
Data DataModel `json:"data,omitempty"`
}
type User ¶
type User struct {
Id string `json:"id,omitempty"`
Type_ string `json:"type,omitempty"`
Attributes UserAttributes `json:"attributes,omitempty"`
}
type UserAttributes ¶
type UserAttributes struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Firstname string `json:"firstname,omitempty"`
Lastname string `json:"lastname,omitempty"`
Email string `json:"email,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"`
Status string `json:"status,omitempty"`
Country string `json:"country,omitempty"`
City string `json:"city,omitempty"`
Location string `json:"location,omitempty"`
Address string `json:"address,omitempty"`
Phone string `json:"phone,omitempty"`
Fax string `json:"fax,omitempty"`
Cellular string `json:"cellular,omitempty"`
ZipCode string `json:"zip_code,omitempty"`
Position string `json:"position,omitempty"`
Resume string `json:"resume,omitempty"`
BirthdayAt string `json:"birthday_at,omitempty"`
BookmarkStartCases string `json:"bookmark_start_cases,omitempty"`
TimeZone string `json:"time_zone,omitempty"`
DefaultLang string `json:"default_lang,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Clients []int32 `json:"clients,omitempty"`
}
type UserCollection ¶
type UserCollection struct {
Data []User `json:"data,omitempty"`
Meta Meta `json:"meta,omitempty"`
}
JSON API response with the collection of users in an array
type UserCreateItem ¶
type UserCreateItem struct {
Data User `json:"data,omitempty"`
}
type UserUpdateItem ¶
type UserUpdateItem struct {
Data User `json:"data,omitempty"`
}
type Users ¶
type Users struct {
Configuration Configuration
}
func NewUsersWithBasePath ¶
func (Users) AddUser ¶
func (a Users) AddUser(userCreateItem UserCreateItem) (*UserItem, *APIResponse, error)
*
* * This method creates a new user in the system. The client_id will appear in the results. The `client_id` is required to obtain a `client_secret` and then you will be able to use it in an Oauth authorization key. Refer to [Oauth Client APIs](#tag/oauth) * * @param userCreateItem JSON API with the User object to add * @return *UserItem
func (Users) DeleteUser ¶
func (a Users) DeleteUser(id string) (*ResultSuccess, *APIResponse, error)
*
* * This method deletes a user from the system. * * @param id ID of user to delete * @return *ResultSuccess
func (Users) FindUserById ¶
func (a Users) FindUserById(id string) (*UserItem, *APIResponse, error)
*
* * This method returns a user using its ID. * * @param id ID of the user to return * @return *UserItem
func (Users) FindUsers ¶
func (a Users) FindUsers(page int32, perPage int32) (*UserCollection, *APIResponse, error)
*
* * This method returns all existing users in the system. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *UserCollection
func (Users) MyselfUser ¶
*
* * This method returns user information using a token. * * @param page Page number to fetch * @param perPage Amount of items per page * @return *UserItem
func (Users) UpdateUser ¶
func (a Users) UpdateUser(id string, userUpdateItem UserUpdateItem) (*UserItem, *APIResponse, error)
*
* * This method updates an existing user. * * @param id ID of user to retrieve * @param userUpdateItem User object for update * @return *UserItem
Source Files
¶
- api_client.go
- api_response.go
- bpmn_file.go
- bpmn_file_attributes.go
- bpmn_import_item.go
- client_api.go
- configuration.go
- data_model.go
- data_model_attributes.go
- data_model_collection.go
- data_model_item.go
- data_model_item_1.go
- data_model_item_attributes.go
- error_array.go
- event.go
- event_attributes.go
- event_collection.go
- event_connector.go
- event_connector_1.go
- event_connector_attributes.go
- event_connector_create_item.go
- event_connector_update_item.go
- event_connectors_collection.go
- event_create_item.go
- event_item.go
- event_update_item.go
- events_api.go
- flow.go
- flow_attributes.go
- flow_collection.go
- flow_create_item.go
- flow_item.go
- flow_update_item.go
- flows_api.go
- gateway.go
- gateway_attributes.go
- gateway_collection.go
- gateway_create_item.go
- gateway_item.go
- gateway_update_item.go
- gateways_api.go
- group.go
- group_add_users_item.go
- group_attributes.go
- group_collection.go
- group_create_item.go
- group_ids.go
- group_item.go
- group_remove_users_item.go
- group_sync_users_item.go
- group_update_item.go
- groups_api.go
- import_file.go
- import_file_attributes.go
- import_item.go
- inline_response_200.go
- input_output.go
- input_output_attributes.go
- input_output_collection.go
- input_output_create_item.go
- input_output_item.go
- input_output_update_item.go
- inputoutput_api.go
- instance.go
- instance_attributes.go
- instance_collection.go
- instance_create_item.go
- instance_item.go
- instance_update_item.go
- meta.go
- meta_log.go
- model_error.go
- oauth_api.go
- oauth_client.go
- oauth_client_attributes.go
- oauth_client_collection.go
- oauth_client_create_item.go
- oauth_client_item.go
- oauth_client_update_item.go
- pagination.go
- pagination_links.go
- process.go
- process_attributes.go
- process_collection.go
- process_collection_1.go
- process_create_item.go
- process_instances_api.go
- process_item.go
- process_update_item.go
- processes_api.go
- result_success.go
- result_success_meta.go
- task.go
- task_add_groups_item.go
- task_attributes.go
- task_collection.go
- task_connector.go
- task_connector_1.go
- task_connector_attributes.go
- task_connector_create_item.go
- task_connector_update_item.go
- task_connectors_collection.go
- task_create_item.go
- task_instance.go
- task_instance_attributes.go
- task_instance_collection.go
- task_instance_update_item.go
- task_item.go
- task_remove_groups_item.go
- task_sync_groups_item.go
- task_update_item.go
- tasks_api.go
- token.go
- token_attributes.go
- token_collection.go
- trigger_event_create_item.go
- user.go
- user_attributes.go
- user_collection.go
- user_create_item.go
- user_ids.go
- user_item.go
- user_update_item.go
- users_api.go