comment

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 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 comment API

func (*Client) GetDiscussionByIDComments

func (a *Client) GetDiscussionByIDComments(params *GetDiscussionByIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDiscussionByIDCommentsOK, error)

GetDiscussionByIDComments gets comment list

func (*Client) PostDiscussionByIDComments

func (a *Client) PostDiscussionByIDComments(params *PostDiscussionByIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDiscussionByIDCommentsOK, error)

PostDiscussionByIDComments creates comment

Content max length is 10000 characters

func (*Client) PutCommentsByID

func (a *Client) PutCommentsByID(params *PutCommentsByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutCommentsByIDOK, error)

PutCommentsByID updates comment

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 {
	GetDiscussionByIDComments(params *GetDiscussionByIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDiscussionByIDCommentsOK, error)

	PostDiscussionByIDComments(params *PostDiscussionByIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDiscussionByIDCommentsOK, error)

	PutCommentsByID(params *PutCommentsByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutCommentsByIDOK, 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 comment API client.

func NewClientWithBasicAuth

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

New creates a new comment 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 comment 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 GetDiscussionByIDCommentsBadRequest

type GetDiscussionByIDCommentsBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetDiscussionByIDCommentsBadRequest

func NewGetDiscussionByIDCommentsBadRequest() *GetDiscussionByIDCommentsBadRequest

NewGetDiscussionByIDCommentsBadRequest creates a GetDiscussionByIDCommentsBadRequest with default headers values

func (*GetDiscussionByIDCommentsBadRequest) Code

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

func (*GetDiscussionByIDCommentsBadRequest) Error

func (*GetDiscussionByIDCommentsBadRequest) GetPayload

func (*GetDiscussionByIDCommentsBadRequest) IsClientError

func (o *GetDiscussionByIDCommentsBadRequest) IsClientError() bool

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

func (*GetDiscussionByIDCommentsBadRequest) IsCode

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

func (*GetDiscussionByIDCommentsBadRequest) IsRedirect

func (o *GetDiscussionByIDCommentsBadRequest) IsRedirect() bool

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

func (*GetDiscussionByIDCommentsBadRequest) IsServerError

func (o *GetDiscussionByIDCommentsBadRequest) IsServerError() bool

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

func (*GetDiscussionByIDCommentsBadRequest) IsSuccess

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

func (*GetDiscussionByIDCommentsBadRequest) String

type GetDiscussionByIDCommentsInternalServerError

type GetDiscussionByIDCommentsInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetDiscussionByIDCommentsInternalServerError

func NewGetDiscussionByIDCommentsInternalServerError() *GetDiscussionByIDCommentsInternalServerError

NewGetDiscussionByIDCommentsInternalServerError creates a GetDiscussionByIDCommentsInternalServerError with default headers values

func (*GetDiscussionByIDCommentsInternalServerError) Code

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

func (*GetDiscussionByIDCommentsInternalServerError) Error

func (*GetDiscussionByIDCommentsInternalServerError) GetPayload

func (*GetDiscussionByIDCommentsInternalServerError) IsClientError

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

func (*GetDiscussionByIDCommentsInternalServerError) IsCode

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

func (*GetDiscussionByIDCommentsInternalServerError) IsRedirect

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

func (*GetDiscussionByIDCommentsInternalServerError) IsServerError

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

func (*GetDiscussionByIDCommentsInternalServerError) IsSuccess

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

func (*GetDiscussionByIDCommentsInternalServerError) String

type GetDiscussionByIDCommentsOK

type GetDiscussionByIDCommentsOK struct {
	Payload *models.ResponseCommentListResponse
}

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

OK

func NewGetDiscussionByIDCommentsOK

func NewGetDiscussionByIDCommentsOK() *GetDiscussionByIDCommentsOK

NewGetDiscussionByIDCommentsOK creates a GetDiscussionByIDCommentsOK with default headers values

func (*GetDiscussionByIDCommentsOK) Code

func (o *GetDiscussionByIDCommentsOK) Code() int

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

func (*GetDiscussionByIDCommentsOK) Error

func (*GetDiscussionByIDCommentsOK) GetPayload

func (*GetDiscussionByIDCommentsOK) IsClientError

func (o *GetDiscussionByIDCommentsOK) IsClientError() bool

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

func (*GetDiscussionByIDCommentsOK) IsCode

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

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

func (*GetDiscussionByIDCommentsOK) IsRedirect

func (o *GetDiscussionByIDCommentsOK) IsRedirect() bool

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

func (*GetDiscussionByIDCommentsOK) IsServerError

func (o *GetDiscussionByIDCommentsOK) IsServerError() bool

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

func (*GetDiscussionByIDCommentsOK) IsSuccess

func (o *GetDiscussionByIDCommentsOK) IsSuccess() bool

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

func (*GetDiscussionByIDCommentsOK) String

func (o *GetDiscussionByIDCommentsOK) String() string

type GetDiscussionByIDCommentsParams

type GetDiscussionByIDCommentsParams 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
}

GetDiscussionByIDCommentsParams contains all the parameters to send to the API endpoint

for the get discussion by Id comments operation.

Typically these are written to a http.Request.

func NewGetDiscussionByIDCommentsParams

func NewGetDiscussionByIDCommentsParams() *GetDiscussionByIDCommentsParams

NewGetDiscussionByIDCommentsParams creates a new GetDiscussionByIDCommentsParams 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 NewGetDiscussionByIDCommentsParamsWithContext

func NewGetDiscussionByIDCommentsParamsWithContext(ctx context.Context) *GetDiscussionByIDCommentsParams

NewGetDiscussionByIDCommentsParamsWithContext creates a new GetDiscussionByIDCommentsParams object with the ability to set a context for a request.

func NewGetDiscussionByIDCommentsParamsWithHTTPClient

func NewGetDiscussionByIDCommentsParamsWithHTTPClient(client *http.Client) *GetDiscussionByIDCommentsParams

NewGetDiscussionByIDCommentsParamsWithHTTPClient creates a new GetDiscussionByIDCommentsParams object with the ability to set a custom HTTPClient for a request.

func NewGetDiscussionByIDCommentsParamsWithTimeout

func NewGetDiscussionByIDCommentsParamsWithTimeout(timeout time.Duration) *GetDiscussionByIDCommentsParams

NewGetDiscussionByIDCommentsParamsWithTimeout creates a new GetDiscussionByIDCommentsParams object with the ability to set a timeout on a request.

func (*GetDiscussionByIDCommentsParams) SetContext

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

SetContext adds the context to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) SetDefaults

