api_key_comments

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for api key comments API

func (*Client) DeleteAPIKeyCommentsID

func (a *Client) DeleteAPIKeyCommentsID(params *DeleteAPIKeyCommentsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeyCommentsIDOK, error)

DeleteAPIKeyCommentsID deletes comment by Api key

func (*Client) GetAPIKeyDiscussionIDComments

func (a *Client) GetAPIKeyDiscussionIDComments(params *GetAPIKeyDiscussionIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyDiscussionIDCommentsOK, error)

GetAPIKeyDiscussionIDComments gets comment list by Api key

func (*Client) PostAPIKeyDiscussionIDComments

func (a *Client) PostAPIKeyDiscussionIDComments(params *PostAPIKeyDiscussionIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyDiscussionIDCommentsOK, error)

PostAPIKeyDiscussionIDComments creates comment by Api key

Content max length is 10000 characters

func (*Client) PutAPIKeyCommentsID

func (a *Client) PutAPIKeyCommentsID(params *PutAPIKeyCommentsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAPIKeyCommentsIDOK, error)

PutAPIKeyCommentsID updates comment by Api key

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	DeleteAPIKeyCommentsID(params *DeleteAPIKeyCommentsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeyCommentsIDOK, error)

	GetAPIKeyDiscussionIDComments(params *GetAPIKeyDiscussionIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyDiscussionIDCommentsOK, error)

	PostAPIKeyDiscussionIDComments(params *PostAPIKeyDiscussionIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyDiscussionIDCommentsOK, error)

	PutAPIKeyCommentsID(params *PutAPIKeyCommentsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAPIKeyCommentsIDOK, 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 api key comments API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new api key comments API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new api key comments API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type DeleteAPIKeyCommentsIDBadRequest

type DeleteAPIKeyCommentsIDBadRequest struct {
	Payload *models.ResponseFailResponse
}

DeleteAPIKeyCommentsIDBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDeleteAPIKeyCommentsIDBadRequest

func NewDeleteAPIKeyCommentsIDBadRequest() *DeleteAPIKeyCommentsIDBadRequest

NewDeleteAPIKeyCommentsIDBadRequest creates a DeleteAPIKeyCommentsIDBadRequest with default headers values

func (*DeleteAPIKeyCommentsIDBadRequest) Code

Code gets the status code for the delete Api key comments Id bad request response

func (*DeleteAPIKeyCommentsIDBadRequest) Error

func (*DeleteAPIKeyCommentsIDBadRequest) GetPayload

func (*DeleteAPIKeyCommentsIDBadRequest) IsClientError

func (o *DeleteAPIKeyCommentsIDBadRequest) IsClientError() bool

IsClientError returns true when this delete Api key comments Id bad request response has a 4xx status code

func (*DeleteAPIKeyCommentsIDBadRequest) IsCode

func (o *DeleteAPIKeyCommentsIDBadRequest) IsCode(code int) bool

IsCode returns true when this delete Api key comments Id bad request response a status code equal to that given

func (*DeleteAPIKeyCommentsIDBadRequest) IsRedirect

func (o *DeleteAPIKeyCommentsIDBadRequest) IsRedirect() bool

IsRedirect returns true when this delete Api key comments Id bad request response has a 3xx status code

func (*DeleteAPIKeyCommentsIDBadRequest) IsServerError

func (o *DeleteAPIKeyCommentsIDBadRequest) IsServerError() bool

IsServerError returns true when this delete Api key comments Id bad request response has a 5xx status code

func (*DeleteAPIKeyCommentsIDBadRequest) IsSuccess

func (o *DeleteAPIKeyCommentsIDBadRequest) IsSuccess() bool

IsSuccess returns true when this delete Api key comments Id bad request response has a 2xx status code

func (*DeleteAPIKeyCommentsIDBadRequest) String

type DeleteAPIKeyCommentsIDInternalServerError

type DeleteAPIKeyCommentsIDInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

DeleteAPIKeyCommentsIDInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewDeleteAPIKeyCommentsIDInternalServerError

func NewDeleteAPIKeyCommentsIDInternalServerError() *DeleteAPIKeyCommentsIDInternalServerError

NewDeleteAPIKeyCommentsIDInternalServerError creates a DeleteAPIKeyCommentsIDInternalServerError with default headers values

func (*DeleteAPIKeyCommentsIDInternalServerError) Code

Code gets the status code for the delete Api key comments Id internal server error response

func (*DeleteAPIKeyCommentsIDInternalServerError) Error

func (*DeleteAPIKeyCommentsIDInternalServerError) GetPayload

func (*DeleteAPIKeyCommentsIDInternalServerError) IsClientError

IsClientError returns true when this delete Api key comments Id internal server error response has a 4xx status code

func (*DeleteAPIKeyCommentsIDInternalServerError) IsCode

IsCode returns true when this delete Api key comments Id internal server error response a status code equal to that given

func (*DeleteAPIKeyCommentsIDInternalServerError) IsRedirect

IsRedirect returns true when this delete Api key comments Id internal server error response has a 3xx status code

func (*DeleteAPIKeyCommentsIDInternalServerError) IsServerError

IsServerError returns true when this delete Api key comments Id internal server error response has a 5xx status code

func (*DeleteAPIKeyCommentsIDInternalServerError) IsSuccess

IsSuccess returns true when this delete Api key comments Id internal server error response has a 2xx status code

func (*DeleteAPIKeyCommentsIDInternalServerError) String

type DeleteAPIKeyCommentsIDOK

type DeleteAPIKeyCommentsIDOK struct {
	Payload *models.ResponseCommentResponse
}

DeleteAPIKeyCommentsIDOK describes a response with status code 200, with default header values.

OK

func NewDeleteAPIKeyCommentsIDOK

func NewDeleteAPIKeyCommentsIDOK() *DeleteAPIKeyCommentsIDOK

NewDeleteAPIKeyCommentsIDOK creates a DeleteAPIKeyCommentsIDOK with default headers values

func (*DeleteAPIKeyCommentsIDOK) Code

func (o *DeleteAPIKeyCommentsIDOK) Code() int

Code gets the status code for the delete Api key comments Id o k response

func (*DeleteAPIKeyCommentsIDOK) Error

func (o *DeleteAPIKeyCommentsIDOK) Error() string

func (*DeleteAPIKeyCommentsIDOK) GetPayload

func (*DeleteAPIKeyCommentsIDOK) IsClientError

func (o *DeleteAPIKeyCommentsIDOK) IsClientError() bool

IsClientError returns true when this delete Api key comments Id o k response has a 4xx status code

func (*DeleteAPIKeyCommentsIDOK) IsCode

func (o *DeleteAPIKeyCommentsIDOK) IsCode(code int) bool

IsCode returns true when this delete Api key comments Id o k response a status code equal to that given

func (*DeleteAPIKeyCommentsIDOK) IsRedirect

func (o *DeleteAPIKeyCommentsIDOK) IsRedirect() bool

IsRedirect returns true when this delete Api key comments Id o k response has a 3xx status code

func (*DeleteAPIKeyCommentsIDOK) IsServerError

func (o *DeleteAPIKeyCommentsIDOK) IsServerError() bool

IsServerError returns true when this delete Api key comments Id o k response has a 5xx status code

func (*DeleteAPIKeyCommentsIDOK) IsSuccess

func (o *DeleteAPIKeyCommentsIDOK) IsSuccess() bool

IsSuccess returns true when this delete Api key comments Id o k response has a 2xx status code

func (*DeleteAPIKeyCommentsIDOK) String

func (o *DeleteAPIKeyCommentsIDOK) String() string

type DeleteAPIKeyCommentsIDParams

type DeleteAPIKeyCommentsIDParams struct {

	/* ID.

	   Comment's id
	*/
	ID string

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

DeleteAPIKeyCommentsIDParams contains all the parameters to send to the API endpoint

for the delete API key comments ID operation.

Typically these are written to a http.Request.

func NewDeleteAPIKeyCommentsIDParams

func NewDeleteAPIKeyCommentsIDParams() *DeleteAPIKeyCommentsIDParams

NewDeleteAPIKeyCommentsIDParams creates a new DeleteAPIKeyCommentsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteAPIKeyCommentsIDParamsWithContext

func NewDeleteAPIKeyCommentsIDParamsWithContext(ctx context.Context) *DeleteAPIKeyCommentsIDParams

NewDeleteAPIKeyCommentsIDParamsWithContext creates a new DeleteAPIKeyCommentsIDParams object with the ability to set a context for a request.

func NewDeleteAPIKeyCommentsIDParamsWithHTTPClient

func NewDeleteAPIKeyCommentsIDParamsWithHTTPClient(client *http.Client) *DeleteAPIKeyCommentsIDParams

NewDeleteAPIKeyCommentsIDParamsWithHTTPClient creates a new DeleteAPIKeyCommentsIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAPIKeyCommentsIDParamsWithTimeout

func NewDeleteAPIKeyCommentsIDParamsWithTimeout(timeout time.Duration) *DeleteAPIKeyCommentsIDParams

NewDeleteAPIKeyCommentsIDParamsWithTimeout creates a new DeleteAPIKeyCommentsIDParams object with the ability to set a timeout on a request.

func (*DeleteAPIKeyCommentsIDParams) SetContext

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

SetContext adds the context to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) SetDefaults

func (o *DeleteAPIKeyCommentsIDParams) SetDefaults()

SetDefaults hydrates default values in the delete API key comments ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPIKeyCommentsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) SetID

