Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) DeleteAPIKeyCommentsID(params *DeleteAPIKeyCommentsIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAPIKeyCommentsIDOK, error)
- func (a *Client) GetAPIKeyDiscussionIDComments(params *GetAPIKeyDiscussionIDCommentsParams, ...) (*GetAPIKeyDiscussionIDCommentsOK, error)
- func (a *Client) PostAPIKeyDiscussionIDComments(params *PostAPIKeyDiscussionIDCommentsParams, ...) (*PostAPIKeyDiscussionIDCommentsOK, error)
- func (a *Client) PutAPIKeyCommentsID(params *PutAPIKeyCommentsIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutAPIKeyCommentsIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteAPIKeyCommentsIDBadRequest
- func (o *DeleteAPIKeyCommentsIDBadRequest) Code() int
- func (o *DeleteAPIKeyCommentsIDBadRequest) Error() string
- func (o *DeleteAPIKeyCommentsIDBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *DeleteAPIKeyCommentsIDBadRequest) IsClientError() bool
- func (o *DeleteAPIKeyCommentsIDBadRequest) IsCode(code int) bool
- func (o *DeleteAPIKeyCommentsIDBadRequest) IsRedirect() bool
- func (o *DeleteAPIKeyCommentsIDBadRequest) IsServerError() bool
- func (o *DeleteAPIKeyCommentsIDBadRequest) IsSuccess() bool
- func (o *DeleteAPIKeyCommentsIDBadRequest) String() string
- type DeleteAPIKeyCommentsIDInternalServerError
- func (o *DeleteAPIKeyCommentsIDInternalServerError) Code() int
- func (o *DeleteAPIKeyCommentsIDInternalServerError) Error() string
- func (o *DeleteAPIKeyCommentsIDInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *DeleteAPIKeyCommentsIDInternalServerError) IsClientError() bool
- func (o *DeleteAPIKeyCommentsIDInternalServerError) IsCode(code int) bool
- func (o *DeleteAPIKeyCommentsIDInternalServerError) IsRedirect() bool
- func (o *DeleteAPIKeyCommentsIDInternalServerError) IsServerError() bool
- func (o *DeleteAPIKeyCommentsIDInternalServerError) IsSuccess() bool
- func (o *DeleteAPIKeyCommentsIDInternalServerError) String() string
- type DeleteAPIKeyCommentsIDOK
- func (o *DeleteAPIKeyCommentsIDOK) Code() int
- func (o *DeleteAPIKeyCommentsIDOK) Error() string
- func (o *DeleteAPIKeyCommentsIDOK) GetPayload() *models.ResponseCommentResponse
- func (o *DeleteAPIKeyCommentsIDOK) IsClientError() bool
- func (o *DeleteAPIKeyCommentsIDOK) IsCode(code int) bool
- func (o *DeleteAPIKeyCommentsIDOK) IsRedirect() bool
- func (o *DeleteAPIKeyCommentsIDOK) IsServerError() bool
- func (o *DeleteAPIKeyCommentsIDOK) IsSuccess() bool
- func (o *DeleteAPIKeyCommentsIDOK) String() string
- type DeleteAPIKeyCommentsIDParams
- func NewDeleteAPIKeyCommentsIDParams() *DeleteAPIKeyCommentsIDParams
- func NewDeleteAPIKeyCommentsIDParamsWithContext(ctx context.Context) *DeleteAPIKeyCommentsIDParams
- func NewDeleteAPIKeyCommentsIDParamsWithHTTPClient(client *http.Client) *DeleteAPIKeyCommentsIDParams
- func NewDeleteAPIKeyCommentsIDParamsWithTimeout(timeout time.Duration) *DeleteAPIKeyCommentsIDParams
- func (o *DeleteAPIKeyCommentsIDParams) SetContext(ctx context.Context)
- func (o *DeleteAPIKeyCommentsIDParams) SetDefaults()
- func (o *DeleteAPIKeyCommentsIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAPIKeyCommentsIDParams) SetID(id string)
- func (o *DeleteAPIKeyCommentsIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAPIKeyCommentsIDParams) WithContext(ctx context.Context) *DeleteAPIKeyCommentsIDParams
- func (o *DeleteAPIKeyCommentsIDParams) WithDefaults() *DeleteAPIKeyCommentsIDParams
- func (o *DeleteAPIKeyCommentsIDParams) WithHTTPClient(client *http.Client) *DeleteAPIKeyCommentsIDParams
- func (o *DeleteAPIKeyCommentsIDParams) WithID(id string) *DeleteAPIKeyCommentsIDParams
- func (o *DeleteAPIKeyCommentsIDParams) WithTimeout(timeout time.Duration) *DeleteAPIKeyCommentsIDParams
- func (o *DeleteAPIKeyCommentsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAPIKeyCommentsIDReader
- type GetAPIKeyDiscussionIDCommentsBadRequest
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) Code() int
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) Error() string
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsClientError() bool
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsCode(code int) bool
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsRedirect() bool
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsServerError() bool
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsSuccess() bool
- func (o *GetAPIKeyDiscussionIDCommentsBadRequest) String() string
- type GetAPIKeyDiscussionIDCommentsInternalServerError
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) Code() int
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) Error() string
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsClientError() bool
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsCode(code int) bool
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsRedirect() bool
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsServerError() bool
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess() bool
- func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) String() string
- type GetAPIKeyDiscussionIDCommentsOK
- func (o *GetAPIKeyDiscussionIDCommentsOK) Code() int
- func (o *GetAPIKeyDiscussionIDCommentsOK) Error() string
- func (o *GetAPIKeyDiscussionIDCommentsOK) GetPayload() *models.ResponseCommentListResponse
- func (o *GetAPIKeyDiscussionIDCommentsOK) IsClientError() bool
- func (o *GetAPIKeyDiscussionIDCommentsOK) IsCode(code int) bool
- func (o *GetAPIKeyDiscussionIDCommentsOK) IsRedirect() bool
- func (o *GetAPIKeyDiscussionIDCommentsOK) IsServerError() bool
- func (o *GetAPIKeyDiscussionIDCommentsOK) IsSuccess() bool
- func (o *GetAPIKeyDiscussionIDCommentsOK) String() string
- type GetAPIKeyDiscussionIDCommentsParams
- func NewGetAPIKeyDiscussionIDCommentsParams() *GetAPIKeyDiscussionIDCommentsParams
- func NewGetAPIKeyDiscussionIDCommentsParamsWithContext(ctx context.Context) *GetAPIKeyDiscussionIDCommentsParams
- func NewGetAPIKeyDiscussionIDCommentsParamsWithHTTPClient(client *http.Client) *GetAPIKeyDiscussionIDCommentsParams
- func NewGetAPIKeyDiscussionIDCommentsParamsWithTimeout(timeout time.Duration) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetContext(ctx context.Context)
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetDefaults()
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetID(id string)
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetLimit(limit *int64)
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetOffset(offset *int64)
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetSort(sort *string)
- func (o *GetAPIKeyDiscussionIDCommentsParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithContext(ctx context.Context) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithDefaults() *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithHTTPClient(client *http.Client) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithID(id string) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithLimit(limit *int64) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithOffset(offset *int64) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithSort(sort *string) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WithTimeout(timeout time.Duration) *GetAPIKeyDiscussionIDCommentsParams
- func (o *GetAPIKeyDiscussionIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIKeyDiscussionIDCommentsReader
- type PostAPIKeyDiscussionIDCommentsBadRequest
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) Code() int
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) Error() string
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsClientError() bool
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsCode(code int) bool
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsRedirect() bool
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsServerError() bool
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsSuccess() bool
- func (o *PostAPIKeyDiscussionIDCommentsBadRequest) String() string
- type PostAPIKeyDiscussionIDCommentsInternalServerError
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) Code() int
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) Error() string
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsClientError() bool
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsCode(code int) bool
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsRedirect() bool
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsServerError() bool
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess() bool
- func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) String() string
- type PostAPIKeyDiscussionIDCommentsOK
- func (o *PostAPIKeyDiscussionIDCommentsOK) Code() int
- func (o *PostAPIKeyDiscussionIDCommentsOK) Error() string
- func (o *PostAPIKeyDiscussionIDCommentsOK) GetPayload() *models.ResponseCommentResponse
- func (o *PostAPIKeyDiscussionIDCommentsOK) IsClientError() bool
- func (o *PostAPIKeyDiscussionIDCommentsOK) IsCode(code int) bool
- func (o *PostAPIKeyDiscussionIDCommentsOK) IsRedirect() bool
- func (o *PostAPIKeyDiscussionIDCommentsOK) IsServerError() bool
- func (o *PostAPIKeyDiscussionIDCommentsOK) IsSuccess() bool
- func (o *PostAPIKeyDiscussionIDCommentsOK) String() string
- type PostAPIKeyDiscussionIDCommentsParams
- func NewPostAPIKeyDiscussionIDCommentsParams() *PostAPIKeyDiscussionIDCommentsParams
- func NewPostAPIKeyDiscussionIDCommentsParamsWithContext(ctx context.Context) *PostAPIKeyDiscussionIDCommentsParams
- func NewPostAPIKeyDiscussionIDCommentsParamsWithHTTPClient(client *http.Client) *PostAPIKeyDiscussionIDCommentsParams
- func NewPostAPIKeyDiscussionIDCommentsParamsWithTimeout(timeout time.Duration) *PostAPIKeyDiscussionIDCommentsParams
- func (o *PostAPIKeyDiscussionIDCommentsParams) SetContext(ctx context.Context)
- func (o *PostAPIKeyDiscussionIDCommentsParams) SetDefaults()
- func (o *PostAPIKeyDiscussionIDCommentsParams) SetHTTPClient(client *http.Client)
- func (o *PostAPIKeyDiscussionIDCommentsParams) SetID(id string)
- func (o *PostAPIKeyDiscussionIDCommentsParams) SetInput(input *models.RequestCreateCommentRequest)
- func (o *PostAPIKeyDiscussionIDCommentsParams) SetTimeout(timeout time.Duration)
- func (o *PostAPIKeyDiscussionIDCommentsParams) WithContext(ctx context.Context) *PostAPIKeyDiscussionIDCommentsParams
- func (o *PostAPIKeyDiscussionIDCommentsParams) WithDefaults() *PostAPIKeyDiscussionIDCommentsParams
- func (o *PostAPIKeyDiscussionIDCommentsParams) WithHTTPClient(client *http.Client) *PostAPIKeyDiscussionIDCommentsParams
- func (o *PostAPIKeyDiscussionIDCommentsParams) WithID(id string) *PostAPIKeyDiscussionIDCommentsParams
- func (o *PostAPIKeyDiscussionIDCommentsParams) WithInput(input *models.RequestCreateCommentRequest) *PostAPIKeyDiscussionIDCommentsParams
- func (o *PostAPIKeyDiscussionIDCommentsParams) WithTimeout(timeout time.Duration) *PostAPIKeyDiscussionIDCommentsParams
- func (o *PostAPIKeyDiscussionIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPIKeyDiscussionIDCommentsReader
- type PutAPIKeyCommentsIDBadRequest
- func (o *PutAPIKeyCommentsIDBadRequest) Code() int
- func (o *PutAPIKeyCommentsIDBadRequest) Error() string
- func (o *PutAPIKeyCommentsIDBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *PutAPIKeyCommentsIDBadRequest) IsClientError() bool
- func (o *PutAPIKeyCommentsIDBadRequest) IsCode(code int) bool
- func (o *PutAPIKeyCommentsIDBadRequest) IsRedirect() bool
- func (o *PutAPIKeyCommentsIDBadRequest) IsServerError() bool
- func (o *PutAPIKeyCommentsIDBadRequest) IsSuccess() bool
- func (o *PutAPIKeyCommentsIDBadRequest) String() string
- type PutAPIKeyCommentsIDInternalServerError
- func (o *PutAPIKeyCommentsIDInternalServerError) Code() int
- func (o *PutAPIKeyCommentsIDInternalServerError) Error() string
- func (o *PutAPIKeyCommentsIDInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *PutAPIKeyCommentsIDInternalServerError) IsClientError() bool
- func (o *PutAPIKeyCommentsIDInternalServerError) IsCode(code int) bool
- func (o *PutAPIKeyCommentsIDInternalServerError) IsRedirect() bool
- func (o *PutAPIKeyCommentsIDInternalServerError) IsServerError() bool
- func (o *PutAPIKeyCommentsIDInternalServerError) IsSuccess() bool
- func (o *PutAPIKeyCommentsIDInternalServerError) String() string
- type PutAPIKeyCommentsIDOK
- func (o *PutAPIKeyCommentsIDOK) Code() int
- func (o *PutAPIKeyCommentsIDOK) Error() string
- func (o *PutAPIKeyCommentsIDOK) GetPayload() *models.ResponseCommentResponse
- func (o *PutAPIKeyCommentsIDOK) IsClientError() bool
- func (o *PutAPIKeyCommentsIDOK) IsCode(code int) bool
- func (o *PutAPIKeyCommentsIDOK) IsRedirect() bool
- func (o *PutAPIKeyCommentsIDOK) IsServerError() bool
- func (o *PutAPIKeyCommentsIDOK) IsSuccess() bool
- func (o *PutAPIKeyCommentsIDOK) String() string
- type PutAPIKeyCommentsIDParams
- func NewPutAPIKeyCommentsIDParams() *PutAPIKeyCommentsIDParams
- func NewPutAPIKeyCommentsIDParamsWithContext(ctx context.Context) *PutAPIKeyCommentsIDParams
- func NewPutAPIKeyCommentsIDParamsWithHTTPClient(client *http.Client) *PutAPIKeyCommentsIDParams
- func NewPutAPIKeyCommentsIDParamsWithTimeout(timeout time.Duration) *PutAPIKeyCommentsIDParams
- func (o *PutAPIKeyCommentsIDParams) SetContext(ctx context.Context)
- func (o *PutAPIKeyCommentsIDParams) SetDefaults()
- func (o *PutAPIKeyCommentsIDParams) SetHTTPClient(client *http.Client)
- func (o *PutAPIKeyCommentsIDParams) SetID(id string)
- func (o *PutAPIKeyCommentsIDParams) SetInput(input *models.RequestUpdateCommentRequest)
- func (o *PutAPIKeyCommentsIDParams) SetTimeout(timeout time.Duration)
- func (o *PutAPIKeyCommentsIDParams) WithContext(ctx context.Context) *PutAPIKeyCommentsIDParams
- func (o *PutAPIKeyCommentsIDParams) WithDefaults() *PutAPIKeyCommentsIDParams
- func (o *PutAPIKeyCommentsIDParams) WithHTTPClient(client *http.Client) *PutAPIKeyCommentsIDParams
- func (o *PutAPIKeyCommentsIDParams) WithID(id string) *PutAPIKeyCommentsIDParams
- func (o *PutAPIKeyCommentsIDParams) WithInput(input *models.RequestUpdateCommentRequest) *PutAPIKeyCommentsIDParams
- func (o *PutAPIKeyCommentsIDParams) WithTimeout(timeout time.Duration) *PutAPIKeyCommentsIDParams
- func (o *PutAPIKeyCommentsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutAPIKeyCommentsIDReader
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 ¶
func (o *DeleteAPIKeyCommentsIDBadRequest) Code() int
Code gets the status code for the delete Api key comments Id bad request response
func (*DeleteAPIKeyCommentsIDBadRequest) Error ¶
func (o *DeleteAPIKeyCommentsIDBadRequest) Error() string
func (*DeleteAPIKeyCommentsIDBadRequest) GetPayload ¶
func (o *DeleteAPIKeyCommentsIDBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *DeleteAPIKeyCommentsIDBadRequest) String() 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 ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) Code() int
Code gets the status code for the delete Api key comments Id internal server error response
func (*DeleteAPIKeyCommentsIDInternalServerError) Error ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) Error() string
func (*DeleteAPIKeyCommentsIDInternalServerError) GetPayload ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*DeleteAPIKeyCommentsIDInternalServerError) IsClientError ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) IsClientError() bool
IsClientError returns true when this delete Api key comments Id internal server error response has a 4xx status code
func (*DeleteAPIKeyCommentsIDInternalServerError) IsCode ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) IsCode(code int) bool
IsCode returns true when this delete Api key comments Id internal server error response a status code equal to that given
func (*DeleteAPIKeyCommentsIDInternalServerError) IsRedirect ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete Api key comments Id internal server error response has a 3xx status code
func (*DeleteAPIKeyCommentsIDInternalServerError) IsServerError ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) IsServerError() bool
IsServerError returns true when this delete Api key comments Id internal server error response has a 5xx status code
func (*DeleteAPIKeyCommentsIDInternalServerError) IsSuccess ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete Api key comments Id internal server error response has a 2xx status code
func (*DeleteAPIKeyCommentsIDInternalServerError) String ¶
func (o *DeleteAPIKeyCommentsIDInternalServerError) String() 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 (o *DeleteAPIKeyCommentsIDOK) GetPayload() *models.ResponseCommentResponse
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 ¶
func (o *DeleteAPIKeyCommentsIDParams) WithContext(ctx context.Context) *DeleteAPIKeyCommentsIDParams
WithContext adds the context to the delete API key comments ID params
func (*DeleteAPIKeyCommentsIDParams) WithDefaults ¶
func (o *DeleteAPIKeyCommentsIDParams) WithDefaults() *DeleteAPIKeyCommentsIDParams
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 ¶
func (o *DeleteAPIKeyCommentsIDParams) WithHTTPClient(client *http.Client) *DeleteAPIKeyCommentsIDParams
WithHTTPClient adds the HTTPClient to the delete API key comments ID params
func (*DeleteAPIKeyCommentsIDParams) WithID ¶
func (o *DeleteAPIKeyCommentsIDParams) WithID(id string) *DeleteAPIKeyCommentsIDParams
WithID adds the id to the delete API key comments ID params
func (*DeleteAPIKeyCommentsIDParams) WithTimeout ¶
func (o *DeleteAPIKeyCommentsIDParams) WithTimeout(timeout time.Duration) *DeleteAPIKeyCommentsIDParams
WithTimeout adds the timeout to the delete API key comments ID params
func (*DeleteAPIKeyCommentsIDParams) WriteToRequest ¶
func (o *DeleteAPIKeyCommentsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsBadRequest) Code() int
Code gets the status code for the get Api key discussion Id comments bad request response
func (*GetAPIKeyDiscussionIDCommentsBadRequest) Error ¶
func (o *GetAPIKeyDiscussionIDCommentsBadRequest) Error() string
func (*GetAPIKeyDiscussionIDCommentsBadRequest) GetPayload ¶
func (o *GetAPIKeyDiscussionIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsCode(code int) bool
IsCode returns true when this get Api key discussion Id comments bad request response a status code equal to that given
func (*GetAPIKeyDiscussionIDCommentsBadRequest) IsRedirect ¶
func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsRedirect() bool
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsBadRequest) IsSuccess() bool
IsSuccess returns true when this get Api key discussion Id comments bad request response has a 2xx status code
func (*GetAPIKeyDiscussionIDCommentsBadRequest) String ¶
func (o *GetAPIKeyDiscussionIDCommentsBadRequest) String() 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 ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) Code() int
Code gets the status code for the get Api key discussion Id comments internal server error response
func (*GetAPIKeyDiscussionIDCommentsInternalServerError) Error ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) Error() string
func (*GetAPIKeyDiscussionIDCommentsInternalServerError) GetPayload ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsClientError ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsClientError() bool
IsClientError returns true when this get Api key discussion Id comments internal server error response has a 4xx status code
func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsCode ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsCode(code int) bool
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsRedirect() bool
IsRedirect returns true when this get Api key discussion Id comments internal server error response has a 3xx status code
func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsServerError ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsServerError() bool
IsServerError returns true when this get Api key discussion Id comments internal server error response has a 5xx status code
func (*GetAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get Api key discussion Id comments internal server error response has a 2xx status code
func (*GetAPIKeyDiscussionIDCommentsInternalServerError) String ¶
func (o *GetAPIKeyDiscussionIDCommentsInternalServerError) String() 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 ¶
func (o *GetAPIKeyDiscussionIDCommentsOK) Code() int
Code gets the status code for the get Api key discussion Id comments o k response
func (*GetAPIKeyDiscussionIDCommentsOK) Error ¶
func (o *GetAPIKeyDiscussionIDCommentsOK) Error() string
func (*GetAPIKeyDiscussionIDCommentsOK) GetPayload ¶
func (o *GetAPIKeyDiscussionIDCommentsOK) GetPayload() *models.ResponseCommentListResponse
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsOK) String() 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 ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) SetContext(ctx context.Context)
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) SetID(id string)
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithContext(ctx context.Context) *GetAPIKeyDiscussionIDCommentsParams
WithContext adds the context to the get API key discussion ID comments params
func (*GetAPIKeyDiscussionIDCommentsParams) WithDefaults ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithDefaults() *GetAPIKeyDiscussionIDCommentsParams
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 ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithHTTPClient(client *http.Client) *GetAPIKeyDiscussionIDCommentsParams
WithHTTPClient adds the HTTPClient to the get API key discussion ID comments params
func (*GetAPIKeyDiscussionIDCommentsParams) WithID ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithID(id string) *GetAPIKeyDiscussionIDCommentsParams
WithID adds the id to the get API key discussion ID comments params
func (*GetAPIKeyDiscussionIDCommentsParams) WithLimit ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithLimit(limit *int64) *GetAPIKeyDiscussionIDCommentsParams
WithLimit adds the limit to the get API key discussion ID comments params
func (*GetAPIKeyDiscussionIDCommentsParams) WithOffset ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithOffset(offset *int64) *GetAPIKeyDiscussionIDCommentsParams
WithOffset adds the offset to the get API key discussion ID comments params
func (*GetAPIKeyDiscussionIDCommentsParams) WithSort ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithSort(sort *string) *GetAPIKeyDiscussionIDCommentsParams
WithSort adds the sort to the get API key discussion ID comments params
func (*GetAPIKeyDiscussionIDCommentsParams) WithTimeout ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WithTimeout(timeout time.Duration) *GetAPIKeyDiscussionIDCommentsParams
WithTimeout adds the timeout to the get API key discussion ID comments params
func (*GetAPIKeyDiscussionIDCommentsParams) WriteToRequest ¶
func (o *GetAPIKeyDiscussionIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) Code() int
Code gets the status code for the post Api key discussion Id comments bad request response
func (*PostAPIKeyDiscussionIDCommentsBadRequest) Error ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) Error() string
func (*PostAPIKeyDiscussionIDCommentsBadRequest) GetPayload ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) GetPayload() *models.ResponseFailResponse
func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsClientError ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsClientError() bool
IsClientError returns true when this post Api key discussion Id comments bad request response has a 4xx status code
func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsCode ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsCode(code int) bool
IsCode returns true when this post Api key discussion Id comments bad request response a status code equal to that given
func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsRedirect ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsRedirect() bool
IsRedirect returns true when this post Api key discussion Id comments bad request response has a 3xx status code
func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsServerError ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsServerError() bool
IsServerError returns true when this post Api key discussion Id comments bad request response has a 5xx status code
func (*PostAPIKeyDiscussionIDCommentsBadRequest) IsSuccess ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) IsSuccess() bool
IsSuccess returns true when this post Api key discussion Id comments bad request response has a 2xx status code
func (*PostAPIKeyDiscussionIDCommentsBadRequest) String ¶
func (o *PostAPIKeyDiscussionIDCommentsBadRequest) String() 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 ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) Code() int
Code gets the status code for the post Api key discussion Id comments internal server error response
func (*PostAPIKeyDiscussionIDCommentsInternalServerError) Error ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) Error() string
func (*PostAPIKeyDiscussionIDCommentsInternalServerError) GetPayload ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsClientError ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsClientError() bool
IsClientError returns true when this post Api key discussion Id comments internal server error response has a 4xx status code
func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsCode ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsCode(code int) bool
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 ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsRedirect() bool
IsRedirect returns true when this post Api key discussion Id comments internal server error response has a 3xx status code
func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsServerError ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsServerError() bool
IsServerError returns true when this post Api key discussion Id comments internal server error response has a 5xx status code
func (*PostAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) IsSuccess() bool
IsSuccess returns true when this post Api key discussion Id comments internal server error response has a 2xx status code
func (*PostAPIKeyDiscussionIDCommentsInternalServerError) String ¶
func (o *PostAPIKeyDiscussionIDCommentsInternalServerError) String() 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 ¶
func (o *PostAPIKeyDiscussionIDCommentsOK) Code() int
Code gets the status code for the post Api key discussion Id comments o k response
func (*PostAPIKeyDiscussionIDCommentsOK) Error ¶
func (o *PostAPIKeyDiscussionIDCommentsOK) Error() string
func (*PostAPIKeyDiscussionIDCommentsOK) GetPayload ¶
func (o *PostAPIKeyDiscussionIDCommentsOK) GetPayload() *models.ResponseCommentResponse
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 ¶
func (o *PostAPIKeyDiscussionIDCommentsOK) String() 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 ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) SetContext(ctx context.Context)
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 ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) SetID(id string)
SetID adds the id to the post API key discussion ID comments params
func (*PostAPIKeyDiscussionIDCommentsParams) SetInput ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) SetInput(input *models.RequestCreateCommentRequest)
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 ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) WithContext(ctx context.Context) *PostAPIKeyDiscussionIDCommentsParams
WithContext adds the context to the post API key discussion ID comments params
func (*PostAPIKeyDiscussionIDCommentsParams) WithDefaults ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) WithDefaults() *PostAPIKeyDiscussionIDCommentsParams
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 ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) WithHTTPClient(client *http.Client) *PostAPIKeyDiscussionIDCommentsParams
WithHTTPClient adds the HTTPClient to the post API key discussion ID comments params
func (*PostAPIKeyDiscussionIDCommentsParams) WithID ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) WithID(id string) *PostAPIKeyDiscussionIDCommentsParams
WithID adds the id to the post API key discussion ID comments params
func (*PostAPIKeyDiscussionIDCommentsParams) WithInput ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) WithInput(input *models.RequestCreateCommentRequest) *PostAPIKeyDiscussionIDCommentsParams
WithInput adds the input to the post API key discussion ID comments params
func (*PostAPIKeyDiscussionIDCommentsParams) WithTimeout ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) WithTimeout(timeout time.Duration) *PostAPIKeyDiscussionIDCommentsParams
WithTimeout adds the timeout to the post API key discussion ID comments params
func (*PostAPIKeyDiscussionIDCommentsParams) WriteToRequest ¶
func (o *PostAPIKeyDiscussionIDCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PutAPIKeyCommentsIDBadRequest) Code() int
Code gets the status code for the put Api key comments Id bad request response
func (*PutAPIKeyCommentsIDBadRequest) Error ¶
func (o *PutAPIKeyCommentsIDBadRequest) Error() string
func (*PutAPIKeyCommentsIDBadRequest) GetPayload ¶
func (o *PutAPIKeyCommentsIDBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *PutAPIKeyCommentsIDBadRequest) String() 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 ¶
func (o *PutAPIKeyCommentsIDInternalServerError) Code() int
Code gets the status code for the put Api key comments Id internal server error response
func (*PutAPIKeyCommentsIDInternalServerError) Error ¶
func (o *PutAPIKeyCommentsIDInternalServerError) Error() string
func (*PutAPIKeyCommentsIDInternalServerError) GetPayload ¶
func (o *PutAPIKeyCommentsIDInternalServerError) GetPayload() *models.ResponseErrorResponse
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 ¶
func (o *PutAPIKeyCommentsIDInternalServerError) IsCode(code int) bool
IsCode returns true when this put Api key comments Id internal server error response a status code equal to that given
func (*PutAPIKeyCommentsIDInternalServerError) IsRedirect ¶
func (o *PutAPIKeyCommentsIDInternalServerError) IsRedirect() bool
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 ¶
func (o *PutAPIKeyCommentsIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this put Api key comments Id internal server error response has a 2xx status code
func (*PutAPIKeyCommentsIDInternalServerError) String ¶
func (o *PutAPIKeyCommentsIDInternalServerError) String() 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 (o *PutAPIKeyCommentsIDOK) GetPayload() *models.ResponseCommentResponse
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 ¶
func (o *PutAPIKeyCommentsIDParams) SetInput(input *models.RequestUpdateCommentRequest)
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 ¶
func (o *PutAPIKeyCommentsIDParams) WithContext(ctx context.Context) *PutAPIKeyCommentsIDParams
WithContext adds the context to the put API key comments ID params
func (*PutAPIKeyCommentsIDParams) WithDefaults ¶
func (o *PutAPIKeyCommentsIDParams) WithDefaults() *PutAPIKeyCommentsIDParams
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 ¶
func (o *PutAPIKeyCommentsIDParams) WithID(id string) *PutAPIKeyCommentsIDParams
WithID adds the id to the put API key comments ID params
func (*PutAPIKeyCommentsIDParams) WithInput ¶
func (o *PutAPIKeyCommentsIDParams) WithInput(input *models.RequestUpdateCommentRequest) *PutAPIKeyCommentsIDParams
WithInput adds the input to the put API key comments ID params
func (*PutAPIKeyCommentsIDParams) WithTimeout ¶
func (o *PutAPIKeyCommentsIDParams) WithTimeout(timeout time.Duration) *PutAPIKeyCommentsIDParams
WithTimeout adds the timeout to the put API key comments ID params
func (*PutAPIKeyCommentsIDParams) WriteToRequest ¶
func (o *PutAPIKeyCommentsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- api_key_comments_client.go
- delete_api_key_comments_id_parameters.go
- delete_api_key_comments_id_responses.go
- get_api_key_discussion_id_comments_parameters.go
- get_api_key_discussion_id_comments_responses.go
- post_api_key_discussion_id_comments_parameters.go
- post_api_key_discussion_id_comments_responses.go
- put_api_key_comments_id_parameters.go
- put_api_key_comments_id_responses.go