Documentation ¶
Index ¶
- type Client
- func (a *Client) PublicGetReasons(params *PublicGetReasonsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetReasonsOK, *PublicGetReasonsNotFound, ...)deprecated
- func (a *Client) PublicGetReasonsShort(params *PublicGetReasonsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetReasonsOK, error)
- func (a *Client) PublicListReasonGroups(params *PublicListReasonGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListReasonGroupsOK, *PublicListReasonGroupsInternalServerError, error)deprecated
- func (a *Client) PublicListReasonGroupsShort(params *PublicListReasonGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListReasonGroupsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublicGetReasonsInternalServerError
- type PublicGetReasonsNotFound
- type PublicGetReasonsOK
- type PublicGetReasonsParams
- func NewPublicGetReasonsParams() *PublicGetReasonsParams
- func NewPublicGetReasonsParamsWithContext(ctx context.Context) *PublicGetReasonsParams
- func NewPublicGetReasonsParamsWithHTTPClient(client *http.Client) *PublicGetReasonsParams
- func NewPublicGetReasonsParamsWithTimeout(timeout time.Duration) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicGetReasonsParams) SetContext(ctx context.Context)
- func (o *PublicGetReasonsParams) SetGroup(group *string)
- func (o *PublicGetReasonsParams) SetHTTPClient(client *http.Client)
- func (o *PublicGetReasonsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicGetReasonsParams) SetLimit(limit *int64)
- func (o *PublicGetReasonsParams) SetNamespace(namespace string)
- func (o *PublicGetReasonsParams) SetOffset(offset *int64)
- func (o *PublicGetReasonsParams) SetTimeout(timeout time.Duration)
- func (o *PublicGetReasonsParams) SetTitle(title *string)
- func (o *PublicGetReasonsParams) WithContext(ctx context.Context) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WithGroup(group *string) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WithHTTPClient(client *http.Client) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WithLimit(limit *int64) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WithNamespace(namespace string) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WithOffset(offset *int64) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WithTimeout(timeout time.Duration) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WithTitle(title *string) *PublicGetReasonsParams
- func (o *PublicGetReasonsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicGetReasonsReader
- type PublicListReasonGroupsInternalServerError
- type PublicListReasonGroupsOK
- type PublicListReasonGroupsParams
- func NewPublicListReasonGroupsParams() *PublicListReasonGroupsParams
- func NewPublicListReasonGroupsParamsWithContext(ctx context.Context) *PublicListReasonGroupsParams
- func NewPublicListReasonGroupsParamsWithHTTPClient(client *http.Client) *PublicListReasonGroupsParams
- func NewPublicListReasonGroupsParamsWithTimeout(timeout time.Duration) *PublicListReasonGroupsParams
- func (o *PublicListReasonGroupsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicListReasonGroupsParams) SetContext(ctx context.Context)
- func (o *PublicListReasonGroupsParams) SetHTTPClient(client *http.Client)
- func (o *PublicListReasonGroupsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicListReasonGroupsParams) SetLimit(limit *int64)
- func (o *PublicListReasonGroupsParams) SetNamespace(namespace string)
- func (o *PublicListReasonGroupsParams) SetOffset(offset *int64)
- func (o *PublicListReasonGroupsParams) SetTimeout(timeout time.Duration)
- func (o *PublicListReasonGroupsParams) WithContext(ctx context.Context) *PublicListReasonGroupsParams
- func (o *PublicListReasonGroupsParams) WithHTTPClient(client *http.Client) *PublicListReasonGroupsParams
- func (o *PublicListReasonGroupsParams) WithLimit(limit *int64) *PublicListReasonGroupsParams
- func (o *PublicListReasonGroupsParams) WithNamespace(namespace string) *PublicListReasonGroupsParams
- func (o *PublicListReasonGroupsParams) WithOffset(offset *int64) *PublicListReasonGroupsParams
- func (o *PublicListReasonGroupsParams) WithTimeout(timeout time.Duration) *PublicListReasonGroupsParams
- func (o *PublicListReasonGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicListReasonGroupsReader
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 public reasons API
func (*Client) PublicGetReasons
deprecated
func (a *Client) PublicGetReasons(params *PublicGetReasonsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetReasonsOK, *PublicGetReasonsNotFound, *PublicGetReasonsInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicGetReasonsShort instead.
PublicGetReasons get list of reasons
func (*Client) PublicGetReasonsShort ¶
func (a *Client) PublicGetReasonsShort(params *PublicGetReasonsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetReasonsOK, error)
PublicGetReasonsShort get list of reasons
func (*Client) PublicListReasonGroups
deprecated
func (a *Client) PublicListReasonGroups(params *PublicListReasonGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListReasonGroupsOK, *PublicListReasonGroupsInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicListReasonGroupsShort instead.
PublicListReasonGroups list reason groups under a namespace Return list of reason groups ID and title under given namespace.
func (*Client) PublicListReasonGroupsShort ¶
func (a *Client) PublicListReasonGroupsShort(params *PublicListReasonGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListReasonGroupsOK, error)
PublicListReasonGroupsShort list reason groups under a namespace Return list of reason groups ID and title under given namespace.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { PublicListReasonGroups(params *PublicListReasonGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListReasonGroupsOK, *PublicListReasonGroupsInternalServerError, error) PublicListReasonGroupsShort(params *PublicListReasonGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListReasonGroupsOK, error) PublicGetReasons(params *PublicGetReasonsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetReasonsOK, *PublicGetReasonsNotFound, *PublicGetReasonsInternalServerError, error) PublicGetReasonsShort(params *PublicGetReasonsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetReasonsOK, 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 public reasons API client.
type PublicGetReasonsInternalServerError ¶
type PublicGetReasonsInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
PublicGetReasonsInternalServerError handles this case with default header values.
func NewPublicGetReasonsInternalServerError ¶
func NewPublicGetReasonsInternalServerError() *PublicGetReasonsInternalServerError
NewPublicGetReasonsInternalServerError creates a PublicGetReasonsInternalServerError with default headers values
func (*PublicGetReasonsInternalServerError) Error ¶
func (o *PublicGetReasonsInternalServerError) Error() string
func (*PublicGetReasonsInternalServerError) GetPayload ¶
func (o *PublicGetReasonsInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*PublicGetReasonsInternalServerError) ToJSONString ¶
func (o *PublicGetReasonsInternalServerError) ToJSONString() string
type PublicGetReasonsNotFound ¶
type PublicGetReasonsNotFound struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
PublicGetReasonsNotFound handles this case with default header values.
func NewPublicGetReasonsNotFound ¶
func NewPublicGetReasonsNotFound() *PublicGetReasonsNotFound
NewPublicGetReasonsNotFound creates a PublicGetReasonsNotFound with default headers values
func (*PublicGetReasonsNotFound) Error ¶
func (o *PublicGetReasonsNotFound) Error() string
func (*PublicGetReasonsNotFound) GetPayload ¶
func (o *PublicGetReasonsNotFound) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*PublicGetReasonsNotFound) ToJSONString ¶
func (o *PublicGetReasonsNotFound) ToJSONString() string
type PublicGetReasonsOK ¶
type PublicGetReasonsOK struct {
Payload *reportingclientmodels.RestapiPublicReasonListResponse
}
PublicGetReasonsOK handles this case with default header values.
OK
func NewPublicGetReasonsOK ¶
func NewPublicGetReasonsOK() *PublicGetReasonsOK
NewPublicGetReasonsOK creates a PublicGetReasonsOK with default headers values
func (*PublicGetReasonsOK) Error ¶
func (o *PublicGetReasonsOK) Error() string
func (*PublicGetReasonsOK) GetPayload ¶
func (o *PublicGetReasonsOK) GetPayload() *reportingclientmodels.RestapiPublicReasonListResponse
func (*PublicGetReasonsOK) ToJSONString ¶
func (o *PublicGetReasonsOK) ToJSONString() string
type PublicGetReasonsParams ¶
type PublicGetReasonsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace*/ Namespace string /*Group query reasons under specified reason group */ Group *string /*Limit number of data requested (default 25) */ Limit *int64 /*Offset number of data offset (default 0) */ Offset *int64 /*Title query reason(s) by title */ Title *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PublicGetReasonsParams contains all the parameters to send to the API endpoint for the public get reasons operation typically these are written to a http.Request
func NewPublicGetReasonsParams ¶
func NewPublicGetReasonsParams() *PublicGetReasonsParams
NewPublicGetReasonsParams creates a new PublicGetReasonsParams object with the default values initialized.
func NewPublicGetReasonsParamsWithContext ¶
func NewPublicGetReasonsParamsWithContext(ctx context.Context) *PublicGetReasonsParams
NewPublicGetReasonsParamsWithContext creates a new PublicGetReasonsParams object with the default values initialized, and the ability to set a context for a request
func NewPublicGetReasonsParamsWithHTTPClient ¶
func NewPublicGetReasonsParamsWithHTTPClient(client *http.Client) *PublicGetReasonsParams
NewPublicGetReasonsParamsWithHTTPClient creates a new PublicGetReasonsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicGetReasonsParamsWithTimeout ¶
func NewPublicGetReasonsParamsWithTimeout(timeout time.Duration) *PublicGetReasonsParams
NewPublicGetReasonsParamsWithTimeout creates a new PublicGetReasonsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicGetReasonsParams) SetAuthInfoWriter ¶
func (o *PublicGetReasonsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public get reasons params
func (*PublicGetReasonsParams) SetContext ¶
func (o *PublicGetReasonsParams) SetContext(ctx context.Context)
SetContext adds the context to the public get reasons params
func (*PublicGetReasonsParams) SetGroup ¶
func (o *PublicGetReasonsParams) SetGroup(group *string)
SetGroup adds the group to the public get reasons params
func (*PublicGetReasonsParams) SetHTTPClient ¶
func (o *PublicGetReasonsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public get reasons params
func (*PublicGetReasonsParams) SetHTTPClientTransport ¶
func (o *PublicGetReasonsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public get reasons params
func (*PublicGetReasonsParams) SetLimit ¶
func (o *PublicGetReasonsParams) SetLimit(limit *int64)
SetLimit adds the limit to the public get reasons params
func (*PublicGetReasonsParams) SetNamespace ¶
func (o *PublicGetReasonsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public get reasons params
func (*PublicGetReasonsParams) SetOffset ¶
func (o *PublicGetReasonsParams) SetOffset(offset *int64)
SetOffset adds the offset to the public get reasons params
func (*PublicGetReasonsParams) SetTimeout ¶
func (o *PublicGetReasonsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public get reasons params
func (*PublicGetReasonsParams) SetTitle ¶
func (o *PublicGetReasonsParams) SetTitle(title *string)
SetTitle adds the title to the public get reasons params
func (*PublicGetReasonsParams) WithContext ¶
func (o *PublicGetReasonsParams) WithContext(ctx context.Context) *PublicGetReasonsParams
WithContext adds the context to the public get reasons params
func (*PublicGetReasonsParams) WithGroup ¶
func (o *PublicGetReasonsParams) WithGroup(group *string) *PublicGetReasonsParams
WithGroup adds the group to the public get reasons params
func (*PublicGetReasonsParams) WithHTTPClient ¶
func (o *PublicGetReasonsParams) WithHTTPClient(client *http.Client) *PublicGetReasonsParams
WithHTTPClient adds the HTTPClient to the public get reasons params
func (*PublicGetReasonsParams) WithLimit ¶
func (o *PublicGetReasonsParams) WithLimit(limit *int64) *PublicGetReasonsParams
WithLimit adds the limit to the public get reasons params
func (*PublicGetReasonsParams) WithNamespace ¶
func (o *PublicGetReasonsParams) WithNamespace(namespace string) *PublicGetReasonsParams
WithNamespace adds the namespace to the public get reasons params
func (*PublicGetReasonsParams) WithOffset ¶
func (o *PublicGetReasonsParams) WithOffset(offset *int64) *PublicGetReasonsParams
WithOffset adds the offset to the public get reasons params
func (*PublicGetReasonsParams) WithTimeout ¶
func (o *PublicGetReasonsParams) WithTimeout(timeout time.Duration) *PublicGetReasonsParams
WithTimeout adds the timeout to the public get reasons params
func (*PublicGetReasonsParams) WithTitle ¶
func (o *PublicGetReasonsParams) WithTitle(title *string) *PublicGetReasonsParams
WithTitle adds the title to the public get reasons params
func (*PublicGetReasonsParams) WriteToRequest ¶
func (o *PublicGetReasonsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicGetReasonsReader ¶
type PublicGetReasonsReader struct {
// contains filtered or unexported fields
}
PublicGetReasonsReader is a Reader for the PublicGetReasons structure.
func (*PublicGetReasonsReader) ReadResponse ¶
func (o *PublicGetReasonsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicListReasonGroupsInternalServerError ¶
type PublicListReasonGroupsInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
PublicListReasonGroupsInternalServerError handles this case with default header values.
func NewPublicListReasonGroupsInternalServerError ¶
func NewPublicListReasonGroupsInternalServerError() *PublicListReasonGroupsInternalServerError
NewPublicListReasonGroupsInternalServerError creates a PublicListReasonGroupsInternalServerError with default headers values
func (*PublicListReasonGroupsInternalServerError) Error ¶
func (o *PublicListReasonGroupsInternalServerError) Error() string
func (*PublicListReasonGroupsInternalServerError) GetPayload ¶
func (o *PublicListReasonGroupsInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*PublicListReasonGroupsInternalServerError) ToJSONString ¶
func (o *PublicListReasonGroupsInternalServerError) ToJSONString() string
type PublicListReasonGroupsOK ¶
type PublicListReasonGroupsOK struct {
Payload *reportingclientmodels.RestapiReasonGroupListResponse
}
PublicListReasonGroupsOK handles this case with default header values.
func NewPublicListReasonGroupsOK ¶
func NewPublicListReasonGroupsOK() *PublicListReasonGroupsOK
NewPublicListReasonGroupsOK creates a PublicListReasonGroupsOK with default headers values
func (*PublicListReasonGroupsOK) Error ¶
func (o *PublicListReasonGroupsOK) Error() string
func (*PublicListReasonGroupsOK) GetPayload ¶
func (o *PublicListReasonGroupsOK) GetPayload() *reportingclientmodels.RestapiReasonGroupListResponse
func (*PublicListReasonGroupsOK) ToJSONString ¶
func (o *PublicListReasonGroupsOK) ToJSONString() string
type PublicListReasonGroupsParams ¶
type PublicListReasonGroupsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace*/ Namespace 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 }
PublicListReasonGroupsParams contains all the parameters to send to the API endpoint for the public list reason groups operation typically these are written to a http.Request
func NewPublicListReasonGroupsParams ¶
func NewPublicListReasonGroupsParams() *PublicListReasonGroupsParams
NewPublicListReasonGroupsParams creates a new PublicListReasonGroupsParams object with the default values initialized.
func NewPublicListReasonGroupsParamsWithContext ¶
func NewPublicListReasonGroupsParamsWithContext(ctx context.Context) *PublicListReasonGroupsParams
NewPublicListReasonGroupsParamsWithContext creates a new PublicListReasonGroupsParams object with the default values initialized, and the ability to set a context for a request
func NewPublicListReasonGroupsParamsWithHTTPClient ¶
func NewPublicListReasonGroupsParamsWithHTTPClient(client *http.Client) *PublicListReasonGroupsParams
NewPublicListReasonGroupsParamsWithHTTPClient creates a new PublicListReasonGroupsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicListReasonGroupsParamsWithTimeout ¶
func NewPublicListReasonGroupsParamsWithTimeout(timeout time.Duration) *PublicListReasonGroupsParams
NewPublicListReasonGroupsParamsWithTimeout creates a new PublicListReasonGroupsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicListReasonGroupsParams) SetAuthInfoWriter ¶
func (o *PublicListReasonGroupsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public list reason groups params
func (*PublicListReasonGroupsParams) SetContext ¶
func (o *PublicListReasonGroupsParams) SetContext(ctx context.Context)
SetContext adds the context to the public list reason groups params
func (*PublicListReasonGroupsParams) SetHTTPClient ¶
func (o *PublicListReasonGroupsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public list reason groups params
func (*PublicListReasonGroupsParams) SetHTTPClientTransport ¶
func (o *PublicListReasonGroupsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public list reason groups params
func (*PublicListReasonGroupsParams) SetLimit ¶
func (o *PublicListReasonGroupsParams) SetLimit(limit *int64)
SetLimit adds the limit to the public list reason groups params
func (*PublicListReasonGroupsParams) SetNamespace ¶
func (o *PublicListReasonGroupsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public list reason groups params
func (*PublicListReasonGroupsParams) SetOffset ¶
func (o *PublicListReasonGroupsParams) SetOffset(offset *int64)
SetOffset adds the offset to the public list reason groups params
func (*PublicListReasonGroupsParams) SetTimeout ¶
func (o *PublicListReasonGroupsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public list reason groups params
func (*PublicListReasonGroupsParams) WithContext ¶
func (o *PublicListReasonGroupsParams) WithContext(ctx context.Context) *PublicListReasonGroupsParams
WithContext adds the context to the public list reason groups params
func (*PublicListReasonGroupsParams) WithHTTPClient ¶
func (o *PublicListReasonGroupsParams) WithHTTPClient(client *http.Client) *PublicListReasonGroupsParams
WithHTTPClient adds the HTTPClient to the public list reason groups params
func (*PublicListReasonGroupsParams) WithLimit ¶
func (o *PublicListReasonGroupsParams) WithLimit(limit *int64) *PublicListReasonGroupsParams
WithLimit adds the limit to the public list reason groups params
func (*PublicListReasonGroupsParams) WithNamespace ¶
func (o *PublicListReasonGroupsParams) WithNamespace(namespace string) *PublicListReasonGroupsParams
WithNamespace adds the namespace to the public list reason groups params
func (*PublicListReasonGroupsParams) WithOffset ¶
func (o *PublicListReasonGroupsParams) WithOffset(offset *int64) *PublicListReasonGroupsParams
WithOffset adds the offset to the public list reason groups params
func (*PublicListReasonGroupsParams) WithTimeout ¶
func (o *PublicListReasonGroupsParams) WithTimeout(timeout time.Duration) *PublicListReasonGroupsParams
WithTimeout adds the timeout to the public list reason groups params
func (*PublicListReasonGroupsParams) WriteToRequest ¶
func (o *PublicListReasonGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicListReasonGroupsReader ¶
type PublicListReasonGroupsReader struct {
// contains filtered or unexported fields
}
PublicListReasonGroupsReader is a Reader for the PublicListReasonGroups structure.
func (*PublicListReasonGroupsReader) ReadResponse ¶
func (o *PublicListReasonGroupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.