Documentation ¶
Index ¶
- type API
- type Client
- type GetSchedulePausedForbidden
- func (o *GetSchedulePausedForbidden) Error() string
- func (o *GetSchedulePausedForbidden) GetPayload() *models.Errors
- func (o *GetSchedulePausedForbidden) IsClientError() bool
- func (o *GetSchedulePausedForbidden) IsCode(code int) bool
- func (o *GetSchedulePausedForbidden) IsRedirect() bool
- func (o *GetSchedulePausedForbidden) IsServerError() bool
- func (o *GetSchedulePausedForbidden) IsSuccess() bool
- func (o *GetSchedulePausedForbidden) String() string
- type GetSchedulePausedInternalServerError
- func (o *GetSchedulePausedInternalServerError) Error() string
- func (o *GetSchedulePausedInternalServerError) GetPayload() *models.Errors
- func (o *GetSchedulePausedInternalServerError) IsClientError() bool
- func (o *GetSchedulePausedInternalServerError) IsCode(code int) bool
- func (o *GetSchedulePausedInternalServerError) IsRedirect() bool
- func (o *GetSchedulePausedInternalServerError) IsServerError() bool
- func (o *GetSchedulePausedInternalServerError) IsSuccess() bool
- func (o *GetSchedulePausedInternalServerError) String() string
- type GetSchedulePausedNotFound
- func (o *GetSchedulePausedNotFound) Error() string
- func (o *GetSchedulePausedNotFound) GetPayload() *models.Errors
- func (o *GetSchedulePausedNotFound) IsClientError() bool
- func (o *GetSchedulePausedNotFound) IsCode(code int) bool
- func (o *GetSchedulePausedNotFound) IsRedirect() bool
- func (o *GetSchedulePausedNotFound) IsServerError() bool
- func (o *GetSchedulePausedNotFound) IsSuccess() bool
- func (o *GetSchedulePausedNotFound) String() string
- type GetSchedulePausedOK
- func (o *GetSchedulePausedOK) Error() string
- func (o *GetSchedulePausedOK) GetPayload() *models.SchedulerStatus
- func (o *GetSchedulePausedOK) IsClientError() bool
- func (o *GetSchedulePausedOK) IsCode(code int) bool
- func (o *GetSchedulePausedOK) IsRedirect() bool
- func (o *GetSchedulePausedOK) IsServerError() bool
- func (o *GetSchedulePausedOK) IsSuccess() bool
- func (o *GetSchedulePausedOK) String() string
- 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) SetDefaults()
- 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) WithDefaults() *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
- func (o *GetSchedulePausedUnauthorized) Error() string
- func (o *GetSchedulePausedUnauthorized) GetPayload() *models.Errors
- func (o *GetSchedulePausedUnauthorized) IsClientError() bool
- func (o *GetSchedulePausedUnauthorized) IsCode(code int) bool
- func (o *GetSchedulePausedUnauthorized) IsRedirect() bool
- func (o *GetSchedulePausedUnauthorized) IsServerError() bool
- func (o *GetSchedulePausedUnauthorized) IsSuccess() bool
- func (o *GetSchedulePausedUnauthorized) String() string
- type ListSchedulesForbidden
- func (o *ListSchedulesForbidden) Error() string
- func (o *ListSchedulesForbidden) GetPayload() *models.Errors
- func (o *ListSchedulesForbidden) IsClientError() bool
- func (o *ListSchedulesForbidden) IsCode(code int) bool
- func (o *ListSchedulesForbidden) IsRedirect() bool
- func (o *ListSchedulesForbidden) IsServerError() bool
- func (o *ListSchedulesForbidden) IsSuccess() bool
- func (o *ListSchedulesForbidden) String() string
- type ListSchedulesInternalServerError
- func (o *ListSchedulesInternalServerError) Error() string
- func (o *ListSchedulesInternalServerError) GetPayload() *models.Errors
- func (o *ListSchedulesInternalServerError) IsClientError() bool
- func (o *ListSchedulesInternalServerError) IsCode(code int) bool
- func (o *ListSchedulesInternalServerError) IsRedirect() bool
- func (o *ListSchedulesInternalServerError) IsServerError() bool
- func (o *ListSchedulesInternalServerError) IsSuccess() bool
- func (o *ListSchedulesInternalServerError) String() string
- type ListSchedulesNotFound
- func (o *ListSchedulesNotFound) Error() string
- func (o *ListSchedulesNotFound) GetPayload() *models.Errors
- func (o *ListSchedulesNotFound) IsClientError() bool
- func (o *ListSchedulesNotFound) IsCode(code int) bool
- func (o *ListSchedulesNotFound) IsRedirect() bool
- func (o *ListSchedulesNotFound) IsServerError() bool
- func (o *ListSchedulesNotFound) IsSuccess() bool
- func (o *ListSchedulesNotFound) String() string
- type ListSchedulesOK
- func (o *ListSchedulesOK) Error() string
- func (o *ListSchedulesOK) GetPayload() []*models.ScheduleTask
- func (o *ListSchedulesOK) IsClientError() bool
- func (o *ListSchedulesOK) IsCode(code int) bool
- func (o *ListSchedulesOK) IsRedirect() bool
- func (o *ListSchedulesOK) IsServerError() bool
- func (o *ListSchedulesOK) IsSuccess() bool
- func (o *ListSchedulesOK) String() string
- type ListSchedulesParams
- func (o *ListSchedulesParams) SetContext(ctx context.Context)
- func (o *ListSchedulesParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *ListSchedulesUnauthorized) Error() string
- func (o *ListSchedulesUnauthorized) GetPayload() *models.Errors
- func (o *ListSchedulesUnauthorized) IsClientError() bool
- func (o *ListSchedulesUnauthorized) IsCode(code int) bool
- func (o *ListSchedulesUnauthorized) IsRedirect() bool
- func (o *ListSchedulesUnauthorized) IsServerError() bool
- func (o *ListSchedulesUnauthorized) IsSuccess() bool
- func (o *ListSchedulesUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* GetSchedulePaused Get scheduler paused status*/ GetSchedulePaused(ctx context.Context, params *GetSchedulePausedParams) (*GetSchedulePausedOK, error) /* ListSchedules List schedules*/ ListSchedules(ctx context.Context, params *ListSchedulesParams) (*ListSchedulesOK, error) }
API is the interface of the schedule client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for schedule API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new schedule API client.
func (*Client) GetSchedulePaused ¶
func (a *Client) GetSchedulePaused(ctx context.Context, params *GetSchedulePausedParams) (*GetSchedulePausedOK, error)
GetSchedulePaused Get scheduler paused status
func (*Client) ListSchedules ¶
func (a *Client) ListSchedules(ctx context.Context, params *ListSchedulesParams) (*ListSchedulesOK, error)
ListSchedules List schedules
type GetSchedulePausedForbidden ¶
type GetSchedulePausedForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetSchedulePausedForbidden describes a response with status code 403, 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() *models.Errors
func (*GetSchedulePausedForbidden) IsClientError ¶
func (o *GetSchedulePausedForbidden) IsClientError() bool
IsClientError returns true when this get schedule paused forbidden response has a 4xx status code
func (*GetSchedulePausedForbidden) IsCode ¶
func (o *GetSchedulePausedForbidden) IsCode(code int) bool
IsCode returns true when this get schedule paused forbidden response a status code equal to that given
func (*GetSchedulePausedForbidden) IsRedirect ¶
func (o *GetSchedulePausedForbidden) IsRedirect() bool
IsRedirect returns true when this get schedule paused forbidden response has a 3xx status code
func (*GetSchedulePausedForbidden) IsServerError ¶
func (o *GetSchedulePausedForbidden) IsServerError() bool
IsServerError returns true when this get schedule paused forbidden response has a 5xx status code
func (*GetSchedulePausedForbidden) IsSuccess ¶
func (o *GetSchedulePausedForbidden) IsSuccess() bool
IsSuccess returns true when this get schedule paused forbidden response has a 2xx status code
func (*GetSchedulePausedForbidden) String ¶
func (o *GetSchedulePausedForbidden) String() string
type GetSchedulePausedInternalServerError ¶
type GetSchedulePausedInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetSchedulePausedInternalServerError describes a response with status code 500, 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() *models.Errors
func (*GetSchedulePausedInternalServerError) IsClientError ¶
func (o *GetSchedulePausedInternalServerError) IsClientError() bool
IsClientError returns true when this get schedule paused internal server error response has a 4xx status code
func (*GetSchedulePausedInternalServerError) IsCode ¶
func (o *GetSchedulePausedInternalServerError) IsCode(code int) bool
IsCode returns true when this get schedule paused internal server error response a status code equal to that given
func (*GetSchedulePausedInternalServerError) IsRedirect ¶
func (o *GetSchedulePausedInternalServerError) IsRedirect() bool
IsRedirect returns true when this get schedule paused internal server error response has a 3xx status code
func (*GetSchedulePausedInternalServerError) IsServerError ¶
func (o *GetSchedulePausedInternalServerError) IsServerError() bool
IsServerError returns true when this get schedule paused internal server error response has a 5xx status code
func (*GetSchedulePausedInternalServerError) IsSuccess ¶
func (o *GetSchedulePausedInternalServerError) IsSuccess() bool
IsSuccess returns true when this get schedule paused internal server error response has a 2xx status code
func (*GetSchedulePausedInternalServerError) String ¶
func (o *GetSchedulePausedInternalServerError) String() string
type GetSchedulePausedNotFound ¶
type GetSchedulePausedNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetSchedulePausedNotFound describes a response with status code 404, 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() *models.Errors
func (*GetSchedulePausedNotFound) IsClientError ¶
func (o *GetSchedulePausedNotFound) IsClientError() bool
IsClientError returns true when this get schedule paused not found response has a 4xx status code
func (*GetSchedulePausedNotFound) IsCode ¶
func (o *GetSchedulePausedNotFound) IsCode(code int) bool
IsCode returns true when this get schedule paused not found response a status code equal to that given
func (*GetSchedulePausedNotFound) IsRedirect ¶
func (o *GetSchedulePausedNotFound) IsRedirect() bool
IsRedirect returns true when this get schedule paused not found response has a 3xx status code
func (*GetSchedulePausedNotFound) IsServerError ¶
func (o *GetSchedulePausedNotFound) IsServerError() bool
IsServerError returns true when this get schedule paused not found response has a 5xx status code
func (*GetSchedulePausedNotFound) IsSuccess ¶
func (o *GetSchedulePausedNotFound) IsSuccess() bool
IsSuccess returns true when this get schedule paused not found response has a 2xx status code
func (*GetSchedulePausedNotFound) String ¶
func (o *GetSchedulePausedNotFound) String() string
type GetSchedulePausedOK ¶
type GetSchedulePausedOK struct {
Payload *models.SchedulerStatus
}
GetSchedulePausedOK describes a response with status code 200, 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() *models.SchedulerStatus
func (*GetSchedulePausedOK) IsClientError ¶
func (o *GetSchedulePausedOK) IsClientError() bool
IsClientError returns true when this get schedule paused o k response has a 4xx status code
func (*GetSchedulePausedOK) IsCode ¶
func (o *GetSchedulePausedOK) IsCode(code int) bool
IsCode returns true when this get schedule paused o k response a status code equal to that given
func (*GetSchedulePausedOK) IsRedirect ¶
func (o *GetSchedulePausedOK) IsRedirect() bool
IsRedirect returns true when this get schedule paused o k response has a 3xx status code
func (*GetSchedulePausedOK) IsServerError ¶
func (o *GetSchedulePausedOK) IsServerError() bool
IsServerError returns true when this get schedule paused o k response has a 5xx status code
func (*GetSchedulePausedOK) IsSuccess ¶
func (o *GetSchedulePausedOK) IsSuccess() bool
IsSuccess returns true when this get schedule paused o k response has a 2xx status code
func (*GetSchedulePausedOK) String ¶
func (o *GetSchedulePausedOK) String() string
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 timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetSchedulePausedParamsWithContext ¶
func NewGetSchedulePausedParamsWithContext(ctx context.Context) *GetSchedulePausedParams
NewGetSchedulePausedParamsWithContext creates a new GetSchedulePausedParams object with 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 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 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) SetDefaults ¶
func (o *GetSchedulePausedParams) SetDefaults()
SetDefaults hydrates default values in the get schedule paused params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *GetSchedulePausedParams) WithDefaults() *GetSchedulePausedParams
WithDefaults hydrates default values in the get schedule paused params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 401, 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() *models.Errors
func (*GetSchedulePausedUnauthorized) IsClientError ¶
func (o *GetSchedulePausedUnauthorized) IsClientError() bool
IsClientError returns true when this get schedule paused unauthorized response has a 4xx status code
func (*GetSchedulePausedUnauthorized) IsCode ¶
func (o *GetSchedulePausedUnauthorized) IsCode(code int) bool
IsCode returns true when this get schedule paused unauthorized response a status code equal to that given
func (*GetSchedulePausedUnauthorized) IsRedirect ¶
func (o *GetSchedulePausedUnauthorized) IsRedirect() bool
IsRedirect returns true when this get schedule paused unauthorized response has a 3xx status code
func (*GetSchedulePausedUnauthorized) IsServerError ¶
func (o *GetSchedulePausedUnauthorized) IsServerError() bool
IsServerError returns true when this get schedule paused unauthorized response has a 5xx status code
func (*GetSchedulePausedUnauthorized) IsSuccess ¶
func (o *GetSchedulePausedUnauthorized) IsSuccess() bool
IsSuccess returns true when this get schedule paused unauthorized response has a 2xx status code
func (*GetSchedulePausedUnauthorized) String ¶
func (o *GetSchedulePausedUnauthorized) String() string
type ListSchedulesForbidden ¶
type ListSchedulesForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListSchedulesForbidden describes a response with status code 403, 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() *models.Errors
func (*ListSchedulesForbidden) IsClientError ¶
func (o *ListSchedulesForbidden) IsClientError() bool
IsClientError returns true when this list schedules forbidden response has a 4xx status code
func (*ListSchedulesForbidden) IsCode ¶
func (o *ListSchedulesForbidden) IsCode(code int) bool
IsCode returns true when this list schedules forbidden response a status code equal to that given
func (*ListSchedulesForbidden) IsRedirect ¶
func (o *ListSchedulesForbidden) IsRedirect() bool
IsRedirect returns true when this list schedules forbidden response has a 3xx status code
func (*ListSchedulesForbidden) IsServerError ¶
func (o *ListSchedulesForbidden) IsServerError() bool
IsServerError returns true when this list schedules forbidden response has a 5xx status code
func (*ListSchedulesForbidden) IsSuccess ¶
func (o *ListSchedulesForbidden) IsSuccess() bool
IsSuccess returns true when this list schedules forbidden response has a 2xx status code
func (*ListSchedulesForbidden) String ¶
func (o *ListSchedulesForbidden) String() string
type ListSchedulesInternalServerError ¶
type ListSchedulesInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListSchedulesInternalServerError describes a response with status code 500, 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() *models.Errors
func (*ListSchedulesInternalServerError) IsClientError ¶
func (o *ListSchedulesInternalServerError) IsClientError() bool
IsClientError returns true when this list schedules internal server error response has a 4xx status code
func (*ListSchedulesInternalServerError) IsCode ¶
func (o *ListSchedulesInternalServerError) IsCode(code int) bool
IsCode returns true when this list schedules internal server error response a status code equal to that given
func (*ListSchedulesInternalServerError) IsRedirect ¶
func (o *ListSchedulesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list schedules internal server error response has a 3xx status code
func (*ListSchedulesInternalServerError) IsServerError ¶
func (o *ListSchedulesInternalServerError) IsServerError() bool
IsServerError returns true when this list schedules internal server error response has a 5xx status code
func (*ListSchedulesInternalServerError) IsSuccess ¶
func (o *ListSchedulesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list schedules internal server error response has a 2xx status code
func (*ListSchedulesInternalServerError) String ¶
func (o *ListSchedulesInternalServerError) String() string
type ListSchedulesNotFound ¶
type ListSchedulesNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListSchedulesNotFound describes a response with status code 404, 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() *models.Errors
func (*ListSchedulesNotFound) IsClientError ¶
func (o *ListSchedulesNotFound) IsClientError() bool
IsClientError returns true when this list schedules not found response has a 4xx status code
func (*ListSchedulesNotFound) IsCode ¶
func (o *ListSchedulesNotFound) IsCode(code int) bool
IsCode returns true when this list schedules not found response a status code equal to that given
func (*ListSchedulesNotFound) IsRedirect ¶
func (o *ListSchedulesNotFound) IsRedirect() bool
IsRedirect returns true when this list schedules not found response has a 3xx status code
func (*ListSchedulesNotFound) IsServerError ¶
func (o *ListSchedulesNotFound) IsServerError() bool
IsServerError returns true when this list schedules not found response has a 5xx status code
func (*ListSchedulesNotFound) IsSuccess ¶
func (o *ListSchedulesNotFound) IsSuccess() bool
IsSuccess returns true when this list schedules not found response has a 2xx status code
func (*ListSchedulesNotFound) String ¶
func (o *ListSchedulesNotFound) String() string
type ListSchedulesOK ¶
type ListSchedulesOK struct { /* Link to previous page and next page */ Link string /* The total count of available items */ XTotalCount int64 Payload []*models.ScheduleTask }
ListSchedulesOK describes a response with status code 200, 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() []*models.ScheduleTask
func (*ListSchedulesOK) IsClientError ¶
func (o *ListSchedulesOK) IsClientError() bool
IsClientError returns true when this list schedules o k response has a 4xx status code
func (*ListSchedulesOK) IsCode ¶
func (o *ListSchedulesOK) IsCode(code int) bool
IsCode returns true when this list schedules o k response a status code equal to that given
func (*ListSchedulesOK) IsRedirect ¶
func (o *ListSchedulesOK) IsRedirect() bool
IsRedirect returns true when this list schedules o k response has a 3xx status code
func (*ListSchedulesOK) IsServerError ¶
func (o *ListSchedulesOK) IsServerError() bool
IsServerError returns true when this list schedules o k response has a 5xx status code
func (*ListSchedulesOK) IsSuccess ¶
func (o *ListSchedulesOK) IsSuccess() bool
IsSuccess returns true when this list schedules o k response has a 2xx status code
func (*ListSchedulesOK) String ¶
func (o *ListSchedulesOK) String() string
type ListSchedulesParams ¶
type ListSchedulesParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Page. The page number Format: int64 Default: 1 */ Page *int64 /* PageSize. The size of per page Format: int64 Default: 10 */ 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 timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListSchedulesParamsWithContext ¶
func NewListSchedulesParamsWithContext(ctx context.Context) *ListSchedulesParams
NewListSchedulesParamsWithContext creates a new ListSchedulesParams object with 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 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 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) SetDefaults ¶
func (o *ListSchedulesParams) SetDefaults()
SetDefaults hydrates default values in the list schedules params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *ListSchedulesParams) WithDefaults() *ListSchedulesParams
WithDefaults hydrates default values in the list schedules params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 401, 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() *models.Errors
func (*ListSchedulesUnauthorized) IsClientError ¶
func (o *ListSchedulesUnauthorized) IsClientError() bool
IsClientError returns true when this list schedules unauthorized response has a 4xx status code
func (*ListSchedulesUnauthorized) IsCode ¶
func (o *ListSchedulesUnauthorized) IsCode(code int) bool
IsCode returns true when this list schedules unauthorized response a status code equal to that given
func (*ListSchedulesUnauthorized) IsRedirect ¶
func (o *ListSchedulesUnauthorized) IsRedirect() bool
IsRedirect returns true when this list schedules unauthorized response has a 3xx status code
func (*ListSchedulesUnauthorized) IsServerError ¶
func (o *ListSchedulesUnauthorized) IsServerError() bool
IsServerError returns true when this list schedules unauthorized response has a 5xx status code
func (*ListSchedulesUnauthorized) IsSuccess ¶
func (o *ListSchedulesUnauthorized) IsSuccess() bool
IsSuccess returns true when this list schedules unauthorized response has a 2xx status code
func (*ListSchedulesUnauthorized) String ¶
func (o *ListSchedulesUnauthorized) String() string