retention

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRetentionBadRequestCode int = 400

CreateRetentionBadRequestCode is the HTTP code returned for type CreateRetentionBadRequest

View Source
const CreateRetentionCreatedCode int = 201

CreateRetentionCreatedCode is the HTTP code returned for type CreateRetentionCreated

View Source
const CreateRetentionForbiddenCode int = 403

CreateRetentionForbiddenCode is the HTTP code returned for type CreateRetentionForbidden

View Source
const CreateRetentionInternalServerErrorCode int = 500

CreateRetentionInternalServerErrorCode is the HTTP code returned for type CreateRetentionInternalServerError

View Source
const CreateRetentionUnauthorizedCode int = 401

CreateRetentionUnauthorizedCode is the HTTP code returned for type CreateRetentionUnauthorized

View Source
const GetRentenitionMetadataOKCode int = 200

GetRentenitionMetadataOKCode is the HTTP code returned for type GetRentenitionMetadataOK

View Source
const GetRetentionForbiddenCode int = 403

GetRetentionForbiddenCode is the HTTP code returned for type GetRetentionForbidden

View Source
const GetRetentionInternalServerErrorCode int = 500

GetRetentionInternalServerErrorCode is the HTTP code returned for type GetRetentionInternalServerError

View Source
const GetRetentionOKCode int = 200

GetRetentionOKCode is the HTTP code returned for type GetRetentionOK

View Source
const GetRetentionTaskLogForbiddenCode int = 403

GetRetentionTaskLogForbiddenCode is the HTTP code returned for type GetRetentionTaskLogForbidden

View Source
const GetRetentionTaskLogInternalServerErrorCode int = 500

GetRetentionTaskLogInternalServerErrorCode is the HTTP code returned for type GetRetentionTaskLogInternalServerError

View Source
const GetRetentionTaskLogOKCode int = 200

GetRetentionTaskLogOKCode is the HTTP code returned for type GetRetentionTaskLogOK

View Source
const GetRetentionTaskLogUnauthorizedCode int = 401

GetRetentionTaskLogUnauthorizedCode is the HTTP code returned for type GetRetentionTaskLogUnauthorized

View Source
const GetRetentionUnauthorizedCode int = 401

GetRetentionUnauthorizedCode is the HTTP code returned for type GetRetentionUnauthorized

View Source
const ListRetentionExecutionsForbiddenCode int = 403

ListRetentionExecutionsForbiddenCode is the HTTP code returned for type ListRetentionExecutionsForbidden

View Source
const ListRetentionExecutionsInternalServerErrorCode int = 500

ListRetentionExecutionsInternalServerErrorCode is the HTTP code returned for type ListRetentionExecutionsInternalServerError

View Source
const ListRetentionExecutionsOKCode int = 200

ListRetentionExecutionsOKCode is the HTTP code returned for type ListRetentionExecutionsOK

View Source
const ListRetentionExecutionsUnauthorizedCode int = 401

ListRetentionExecutionsUnauthorizedCode is the HTTP code returned for type ListRetentionExecutionsUnauthorized

View Source
const ListRetentionTasksForbiddenCode int = 403

ListRetentionTasksForbiddenCode is the HTTP code returned for type ListRetentionTasksForbidden

View Source
const ListRetentionTasksInternalServerErrorCode int = 500

ListRetentionTasksInternalServerErrorCode is the HTTP code returned for type ListRetentionTasksInternalServerError

View Source
const ListRetentionTasksOKCode int = 200

ListRetentionTasksOKCode is the HTTP code returned for type ListRetentionTasksOK

View Source
const ListRetentionTasksUnauthorizedCode int = 401

ListRetentionTasksUnauthorizedCode is the HTTP code returned for type ListRetentionTasksUnauthorized

View Source
const OperateRetentionExecutionForbiddenCode int = 403

OperateRetentionExecutionForbiddenCode is the HTTP code returned for type OperateRetentionExecutionForbidden

View Source
const OperateRetentionExecutionInternalServerErrorCode int = 500

OperateRetentionExecutionInternalServerErrorCode is the HTTP code returned for type OperateRetentionExecutionInternalServerError

View Source
const OperateRetentionExecutionOKCode int = 200

OperateRetentionExecutionOKCode is the HTTP code returned for type OperateRetentionExecutionOK

View Source
const OperateRetentionExecutionUnauthorizedCode int = 401

OperateRetentionExecutionUnauthorizedCode is the HTTP code returned for type OperateRetentionExecutionUnauthorized

View Source
const TriggerRetentionExecutionCreatedCode int = 201

TriggerRetentionExecutionCreatedCode is the HTTP code returned for type TriggerRetentionExecutionCreated

View Source
const TriggerRetentionExecutionForbiddenCode int = 403

TriggerRetentionExecutionForbiddenCode is the HTTP code returned for type TriggerRetentionExecutionForbidden

View Source
const TriggerRetentionExecutionInternalServerErrorCode int = 500

TriggerRetentionExecutionInternalServerErrorCode is the HTTP code returned for type TriggerRetentionExecutionInternalServerError

View Source
const TriggerRetentionExecutionOKCode int = 200

TriggerRetentionExecutionOKCode is the HTTP code returned for type TriggerRetentionExecutionOK

View Source
const TriggerRetentionExecutionUnauthorizedCode int = 401

TriggerRetentionExecutionUnauthorizedCode is the HTTP code returned for type TriggerRetentionExecutionUnauthorized

View Source
const UpdateRetentionForbiddenCode int = 403

UpdateRetentionForbiddenCode is the HTTP code returned for type UpdateRetentionForbidden

View Source
const UpdateRetentionInternalServerErrorCode int = 500

UpdateRetentionInternalServerErrorCode is the HTTP code returned for type UpdateRetentionInternalServerError

View Source
const UpdateRetentionOKCode int = 200

UpdateRetentionOKCode is the HTTP code returned for type UpdateRetentionOK

View Source
const UpdateRetentionUnauthorizedCode int = 401

UpdateRetentionUnauthorizedCode is the HTTP code returned for type UpdateRetentionUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRetention

type CreateRetention struct {
	Context *middleware.Context
	Handler CreateRetentionHandler
}

CreateRetention swagger:route POST /retentions Retention createRetention

Create 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 NewCreateRetention

func NewCreateRetention(ctx *middleware.Context, handler CreateRetentionHandler) *CreateRetention

NewCreateRetention creates a new http.Handler for the create retention operation

func (*CreateRetention) ServeHTTP

func (o *CreateRetention) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateRetentionBadRequest

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateRetentionBadRequest Bad request

swagger:response createRetentionBadRequest

func NewCreateRetentionBadRequest

func NewCreateRetentionBadRequest() *CreateRetentionBadRequest

NewCreateRetentionBadRequest creates CreateRetentionBadRequest with default headers values

func (*CreateRetentionBadRequest) SetPayload