func (o *GetDiscussionByIDCommentsParams) SetDefaults()

SetDefaults hydrates default values in the get discussion by Id comments params (not the query body).

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

func (*GetDiscussionByIDCommentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) SetID

SetID adds the id to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) SetLimit

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

SetLimit adds the limit to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) SetOffset

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

SetOffset adds the offset to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) SetSort

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

SetSort adds the sort to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) SetTimeout

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

SetTimeout adds the timeout to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WithContext

WithContext adds the context to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WithDefaults

WithDefaults hydrates default values in the get discussion by Id comments params (not the query body).

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

func (*GetDiscussionByIDCommentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WithID

WithID adds the id to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WithLimit

WithLimit adds the limit to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WithOffset

WithOffset adds the offset to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WithSort

WithSort adds the sort to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WithTimeout

WithTimeout adds the timeout to the get discussion by Id comments params

func (*GetDiscussionByIDCommentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDiscussionByIDCommentsReader

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

GetDiscussionByIDCommentsReader is a Reader for the GetDiscussionByIDComments structure.

func (*GetDiscussionByIDCommentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDiscussionByIDCommentsBadRequest

type PostDiscussionByIDCommentsBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewPostDiscussionByIDCommentsBadRequest

func NewPostDiscussionByIDCommentsBadRequest() *PostDiscussionByIDCommentsBadRequest

NewPostDiscussionByIDCommentsBadRequest creates a PostDiscussionByIDCommentsBadRequest with default headers values

func (*PostDiscussionByIDCommentsBadRequest) Code

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

func (*PostDiscussionByIDCommentsBadRequest) Error

func (*PostDiscussionByIDCommentsBadRequest) GetPayload

func (*PostDiscussionByIDCommentsBadRequest) IsClientError

func (o *PostDiscussionByIDCommentsBadRequest) IsClientError() bool

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

func (*PostDiscussionByIDCommentsBadRequest) IsCode

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

func (*PostDiscussionByIDCommentsBadRequest) IsRedirect

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

func (*PostDiscussionByIDCommentsBadRequest) IsServerError

func (o *PostDiscussionByIDCommentsBadRequest) IsServerError() bool

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

func (*PostDiscussionByIDCommentsBadRequest) IsSuccess

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

func (*PostDiscussionByIDCommentsBadRequest) String

type PostDiscussionByIDCommentsInternalServerError

type PostDiscussionByIDCommentsInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewPostDiscussionByIDCommentsInternalServerError

func NewPostDiscussionByIDCommentsInternalServerError() *PostDiscussionByIDCommentsInternalServerError

NewPostDiscussionByIDCommentsInternalServerError creates a PostDiscussionByIDCommentsInternalServerError with default headers values

func (*PostDiscussionByIDCommentsInternalServerError) Code

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

func (*PostDiscussionByIDCommentsInternalServerError) Error

func (*PostDiscussionByIDCommentsInternalServerError) GetPayload

func (*PostDiscussionByIDCommentsInternalServerError) IsClientError

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

func (*PostDiscussionByIDCommentsInternalServerError) IsCode

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

func (*PostDiscussionByIDCommentsInternalServerError) IsRedirect

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

func (*PostDiscussionByIDCommentsInternalServerError) IsServerError

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

func (*PostDiscussionByIDCommentsInternalServerError) IsSuccess

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

func (*PostDiscussionByIDCommentsInternalServerError) String

type PostDiscussionByIDCommentsOK

type PostDiscussionByIDCommentsOK struct {
	Payload *models.ResponseCommentResponse
}

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

OK

func NewPostDiscussionByIDCommentsOK

func NewPostDiscussionByIDCommentsOK() *PostDiscussionByIDCommentsOK

NewPostDiscussionByIDCommentsOK creates a PostDiscussionByIDCommentsOK with default headers values

func (*PostDiscussionByIDCommentsOK) Code

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

func (*PostDiscussionByIDCommentsOK) Error

func (*PostDiscussionByIDCommentsOK) GetPayload

func (*PostDiscussionByIDCommentsOK) IsClientError

func (o *PostDiscussionByIDCommentsOK) IsClientError() bool

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

func (*PostDiscussionByIDCommentsOK) IsCode

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

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

func (*PostDiscussionByIDCommentsOK) IsRedirect

func (o *PostDiscussionByIDCommentsOK) IsRedirect() bool

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

func (*PostDiscussionByIDCommentsOK) IsServerError

func (o *PostDiscussionByIDCommentsOK) IsServerError() bool

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

func (*PostDiscussionByIDCommentsOK) IsSuccess

func (o *PostDiscussionByIDCommentsOK) IsSuccess() bool

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

func (*PostDiscussionByIDCommentsOK) String

type PostDiscussionByIDCommentsParams

type PostDiscussionByIDCommentsParams 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
}

PostDiscussionByIDCommentsParams contains all the parameters to send to the API endpoint

for the post discussion by Id comments operation.

Typically these are written to a http.Request.

func NewPostDiscussionByIDCommentsParams

func NewPostDiscussionByIDCommentsParams() *PostDiscussionByIDCommentsParams

NewPostDiscussionByIDCommentsParams creates a new PostDiscussionByIDCommentsParams 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 NewPostDiscussionByIDCommentsParamsWithContext

func NewPostDiscussionByIDCommentsParamsWithContext(ctx context.Context) *PostDiscussionByIDCommentsParams

NewPostDiscussionByIDCommentsParamsWithContext creates a new PostDiscussionByIDCommentsParams object with the ability to set a context for a request.

func NewPostDiscussionByIDCommentsParamsWithHTTPClient

func NewPostDiscussionByIDCommentsParamsWithHTTPClient(client *http.Client) *PostDiscussionByIDCommentsParams

NewPostDiscussionByIDCommentsParamsWithHTTPClient creates a new PostDiscussionByIDCommentsParams object with the ability to set a custom HTTPClient for a request.

func NewPostDiscussionByIDCommentsParamsWithTimeout

func NewPostDiscussionByIDCommentsParamsWithTimeout(timeout time.Duration) *PostDiscussionByIDCommentsParams

NewPostDiscussionByIDCommentsParamsWithTimeout creates a new PostDiscussionByIDCommentsParams object with the ability to set a timeout on a request.

func (*PostDiscussionByIDCommentsParams) SetContext

SetContext adds the context to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) SetDefaults

func (o *PostDiscussionByIDCommentsParams) SetDefaults()

SetDefaults hydrates default values in the post discussion by Id comments params (not the query body).

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

func (*PostDiscussionByIDCommentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) SetID

SetID adds the id to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) SetInput