func (o *DeleteAPIKeyCommentsIDParams) SetID(id string)

SetID adds the id to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) WithContext

WithContext adds the context to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) WithDefaults

WithDefaults hydrates default values in the delete API key comments ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPIKeyCommentsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) WithID

WithID adds the id to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) WithTimeout

WithTimeout adds the timeout to the delete API key comments ID params

func (*DeleteAPIKeyCommentsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAPIKeyCommentsIDReader

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

DeleteAPIKeyCommentsIDReader is a Reader for the DeleteAPIKeyCommentsID structure.

func (*DeleteAPIKeyCommentsIDReader) ReadResponse

func (o *DeleteAPIKeyCommentsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetAPIKeyDiscussionIDCommentsBadRequest

type GetAPIKeyDiscussionIDCommentsBadRequest struct {
	Payload *models.ResponseFailResponse
}

GetAPIKeyDiscussionIDCommentsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetAPIKeyDiscussionIDCommentsBadRequest

func NewGetAPIKeyDiscussionIDCommentsBadRequest() *GetAPIKeyDiscussionIDCommentsBadRequest

NewGetAPIKeyDiscussionIDCommentsBadRequest creates a GetAPIKeyDiscussionIDCommentsBadRequest with default headers values

func (*GetAPIKeyDiscussionIDCommentsBadRequest) Code

Code gets the status code for the get Api key discussion Id comments bad request response

func (*GetAPIKeyDiscussionIDCommentsBadRequest) Error

func (*GetAPIKeyDiscussionIDCommentsBadRequest) GetPayload

func (*GetAPIKeyDiscussionIDCommentsBadRequest) IsClientError

func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsClientError() bool

IsClientError returns true when this get Api key discussion Id comments bad request response has a 4xx status code

func (*GetAPIKeyDiscussionIDCommentsBadRequest) IsCode

IsCode returns true when this get Api key discussion Id comments bad request response a status code equal to that given

func (*GetAPIKeyDiscussionIDCommentsBadRequest) IsRedirect

IsRedirect returns true when this get Api key discussion Id comments bad request response has a 3xx status code

func (*GetAPIKeyDiscussionIDCommentsBadRequest) IsServerError

func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsServerError() bool

IsServerError returns true when this get Api key discussion Id comments bad request response has a 5xx status code

func (*GetAPIKeyDiscussionIDCommentsBadRequest) IsSuccess

IsSuccess returns true when this get Api key discussion Id comments bad request response has a 2xx status code

func (*GetAPIKeyDiscussionIDCommentsBadRequest) String

type GetAPIKeyDiscussionIDCommentsInternalServerError

type GetAPIKeyDiscussionIDCommentsInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

GetAPIKeyDiscussionIDCommentsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetAPIKeyDiscussionIDCommentsInternalServerError

func NewGetAPIKeyDiscussionIDCommentsInternalServerError() *GetAPIKeyDiscussionIDCommentsInternalServerError

NewGetAPIKeyDiscussionIDCommentsInternalServerError creates a GetAPIKeyDiscussionIDCommentsInternalServerError with default headers values

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) Code

Code gets the status code for the get Api key discussion Id comments internal server error response

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) Error

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) GetPayload

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsClientError

IsClientError returns true when this get Api key discussion Id comments internal server error response has a 4xx status code

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsCode

IsCode returns true when this get Api key discussion Id comments internal server error response a status code equal to that given

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsRedirect

IsRedirect returns true when this get Api key discussion Id comments internal server error response has a 3xx status code

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsServerError

IsServerError returns true when this get Api key discussion Id comments internal server error response has a 5xx status code

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess

IsSuccess returns true when this get Api key discussion Id comments internal server error response has a 2xx status code

func (*GetAPIKeyDiscussionIDCommentsInternalServerError) String

type GetAPIKeyDiscussionIDCommentsOK

type GetAPIKeyDiscussionIDCommentsOK struct {
	Payload *models.ResponseCommentListResponse
}

GetAPIKeyDiscussionIDCommentsOK describes a response with status code 200, with default header values.

OK

func NewGetAPIKeyDiscussionIDCommentsOK

func NewGetAPIKeyDiscussionIDCommentsOK() *GetAPIKeyDiscussionIDCommentsOK

NewGetAPIKeyDiscussionIDCommentsOK creates a GetAPIKeyDiscussionIDCommentsOK with default headers values

func (*GetAPIKeyDiscussionIDCommentsOK) Code

Code gets the status code for the get Api key discussion Id comments o k response

