gc

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 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 gc API

func (*Client) CreateGCSchedule

func (a *Client) CreateGCSchedule(params *CreateGCScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateGCScheduleCreated, error)

CreateGCSchedule creates a gc schedule

This endpoint is for update gc schedule.

func (*Client) GetGC

func (a *Client) GetGC(params *GetGCParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCOK, error)

GetGC gets gc status

This endpoint let user get gc status filtered by specific ID.

func (*Client) GetGCHistory

func (a *Client) GetGCHistory(params *GetGCHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCHistoryOK, error)

GetGCHistory gets gc results

This endpoint let user get gc execution history.

func (*Client) GetGCLog

func (a *Client) GetGCLog(params *GetGCLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCLogOK, error)

GetGCLog gets gc job log

This endpoint let user get gc job logs filtered by specific ID.

func (*Client) GetGCSchedule

func (a *Client) GetGCSchedule(params *GetGCScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCScheduleOK, error)

GetGCSchedule gets gc s schedule

This endpoint is for get schedule of gc job.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateGCSchedule

func (a *Client) UpdateGCSchedule(params *UpdateGCScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateGCScheduleOK, error)

UpdateGCSchedule updates gc s schedule

This endpoint is for update gc schedule.

type ClientService

type ClientService interface {
	CreateGCSchedule(params *CreateGCScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateGCScheduleCreated, error)

	GetGC(params *GetGCParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCOK, error)

	GetGCHistory(params *GetGCHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCHistoryOK, error)

	GetGCLog(params *GetGCLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCLogOK, error)

	GetGCSchedule(params *GetGCScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*GetGCScheduleOK, error)

	UpdateGCSchedule(params *UpdateGCScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateGCScheduleOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new gc API client.

type CreateGCScheduleBadRequest

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

	Payload *model.Errors
}

CreateGCScheduleBadRequest handles this case with default header values.

Bad request

func NewCreateGCScheduleBadRequest

func NewCreateGCScheduleBadRequest() *CreateGCScheduleBadRequest

NewCreateGCScheduleBadRequest creates a CreateGCScheduleBadRequest with default headers values

func (*CreateGCScheduleBadRequest) Error

func (*CreateGCScheduleBadRequest) GetPayload

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

type CreateGCScheduleConflict

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

	Payload *model.Errors
}

CreateGCScheduleConflict handles this case with default header values.

Conflict

func NewCreateGCScheduleConflict

func NewCreateGCScheduleConflict() *CreateGCScheduleConflict

NewCreateGCScheduleConflict creates a CreateGCScheduleConflict with default headers values

func (*CreateGCScheduleConflict) Error

func (o *CreateGCScheduleConflict) Error() string

func (*CreateGCScheduleConflict) GetPayload

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

type CreateGCScheduleCreated

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

CreateGCScheduleCreated handles this case with default header values.

Created

func NewCreateGCScheduleCreated

func NewCreateGCScheduleCreated() *CreateGCScheduleCreated

NewCreateGCScheduleCreated creates a CreateGCScheduleCreated with default headers values

func (*CreateGCScheduleCreated) Error

func (o *CreateGCScheduleCreated) Error() string

type CreateGCScheduleForbidden

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

	Payload *model.Errors
}

CreateGCScheduleForbidden handles this case with default header values.

Forbidden

func NewCreateGCScheduleForbidden

func NewCreateGCScheduleForbidden() *CreateGCScheduleForbidden

NewCreateGCScheduleForbidden creates a CreateGCScheduleForbidden with default headers values

func (*CreateGCScheduleForbidden) Error

func (o *CreateGCScheduleForbidden) Error() string

func (*CreateGCScheduleForbidden) GetPayload

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

type CreateGCScheduleInternalServerError

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

	Payload *model.Errors
}

CreateGCScheduleInternalServerError handles this case with default header values.

Internal server error

func NewCreateGCScheduleInternalServerError

func NewCreateGCScheduleInternalServerError() *CreateGCScheduleInternalServerError

NewCreateGCScheduleInternalServerError creates a CreateGCScheduleInternalServerError with default headers values

