retention

package
v5.0.0-...-5bc921f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 11 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 retention API

func (*Client) CreateRetention

func (a *Client) CreateRetention(params *CreateRetentionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRetentionCreated, error)

CreateRetention creates retention policy

Create Retention Policy, you can reference metadatas API for the policy model. You can check project metadatas to find whether a retention policy is already binded. This method should only be called when no retention policy binded to project yet.

func (*Client) DeleteRetention

func (a *Client) DeleteRetention(params *DeleteRetentionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRetentionOK, error)

DeleteRetention deletes retention policy

Delete Retention Policy, you can reference metadatas API for the policy model. You can check project metadatas to find whether a retention policy is already binded. This method should only be called when retention policy has already binded to project.

func (*Client) GetRentenitionMetadata

func (a *Client) GetRentenitionMetadata(params *GetRentenitionMetadataParams, authInfo runtime.ClientAuthInfoWriter) (*GetRentenitionMetadataOK, error)

GetRentenitionMetadata gets retention metadatas

Get Retention Metadatas.

func (*Client) GetRetention

func (a *Client) GetRetention(params *GetRetentionParams, authInfo runtime.ClientAuthInfoWriter) (*GetRetentionOK, error)

GetRetention gets retention policy

Get Retention Policy.

func (*Client) GetRetentionTaskLog

func (a *Client) GetRetentionTaskLog(params *GetRetentionTaskLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetRetentionTaskLogOK, error)

GetRetentionTaskLog gets retention job task log

Get Retention job task log, tags ratain or deletion detail will be shown in a table.

func (*Client) ListRetentionExecutions

func (a *Client) ListRetentionExecutions(params *ListRetentionExecutionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListRetentionExecutionsOK, error)

ListRetentionExecutions gets retention executions

Get Retention executions, execution status may be delayed before job service schedule it up.

func (*Client) ListRetentionTasks

func (a *Client) ListRetentionTasks(params *ListRetentionTasksParams, authInfo runtime.ClientAuthInfoWriter) (*ListRetentionTasksOK, error)

ListRetentionTasks gets retention tasks

Get Retention tasks, each repository as a task.

func (*Client) OperateRetentionExecution

func (a *Client) OperateRetentionExecution(params *OperateRetentionExecutionParams, authInfo runtime.ClientAuthInfoWriter) (*OperateRetentionExecutionOK, error)

OperateRetentionExecution stops a retention execution

Stop a Retention execution, only support "stop" action now.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TriggerRetentionExecution

TriggerRetentionExecution triggers a retention execution

Trigger a Retention Execution, if dry_run is True, nothing would be deleted actually.

func (*Client) UpdateRetention

func (a *Client) UpdateRetention(params *UpdateRetentionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRetentionOK, error)

UpdateRetention updates retention policy

Update Retention Policy, you can reference metadatas API for the policy model. You can check project metadatas to find whether a retention policy is already binded. This method should only be called when retention policy has already binded to project.

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new retention API client.

type CreateRetentionBadRequest

type CreateRetentionBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRetentionBadRequest handles this case with default header values.

Bad request

func NewCreateRetentionBadRequest

func NewCreateRetentionBadRequest() *CreateRetentionBadRequest

NewCreateRetentionBadRequest creates a CreateRetentionBadRequest with default headers values

func (*CreateRetentionBadRequest) Error

func (o *CreateRetentionBadRequest) Error() string

func (*CreateRetentionBadRequest) GetPayload

func (o *CreateRetentionBadRequest) GetPayload() *model.Errors

type CreateRetentionCreated

type CreateRetentionCreated struct {
	/*The location of the resource
	 */
	Location string
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateRetentionCreated handles this case with default header values.

Created

func NewCreateRetentionCreated

func NewCreateRetentionCreated() *CreateRetentionCreated

NewCreateRetentionCreated creates a CreateRetentionCreated with default headers values

func (*CreateRetentionCreated) Error

func (o *CreateRetentionCreated) Error() string

type CreateRetentionForbidden

type CreateRetentionForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRetentionForbidden handles this case with default header values.

Forbidden

func NewCreateRetentionForbidden

func NewCreateRetentionForbidden() *CreateRetentionForbidden

NewCreateRetentionForbidden creates a CreateRetentionForbidden with default headers values

func (*CreateRetentionForbidden) Error

func (o *CreateRetentionForbidden) Error() string

func (*CreateRetentionForbidden) GetPayload

func (o *CreateRetentionForbidden) GetPayload() *model.Errors

type CreateRetentionInternalServerError

type CreateRetentionInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRetentionInternalServerError handles this case with default header values.

Internal server error

func NewCreateRetentionInternalServerError

func NewCreateRetentionInternalServerError() *CreateRetentionInternalServerError

NewCreateRetentionInternalServerError creates a CreateRetentionInternalServerError with default headers values

func (*CreateRetentionInternalServerError) Error

func (*CreateRetentionInternalServerError) GetPayload

type CreateRetentionParams

type CreateRetentionParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Policy
	  Create Retention Policy successfully.

	*/
	Policy *model.RetentionPolicy

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

CreateRetentionParams contains all the parameters to send to the API endpoint for the create retention operation typically these are written to a http.Request

func NewCreateRetentionParams

func NewCreateRetentionParams() *CreateRetentionParams

NewCreateRetentionParams creates a new CreateRetentionParams object with the default values initialized.

func NewCreateRetentionParamsWithContext

func NewCreateRetentionParamsWithContext(ctx context.Context) *CreateRetentionParams

NewCreateRetentionParamsWithContext creates a new CreateRetentionParams object with the default values initialized, and the ability to set a context for a request

func NewCreateRetentionParamsWithHTTPClient

func NewCreateRetentionParamsWithHTTPClient(client *http.Client) *CreateRetentionParams

NewCreateRetentionParamsWithHTTPClient creates a new CreateRetentionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateRetentionParamsWithTimeout

func NewCreateRetentionParamsWithTimeout(timeout time.Duration) *CreateRetentionParams

NewCreateRetentionParamsWithTimeout creates a new CreateRetentionParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateRetentionParams) SetContext

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

SetContext adds the context to the create retention params

