Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) GetDiscussionByIDComments(params *GetDiscussionByIDCommentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetDiscussionByIDCommentsOK, error)
- func (a *Client) PostDiscussionByIDComments(params *PostDiscussionByIDCommentsParams, ...) (*PostDiscussionByIDCommentsOK, error)
- func (a *Client) PutCommentsByID(params *PutCommentsByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutCommentsByIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetDiscussionByIDCommentsBadRequest
- func (o *GetDiscussionByIDCommentsBadRequest) Code() int
- func (o *GetDiscussionByIDCommentsBadRequest) Error() string
- func (o *GetDiscussionByIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *GetDiscussionByIDCommentsBadRequest) IsClientError() bool
- func (o *GetDiscussionByIDCommentsBadRequest) IsCode(code int) bool
- func (o *GetDiscussionByIDCommentsBadRequest) IsRedirect() bool
- func (o *GetDiscussionByIDCommentsBadRequest) IsServerError() bool
- func (o *GetDiscussionByIDCommentsBadRequest) IsSuccess() bool
- func (o *GetDiscussionByIDCommentsBadRequest) String() string
- type GetDiscussionByIDCommentsInternalServerError
- func (o *GetDiscussionByIDCommentsInternalServerError) Code() int
- func (o *GetDiscussionByIDCommentsInternalServerError) Error() string
- func (o *GetDiscussionByIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *GetDiscussionByIDCommentsInternalServerError) IsClientError() bool
- func (o *GetDiscussionByIDCommentsInternalServerError) IsCode(code int) bool
- func (o *GetDiscussionByIDCommentsInternalServerError) IsRedirect() bool
- func (o *GetDiscussionByIDCommentsInternalServerError) IsServerError() bool
- func (o *GetDiscussionByIDCommentsInternalServerError) IsSuccess() bool
- func (o *GetDiscussionByIDCommentsInternalServerError) String() string
- type GetDiscussionByIDCommentsOK
- func (o *GetDiscussionByIDCommentsOK) Code() int
- func (o *GetDiscussionByIDCommentsOK) Error() string
- func (o *GetDiscussionByIDCommentsOK) GetPayload() *models.ResponseCommentListResponse
- func (o *GetDiscussionByIDCommentsOK) IsClientError() bool
- func (o *GetDiscussionByIDCommentsOK) IsCode(code int) bool
- func (o *GetDiscussionByIDCommentsOK) IsRedirect() bool
- func (o *GetDiscussionByIDCommentsOK) IsServerError() bool
- func (o *GetDiscussionByIDCommentsOK) IsSuccess() bool
- func (o *GetDiscussionByIDCommentsOK) String() string
- type GetDiscussionByIDCommentsParams
- func NewGetDiscussionByIDCommentsParams() *GetDiscussionByIDCommentsParams
- func NewGetDiscussionByIDCommentsParamsWithContext(ctx context.Context) *GetDiscussionByIDCommentsParams
- func NewGetDiscussionByIDCommentsParamsWithHTTPClient(client *http.Client) *GetDiscussionByIDCommentsParams
- func NewGetDiscussionByIDCommentsParamsWithTimeout(timeout time.Duration) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) SetContext(ctx context.Context)
- func (o *GetDiscussionByIDCommentsParams) SetDefaults()
- func (o *GetDiscussionByIDCommentsParams) SetHTTPClient(client *http.Client)
- func (o *GetDiscussionByIDCommentsParams) SetID(id string)
- func (o *GetDiscussionByIDCommentsParams) SetLimit(limit *int64)
- func (o *GetDiscussionByIDCommentsParams) SetOffset(offset *int64)
- func (o *GetDiscussionByIDCommentsParams) SetSort(sort *string)
- func (o *GetDiscussionByIDCommentsParams) SetTimeout(timeout time.Duration)
- func (o *GetDiscussionByIDCommentsParams) WithContext(ctx context.Context) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WithDefaults() *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WithHTTPClient(client *http.Client) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WithID(id string) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WithLimit(limit *int64) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WithOffset(offset *int64) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WithSort(sort *string) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WithTimeout(timeout time.Duration) *GetDiscussionByIDCommentsParams
- func (o *GetDiscussionByIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDiscussionByIDCommentsReader
- type PostDiscussionByIDCommentsBadRequest
- func (o *PostDiscussionByIDCommentsBadRequest) Code() int
- func (o *PostDiscussionByIDCommentsBadRequest) Error() string
- func (o *PostDiscussionByIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *PostDiscussionByIDCommentsBadRequest) IsClientError() bool
- func (o *PostDiscussionByIDCommentsBadRequest) IsCode(code int) bool
- func (o *PostDiscussionByIDCommentsBadRequest) IsRedirect() bool
- func (o *PostDiscussionByIDCommentsBadRequest) IsServerError() bool
- func (o *PostDiscussionByIDCommentsBadRequest) IsSuccess() bool
- func (o *PostDiscussionByIDCommentsBadRequest) String() string
- type PostDiscussionByIDCommentsInternalServerError
- func (o *PostDiscussionByIDCommentsInternalServerError) Code() int
- func (o *PostDiscussionByIDCommentsInternalServerError) Error() string
- func (o *PostDiscussionByIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *PostDiscussionByIDCommentsInternalServerError) IsClientError() bool
- func (o *PostDiscussionByIDCommentsInternalServerError) IsCode(code int) bool
- func (o *PostDiscussionByIDCommentsInternalServerError) IsRedirect() bool
- func (o *PostDiscussionByIDCommentsInternalServerError) IsServerError() bool
- func (o *PostDiscussionByIDCommentsInternalServerError) IsSuccess() bool
- func (o *PostDiscussionByIDCommentsInternalServerError) String() string
- type PostDiscussionByIDCommentsOK
- func (o *PostDiscussionByIDCommentsOK) Code() int
- func (o *PostDiscussionByIDCommentsOK) Error() string
- func (o *PostDiscussionByIDCommentsOK) GetPayload() *models.ResponseCommentResponse
- func (o *PostDiscussionByIDCommentsOK) IsClientError() bool
- func (o *PostDiscussionByIDCommentsOK) IsCode(code int) bool
- func (o *PostDiscussionByIDCommentsOK) IsRedirect() bool
- func (o *PostDiscussionByIDCommentsOK) IsServerError() bool
- func (o *PostDiscussionByIDCommentsOK) IsSuccess() bool
- func (o *PostDiscussionByIDCommentsOK) String() string
- type PostDiscussionByIDCommentsParams
- func NewPostDiscussionByIDCommentsParams() *PostDiscussionByIDCommentsParams
- func NewPostDiscussionByIDCommentsParamsWithContext(ctx context.Context) *PostDiscussionByIDCommentsParams
- func NewPostDiscussionByIDCommentsParamsWithHTTPClient(client *http.Client) *PostDiscussionByIDCommentsParams
- func NewPostDiscussionByIDCommentsParamsWithTimeout(timeout time.Duration) *PostDiscussionByIDCommentsParams
- func (o *PostDiscussionByIDCommentsParams) SetContext(ctx context.Context)
- func (o *PostDiscussionByIDCommentsParams) SetDefaults()
- func (o *PostDiscussionByIDCommentsParams) SetHTTPClient(client *http.Client)
- func (o *PostDiscussionByIDCommentsParams) SetID(id string)
- func (o *PostDiscussionByIDCommentsParams) SetInput(input *models.RequestCreateCommentRequest)
- func (o *PostDiscussionByIDCommentsParams) SetTimeout(timeout time.Duration)
- func (o *PostDiscussionByIDCommentsParams) WithContext(ctx context.Context) *PostDiscussionByIDCommentsParams
- func (o *PostDiscussionByIDCommentsParams) WithDefaults() *PostDiscussionByIDCommentsParams
- func (o *PostDiscussionByIDCommentsParams) WithHTTPClient(client *http.Client) *PostDiscussionByIDCommentsParams
- func (o *PostDiscussionByIDCommentsParams) WithID(id string) *PostDiscussionByIDCommentsParams
- func (o *PostDiscussionByIDCommentsParams) WithInput(input *models.RequestCreateCommentRequest) *PostDiscussionByIDCommentsParams
- func (o *PostDiscussionByIDCommentsParams) WithTimeout(timeout time.Duration) *PostDiscussionByIDCommentsParams
- func (o *PostDiscussionByIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostDiscussionByIDCommentsReader
- type PutCommentsByIDBadRequest
- func (o *PutCommentsByIDBadRequest) Code() int
- func (o *PutCommentsByIDBadRequest) Error() string
- func (o *PutCommentsByIDBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *PutCommentsByIDBadRequest) IsClientError() bool
- func (o *PutCommentsByIDBadRequest) IsCode(code int) bool
- func (o *PutCommentsByIDBadRequest) IsRedirect() bool
- func (o *PutCommentsByIDBadRequest) IsServerError() bool
- func (o *PutCommentsByIDBadRequest) IsSuccess() bool
- func (o *PutCommentsByIDBadRequest) String() string
- type PutCommentsByIDInternalServerError
- func (o *PutCommentsByIDInternalServerError) Code() int
- func (o *PutCommentsByIDInternalServerError) Error() string
- func (o *PutCommentsByIDInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *PutCommentsByIDInternalServerError) IsClientError() bool
- func (o *PutCommentsByIDInternalServerError) IsCode(code int) bool
- func (o *PutCommentsByIDInternalServerError) IsRedirect() bool
- func (o *PutCommentsByIDInternalServerError) IsServerError() bool
- func (o *PutCommentsByIDInternalServerError) IsSuccess() bool
- func (o *PutCommentsByIDInternalServerError) String() string
- type PutCommentsByIDOK
- func (o *PutCommentsByIDOK) Code() int
- func (o *PutCommentsByIDOK) Error() string
- func (o *PutCommentsByIDOK) GetPayload() *models.ResponseCommentResponse
- func (o *PutCommentsByIDOK) IsClientError() bool
- func (o *PutCommentsByIDOK) IsCode(code int) bool
- func (o *PutCommentsByIDOK) IsRedirect() bool
- func (o *PutCommentsByIDOK) IsServerError() bool
- func (o *PutCommentsByIDOK) IsSuccess() bool
- func (o *PutCommentsByIDOK) String() string
- type PutCommentsByIDParams
- func NewPutCommentsByIDParams() *PutCommentsByIDParams
- func NewPutCommentsByIDParamsWithContext(ctx context.Context) *PutCommentsByIDParams
- func NewPutCommentsByIDParamsWithHTTPClient(client *http.Client) *PutCommentsByIDParams
- func NewPutCommentsByIDParamsWithTimeout(timeout time.Duration) *PutCommentsByIDParams
- func (o *PutCommentsByIDParams) SetContext(ctx context.Context)
- func (o *PutCommentsByIDParams) SetDefaults()
- func (o *PutCommentsByIDParams) SetHTTPClient(client *http.Client)
- func (o *PutCommentsByIDParams) SetID(id string)
- func (o *PutCommentsByIDParams) SetInput(input *models.RequestUpdateCommentRequest)
- func (o *PutCommentsByIDParams) SetTimeout(timeout time.Duration)
- func (o *PutCommentsByIDParams) WithContext(ctx context.Context) *PutCommentsByIDParams
- func (o *PutCommentsByIDParams) WithDefaults() *PutCommentsByIDParams
- func (o *PutCommentsByIDParams) WithHTTPClient(client *http.Client) *PutCommentsByIDParams
- func (o *PutCommentsByIDParams) WithID(id string) *PutCommentsByIDParams
- func (o *PutCommentsByIDParams) WithInput(input *models.RequestUpdateCommentRequest) *PutCommentsByIDParams
- func (o *PutCommentsByIDParams) WithTimeout(timeout time.Duration) *PutCommentsByIDParams
- func (o *PutCommentsByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutCommentsByIDReader
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 ¶
func (o *GetDiscussionByIDCommentsBadRequest) Code() int
Code gets the status code for the get discussion by Id comments bad request response
func (*GetDiscussionByIDCommentsBadRequest) Error ¶
func (o *GetDiscussionByIDCommentsBadRequest) Error() string
func (*GetDiscussionByIDCommentsBadRequest) GetPayload ¶
func (o *GetDiscussionByIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *GetDiscussionByIDCommentsBadRequest) IsCode(code int) bool
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 ¶
func (o *GetDiscussionByIDCommentsBadRequest) IsSuccess() bool
IsSuccess returns true when this get discussion by Id comments bad request response has a 2xx status code
func (*GetDiscussionByIDCommentsBadRequest) String ¶
func (o *GetDiscussionByIDCommentsBadRequest) String() 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 ¶
func (o *GetDiscussionByIDCommentsInternalServerError) Code() int
Code gets the status code for the get discussion by Id comments internal server error response
func (*GetDiscussionByIDCommentsInternalServerError) Error ¶
func (o *GetDiscussionByIDCommentsInternalServerError) Error() string
func (*GetDiscussionByIDCommentsInternalServerError) GetPayload ¶
func (o *GetDiscussionByIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*GetDiscussionByIDCommentsInternalServerError) IsClientError ¶
func (o *GetDiscussionByIDCommentsInternalServerError) IsClientError() bool
IsClientError returns true when this get discussion by Id comments internal server error response has a 4xx status code
func (*GetDiscussionByIDCommentsInternalServerError) IsCode ¶
func (o *GetDiscussionByIDCommentsInternalServerError) IsCode(code int) bool
IsCode returns true when this get discussion by Id comments internal server error response a status code equal to that given
func (*GetDiscussionByIDCommentsInternalServerError) IsRedirect ¶
func (o *GetDiscussionByIDCommentsInternalServerError) IsRedirect() bool
IsRedirect returns true when this get discussion by Id comments internal server error response has a 3xx status code
func (*GetDiscussionByIDCommentsInternalServerError) IsServerError ¶
func (o *GetDiscussionByIDCommentsInternalServerError) IsServerError() bool
IsServerError returns true when this get discussion by Id comments internal server error response has a 5xx status code
func (*GetDiscussionByIDCommentsInternalServerError) IsSuccess ¶
func (o *GetDiscussionByIDCommentsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get discussion by Id comments internal server error response has a 2xx status code
func (*GetDiscussionByIDCommentsInternalServerError) String ¶
func (o *GetDiscussionByIDCommentsInternalServerError) String() 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 (o *GetDiscussionByIDCommentsOK) Error() string
func (*GetDiscussionByIDCommentsOK) GetPayload ¶
func (o *GetDiscussionByIDCommentsOK) GetPayload() *models.ResponseCommentListResponse
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 ¶
func (o *GetDiscussionByIDCommentsParams) SetID(id string)
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 ¶
func (o *GetDiscussionByIDCommentsParams) WithContext(ctx context.Context) *GetDiscussionByIDCommentsParams
WithContext adds the context to the get discussion by Id comments params
func (*GetDiscussionByIDCommentsParams) WithDefaults ¶
func (o *GetDiscussionByIDCommentsParams) WithDefaults() *GetDiscussionByIDCommentsParams
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 ¶
func (o *GetDiscussionByIDCommentsParams) WithHTTPClient(client *http.Client) *GetDiscussionByIDCommentsParams
WithHTTPClient adds the HTTPClient to the get discussion by Id comments params
func (*GetDiscussionByIDCommentsParams) WithID ¶
func (o *GetDiscussionByIDCommentsParams) WithID(id string) *GetDiscussionByIDCommentsParams
WithID adds the id to the get discussion by Id comments params
func (*GetDiscussionByIDCommentsParams) WithLimit ¶
func (o *GetDiscussionByIDCommentsParams) WithLimit(limit *int64) *GetDiscussionByIDCommentsParams
WithLimit adds the limit to the get discussion by Id comments params
func (*GetDiscussionByIDCommentsParams) WithOffset ¶
func (o *GetDiscussionByIDCommentsParams) WithOffset(offset *int64) *GetDiscussionByIDCommentsParams
WithOffset adds the offset to the get discussion by Id comments params
func (*GetDiscussionByIDCommentsParams) WithSort ¶
func (o *GetDiscussionByIDCommentsParams) WithSort(sort *string) *GetDiscussionByIDCommentsParams
WithSort adds the sort to the get discussion by Id comments params
func (*GetDiscussionByIDCommentsParams) WithTimeout ¶
func (o *GetDiscussionByIDCommentsParams) WithTimeout(timeout time.Duration) *GetDiscussionByIDCommentsParams
WithTimeout adds the timeout to the get discussion by Id comments params
func (*GetDiscussionByIDCommentsParams) WriteToRequest ¶
func (o *GetDiscussionByIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostDiscussionByIDCommentsBadRequest) Code() int
Code gets the status code for the post discussion by Id comments bad request response
func (*PostDiscussionByIDCommentsBadRequest) Error ¶
func (o *PostDiscussionByIDCommentsBadRequest) Error() string
func (*PostDiscussionByIDCommentsBadRequest) GetPayload ¶
func (o *PostDiscussionByIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *PostDiscussionByIDCommentsBadRequest) IsCode(code int) bool
IsCode returns true when this post discussion by Id comments bad request response a status code equal to that given
func (*PostDiscussionByIDCommentsBadRequest) IsRedirect ¶
func (o *PostDiscussionByIDCommentsBadRequest) IsRedirect() bool
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 ¶
func (o *PostDiscussionByIDCommentsBadRequest) IsSuccess() bool
IsSuccess returns true when this post discussion by Id comments bad request response has a 2xx status code
func (*PostDiscussionByIDCommentsBadRequest) String ¶
func (o *PostDiscussionByIDCommentsBadRequest) String() 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 ¶
func (o *PostDiscussionByIDCommentsInternalServerError) Code() int
Code gets the status code for the post discussion by Id comments internal server error response
func (*PostDiscussionByIDCommentsInternalServerError) Error ¶
func (o *PostDiscussionByIDCommentsInternalServerError) Error() string
func (*PostDiscussionByIDCommentsInternalServerError) GetPayload ¶
func (o *PostDiscussionByIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*PostDiscussionByIDCommentsInternalServerError) IsClientError ¶
func (o *PostDiscussionByIDCommentsInternalServerError) IsClientError() bool
IsClientError returns true when this post discussion by Id comments internal server error response has a 4xx status code
func (*PostDiscussionByIDCommentsInternalServerError) IsCode ¶
func (o *PostDiscussionByIDCommentsInternalServerError) IsCode(code int) bool
IsCode returns true when this post discussion by Id comments internal server error response a status code equal to that given
func (*PostDiscussionByIDCommentsInternalServerError) IsRedirect ¶
func (o *PostDiscussionByIDCommentsInternalServerError) IsRedirect() bool
IsRedirect returns true when this post discussion by Id comments internal server error response has a 3xx status code
func (*PostDiscussionByIDCommentsInternalServerError) IsServerError ¶
func (o *PostDiscussionByIDCommentsInternalServerError) IsServerError() bool
IsServerError returns true when this post discussion by Id comments internal server error response has a 5xx status code
func (*PostDiscussionByIDCommentsInternalServerError) IsSuccess ¶
func (o *PostDiscussionByIDCommentsInternalServerError) IsSuccess() bool
IsSuccess returns true when this post discussion by Id comments internal server error response has a 2xx status code
func (*PostDiscussionByIDCommentsInternalServerError) String ¶
func (o *PostDiscussionByIDCommentsInternalServerError) String() 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 ¶
func (o *PostDiscussionByIDCommentsOK) Code() int
Code gets the status code for the post discussion by Id comments o k response
func (*PostDiscussionByIDCommentsOK) Error ¶
func (o *PostDiscussionByIDCommentsOK) Error() string
func (*PostDiscussionByIDCommentsOK) GetPayload ¶
func (o *PostDiscussionByIDCommentsOK) GetPayload() *models.ResponseCommentResponse
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 ¶
func (o *PostDiscussionByIDCommentsOK) String() 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 ¶
func (o *PostDiscussionByIDCommentsParams) SetContext(ctx context.Context)
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 ¶
func (o *PostDiscussionByIDCommentsParams) SetID(id string)
SetID adds the id to the post discussion by Id comments params
func (*PostDiscussionByIDCommentsParams) SetInput ¶
func (o *PostDiscussionByIDCommentsParams) SetInput(input *models.RequestCreateCommentRequest)
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 ¶
func (o *PostDiscussionByIDCommentsParams) WithContext(ctx context.Context) *PostDiscussionByIDCommentsParams
WithContext adds the context to the post discussion by Id comments params
func (*PostDiscussionByIDCommentsParams) WithDefaults ¶
func (o *PostDiscussionByIDCommentsParams) WithDefaults() *PostDiscussionByIDCommentsParams
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 ¶
func (o *PostDiscussionByIDCommentsParams) WithHTTPClient(client *http.Client) *PostDiscussionByIDCommentsParams
WithHTTPClient adds the HTTPClient to the post discussion by Id comments params
func (*PostDiscussionByIDCommentsParams) WithID ¶
func (o *PostDiscussionByIDCommentsParams) WithID(id string) *PostDiscussionByIDCommentsParams
WithID adds the id to the post discussion by Id comments params
func (*PostDiscussionByIDCommentsParams) WithInput ¶
func (o *PostDiscussionByIDCommentsParams) WithInput(input *models.RequestCreateCommentRequest) *PostDiscussionByIDCommentsParams
WithInput adds the input to the post discussion by Id comments params
func (*PostDiscussionByIDCommentsParams) WithTimeout ¶
func (o *PostDiscussionByIDCommentsParams) WithTimeout(timeout time.Duration) *PostDiscussionByIDCommentsParams
WithTimeout adds the timeout to the post discussion by Id comments params
func (*PostDiscussionByIDCommentsParams) WriteToRequest ¶
func (o *PostDiscussionByIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PutCommentsByIDBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *PutCommentsByIDInternalServerError) Code() int
Code gets the status code for the put comments by Id internal server error response
func (*PutCommentsByIDInternalServerError) Error ¶
func (o *PutCommentsByIDInternalServerError) Error() string
func (*PutCommentsByIDInternalServerError) GetPayload ¶
func (o *PutCommentsByIDInternalServerError) GetPayload() *models.ResponseErrorResponse
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 ¶
func (o *PutCommentsByIDInternalServerError) IsCode(code int) bool
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 ¶
func (o *PutCommentsByIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this put comments by Id internal server error response has a 2xx status code
func (*PutCommentsByIDInternalServerError) String ¶
func (o *PutCommentsByIDInternalServerError) String() 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 (o *PutCommentsByIDOK) GetPayload() *models.ResponseCommentResponse
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 ¶
func (o *PutCommentsByIDParams) SetInput(input *models.RequestUpdateCommentRequest)
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 ¶
func (o *PutCommentsByIDParams) WithContext(ctx context.Context) *PutCommentsByIDParams
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 ¶
func (o *PutCommentsByIDParams) WithID(id string) *PutCommentsByIDParams
WithID adds the id to the put comments by Id params
func (*PutCommentsByIDParams) WithInput ¶
func (o *PutCommentsByIDParams) WithInput(input *models.RequestUpdateCommentRequest) *PutCommentsByIDParams
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.