func (o *CreateRetentionBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create retention bad request response

func (*CreateRetentionBadRequest) SetXRequestID

func (o *CreateRetentionBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create retention bad request response

func (*CreateRetentionBadRequest) WithPayload

WithPayload adds the payload to the create retention bad request response

func (*CreateRetentionBadRequest) WithXRequestID

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

WithXRequestID adds the xRequestId to the create retention bad request response

func (*CreateRetentionBadRequest) WriteResponse

func (o *CreateRetentionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRetentionCreated

type CreateRetentionCreated struct {
	/*The location of the resource

	 */
	Location string `json:"Location"`
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

CreateRetentionCreated Created

swagger:response createRetentionCreated

func NewCreateRetentionCreated

func NewCreateRetentionCreated() *CreateRetentionCreated

NewCreateRetentionCreated creates CreateRetentionCreated with default headers values

func (*CreateRetentionCreated) SetLocation

func (o *CreateRetentionCreated) SetLocation(location string)

SetLocation sets the location to the create retention created response

func (*CreateRetentionCreated) SetXRequestID

func (o *CreateRetentionCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create retention created response

func (*CreateRetentionCreated) WithLocation

func (o *CreateRetentionCreated) WithLocation(location string) *CreateRetentionCreated

WithLocation adds the location to the create retention created response

func (*CreateRetentionCreated) WithXRequestID

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

WithXRequestID adds the xRequestId to the create retention created response

func (*CreateRetentionCreated) WriteResponse

func (o *CreateRetentionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRetentionForbidden

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateRetentionForbidden Forbidden

swagger:response createRetentionForbidden

func NewCreateRetentionForbidden

func NewCreateRetentionForbidden() *CreateRetentionForbidden

NewCreateRetentionForbidden creates CreateRetentionForbidden with default headers values

func (*CreateRetentionForbidden) SetPayload

func (o *CreateRetentionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create retention forbidden response

func (*CreateRetentionForbidden) SetXRequestID

func (o *CreateRetentionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create retention forbidden response

func (*CreateRetentionForbidden) WithPayload

WithPayload adds the payload to the create retention forbidden response

func (*CreateRetentionForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the create retention forbidden response

func (*CreateRetentionForbidden) WriteResponse

func (o *CreateRetentionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRetentionHandler

type CreateRetentionHandler interface {
	Handle(CreateRetentionParams, interface{}) middleware.Responder
}

CreateRetentionHandler interface for that can handle valid create retention params

type CreateRetentionHandlerFunc

type CreateRetentionHandlerFunc func(CreateRetentionParams, interface{}) middleware.Responder

CreateRetentionHandlerFunc turns a function with the right signature into a create retention handler

func (CreateRetentionHandlerFunc) Handle

func (fn CreateRetentionHandlerFunc) Handle(params CreateRetentionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateRetentionInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateRetentionInternalServerError Internal server error

swagger:response createRetentionInternalServerError

func NewCreateRetentionInternalServerError

func NewCreateRetentionInternalServerError() *CreateRetentionInternalServerError

NewCreateRetentionInternalServerError creates CreateRetentionInternalServerError with default headers values

func (*CreateRetentionInternalServerError) SetPayload

func (o *CreateRetentionInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create retention internal server error response

func (*CreateRetentionInternalServerError) SetXRequestID

func (o *CreateRetentionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create retention internal server error response

func (*CreateRetentionInternalServerError) WithPayload

WithPayload adds the payload to the create retention internal server error response

func (*CreateRetentionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the create retention internal server error response

func (*CreateRetentionInternalServerError) WriteResponse

WriteResponse to the client

type CreateRetentionParams

type CreateRetentionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Create Retention Policy successfully.
	  Required: true
	  In: body
	*/
	Policy *models.RetentionPolicy
}

CreateRetentionParams contains all the bound params for the create retention operation typically these are obtained from a http.Request

swagger:parameters createRetention

func NewCreateRetentionParams

func NewCreateRetentionParams() CreateRetentionParams

NewCreateRetentionParams creates a new CreateRetentionParams object no default values defined in spec.

func (*CreateRetentionParams) BindRequest

func (o *CreateRetentionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateRetentionParams() beforehand.

type CreateRetentionURL

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

CreateRetentionURL generates an URL for the create retention operation

func (*CreateRetentionURL) Build

func (o *CreateRetentionURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateRetentionURL) BuildFull

func (o *CreateRetentionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateRetentionURL) Must

func (o *CreateRetentionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateRetentionURL) SetBasePath

func (o *CreateRetentionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateRetentionURL) String

func (o *CreateRetentionURL) String() string

String returns the string representation of the path with query string

func (*CreateRetentionURL) StringFull

func (o *CreateRetentionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateRetentionURL) WithBasePath

func (o *CreateRetentionURL) WithBasePath(bp string) *CreateRetentionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateRetentionUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

CreateRetentionUnauthorized Unauthorized

swagger:response createRetentionUnauthorized

func NewCreateRetentionUnauthorized

func NewCreateRetentionUnauthorized() *CreateRetentionUnauthorized

NewCreateRetentionUnauthorized creates CreateRetentionUnauthorized with default headers values

func (*CreateRetentionUnauthorized) SetPayload

func (o *CreateRetentionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the create retention unauthorized response

func (*CreateRetentionUnauthorized) SetXRequestID

func (o *CreateRetentionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create retention unauthorized response

func (*CreateRetentionUnauthorized) WithPayload

WithPayload adds the payload to the create retention unauthorized response

func (*CreateRetentionUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the create retention unauthorized response

func (*CreateRetentionUnauthorized) WriteResponse

func (o *CreateRetentionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRentenitionMetadata

type GetRentenitionMetadata struct {
	Context *middleware.Context
	Handler GetRentenitionMetadataHandler
}

GetRentenitionMetadata swagger:route GET /retentions/metadatas Retention getRentenitionMetadata

Get Retention Metadatas

Get Retention Metadatas.

func NewGetRentenitionMetadata

func NewGetRentenitionMetadata(ctx *middleware.Context, handler GetRentenitionMetadataHandler) *GetRentenitionMetadata

NewGetRentenitionMetadata creates a new http.Handler for the get rentenition metadata operation

func (*GetRentenitionMetadata) ServeHTTP

func (o *GetRentenitionMetadata) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRentenitionMetadataHandler

type GetRentenitionMetadataHandler interface {
	Handle(GetRentenitionMetadataParams, interface{}) middleware.Responder
}

GetRentenitionMetadataHandler interface for that can handle valid get rentenition metadata params

type GetRentenitionMetadataHandlerFunc

type GetRentenitionMetadataHandlerFunc func(GetRentenitionMetadataParams, interface{}) middleware.Responder

GetRentenitionMetadataHandlerFunc turns a function with the right signature into a get rentenition metadata handler

func (GetRentenitionMetadataHandlerFunc) Handle

Handle executing the request and returning a response

type GetRentenitionMetadataOK

type GetRentenitionMetadataOK struct {

	/*
	  In: Body
	*/
	Payload *models.RetentionMetadata `json:"body,omitempty"`
}

GetRentenitionMetadataOK Get Retention Metadatas successfully.

swagger:response getRentenitionMetadataOK

func NewGetRentenitionMetadataOK

func NewGetRentenitionMetadataOK() *GetRentenitionMetadataOK

NewGetRentenitionMetadataOK creates GetRentenitionMetadataOK with default headers values

func (*GetRentenitionMetadataOK) SetPayload

func (o *GetRentenitionMetadataOK) SetPayload(payload *models.RetentionMetadata)

SetPayload sets the payload to the get rentenition metadata o k response

func (*GetRentenitionMetadataOK) WithPayload

WithPayload adds the payload to the get rentenition metadata o k response

func (*GetRentenitionMetadataOK) WriteResponse

func (o *GetRentenitionMetadataOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRentenitionMetadataParams

type GetRentenitionMetadataParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetRentenitionMetadataParams contains all the bound params for the get rentenition metadata operation typically these are obtained from a http.Request

swagger:parameters getRentenitionMetadata

func NewGetRentenitionMetadataParams

func NewGetRentenitionMetadataParams() GetRentenitionMetadataParams

NewGetRentenitionMetadataParams creates a new GetRentenitionMetadataParams object no default values defined in spec.

func (*GetRentenitionMetadataParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRentenitionMetadataParams() beforehand.

type GetRentenitionMetadataURL

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

GetRentenitionMetadataURL generates an URL for the get rentenition metadata operation

func (*GetRentenitionMetadataURL) Build

func (o *GetRentenitionMetadataURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRentenitionMetadataURL) BuildFull

func (o *GetRentenitionMetadataURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRentenitionMetadataURL) Must

func (o *GetRentenitionMetadataURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRentenitionMetadataURL) SetBasePath

func (o *GetRentenitionMetadataURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRentenitionMetadataURL) String

func (o *GetRentenitionMetadataURL) String() string

String returns the string representation of the path with query string

func (*GetRentenitionMetadataURL) StringFull

func (o *GetRentenitionMetadataURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRentenitionMetadataURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRetention

type GetRetention struct {
	Context *middleware.Context
	Handler GetRetentionHandler
}

GetRetention swagger:route GET /retentions/{id} Retention getRetention

Get Retention Policy

Get Retention Policy.

func NewGetRetention

func NewGetRetention(ctx *middleware.Context, handler GetRetentionHandler) *GetRetention

NewGetRetention creates a new http.Handler for the get retention operation

func (*GetRetention) ServeHTTP

func (o *GetRetention) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRetentionForbidden

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetRetentionForbidden Forbidden

swagger:response getRetentionForbidden

func NewGetRetentionForbidden

func NewGetRetentionForbidden() *GetRetentionForbidden

NewGetRetentionForbidden creates GetRetentionForbidden with default headers values

func (*GetRetentionForbidden) SetPayload

func (o *GetRetentionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get retention forbidden response

func (*GetRetentionForbidden) SetXRequestID

func (o *GetRetentionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get retention forbidden response

func (*GetRetentionForbidden) WithPayload

func (o *GetRetentionForbidden) WithPayload(payload *models.Errors) *GetRetentionForbidden

WithPayload adds the payload to the get retention forbidden response

func (*GetRetentionForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the get retention forbidden response

func (*GetRetentionForbidden) WriteResponse

func (o *GetRetentionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRetentionHandler

type GetRetentionHandler interface {
	Handle(GetRetentionParams, interface{}) middleware.Responder
}

GetRetentionHandler interface for that can handle valid get retention params

type GetRetentionHandlerFunc

type GetRetentionHandlerFunc func(GetRetentionParams, interface{}) middleware.Responder

GetRetentionHandlerFunc turns a function with the right signature into a get retention handler

func (GetRetentionHandlerFunc) Handle

func (fn GetRetentionHandlerFunc) Handle(params GetRetentionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetRetentionInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetRetentionInternalServerError Internal server error

swagger:response getRetentionInternalServerError

func NewGetRetentionInternalServerError

func NewGetRetentionInternalServerError() *GetRetentionInternalServerError

NewGetRetentionInternalServerError creates GetRetentionInternalServerError with default headers values

func (*GetRetentionInternalServerError) SetPayload

func (o *GetRetentionInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get retention internal server error response

func (*GetRetentionInternalServerError) SetXRequestID

func (o *GetRetentionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get retention internal server error response

func (*GetRetentionInternalServerError) WithPayload

WithPayload adds the payload to the get retention internal server error response

func (*GetRetentionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get retention internal server error response

func (*GetRetentionInternalServerError) WriteResponse

func (o *GetRetentionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRetentionOK

type GetRetentionOK struct {

	/*
	  In: Body
	*/
	Payload *models.RetentionPolicy `json:"body,omitempty"`
}

GetRetentionOK Get Retention Policy successfully.

swagger:response getRetentionOK

func NewGetRetentionOK

func NewGetRetentionOK() *GetRetentionOK

NewGetRetentionOK creates GetRetentionOK with default headers values

func (*GetRetentionOK) SetPayload

func (o *GetRetentionOK) SetPayload(payload *models.RetentionPolicy)

SetPayload sets the payload to the get retention o k response

func (*GetRetentionOK) WithPayload

func (o *GetRetentionOK) WithPayload(payload *models.RetentionPolicy) *GetRetentionOK

WithPayload adds the payload to the get retention o k response

func (*GetRetentionOK) WriteResponse

func (o *GetRetentionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRetentionParams

type GetRetentionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Retention ID.
	  Required: true
	  In: path
	*/
	ID int64
}

GetRetentionParams contains all the bound params for the get retention operation typically these are obtained from a http.Request

swagger:parameters getRetention

func NewGetRetentionParams

func NewGetRetentionParams() GetRetentionParams

NewGetRetentionParams creates a new GetRetentionParams object no default values defined in spec.

func (*GetRetentionParams) BindRequest

func (o *GetRetentionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRetentionParams() beforehand.

type GetRetentionTaskLog

type GetRetentionTaskLog struct {
	Context *middleware.Context
	Handler GetRetentionTaskLogHandler
}

GetRetentionTaskLog swagger:route GET /retentions/{id}/executions/{eid}/tasks/{tid} Retention getRetentionTaskLog

Get Retention job task log

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

func NewGetRetentionTaskLog

func NewGetRetentionTaskLog(ctx *middleware.Context, handler GetRetentionTaskLogHandler) *GetRetentionTaskLog

NewGetRetentionTaskLog creates a new http.Handler for the get retention task log operation

func (*GetRetentionTaskLog) ServeHTTP

func (o *GetRetentionTaskLog) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRetentionTaskLogForbidden

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetRetentionTaskLogForbidden Forbidden

swagger:response getRetentionTaskLogForbidden

func NewGetRetentionTaskLogForbidden

func NewGetRetentionTaskLogForbidden() *GetRetentionTaskLogForbidden

NewGetRetentionTaskLogForbidden creates GetRetentionTaskLogForbidden with default headers values

func (*GetRetentionTaskLogForbidden) SetPayload

func (o *GetRetentionTaskLogForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get retention task log forbidden response

func (*GetRetentionTaskLogForbidden) SetXRequestID

func (o *GetRetentionTaskLogForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get retention task log forbidden response

func (*GetRetentionTaskLogForbidden) WithPayload

WithPayload adds the payload to the get retention task log forbidden response

func (*GetRetentionTaskLogForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the get retention task log forbidden response

func (*GetRetentionTaskLogForbidden) WriteResponse

func (o *GetRetentionTaskLogForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRetentionTaskLogHandler

type GetRetentionTaskLogHandler interface {
	Handle(GetRetentionTaskLogParams, interface{}) middleware.Responder
}

GetRetentionTaskLogHandler interface for that can handle valid get retention task log params

type GetRetentionTaskLogHandlerFunc

type GetRetentionTaskLogHandlerFunc func(GetRetentionTaskLogParams, interface{}) middleware.Responder

GetRetentionTaskLogHandlerFunc turns a function with the right signature into a get retention task log handler

func (GetRetentionTaskLogHandlerFunc) Handle

func (fn GetRetentionTaskLogHandlerFunc) Handle(params GetRetentionTaskLogParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetRetentionTaskLogInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetRetentionTaskLogInternalServerError Internal server error

swagger:response getRetentionTaskLogInternalServerError

func NewGetRetentionTaskLogInternalServerError

func NewGetRetentionTaskLogInternalServerError() *GetRetentionTaskLogInternalServerError

NewGetRetentionTaskLogInternalServerError creates GetRetentionTaskLogInternalServerError with default headers values

func (*GetRetentionTaskLogInternalServerError) SetPayload

func (o *GetRetentionTaskLogInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get retention task log internal server error response

func (*GetRetentionTaskLogInternalServerError) SetXRequestID

func (o *GetRetentionTaskLogInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get retention task log internal server error response

func (*GetRetentionTaskLogInternalServerError) WithPayload

WithPayload adds the payload to the get retention task log internal server error response

func (*GetRetentionTaskLogInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the get retention task log internal server error response

func (*GetRetentionTaskLogInternalServerError) WriteResponse

WriteResponse to the client

type GetRetentionTaskLogOK

type GetRetentionTaskLogOK struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetRetentionTaskLogOK Get Retention job task log successfully.

swagger:response getRetentionTaskLogOK

func NewGetRetentionTaskLogOK

func NewGetRetentionTaskLogOK() *GetRetentionTaskLogOK

NewGetRetentionTaskLogOK creates GetRetentionTaskLogOK with default headers values

func (*GetRetentionTaskLogOK) SetPayload

func (o *GetRetentionTaskLogOK) SetPayload(payload string)

SetPayload sets the payload to the get retention task log o k response

func (*GetRetentionTaskLogOK) WithPayload

func (o *GetRetentionTaskLogOK) WithPayload(payload string) *GetRetentionTaskLogOK

WithPayload adds the payload to the get retention task log o k response

func (*GetRetentionTaskLogOK) WriteResponse

func (o *GetRetentionTaskLogOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRetentionTaskLogParams

type GetRetentionTaskLogParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Retention execution ID.
	  Required: true
	  In: path
	*/
	Eid int64
	/*Retention ID.
	  Required: true
	  In: path
	*/
	ID int64
	/*Retention execution ID.
	  Required: true
	  In: path
	*/
	Tid int64
}

GetRetentionTaskLogParams contains all the bound params for the get retention task log operation typically these are obtained from a http.Request

swagger:parameters getRetentionTaskLog

func NewGetRetentionTaskLogParams

func NewGetRetentionTaskLogParams() GetRetentionTaskLogParams

NewGetRetentionTaskLogParams creates a new GetRetentionTaskLogParams object no default values defined in spec.

func (*GetRetentionTaskLogParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRetentionTaskLogParams() beforehand.

type GetRetentionTaskLogURL

type GetRetentionTaskLogURL struct {
	Eid int64
	ID  int64
	Tid int64
	// contains filtered or unexported fields
}

GetRetentionTaskLogURL generates an URL for the get retention task log operation

func (*GetRetentionTaskLogURL) Build

func (o *GetRetentionTaskLogURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRetentionTaskLogURL) BuildFull

func (o *GetRetentionTaskLogURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRetentionTaskLogURL) Must

func (o *GetRetentionTaskLogURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRetentionTaskLogURL) SetBasePath

func (o *GetRetentionTaskLogURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRetentionTaskLogURL) String

func (o *GetRetentionTaskLogURL) String() string

String returns the string representation of the path with query string

func (*GetRetentionTaskLogURL) StringFull

func (o *GetRetentionTaskLogURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRetentionTaskLogURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRetentionTaskLogUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetRetentionTaskLogUnauthorized Unauthorized

swagger:response getRetentionTaskLogUnauthorized

func NewGetRetentionTaskLogUnauthorized

func NewGetRetentionTaskLogUnauthorized() *GetRetentionTaskLogUnauthorized

NewGetRetentionTaskLogUnauthorized creates GetRetentionTaskLogUnauthorized with default headers values

func (*GetRetentionTaskLogUnauthorized) SetPayload

func (o *GetRetentionTaskLogUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get retention task log unauthorized response

func (*GetRetentionTaskLogUnauthorized) SetXRequestID

func (o *GetRetentionTaskLogUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get retention task log unauthorized response

func (*GetRetentionTaskLogUnauthorized) WithPayload

WithPayload adds the payload to the get retention task log unauthorized response

func (*GetRetentionTaskLogUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the get retention task log unauthorized response

func (*GetRetentionTaskLogUnauthorized) WriteResponse

func (o *GetRetentionTaskLogUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRetentionURL

type GetRetentionURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetRetentionURL generates an URL for the get retention operation

func (*GetRetentionURL) Build

func (o *GetRetentionURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRetentionURL) BuildFull

func (o *GetRetentionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRetentionURL) Must

func (o *GetRetentionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRetentionURL) SetBasePath

func (o *GetRetentionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRetentionURL) String

func (o *GetRetentionURL) String() string

String returns the string representation of the path with query string

func (*GetRetentionURL) StringFull

func (o *GetRetentionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRetentionURL) WithBasePath

func (o *GetRetentionURL) WithBasePath(bp string) *GetRetentionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRetentionUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

GetRetentionUnauthorized Unauthorized

swagger:response getRetentionUnauthorized

func NewGetRetentionUnauthorized

func NewGetRetentionUnauthorized() *GetRetentionUnauthorized

NewGetRetentionUnauthorized creates GetRetentionUnauthorized with default headers values

func (*GetRetentionUnauthorized) SetPayload

func (o *GetRetentionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the get retention unauthorized response

func (*GetRetentionUnauthorized) SetXRequestID

func (o *GetRetentionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get retention unauthorized response

func (*GetRetentionUnauthorized) WithPayload

WithPayload adds the payload to the get retention unauthorized response

func (*GetRetentionUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the get retention unauthorized response

func (*GetRetentionUnauthorized) WriteResponse

func (o *GetRetentionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListRetentionExecutions

type ListRetentionExecutions struct {
	Context *middleware.Context
	Handler ListRetentionExecutionsHandler
}

ListRetentionExecutions swagger:route GET /retentions/{id}/executions Retention listRetentionExecutions

Get Retention executions

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

func NewListRetentionExecutions

func NewListRetentionExecutions(ctx *middleware.Context, handler ListRetentionExecutionsHandler) *ListRetentionExecutions

NewListRetentionExecutions creates a new http.Handler for the list retention executions operation

func (*ListRetentionExecutions) ServeHTTP

type ListRetentionExecutionsForbidden

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListRetentionExecutionsForbidden Forbidden

swagger:response listRetentionExecutionsForbidden

func NewListRetentionExecutionsForbidden

func NewListRetentionExecutionsForbidden() *ListRetentionExecutionsForbidden

NewListRetentionExecutionsForbidden creates ListRetentionExecutionsForbidden with default headers values

func (*ListRetentionExecutionsForbidden) SetPayload

func (o *ListRetentionExecutionsForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list retention executions forbidden response

func (*ListRetentionExecutionsForbidden) SetXRequestID

func (o *ListRetentionExecutionsForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list retention executions forbidden response

func (*ListRetentionExecutionsForbidden) WithPayload

WithPayload adds the payload to the list retention executions forbidden response

func (*ListRetentionExecutionsForbidden) WithXRequestID

WithXRequestID adds the xRequestId to the list retention executions forbidden response

func (*ListRetentionExecutionsForbidden) WriteResponse

func (o *ListRetentionExecutionsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListRetentionExecutionsHandler

type ListRetentionExecutionsHandler interface {
	Handle(ListRetentionExecutionsParams, interface{}) middleware.Responder
}

ListRetentionExecutionsHandler interface for that can handle valid list retention executions params

type ListRetentionExecutionsHandlerFunc

type ListRetentionExecutionsHandlerFunc func(ListRetentionExecutionsParams, interface{}) middleware.Responder

ListRetentionExecutionsHandlerFunc turns a function with the right signature into a list retention executions handler

func (ListRetentionExecutionsHandlerFunc) Handle

Handle executing the request and returning a response

type ListRetentionExecutionsInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListRetentionExecutionsInternalServerError Internal server error

swagger:response listRetentionExecutionsInternalServerError

func NewListRetentionExecutionsInternalServerError

func NewListRetentionExecutionsInternalServerError() *ListRetentionExecutionsInternalServerError

NewListRetentionExecutionsInternalServerError creates ListRetentionExecutionsInternalServerError with default headers values

func (*ListRetentionExecutionsInternalServerError) SetPayload

SetPayload sets the payload to the list retention executions internal server error response

func (*ListRetentionExecutionsInternalServerError) SetXRequestID

func (o *ListRetentionExecutionsInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list retention executions internal server error response

func (*ListRetentionExecutionsInternalServerError) WithPayload

WithPayload adds the payload to the list retention executions internal server error response

func (*ListRetentionExecutionsInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list retention executions internal server error response

func (*ListRetentionExecutionsInternalServerError) WriteResponse

WriteResponse to the client

type ListRetentionExecutionsOK

type ListRetentionExecutionsOK struct {
	/*Link to previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of available items

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.RetentionExecution `json:"body,omitempty"`
}

ListRetentionExecutionsOK Get a Retention execution successfully.

swagger:response listRetentionExecutionsOK

func NewListRetentionExecutionsOK

func NewListRetentionExecutionsOK() *ListRetentionExecutionsOK

NewListRetentionExecutionsOK creates ListRetentionExecutionsOK with default headers values

func (o *ListRetentionExecutionsOK) SetLink(link string)

SetLink sets the link to the list retention executions o k response

func (*ListRetentionExecutionsOK) SetPayload

func (o *ListRetentionExecutionsOK) SetPayload(payload []*models.RetentionExecution)

SetPayload sets the payload to the list retention executions o k response

func (*ListRetentionExecutionsOK) SetXTotalCount

func (o *ListRetentionExecutionsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list retention executions o k response

WithLink adds the link to the list retention executions o k response

func (*ListRetentionExecutionsOK) WithPayload

WithPayload adds the payload to the list retention executions o k response

func (*ListRetentionExecutionsOK) WithXTotalCount

func (o *ListRetentionExecutionsOK) WithXTotalCount(xTotalCount int64) *ListRetentionExecutionsOK

WithXTotalCount adds the xTotalCount to the list retention executions o k response

func (*ListRetentionExecutionsOK) WriteResponse

func (o *ListRetentionExecutionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListRetentionExecutionsParams

type ListRetentionExecutionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Retention ID.
	  Required: true
	  In: path
	*/
	ID int64
	/*The page number.
	  In: query
	*/
	Page *int64
	/*The size of per page.
	  In: query
	*/
	PageSize *int64
}

ListRetentionExecutionsParams contains all the bound params for the list retention executions operation typically these are obtained from a http.Request

swagger:parameters listRetentionExecutions

func NewListRetentionExecutionsParams

func NewListRetentionExecutionsParams() ListRetentionExecutionsParams

NewListRetentionExecutionsParams creates a new ListRetentionExecutionsParams object no default values defined in spec.

func (*ListRetentionExecutionsParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListRetentionExecutionsParams() beforehand.

type ListRetentionExecutionsURL

type ListRetentionExecutionsURL struct {
	ID int64

	Page     *int64
	PageSize *int64
	// contains filtered or unexported fields
}

ListRetentionExecutionsURL generates an URL for the list retention executions operation

func (*ListRetentionExecutionsURL) Build

func (o *ListRetentionExecutionsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListRetentionExecutionsURL) BuildFull

func (o *ListRetentionExecutionsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListRetentionExecutionsURL) Must

func (o *ListRetentionExecutionsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListRetentionExecutionsURL) SetBasePath

func (o *ListRetentionExecutionsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListRetentionExecutionsURL) String

func (o *ListRetentionExecutionsURL) String() string

String returns the string representation of the path with query string

func (*ListRetentionExecutionsURL) StringFull

func (o *ListRetentionExecutionsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListRetentionExecutionsURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListRetentionExecutionsUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListRetentionExecutionsUnauthorized Unauthorized

swagger:response listRetentionExecutionsUnauthorized

func NewListRetentionExecutionsUnauthorized

func NewListRetentionExecutionsUnauthorized() *ListRetentionExecutionsUnauthorized

NewListRetentionExecutionsUnauthorized creates ListRetentionExecutionsUnauthorized with default headers values

func (*ListRetentionExecutionsUnauthorized) SetPayload

func (o *ListRetentionExecutionsUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list retention executions unauthorized response

func (*ListRetentionExecutionsUnauthorized) SetXRequestID

func (o *ListRetentionExecutionsUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list retention executions unauthorized response

func (*ListRetentionExecutionsUnauthorized) WithPayload

WithPayload adds the payload to the list retention executions unauthorized response

func (*ListRetentionExecutionsUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the list retention executions unauthorized response

func (*ListRetentionExecutionsUnauthorized) WriteResponse

WriteResponse to the client

type ListRetentionTasks

type ListRetentionTasks struct {
	Context *middleware.Context
	Handler ListRetentionTasksHandler
}

ListRetentionTasks swagger:route GET /retentions/{id}/executions/{eid}/tasks Retention listRetentionTasks

Get Retention tasks

Get Retention tasks, each repository as a task.

func NewListRetentionTasks

func NewListRetentionTasks(ctx *middleware.Context, handler ListRetentionTasksHandler) *ListRetentionTasks

NewListRetentionTasks creates a new http.Handler for the list retention tasks operation

func (*ListRetentionTasks) ServeHTTP

func (o *ListRetentionTasks) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListRetentionTasksForbidden

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListRetentionTasksForbidden Forbidden

swagger:response listRetentionTasksForbidden

func NewListRetentionTasksForbidden

func NewListRetentionTasksForbidden() *ListRetentionTasksForbidden

NewListRetentionTasksForbidden creates ListRetentionTasksForbidden with default headers values

func (*ListRetentionTasksForbidden) SetPayload

func (o *ListRetentionTasksForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list retention tasks forbidden response

func (*ListRetentionTasksForbidden) SetXRequestID

func (o *ListRetentionTasksForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list retention tasks forbidden response

func (*ListRetentionTasksForbidden) WithPayload

WithPayload adds the payload to the list retention tasks forbidden response

func (*ListRetentionTasksForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the list retention tasks forbidden response

func (*ListRetentionTasksForbidden) WriteResponse

func (o *ListRetentionTasksForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListRetentionTasksHandler

type ListRetentionTasksHandler interface {
	Handle(ListRetentionTasksParams, interface{}) middleware.Responder
}

ListRetentionTasksHandler interface for that can handle valid list retention tasks params

type ListRetentionTasksHandlerFunc

type ListRetentionTasksHandlerFunc func(ListRetentionTasksParams, interface{}) middleware.Responder

ListRetentionTasksHandlerFunc turns a function with the right signature into a list retention tasks handler

func (ListRetentionTasksHandlerFunc) Handle

func (fn ListRetentionTasksHandlerFunc) Handle(params ListRetentionTasksParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListRetentionTasksInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListRetentionTasksInternalServerError Internal server error

swagger:response listRetentionTasksInternalServerError

func NewListRetentionTasksInternalServerError

func NewListRetentionTasksInternalServerError() *ListRetentionTasksInternalServerError

NewListRetentionTasksInternalServerError creates ListRetentionTasksInternalServerError with default headers values

func (*ListRetentionTasksInternalServerError) SetPayload

func (o *ListRetentionTasksInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list retention tasks internal server error response

func (*ListRetentionTasksInternalServerError) SetXRequestID

func (o *ListRetentionTasksInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list retention tasks internal server error response

func (*ListRetentionTasksInternalServerError) WithPayload

WithPayload adds the payload to the list retention tasks internal server error response

func (*ListRetentionTasksInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list retention tasks internal server error response

func (*ListRetentionTasksInternalServerError) WriteResponse

WriteResponse to the client

type ListRetentionTasksOK

type ListRetentionTasksOK struct {
	/*Link to previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of available items

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.RetentionExecutionTask `json:"body,omitempty"`
}

ListRetentionTasksOK Get Retention job tasks successfully.

swagger:response listRetentionTasksOK

func NewListRetentionTasksOK

func NewListRetentionTasksOK() *ListRetentionTasksOK

NewListRetentionTasksOK creates ListRetentionTasksOK with default headers values

func (o *ListRetentionTasksOK) SetLink(link string)

SetLink sets the link to the list retention tasks o k response

func (*ListRetentionTasksOK) SetPayload

func (o *ListRetentionTasksOK) SetPayload(payload []*models.RetentionExecutionTask)

SetPayload sets the payload to the list retention tasks o k response

func (*ListRetentionTasksOK) SetXTotalCount

func (o *ListRetentionTasksOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list retention tasks o k response

WithLink adds the link to the list retention tasks o k response

func (*ListRetentionTasksOK) WithPayload

WithPayload adds the payload to the list retention tasks o k response

func (*ListRetentionTasksOK) WithXTotalCount

func (o *ListRetentionTasksOK) WithXTotalCount(xTotalCount int64) *ListRetentionTasksOK

WithXTotalCount adds the xTotalCount to the list retention tasks o k response

func (*ListRetentionTasksOK) WriteResponse

func (o *ListRetentionTasksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListRetentionTasksParams

type ListRetentionTasksParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Retention execution ID.
	  Required: true
	  In: path
	*/
	Eid int64
	/*Retention ID.
	  Required: true
	  In: path
	*/
	ID int64
	/*The page number.
	  In: query
	*/
	Page *int64
	/*The size of per page.
	  In: query
	*/
	PageSize *int64
}

ListRetentionTasksParams contains all the bound params for the list retention tasks operation typically these are obtained from a http.Request

swagger:parameters listRetentionTasks

func NewListRetentionTasksParams

func NewListRetentionTasksParams() ListRetentionTasksParams

NewListRetentionTasksParams creates a new ListRetentionTasksParams object no default values defined in spec.

func (*ListRetentionTasksParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListRetentionTasksParams() beforehand.

type ListRetentionTasksURL

type ListRetentionTasksURL struct {
	Eid int64
	ID  int64

	Page     *int64
	PageSize *int64
	// contains filtered or unexported fields
}

ListRetentionTasksURL generates an URL for the list retention tasks operation

func (*ListRetentionTasksURL) Build

func (o *ListRetentionTasksURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListRetentionTasksURL) BuildFull

func (o *ListRetentionTasksURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListRetentionTasksURL) Must

func (o *ListRetentionTasksURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListRetentionTasksURL) SetBasePath

func (o *ListRetentionTasksURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListRetentionTasksURL) String

func (o *ListRetentionTasksURL) String() string

String returns the string representation of the path with query string

func (*ListRetentionTasksURL) StringFull

func (o *ListRetentionTasksURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListRetentionTasksURL) WithBasePath

func (o *ListRetentionTasksURL) WithBasePath(bp string) *ListRetentionTasksURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListRetentionTasksUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListRetentionTasksUnauthorized Unauthorized

swagger:response listRetentionTasksUnauthorized

func NewListRetentionTasksUnauthorized

func NewListRetentionTasksUnauthorized() *ListRetentionTasksUnauthorized

NewListRetentionTasksUnauthorized creates ListRetentionTasksUnauthorized with default headers values

func (*ListRetentionTasksUnauthorized) SetPayload

func (o *ListRetentionTasksUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list retention tasks unauthorized response

func (*ListRetentionTasksUnauthorized) SetXRequestID

func (o *ListRetentionTasksUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list retention tasks unauthorized response

func (*ListRetentionTasksUnauthorized) WithPayload

WithPayload adds the payload to the list retention tasks unauthorized response

func (*ListRetentionTasksUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the list retention tasks unauthorized response

func (*ListRetentionTasksUnauthorized) WriteResponse

func (o *ListRetentionTasksUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OperateRetentionExecution

type OperateRetentionExecution struct {
	Context *middleware.Context
	Handler OperateRetentionExecutionHandler
}

OperateRetentionExecution swagger:route PATCH /retentions/{id}/executions/{eid} Retention operateRetentionExecution

Stop a Retention execution

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

func NewOperateRetentionExecution

func NewOperateRetentionExecution(ctx *middleware.Context, handler OperateRetentionExecutionHandler) *OperateRetentionExecution

NewOperateRetentionExecution creates a new http.Handler for the operate retention execution operation

func (*OperateRetentionExecution) ServeHTTP

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 `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

OperateRetentionExecutionForbidden Forbidden

swagger:response operateRetentionExecutionForbidden

func NewOperateRetentionExecutionForbidden

func NewOperateRetentionExecutionForbidden() *OperateRetentionExecutionForbidden

NewOperateRetentionExecutionForbidden creates OperateRetentionExecutionForbidden with default headers values

func (*OperateRetentionExecutionForbidden) SetPayload

func (o *OperateRetentionExecutionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the operate retention execution forbidden response

func (*OperateRetentionExecutionForbidden) SetXRequestID

func (o *OperateRetentionExecutionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the operate retention execution forbidden response

func (*OperateRetentionExecutionForbidden) WithPayload

WithPayload adds the payload to the operate retention execution forbidden response

func (*OperateRetentionExecutionForbidden) WithXRequestID

WithXRequestID adds the xRequestId to the operate retention execution forbidden response

func (*OperateRetentionExecutionForbidden) WriteResponse

WriteResponse to the client

type OperateRetentionExecutionHandler

type OperateRetentionExecutionHandler interface {
	Handle(OperateRetentionExecutionParams, interface{}) middleware.Responder
}

OperateRetentionExecutionHandler interface for that can handle valid operate retention execution params

type OperateRetentionExecutionHandlerFunc

type OperateRetentionExecutionHandlerFunc func(OperateRetentionExecutionParams, interface{}) middleware.Responder

OperateRetentionExecutionHandlerFunc turns a function with the right signature into a operate retention execution handler

func (OperateRetentionExecutionHandlerFunc) Handle

Handle executing the request and returning a response

type OperateRetentionExecutionInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

OperateRetentionExecutionInternalServerError Internal server error

swagger:response operateRetentionExecutionInternalServerError

func NewOperateRetentionExecutionInternalServerError

func NewOperateRetentionExecutionInternalServerError() *OperateRetentionExecutionInternalServerError

NewOperateRetentionExecutionInternalServerError creates OperateRetentionExecutionInternalServerError with default headers values

func (*OperateRetentionExecutionInternalServerError) SetPayload

SetPayload sets the payload to the operate retention execution internal server error response

func (*OperateRetentionExecutionInternalServerError) SetXRequestID

func (o *OperateRetentionExecutionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the operate retention execution internal server error response

func (*OperateRetentionExecutionInternalServerError) WithPayload

WithPayload adds the payload to the operate retention execution internal server error response

func (*OperateRetentionExecutionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the operate retention execution internal server error response

func (*OperateRetentionExecutionInternalServerError) WriteResponse

WriteResponse to the client

type OperateRetentionExecutionOK

type OperateRetentionExecutionOK struct {
}

OperateRetentionExecutionOK Stop a Retention job successfully.

swagger:response operateRetentionExecutionOK

func NewOperateRetentionExecutionOK

func NewOperateRetentionExecutionOK() *OperateRetentionExecutionOK

NewOperateRetentionExecutionOK creates OperateRetentionExecutionOK with default headers values

func (*OperateRetentionExecutionOK) WriteResponse

func (o *OperateRetentionExecutionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OperateRetentionExecutionParams

type OperateRetentionExecutionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The action, only support "stop" now.
	  Required: true
	  In: body
	*/
	Body OperateRetentionExecutionBody
	/*Retention execution ID.
	  Required: true
	  In: path
	*/
	Eid int64
	/*Retention ID.
	  Required: true
	  In: path
	*/
	ID int64
}

OperateRetentionExecutionParams contains all the bound params for the operate retention execution operation typically these are obtained from a http.Request

swagger:parameters operateRetentionExecution

func NewOperateRetentionExecutionParams

func NewOperateRetentionExecutionParams() OperateRetentionExecutionParams

NewOperateRetentionExecutionParams creates a new OperateRetentionExecutionParams object no default values defined in spec.

func (*OperateRetentionExecutionParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewOperateRetentionExecutionParams() beforehand.

type OperateRetentionExecutionURL

type OperateRetentionExecutionURL struct {
	Eid int64
	ID  int64
	// contains filtered or unexported fields
}

OperateRetentionExecutionURL generates an URL for the operate retention execution operation

func (*OperateRetentionExecutionURL) Build

func (o *OperateRetentionExecutionURL) Build() (*url.URL, error)

Build a url path and query string

func (*OperateRetentionExecutionURL) BuildFull

func (o *OperateRetentionExecutionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*OperateRetentionExecutionURL) Must

func (o *OperateRetentionExecutionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*OperateRetentionExecutionURL) SetBasePath

func (o *OperateRetentionExecutionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*OperateRetentionExecutionURL) String

String returns the string representation of the path with query string

func (*OperateRetentionExecutionURL) StringFull

func (o *OperateRetentionExecutionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*OperateRetentionExecutionURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type OperateRetentionExecutionUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

OperateRetentionExecutionUnauthorized Unauthorized

swagger:response operateRetentionExecutionUnauthorized

func NewOperateRetentionExecutionUnauthorized

func NewOperateRetentionExecutionUnauthorized() *OperateRetentionExecutionUnauthorized

NewOperateRetentionExecutionUnauthorized creates OperateRetentionExecutionUnauthorized with default headers values

func (*OperateRetentionExecutionUnauthorized) SetPayload

func (o *OperateRetentionExecutionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the operate retention execution unauthorized response

func (*OperateRetentionExecutionUnauthorized) SetXRequestID

func (o *OperateRetentionExecutionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the operate retention execution unauthorized response

func (*OperateRetentionExecutionUnauthorized) WithPayload

WithPayload adds the payload to the operate retention execution unauthorized response

func (*OperateRetentionExecutionUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the operate retention execution unauthorized response

func (*OperateRetentionExecutionUnauthorized) WriteResponse

WriteResponse to the client

type TriggerRetentionExecution

type TriggerRetentionExecution struct {
	Context *middleware.Context
	Handler TriggerRetentionExecutionHandler
}

TriggerRetentionExecution swagger:route POST /retentions/{id}/executions Retention triggerRetentionExecution

Trigger a Retention Execution

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

func NewTriggerRetentionExecution

func NewTriggerRetentionExecution(ctx *middleware.Context, handler TriggerRetentionExecutionHandler) *TriggerRetentionExecution

NewTriggerRetentionExecution creates a new http.Handler for the trigger retention execution operation

func (*TriggerRetentionExecution) ServeHTTP

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 `json:"Location"`
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`
}

TriggerRetentionExecutionCreated Created

swagger:response triggerRetentionExecutionCreated

func NewTriggerRetentionExecutionCreated

func NewTriggerRetentionExecutionCreated() *TriggerRetentionExecutionCreated

NewTriggerRetentionExecutionCreated creates TriggerRetentionExecutionCreated with default headers values

func (*TriggerRetentionExecutionCreated) SetLocation

func (o *TriggerRetentionExecutionCreated) SetLocation(location string)

SetLocation sets the location to the trigger retention execution created response

func (*TriggerRetentionExecutionCreated) SetXRequestID

func (o *TriggerRetentionExecutionCreated) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the trigger retention execution created response

func (*TriggerRetentionExecutionCreated) WithLocation

WithLocation adds the location to the trigger retention execution created response

func (*TriggerRetentionExecutionCreated) WithXRequestID

WithXRequestID adds the xRequestId to the trigger retention execution created response

func (*TriggerRetentionExecutionCreated) WriteResponse

func (o *TriggerRetentionExecutionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type TriggerRetentionExecutionForbidden

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

TriggerRetentionExecutionForbidden Forbidden

swagger:response triggerRetentionExecutionForbidden

func NewTriggerRetentionExecutionForbidden

func NewTriggerRetentionExecutionForbidden() *TriggerRetentionExecutionForbidden

NewTriggerRetentionExecutionForbidden creates TriggerRetentionExecutionForbidden with default headers values

func (*TriggerRetentionExecutionForbidden) SetPayload

func (o *TriggerRetentionExecutionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the trigger retention execution forbidden response

func (*TriggerRetentionExecutionForbidden) SetXRequestID

func (o *TriggerRetentionExecutionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the trigger retention execution forbidden response

func (*TriggerRetentionExecutionForbidden) WithPayload

WithPayload adds the payload to the trigger retention execution forbidden response

func (*TriggerRetentionExecutionForbidden) WithXRequestID

WithXRequestID adds the xRequestId to the trigger retention execution forbidden response

func (*TriggerRetentionExecutionForbidden) WriteResponse

WriteResponse to the client

type TriggerRetentionExecutionHandler

type TriggerRetentionExecutionHandler interface {
	Handle(TriggerRetentionExecutionParams, interface{}) middleware.Responder
}

TriggerRetentionExecutionHandler interface for that can handle valid trigger retention execution params

type TriggerRetentionExecutionHandlerFunc

type TriggerRetentionExecutionHandlerFunc func(TriggerRetentionExecutionParams, interface{}) middleware.Responder

TriggerRetentionExecutionHandlerFunc turns a function with the right signature into a trigger retention execution handler

func (TriggerRetentionExecutionHandlerFunc) Handle

Handle executing the request and returning a response

type TriggerRetentionExecutionInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

TriggerRetentionExecutionInternalServerError Internal server error

swagger:response triggerRetentionExecutionInternalServerError

func NewTriggerRetentionExecutionInternalServerError

func NewTriggerRetentionExecutionInternalServerError() *TriggerRetentionExecutionInternalServerError

NewTriggerRetentionExecutionInternalServerError creates TriggerRetentionExecutionInternalServerError with default headers values

func (*TriggerRetentionExecutionInternalServerError) SetPayload

SetPayload sets the payload to the trigger retention execution internal server error response

func (*TriggerRetentionExecutionInternalServerError) SetXRequestID

func (o *TriggerRetentionExecutionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the trigger retention execution internal server error response

func (*TriggerRetentionExecutionInternalServerError) WithPayload

WithPayload adds the payload to the trigger retention execution internal server error response

func (*TriggerRetentionExecutionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the trigger retention execution internal server error response

func (*TriggerRetentionExecutionInternalServerError) WriteResponse

WriteResponse to the client

type TriggerRetentionExecutionOK

type TriggerRetentionExecutionOK struct {
}

TriggerRetentionExecutionOK Trigger a Retention job successfully.

swagger:response triggerRetentionExecutionOK

func NewTriggerRetentionExecutionOK

func NewTriggerRetentionExecutionOK() *TriggerRetentionExecutionOK

NewTriggerRetentionExecutionOK creates TriggerRetentionExecutionOK with default headers values

func (*TriggerRetentionExecutionOK) WriteResponse

func (o *TriggerRetentionExecutionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type TriggerRetentionExecutionParams

type TriggerRetentionExecutionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body TriggerRetentionExecutionBody
	/*Retention ID.
	  Required: true
	  In: path
	*/
	ID int64
}

TriggerRetentionExecutionParams contains all the bound params for the trigger retention execution operation typically these are obtained from a http.Request

swagger:parameters triggerRetentionExecution

func NewTriggerRetentionExecutionParams

func NewTriggerRetentionExecutionParams() TriggerRetentionExecutionParams

NewTriggerRetentionExecutionParams creates a new TriggerRetentionExecutionParams object no default values defined in spec.

func (*TriggerRetentionExecutionParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewTriggerRetentionExecutionParams() beforehand.

type TriggerRetentionExecutionURL

type TriggerRetentionExecutionURL struct {
	ID int64
	// contains filtered or unexported fields
}

TriggerRetentionExecutionURL generates an URL for the trigger retention execution operation

func (*TriggerRetentionExecutionURL) Build

func (o *TriggerRetentionExecutionURL) Build() (*url.URL, error)

Build a url path and query string

func (*TriggerRetentionExecutionURL) BuildFull

func (o *TriggerRetentionExecutionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*TriggerRetentionExecutionURL) Must

func (o *TriggerRetentionExecutionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*TriggerRetentionExecutionURL) SetBasePath

func (o *TriggerRetentionExecutionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*TriggerRetentionExecutionURL) String

String returns the string representation of the path with query string

func (*TriggerRetentionExecutionURL) StringFull

func (o *TriggerRetentionExecutionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*TriggerRetentionExecutionURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type TriggerRetentionExecutionUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

TriggerRetentionExecutionUnauthorized Unauthorized

swagger:response triggerRetentionExecutionUnauthorized

func NewTriggerRetentionExecutionUnauthorized

func NewTriggerRetentionExecutionUnauthorized() *TriggerRetentionExecutionUnauthorized

NewTriggerRetentionExecutionUnauthorized creates TriggerRetentionExecutionUnauthorized with default headers values

func (*TriggerRetentionExecutionUnauthorized) SetPayload

func (o *TriggerRetentionExecutionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the trigger retention execution unauthorized response

func (*TriggerRetentionExecutionUnauthorized) SetXRequestID

func (o *TriggerRetentionExecutionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the trigger retention execution unauthorized response

func (*TriggerRetentionExecutionUnauthorized) WithPayload

WithPayload adds the payload to the trigger retention execution unauthorized response

func (*TriggerRetentionExecutionUnauthorized) WithXRequestID

WithXRequestID adds the xRequestId to the trigger retention execution unauthorized response

func (*TriggerRetentionExecutionUnauthorized) WriteResponse

WriteResponse to the client

type UpdateRetention

type UpdateRetention struct {
	Context *middleware.Context
	Handler UpdateRetentionHandler
}

UpdateRetention swagger:route PUT /retentions/{id} Retention updateRetention

Update 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.

func NewUpdateRetention

func NewUpdateRetention(ctx *middleware.Context, handler UpdateRetentionHandler) *UpdateRetention

NewUpdateRetention creates a new http.Handler for the update retention operation

func (*UpdateRetention) ServeHTTP

func (o *UpdateRetention) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateRetentionForbidden

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateRetentionForbidden Forbidden

swagger:response updateRetentionForbidden

func NewUpdateRetentionForbidden

func NewUpdateRetentionForbidden() *UpdateRetentionForbidden

NewUpdateRetentionForbidden creates UpdateRetentionForbidden with default headers values

func (*UpdateRetentionForbidden) SetPayload

func (o *UpdateRetentionForbidden) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update retention forbidden response

func (*UpdateRetentionForbidden) SetXRequestID

func (o *UpdateRetentionForbidden) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update retention forbidden response

func (*UpdateRetentionForbidden) WithPayload

WithPayload adds the payload to the update retention forbidden response

func (*UpdateRetentionForbidden) WithXRequestID

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

WithXRequestID adds the xRequestId to the update retention forbidden response

func (*UpdateRetentionForbidden) WriteResponse

func (o *UpdateRetentionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateRetentionHandler

type UpdateRetentionHandler interface {
	Handle(UpdateRetentionParams, interface{}) middleware.Responder
}

UpdateRetentionHandler interface for that can handle valid update retention params

type UpdateRetentionHandlerFunc

type UpdateRetentionHandlerFunc func(UpdateRetentionParams, interface{}) middleware.Responder

UpdateRetentionHandlerFunc turns a function with the right signature into a update retention handler

func (UpdateRetentionHandlerFunc) Handle

func (fn UpdateRetentionHandlerFunc) Handle(params UpdateRetentionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateRetentionInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateRetentionInternalServerError Internal server error

swagger:response updateRetentionInternalServerError

func NewUpdateRetentionInternalServerError

func NewUpdateRetentionInternalServerError() *UpdateRetentionInternalServerError

NewUpdateRetentionInternalServerError creates UpdateRetentionInternalServerError with default headers values

func (*UpdateRetentionInternalServerError) SetPayload

func (o *UpdateRetentionInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update retention internal server error response

func (*UpdateRetentionInternalServerError) SetXRequestID

func (o *UpdateRetentionInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update retention internal server error response

func (*UpdateRetentionInternalServerError) WithPayload

WithPayload adds the payload to the update retention internal server error response

func (*UpdateRetentionInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the update retention internal server error response

func (*UpdateRetentionInternalServerError) WriteResponse

WriteResponse to the client

type UpdateRetentionOK

type UpdateRetentionOK struct {
}

UpdateRetentionOK Update Retention Policy successfully.

swagger:response updateRetentionOK

func NewUpdateRetentionOK

func NewUpdateRetentionOK() *UpdateRetentionOK

NewUpdateRetentionOK creates UpdateRetentionOK with default headers values

func (*UpdateRetentionOK) WriteResponse

func (o *UpdateRetentionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateRetentionParams

type UpdateRetentionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Retention ID.
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  In: body
	*/
	Policy *models.RetentionPolicy
}

UpdateRetentionParams contains all the bound params for the update retention operation typically these are obtained from a http.Request

swagger:parameters updateRetention

func NewUpdateRetentionParams

func NewUpdateRetentionParams() UpdateRetentionParams

NewUpdateRetentionParams creates a new UpdateRetentionParams object no default values defined in spec.

func (*UpdateRetentionParams) BindRequest

func (o *UpdateRetentionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateRetentionParams() beforehand.

type UpdateRetentionURL

type UpdateRetentionURL struct {
	ID int64
	// contains filtered or unexported fields
}

UpdateRetentionURL generates an URL for the update retention operation

func (*UpdateRetentionURL) Build

func (o *UpdateRetentionURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateRetentionURL) BuildFull

func (o *UpdateRetentionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateRetentionURL) Must

func (o *UpdateRetentionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateRetentionURL) SetBasePath

func (o *UpdateRetentionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateRetentionURL) String

func (o *UpdateRetentionURL) String() string

String returns the string representation of the path with query string

func (*UpdateRetentionURL) StringFull

func (o *UpdateRetentionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateRetentionURL) WithBasePath

func (o *UpdateRetentionURL) WithBasePath(bp string) *UpdateRetentionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateRetentionUnauthorized

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

UpdateRetentionUnauthorized Unauthorized

swagger:response updateRetentionUnauthorized

func NewUpdateRetentionUnauthorized

func NewUpdateRetentionUnauthorized() *UpdateRetentionUnauthorized

NewUpdateRetentionUnauthorized creates UpdateRetentionUnauthorized with default headers values

func (*UpdateRetentionUnauthorized) SetPayload

func (o *UpdateRetentionUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the update retention unauthorized response

func (*UpdateRetentionUnauthorized) SetXRequestID

func (o *UpdateRetentionUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update retention unauthorized response

func (*UpdateRetentionUnauthorized) WithPayload

WithPayload adds the payload to the update retention unauthorized response

func (*UpdateRetentionUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the update retention unauthorized response

func (*UpdateRetentionUnauthorized) WriteResponse

func (o *UpdateRetentionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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