Documentation ¶
Index ¶
- type Client
- func (a *Client) GetSchedulePaused(params *GetSchedulePausedParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchedulePausedOK, error)
- func (a *Client) ListSchedules(params *ListSchedulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListSchedulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetSchedulePausedForbidden
- type GetSchedulePausedInternalServerError
- type GetSchedulePausedNotFound
- type GetSchedulePausedOK
- type GetSchedulePausedParams
- func NewGetSchedulePausedParams() *GetSchedulePausedParams
- func NewGetSchedulePausedParamsWithContext(ctx context.Context) *GetSchedulePausedParams
- func NewGetSchedulePausedParamsWithHTTPClient(client *http.Client) *GetSchedulePausedParams
- func NewGetSchedulePausedParamsWithTimeout(timeout time.Duration) *GetSchedulePausedParams
- func (o *GetSchedulePausedParams) SetContext(ctx context.Context)
- func (o *GetSchedulePausedParams) SetHTTPClient(client *http.Client)
- func (o *GetSchedulePausedParams) SetJobType(jobType string)
- func (o *GetSchedulePausedParams) SetTimeout(timeout time.Duration)
- func (o *GetSchedulePausedParams) SetXRequestID(xRequestID *string)
- func (o *GetSchedulePausedParams) WithContext(ctx context.Context) *GetSchedulePausedParams
- func (o *GetSchedulePausedParams) WithHTTPClient(client *http.Client) *GetSchedulePausedParams
- func (o *GetSchedulePausedParams) WithJobType(jobType string) *GetSchedulePausedParams
- func (o *GetSchedulePausedParams) WithTimeout(timeout time.Duration) *GetSchedulePausedParams
- func (o *GetSchedulePausedParams) WithXRequestID(xRequestID *string) *GetSchedulePausedParams
- func (o *GetSchedulePausedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSchedulePausedReader
- type GetSchedulePausedUnauthorized
- type ListSchedulesForbidden
- type ListSchedulesInternalServerError
- type ListSchedulesNotFound
- type ListSchedulesOK
- type ListSchedulesParams
- func (o *ListSchedulesParams) SetContext(ctx context.Context)
- func (o *ListSchedulesParams) SetHTTPClient(client *http.Client)
- func (o *ListSchedulesParams) SetPage(page *int64)
- func (o *ListSchedulesParams) SetPageSize(pageSize *int64)
- func (o *ListSchedulesParams) SetTimeout(timeout time.Duration)
- func (o *ListSchedulesParams) SetXRequestID(xRequestID *string)
- func (o *ListSchedulesParams) WithContext(ctx context.Context) *ListSchedulesParams
- func (o *ListSchedulesParams) WithHTTPClient(client *http.Client) *ListSchedulesParams
- func (o *ListSchedulesParams) WithPage(page *int64) *ListSchedulesParams
- func (o *ListSchedulesParams) WithPageSize(pageSize *int64) *ListSchedulesParams
- func (o *ListSchedulesParams) WithTimeout(timeout time.Duration) *ListSchedulesParams
- func (o *ListSchedulesParams) WithXRequestID(xRequestID *string) *ListSchedulesParams
- func (o *ListSchedulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSchedulesReader
- type ListSchedulesUnauthorized
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 schedule API
func (*Client) GetSchedulePaused ¶
func (a *Client) GetSchedulePaused(params *GetSchedulePausedParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchedulePausedOK, error)
GetSchedulePaused Get scheduler paused status
func (*Client) ListSchedules ¶
func (a *Client) ListSchedules(params *ListSchedulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListSchedulesOK, error)
ListSchedules List schedules
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetSchedulePaused(params *GetSchedulePausedParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchedulePausedOK, error) ListSchedules(params *ListSchedulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListSchedulesOK, 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 schedule API client.
type GetSchedulePausedForbidden ¶
type GetSchedulePausedForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetSchedulePausedForbidden handles this case with default header values.
Forbidden
func NewGetSchedulePausedForbidden ¶
func NewGetSchedulePausedForbidden() *GetSchedulePausedForbidden
NewGetSchedulePausedForbidden creates a GetSchedulePausedForbidden with default headers values
func (*GetSchedulePausedForbidden) Error ¶
func (o *GetSchedulePausedForbidden) Error() string
func (*GetSchedulePausedForbidden) GetPayload ¶
func (o *GetSchedulePausedForbidden) GetPayload() *model.Errors
type GetSchedulePausedInternalServerError ¶
type GetSchedulePausedInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetSchedulePausedInternalServerError handles this case with default header values.
Internal server error
func NewGetSchedulePausedInternalServerError ¶
func NewGetSchedulePausedInternalServerError() *GetSchedulePausedInternalServerError
NewGetSchedulePausedInternalServerError creates a GetSchedulePausedInternalServerError with default headers values
func (*GetSchedulePausedInternalServerError) Error ¶
func (o *GetSchedulePausedInternalServerError) Error() string
func (*GetSchedulePausedInternalServerError) GetPayload ¶
func (o *GetSchedulePausedInternalServerError) GetPayload() *model.Errors
type GetSchedulePausedNotFound ¶
type GetSchedulePausedNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetSchedulePausedNotFound handles this case with default header values.
Not found
func NewGetSchedulePausedNotFound ¶
func NewGetSchedulePausedNotFound() *GetSchedulePausedNotFound
NewGetSchedulePausedNotFound creates a GetSchedulePausedNotFound with default headers values
func (*GetSchedulePausedNotFound) Error ¶
func (o *GetSchedulePausedNotFound) Error() string
func (*GetSchedulePausedNotFound) GetPayload ¶
func (o *GetSchedulePausedNotFound) GetPayload() *model.Errors
type GetSchedulePausedOK ¶
type GetSchedulePausedOK struct {
Payload *model.SchedulerStatus
}
GetSchedulePausedOK handles this case with default header values.
Get scheduler status successfully.
func NewGetSchedulePausedOK ¶
func NewGetSchedulePausedOK() *GetSchedulePausedOK
NewGetSchedulePausedOK creates a GetSchedulePausedOK with default headers values
func (*GetSchedulePausedOK) Error ¶
func (o *GetSchedulePausedOK) Error() string
func (*GetSchedulePausedOK) GetPayload ¶
func (o *GetSchedulePausedOK) GetPayload() *model.SchedulerStatus
type GetSchedulePausedParams ¶
type GetSchedulePausedParams struct { /*XRequestID An unique ID for the request */ XRequestID *string /*JobType The type of the job. 'all' stands for all job types, current only support query with all */ JobType string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSchedulePausedParams contains all the parameters to send to the API endpoint for the get schedule paused operation typically these are written to a http.Request
func NewGetSchedulePausedParams ¶
func NewGetSchedulePausedParams() *GetSchedulePausedParams
NewGetSchedulePausedParams creates a new GetSchedulePausedParams object with the default values initialized.
func NewGetSchedulePausedParamsWithContext ¶
func NewGetSchedulePausedParamsWithContext(ctx context.Context) *GetSchedulePausedParams
NewGetSchedulePausedParamsWithContext creates a new GetSchedulePausedParams object with the default values initialized, and the ability to set a context for a request
func NewGetSchedulePausedParamsWithHTTPClient ¶
func NewGetSchedulePausedParamsWithHTTPClient(client *http.Client) *GetSchedulePausedParams
NewGetSchedulePausedParamsWithHTTPClient creates a new GetSchedulePausedParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSchedulePausedParamsWithTimeout ¶
func NewGetSchedulePausedParamsWithTimeout(timeout time.Duration) *GetSchedulePausedParams
NewGetSchedulePausedParamsWithTimeout creates a new GetSchedulePausedParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSchedulePausedParams) SetContext ¶
func (o *GetSchedulePausedParams) SetContext(ctx context.Context)
SetContext adds the context to the get schedule paused params
func (*GetSchedulePausedParams) SetHTTPClient ¶
func (o *GetSchedulePausedParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get schedule paused params
func (*GetSchedulePausedParams) SetJobType ¶
func (o *GetSchedulePausedParams) SetJobType(jobType string)
SetJobType adds the jobType to the get schedule paused params
func (*GetSchedulePausedParams) SetTimeout ¶
func (o *GetSchedulePausedParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get schedule paused params
func (*GetSchedulePausedParams) SetXRequestID ¶
func (o *GetSchedulePausedParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get schedule paused params
func (*GetSchedulePausedParams) WithContext ¶
func (o *GetSchedulePausedParams) WithContext(ctx context.Context) *GetSchedulePausedParams
WithContext adds the context to the get schedule paused params
func (*GetSchedulePausedParams) WithHTTPClient ¶
func (o *GetSchedulePausedParams) WithHTTPClient(client *http.Client) *GetSchedulePausedParams
WithHTTPClient adds the HTTPClient to the get schedule paused params
func (*GetSchedulePausedParams) WithJobType ¶
func (o *GetSchedulePausedParams) WithJobType(jobType string) *GetSchedulePausedParams
WithJobType adds the jobType to the get schedule paused params
func (*GetSchedulePausedParams) WithTimeout ¶
func (o *GetSchedulePausedParams) WithTimeout(timeout time.Duration) *GetSchedulePausedParams
WithTimeout adds the timeout to the get schedule paused params
func (*GetSchedulePausedParams) WithXRequestID ¶
func (o *GetSchedulePausedParams) WithXRequestID(xRequestID *string) *GetSchedulePausedParams
WithXRequestID adds the xRequestID to the get schedule paused params
func (*GetSchedulePausedParams) WriteToRequest ¶
func (o *GetSchedulePausedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSchedulePausedReader ¶
type GetSchedulePausedReader struct {
// contains filtered or unexported fields
}
GetSchedulePausedReader is a Reader for the GetSchedulePaused structure.
func (*GetSchedulePausedReader) ReadResponse ¶
func (o *GetSchedulePausedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSchedulePausedUnauthorized ¶
type GetSchedulePausedUnauthorized struct { string }XRequestID
GetSchedulePausedUnauthorized handles this case with default header values.
Unauthorized
func NewGetSchedulePausedUnauthorized ¶
func NewGetSchedulePausedUnauthorized() *GetSchedulePausedUnauthorized
NewGetSchedulePausedUnauthorized creates a GetSchedulePausedUnauthorized with default headers values
func (*GetSchedulePausedUnauthorized) Error ¶
func (o *GetSchedulePausedUnauthorized) Error() string
func (*GetSchedulePausedUnauthorized) GetPayload ¶
func (o *GetSchedulePausedUnauthorized) GetPayload() *model.Errors
type ListSchedulesForbidden ¶
type ListSchedulesForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListSchedulesForbidden handles this case with default header values.
Forbidden
func NewListSchedulesForbidden ¶
func NewListSchedulesForbidden() *ListSchedulesForbidden
NewListSchedulesForbidden creates a ListSchedulesForbidden with default headers values
func (*ListSchedulesForbidden) Error ¶
func (o *ListSchedulesForbidden) Error() string
func (*ListSchedulesForbidden) GetPayload ¶
func (o *ListSchedulesForbidden) GetPayload() *model.Errors
type ListSchedulesInternalServerError ¶
type ListSchedulesInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListSchedulesInternalServerError handles this case with default header values.
Internal server error
func NewListSchedulesInternalServerError ¶
func NewListSchedulesInternalServerError() *ListSchedulesInternalServerError
NewListSchedulesInternalServerError creates a ListSchedulesInternalServerError with default headers values
func (*ListSchedulesInternalServerError) Error ¶
func (o *ListSchedulesInternalServerError) Error() string
func (*ListSchedulesInternalServerError) GetPayload ¶
func (o *ListSchedulesInternalServerError) GetPayload() *model.Errors
type ListSchedulesNotFound ¶
type ListSchedulesNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListSchedulesNotFound handles this case with default header values.
Not found
func NewListSchedulesNotFound ¶
func NewListSchedulesNotFound() *ListSchedulesNotFound
NewListSchedulesNotFound creates a ListSchedulesNotFound with default headers values
func (*ListSchedulesNotFound) Error ¶
func (o *ListSchedulesNotFound) Error() string
func (*ListSchedulesNotFound) GetPayload ¶
func (o *ListSchedulesNotFound) GetPayload() *model.Errors
type ListSchedulesOK ¶
type ListSchedulesOK struct { /*Link to previous page and next page */ Link string /*The total count of available items */ XTotalCount int64 Payload []*model.ScheduleTask }
ListSchedulesOK handles this case with default header values.
list schedule successfully.
func NewListSchedulesOK ¶
func NewListSchedulesOK() *ListSchedulesOK
NewListSchedulesOK creates a ListSchedulesOK with default headers values
func (*ListSchedulesOK) Error ¶
func (o *ListSchedulesOK) Error() string
func (*ListSchedulesOK) GetPayload ¶
func (o *ListSchedulesOK) GetPayload() []*model.ScheduleTask
type ListSchedulesParams ¶
type ListSchedulesParams struct { /*XRequestID An unique ID for the request */ XRequestID *string /*Page The page number */ Page *int64 /*PageSize The size of per page */ PageSize *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSchedulesParams contains all the parameters to send to the API endpoint for the list schedules operation typically these are written to a http.Request
func NewListSchedulesParams ¶
func NewListSchedulesParams() *ListSchedulesParams
NewListSchedulesParams creates a new ListSchedulesParams object with the default values initialized.
func NewListSchedulesParamsWithContext ¶
func NewListSchedulesParamsWithContext(ctx context.Context) *ListSchedulesParams
NewListSchedulesParamsWithContext creates a new ListSchedulesParams object with the default values initialized, and the ability to set a context for a request
func NewListSchedulesParamsWithHTTPClient ¶
func NewListSchedulesParamsWithHTTPClient(client *http.Client) *ListSchedulesParams
NewListSchedulesParamsWithHTTPClient creates a new ListSchedulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListSchedulesParamsWithTimeout ¶
func NewListSchedulesParamsWithTimeout(timeout time.Duration) *ListSchedulesParams
NewListSchedulesParamsWithTimeout creates a new ListSchedulesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListSchedulesParams) SetContext ¶
func (o *ListSchedulesParams) SetContext(ctx context.Context)
SetContext adds the context to the list schedules params
func (*ListSchedulesParams) SetHTTPClient ¶
func (o *ListSchedulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list schedules params
func (*ListSchedulesParams) SetPage ¶
func (o *ListSchedulesParams) SetPage(page *int64)
SetPage adds the page to the list schedules params
func (*ListSchedulesParams) SetPageSize ¶
func (o *ListSchedulesParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the list schedules params
func (*ListSchedulesParams) SetTimeout ¶
func (o *ListSchedulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list schedules params
func (*ListSchedulesParams) SetXRequestID ¶
func (o *ListSchedulesParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the list schedules params
func (*ListSchedulesParams) WithContext ¶
func (o *ListSchedulesParams) WithContext(ctx context.Context) *ListSchedulesParams
WithContext adds the context to the list schedules params
func (*ListSchedulesParams) WithHTTPClient ¶
func (o *ListSchedulesParams) WithHTTPClient(client *http.Client) *ListSchedulesParams
WithHTTPClient adds the HTTPClient to the list schedules params
func (*ListSchedulesParams) WithPage ¶
func (o *ListSchedulesParams) WithPage(page *int64) *ListSchedulesParams
WithPage adds the page to the list schedules params
func (*ListSchedulesParams) WithPageSize ¶
func (o *ListSchedulesParams) WithPageSize(pageSize *int64) *ListSchedulesParams
WithPageSize adds the pageSize to the list schedules params
func (*ListSchedulesParams) WithTimeout ¶
func (o *ListSchedulesParams) WithTimeout(timeout time.Duration) *ListSchedulesParams
WithTimeout adds the timeout to the list schedules params
func (*ListSchedulesParams) WithXRequestID ¶
func (o *ListSchedulesParams) WithXRequestID(xRequestID *string) *ListSchedulesParams
WithXRequestID adds the xRequestID to the list schedules params
func (*ListSchedulesParams) WriteToRequest ¶
func (o *ListSchedulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSchedulesReader ¶
type ListSchedulesReader struct {
// contains filtered or unexported fields
}
ListSchedulesReader is a Reader for the ListSchedules structure.
func (*ListSchedulesReader) ReadResponse ¶
func (o *ListSchedulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSchedulesUnauthorized ¶
type ListSchedulesUnauthorized struct { string }XRequestID
ListSchedulesUnauthorized handles this case with default header values.
Unauthorized
func NewListSchedulesUnauthorized ¶
func NewListSchedulesUnauthorized() *ListSchedulesUnauthorized
NewListSchedulesUnauthorized creates a ListSchedulesUnauthorized with default headers values
func (*ListSchedulesUnauthorized) Error ¶
func (o *ListSchedulesUnauthorized) Error() string
func (*ListSchedulesUnauthorized) GetPayload ¶
func (o *ListSchedulesUnauthorized) GetPayload() *model.Errors