public_reasons

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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 public reasons API

func (*Client) PublicGetReasons deprecated

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

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

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 (*PublicGetReasonsInternalServerError) GetPayload

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 (*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 (*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

WithContext adds the context to the public get reasons params

func (*PublicGetReasonsParams) WithGroup

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

WithTimeout adds the timeout to the public get reasons params

func (*PublicGetReasonsParams) WithTitle

WithTitle adds the title to the public get reasons params

func (*PublicGetReasonsParams) WriteToRequest

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 (*PublicListReasonGroupsInternalServerError) GetPayload

func (*PublicListReasonGroupsInternalServerError) ToJSONString

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 (*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

WithContext adds the context to the public list reason groups params

func (*PublicListReasonGroupsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public list reason groups params

func (*PublicListReasonGroupsParams) WithLimit

WithLimit adds the limit to the public list reason groups params

func (*PublicListReasonGroupsParams) WithNamespace

WithNamespace adds the namespace to the public list reason groups params

func (*PublicListReasonGroupsParams) WithOffset

WithOffset adds the offset to the public list reason groups params

func (*PublicListReasonGroupsParams) WithTimeout

WithTimeout adds the timeout to the public list reason groups params

func (*PublicListReasonGroupsParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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