func (*CreateRetentionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create retention params

func (*CreateRetentionParams) SetPolicy

func (o *CreateRetentionParams) SetPolicy(policy *model.RetentionPolicy)

SetPolicy adds the policy to the create retention params

func (*CreateRetentionParams) SetTimeout

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

SetTimeout adds the timeout to the create retention params

func (*CreateRetentionParams) SetXRequestID

func (o *CreateRetentionParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create retention params

func (*CreateRetentionParams) WithContext

WithContext adds the context to the create retention params

func (*CreateRetentionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create retention params

func (*CreateRetentionParams) WithPolicy

WithPolicy adds the policy to the create retention params

func (*CreateRetentionParams) WithTimeout

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

WithTimeout adds the timeout to the create retention params

func (*CreateRetentionParams) WithXRequestID

func (o *CreateRetentionParams) WithXRequestID(xRequestID *string) *CreateRetentionParams

WithXRequestID adds the xRequestID to the create retention params

func (*CreateRetentionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRetentionReader

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

CreateRetentionReader is a Reader for the CreateRetention structure.

func (*CreateRetentionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRetentionUnauthorized

type CreateRetentionUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRetentionUnauthorized handles this case with default header values.

Unauthorized

func NewCreateRetentionUnauthorized

func NewCreateRetentionUnauthorized() *CreateRetentionUnauthorized

NewCreateRetentionUnauthorized creates a CreateRetentionUnauthorized with default headers values

func (*CreateRetentionUnauthorized) Error

func (*CreateRetentionUnauthorized) GetPayload

func (o *CreateRetentionUnauthorized) GetPayload() *model.Errors

type DeleteRetentionForbidden

type DeleteRetentionForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRetentionForbidden handles this case with default header values.

Forbidden

func NewDeleteRetentionForbidden

func NewDeleteRetentionForbidden() *DeleteRetentionForbidden

NewDeleteRetentionForbidden creates a DeleteRetentionForbidden with default headers values

func (*DeleteRetentionForbidden) Error

func (o *DeleteRetentionForbidden) Error() string

func (*DeleteRetentionForbidden) GetPayload

func (o *DeleteRetentionForbidden) GetPayload() *model.Errors

type DeleteRetentionInternalServerError

type DeleteRetentionInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRetentionInternalServerError handles this case with default header values.

Internal server error

func NewDeleteRetentionInternalServerError

func NewDeleteRetentionInternalServerError() *DeleteRetentionInternalServerError

NewDeleteRetentionInternalServerError creates a DeleteRetentionInternalServerError with default headers values

func (*DeleteRetentionInternalServerError) Error

func (*DeleteRetentionInternalServerError) GetPayload

type DeleteRetentionOK

type DeleteRetentionOK struct {
}

DeleteRetentionOK handles this case with default header values.

Update Retention Policy successfully.

func NewDeleteRetentionOK

func NewDeleteRetentionOK() *DeleteRetentionOK

NewDeleteRetentionOK creates a DeleteRetentionOK with default headers values

func (*DeleteRetentionOK) Error

func (o *DeleteRetentionOK) Error() string

type DeleteRetentionParams

type DeleteRetentionParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ID
	  Retention ID.

	*/
	ID int64

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

DeleteRetentionParams contains all the parameters to send to the API endpoint for the delete retention operation typically these are written to a http.Request

func NewDeleteRetentionParams

func NewDeleteRetentionParams() *DeleteRetentionParams

NewDeleteRetentionParams creates a new DeleteRetentionParams object with the default values initialized.

func NewDeleteRetentionParamsWithContext

func NewDeleteRetentionParamsWithContext(ctx context.Context) *DeleteRetentionParams

NewDeleteRetentionParamsWithContext creates a new DeleteRetentionParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteRetentionParamsWithHTTPClient

func NewDeleteRetentionParamsWithHTTPClient(client *http.Client) *DeleteRetentionParams

NewDeleteRetentionParamsWithHTTPClient creates a new DeleteRetentionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteRetentionParamsWithTimeout

func NewDeleteRetentionParamsWithTimeout(timeout time.Duration) *DeleteRetentionParams

NewDeleteRetentionParamsWithTimeout creates a new DeleteRetentionParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteRetentionParams) SetContext

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

SetContext adds the context to the delete retention params

func (*DeleteRetentionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete retention params

func (*DeleteRetentionParams) SetID

func (o *DeleteRetentionParams) SetID(id int64)

SetID adds the id to the delete retention params

func (*DeleteRetentionParams) SetTimeout

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

SetTimeout adds the timeout to the delete retention params

func (*DeleteRetentionParams) SetXRequestID

func (o *DeleteRetentionParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete retention params

func (*DeleteRetentionParams) WithContext

WithContext adds the context to the delete retention params

func (*DeleteRetentionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete retention params

func (*DeleteRetentionParams) WithID

WithID adds the id to the delete retention params

func (*DeleteRetentionParams) WithTimeout

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

WithTimeout adds the timeout to the delete retention params

func (*DeleteRetentionParams) WithXRequestID

func (o *DeleteRetentionParams) WithXRequestID(xRequestID *string) *DeleteRetentionParams

WithXRequestID adds the xRequestID to the delete retention params

func (*DeleteRetentionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRetentionReader

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

DeleteRetentionReader is a Reader for the DeleteRetention structure.

func (*DeleteRetentionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRetentionUnauthorized

type DeleteRetentionUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRetentionUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteRetentionUnauthorized

func NewDeleteRetentionUnauthorized() *DeleteRetentionUnauthorized

NewDeleteRetentionUnauthorized creates a DeleteRetentionUnauthorized with default headers values

func (*DeleteRetentionUnauthorized) Error

func (*DeleteRetentionUnauthorized) GetPayload

func (o *DeleteRetentionUnauthorized) GetPayload() *model.Errors

type GetRentenitionMetadataOK

type GetRentenitionMetadataOK struct {
	Payload *model.RetentionMetadata
}

GetRentenitionMetadataOK handles this case with default header values.

Get Retention Metadatas successfully.

func NewGetRentenitionMetadataOK

func NewGetRentenitionMetadataOK() *GetRentenitionMetadataOK

NewGetRentenitionMetadataOK creates a GetRentenitionMetadataOK with default headers values

func (*GetRentenitionMetadataOK) Error

func (o *GetRentenitionMetadataOK) Error() string

func (*GetRentenitionMetadataOK) GetPayload

type GetRentenitionMetadataParams

type GetRentenitionMetadataParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetRentenitionMetadataParams contains all the parameters to send to the API endpoint for the get rentenition metadata operation typically these are written to a http.Request

func NewGetRentenitionMetadataParams

func NewGetRentenitionMetadataParams() *GetRentenitionMetadataParams

NewGetRentenitionMetadataParams creates a new GetRentenitionMetadataParams object with the default values initialized.

func NewGetRentenitionMetadataParamsWithContext

func NewGetRentenitionMetadataParamsWithContext(ctx context.Context) *GetRentenitionMetadataParams

NewGetRentenitionMetadataParamsWithContext creates a new GetRentenitionMetadataParams object with the default values initialized, and the ability to set a context for a request

func NewGetRentenitionMetadataParamsWithHTTPClient

func NewGetRentenitionMetadataParamsWithHTTPClient(client *http.Client) *GetRentenitionMetadataParams

NewGetRentenitionMetadataParamsWithHTTPClient creates a new GetRentenitionMetadataParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRentenitionMetadataParamsWithTimeout

func NewGetRentenitionMetadataParamsWithTimeout(timeout time.Duration) *GetRentenitionMetadataParams

NewGetRentenitionMetadataParamsWithTimeout creates a new GetRentenitionMetadataParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRentenitionMetadataParams) SetContext

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

SetContext adds the context to the get rentenition metadata params

func (*GetRentenitionMetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get rentenition metadata params

func (*GetRentenitionMetadataParams) SetTimeout

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

SetTimeout adds the timeout to the get rentenition metadata params

func (*GetRentenitionMetadataParams) SetXRequestID

func (o *GetRentenitionMetadataParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get rentenition metadata params

func (*GetRentenitionMetadataParams) WithContext

WithContext adds the context to the get rentenition metadata params

func (*GetRentenitionMetadataParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get rentenition metadata params

func (*GetRentenitionMetadataParams) WithTimeout

WithTimeout adds the timeout to the get rentenition metadata params

func (*GetRentenitionMetadataParams) WithXRequestID

func (o *GetRentenitionMetadataParams) WithXRequestID(xRequestID *string) *GetRentenitionMetadataParams

WithXRequestID adds the xRequestID to the get rentenition metadata params

func (*GetRentenitionMetadataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRentenitionMetadataReader

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

GetRentenitionMetadataReader is a Reader for the GetRentenitionMetadata structure.

func (*GetRentenitionMetadataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRetentionForbidden

type GetRetentionForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRetentionForbidden handles this case with default header values.

Forbidden

func NewGetRetentionForbidden

func NewGetRetentionForbidden() *GetRetentionForbidden

NewGetRetentionForbidden creates a GetRetentionForbidden with default headers values

func (*GetRetentionForbidden) Error

func (o *GetRetentionForbidden) Error() string

func (*GetRetentionForbidden) GetPayload

func (o *GetRetentionForbidden) GetPayload() *model.Errors

type GetRetentionInternalServerError

type GetRetentionInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRetentionInternalServerError handles this case with default header values.

Internal server error

func NewGetRetentionInternalServerError

func NewGetRetentionInternalServerError() *GetRetentionInternalServerError

NewGetRetentionInternalServerError creates a GetRetentionInternalServerError with default headers values

func (*GetRetentionInternalServerError) Error

func (*GetRetentionInternalServerError) GetPayload

func (o *GetRetentionInternalServerError) GetPayload() *model.Errors

type GetRetentionOK

type GetRetentionOK struct {
	Payload *model.RetentionPolicy
}

GetRetentionOK handles this case with default header values.

Get Retention Policy successfully.

func NewGetRetentionOK

func NewGetRetentionOK() *GetRetentionOK

NewGetRetentionOK creates a GetRetentionOK with default headers values

func (*GetRetentionOK) Error

func (o *GetRetentionOK) Error() string

func (*GetRetentionOK) GetPayload

func (o *GetRetentionOK) GetPayload() *model.RetentionPolicy

type GetRetentionParams

type GetRetentionParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ID
	  Retention ID.

	*/
	ID int64

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

GetRetentionParams contains all the parameters to send to the API endpoint for the get retention operation typically these are written to a http.Request

func NewGetRetentionParams

func NewGetRetentionParams() *GetRetentionParams

NewGetRetentionParams creates a new GetRetentionParams object with the default values initialized.

func NewGetRetentionParamsWithContext

func NewGetRetentionParamsWithContext(ctx context.Context) *GetRetentionParams

NewGetRetentionParamsWithContext creates a new GetRetentionParams object with the default values initialized, and the ability to set a context for a request

func NewGetRetentionParamsWithHTTPClient

func NewGetRetentionParamsWithHTTPClient(client *http.Client) *GetRetentionParams

NewGetRetentionParamsWithHTTPClient creates a new GetRetentionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRetentionParamsWithTimeout

func NewGetRetentionParamsWithTimeout(timeout time.Duration) *GetRetentionParams

NewGetRetentionParamsWithTimeout creates a new GetRetentionParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRetentionParams) SetContext

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

SetContext adds the context to the get retention params

func (*GetRetentionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get retention params

func (*GetRetentionParams) SetID

func (o *GetRetentionParams) SetID(id int64)

SetID adds the id to the get retention params

func (*GetRetentionParams) SetTimeout

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

SetTimeout adds the timeout to the get retention params

func (*GetRetentionParams) SetXRequestID

func (o *GetRetentionParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get retention params

func (*GetRetentionParams) WithContext

WithContext adds the context to the get retention params

func (*GetRetentionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get retention params

func (*GetRetentionParams) WithID

WithID adds the id to the get retention params

func (*GetRetentionParams) WithTimeout

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

WithTimeout adds the timeout to the get retention params

func (*GetRetentionParams) WithXRequestID

func (o *GetRetentionParams) WithXRequestID(xRequestID *string) *GetRetentionParams

WithXRequestID adds the xRequestID to the get retention params

func (*GetRetentionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRetentionReader

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

GetRetentionReader is a Reader for the GetRetention structure.

func (*GetRetentionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRetentionTaskLogForbidden

type GetRetentionTaskLogForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRetentionTaskLogForbidden handles this case with default header values.

Forbidden

func NewGetRetentionTaskLogForbidden

func NewGetRetentionTaskLogForbidden() *GetRetentionTaskLogForbidden

NewGetRetentionTaskLogForbidden creates a GetRetentionTaskLogForbidden with default headers values

func (*GetRetentionTaskLogForbidden) Error

func (*GetRetentionTaskLogForbidden) GetPayload

func (o *GetRetentionTaskLogForbidden) GetPayload() *model.Errors

type GetRetentionTaskLogInternalServerError

type GetRetentionTaskLogInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRetentionTaskLogInternalServerError handles this case with default header values.

Internal server error

func NewGetRetentionTaskLogInternalServerError

func NewGetRetentionTaskLogInternalServerError() *GetRetentionTaskLogInternalServerError

NewGetRetentionTaskLogInternalServerError creates a GetRetentionTaskLogInternalServerError with default headers values

func (*GetRetentionTaskLogInternalServerError) Error

func (*GetRetentionTaskLogInternalServerError) GetPayload

type GetRetentionTaskLogOK

type GetRetentionTaskLogOK struct {
	Payload string
}

GetRetentionTaskLogOK handles this case with default header values.

Get Retention job task log successfully.

func NewGetRetentionTaskLogOK

func NewGetRetentionTaskLogOK() *GetRetentionTaskLogOK

NewGetRetentionTaskLogOK creates a GetRetentionTaskLogOK with default headers values

func (*GetRetentionTaskLogOK) Error

func (o *GetRetentionTaskLogOK) Error() string

func (*GetRetentionTaskLogOK) GetPayload

func (o *GetRetentionTaskLogOK) GetPayload() string

type GetRetentionTaskLogParams

type GetRetentionTaskLogParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Eid
	  Retention execution ID.

	*/
	Eid int64
	/*ID
	  Retention ID.

	*/
	ID int64
	/*Tid
	  Retention execution ID.

	*/
	Tid int64

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

GetRetentionTaskLogParams contains all the parameters to send to the API endpoint for the get retention task log operation typically these are written to a http.Request

func NewGetRetentionTaskLogParams

func NewGetRetentionTaskLogParams() *GetRetentionTaskLogParams

NewGetRetentionTaskLogParams creates a new GetRetentionTaskLogParams object with the default values initialized.

func NewGetRetentionTaskLogParamsWithContext

func NewGetRetentionTaskLogParamsWithContext(ctx context.Context) *GetRetentionTaskLogParams

NewGetRetentionTaskLogParamsWithContext creates a new GetRetentionTaskLogParams object with the default values initialized, and the ability to set a context for a request

func NewGetRetentionTaskLogParamsWithHTTPClient

func NewGetRetentionTaskLogParamsWithHTTPClient(client *http.Client) *GetRetentionTaskLogParams

NewGetRetentionTaskLogParamsWithHTTPClient creates a new GetRetentionTaskLogParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRetentionTaskLogParamsWithTimeout

func NewGetRetentionTaskLogParamsWithTimeout(timeout time.Duration) *GetRetentionTaskLogParams

NewGetRetentionTaskLogParamsWithTimeout creates a new GetRetentionTaskLogParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRetentionTaskLogParams) SetContext

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

SetContext adds the context to the get retention task log params

func (*GetRetentionTaskLogParams) SetEid

func (o *GetRetentionTaskLogParams) SetEid(eid int64)

SetEid adds the eid to the get retention task log params

func (*GetRetentionTaskLogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get retention task log params

func (*GetRetentionTaskLogParams) SetID

func (o *GetRetentionTaskLogParams) SetID(id int64)

SetID adds the id to the get retention task log params

func (*GetRetentionTaskLogParams) SetTid

func (o *GetRetentionTaskLogParams) SetTid(tid int64)

SetTid adds the tid to the get retention task log params

func (*GetRetentionTaskLogParams) SetTimeout

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

SetTimeout adds the timeout to the get retention task log params

func (*GetRetentionTaskLogParams) SetXRequestID

func (o *GetRetentionTaskLogParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get retention task log params

func (*GetRetentionTaskLogParams) WithContext

WithContext adds the context to the get retention task log params

func (*GetRetentionTaskLogParams) WithEid

WithEid adds the eid to the get retention task log params

func (*GetRetentionTaskLogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get retention task log params

func (*GetRetentionTaskLogParams) WithID

WithID adds the id to the get retention task log params

func (*GetRetentionTaskLogParams) WithTid

WithTid adds the tid to the get retention task log params

func (*GetRetentionTaskLogParams) WithTimeout

WithTimeout adds the timeout to the get retention task log params

func (*GetRetentionTaskLogParams) WithXRequestID

func (o *GetRetentionTaskLogParams) WithXRequestID(xRequestID *string) *GetRetentionTaskLogParams

WithXRequestID adds the xRequestID to the get retention task log params

func (*GetRetentionTaskLogParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRetentionTaskLogReader

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

GetRetentionTaskLogReader is a Reader for the GetRetentionTaskLog structure.

func (*GetRetentionTaskLogReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRetentionTaskLogUnauthorized

type GetRetentionTaskLogUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRetentionTaskLogUnauthorized handles this case with default header values.

Unauthorized

func NewGetRetentionTaskLogUnauthorized

func NewGetRetentionTaskLogUnauthorized() *GetRetentionTaskLogUnauthorized

NewGetRetentionTaskLogUnauthorized creates a GetRetentionTaskLogUnauthorized with default headers values

func (*GetRetentionTaskLogUnauthorized) Error

func (*GetRetentionTaskLogUnauthorized) GetPayload

func (o *GetRetentionTaskLogUnauthorized) GetPayload() *model.Errors

type GetRetentionUnauthorized

type GetRetentionUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRetentionUnauthorized handles this case with default header values.

Unauthorized

func NewGetRetentionUnauthorized

func NewGetRetentionUnauthorized() *GetRetentionUnauthorized

NewGetRetentionUnauthorized creates a GetRetentionUnauthorized with default headers values

func (*GetRetentionUnauthorized) Error

func (o *GetRetentionUnauthorized) Error() string

func (*GetRetentionUnauthorized) GetPayload

func (o *GetRetentionUnauthorized) GetPayload() *model.Errors

type ListRetentionExecutionsForbidden

type ListRetentionExecutionsForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRetentionExecutionsForbidden handles this case with default header values.

Forbidden

func NewListRetentionExecutionsForbidden

func NewListRetentionExecutionsForbidden() *ListRetentionExecutionsForbidden

NewListRetentionExecutionsForbidden creates a ListRetentionExecutionsForbidden with default headers values

func (*ListRetentionExecutionsForbidden) Error

func (*ListRetentionExecutionsForbidden) GetPayload

type ListRetentionExecutionsInternalServerError

type ListRetentionExecutionsInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRetentionExecutionsInternalServerError handles this case with default header values.

Internal server error

func NewListRetentionExecutionsInternalServerError

func NewListRetentionExecutionsInternalServerError() *ListRetentionExecutionsInternalServerError

NewListRetentionExecutionsInternalServerError creates a ListRetentionExecutionsInternalServerError with default headers values

func (*ListRetentionExecutionsInternalServerError) Error

func (*ListRetentionExecutionsInternalServerError) GetPayload

type ListRetentionExecutionsOK

type ListRetentionExecutionsOK struct {
	/*Link to previous page and next page
	 */
	Link string
	/*The total count of available items
	 */
	XTotalCount int64

	Payload []*model.RetentionExecution
}

ListRetentionExecutionsOK handles this case with default header values.

Get a Retention execution successfully.

func NewListRetentionExecutionsOK

func NewListRetentionExecutionsOK() *ListRetentionExecutionsOK

NewListRetentionExecutionsOK creates a ListRetentionExecutionsOK with default headers values

func (*ListRetentionExecutionsOK) Error

func (o *ListRetentionExecutionsOK) Error() string

func (*ListRetentionExecutionsOK) GetPayload

type ListRetentionExecutionsParams

type ListRetentionExecutionsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ID
	  Retention ID.

	*/
	ID int64
	/*Page
	  The page number.

	*/
	Page *int64
	/*PageSize
	  The size of per page.

	*/
	PageSize *int64

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

ListRetentionExecutionsParams contains all the parameters to send to the API endpoint for the list retention executions operation typically these are written to a http.Request

func NewListRetentionExecutionsParams

func NewListRetentionExecutionsParams() *ListRetentionExecutionsParams

NewListRetentionExecutionsParams creates a new ListRetentionExecutionsParams object with the default values initialized.

func NewListRetentionExecutionsParamsWithContext

func NewListRetentionExecutionsParamsWithContext(ctx context.Context) *ListRetentionExecutionsParams

NewListRetentionExecutionsParamsWithContext creates a new ListRetentionExecutionsParams object with the default values initialized, and the ability to set a context for a request

func NewListRetentionExecutionsParamsWithHTTPClient

func NewListRetentionExecutionsParamsWithHTTPClient(client *http.Client) *ListRetentionExecutionsParams

NewListRetentionExecutionsParamsWithHTTPClient creates a new ListRetentionExecutionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListRetentionExecutionsParamsWithTimeout

func NewListRetentionExecutionsParamsWithTimeout(timeout time.Duration) *ListRetentionExecutionsParams

NewListRetentionExecutionsParamsWithTimeout creates a new ListRetentionExecutionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListRetentionExecutionsParams) SetContext

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

SetContext adds the context to the list retention executions params

func (*ListRetentionExecutionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list retention executions params

func (*ListRetentionExecutionsParams) SetID

func (o *ListRetentionExecutionsParams) SetID(id int64)

SetID adds the id to the list retention executions params

func (*ListRetentionExecutionsParams) SetPage

func (o *ListRetentionExecutionsParams) SetPage(page *int64)

SetPage adds the page to the list retention executions params

func (*ListRetentionExecutionsParams) SetPageSize

func (o *ListRetentionExecutionsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list retention executions params

func (*ListRetentionExecutionsParams) SetTimeout

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

SetTimeout adds the timeout to the list retention executions params

func (*ListRetentionExecutionsParams) SetXRequestID

func (o *ListRetentionExecutionsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list retention executions params

func (*ListRetentionExecutionsParams) WithContext

WithContext adds the context to the list retention executions params

func (*ListRetentionExecutionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list retention executions params

func (*ListRetentionExecutionsParams) WithID

WithID adds the id to the list retention executions params

func (*ListRetentionExecutionsParams) WithPage

WithPage adds the page to the list retention executions params

func (*ListRetentionExecutionsParams) WithPageSize

WithPageSize adds the pageSize to the list retention executions params

func (*ListRetentionExecutionsParams) WithTimeout

WithTimeout adds the timeout to the list retention executions params

func (*ListRetentionExecutionsParams) WithXRequestID

func (o *ListRetentionExecutionsParams) WithXRequestID(xRequestID *string) *ListRetentionExecutionsParams

WithXRequestID adds the xRequestID to the list retention executions params

func (*ListRetentionExecutionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRetentionExecutionsReader

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

ListRetentionExecutionsReader is a Reader for the ListRetentionExecutions structure.

func (*ListRetentionExecutionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRetentionExecutionsUnauthorized

type ListRetentionExecutionsUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRetentionExecutionsUnauthorized handles this case with default header values.

Unauthorized

func NewListRetentionExecutionsUnauthorized

func NewListRetentionExecutionsUnauthorized() *ListRetentionExecutionsUnauthorized

NewListRetentionExecutionsUnauthorized creates a ListRetentionExecutionsUnauthorized with default headers values

func (*ListRetentionExecutionsUnauthorized) Error

func (*ListRetentionExecutionsUnauthorized) GetPayload

type ListRetentionTasksForbidden

type ListRetentionTasksForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRetentionTasksForbidden handles this case with default header values.

Forbidden

func NewListRetentionTasksForbidden

func NewListRetentionTasksForbidden() *ListRetentionTasksForbidden

NewListRetentionTasksForbidden creates a ListRetentionTasksForbidden with default headers values

func (*ListRetentionTasksForbidden) Error

func (*ListRetentionTasksForbidden) GetPayload

func (o *ListRetentionTasksForbidden) GetPayload() *model.Errors

type ListRetentionTasksInternalServerError

type ListRetentionTasksInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRetentionTasksInternalServerError handles this case with default header values.

Internal server error

func NewListRetentionTasksInternalServerError

func NewListRetentionTasksInternalServerError() *ListRetentionTasksInternalServerError

NewListRetentionTasksInternalServerError creates a ListRetentionTasksInternalServerError with default headers values

func (*ListRetentionTasksInternalServerError) Error

func (*ListRetentionTasksInternalServerError) GetPayload

type ListRetentionTasksOK

type ListRetentionTasksOK struct {
	/*Link to previous page and next page
	 */
	Link string
	/*The total count of available items
	 */
	XTotalCount int64

	Payload []*model.RetentionExecutionTask
}

ListRetentionTasksOK handles this case with default header values.

Get Retention job tasks successfully.

func NewListRetentionTasksOK

func NewListRetentionTasksOK() *ListRetentionTasksOK

NewListRetentionTasksOK creates a ListRetentionTasksOK with default headers values

func (*ListRetentionTasksOK) Error

func (o *ListRetentionTasksOK) Error() string

func (*ListRetentionTasksOK) GetPayload

type ListRetentionTasksParams

type ListRetentionTasksParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Eid
	  Retention execution ID.

	*/
	Eid int64
	/*ID
	  Retention ID.

	*/
	ID int64
	/*Page
	  The page number.

	*/
	Page *int64
	/*PageSize
	  The size of per page.

	*/
	PageSize *int64

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

ListRetentionTasksParams contains all the parameters to send to the API endpoint for the list retention tasks operation typically these are written to a http.Request

func NewListRetentionTasksParams

func NewListRetentionTasksParams() *ListRetentionTasksParams

NewListRetentionTasksParams creates a new ListRetentionTasksParams object with the default values initialized.

func NewListRetentionTasksParamsWithContext

func NewListRetentionTasksParamsWithContext(ctx context.Context) *ListRetentionTasksParams

NewListRetentionTasksParamsWithContext creates a new ListRetentionTasksParams object with the default values initialized, and the ability to set a context for a request

func NewListRetentionTasksParamsWithHTTPClient

func NewListRetentionTasksParamsWithHTTPClient(client *http.Client) *ListRetentionTasksParams

NewListRetentionTasksParamsWithHTTPClient creates a new ListRetentionTasksParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListRetentionTasksParamsWithTimeout

func NewListRetentionTasksParamsWithTimeout(timeout time.Duration) *ListRetentionTasksParams

NewListRetentionTasksParamsWithTimeout creates a new ListRetentionTasksParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListRetentionTasksParams) SetContext

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

SetContext adds the context to the list retention tasks params

func (*ListRetentionTasksParams) SetEid

func (o *ListRetentionTasksParams) SetEid(eid int64)

SetEid adds the eid to the list retention tasks params

func (*ListRetentionTasksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list retention tasks params

func (*ListRetentionTasksParams) SetID

func (o *ListRetentionTasksParams) SetID(id int64)

SetID adds the id to the list retention tasks params

func (*ListRetentionTasksParams) SetPage

func (o *ListRetentionTasksParams) SetPage(page *int64)

SetPage adds the page to the list retention tasks params

func (*ListRetentionTasksParams) SetPageSize

func (o *ListRetentionTasksParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list retention tasks params

func (*ListRetentionTasksParams) SetTimeout

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

SetTimeout adds the timeout to the list retention tasks params

func (*ListRetentionTasksParams) SetXRequestID

func (o *ListRetentionTasksParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list retention tasks params

func (*ListRetentionTasksParams) WithContext

WithContext adds the context to the list retention tasks params

func (*ListRetentionTasksParams) WithEid

WithEid adds the eid to the list retention tasks params

func (*ListRetentionTasksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list retention tasks params

func (*ListRetentionTasksParams) WithID

WithID adds the id to the list retention tasks params

func (*ListRetentionTasksParams) WithPage

WithPage adds the page to the list retention tasks params

func (*ListRetentionTasksParams) WithPageSize

func (o *ListRetentionTasksParams) WithPageSize(pageSize *int64) *ListRetentionTasksParams

WithPageSize adds the pageSize to the list retention tasks params

func (*ListRetentionTasksParams) WithTimeout

WithTimeout adds the timeout to the list retention tasks params

func (*ListRetentionTasksParams) WithXRequestID

func (o *ListRetentionTasksParams) WithXRequestID(xRequestID *string) *ListRetentionTasksParams

WithXRequestID adds the xRequestID to the list retention tasks params

func (*ListRetentionTasksParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRetentionTasksReader

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

ListRetentionTasksReader is a Reader for the ListRetentionTasks structure.

func (*ListRetentionTasksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRetentionTasksUnauthorized

type ListRetentionTasksUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRetentionTasksUnauthorized handles this case with default header values.

Unauthorized

func NewListRetentionTasksUnauthorized

func NewListRetentionTasksUnauthorized() *ListRetentionTasksUnauthorized

NewListRetentionTasksUnauthorized creates a ListRetentionTasksUnauthorized with default headers values

func (*ListRetentionTasksUnauthorized) Error

func (*ListRetentionTasksUnauthorized) GetPayload

func (o *ListRetentionTasksUnauthorized) GetPayload() *model.Errors

type OperateRetentionExecutionBody

type OperateRetentionExecutionBody struct {

	// action
	Action string `json:"action,omitempty"`
}

OperateRetentionExecutionBody operate retention execution body swagger:model OperateRetentionExecutionBody

func (*OperateRetentionExecutionBody) MarshalBinary

func (o *OperateRetentionExecutionBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OperateRetentionExecutionBody) UnmarshalBinary

func (o *OperateRetentionExecutionBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OperateRetentionExecutionBody) Validate

func (o *OperateRetentionExecutionBody) Validate(formats strfmt.Registry) error

Validate validates this operate retention execution body

type OperateRetentionExecutionForbidden

type OperateRetentionExecutionForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

OperateRetentionExecutionForbidden handles this case with default header values.

Forbidden

func NewOperateRetentionExecutionForbidden

func NewOperateRetentionExecutionForbidden() *OperateRetentionExecutionForbidden

NewOperateRetentionExecutionForbidden creates a OperateRetentionExecutionForbidden with default headers values

func (*OperateRetentionExecutionForbidden) Error

func (*OperateRetentionExecutionForbidden) GetPayload

type OperateRetentionExecutionInternalServerError

type OperateRetentionExecutionInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

OperateRetentionExecutionInternalServerError handles this case with default header values.

Internal server error

func NewOperateRetentionExecutionInternalServerError

func NewOperateRetentionExecutionInternalServerError() *OperateRetentionExecutionInternalServerError

NewOperateRetentionExecutionInternalServerError creates a OperateRetentionExecutionInternalServerError with default headers values

func (*OperateRetentionExecutionInternalServerError) Error

func (*OperateRetentionExecutionInternalServerError) GetPayload

type OperateRetentionExecutionOK

type OperateRetentionExecutionOK struct {
}

OperateRetentionExecutionOK handles this case with default header values.

Stop a Retention job successfully.

func NewOperateRetentionExecutionOK

func NewOperateRetentionExecutionOK() *OperateRetentionExecutionOK

NewOperateRetentionExecutionOK creates a OperateRetentionExecutionOK with default headers values

func (*OperateRetentionExecutionOK) Error

type OperateRetentionExecutionParams

type OperateRetentionExecutionParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Body
	  The action, only support "stop" now.

	*/
	Body OperateRetentionExecutionBody
	/*Eid
	  Retention execution ID.

	*/
	Eid int64
	/*ID
	  Retention ID.

	*/
	ID int64

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

OperateRetentionExecutionParams contains all the parameters to send to the API endpoint for the operate retention execution operation typically these are written to a http.Request

func NewOperateRetentionExecutionParams

func NewOperateRetentionExecutionParams() *OperateRetentionExecutionParams

NewOperateRetentionExecutionParams creates a new OperateRetentionExecutionParams object with the default values initialized.

func NewOperateRetentionExecutionParamsWithContext

func NewOperateRetentionExecutionParamsWithContext(ctx context.Context) *OperateRetentionExecutionParams

NewOperateRetentionExecutionParamsWithContext creates a new OperateRetentionExecutionParams object with the default values initialized, and the ability to set a context for a request

func NewOperateRetentionExecutionParamsWithHTTPClient

func NewOperateRetentionExecutionParamsWithHTTPClient(client *http.Client) *OperateRetentionExecutionParams

NewOperateRetentionExecutionParamsWithHTTPClient creates a new OperateRetentionExecutionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOperateRetentionExecutionParamsWithTimeout

func NewOperateRetentionExecutionParamsWithTimeout(timeout time.Duration) *OperateRetentionExecutionParams

NewOperateRetentionExecutionParamsWithTimeout creates a new OperateRetentionExecutionParams object with the default values initialized, and the ability to set a timeout on a request

func (*OperateRetentionExecutionParams) SetBody

SetBody adds the body to the operate retention execution params

func (*OperateRetentionExecutionParams) SetContext

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

SetContext adds the context to the operate retention execution params

func (*OperateRetentionExecutionParams) SetEid

func (o *OperateRetentionExecutionParams) SetEid(eid int64)

SetEid adds the eid to the operate retention execution params

func (*OperateRetentionExecutionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the operate retention execution params

func (*OperateRetentionExecutionParams) SetID

SetID adds the id to the operate retention execution params

func (*OperateRetentionExecutionParams) SetTimeout

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

SetTimeout adds the timeout to the operate retention execution params

func (*OperateRetentionExecutionParams) SetXRequestID

func (o *OperateRetentionExecutionParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the operate retention execution params

func (*OperateRetentionExecutionParams) WithBody

WithBody adds the body to the operate retention execution params

func (*OperateRetentionExecutionParams) WithContext

WithContext adds the context to the operate retention execution params

func (*OperateRetentionExecutionParams) WithEid

WithEid adds the eid to the operate retention execution params

func (*OperateRetentionExecutionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the operate retention execution params

func (*OperateRetentionExecutionParams) WithID

WithID adds the id to the operate retention execution params

func (*OperateRetentionExecutionParams) WithTimeout

WithTimeout adds the timeout to the operate retention execution params

func (*OperateRetentionExecutionParams) WithXRequestID

WithXRequestID adds the xRequestID to the operate retention execution params

func (*OperateRetentionExecutionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OperateRetentionExecutionReader

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

OperateRetentionExecutionReader is a Reader for the OperateRetentionExecution structure.

func (*OperateRetentionExecutionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OperateRetentionExecutionUnauthorized

type OperateRetentionExecutionUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

OperateRetentionExecutionUnauthorized handles this case with default header values.

Unauthorized

func NewOperateRetentionExecutionUnauthorized

func NewOperateRetentionExecutionUnauthorized() *OperateRetentionExecutionUnauthorized

NewOperateRetentionExecutionUnauthorized creates a OperateRetentionExecutionUnauthorized with default headers values

func (*OperateRetentionExecutionUnauthorized) Error

func (*OperateRetentionExecutionUnauthorized) GetPayload

type TriggerRetentionExecutionBody

type TriggerRetentionExecutionBody struct {

	// dry run
	DryRun bool `json:"dry_run,omitempty"`
}

TriggerRetentionExecutionBody trigger retention execution body swagger:model TriggerRetentionExecutionBody

func (*TriggerRetentionExecutionBody) MarshalBinary

func (o *TriggerRetentionExecutionBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TriggerRetentionExecutionBody) UnmarshalBinary

func (o *TriggerRetentionExecutionBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TriggerRetentionExecutionBody) Validate

func (o *TriggerRetentionExecutionBody) Validate(formats strfmt.Registry) error

Validate validates this trigger retention execution body

type TriggerRetentionExecutionCreated

type TriggerRetentionExecutionCreated struct {
	/*The location of the resource
	 */
	Location string
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

TriggerRetentionExecutionCreated handles this case with default header values.

Created

func NewTriggerRetentionExecutionCreated

func NewTriggerRetentionExecutionCreated() *TriggerRetentionExecutionCreated

NewTriggerRetentionExecutionCreated creates a TriggerRetentionExecutionCreated with default headers values

func (*TriggerRetentionExecutionCreated) Error

type TriggerRetentionExecutionForbidden

type TriggerRetentionExecutionForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

TriggerRetentionExecutionForbidden handles this case with default header values.

Forbidden

func NewTriggerRetentionExecutionForbidden

func NewTriggerRetentionExecutionForbidden() *TriggerRetentionExecutionForbidden

NewTriggerRetentionExecutionForbidden creates a TriggerRetentionExecutionForbidden with default headers values

func (*TriggerRetentionExecutionForbidden) Error

func (*TriggerRetentionExecutionForbidden) GetPayload

type TriggerRetentionExecutionInternalServerError

type TriggerRetentionExecutionInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

TriggerRetentionExecutionInternalServerError handles this case with default header values.

Internal server error

func NewTriggerRetentionExecutionInternalServerError

func NewTriggerRetentionExecutionInternalServerError() *TriggerRetentionExecutionInternalServerError

NewTriggerRetentionExecutionInternalServerError creates a TriggerRetentionExecutionInternalServerError with default headers values

func (*TriggerRetentionExecutionInternalServerError) Error

func (*TriggerRetentionExecutionInternalServerError) GetPayload

type TriggerRetentionExecutionOK

type TriggerRetentionExecutionOK struct {
}

TriggerRetentionExecutionOK handles this case with default header values.

Trigger a Retention job successfully.

func NewTriggerRetentionExecutionOK

func NewTriggerRetentionExecutionOK() *TriggerRetentionExecutionOK

NewTriggerRetentionExecutionOK creates a TriggerRetentionExecutionOK with default headers values

func (*TriggerRetentionExecutionOK) Error

type TriggerRetentionExecutionParams

type TriggerRetentionExecutionParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Body*/
	Body TriggerRetentionExecutionBody
	/*ID
	  Retention ID.

	*/
	ID int64

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

TriggerRetentionExecutionParams contains all the parameters to send to the API endpoint for the trigger retention execution operation typically these are written to a http.Request

func NewTriggerRetentionExecutionParams

func NewTriggerRetentionExecutionParams() *TriggerRetentionExecutionParams

NewTriggerRetentionExecutionParams creates a new TriggerRetentionExecutionParams object with the default values initialized.

func NewTriggerRetentionExecutionParamsWithContext

func NewTriggerRetentionExecutionParamsWithContext(ctx context.Context) *TriggerRetentionExecutionParams

NewTriggerRetentionExecutionParamsWithContext creates a new TriggerRetentionExecutionParams object with the default values initialized, and the ability to set a context for a request

func NewTriggerRetentionExecutionParamsWithHTTPClient

func NewTriggerRetentionExecutionParamsWithHTTPClient(client *http.Client) *TriggerRetentionExecutionParams

NewTriggerRetentionExecutionParamsWithHTTPClient creates a new TriggerRetentionExecutionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTriggerRetentionExecutionParamsWithTimeout

func NewTriggerRetentionExecutionParamsWithTimeout(timeout time.Duration) *TriggerRetentionExecutionParams

NewTriggerRetentionExecutionParamsWithTimeout creates a new TriggerRetentionExecutionParams object with the default values initialized, and the ability to set a timeout on a request

func (*TriggerRetentionExecutionParams) SetBody

SetBody adds the body to the trigger retention execution params

func (*TriggerRetentionExecutionParams) SetContext

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

SetContext adds the context to the trigger retention execution params

func (*TriggerRetentionExecutionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the trigger retention execution params

func (*TriggerRetentionExecutionParams) SetID

SetID adds the id to the trigger retention execution params

func (*TriggerRetentionExecutionParams) SetTimeout

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

SetTimeout adds the timeout to the trigger retention execution params

func (*TriggerRetentionExecutionParams) SetXRequestID

func (o *TriggerRetentionExecutionParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the trigger retention execution params

func (*TriggerRetentionExecutionParams) WithBody

WithBody adds the body to the trigger retention execution params

func (*TriggerRetentionExecutionParams) WithContext

WithContext adds the context to the trigger retention execution params

func (*TriggerRetentionExecutionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the trigger retention execution params

func (*TriggerRetentionExecutionParams) WithID

WithID adds the id to the trigger retention execution params

func (*TriggerRetentionExecutionParams) WithTimeout

WithTimeout adds the timeout to the trigger retention execution params

func (*TriggerRetentionExecutionParams) WithXRequestID

WithXRequestID adds the xRequestID to the trigger retention execution params

func (*TriggerRetentionExecutionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TriggerRetentionExecutionReader

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

TriggerRetentionExecutionReader is a Reader for the TriggerRetentionExecution structure.

func (*TriggerRetentionExecutionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TriggerRetentionExecutionUnauthorized

type TriggerRetentionExecutionUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

TriggerRetentionExecutionUnauthorized handles this case with default header values.

Unauthorized

func NewTriggerRetentionExecutionUnauthorized

func NewTriggerRetentionExecutionUnauthorized() *TriggerRetentionExecutionUnauthorized

NewTriggerRetentionExecutionUnauthorized creates a TriggerRetentionExecutionUnauthorized with default headers values

func (*TriggerRetentionExecutionUnauthorized) Error

func (*TriggerRetentionExecutionUnauthorized) GetPayload

type UpdateRetentionForbidden

type UpdateRetentionForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRetentionForbidden handles this case with default header values.

Forbidden

func NewUpdateRetentionForbidden

func NewUpdateRetentionForbidden() *UpdateRetentionForbidden

NewUpdateRetentionForbidden creates a UpdateRetentionForbidden with default headers values

func (*UpdateRetentionForbidden) Error

func (o *UpdateRetentionForbidden) Error() string

func (*UpdateRetentionForbidden) GetPayload

func (o *UpdateRetentionForbidden) GetPayload() *model.Errors

type UpdateRetentionInternalServerError

type UpdateRetentionInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRetentionInternalServerError handles this case with default header values.

Internal server error

func NewUpdateRetentionInternalServerError

func NewUpdateRetentionInternalServerError() *UpdateRetentionInternalServerError

NewUpdateRetentionInternalServerError creates a UpdateRetentionInternalServerError with default headers values

func (*UpdateRetentionInternalServerError) Error

func (*UpdateRetentionInternalServerError) GetPayload

type UpdateRetentionOK

type UpdateRetentionOK struct {
}

UpdateRetentionOK handles this case with default header values.

Update Retention Policy successfully.

func NewUpdateRetentionOK

func NewUpdateRetentionOK() *UpdateRetentionOK

NewUpdateRetentionOK creates a UpdateRetentionOK with default headers values

func (*UpdateRetentionOK) Error

func (o *UpdateRetentionOK) Error() string

type UpdateRetentionParams

type UpdateRetentionParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ID
	  Retention ID.

	*/
	ID int64
	/*Policy*/
	Policy *model.RetentionPolicy

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

UpdateRetentionParams contains all the parameters to send to the API endpoint for the update retention operation typically these are written to a http.Request

func NewUpdateRetentionParams

func NewUpdateRetentionParams() *UpdateRetentionParams

NewUpdateRetentionParams creates a new UpdateRetentionParams object with the default values initialized.

func NewUpdateRetentionParamsWithContext

func NewUpdateRetentionParamsWithContext(ctx context.Context) *UpdateRetentionParams

NewUpdateRetentionParamsWithContext creates a new UpdateRetentionParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateRetentionParamsWithHTTPClient

func NewUpdateRetentionParamsWithHTTPClient(client *http.Client) *UpdateRetentionParams

NewUpdateRetentionParamsWithHTTPClient creates a new UpdateRetentionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateRetentionParamsWithTimeout

func NewUpdateRetentionParamsWithTimeout(timeout time.Duration) *UpdateRetentionParams

NewUpdateRetentionParamsWithTimeout creates a new UpdateRetentionParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateRetentionParams) SetContext

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

SetContext adds the context to the update retention params

func (*UpdateRetentionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update retention params

func (*UpdateRetentionParams) SetID

func (o *UpdateRetentionParams) SetID(id int64)

SetID adds the id to the update retention params

func (*UpdateRetentionParams) SetPolicy

func (o *UpdateRetentionParams) SetPolicy(policy *model.RetentionPolicy)

SetPolicy adds the policy to the update retention params

func (*UpdateRetentionParams) SetTimeout

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

SetTimeout adds the timeout to the update retention params

func (*UpdateRetentionParams) SetXRequestID

func (o *UpdateRetentionParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update retention params

func (*UpdateRetentionParams) WithContext

WithContext adds the context to the update retention params

func (*UpdateRetentionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update retention params

func (*UpdateRetentionParams) WithID

WithID adds the id to the update retention params

func (*UpdateRetentionParams) WithPolicy

WithPolicy adds the policy to the update retention params

func (*UpdateRetentionParams) WithTimeout

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

WithTimeout adds the timeout to the update retention params

func (*UpdateRetentionParams) WithXRequestID

func (o *UpdateRetentionParams) WithXRequestID(xRequestID *string) *UpdateRetentionParams

WithXRequestID adds the xRequestID to the update retention params

func (*UpdateRetentionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRetentionReader

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

UpdateRetentionReader is a Reader for the UpdateRetention structure.

func (*UpdateRetentionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRetentionUnauthorized

type UpdateRetentionUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRetentionUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateRetentionUnauthorized

func NewUpdateRetentionUnauthorized() *UpdateRetentionUnauthorized

NewUpdateRetentionUnauthorized creates a UpdateRetentionUnauthorized with default headers values

func (*UpdateRetentionUnauthorized) Error

func (*UpdateRetentionUnauthorized) GetPayload

func (o *UpdateRetentionUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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