func (*GetAPIKeyDiscussionIDCommentsOK) Error

func (*GetAPIKeyDiscussionIDCommentsOK) GetPayload

func (*GetAPIKeyDiscussionIDCommentsOK) IsClientError

func (o *GetAPIKeyDiscussionIDCommentsOK) IsClientError() bool

IsClientError returns true when this get Api key discussion Id comments o k response has a 4xx status code

func (*GetAPIKeyDiscussionIDCommentsOK) IsCode

func (o *GetAPIKeyDiscussionIDCommentsOK) IsCode(code int) bool

IsCode returns true when this get Api key discussion Id comments o k response a status code equal to that given

func (*GetAPIKeyDiscussionIDCommentsOK) IsRedirect

func (o *GetAPIKeyDiscussionIDCommentsOK) IsRedirect() bool

IsRedirect returns true when this get Api key discussion Id comments o k response has a 3xx status code

func (*GetAPIKeyDiscussionIDCommentsOK) IsServerError

func (o *GetAPIKeyDiscussionIDCommentsOK) IsServerError() bool

IsServerError returns true when this get Api key discussion Id comments o k response has a 5xx status code

func (*GetAPIKeyDiscussionIDCommentsOK) IsSuccess

func (o *GetAPIKeyDiscussionIDCommentsOK) IsSuccess() bool

IsSuccess returns true when this get Api key discussion Id comments o k response has a 2xx status code

func (*GetAPIKeyDiscussionIDCommentsOK) String

type GetAPIKeyDiscussionIDCommentsParams

type GetAPIKeyDiscussionIDCommentsParams struct {

	/* ID.

	   Discussion's id
	*/
	ID string

	// Limit.
	//
	// Default: 10
	Limit *int64

	// Offset.
	Offset *int64

	// Sort.
	Sort *string

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

GetAPIKeyDiscussionIDCommentsParams contains all the parameters to send to the API endpoint

for the get API key discussion ID comments operation.

Typically these are written to a http.Request.

func NewGetAPIKeyDiscussionIDCommentsParams

func NewGetAPIKeyDiscussionIDCommentsParams() *GetAPIKeyDiscussionIDCommentsParams

NewGetAPIKeyDiscussionIDCommentsParams creates a new GetAPIKeyDiscussionIDCommentsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPIKeyDiscussionIDCommentsParamsWithContext

func NewGetAPIKeyDiscussionIDCommentsParamsWithContext(ctx context.Context) *GetAPIKeyDiscussionIDCommentsParams

NewGetAPIKeyDiscussionIDCommentsParamsWithContext creates a new GetAPIKeyDiscussionIDCommentsParams object with the ability to set a context for a request.

func NewGetAPIKeyDiscussionIDCommentsParamsWithHTTPClient

func NewGetAPIKeyDiscussionIDCommentsParamsWithHTTPClient(client *http.Client) *GetAPIKeyDiscussionIDCommentsParams

NewGetAPIKeyDiscussionIDCommentsParamsWithHTTPClient creates a new GetAPIKeyDiscussionIDCommentsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIKeyDiscussionIDCommentsParamsWithTimeout

func NewGetAPIKeyDiscussionIDCommentsParamsWithTimeout(timeout time.Duration) *GetAPIKeyDiscussionIDCommentsParams

NewGetAPIKeyDiscussionIDCommentsParamsWithTimeout creates a new GetAPIKeyDiscussionIDCommentsParams object with the ability to set a timeout on a request.

func (*GetAPIKeyDiscussionIDCommentsParams) SetContext

SetContext adds the context to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) SetDefaults

func (o *GetAPIKeyDiscussionIDCommentsParams) SetDefaults()

SetDefaults hydrates default values in the get API key discussion ID comments params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIKeyDiscussionIDCommentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) SetID