SetInput adds the input to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) SetTimeout

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

SetTimeout adds the timeout to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) WithContext

WithContext adds the context to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) WithDefaults

WithDefaults hydrates default values in the post discussion by Id comments params (not the query body).

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

func (*PostDiscussionByIDCommentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) WithID

WithID adds the id to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) WithInput

WithInput adds the input to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) WithTimeout

WithTimeout adds the timeout to the post discussion by Id comments params

func (*PostDiscussionByIDCommentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostDiscussionByIDCommentsReader

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

PostDiscussionByIDCommentsReader is a Reader for the PostDiscussionByIDComments structure.

func (*PostDiscussionByIDCommentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutCommentsByIDBadRequest

type PutCommentsByIDBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewPutCommentsByIDBadRequest

func NewPutCommentsByIDBadRequest() *PutCommentsByIDBadRequest

NewPutCommentsByIDBadRequest creates a PutCommentsByIDBadRequest with default headers values

func (*PutCommentsByIDBadRequest) Code

func (o *PutCommentsByIDBadRequest) Code() int

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

func (*PutCommentsByIDBadRequest) Error

func (o *PutCommentsByIDBadRequest) Error() string

func (*PutCommentsByIDBadRequest) GetPayload

func (*PutCommentsByIDBadRequest) IsClientError

func (o *PutCommentsByIDBadRequest) IsClientError() bool

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

func (*PutCommentsByIDBadRequest) IsCode

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

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

func (*PutCommentsByIDBadRequest) IsRedirect

func (o *PutCommentsByIDBadRequest) IsRedirect() bool

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

func (*PutCommentsByIDBadRequest) IsServerError

func (o *PutCommentsByIDBadRequest) IsServerError() bool

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

func (*PutCommentsByIDBadRequest) IsSuccess

func (o *PutCommentsByIDBadRequest) IsSuccess() bool

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

func (*PutCommentsByIDBadRequest) String

func (o *PutCommentsByIDBadRequest) String() string

type PutCommentsByIDInternalServerError

type PutCommentsByIDInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewPutCommentsByIDInternalServerError

func NewPutCommentsByIDInternalServerError() *PutCommentsByIDInternalServerError

NewPutCommentsByIDInternalServerError creates a PutCommentsByIDInternalServerError with default headers values

func (*PutCommentsByIDInternalServerError) Code

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

func (*PutCommentsByIDInternalServerError) Error

func (*PutCommentsByIDInternalServerError) GetPayload

func (*PutCommentsByIDInternalServerError) IsClientError

func (o *PutCommentsByIDInternalServerError) IsClientError() bool

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

func (*PutCommentsByIDInternalServerError) IsCode

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

func (*PutCommentsByIDInternalServerError) IsRedirect

func (o *PutCommentsByIDInternalServerError) IsRedirect() bool

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

func (*PutCommentsByIDInternalServerError) IsServerError

func (o *PutCommentsByIDInternalServerError) IsServerError() bool

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

func (*PutCommentsByIDInternalServerError) IsSuccess

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

func (*PutCommentsByIDInternalServerError) String

type PutCommentsByIDOK

type PutCommentsByIDOK struct {
	Payload *models.ResponseCommentResponse
}

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

OK

func NewPutCommentsByIDOK

func NewPutCommentsByIDOK() *PutCommentsByIDOK

NewPutCommentsByIDOK creates a PutCommentsByIDOK with default headers values

func (*PutCommentsByIDOK) Code

func (o *PutCommentsByIDOK) Code() int

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

func (*PutCommentsByIDOK) Error

func (o *PutCommentsByIDOK) Error() string

func (*PutCommentsByIDOK) GetPayload

func (*PutCommentsByIDOK) IsClientError

func (o *PutCommentsByIDOK) IsClientError() bool

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

func (*PutCommentsByIDOK) IsCode

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

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

func (*PutCommentsByIDOK) IsRedirect

func (o *PutCommentsByIDOK) IsRedirect() bool

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

func (*PutCommentsByIDOK) IsServerError

func (o *PutCommentsByIDOK) IsServerError() bool

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

func (*PutCommentsByIDOK) IsSuccess

func (o *PutCommentsByIDOK) IsSuccess() bool

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

func (*PutCommentsByIDOK) String

func (o *PutCommentsByIDOK) String() string

type PutCommentsByIDParams

type PutCommentsByIDParams 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
}

PutCommentsByIDParams contains all the parameters to send to the API endpoint

for the put comments by Id operation.

Typically these are written to a http.Request.

func NewPutCommentsByIDParams

func NewPutCommentsByIDParams() *PutCommentsByIDParams

NewPutCommentsByIDParams creates a new PutCommentsByIDParams 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 NewPutCommentsByIDParamsWithContext

func NewPutCommentsByIDParamsWithContext(ctx context.Context) *PutCommentsByIDParams

NewPutCommentsByIDParamsWithContext creates a new PutCommentsByIDParams object with the ability to set a context for a request.

func NewPutCommentsByIDParamsWithHTTPClient

func NewPutCommentsByIDParamsWithHTTPClient(client *http.Client) *PutCommentsByIDParams

NewPutCommentsByIDParamsWithHTTPClient creates a new PutCommentsByIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutCommentsByIDParamsWithTimeout

func NewPutCommentsByIDParamsWithTimeout(timeout time.Duration) *PutCommentsByIDParams

NewPutCommentsByIDParamsWithTimeout creates a new PutCommentsByIDParams object with the ability to set a timeout on a request.

func (*PutCommentsByIDParams) SetContext

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

SetContext adds the context to the put comments by Id params

func (*PutCommentsByIDParams) SetDefaults

func (o *PutCommentsByIDParams) SetDefaults()

SetDefaults hydrates default values in the put comments by Id params (not the query body).

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

func (*PutCommentsByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put comments by Id params

func (*PutCommentsByIDParams) SetID

func (o *PutCommentsByIDParams) SetID(id string)

SetID adds the id to the put comments by Id params

func (*PutCommentsByIDParams) SetInput

SetInput adds the input to the put comments by Id params

func (*PutCommentsByIDParams) SetTimeout

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

SetTimeout adds the timeout to the put comments by Id params

func (*PutCommentsByIDParams) WithContext

WithContext adds the context to the put comments by Id params

func (*PutCommentsByIDParams) WithDefaults

func (o *PutCommentsByIDParams) WithDefaults() *PutCommentsByIDParams

WithDefaults hydrates default values in the put comments by Id params (not the query body).

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

func (*PutCommentsByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put comments by Id params

func (*PutCommentsByIDParams) WithID

WithID adds the id to the put comments by Id params

func (*PutCommentsByIDParams) WithInput

WithInput adds the input to the put comments by Id params

func (*PutCommentsByIDParams) WithTimeout

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

WithTimeout adds the timeout to the put comments by Id params

func (*PutCommentsByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutCommentsByIDReader

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

PutCommentsByIDReader is a Reader for the PutCommentsByID structure.

func (*PutCommentsByIDReader) ReadResponse

func (o *PutCommentsByIDReader) 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
⌂ 换网址