comments

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for comments API

func (*Client) CreateComment

func (a *Client) CreateComment(params *CreateCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCommentCreated, error)

CreateComment creates a comment

Creates a comment for the given Resource.

func (*Client) DeleteComment

func (a *Client) DeleteComment(params *DeleteCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCommentOK, error)

DeleteComment deletes comment

Deletes a Comment.

func (*Client) GetComment

func (a *Client) GetComment(params *GetCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommentOK, error)

GetComment gets comment

Retrieves a Comment.

func (*Client) ListComment

func (a *Client) ListComment(params *ListCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCommentOK, error)

ListComment lists comments

Retrieves all the comments for a given Resource, in reverse modified time order.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateComment

func (a *Client) UpdateComment(params *UpdateCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCommentOK, error)

UpdateComment updates comment

Updates a Comment.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateComment(params *CreateCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCommentCreated, error)

	DeleteComment(params *DeleteCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCommentOK, error)

	GetComment(params *GetCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommentOK, error)

	ListComment(params *ListCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCommentOK, error)

	UpdateComment(params *UpdateCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCommentOK, 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 comments API client.

type CreateCommentConflict

type CreateCommentConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateCommentConflict describes a response with status code 409, with default header values.

A Comment already exists with the generated id. Please try again. (code: `comments.id_already_exists`)

func NewCreateCommentConflict

func NewCreateCommentConflict() *CreateCommentConflict

NewCreateCommentConflict creates a CreateCommentConflict with default headers values

func (*CreateCommentConflict) Code

func (o *CreateCommentConflict) Code() int

Code gets the status code for the create comment conflict response

func (*CreateCommentConflict) Error

func (o *CreateCommentConflict) Error() string

func (*CreateCommentConflict) GetPayload

func (*CreateCommentConflict) IsClientError

func (o *CreateCommentConflict) IsClientError() bool

IsClientError returns true when this create comment conflict response has a 4xx status code

func (*CreateCommentConflict) IsCode

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

IsCode returns true when this create comment conflict response a status code equal to that given

func (*CreateCommentConflict) IsRedirect

func (o *CreateCommentConflict) IsRedirect() bool

IsRedirect returns true when this create comment conflict response has a 3xx status code

func (*CreateCommentConflict) IsServerError

func (o *CreateCommentConflict) IsServerError() bool

IsServerError returns true when this create comment conflict response has a 5xx status code

func (*CreateCommentConflict) IsSuccess

func (o *CreateCommentConflict) IsSuccess() bool

IsSuccess returns true when this create comment conflict response has a 2xx status code

func (*CreateCommentConflict) String

func (o *CreateCommentConflict) String() string

type CreateCommentCreated

type CreateCommentCreated struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Comment
}

CreateCommentCreated describes a response with status code 201, with default header values.

The Comment that was just created.

func NewCreateCommentCreated

func NewCreateCommentCreated() *CreateCommentCreated

NewCreateCommentCreated creates a CreateCommentCreated with default headers values

func (*CreateCommentCreated) Code

func (o *CreateCommentCreated) Code() int

Code gets the status code for the create comment created response

func (*CreateCommentCreated) Error

func (o *CreateCommentCreated) Error() string

func (*CreateCommentCreated) GetPayload

func (o *CreateCommentCreated) GetPayload() *models.Comment

func (*CreateCommentCreated) IsClientError

func (o *CreateCommentCreated) IsClientError() bool

IsClientError returns true when this create comment created response has a 4xx status code

func (*CreateCommentCreated) IsCode

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

IsCode returns true when this create comment created response a status code equal to that given

func (*CreateCommentCreated) IsRedirect

func (o *CreateCommentCreated) IsRedirect() bool

IsRedirect returns true when this create comment created response has a 3xx status code

func (*CreateCommentCreated) IsServerError

func (o *CreateCommentCreated) IsServerError() bool

IsServerError returns true when this create comment created response has a 5xx status code

func (*CreateCommentCreated) IsSuccess

func (o *CreateCommentCreated) IsSuccess() bool

IsSuccess returns true when this create comment created response has a 2xx status code

func (*CreateCommentCreated) String

func (o *CreateCommentCreated) String() string

type CreateCommentNotFound

type CreateCommentNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateCommentNotFound describes a response with status code 404, with default header values.

No Resource of the given type and id exist. (code: `comments.resource_does_not_exist`)

func NewCreateCommentNotFound

func NewCreateCommentNotFound() *CreateCommentNotFound

NewCreateCommentNotFound creates a CreateCommentNotFound with default headers values

func (*CreateCommentNotFound) Code

func (o *CreateCommentNotFound) Code() int

Code gets the status code for the create comment not found response

func (*CreateCommentNotFound) Error

func (o *CreateCommentNotFound) Error() string

func (*CreateCommentNotFound) GetPayload

func (*CreateCommentNotFound) IsClientError

func (o *CreateCommentNotFound) IsClientError() bool

IsClientError returns true when this create comment not found response has a 4xx status code

func (*CreateCommentNotFound) IsCode

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

IsCode returns true when this create comment not found response a status code equal to that given

func (*CreateCommentNotFound) IsRedirect

func (o *CreateCommentNotFound) IsRedirect() bool

IsRedirect returns true when this create comment not found response has a 3xx status code

func (*CreateCommentNotFound) IsServerError

func (o *CreateCommentNotFound) IsServerError() bool

IsServerError returns true when this create comment not found response has a 5xx status code

func (*CreateCommentNotFound) IsSuccess

func (o *CreateCommentNotFound) IsSuccess() bool

IsSuccess returns true when this create comment not found response has a 2xx status code

func (*CreateCommentNotFound) String

func (o *CreateCommentNotFound) String() string

type CreateCommentParams

type CreateCommentParams struct {

	/* Body.

	   Data for comment creation
	*/
	Body *models.CommentCreateRequest

	/* ResourceID.

	   Id of the Resource that a Comment belongs to.
	*/
	ResourceID string

	/* ResourceType.

	   The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].
	*/
	ResourceType string

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

CreateCommentParams contains all the parameters to send to the API endpoint

for the create comment operation.

Typically these are written to a http.Request.

func NewCreateCommentParams

func NewCreateCommentParams() *CreateCommentParams

NewCreateCommentParams creates a new CreateCommentParams 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 NewCreateCommentParamsWithContext

func NewCreateCommentParamsWithContext(ctx context.Context) *CreateCommentParams

NewCreateCommentParamsWithContext creates a new CreateCommentParams object with the ability to set a context for a request.

func NewCreateCommentParamsWithHTTPClient

func NewCreateCommentParamsWithHTTPClient(client *http.Client) *CreateCommentParams

NewCreateCommentParamsWithHTTPClient creates a new CreateCommentParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCommentParamsWithTimeout

func NewCreateCommentParamsWithTimeout(timeout time.Duration) *CreateCommentParams

NewCreateCommentParamsWithTimeout creates a new CreateCommentParams object with the ability to set a timeout on a request.

func (*CreateCommentParams) SetBody

SetBody adds the body to the create comment params

func (*CreateCommentParams) SetContext

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

SetContext adds the context to the create comment params

func (*CreateCommentParams) SetDefaults

func (o *CreateCommentParams) SetDefaults()

SetDefaults hydrates default values in the create comment params (not the query body).

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

func (*CreateCommentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create comment params

func (*CreateCommentParams) SetResourceID

func (o *CreateCommentParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the create comment params

func (*CreateCommentParams) SetResourceType

func (o *CreateCommentParams) SetResourceType(resourceType string)

SetResourceType adds the resourceType to the create comment params

func (*CreateCommentParams) SetTimeout

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

SetTimeout adds the timeout to the create comment params

func (*CreateCommentParams) WithBody

WithBody adds the body to the create comment params

func (*CreateCommentParams) WithContext

WithContext adds the context to the create comment params

func (*CreateCommentParams) WithDefaults

func (o *CreateCommentParams) WithDefaults() *CreateCommentParams

WithDefaults hydrates default values in the create comment params (not the query body).

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

func (*CreateCommentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create comment params

func (*CreateCommentParams) WithResourceID

func (o *CreateCommentParams) WithResourceID(resourceID string) *CreateCommentParams

WithResourceID adds the resourceID to the create comment params

func (*CreateCommentParams) WithResourceType

func (o *CreateCommentParams) WithResourceType(resourceType string) *CreateCommentParams

WithResourceType adds the resourceType to the create comment params

func (*CreateCommentParams) WithTimeout

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

WithTimeout adds the timeout to the create comment params

func (*CreateCommentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCommentReader

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

CreateCommentReader is a Reader for the CreateComment structure.

func (*CreateCommentReader) ReadResponse

func (o *CreateCommentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateCommentUnauthorized

type CreateCommentUnauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateCommentUnauthorized describes a response with status code 401, with default header values.

Your current session does not have a user id associated with it. (code: `comments.no_user_id`)

func NewCreateCommentUnauthorized

func NewCreateCommentUnauthorized() *CreateCommentUnauthorized

NewCreateCommentUnauthorized creates a CreateCommentUnauthorized with default headers values

func (*CreateCommentUnauthorized) Code

func (o *CreateCommentUnauthorized) Code() int

Code gets the status code for the create comment unauthorized response

func (*CreateCommentUnauthorized) Error

func (o *CreateCommentUnauthorized) Error() string

func (*CreateCommentUnauthorized) GetPayload

func (*CreateCommentUnauthorized) IsClientError

func (o *CreateCommentUnauthorized) IsClientError() bool

IsClientError returns true when this create comment unauthorized response has a 4xx status code

func (*CreateCommentUnauthorized) IsCode

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

IsCode returns true when this create comment unauthorized response a status code equal to that given

func (*CreateCommentUnauthorized) IsRedirect

func (o *CreateCommentUnauthorized) IsRedirect() bool

IsRedirect returns true when this create comment unauthorized response has a 3xx status code

func (*CreateCommentUnauthorized) IsServerError

func (o *CreateCommentUnauthorized) IsServerError() bool

IsServerError returns true when this create comment unauthorized response has a 5xx status code

func (*CreateCommentUnauthorized) IsSuccess

func (o *CreateCommentUnauthorized) IsSuccess() bool

IsSuccess returns true when this create comment unauthorized response has a 2xx status code

func (*CreateCommentUnauthorized) String

func (o *CreateCommentUnauthorized) String() string

type DeleteCommentConflict

type DeleteCommentConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteCommentConflict describes a response with status code 409, with default header values.

The version you sent does not match the persisted version. (code: `comments.version_conflict`)

func NewDeleteCommentConflict

func NewDeleteCommentConflict() *DeleteCommentConflict

NewDeleteCommentConflict creates a DeleteCommentConflict with default headers values

func (*DeleteCommentConflict) Code

func (o *DeleteCommentConflict) Code() int

Code gets the status code for the delete comment conflict response

func (*DeleteCommentConflict) Error

func (o *DeleteCommentConflict) Error() string

func (*DeleteCommentConflict) GetPayload

func (*DeleteCommentConflict) IsClientError

func (o *DeleteCommentConflict) IsClientError() bool

IsClientError returns true when this delete comment conflict response has a 4xx status code

func (*DeleteCommentConflict) IsCode

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

IsCode returns true when this delete comment conflict response a status code equal to that given

func (*DeleteCommentConflict) IsRedirect

func (o *DeleteCommentConflict) IsRedirect() bool

IsRedirect returns true when this delete comment conflict response has a 3xx status code

func (*DeleteCommentConflict) IsServerError

func (o *DeleteCommentConflict) IsServerError() bool

IsServerError returns true when this delete comment conflict response has a 5xx status code

func (*DeleteCommentConflict) IsSuccess

func (o *DeleteCommentConflict) IsSuccess() bool

IsSuccess returns true when this delete comment conflict response has a 2xx status code

func (*DeleteCommentConflict) String

func (o *DeleteCommentConflict) String() string

type DeleteCommentNotFound

type DeleteCommentNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteCommentNotFound describes a response with status code 404, with default header values.

The Comment you want does not exist. (code: `comments.comment_does_not_exist`)

func NewDeleteCommentNotFound

func NewDeleteCommentNotFound() *DeleteCommentNotFound

NewDeleteCommentNotFound creates a DeleteCommentNotFound with default headers values

func (*DeleteCommentNotFound) Code

func (o *DeleteCommentNotFound) Code() int

Code gets the status code for the delete comment not found response

func (*DeleteCommentNotFound) Error

func (o *DeleteCommentNotFound) Error() string

func (*DeleteCommentNotFound) GetPayload

func (*DeleteCommentNotFound) IsClientError

func (o *DeleteCommentNotFound) IsClientError() bool

IsClientError returns true when this delete comment not found response has a 4xx status code

func (*DeleteCommentNotFound) IsCode

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

IsCode returns true when this delete comment not found response a status code equal to that given

func (*DeleteCommentNotFound) IsRedirect

func (o *DeleteCommentNotFound) IsRedirect() bool

IsRedirect returns true when this delete comment not found response has a 3xx status code

func (*DeleteCommentNotFound) IsServerError

func (o *DeleteCommentNotFound) IsServerError() bool

IsServerError returns true when this delete comment not found response has a 5xx status code

func (*DeleteCommentNotFound) IsSuccess

func (o *DeleteCommentNotFound) IsSuccess() bool

IsSuccess returns true when this delete comment not found response has a 2xx status code

func (*DeleteCommentNotFound) String

func (o *DeleteCommentNotFound) String() string

type DeleteCommentOK

type DeleteCommentOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload models.EmptyResponse
}

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

Comment deleted successfully.

func NewDeleteCommentOK

func NewDeleteCommentOK() *DeleteCommentOK

NewDeleteCommentOK creates a DeleteCommentOK with default headers values

func (*DeleteCommentOK) Code

func (o *DeleteCommentOK) Code() int

Code gets the status code for the delete comment o k response

func (*DeleteCommentOK) Error

func (o *DeleteCommentOK) Error() string

func (*DeleteCommentOK) GetPayload

func (o *DeleteCommentOK) GetPayload() models.EmptyResponse

func (*DeleteCommentOK) IsClientError

func (o *DeleteCommentOK) IsClientError() bool

IsClientError returns true when this delete comment o k response has a 4xx status code

func (*DeleteCommentOK) IsCode

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

IsCode returns true when this delete comment o k response a status code equal to that given

func (*DeleteCommentOK) IsRedirect

func (o *DeleteCommentOK) IsRedirect() bool

IsRedirect returns true when this delete comment o k response has a 3xx status code

func (*DeleteCommentOK) IsServerError

func (o *DeleteCommentOK) IsServerError() bool

IsServerError returns true when this delete comment o k response has a 5xx status code

func (*DeleteCommentOK) IsSuccess

func (o *DeleteCommentOK) IsSuccess() bool

IsSuccess returns true when this delete comment o k response has a 2xx status code

func (*DeleteCommentOK) String

func (o *DeleteCommentOK) String() string

type DeleteCommentParams

type DeleteCommentParams struct {

	/* CommentID.

	   Id of a Comment
	*/
	CommentID string

	/* ResourceID.

	   Id of the Resource that a Comment belongs to.
	*/
	ResourceID string

	/* ResourceType.

	   The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].
	*/
	ResourceType string

	/* Version.

	   If specified then checks for conflicts against the version stored in the persistent store (returned in 'x-cloud-resource-version' of the GET request)
	*/
	Version *string

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

DeleteCommentParams contains all the parameters to send to the API endpoint

for the delete comment operation.

Typically these are written to a http.Request.

func NewDeleteCommentParams

func NewDeleteCommentParams() *DeleteCommentParams

NewDeleteCommentParams creates a new DeleteCommentParams 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 NewDeleteCommentParamsWithContext

func NewDeleteCommentParamsWithContext(ctx context.Context) *DeleteCommentParams

NewDeleteCommentParamsWithContext creates a new DeleteCommentParams object with the ability to set a context for a request.

func NewDeleteCommentParamsWithHTTPClient

func NewDeleteCommentParamsWithHTTPClient(client *http.Client) *DeleteCommentParams

NewDeleteCommentParamsWithHTTPClient creates a new DeleteCommentParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCommentParamsWithTimeout

func NewDeleteCommentParamsWithTimeout(timeout time.Duration) *DeleteCommentParams

NewDeleteCommentParamsWithTimeout creates a new DeleteCommentParams object with the ability to set a timeout on a request.

func (*DeleteCommentParams) SetCommentID

func (o *DeleteCommentParams) SetCommentID(commentID string)

SetCommentID adds the commentId to the delete comment params

func (*DeleteCommentParams) SetContext

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

SetContext adds the context to the delete comment params

func (*DeleteCommentParams) SetDefaults

func (o *DeleteCommentParams) SetDefaults()

SetDefaults hydrates default values in the delete comment params (not the query body).

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

func (*DeleteCommentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete comment params

func (*DeleteCommentParams) SetResourceID

func (o *DeleteCommentParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the delete comment params

func (*DeleteCommentParams) SetResourceType

func (o *DeleteCommentParams) SetResourceType(resourceType string)

SetResourceType adds the resourceType to the delete comment params

func (*DeleteCommentParams) SetTimeout

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

SetTimeout adds the timeout to the delete comment params

func (*DeleteCommentParams) SetVersion

func (o *DeleteCommentParams) SetVersion(version *string)

SetVersion adds the version to the delete comment params

func (*DeleteCommentParams) WithCommentID

func (o *DeleteCommentParams) WithCommentID(commentID string) *DeleteCommentParams

WithCommentID adds the commentID to the delete comment params

func (*DeleteCommentParams) WithContext

WithContext adds the context to the delete comment params

func (*DeleteCommentParams) WithDefaults

func (o *DeleteCommentParams) WithDefaults() *DeleteCommentParams

WithDefaults hydrates default values in the delete comment params (not the query body).

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

func (*DeleteCommentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete comment params

func (*DeleteCommentParams) WithResourceID

func (o *DeleteCommentParams) WithResourceID(resourceID string) *DeleteCommentParams

WithResourceID adds the resourceID to the delete comment params

func (*DeleteCommentParams) WithResourceType

func (o *DeleteCommentParams) WithResourceType(resourceType string) *DeleteCommentParams

WithResourceType adds the resourceType to the delete comment params

func (*DeleteCommentParams) WithTimeout

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

WithTimeout adds the timeout to the delete comment params

func (*DeleteCommentParams) WithVersion

func (o *DeleteCommentParams) WithVersion(version *string) *DeleteCommentParams

WithVersion adds the version to the delete comment params

func (*DeleteCommentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteCommentReader

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

DeleteCommentReader is a Reader for the DeleteComment structure.

func (*DeleteCommentReader) ReadResponse

func (o *DeleteCommentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteCommentUnauthorized

type DeleteCommentUnauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
DeleteCommentUnauthorized describes a response with status code 401, with default header values.

* The Comment does not belong to you. (code: `comments.unauthorised`)

* Your current session does not have a user id associated with it. (code: `comments.no_user_id`)

func NewDeleteCommentUnauthorized

func NewDeleteCommentUnauthorized() *DeleteCommentUnauthorized

NewDeleteCommentUnauthorized creates a DeleteCommentUnauthorized with default headers values

func (*DeleteCommentUnauthorized) Code

func (o *DeleteCommentUnauthorized) Code() int

Code gets the status code for the delete comment unauthorized response

func (*DeleteCommentUnauthorized) Error

func (o *DeleteCommentUnauthorized) Error() string

func (*DeleteCommentUnauthorized) GetPayload

func (*DeleteCommentUnauthorized) IsClientError

func (o *DeleteCommentUnauthorized) IsClientError() bool

IsClientError returns true when this delete comment unauthorized response has a 4xx status code

func (*DeleteCommentUnauthorized) IsCode

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

IsCode returns true when this delete comment unauthorized response a status code equal to that given

func (*DeleteCommentUnauthorized) IsRedirect

func (o *DeleteCommentUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete comment unauthorized response has a 3xx status code

func (*DeleteCommentUnauthorized) IsServerError

func (o *DeleteCommentUnauthorized) IsServerError() bool

IsServerError returns true when this delete comment unauthorized response has a 5xx status code

func (*DeleteCommentUnauthorized) IsSuccess

func (o *DeleteCommentUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete comment unauthorized response has a 2xx status code

func (*DeleteCommentUnauthorized) String

func (o *DeleteCommentUnauthorized) String() string

type GetCommentNotFound

type GetCommentNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCommentNotFound describes a response with status code 404, with default header values.

The Comment you want does not exist. (code: `comments.comment_does_not_exist`)

func NewGetCommentNotFound

func NewGetCommentNotFound() *GetCommentNotFound

NewGetCommentNotFound creates a GetCommentNotFound with default headers values

func (*GetCommentNotFound) Code

func (o *GetCommentNotFound) Code() int

Code gets the status code for the get comment not found response

func (*GetCommentNotFound) Error

func (o *GetCommentNotFound) Error() string

func (*GetCommentNotFound) GetPayload

func (o *GetCommentNotFound) GetPayload() *models.BasicFailedReply

func (*GetCommentNotFound) IsClientError

func (o *GetCommentNotFound) IsClientError() bool

IsClientError returns true when this get comment not found response has a 4xx status code

func (*GetCommentNotFound) IsCode

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

IsCode returns true when this get comment not found response a status code equal to that given

func (*GetCommentNotFound) IsRedirect

func (o *GetCommentNotFound) IsRedirect() bool

IsRedirect returns true when this get comment not found response has a 3xx status code

func (*GetCommentNotFound) IsServerError

func (o *GetCommentNotFound) IsServerError() bool

IsServerError returns true when this get comment not found response has a 5xx status code

func (*GetCommentNotFound) IsSuccess

func (o *GetCommentNotFound) IsSuccess() bool

IsSuccess returns true when this get comment not found response has a 2xx status code

func (*GetCommentNotFound) String

func (o *GetCommentNotFound) String() string

type GetCommentOK

type GetCommentOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Comment
}

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

The Comment

func NewGetCommentOK

func NewGetCommentOK() *GetCommentOK

NewGetCommentOK creates a GetCommentOK with default headers values

func (*GetCommentOK) Code

func (o *GetCommentOK) Code() int

Code gets the status code for the get comment o k response

func (*GetCommentOK) Error

func (o *GetCommentOK) Error() string

func (*GetCommentOK) GetPayload

func (o *GetCommentOK) GetPayload() *models.Comment

func (*GetCommentOK) IsClientError

func (o *GetCommentOK) IsClientError() bool

IsClientError returns true when this get comment o k response has a 4xx status code

func (*GetCommentOK) IsCode

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

IsCode returns true when this get comment o k response a status code equal to that given

func (*GetCommentOK) IsRedirect

func (o *GetCommentOK) IsRedirect() bool

IsRedirect returns true when this get comment o k response has a 3xx status code

func (*GetCommentOK) IsServerError

func (o *GetCommentOK) IsServerError() bool

IsServerError returns true when this get comment o k response has a 5xx status code

func (*GetCommentOK) IsSuccess

func (o *GetCommentOK) IsSuccess() bool

IsSuccess returns true when this get comment o k response has a 2xx status code

func (*GetCommentOK) String

func (o *GetCommentOK) String() string

type GetCommentParams

type GetCommentParams struct {

	/* CommentID.

	   Id of a Comment
	*/
	CommentID string

	/* ResourceID.

	   Id of the Resource that a Comment belongs to.
	*/
	ResourceID string

	/* ResourceType.

	   The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].
	*/
	ResourceType string

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

GetCommentParams contains all the parameters to send to the API endpoint

for the get comment operation.

Typically these are written to a http.Request.

func NewGetCommentParams

func NewGetCommentParams() *GetCommentParams

NewGetCommentParams creates a new GetCommentParams 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 NewGetCommentParamsWithContext

func NewGetCommentParamsWithContext(ctx context.Context) *GetCommentParams

NewGetCommentParamsWithContext creates a new GetCommentParams object with the ability to set a context for a request.

func NewGetCommentParamsWithHTTPClient

func NewGetCommentParamsWithHTTPClient(client *http.Client) *GetCommentParams

NewGetCommentParamsWithHTTPClient creates a new GetCommentParams object with the ability to set a custom HTTPClient for a request.

func NewGetCommentParamsWithTimeout

func NewGetCommentParamsWithTimeout(timeout time.Duration) *GetCommentParams

NewGetCommentParamsWithTimeout creates a new GetCommentParams object with the ability to set a timeout on a request.

func (*GetCommentParams) SetCommentID

func (o *GetCommentParams) SetCommentID(commentID string)

SetCommentID adds the commentId to the get comment params

func (*GetCommentParams) SetContext

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

SetContext adds the context to the get comment params

func (*GetCommentParams) SetDefaults

func (o *GetCommentParams) SetDefaults()

SetDefaults hydrates default values in the get comment params (not the query body).

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

func (*GetCommentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get comment params

func (*GetCommentParams) SetResourceID

func (o *GetCommentParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the get comment params

func (*GetCommentParams) SetResourceType

func (o *GetCommentParams) SetResourceType(resourceType string)

SetResourceType adds the resourceType to the get comment params

func (*GetCommentParams) SetTimeout

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

SetTimeout adds the timeout to the get comment params

func (*GetCommentParams) WithCommentID

func (o *GetCommentParams) WithCommentID(commentID string) *GetCommentParams

WithCommentID adds the commentID to the get comment params

func (*GetCommentParams) WithContext

func (o *GetCommentParams) WithContext(ctx context.Context) *GetCommentParams

WithContext adds the context to the get comment params

func (*GetCommentParams) WithDefaults

func (o *GetCommentParams) WithDefaults() *GetCommentParams

WithDefaults hydrates default values in the get comment params (not the query body).

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

func (*GetCommentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get comment params

func (*GetCommentParams) WithResourceID

func (o *GetCommentParams) WithResourceID(resourceID string) *GetCommentParams

WithResourceID adds the resourceID to the get comment params

func (*GetCommentParams) WithResourceType

func (o *GetCommentParams) WithResourceType(resourceType string) *GetCommentParams

WithResourceType adds the resourceType to the get comment params

func (*GetCommentParams) WithTimeout

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

WithTimeout adds the timeout to the get comment params

func (*GetCommentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCommentReader

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

GetCommentReader is a Reader for the GetComment structure.

func (*GetCommentReader) ReadResponse

func (o *GetCommentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListCommentOK

type ListCommentOK struct {
	Payload *models.CommentsWithMetas
}

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

The Comments

func NewListCommentOK

func NewListCommentOK() *ListCommentOK

NewListCommentOK creates a ListCommentOK with default headers values

func (*ListCommentOK) Code

func (o *ListCommentOK) Code() int

Code gets the status code for the list comment o k response

func (*ListCommentOK) Error

func (o *ListCommentOK) Error() string

func (*ListCommentOK) GetPayload

func (o *ListCommentOK) GetPayload() *models.CommentsWithMetas

func (*ListCommentOK) IsClientError

func (o *ListCommentOK) IsClientError() bool

IsClientError returns true when this list comment o k response has a 4xx status code

func (*ListCommentOK) IsCode

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

IsCode returns true when this list comment o k response a status code equal to that given

func (*ListCommentOK) IsRedirect

func (o *ListCommentOK) IsRedirect() bool

IsRedirect returns true when this list comment o k response has a 3xx status code

func (*ListCommentOK) IsServerError

func (o *ListCommentOK) IsServerError() bool

IsServerError returns true when this list comment o k response has a 5xx status code

func (*ListCommentOK) IsSuccess

func (o *ListCommentOK) IsSuccess() bool

IsSuccess returns true when this list comment o k response has a 2xx status code

func (*ListCommentOK) String

func (o *ListCommentOK) String() string

type ListCommentParams

type ListCommentParams struct {

	/* ResourceID.

	   Id of the Resource that a Comment belongs to.
	*/
	ResourceID string

	/* ResourceType.

	   The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].
	*/
	ResourceType string

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

ListCommentParams contains all the parameters to send to the API endpoint

for the list comment operation.

Typically these are written to a http.Request.

func NewListCommentParams

func NewListCommentParams() *ListCommentParams

NewListCommentParams creates a new ListCommentParams 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 NewListCommentParamsWithContext

func NewListCommentParamsWithContext(ctx context.Context) *ListCommentParams

NewListCommentParamsWithContext creates a new ListCommentParams object with the ability to set a context for a request.

func NewListCommentParamsWithHTTPClient

func NewListCommentParamsWithHTTPClient(client *http.Client) *ListCommentParams

NewListCommentParamsWithHTTPClient creates a new ListCommentParams object with the ability to set a custom HTTPClient for a request.

func NewListCommentParamsWithTimeout

func NewListCommentParamsWithTimeout(timeout time.Duration) *ListCommentParams

NewListCommentParamsWithTimeout creates a new ListCommentParams object with the ability to set a timeout on a request.

func (*ListCommentParams) SetContext

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

SetContext adds the context to the list comment params

func (*ListCommentParams) SetDefaults

func (o *ListCommentParams) SetDefaults()

SetDefaults hydrates default values in the list comment params (not the query body).

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

func (*ListCommentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list comment params

func (*ListCommentParams) SetResourceID

func (o *ListCommentParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the list comment params

func (*ListCommentParams) SetResourceType

func (o *ListCommentParams) SetResourceType(resourceType string)

SetResourceType adds the resourceType to the list comment params

func (*ListCommentParams) SetTimeout

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

SetTimeout adds the timeout to the list comment params

func (*ListCommentParams) WithContext

func (o *ListCommentParams) WithContext(ctx context.Context) *ListCommentParams

WithContext adds the context to the list comment params

func (*ListCommentParams) WithDefaults

func (o *ListCommentParams) WithDefaults() *ListCommentParams

WithDefaults hydrates default values in the list comment params (not the query body).

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

func (*ListCommentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list comment params

func (*ListCommentParams) WithResourceID

func (o *ListCommentParams) WithResourceID(resourceID string) *ListCommentParams

WithResourceID adds the resourceID to the list comment params

func (*ListCommentParams) WithResourceType

func (o *ListCommentParams) WithResourceType(resourceType string) *ListCommentParams

WithResourceType adds the resourceType to the list comment params

func (*ListCommentParams) WithTimeout

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

WithTimeout adds the timeout to the list comment params

func (*ListCommentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListCommentReader

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

ListCommentReader is a Reader for the ListComment structure.

func (*ListCommentReader) ReadResponse

func (o *ListCommentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateCommentConflict

type UpdateCommentConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateCommentConflict describes a response with status code 409, with default header values.

The version you sent does not match the persisted version. (code: `comments.version_conflict`)

func NewUpdateCommentConflict

func NewUpdateCommentConflict() *UpdateCommentConflict

NewUpdateCommentConflict creates a UpdateCommentConflict with default headers values

func (*UpdateCommentConflict) Code

func (o *UpdateCommentConflict) Code() int

Code gets the status code for the update comment conflict response

func (*UpdateCommentConflict) Error

func (o *UpdateCommentConflict) Error() string

func (*UpdateCommentConflict) GetPayload

func (*UpdateCommentConflict) IsClientError

func (o *UpdateCommentConflict) IsClientError() bool

IsClientError returns true when this update comment conflict response has a 4xx status code

func (*UpdateCommentConflict) IsCode

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

IsCode returns true when this update comment conflict response a status code equal to that given

func (*UpdateCommentConflict) IsRedirect

func (o *UpdateCommentConflict) IsRedirect() bool

IsRedirect returns true when this update comment conflict response has a 3xx status code

func (*UpdateCommentConflict) IsServerError

func (o *UpdateCommentConflict) IsServerError() bool

IsServerError returns true when this update comment conflict response has a 5xx status code

func (*UpdateCommentConflict) IsSuccess

func (o *UpdateCommentConflict) IsSuccess() bool

IsSuccess returns true when this update comment conflict response has a 2xx status code

func (*UpdateCommentConflict) String

func (o *UpdateCommentConflict) String() string

type UpdateCommentNotFound

type UpdateCommentNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateCommentNotFound describes a response with status code 404, with default header values.

The Comment you want does not exist. (code: `comments.comment_does_not_exist`)

func NewUpdateCommentNotFound

func NewUpdateCommentNotFound() *UpdateCommentNotFound

NewUpdateCommentNotFound creates a UpdateCommentNotFound with default headers values

func (*UpdateCommentNotFound) Code

func (o *UpdateCommentNotFound) Code() int

Code gets the status code for the update comment not found response

func (*UpdateCommentNotFound) Error

func (o *UpdateCommentNotFound) Error() string

func (*UpdateCommentNotFound) GetPayload

func (*UpdateCommentNotFound) IsClientError

func (o *UpdateCommentNotFound) IsClientError() bool

IsClientError returns true when this update comment not found response has a 4xx status code

func (*UpdateCommentNotFound) IsCode

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

IsCode returns true when this update comment not found response a status code equal to that given

func (*UpdateCommentNotFound) IsRedirect

func (o *UpdateCommentNotFound) IsRedirect() bool

IsRedirect returns true when this update comment not found response has a 3xx status code

func (*UpdateCommentNotFound) IsServerError

func (o *UpdateCommentNotFound) IsServerError() bool

IsServerError returns true when this update comment not found response has a 5xx status code

func (*UpdateCommentNotFound) IsSuccess

func (o *UpdateCommentNotFound) IsSuccess() bool

IsSuccess returns true when this update comment not found response has a 2xx status code

func (*UpdateCommentNotFound) String

func (o *UpdateCommentNotFound) String() string

type UpdateCommentOK

type UpdateCommentOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Comment
}

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

Comment updated successfully.

func NewUpdateCommentOK

func NewUpdateCommentOK() *UpdateCommentOK

NewUpdateCommentOK creates a UpdateCommentOK with default headers values

func (*UpdateCommentOK) Code

func (o *UpdateCommentOK) Code() int

Code gets the status code for the update comment o k response

func (*UpdateCommentOK) Error

func (o *UpdateCommentOK) Error() string

func (*UpdateCommentOK) GetPayload

func (o *UpdateCommentOK) GetPayload() *models.Comment

func (*UpdateCommentOK) IsClientError

func (o *UpdateCommentOK) IsClientError() bool

IsClientError returns true when this update comment o k response has a 4xx status code

func (*UpdateCommentOK) IsCode

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

IsCode returns true when this update comment o k response a status code equal to that given

func (*UpdateCommentOK) IsRedirect

func (o *UpdateCommentOK) IsRedirect() bool

IsRedirect returns true when this update comment o k response has a 3xx status code

func (*UpdateCommentOK) IsServerError

func (o *UpdateCommentOK) IsServerError() bool

IsServerError returns true when this update comment o k response has a 5xx status code

func (*UpdateCommentOK) IsSuccess

func (o *UpdateCommentOK) IsSuccess() bool

IsSuccess returns true when this update comment o k response has a 2xx status code

func (*UpdateCommentOK) String

func (o *UpdateCommentOK) String() string

type UpdateCommentParams

type UpdateCommentParams struct {

	/* Body.

	   The Comment update data.
	*/
	Body *models.CommentUpdateRequest

	/* CommentID.

	   Id of a Comment
	*/
	CommentID string

	/* ResourceID.

	   Id of the Resource that a Comment belongs to.
	*/
	ResourceID string

	/* ResourceType.

	   The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].
	*/
	ResourceType string

	/* Version.

	   If specified then checks for conflicts against the version stored in the persistent store (returned in 'x-cloud-resource-version' of the GET request)
	*/
	Version *string

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

UpdateCommentParams contains all the parameters to send to the API endpoint

for the update comment operation.

Typically these are written to a http.Request.

func NewUpdateCommentParams

func NewUpdateCommentParams() *UpdateCommentParams

NewUpdateCommentParams creates a new UpdateCommentParams 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 NewUpdateCommentParamsWithContext

func NewUpdateCommentParamsWithContext(ctx context.Context) *UpdateCommentParams

NewUpdateCommentParamsWithContext creates a new UpdateCommentParams object with the ability to set a context for a request.

func NewUpdateCommentParamsWithHTTPClient

func NewUpdateCommentParamsWithHTTPClient(client *http.Client) *UpdateCommentParams

NewUpdateCommentParamsWithHTTPClient creates a new UpdateCommentParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCommentParamsWithTimeout

func NewUpdateCommentParamsWithTimeout(timeout time.Duration) *UpdateCommentParams

NewUpdateCommentParamsWithTimeout creates a new UpdateCommentParams object with the ability to set a timeout on a request.

func (*UpdateCommentParams) SetBody

SetBody adds the body to the update comment params

func (*UpdateCommentParams) SetCommentID

func (o *UpdateCommentParams) SetCommentID(commentID string)

SetCommentID adds the commentId to the update comment params

func (*UpdateCommentParams) SetContext

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

SetContext adds the context to the update comment params

func (*UpdateCommentParams) SetDefaults

func (o *UpdateCommentParams) SetDefaults()

SetDefaults hydrates default values in the update comment params (not the query body).

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

func (*UpdateCommentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update comment params

func (*UpdateCommentParams) SetResourceID

func (o *UpdateCommentParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the update comment params

func (*UpdateCommentParams) SetResourceType

func (o *UpdateCommentParams) SetResourceType(resourceType string)

SetResourceType adds the resourceType to the update comment params

func (*UpdateCommentParams) SetTimeout

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

SetTimeout adds the timeout to the update comment params

func (*UpdateCommentParams) SetVersion

func (o *UpdateCommentParams) SetVersion(version *string)

SetVersion adds the version to the update comment params

func (*UpdateCommentParams) WithBody

WithBody adds the body to the update comment params

func (*UpdateCommentParams) WithCommentID

func (o *UpdateCommentParams) WithCommentID(commentID string) *UpdateCommentParams

WithCommentID adds the commentID to the update comment params

func (*UpdateCommentParams) WithContext

WithContext adds the context to the update comment params

func (*UpdateCommentParams) WithDefaults

func (o *UpdateCommentParams) WithDefaults() *UpdateCommentParams

WithDefaults hydrates default values in the update comment params (not the query body).

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

func (*UpdateCommentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update comment params

func (*UpdateCommentParams) WithResourceID

func (o *UpdateCommentParams) WithResourceID(resourceID string) *UpdateCommentParams

WithResourceID adds the resourceID to the update comment params

func (*UpdateCommentParams) WithResourceType

func (o *UpdateCommentParams) WithResourceType(resourceType string) *UpdateCommentParams

WithResourceType adds the resourceType to the update comment params

func (*UpdateCommentParams) WithTimeout

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

WithTimeout adds the timeout to the update comment params

func (*UpdateCommentParams) WithVersion

func (o *UpdateCommentParams) WithVersion(version *string) *UpdateCommentParams

WithVersion adds the version to the update comment params

func (*UpdateCommentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateCommentReader

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

UpdateCommentReader is a Reader for the UpdateComment structure.

func (*UpdateCommentReader) ReadResponse

func (o *UpdateCommentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateCommentUnauthorized

type UpdateCommentUnauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UpdateCommentUnauthorized describes a response with status code 401, with default header values.

* The Comment does not belong to you. (code: `comments.unauthorised`)

* Your current session does not have a user id associated with it. (code: `comments.no_user_id`)

func NewUpdateCommentUnauthorized

func NewUpdateCommentUnauthorized() *UpdateCommentUnauthorized

NewUpdateCommentUnauthorized creates a UpdateCommentUnauthorized with default headers values

func (*UpdateCommentUnauthorized) Code

func (o *UpdateCommentUnauthorized) Code() int

Code gets the status code for the update comment unauthorized response

func (*UpdateCommentUnauthorized) Error

func (o *UpdateCommentUnauthorized) Error() string

func (*UpdateCommentUnauthorized) GetPayload

func (*UpdateCommentUnauthorized) IsClientError

func (o *UpdateCommentUnauthorized) IsClientError() bool

IsClientError returns true when this update comment unauthorized response has a 4xx status code

func (*UpdateCommentUnauthorized) IsCode

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

IsCode returns true when this update comment unauthorized response a status code equal to that given

func (*UpdateCommentUnauthorized) IsRedirect

func (o *UpdateCommentUnauthorized) IsRedirect() bool

IsRedirect returns true when this update comment unauthorized response has a 3xx status code

func (*UpdateCommentUnauthorized) IsServerError

func (o *UpdateCommentUnauthorized) IsServerError() bool

IsServerError returns true when this update comment unauthorized response has a 5xx status code

func (*UpdateCommentUnauthorized) IsSuccess

func (o *UpdateCommentUnauthorized) IsSuccess() bool

IsSuccess returns true when this update comment unauthorized response has a 2xx status code

func (*UpdateCommentUnauthorized) String

func (o *UpdateCommentUnauthorized) String() string

Jump to

Keyboard shortcuts

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