SetID adds the id to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) SetLimit

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

SetLimit adds the limit to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) SetOffset

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

SetOffset adds the offset to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) SetSort

func (o *GetAPIKeyDiscussionIDCommentsParams) SetSort(sort *string)

SetSort adds the sort to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) SetTimeout

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

SetTimeout adds the timeout to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WithContext

WithContext adds the context to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WithDefaults

WithDefaults hydrates default values in the get API key discussion ID comments params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIKeyDiscussionIDCommentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WithID

WithID adds the id to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WithLimit

WithLimit adds the limit to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WithOffset

WithOffset adds the offset to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WithSort

WithSort adds the sort to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WithTimeout

WithTimeout adds the timeout to the get API key discussion ID comments params

func (*GetAPIKeyDiscussionIDCommentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIKeyDiscussionIDCommentsReader

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

GetAPIKeyDiscussionIDCommentsReader is a Reader for the GetAPIKeyDiscussionIDComments structure.

func (*GetAPIKeyDiscussionIDCommentsReader) ReadResponse

func (o *GetAPIKeyDiscussionIDCommentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type PostAPIKeyDiscussionIDCommentsBadRequest

type PostAPIKeyDiscussionIDCommentsBadRequest struct {
	Payload *models.ResponseFailResponse
}

PostAPIKeyDiscussionIDCommentsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostAPIKeyDiscussionIDCommentsBadRequest

func NewPostAPIKeyDiscussionIDCommentsBadRequest() *PostAPIKeyDiscussionIDCommentsBadRequest

NewPostAPIKeyDiscussionIDCommentsBadRequest creates a PostAPIKeyDiscussionIDCommentsBadRequest with default headers values

func (*PostAPIKeyDiscussionIDCommentsBadRequest) Code

Code gets the status code for the post Api key discussion Id comments bad request response

func (*PostAPIKeyDiscussionIDCommentsBadRequest) Error

func (*PostAPIKeyDiscussionIDCommentsBadRequest) GetPayload

func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsClientError

IsClientError returns true when this post Api key discussion Id comments bad request response has a 4xx status code

func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsCode

IsCode returns true when this post Api key discussion Id comments bad request response a status code equal to that given

func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsRedirect

IsRedirect returns true when this post Api key discussion Id comments bad request response has a 3xx status code

func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsServerError

IsServerError returns true when this post Api key discussion Id comments bad request response has a 5xx status code

func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsSuccess

IsSuccess returns true when this post Api key discussion Id comments bad request response has a 2xx status code

func (*PostAPIKeyDiscussionIDCommentsBadRequest) String

type PostAPIKeyDiscussionIDCommentsInternalServerError

type PostAPIKeyDiscussionIDCommentsInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

PostAPIKeyDiscussionIDCommentsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostAPIKeyDiscussionIDCommentsInternalServerError

func NewPostAPIKeyDiscussionIDCommentsInternalServerError() *PostAPIKeyDiscussionIDCommentsInternalServerError

NewPostAPIKeyDiscussionIDCommentsInternalServerError creates a PostAPIKeyDiscussionIDCommentsInternalServerError with default headers values

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) Code

Code gets the status code for the post Api key discussion Id comments internal server error response

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) Error

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) GetPayload

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsClientError

IsClientError returns true when this post Api key discussion Id comments internal server error response has a 4xx status code

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsCode

IsCode returns true when this post Api key discussion Id comments internal server error response a status code equal to that given

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsRedirect

IsRedirect returns true when this post Api key discussion Id comments internal server error response has a 3xx status code

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsServerError

IsServerError returns true when this post Api key discussion Id comments internal server error response has a 5xx status code

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess

IsSuccess returns true when this post Api key discussion Id comments internal server error response has a 2xx status code

func (*PostAPIKeyDiscussionIDCommentsInternalServerError) String

type PostAPIKeyDiscussionIDCommentsOK

type PostAPIKeyDiscussionIDCommentsOK struct {
	Payload *models.ResponseCommentResponse
}

PostAPIKeyDiscussionIDCommentsOK describes a response with status code 200, with default header values.

OK

func NewPostAPIKeyDiscussionIDCommentsOK

func NewPostAPIKeyDiscussionIDCommentsOK() *PostAPIKeyDiscussionIDCommentsOK

NewPostAPIKeyDiscussionIDCommentsOK creates a PostAPIKeyDiscussionIDCommentsOK with default headers values

