admin_tickets

package
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for admin tickets API

func (*Client) DeleteTicket deprecated

Deprecated: 2022-08-10 - Use DeleteTicketShort instead.

DeleteTicket delete single ticket Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [DELETE] This endpoint will delete ticket and all its reports.

func (*Client) DeleteTicketShort

func (a *Client) DeleteTicketShort(params *DeleteTicketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTicketNoContent, error)

DeleteTicketShort delete single ticket Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [DELETE] This endpoint will delete ticket and all its reports.

func (*Client) GetReportsByTicket deprecated

Deprecated: 2022-08-10 - Use GetReportsByTicketShort instead.

GetReportsByTicket get reports by ticket id Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ] List reports ordered by createdAt in descending order.

func (*Client) GetReportsByTicketShort

func (a *Client) GetReportsByTicketShort(params *GetReportsByTicketParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportsByTicketOK, error)

GetReportsByTicketShort get reports by ticket id Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ] List reports ordered by createdAt in descending order.

func (*Client) GetTicketDetail deprecated

Deprecated: 2022-08-10 - Use GetTicketDetailShort instead.

GetTicketDetail get single ticket Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ]

func (*Client) GetTicketDetailShort

func (a *Client) GetTicketDetailShort(params *GetTicketDetailParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDetailOK, error)

GetTicketDetailShort get single ticket Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ]

func (*Client) ListTickets deprecated

Deprecated: 2022-08-10 - Use ListTicketsShort instead.

ListTickets list report tickets Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ] Tickets list can be ordered by: - createdAt - reportsCount - status (currently there are OPEN, AUTO_MODERATED and CLOSED statuses, desc order will put ticket with CLOSED status at the top)

func (*Client) ListTicketsShort

func (a *Client) ListTicketsShort(params *ListTicketsParams, authInfo runtime.ClientAuthInfoWriter) (*ListTicketsOK, error)

ListTicketsShort list report tickets Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ] Tickets list can be ordered by: - createdAt - reportsCount - status (currently there are OPEN, AUTO_MODERATED and CLOSED statuses, desc order will put ticket with CLOSED status at the top)

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) TicketStatistic deprecated

Deprecated: 2022-08-10 - Use TicketStatisticShort instead.

TicketStatistic ticket statistic Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ]

func (*Client) TicketStatisticShort

func (a *Client) TicketStatisticShort(params *TicketStatisticParams, authInfo runtime.ClientAuthInfoWriter) (*TicketStatisticOK, error)

TicketStatisticShort ticket statistic Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ]

func (*Client) UpdateTicketResolutions deprecated

Deprecated: 2022-08-10 - Use UpdateTicketResolutionsShort instead.

UpdateTicketResolutions update ticket resolution to a given status Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [UPDATE] Update ticket resolution status to either OPEN or CLOSED. It is mandatory to provide notes

func (*Client) UpdateTicketResolutionsShort

func (a *Client) UpdateTicketResolutionsShort(params *UpdateTicketResolutionsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTicketResolutionsOK, error)

UpdateTicketResolutionsShort update ticket resolution to a given status Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [UPDATE] Update ticket resolution status to either OPEN or CLOSED. It is mandatory to provide notes

type ClientService