func (*CreateGCScheduleInternalServerError) Error

func (*CreateGCScheduleInternalServerError) GetPayload

type CreateGCScheduleParams

type CreateGCScheduleParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Schedule
	  Updates of gc's schedule.

	*/
	Schedule *model.Schedule

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

CreateGCScheduleParams contains all the parameters to send to the API endpoint for the create GC schedule operation typically these are written to a http.Request

func NewCreateGCScheduleParams

func NewCreateGCScheduleParams() *CreateGCScheduleParams

NewCreateGCScheduleParams creates a new CreateGCScheduleParams object with the default values initialized.

func NewCreateGCScheduleParamsWithContext

func NewCreateGCScheduleParamsWithContext(ctx context.Context) *CreateGCScheduleParams

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

func NewCreateGCScheduleParamsWithHTTPClient

func NewCreateGCScheduleParamsWithHTTPClient(client *http.Client) *CreateGCScheduleParams

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

func NewCreateGCScheduleParamsWithTimeout

func NewCreateGCScheduleParamsWithTimeout(timeout time.Duration) *CreateGCScheduleParams

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

func (*CreateGCScheduleParams) SetContext

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

SetContext adds the context to the create GC schedule params

func (*CreateGCScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create GC schedule params

func (*CreateGCScheduleParams) SetSchedule

func (o *CreateGCScheduleParams) SetSchedule(schedule *model.Schedule)

SetSchedule adds the schedule to the create GC schedule params

func (*CreateGCScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the create GC schedule params

func (*CreateGCScheduleParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the create GC schedule params

func (*CreateGCScheduleParams) WithContext

WithContext adds the context to the create GC schedule params

func (*CreateGCScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create GC schedule params

func (*CreateGCScheduleParams) WithSchedule

func (o *CreateGCScheduleParams) WithSchedule(schedule *model.Schedule) *CreateGCScheduleParams

WithSchedule adds the schedule to the create GC schedule params

func (*CreateGCScheduleParams) WithTimeout

WithTimeout adds the timeout to the create GC schedule params

func (*CreateGCScheduleParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the create GC schedule params

func (*CreateGCScheduleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateGCScheduleReader

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

CreateGCScheduleReader is a Reader for the CreateGCSchedule structure.

func (*CreateGCScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateGCScheduleUnauthorized

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

	Payload *model.Errors
}

CreateGCScheduleUnauthorized handles this case with default header values.

Unauthorized

func NewCreateGCScheduleUnauthorized

func NewCreateGCScheduleUnauthorized() *CreateGCScheduleUnauthorized

NewCreateGCScheduleUnauthorized creates a CreateGCScheduleUnauthorized with default headers values

func (*CreateGCScheduleUnauthorized) Error

func (*CreateGCScheduleUnauthorized) GetPayload

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

type GetGCForbidden

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

	Payload *model.Errors
}

GetGCForbidden handles this case with default header values.

Forbidden

func NewGetGCForbidden

func NewGetGCForbidden() *GetGCForbidden

NewGetGCForbidden creates a GetGCForbidden with default headers values

func (*GetGCForbidden) Error

func (o *GetGCForbidden) Error() string

func (*GetGCForbidden) GetPayload

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

type GetGCHistoryForbidden

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

	Payload *model.Errors
}

GetGCHistoryForbidden handles this case with default header values.

Forbidden

func NewGetGCHistoryForbidden

func NewGetGCHistoryForbidden() *GetGCHistoryForbidden

NewGetGCHistoryForbidden creates a GetGCHistoryForbidden with default headers values

func (*GetGCHistoryForbidden) Error

func (o *GetGCHistoryForbidden) Error() string

func (*GetGCHistoryForbidden) GetPayload

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

type GetGCHistoryInternalServerError

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

	Payload *model.Errors
}

GetGCHistoryInternalServerError handles this case with default header values.

Internal server error

func NewGetGCHistoryInternalServerError

func NewGetGCHistoryInternalServerError() *GetGCHistoryInternalServerError

NewGetGCHistoryInternalServerError creates a GetGCHistoryInternalServerError with default headers values

func (*GetGCHistoryInternalServerError) Error

func (*GetGCHistoryInternalServerError) GetPayload

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

type GetGCHistoryOK

type GetGCHistoryOK struct {
	/*Link refers to the previous page and next page
	 */
	Link string
	/*The total count of history
	 */
	XTotalCount int64

	Payload []*model.GCHistory
}

GetGCHistoryOK handles this case with default header values.

Get gc results successfully.

func NewGetGCHistoryOK

func NewGetGCHistoryOK() *GetGCHistoryOK

NewGetGCHistoryOK creates a GetGCHistoryOK with default headers values

func (*GetGCHistoryOK) Error

func (o *GetGCHistoryOK) Error() string

func (*GetGCHistoryOK) GetPayload

func (o *GetGCHistoryOK) GetPayload() []*model.GCHistory

type GetGCHistoryParams

type GetGCHistoryParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

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

	*/
	PageSize *int64
	/*Q
	  Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

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

GetGCHistoryParams contains all the parameters to send to the API endpoint for the get GC history operation typically these are written to a http.Request

func NewGetGCHistoryParams

func NewGetGCHistoryParams() *GetGCHistoryParams

NewGetGCHistoryParams creates a new GetGCHistoryParams object with the default values initialized.

func NewGetGCHistoryParamsWithContext

func NewGetGCHistoryParamsWithContext(ctx context.Context) *GetGCHistoryParams

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

func NewGetGCHistoryParamsWithHTTPClient

func NewGetGCHistoryParamsWithHTTPClient(client *http.Client) *GetGCHistoryParams

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

func NewGetGCHistoryParamsWithTimeout

func NewGetGCHistoryParamsWithTimeout(timeout time.Duration) *GetGCHistoryParams

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

func (*GetGCHistoryParams) SetContext

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

SetContext adds the context to the get GC history params

func (*GetGCHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get GC history params

func (*GetGCHistoryParams) SetPage

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

SetPage adds the page to the get GC history params

func (*GetGCHistoryParams) SetPageSize

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

SetPageSize adds the pageSize to the get GC history params

func (*GetGCHistoryParams) SetQ

func (o *GetGCHistoryParams) SetQ(q *string)

SetQ adds the q to the get GC history params

func (*GetGCHistoryParams) SetSort

func (o *GetGCHistoryParams) SetSort(sort *string)

SetSort adds the sort to the get GC history params

func (*GetGCHistoryParams) SetTimeout

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

SetTimeout adds the timeout to the get GC history params

func (*GetGCHistoryParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get GC history params

func (*GetGCHistoryParams) WithContext

WithContext adds the context to the get GC history params

func (*GetGCHistoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get GC history params

func (*GetGCHistoryParams) WithPage

func (o *GetGCHistoryParams) WithPage(page *int64) *GetGCHistoryParams

WithPage adds the page to the get GC history params

func (*GetGCHistoryParams) WithPageSize

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

WithPageSize adds the pageSize to the get GC history params

func (*GetGCHistoryParams) WithQ

WithQ adds the q to the get GC history params

func (*GetGCHistoryParams) WithSort

func (o *GetGCHistoryParams) WithSort(sort *string) *GetGCHistoryParams

WithSort adds the sort to the get GC history params

func (*GetGCHistoryParams) WithTimeout

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

WithTimeout adds the timeout to the get GC history params

func (*GetGCHistoryParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get GC history params

func (*GetGCHistoryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGCHistoryReader

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

GetGCHistoryReader is a Reader for the GetGCHistory structure.

func (*GetGCHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGCHistoryUnauthorized

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

	Payload *model.Errors
}

GetGCHistoryUnauthorized handles this case with default header values.

Unauthorized

func NewGetGCHistoryUnauthorized

func NewGetGCHistoryUnauthorized() *GetGCHistoryUnauthorized

NewGetGCHistoryUnauthorized creates a GetGCHistoryUnauthorized with default headers values

func (*GetGCHistoryUnauthorized) Error

func (o *GetGCHistoryUnauthorized) Error() string

func (*GetGCHistoryUnauthorized) GetPayload

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

type GetGCInternalServerError

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

	Payload *model.Errors
}

GetGCInternalServerError handles this case with default header values.

Internal server error

func NewGetGCInternalServerError

func NewGetGCInternalServerError() *GetGCInternalServerError

NewGetGCInternalServerError creates a GetGCInternalServerError with default headers values

func (*GetGCInternalServerError) Error

func (o *GetGCInternalServerError) Error() string

func (*GetGCInternalServerError) GetPayload

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

type GetGCLogBadRequest

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

	Payload *model.Errors
}

GetGCLogBadRequest handles this case with default header values.

Bad request

func NewGetGCLogBadRequest

func NewGetGCLogBadRequest() *GetGCLogBadRequest

NewGetGCLogBadRequest creates a GetGCLogBadRequest with default headers values

func (*GetGCLogBadRequest) Error

func (o *GetGCLogBadRequest) Error() string

func (*GetGCLogBadRequest) GetPayload

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

type GetGCLogForbidden

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

	Payload *model.Errors
}

GetGCLogForbidden handles this case with default header values.

Forbidden

func NewGetGCLogForbidden

func NewGetGCLogForbidden() *GetGCLogForbidden

NewGetGCLogForbidden creates a GetGCLogForbidden with default headers values

func (*GetGCLogForbidden) Error

func (o *GetGCLogForbidden) Error() string

func (*GetGCLogForbidden) GetPayload

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

type GetGCLogInternalServerError

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

	Payload *model.Errors
}

GetGCLogInternalServerError handles this case with default header values.

Internal server error

func NewGetGCLogInternalServerError

func NewGetGCLogInternalServerError() *GetGCLogInternalServerError

NewGetGCLogInternalServerError creates a GetGCLogInternalServerError with default headers values

func (*GetGCLogInternalServerError) Error

func (*GetGCLogInternalServerError) GetPayload

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

type GetGCLogNotFound

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

	Payload *model.Errors
}

GetGCLogNotFound handles this case with default header values.

Not found

func NewGetGCLogNotFound

func NewGetGCLogNotFound() *GetGCLogNotFound

NewGetGCLogNotFound creates a GetGCLogNotFound with default headers values

func (*GetGCLogNotFound) Error

func (o *GetGCLogNotFound) Error() string

func (*GetGCLogNotFound) GetPayload

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

type GetGCLogOK

type GetGCLogOK struct {
	Payload string
}

GetGCLogOK handles this case with default header values.

Get successfully.

func NewGetGCLogOK

func NewGetGCLogOK() *GetGCLogOK

NewGetGCLogOK creates a GetGCLogOK with default headers values

func (*GetGCLogOK) Error

func (o *GetGCLogOK) Error() string

func (*GetGCLogOK) GetPayload

func (o *GetGCLogOK) GetPayload() string

type GetGCLogParams

type GetGCLogParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*GCID
	  The ID of the gc log

	*/
	GCID int64

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

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

func NewGetGCLogParams

func NewGetGCLogParams() *GetGCLogParams

NewGetGCLogParams creates a new GetGCLogParams object with the default values initialized.

func NewGetGCLogParamsWithContext

func NewGetGCLogParamsWithContext(ctx context.Context) *GetGCLogParams

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

func NewGetGCLogParamsWithHTTPClient

func NewGetGCLogParamsWithHTTPClient(client *http.Client) *GetGCLogParams

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

func NewGetGCLogParamsWithTimeout

func NewGetGCLogParamsWithTimeout(timeout time.Duration) *GetGCLogParams

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

func (*GetGCLogParams) SetContext

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

SetContext adds the context to the get GC log params

func (*GetGCLogParams) SetGCID

func (o *GetGCLogParams) SetGCID(gCID int64)

SetGCID adds the gcId to the get GC log params

func (*GetGCLogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get GC log params

func (*GetGCLogParams) SetTimeout

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

SetTimeout adds the timeout to the get GC log params

func (*GetGCLogParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get GC log params

func (*GetGCLogParams) WithContext

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

WithContext adds the context to the get GC log params

func (*GetGCLogParams) WithGCID

func (o *GetGCLogParams) WithGCID(gCID int64) *GetGCLogParams

WithGCID adds the gCID to the get GC log params

func (*GetGCLogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get GC log params

func (*GetGCLogParams) WithTimeout

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

WithTimeout adds the timeout to the get GC log params

func (*GetGCLogParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get GC log params

func (*GetGCLogParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGCLogReader

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

GetGCLogReader is a Reader for the GetGCLog structure.

func (*GetGCLogReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGCLogUnauthorized

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

	Payload *model.Errors
}

GetGCLogUnauthorized handles this case with default header values.

Unauthorized

func NewGetGCLogUnauthorized

func NewGetGCLogUnauthorized() *GetGCLogUnauthorized

NewGetGCLogUnauthorized creates a GetGCLogUnauthorized with default headers values

func (*GetGCLogUnauthorized) Error

func (o *GetGCLogUnauthorized) Error() string

func (*GetGCLogUnauthorized) GetPayload

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

type GetGCNotFound

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

	Payload *model.Errors
}

GetGCNotFound handles this case with default header values.

Not found

func NewGetGCNotFound

func NewGetGCNotFound() *GetGCNotFound

NewGetGCNotFound creates a GetGCNotFound with default headers values

func (*GetGCNotFound) Error

func (o *GetGCNotFound) Error() string

func (*GetGCNotFound) GetPayload

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

type GetGCOK

type GetGCOK struct {
	Payload *model.GCHistory
}

GetGCOK handles this case with default header values.

Get gc results successfully.

func NewGetGCOK

func NewGetGCOK() *GetGCOK

NewGetGCOK creates a GetGCOK with default headers values

func (*GetGCOK) Error

func (o *GetGCOK) Error() string

func (*GetGCOK) GetPayload

func (o *GetGCOK) GetPayload() *model.GCHistory

type GetGCParams

type GetGCParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*GCID
	  The ID of the gc log

	*/
	GCID int64

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

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

func NewGetGCParams

func NewGetGCParams() *GetGCParams

NewGetGCParams creates a new GetGCParams object with the default values initialized.

func NewGetGCParamsWithContext

func NewGetGCParamsWithContext(ctx context.Context) *GetGCParams

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

func NewGetGCParamsWithHTTPClient

func NewGetGCParamsWithHTTPClient(client *http.Client) *GetGCParams

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

func NewGetGCParamsWithTimeout

func NewGetGCParamsWithTimeout(timeout time.Duration) *GetGCParams

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

func (*GetGCParams) SetContext

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

SetContext adds the context to the get GC params

func (*GetGCParams) SetGCID

func (o *GetGCParams) SetGCID(gCID int64)

SetGCID adds the gcId to the get GC params

func (*GetGCParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get GC params

func (*GetGCParams) SetTimeout

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

SetTimeout adds the timeout to the get GC params

func (*GetGCParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get GC params

func (*GetGCParams) WithContext

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

WithContext adds the context to the get GC params

func (*GetGCParams) WithGCID

func (o *GetGCParams) WithGCID(gCID int64) *GetGCParams

WithGCID adds the gCID to the get GC params

func (*GetGCParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get GC params

func (*GetGCParams) WithTimeout

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

WithTimeout adds the timeout to the get GC params

func (*GetGCParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get GC params

func (*GetGCParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGCReader

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

GetGCReader is a Reader for the GetGC structure.

func (*GetGCReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGCScheduleForbidden

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

	Payload *model.Errors
}

GetGCScheduleForbidden handles this case with default header values.

Forbidden

func NewGetGCScheduleForbidden

func NewGetGCScheduleForbidden() *GetGCScheduleForbidden

NewGetGCScheduleForbidden creates a GetGCScheduleForbidden with default headers values

func (*GetGCScheduleForbidden) Error

func (o *GetGCScheduleForbidden) Error() string

func (*GetGCScheduleForbidden) GetPayload

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

type GetGCScheduleInternalServerError

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

	Payload *model.Errors
}

GetGCScheduleInternalServerError handles this case with default header values.

Internal server error

func NewGetGCScheduleInternalServerError

func NewGetGCScheduleInternalServerError() *GetGCScheduleInternalServerError

NewGetGCScheduleInternalServerError creates a GetGCScheduleInternalServerError with default headers values

func (*GetGCScheduleInternalServerError) Error

func (*GetGCScheduleInternalServerError) GetPayload

type GetGCScheduleOK

type GetGCScheduleOK struct {
	Payload *model.GCHistory
}

GetGCScheduleOK handles this case with default header values.

Get gc's schedule.

func NewGetGCScheduleOK

func NewGetGCScheduleOK() *GetGCScheduleOK

NewGetGCScheduleOK creates a GetGCScheduleOK with default headers values

func (*GetGCScheduleOK) Error

func (o *GetGCScheduleOK) Error() string

func (*GetGCScheduleOK) GetPayload

func (o *GetGCScheduleOK) GetPayload() *model.GCHistory

type GetGCScheduleParams

type GetGCScheduleParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetGCScheduleParams contains all the parameters to send to the API endpoint for the get GC schedule operation typically these are written to a http.Request

func NewGetGCScheduleParams

func NewGetGCScheduleParams() *GetGCScheduleParams

NewGetGCScheduleParams creates a new GetGCScheduleParams object with the default values initialized.

func NewGetGCScheduleParamsWithContext

func NewGetGCScheduleParamsWithContext(ctx context.Context) *GetGCScheduleParams

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

func NewGetGCScheduleParamsWithHTTPClient

func NewGetGCScheduleParamsWithHTTPClient(client *http.Client) *GetGCScheduleParams

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

func NewGetGCScheduleParamsWithTimeout

func NewGetGCScheduleParamsWithTimeout(timeout time.Duration) *GetGCScheduleParams

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

func (*GetGCScheduleParams) SetContext

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

SetContext adds the context to the get GC schedule params

func (*GetGCScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get GC schedule params

func (*GetGCScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the get GC schedule params

func (*GetGCScheduleParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get GC schedule params

func (*GetGCScheduleParams) WithContext

WithContext adds the context to the get GC schedule params

func (*GetGCScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get GC schedule params

func (*GetGCScheduleParams) WithTimeout

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

WithTimeout adds the timeout to the get GC schedule params

func (*GetGCScheduleParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get GC schedule params

func (*GetGCScheduleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGCScheduleReader

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

GetGCScheduleReader is a Reader for the GetGCSchedule structure.

func (*GetGCScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGCScheduleUnauthorized

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

	Payload *model.Errors
}

GetGCScheduleUnauthorized handles this case with default header values.

Unauthorized

func NewGetGCScheduleUnauthorized

func NewGetGCScheduleUnauthorized() *GetGCScheduleUnauthorized

NewGetGCScheduleUnauthorized creates a GetGCScheduleUnauthorized with default headers values

func (*GetGCScheduleUnauthorized) Error

func (o *GetGCScheduleUnauthorized) Error() string

func (*GetGCScheduleUnauthorized) GetPayload

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

type GetGCUnauthorized

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

	Payload *model.Errors
}

GetGCUnauthorized handles this case with default header values.

Unauthorized

func NewGetGCUnauthorized

func NewGetGCUnauthorized() *GetGCUnauthorized

NewGetGCUnauthorized creates a GetGCUnauthorized with default headers values

func (*GetGCUnauthorized) Error

func (o *GetGCUnauthorized) Error() string

func (*GetGCUnauthorized) GetPayload

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

type UpdateGCScheduleBadRequest

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

	Payload *model.Errors
}

UpdateGCScheduleBadRequest handles this case with default header values.

Bad request

func NewUpdateGCScheduleBadRequest

func NewUpdateGCScheduleBadRequest() *UpdateGCScheduleBadRequest

NewUpdateGCScheduleBadRequest creates a UpdateGCScheduleBadRequest with default headers values

func (*UpdateGCScheduleBadRequest) Error

func (*UpdateGCScheduleBadRequest) GetPayload

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

type UpdateGCScheduleForbidden

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

	Payload *model.Errors
}

UpdateGCScheduleForbidden handles this case with default header values.

Forbidden

func NewUpdateGCScheduleForbidden

func NewUpdateGCScheduleForbidden() *UpdateGCScheduleForbidden

NewUpdateGCScheduleForbidden creates a UpdateGCScheduleForbidden with default headers values

func (*UpdateGCScheduleForbidden) Error

func (o *UpdateGCScheduleForbidden) Error() string

func (*UpdateGCScheduleForbidden) GetPayload

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

type UpdateGCScheduleInternalServerError

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

	Payload *model.Errors
}

UpdateGCScheduleInternalServerError handles this case with default header values.

Internal server error

func NewUpdateGCScheduleInternalServerError

func NewUpdateGCScheduleInternalServerError() *UpdateGCScheduleInternalServerError

NewUpdateGCScheduleInternalServerError creates a UpdateGCScheduleInternalServerError with default headers values

func (*UpdateGCScheduleInternalServerError) Error

func (*UpdateGCScheduleInternalServerError) GetPayload

type UpdateGCScheduleOK

type UpdateGCScheduleOK struct {
}

UpdateGCScheduleOK handles this case with default header values.

Updated gc's schedule successfully.

func NewUpdateGCScheduleOK

func NewUpdateGCScheduleOK() *UpdateGCScheduleOK

NewUpdateGCScheduleOK creates a UpdateGCScheduleOK with default headers values

func (*UpdateGCScheduleOK) Error

func (o *UpdateGCScheduleOK) Error() string

type UpdateGCScheduleParams

type UpdateGCScheduleParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Schedule
	  Updates of gc's schedule.

	*/
	Schedule *model.Schedule

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

UpdateGCScheduleParams contains all the parameters to send to the API endpoint for the update GC schedule operation typically these are written to a http.Request

func NewUpdateGCScheduleParams

func NewUpdateGCScheduleParams() *UpdateGCScheduleParams

NewUpdateGCScheduleParams creates a new UpdateGCScheduleParams object with the default values initialized.

func NewUpdateGCScheduleParamsWithContext

func NewUpdateGCScheduleParamsWithContext(ctx context.Context) *UpdateGCScheduleParams

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

func NewUpdateGCScheduleParamsWithHTTPClient

func NewUpdateGCScheduleParamsWithHTTPClient(client *http.Client) *UpdateGCScheduleParams

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

func NewUpdateGCScheduleParamsWithTimeout

func NewUpdateGCScheduleParamsWithTimeout(timeout time.Duration) *UpdateGCScheduleParams

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

func (*UpdateGCScheduleParams) SetContext

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

SetContext adds the context to the update GC schedule params

func (*UpdateGCScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update GC schedule params

func (*UpdateGCScheduleParams) SetSchedule

func (o *UpdateGCScheduleParams) SetSchedule(schedule *model.Schedule)

SetSchedule adds the schedule to the update GC schedule params

func (*UpdateGCScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the update GC schedule params

func (*UpdateGCScheduleParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the update GC schedule params

func (*UpdateGCScheduleParams) WithContext

WithContext adds the context to the update GC schedule params

func (*UpdateGCScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update GC schedule params

func (*UpdateGCScheduleParams) WithSchedule

func (o *UpdateGCScheduleParams) WithSchedule(schedule *model.Schedule) *UpdateGCScheduleParams

WithSchedule adds the schedule to the update GC schedule params

func (*UpdateGCScheduleParams) WithTimeout

WithTimeout adds the timeout to the update GC schedule params

func (*UpdateGCScheduleParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the update GC schedule params

func (*UpdateGCScheduleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateGCScheduleReader

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

UpdateGCScheduleReader is a Reader for the UpdateGCSchedule structure.

func (*UpdateGCScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGCScheduleUnauthorized

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

	Payload *model.Errors
}

UpdateGCScheduleUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateGCScheduleUnauthorized

func NewUpdateGCScheduleUnauthorized() *UpdateGCScheduleUnauthorized

NewUpdateGCScheduleUnauthorized creates a UpdateGCScheduleUnauthorized with default headers values

func (*UpdateGCScheduleUnauthorized) Error

func (*UpdateGCScheduleUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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