func (*PostAPIKeyDiscussionIDCommentsOK) Code

Code gets the status code for the post Api key discussion Id comments o k response

func (*PostAPIKeyDiscussionIDCommentsOK) Error

func (*PostAPIKeyDiscussionIDCommentsOK) GetPayload

func (*PostAPIKeyDiscussionIDCommentsOK) IsClientError

func (o *PostAPIKeyDiscussionIDCommentsOK) IsClientError() bool

IsClientError returns true when this post Api key discussion Id comments o k response has a 4xx status code

func (*PostAPIKeyDiscussionIDCommentsOK) IsCode

func (o *PostAPIKeyDiscussionIDCommentsOK) IsCode(code int) bool

IsCode returns true when this post Api key discussion Id comments o k response a status code equal to that given

func (*PostAPIKeyDiscussionIDCommentsOK) IsRedirect

func (o *PostAPIKeyDiscussionIDCommentsOK) IsRedirect() bool

IsRedirect returns true when this post Api key discussion Id comments o k response has a 3xx status code

func (*PostAPIKeyDiscussionIDCommentsOK) IsServerError

func (o *PostAPIKeyDiscussionIDCommentsOK) IsServerError() bool

IsServerError returns true when this post Api key discussion Id comments o k response has a 5xx status code

func (*PostAPIKeyDiscussionIDCommentsOK) IsSuccess

func (o *PostAPIKeyDiscussionIDCommentsOK) IsSuccess() bool

IsSuccess returns true when this post Api key discussion Id comments o k response has a 2xx status code

func (*PostAPIKeyDiscussionIDCommentsOK) String

type PostAPIKeyDiscussionIDCommentsParams

type PostAPIKeyDiscussionIDCommentsParams struct {

	/* ID.

	   Discussion's id
	*/
	ID string

	/* Input.

	   Create Comment Request
	*/
	Input *models.RequestCreateCommentRequest

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

PostAPIKeyDiscussionIDCommentsParams contains all the parameters to send to the API endpoint

for the post API key discussion ID comments operation.

Typically these are written to a http.Request.

func NewPostAPIKeyDiscussionIDCommentsParams

func NewPostAPIKeyDiscussionIDCommentsParams() *PostAPIKeyDiscussionIDCommentsParams

NewPostAPIKeyDiscussionIDCommentsParams creates a new PostAPIKeyDiscussionIDCommentsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostAPIKeyDiscussionIDCommentsParamsWithContext

func NewPostAPIKeyDiscussionIDCommentsParamsWithContext(ctx context.Context) *PostAPIKeyDiscussionIDCommentsParams

NewPostAPIKeyDiscussionIDCommentsParamsWithContext creates a new PostAPIKeyDiscussionIDCommentsParams object with the ability to set a context for a request.

func NewPostAPIKeyDiscussionIDCommentsParamsWithHTTPClient

func NewPostAPIKeyDiscussionIDCommentsParamsWithHTTPClient(client *http.Client) *PostAPIKeyDiscussionIDCommentsParams

NewPostAPIKeyDiscussionIDCommentsParamsWithHTTPClient creates a new PostAPIKeyDiscussionIDCommentsParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPIKeyDiscussionIDCommentsParamsWithTimeout

func NewPostAPIKeyDiscussionIDCommentsParamsWithTimeout(timeout time.Duration) *PostAPIKeyDiscussionIDCommentsParams

NewPostAPIKeyDiscussionIDCommentsParamsWithTimeout creates a new PostAPIKeyDiscussionIDCommentsParams object with the ability to set a timeout on a request.

func (*PostAPIKeyDiscussionIDCommentsParams) SetContext

SetContext adds the context to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) SetDefaults

func (o *PostAPIKeyDiscussionIDCommentsParams) SetDefaults()

SetDefaults hydrates default values in the post API key discussion ID comments params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPIKeyDiscussionIDCommentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) SetID

SetID adds the id to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) SetInput

SetInput adds the input to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) SetTimeout

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

SetTimeout adds the timeout to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) WithContext

WithContext adds the context to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) WithDefaults

WithDefaults hydrates default values in the post API key discussion ID comments params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPIKeyDiscussionIDCommentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) WithID

WithID adds the id to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) WithInput

WithInput adds the input to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) WithTimeout

WithTimeout adds the timeout to the post API key discussion ID comments params

func (*PostAPIKeyDiscussionIDCommentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostAPIKeyDiscussionIDCommentsReader

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

PostAPIKeyDiscussionIDCommentsReader is a Reader for the PostAPIKeyDiscussionIDComments structure.

func (*PostAPIKeyDiscussionIDCommentsReader) ReadResponse

func (o *PostAPIKeyDiscussionIDCommentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type PutAPIKeyCommentsIDBadRequest

type PutAPIKeyCommentsIDBadRequest struct {
	Payload *models.ResponseFailResponse
}

PutAPIKeyCommentsIDBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPutAPIKeyCommentsIDBadRequest

func NewPutAPIKeyCommentsIDBadRequest() *PutAPIKeyCommentsIDBadRequest

NewPutAPIKeyCommentsIDBadRequest creates a PutAPIKeyCommentsIDBadRequest with default headers values

func (*PutAPIKeyCommentsIDBadRequest) Code

Code gets the status code for the put Api key comments Id bad request response

func (*PutAPIKeyCommentsIDBadRequest) Error

func (*PutAPIKeyCommentsIDBadRequest) GetPayload

func (*PutAPIKeyCommentsIDBadRequest) IsClientError

func (o *PutAPIKeyCommentsIDBadRequest) IsClientError() bool

IsClientError returns true when this put Api key comments Id bad request response has a 4xx status code

func (*PutAPIKeyCommentsIDBadRequest) IsCode

func (o *PutAPIKeyCommentsIDBadRequest) IsCode(code int) bool

IsCode returns true when this put Api key comments Id bad request response a status code equal to that given

func (*PutAPIKeyCommentsIDBadRequest) IsRedirect

func (o *PutAPIKeyCommentsIDBadRequest) IsRedirect() bool

IsRedirect returns true when this put Api key comments Id bad request response has a 3xx status code

func (*PutAPIKeyCommentsIDBadRequest) IsServerError

func (o *PutAPIKeyCommentsIDBadRequest) IsServerError() bool

IsServerError returns true when this put Api key comments Id bad request response has a 5xx status code

func (*PutAPIKeyCommentsIDBadRequest) IsSuccess

func (o *PutAPIKeyCommentsIDBadRequest) IsSuccess() bool

IsSuccess returns true when this put Api key comments Id bad request response has a 2xx status code

func (*PutAPIKeyCommentsIDBadRequest) String

type PutAPIKeyCommentsIDInternalServerError

type PutAPIKeyCommentsIDInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

PutAPIKeyCommentsIDInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPutAPIKeyCommentsIDInternalServerError

func NewPutAPIKeyCommentsIDInternalServerError() *PutAPIKeyCommentsIDInternalServerError

NewPutAPIKeyCommentsIDInternalServerError creates a PutAPIKeyCommentsIDInternalServerError with default headers values

func (*PutAPIKeyCommentsIDInternalServerError) Code

Code gets the status code for the put Api key comments Id internal server error response

func (*PutAPIKeyCommentsIDInternalServerError) Error

func (*PutAPIKeyCommentsIDInternalServerError) GetPayload

func (*PutAPIKeyCommentsIDInternalServerError) IsClientError

func (o *PutAPIKeyCommentsIDInternalServerError) IsClientError() bool

IsClientError returns true when this put Api key comments Id internal server error response has a 4xx status code

func (*PutAPIKeyCommentsIDInternalServerError) IsCode

IsCode returns true when this put Api key comments Id internal server error response a status code equal to that given

func (*PutAPIKeyCommentsIDInternalServerError) IsRedirect

IsRedirect returns true when this put Api key comments Id internal server error response has a 3xx status code

func (*PutAPIKeyCommentsIDInternalServerError) IsServerError

func (o *PutAPIKeyCommentsIDInternalServerError) IsServerError() bool

IsServerError returns true when this put Api key comments Id internal server error response has a 5xx status code

func (*PutAPIKeyCommentsIDInternalServerError) IsSuccess

IsSuccess returns true when this put Api key comments Id internal server error response has a 2xx status code

func (*PutAPIKeyCommentsIDInternalServerError) String

type PutAPIKeyCommentsIDOK

type PutAPIKeyCommentsIDOK struct {
	Payload *models.ResponseCommentResponse
}

PutAPIKeyCommentsIDOK describes a response with status code 200, with default header values.

OK

func NewPutAPIKeyCommentsIDOK

func NewPutAPIKeyCommentsIDOK() *PutAPIKeyCommentsIDOK

NewPutAPIKeyCommentsIDOK creates a PutAPIKeyCommentsIDOK with default headers values

func (*PutAPIKeyCommentsIDOK) Code

func (o *PutAPIKeyCommentsIDOK) Code() int

Code gets the status code for the put Api key comments Id o k response

func (*PutAPIKeyCommentsIDOK) Error

func (o *PutAPIKeyCommentsIDOK) Error() string

func (*PutAPIKeyCommentsIDOK) GetPayload

func (*PutAPIKeyCommentsIDOK) IsClientError

func (o *PutAPIKeyCommentsIDOK) IsClientError() bool

IsClientError returns true when this put Api key comments Id o k response has a 4xx status code

func (*PutAPIKeyCommentsIDOK) IsCode

func (o *PutAPIKeyCommentsIDOK) IsCode(code int) bool

IsCode returns true when this put Api key comments Id o k response a status code equal to that given

func (*PutAPIKeyCommentsIDOK) IsRedirect

func (o *PutAPIKeyCommentsIDOK) IsRedirect() bool

IsRedirect returns true when this put Api key comments Id o k response has a 3xx status code

func (*PutAPIKeyCommentsIDOK) IsServerError

func (o *PutAPIKeyCommentsIDOK) IsServerError() bool

IsServerError returns true when this put Api key comments Id o k response has a 5xx status code

func (*PutAPIKeyCommentsIDOK) IsSuccess

func (o *PutAPIKeyCommentsIDOK) IsSuccess() bool

IsSuccess returns true when this put Api key comments Id o k response has a 2xx status code

func (*PutAPIKeyCommentsIDOK) String

func (o *PutAPIKeyCommentsIDOK) String() string

type PutAPIKeyCommentsIDParams

type PutAPIKeyCommentsIDParams struct {

	/* ID.

	   Comment's id
	*/
	ID string

	/* Input.

	   Update Comment Request
	*/
	Input *models.RequestUpdateCommentRequest

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

PutAPIKeyCommentsIDParams contains all the parameters to send to the API endpoint

for the put API key comments ID operation.

Typically these are written to a http.Request.

func NewPutAPIKeyCommentsIDParams

func NewPutAPIKeyCommentsIDParams() *PutAPIKeyCommentsIDParams

NewPutAPIKeyCommentsIDParams creates a new PutAPIKeyCommentsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutAPIKeyCommentsIDParamsWithContext

func NewPutAPIKeyCommentsIDParamsWithContext(ctx context.Context) *PutAPIKeyCommentsIDParams

NewPutAPIKeyCommentsIDParamsWithContext creates a new PutAPIKeyCommentsIDParams object with the ability to set a context for a request.

func NewPutAPIKeyCommentsIDParamsWithHTTPClient

func NewPutAPIKeyCommentsIDParamsWithHTTPClient(client *http.Client) *PutAPIKeyCommentsIDParams

NewPutAPIKeyCommentsIDParamsWithHTTPClient creates a new PutAPIKeyCommentsIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutAPIKeyCommentsIDParamsWithTimeout

func NewPutAPIKeyCommentsIDParamsWithTimeout(timeout time.Duration) *PutAPIKeyCommentsIDParams

NewPutAPIKeyCommentsIDParamsWithTimeout creates a new PutAPIKeyCommentsIDParams object with the ability to set a timeout on a request.

func (*PutAPIKeyCommentsIDParams) SetContext

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

SetContext adds the context to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) SetDefaults

func (o *PutAPIKeyCommentsIDParams) SetDefaults()

SetDefaults hydrates default values in the put API key comments ID params (not the query body).

All values with no default are reset to their zero value.

func (*PutAPIKeyCommentsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) SetID

func (o *PutAPIKeyCommentsIDParams) SetID(id string)

SetID adds the id to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) SetInput

SetInput adds the input to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) SetTimeout

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

SetTimeout adds the timeout to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) WithContext

WithContext adds the context to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) WithDefaults

WithDefaults hydrates default values in the put API key comments ID params (not the query body).

All values with no default are reset to their zero value.

func (*PutAPIKeyCommentsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) WithID

WithID adds the id to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) WithInput

WithInput adds the input to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) WithTimeout

WithTimeout adds the timeout to the put API key comments ID params

func (*PutAPIKeyCommentsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutAPIKeyCommentsIDReader

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

PutAPIKeyCommentsIDReader is a Reader for the PutAPIKeyCommentsID structure.

func (*PutAPIKeyCommentsIDReader) ReadResponse

func (o *PutAPIKeyCommentsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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