type ClientService interface {
	ListTickets(params *ListTicketsParams, authInfo runtime.ClientAuthInfoWriter) (*ListTicketsOK, *ListTicketsInternalServerError, error)
	ListTicketsShort(params *ListTicketsParams, authInfo runtime.ClientAuthInfoWriter) (*ListTicketsOK, error)
	TicketStatistic(params *TicketStatisticParams, authInfo runtime.ClientAuthInfoWriter) (*TicketStatisticOK, *TicketStatisticInternalServerError, error)
	TicketStatisticShort(params *TicketStatisticParams, authInfo runtime.ClientAuthInfoWriter) (*TicketStatisticOK, error)
	GetTicketDetail(params *GetTicketDetailParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDetailOK, *GetTicketDetailNotFound, *GetTicketDetailInternalServerError, error)
	GetTicketDetailShort(params *GetTicketDetailParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDetailOK, error)
	DeleteTicket(params *DeleteTicketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTicketNoContent, *DeleteTicketNotFound, *DeleteTicketInternalServerError, error)
	DeleteTicketShort(params *DeleteTicketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTicketNoContent, error)
	GetReportsByTicket(params *GetReportsByTicketParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportsByTicketOK, *GetReportsByTicketInternalServerError, error)
	GetReportsByTicketShort(params *GetReportsByTicketParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportsByTicketOK, error)
	UpdateTicketResolutions(params *UpdateTicketResolutionsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTicketResolutionsOK, *UpdateTicketResolutionsInternalServerError, error)
	UpdateTicketResolutionsShort(params *UpdateTicketResolutionsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTicketResolutionsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new admin tickets API client.

type DeleteTicketInternalServerError

type DeleteTicketInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

DeleteTicketInternalServerError handles this case with default header values.

func NewDeleteTicketInternalServerError

func NewDeleteTicketInternalServerError() *DeleteTicketInternalServerError

NewDeleteTicketInternalServerError creates a DeleteTicketInternalServerError with default headers values

func (*DeleteTicketInternalServerError) Error

func (*DeleteTicketInternalServerError) GetPayload

func (*DeleteTicketInternalServerError) ToJSONString

func (o *DeleteTicketInternalServerError) ToJSONString() string

type DeleteTicketNoContent

type DeleteTicketNoContent struct {
}

DeleteTicketNoContent handles this case with default header values.

func NewDeleteTicketNoContent

func NewDeleteTicketNoContent() *DeleteTicketNoContent

NewDeleteTicketNoContent creates a DeleteTicketNoContent with default headers values

func (*DeleteTicketNoContent) Error

func (o *DeleteTicketNoContent) Error() string

type DeleteTicketNotFound

type DeleteTicketNotFound struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

DeleteTicketNotFound handles this case with default header values.

func NewDeleteTicketNotFound

func NewDeleteTicketNotFound() *DeleteTicketNotFound

NewDeleteTicketNotFound creates a DeleteTicketNotFound with default headers values

func (*DeleteTicketNotFound) Error

func (o *DeleteTicketNotFound) Error() string

func (*DeleteTicketNotFound) GetPayload

func (*DeleteTicketNotFound) ToJSONString

func (o *DeleteTicketNotFound) ToJSONString() string

type DeleteTicketParams

type DeleteTicketParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*TicketID*/
	TicketID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

DeleteTicketParams contains all the parameters to send to the API endpoint for the delete ticket operation typically these are written to a http.Request

func NewDeleteTicketParams

func NewDeleteTicketParams() *DeleteTicketParams

NewDeleteTicketParams creates a new DeleteTicketParams object with the default values initialized.

func NewDeleteTicketParamsWithContext

func NewDeleteTicketParamsWithContext(ctx context.Context) *DeleteTicketParams

NewDeleteTicketParamsWithContext creates a new DeleteTicketParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteTicketParamsWithHTTPClient

func NewDeleteTicketParamsWithHTTPClient(client *http.Client) *DeleteTicketParams

NewDeleteTicketParamsWithHTTPClient creates a new DeleteTicketParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteTicketParamsWithTimeout

func NewDeleteTicketParamsWithTimeout(timeout time.Duration) *DeleteTicketParams

NewDeleteTicketParamsWithTimeout creates a new DeleteTicketParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteTicketParams) SetAuthInfoWriter

func (o *DeleteTicketParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the delete ticket params

func (*DeleteTicketParams) SetContext

func (o *DeleteTicketParams) SetContext(ctx context.Context)

SetContext adds the context to the delete ticket params

func (*DeleteTicketParams) SetHTTPClient

func (o *DeleteTicketParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete ticket params

func (*DeleteTicketParams) SetHTTPClientTransport

func (o *DeleteTicketParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the delete ticket params

func (*DeleteTicketParams) SetNamespace

func (o *DeleteTicketParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete ticket params

func (*DeleteTicketParams) SetTicketID

func (o *DeleteTicketParams) SetTicketID(ticketID string)

SetTicketID adds the ticketId to the delete ticket params

func (*DeleteTicketParams) SetTimeout

func (o *DeleteTicketParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete ticket params

func (*DeleteTicketParams) WithContext

WithContext adds the context to the delete ticket params

func (*DeleteTicketParams) WithHTTPClient

func (o *DeleteTicketParams) WithHTTPClient(client *http.Client) *DeleteTicketParams

WithHTTPClient adds the HTTPClient to the delete ticket params

func (*DeleteTicketParams) WithNamespace

func (o *DeleteTicketParams) WithNamespace(namespace string) *DeleteTicketParams

WithNamespace adds the namespace to the delete ticket params

func (*DeleteTicketParams) WithTicketID

func (o *DeleteTicketParams) WithTicketID(ticketID string) *DeleteTicketParams

WithTicketID adds the ticketID to the delete ticket params

func (*DeleteTicketParams) WithTimeout

func (o *DeleteTicketParams) WithTimeout(timeout time.Duration) *DeleteTicketParams

WithTimeout adds the timeout to the delete ticket params

func (*DeleteTicketParams) WriteToRequest

func (o *DeleteTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteTicketReader

type DeleteTicketReader struct {
	// contains filtered or unexported fields
}

DeleteTicketReader is a Reader for the DeleteTicket structure.

func (*DeleteTicketReader) ReadResponse

func (o *DeleteTicketReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetReportsByTicketInternalServerError

type GetReportsByTicketInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

GetReportsByTicketInternalServerError handles this case with default header values.

func NewGetReportsByTicketInternalServerError

func NewGetReportsByTicketInternalServerError() *GetReportsByTicketInternalServerError

NewGetReportsByTicketInternalServerError creates a GetReportsByTicketInternalServerError with default headers values

func (*GetReportsByTicketInternalServerError) Error

func (*GetReportsByTicketInternalServerError) GetPayload

func (*GetReportsByTicketInternalServerError) ToJSONString

type GetReportsByTicketOK

type GetReportsByTicketOK struct {
	Payload *reportingclientmodels.RestapiReportListResponse
}

GetReportsByTicketOK handles this case with default header values.

func NewGetReportsByTicketOK

func NewGetReportsByTicketOK() *GetReportsByTicketOK

NewGetReportsByTicketOK creates a GetReportsByTicketOK with default headers values

func (*GetReportsByTicketOK) Error

func (o *GetReportsByTicketOK) Error() string

func (*GetReportsByTicketOK) GetPayload

func (*GetReportsByTicketOK) ToJSONString

func (o *GetReportsByTicketOK) ToJSONString() string

type GetReportsByTicketParams

type GetReportsByTicketParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*TicketID*/
	TicketID string
	/*Limit
	  number of data requested (default 25)

	*/
	Limit *int64
	/*Offset
	  number of data offset (default 0)

	*/
	Offset *int64

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

GetReportsByTicketParams contains all the parameters to send to the API endpoint for the get reports by ticket operation typically these are written to a http.Request

func NewGetReportsByTicketParams

func NewGetReportsByTicketParams() *GetReportsByTicketParams

NewGetReportsByTicketParams creates a new GetReportsByTicketParams object with the default values initialized.

func NewGetReportsByTicketParamsWithContext

func NewGetReportsByTicketParamsWithContext(ctx context.Context) *GetReportsByTicketParams

NewGetReportsByTicketParamsWithContext creates a new GetReportsByTicketParams object with the default values initialized, and the ability to set a context for a request

func NewGetReportsByTicketParamsWithHTTPClient

func NewGetReportsByTicketParamsWithHTTPClient(client *http.Client) *GetReportsByTicketParams

NewGetReportsByTicketParamsWithHTTPClient creates a new GetReportsByTicketParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetReportsByTicketParamsWithTimeout

func NewGetReportsByTicketParamsWithTimeout(timeout time.Duration) *GetReportsByTicketParams

NewGetReportsByTicketParamsWithTimeout creates a new GetReportsByTicketParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetReportsByTicketParams) SetAuthInfoWriter

func (o *GetReportsByTicketParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get reports by ticket params

func (*GetReportsByTicketParams) SetContext

func (o *GetReportsByTicketParams) SetContext(ctx context.Context)

SetContext adds the context to the get reports by ticket params

func (*GetReportsByTicketParams) SetHTTPClient

func (o *GetReportsByTicketParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get reports by ticket params

func (*GetReportsByTicketParams) SetHTTPClientTransport

func (o *GetReportsByTicketParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get reports by ticket params

func (*GetReportsByTicketParams) SetLimit

func (o *GetReportsByTicketParams) SetLimit(limit *int64)

SetLimit adds the limit to the get reports by ticket params

func (*GetReportsByTicketParams) SetNamespace

func (o *GetReportsByTicketParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get reports by ticket params

func (*GetReportsByTicketParams) SetOffset

func (o *GetReportsByTicketParams) SetOffset(offset *int64)

SetOffset adds the offset to the get reports by ticket params

func (*GetReportsByTicketParams) SetTicketID

func (o *GetReportsByTicketParams) SetTicketID(ticketID string)

SetTicketID adds the ticketId to the get reports by ticket params

func (*GetReportsByTicketParams) SetTimeout

func (o *GetReportsByTicketParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get reports by ticket params

func (*GetReportsByTicketParams) WithContext

WithContext adds the context to the get reports by ticket params

func (*GetReportsByTicketParams) WithHTTPClient

func (o *GetReportsByTicketParams) WithHTTPClient(client *http.Client) *GetReportsByTicketParams

WithHTTPClient adds the HTTPClient to the get reports by ticket params

func (*GetReportsByTicketParams) WithLimit

WithLimit adds the limit to the get reports by ticket params

func (*GetReportsByTicketParams) WithNamespace

func (o *GetReportsByTicketParams) WithNamespace(namespace string) *GetReportsByTicketParams

WithNamespace adds the namespace to the get reports by ticket params

func (*GetReportsByTicketParams) WithOffset

WithOffset adds the offset to the get reports by ticket params

func (*GetReportsByTicketParams) WithTicketID

func (o *GetReportsByTicketParams) WithTicketID(ticketID string) *GetReportsByTicketParams

WithTicketID adds the ticketID to the get reports by ticket params

func (*GetReportsByTicketParams) WithTimeout

WithTimeout adds the timeout to the get reports by ticket params

func (*GetReportsByTicketParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetReportsByTicketReader

type GetReportsByTicketReader struct {
	// contains filtered or unexported fields
}

GetReportsByTicketReader is a Reader for the GetReportsByTicket structure.

func (*GetReportsByTicketReader) ReadResponse

func (o *GetReportsByTicketReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTicketDetailInternalServerError

type GetTicketDetailInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

GetTicketDetailInternalServerError handles this case with default header values.

func NewGetTicketDetailInternalServerError

func NewGetTicketDetailInternalServerError() *GetTicketDetailInternalServerError

NewGetTicketDetailInternalServerError creates a GetTicketDetailInternalServerError with default headers values

func (*GetTicketDetailInternalServerError) Error

func (*GetTicketDetailInternalServerError) GetPayload

func (*GetTicketDetailInternalServerError) ToJSONString

func (o *GetTicketDetailInternalServerError) ToJSONString() string

type GetTicketDetailNotFound

type GetTicketDetailNotFound struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

GetTicketDetailNotFound handles this case with default header values.

func NewGetTicketDetailNotFound

func NewGetTicketDetailNotFound() *GetTicketDetailNotFound

NewGetTicketDetailNotFound creates a GetTicketDetailNotFound with default headers values

func (*GetTicketDetailNotFound) Error

func (o *GetTicketDetailNotFound) Error() string

func (*GetTicketDetailNotFound) GetPayload

func (*GetTicketDetailNotFound) ToJSONString

func (o *GetTicketDetailNotFound) ToJSONString() string

type GetTicketDetailOK

type GetTicketDetailOK struct {
	Payload *reportingclientmodels.RestapiTicketResponse
}

GetTicketDetailOK handles this case with default header values.

func NewGetTicketDetailOK

func NewGetTicketDetailOK() *GetTicketDetailOK

NewGetTicketDetailOK creates a GetTicketDetailOK with default headers values

func (*GetTicketDetailOK) Error

func (o *GetTicketDetailOK) Error() string

func (*GetTicketDetailOK) GetPayload

func (*GetTicketDetailOK) ToJSONString

func (o *GetTicketDetailOK) ToJSONString() string

type GetTicketDetailParams

type GetTicketDetailParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*TicketID*/
	TicketID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

GetTicketDetailParams contains all the parameters to send to the API endpoint for the get ticket detail operation typically these are written to a http.Request

func NewGetTicketDetailParams

func NewGetTicketDetailParams() *GetTicketDetailParams

NewGetTicketDetailParams creates a new GetTicketDetailParams object with the default values initialized.

func NewGetTicketDetailParamsWithContext

func NewGetTicketDetailParamsWithContext(ctx context.Context) *GetTicketDetailParams

NewGetTicketDetailParamsWithContext creates a new GetTicketDetailParams object with the default values initialized, and the ability to set a context for a request

func NewGetTicketDetailParamsWithHTTPClient

func NewGetTicketDetailParamsWithHTTPClient(client *http.Client) *GetTicketDetailParams

NewGetTicketDetailParamsWithHTTPClient creates a new GetTicketDetailParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetTicketDetailParamsWithTimeout

func NewGetTicketDetailParamsWithTimeout(timeout time.Duration) *GetTicketDetailParams

NewGetTicketDetailParamsWithTimeout creates a new GetTicketDetailParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetTicketDetailParams) SetAuthInfoWriter

func (o *GetTicketDetailParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get ticket detail params

func (*GetTicketDetailParams) SetContext

func (o *GetTicketDetailParams) SetContext(ctx context.Context)

SetContext adds the context to the get ticket detail params

func (*GetTicketDetailParams) SetHTTPClient

func (o *GetTicketDetailParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get ticket detail params

func (*GetTicketDetailParams) SetHTTPClientTransport

func (o *GetTicketDetailParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get ticket detail params

func (*GetTicketDetailParams) SetNamespace

func (o *GetTicketDetailParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get ticket detail params

func (*GetTicketDetailParams) SetTicketID

func (o *GetTicketDetailParams) SetTicketID(ticketID string)

SetTicketID adds the ticketId to the get ticket detail params

func (*GetTicketDetailParams) SetTimeout

func (o *GetTicketDetailParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get ticket detail params

func (*GetTicketDetailParams) WithContext

WithContext adds the context to the get ticket detail params

func (*GetTicketDetailParams) WithHTTPClient

func (o *GetTicketDetailParams) WithHTTPClient(client *http.Client) *GetTicketDetailParams

WithHTTPClient adds the HTTPClient to the get ticket detail params

func (*GetTicketDetailParams) WithNamespace

func (o *GetTicketDetailParams) WithNamespace(namespace string) *GetTicketDetailParams

WithNamespace adds the namespace to the get ticket detail params

func (*GetTicketDetailParams) WithTicketID

func (o *GetTicketDetailParams) WithTicketID(ticketID string) *GetTicketDetailParams

WithTicketID adds the ticketID to the get ticket detail params

func (*GetTicketDetailParams) WithTimeout

func (o *GetTicketDetailParams) WithTimeout(timeout time.Duration) *GetTicketDetailParams

WithTimeout adds the timeout to the get ticket detail params

func (*GetTicketDetailParams) WriteToRequest

func (o *GetTicketDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTicketDetailReader

type GetTicketDetailReader struct {
	// contains filtered or unexported fields
}

GetTicketDetailReader is a Reader for the GetTicketDetail structure.

func (*GetTicketDetailReader) ReadResponse

func (o *GetTicketDetailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListTicketsInternalServerError

type ListTicketsInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

ListTicketsInternalServerError handles this case with default header values.

func NewListTicketsInternalServerError

func NewListTicketsInternalServerError() *ListTicketsInternalServerError

NewListTicketsInternalServerError creates a ListTicketsInternalServerError with default headers values

func (*ListTicketsInternalServerError) Error

func (*ListTicketsInternalServerError) GetPayload

func (*ListTicketsInternalServerError) ToJSONString

func (o *ListTicketsInternalServerError) ToJSONString() string

type ListTicketsOK

type ListTicketsOK struct {
	Payload *reportingclientmodels.RestapiTicketListResponse
}

ListTicketsOK handles this case with default header values.

func NewListTicketsOK

func NewListTicketsOK() *ListTicketsOK

NewListTicketsOK creates a ListTicketsOK with default headers values

func (*ListTicketsOK) Error

func (o *ListTicketsOK) Error() string

func (*ListTicketsOK) GetPayload

func (*ListTicketsOK) ToJSONString

func (o *ListTicketsOK) ToJSONString() string

type ListTicketsParams

type ListTicketsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*Category
	  filter tickets by category

	*/
	Category *string
	/*ExtensionCategory
	  filter tickets by extension category

	*/
	ExtensionCategory *string
	/*Limit
	  number of data requested (default 25)

	*/
	Limit *int64
	/*Offset
	  number of data offset (default 0)

	*/
	Offset *int64
	/*Order
	  data order, asc or desc (default: desc)

	*/
	Order *string
	/*ReportedUserID
	  filter reports by reportedUserId

	*/
	ReportedUserID *string
	/*SortBy
	  data order key, valid keys are createdAt, reportsCount, and status (default: createdAt)

	*/
	SortBy *string
	/*Status
	  filter tickets by status (OPEN, AUTO_MODERATED or CLOSED)

	*/
	Status *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

ListTicketsParams contains all the parameters to send to the API endpoint for the list tickets operation typically these are written to a http.Request

func NewListTicketsParams

func NewListTicketsParams() *ListTicketsParams

NewListTicketsParams creates a new ListTicketsParams object with the default values initialized.

func NewListTicketsParamsWithContext

func NewListTicketsParamsWithContext(ctx context.Context) *ListTicketsParams

NewListTicketsParamsWithContext creates a new ListTicketsParams object with the default values initialized, and the ability to set a context for a request

func NewListTicketsParamsWithHTTPClient

func NewListTicketsParamsWithHTTPClient(client *http.Client) *ListTicketsParams

NewListTicketsParamsWithHTTPClient creates a new ListTicketsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListTicketsParamsWithTimeout

func NewListTicketsParamsWithTimeout(timeout time.Duration) *ListTicketsParams

NewListTicketsParamsWithTimeout creates a new ListTicketsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListTicketsParams) SetAuthInfoWriter

func (o *ListTicketsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the list tickets params

func (*ListTicketsParams) SetCategory

func (o *ListTicketsParams) SetCategory(category *string)

SetCategory adds the category to the list tickets params

func (*ListTicketsParams) SetContext

func (o *ListTicketsParams) SetContext(ctx context.Context)

SetContext adds the context to the list tickets params

func (*ListTicketsParams) SetExtensionCategory

func (o *ListTicketsParams) SetExtensionCategory(extensionCategory *string)

SetExtensionCategory adds the extensionCategory to the list tickets params

func (*ListTicketsParams) SetHTTPClient

func (o *ListTicketsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list tickets params

func (*ListTicketsParams) SetHTTPClientTransport

func (o *ListTicketsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the list tickets params

func (*ListTicketsParams) SetLimit

func (o *ListTicketsParams) SetLimit(limit *int64)

SetLimit adds the limit to the list tickets params

func (*ListTicketsParams) SetNamespace

func (o *ListTicketsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the list tickets params

func (*ListTicketsParams) SetOffset

func (o *ListTicketsParams) SetOffset(offset *int64)

SetOffset adds the offset to the list tickets params

func (*ListTicketsParams) SetOrder

func (o *ListTicketsParams) SetOrder(order *string)

SetOrder adds the order to the list tickets params

func (*ListTicketsParams) SetReportedUserID

func (o *ListTicketsParams) SetReportedUserID(reportedUserID *string)

SetReportedUserID adds the reportedUserId to the list tickets params

func (*ListTicketsParams) SetSortBy

func (o *ListTicketsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the list tickets params

func (*ListTicketsParams) SetStatus

func (o *ListTicketsParams) SetStatus(status *string)

SetStatus adds the status to the list tickets params

func (*ListTicketsParams) SetTimeout

func (o *ListTicketsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list tickets params

func (*ListTicketsParams) WithCategory

func (o *ListTicketsParams) WithCategory(category *string) *ListTicketsParams

WithCategory adds the category to the list tickets params

func (*ListTicketsParams) WithContext

func (o *ListTicketsParams) WithContext(ctx context.Context) *ListTicketsParams

WithContext adds the context to the list tickets params

func (*ListTicketsParams) WithExtensionCategory

func (o *ListTicketsParams) WithExtensionCategory(extensionCategory *string) *ListTicketsParams

WithExtensionCategory adds the extensionCategory to the list tickets params

func (*ListTicketsParams) WithHTTPClient

func (o *ListTicketsParams) WithHTTPClient(client *http.Client) *ListTicketsParams

WithHTTPClient adds the HTTPClient to the list tickets params

func (*ListTicketsParams) WithLimit

func (o *ListTicketsParams) WithLimit(limit *int64) *ListTicketsParams

WithLimit adds the limit to the list tickets params

func (*ListTicketsParams) WithNamespace

func (o *ListTicketsParams) WithNamespace(namespace string) *ListTicketsParams

WithNamespace adds the namespace to the list tickets params

func (*ListTicketsParams) WithOffset

func (o *ListTicketsParams) WithOffset(offset *int64) *ListTicketsParams

WithOffset adds the offset to the list tickets params

func (*ListTicketsParams) WithOrder

func (o *ListTicketsParams) WithOrder(order *string) *ListTicketsParams

WithOrder adds the order to the list tickets params

func (*ListTicketsParams) WithReportedUserID

func (o *ListTicketsParams) WithReportedUserID(reportedUserID *string) *ListTicketsParams

WithReportedUserID adds the reportedUserID to the list tickets params

func (*ListTicketsParams) WithSortBy

func (o *ListTicketsParams) WithSortBy(sortBy *string) *ListTicketsParams

WithSortBy adds the sortBy to the list tickets params

func (*ListTicketsParams) WithStatus

func (o *ListTicketsParams) WithStatus(status *string) *ListTicketsParams

WithStatus adds the status to the list tickets params

func (*ListTicketsParams) WithTimeout

func (o *ListTicketsParams) WithTimeout(timeout time.Duration) *ListTicketsParams

WithTimeout adds the timeout to the list tickets params

func (*ListTicketsParams) WriteToRequest

func (o *ListTicketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListTicketsReader

type ListTicketsReader struct {
	// contains filtered or unexported fields
}

ListTicketsReader is a Reader for the ListTickets structure.

func (*ListTicketsReader) ReadResponse

func (o *ListTicketsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type TicketStatisticInternalServerError

type TicketStatisticInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

TicketStatisticInternalServerError handles this case with default header values.

func NewTicketStatisticInternalServerError

func NewTicketStatisticInternalServerError() *TicketStatisticInternalServerError

NewTicketStatisticInternalServerError creates a TicketStatisticInternalServerError with default headers values

func (*TicketStatisticInternalServerError) Error

func (*TicketStatisticInternalServerError) GetPayload

func (*TicketStatisticInternalServerError) ToJSONString

func (o *TicketStatisticInternalServerError) ToJSONString() string

type TicketStatisticOK

type TicketStatisticOK struct {
	Payload *reportingclientmodels.RestapiTicketStatisticResponse
}

TicketStatisticOK handles this case with default header values.

func NewTicketStatisticOK

func NewTicketStatisticOK() *TicketStatisticOK

NewTicketStatisticOK creates a TicketStatisticOK with default headers values

func (*TicketStatisticOK) Error

func (o *TicketStatisticOK) Error() string

func (*TicketStatisticOK) GetPayload

func (*TicketStatisticOK) ToJSONString

func (o *TicketStatisticOK) ToJSONString() string

type TicketStatisticParams

type TicketStatisticParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*ExtensionCategory
	  filter statistic by extension category

	*/
	ExtensionCategory *string
	/*Category
	  filter statistic by category

	*/
	Category string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

TicketStatisticParams contains all the parameters to send to the API endpoint for the ticket statistic operation typically these are written to a http.Request

func NewTicketStatisticParams

func NewTicketStatisticParams() *TicketStatisticParams

NewTicketStatisticParams creates a new TicketStatisticParams object with the default values initialized.

func NewTicketStatisticParamsWithContext

func NewTicketStatisticParamsWithContext(ctx context.Context) *TicketStatisticParams

NewTicketStatisticParamsWithContext creates a new TicketStatisticParams object with the default values initialized, and the ability to set a context for a request

func NewTicketStatisticParamsWithHTTPClient

func NewTicketStatisticParamsWithHTTPClient(client *http.Client) *TicketStatisticParams

NewTicketStatisticParamsWithHTTPClient creates a new TicketStatisticParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTicketStatisticParamsWithTimeout

func NewTicketStatisticParamsWithTimeout(timeout time.Duration) *TicketStatisticParams

NewTicketStatisticParamsWithTimeout creates a new TicketStatisticParams object with the default values initialized, and the ability to set a timeout on a request

func (*TicketStatisticParams) SetAuthInfoWriter

func (o *TicketStatisticParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the ticket statistic params

func (*TicketStatisticParams) SetCategory

func (o *TicketStatisticParams) SetCategory(category string)

SetCategory adds the category to the ticket statistic params

func (*TicketStatisticParams) SetContext

func (o *TicketStatisticParams) SetContext(ctx context.Context)

SetContext adds the context to the ticket statistic params

func (*TicketStatisticParams) SetExtensionCategory

func (o *TicketStatisticParams) SetExtensionCategory(extensionCategory *string)

SetExtensionCategory adds the extensionCategory to the ticket statistic params

func (*TicketStatisticParams) SetHTTPClient

func (o *TicketStatisticParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the ticket statistic params

func (*TicketStatisticParams) SetHTTPClientTransport

func (o *TicketStatisticParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the ticket statistic params

func (*TicketStatisticParams) SetNamespace

func (o *TicketStatisticParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the ticket statistic params

func (*TicketStatisticParams) SetTimeout

func (o *TicketStatisticParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the ticket statistic params

func (*TicketStatisticParams) WithCategory

func (o *TicketStatisticParams) WithCategory(category string) *TicketStatisticParams

WithCategory adds the category to the ticket statistic params

func (*TicketStatisticParams) WithContext

WithContext adds the context to the ticket statistic params

func (*TicketStatisticParams) WithExtensionCategory

func (o *TicketStatisticParams) WithExtensionCategory(extensionCategory *string) *TicketStatisticParams

WithExtensionCategory adds the extensionCategory to the ticket statistic params

func (*TicketStatisticParams) WithHTTPClient

func (o *TicketStatisticParams) WithHTTPClient(client *http.Client) *TicketStatisticParams

WithHTTPClient adds the HTTPClient to the ticket statistic params

func (*TicketStatisticParams) WithNamespace

func (o *TicketStatisticParams) WithNamespace(namespace string) *TicketStatisticParams

WithNamespace adds the namespace to the ticket statistic params

func (*TicketStatisticParams) WithTimeout

func (o *TicketStatisticParams) WithTimeout(timeout time.Duration) *TicketStatisticParams

WithTimeout adds the timeout to the ticket statistic params

func (*TicketStatisticParams) WriteToRequest

func (o *TicketStatisticParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type TicketStatisticReader

type TicketStatisticReader struct {
	// contains filtered or unexported fields
}

TicketStatisticReader is a Reader for the TicketStatistic structure.

func (*TicketStatisticReader) ReadResponse

func (o *TicketStatisticReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateTicketResolutionsInternalServerError

type UpdateTicketResolutionsInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

UpdateTicketResolutionsInternalServerError handles this case with default header values.

func NewUpdateTicketResolutionsInternalServerError

func NewUpdateTicketResolutionsInternalServerError() *UpdateTicketResolutionsInternalServerError

NewUpdateTicketResolutionsInternalServerError creates a UpdateTicketResolutionsInternalServerError with default headers values

func (*UpdateTicketResolutionsInternalServerError) Error

func (*UpdateTicketResolutionsInternalServerError) GetPayload

func (*UpdateTicketResolutionsInternalServerError) ToJSONString

type UpdateTicketResolutionsOK

type UpdateTicketResolutionsOK struct {
	Payload *reportingclientmodels.RestapiTicketResponse
}

UpdateTicketResolutionsOK handles this case with default header values.

func NewUpdateTicketResolutionsOK

func NewUpdateTicketResolutionsOK() *UpdateTicketResolutionsOK

NewUpdateTicketResolutionsOK creates a UpdateTicketResolutionsOK with default headers values

func (*UpdateTicketResolutionsOK) Error

func (o *UpdateTicketResolutionsOK) Error() string

func (*UpdateTicketResolutionsOK) GetPayload

func (*UpdateTicketResolutionsOK) ToJSONString

func (o *UpdateTicketResolutionsOK) ToJSONString() string

type UpdateTicketResolutionsParams

type UpdateTicketResolutionsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *reportingclientmodels.RestapiUpdateTicketResolutionsRequest
	/*Namespace*/
	Namespace string
	/*TicketID*/
	TicketID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

UpdateTicketResolutionsParams contains all the parameters to send to the API endpoint for the update ticket resolutions operation typically these are written to a http.Request

func NewUpdateTicketResolutionsParams

func NewUpdateTicketResolutionsParams() *UpdateTicketResolutionsParams

NewUpdateTicketResolutionsParams creates a new UpdateTicketResolutionsParams object with the default values initialized.

func NewUpdateTicketResolutionsParamsWithContext

func NewUpdateTicketResolutionsParamsWithContext(ctx context.Context) *UpdateTicketResolutionsParams

NewUpdateTicketResolutionsParamsWithContext creates a new UpdateTicketResolutionsParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateTicketResolutionsParamsWithHTTPClient

func NewUpdateTicketResolutionsParamsWithHTTPClient(client *http.Client) *UpdateTicketResolutionsParams

NewUpdateTicketResolutionsParamsWithHTTPClient creates a new UpdateTicketResolutionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateTicketResolutionsParamsWithTimeout

func NewUpdateTicketResolutionsParamsWithTimeout(timeout time.Duration) *UpdateTicketResolutionsParams

NewUpdateTicketResolutionsParamsWithTimeout creates a new UpdateTicketResolutionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateTicketResolutionsParams) SetAuthInfoWriter

func (o *UpdateTicketResolutionsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) SetBody

SetBody adds the body to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) SetContext

func (o *UpdateTicketResolutionsParams) SetContext(ctx context.Context)

SetContext adds the context to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) SetHTTPClient

func (o *UpdateTicketResolutionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) SetHTTPClientTransport

func (o *UpdateTicketResolutionsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) SetNamespace

func (o *UpdateTicketResolutionsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) SetTicketID

func (o *UpdateTicketResolutionsParams) SetTicketID(ticketID string)

SetTicketID adds the ticketId to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) SetTimeout

func (o *UpdateTicketResolutionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) WithBody

WithBody adds the body to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) WithContext

WithContext adds the context to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) WithNamespace

WithNamespace adds the namespace to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) WithTicketID

WithTicketID adds the ticketID to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) WithTimeout

WithTimeout adds the timeout to the update ticket resolutions params

func (*UpdateTicketResolutionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateTicketResolutionsReader

type UpdateTicketResolutionsReader struct {
	// contains filtered or unexported fields
}

UpdateTicketResolutionsReader is a Reader for the UpdateTicketResolutions structure.

func (*UpdateTicketResolutionsReader) ReadResponse

func (o *UpdateTicketResolutionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL