comments

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

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) (*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) (*DeleteCommentOK, error)

DeleteComment deletes comment

Deletes a Comment.

func (*Client) GetComment

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

GetComment gets comment

Retrieves a Comment.

func (*Client) ListComment

func (a *Client) ListComment(params *ListCommentParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*UpdateCommentOK, error)

UpdateComment updates comment

Updates a Comment.

type ClientService

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

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

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

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

	UpdateComment(params *UpdateCommentParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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) Error

func (o *CreateCommentConflict) Error() string

func (*CreateCommentConflict) GetPayload

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 handles this case 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) Error

func (o *CreateCommentCreated) Error() string

func (*CreateCommentCreated) GetPayload

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

type CreateCommentNotFound

type CreateCommentNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateCommentNotFound handles this case 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) Error

func (o *CreateCommentNotFound) Error() string

func (*CreateCommentNotFound) GetPayload

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, enterprisesearch, sitesearch, 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 values initialized.

func NewCreateCommentParamsWithContext

func NewCreateCommentParamsWithContext(ctx context.Context) *CreateCommentParams

NewCreateCommentParamsWithContext creates a new CreateCommentParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *CreateCommentUnauthorized) Error() string

func (*CreateCommentUnauthorized) GetPayload

type DeleteCommentConflict

type DeleteCommentConflict struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteCommentConflict handles this case 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) Error

func (o *DeleteCommentConflict) Error() string

func (*DeleteCommentConflict) GetPayload

type DeleteCommentNotFound

type DeleteCommentNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteCommentNotFound handles this case 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) Error

func (o *DeleteCommentNotFound) Error() string

func (*DeleteCommentNotFound) GetPayload

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 handles this case with default header values.

Comment deleted successfully.

func NewDeleteCommentOK

func NewDeleteCommentOK() *DeleteCommentOK

NewDeleteCommentOK creates a DeleteCommentOK with default headers values

func (*DeleteCommentOK) Error

func (o *DeleteCommentOK) Error() string

func (*DeleteCommentOK) GetPayload

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

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, enterprisesearch, sitesearch, 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 *int64

	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 values initialized.

func NewDeleteCommentParamsWithContext

func NewDeleteCommentParamsWithContext(ctx context.Context) *DeleteCommentParams

NewDeleteCommentParamsWithContext creates a new DeleteCommentParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 *int64)

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) 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 *int64) *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 handles this case 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) Error

func (o *DeleteCommentUnauthorized) Error() string

func (*DeleteCommentUnauthorized) GetPayload

type GetCommentNotFound

type GetCommentNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCommentNotFound handles this case 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) Error

func (o *GetCommentNotFound) Error() string

func (*GetCommentNotFound) GetPayload

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

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 handles this case with default header values.

The Comment

func NewGetCommentOK

func NewGetCommentOK() *GetCommentOK

NewGetCommentOK creates a GetCommentOK with default headers values

func (*GetCommentOK) Error

func (o *GetCommentOK) Error() string

func (*GetCommentOK) GetPayload

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

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, enterprisesearch, sitesearch, 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 values initialized.

func NewGetCommentParamsWithContext

func NewGetCommentParamsWithContext(ctx context.Context) *GetCommentParams

NewGetCommentParamsWithContext creates a new GetCommentParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

The Comments

func NewListCommentOK

func NewListCommentOK() *ListCommentOK

NewListCommentOK creates a ListCommentOK with default headers values

func (*ListCommentOK) Error

func (o *ListCommentOK) Error() string

func (*ListCommentOK) GetPayload

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

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, enterprisesearch, sitesearch, 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 values initialized.

func NewListCommentParamsWithContext

func NewListCommentParamsWithContext(ctx context.Context) *ListCommentParams

NewListCommentParamsWithContext creates a new ListCommentParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *UpdateCommentConflict) Error() string

func (*UpdateCommentConflict) GetPayload

type UpdateCommentNotFound

type UpdateCommentNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateCommentNotFound handles this case 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) Error

func (o *UpdateCommentNotFound) Error() string

func (*UpdateCommentNotFound) GetPayload

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 handles this case with default header values.

Comment updated successfully.

func NewUpdateCommentOK

func NewUpdateCommentOK() *UpdateCommentOK

NewUpdateCommentOK creates a UpdateCommentOK with default headers values

func (*UpdateCommentOK) Error

func (o *UpdateCommentOK) Error() string

func (*UpdateCommentOK) GetPayload

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

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, enterprisesearch, sitesearch, 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 *int64

	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 values initialized.

func NewUpdateCommentParamsWithContext

func NewUpdateCommentParamsWithContext(ctx context.Context) *UpdateCommentParams

NewUpdateCommentParamsWithContext creates a new UpdateCommentParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 *int64)

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) 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 *int64) *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 handles this case 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) Error

func (o *UpdateCommentUnauthorized) Error() string

func (*UpdateCommentUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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