job

package
v0.0.0-...-3852cca Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 10 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 job API

func (*Client) CreateJob

func (a *Client) CreateJob(params *CreateJobParams, opts ...ClientOption) (*CreateJobOK, error)

CreateJob creates job

func (*Client) DeleteJob

func (a *Client) DeleteJob(params *DeleteJobParams, opts ...ClientOption) (*DeleteJobOK, error)

DeleteJob deletes job

func (*Client) GetJob

func (a *Client) GetJob(params *GetJobParams, opts ...ClientOption) (*GetJobOK, error)

GetJob gets job

func (*Client) GetJobs

func (a *Client) GetJobs(params *GetJobsParams, opts ...ClientOption) (*GetJobsOK, error)

GetJobs gets jobs

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StopJob

func (a *Client) StopJob(params *StopJobParams, opts ...ClientOption) (*StopJobOK, error)

StopJob stops job

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateJob(params *CreateJobParams, opts ...ClientOption) (*CreateJobOK, error)

	DeleteJob(params *DeleteJobParams, opts ...ClientOption) (*DeleteJobOK, error)

	GetJob(params *GetJobParams, opts ...ClientOption) (*GetJobOK, error)

	GetJobs(params *GetJobsParams, opts ...ClientOption) (*GetJobsOK, error)

	StopJob(params *StopJobParams, opts ...ClientOption) (*StopJobOK, 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 job API client.

type CreateJobBadRequest

type CreateJobBadRequest struct {
	Payload *models.Status
}

CreateJobBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateJobBadRequest

func NewCreateJobBadRequest() *CreateJobBadRequest

NewCreateJobBadRequest creates a CreateJobBadRequest with default headers values

func (*CreateJobBadRequest) Code

func (o *CreateJobBadRequest) Code() int

Code gets the status code for the create job bad request response

func (*CreateJobBadRequest) Error

func (o *CreateJobBadRequest) Error() string

func (*CreateJobBadRequest) GetPayload

func (o *CreateJobBadRequest) GetPayload() *models.Status

func (*CreateJobBadRequest) IsClientError

func (o *CreateJobBadRequest) IsClientError() bool

IsClientError returns true when this create job bad request response has a 4xx status code

func (*CreateJobBadRequest) IsCode

func (o *CreateJobBadRequest) IsCode(code int) bool

IsCode returns true when this create job bad request response a status code equal to that given

func (*CreateJobBadRequest) IsRedirect

func (o *CreateJobBadRequest) IsRedirect() bool

IsRedirect returns true when this create job bad request response has a 3xx status code

func (*CreateJobBadRequest) IsServerError

func (o *CreateJobBadRequest) IsServerError() bool

IsServerError returns true when this create job bad request response has a 5xx status code

func (*CreateJobBadRequest) IsSuccess

func (o *CreateJobBadRequest) IsSuccess() bool

IsSuccess returns true when this create job bad request response has a 2xx status code

func (*CreateJobBadRequest) String

func (o *CreateJobBadRequest) String() string

type CreateJobInternalServerError

type CreateJobInternalServerError struct {
	Payload *models.Status
}

CreateJobInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewCreateJobInternalServerError

func NewCreateJobInternalServerError() *CreateJobInternalServerError

NewCreateJobInternalServerError creates a CreateJobInternalServerError with default headers values

func (*CreateJobInternalServerError) Code

Code gets the status code for the create job internal server error response

func (*CreateJobInternalServerError) Error

func (*CreateJobInternalServerError) GetPayload

func (o *CreateJobInternalServerError) GetPayload() *models.Status

func (*CreateJobInternalServerError) IsClientError

func (o *CreateJobInternalServerError) IsClientError() bool

IsClientError returns true when this create job internal server error response has a 4xx status code

func (*CreateJobInternalServerError) IsCode

func (o *CreateJobInternalServerError) IsCode(code int) bool

IsCode returns true when this create job internal server error response a status code equal to that given

func (*CreateJobInternalServerError) IsRedirect

func (o *CreateJobInternalServerError) IsRedirect() bool

IsRedirect returns true when this create job internal server error response has a 3xx status code

func (*CreateJobInternalServerError) IsServerError

func (o *CreateJobInternalServerError) IsServerError() bool

IsServerError returns true when this create job internal server error response has a 5xx status code

func (*CreateJobInternalServerError) IsSuccess

func (o *CreateJobInternalServerError) IsSuccess() bool

IsSuccess returns true when this create job internal server error response has a 2xx status code

func (*CreateJobInternalServerError) String

type CreateJobNotFound

type CreateJobNotFound struct {
	Payload *models.Status
}

CreateJobNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateJobNotFound

func NewCreateJobNotFound() *CreateJobNotFound

NewCreateJobNotFound creates a CreateJobNotFound with default headers values

func (*CreateJobNotFound) Code

func (o *CreateJobNotFound) Code() int

Code gets the status code for the create job not found response

func (*CreateJobNotFound) Error

func (o *CreateJobNotFound) Error() string

func (*CreateJobNotFound) GetPayload

func (o *CreateJobNotFound) GetPayload() *models.Status

func (*CreateJobNotFound) IsClientError

func (o *CreateJobNotFound) IsClientError() bool

IsClientError returns true when this create job not found response has a 4xx status code

func (*CreateJobNotFound) IsCode

func (o *CreateJobNotFound) IsCode(code int) bool

IsCode returns true when this create job not found response a status code equal to that given

func (*CreateJobNotFound) IsRedirect

func (o *CreateJobNotFound) IsRedirect() bool

IsRedirect returns true when this create job not found response has a 3xx status code

func (*CreateJobNotFound) IsServerError

func (o *CreateJobNotFound) IsServerError() bool

IsServerError returns true when this create job not found response has a 5xx status code

func (*CreateJobNotFound) IsSuccess

func (o *CreateJobNotFound) IsSuccess() bool

IsSuccess returns true when this create job not found response has a 2xx status code

func (*CreateJobNotFound) String

func (o *CreateJobNotFound) String() string

type CreateJobOK

type CreateJobOK struct {
	Payload *models.JobStatus
}

CreateJobOK describes a response with status code 200, with default header values.

Successful create job

func NewCreateJobOK

func NewCreateJobOK() *CreateJobOK

NewCreateJobOK creates a CreateJobOK with default headers values

func (*CreateJobOK) Code

func (o *CreateJobOK) Code() int

Code gets the status code for the create job o k response

func (*CreateJobOK) Error

func (o *CreateJobOK) Error() string

func (*CreateJobOK) GetPayload

func (o *CreateJobOK) GetPayload() *models.JobStatus

func (*CreateJobOK) IsClientError

func (o *CreateJobOK) IsClientError() bool

IsClientError returns true when this create job o k response has a 4xx status code

func (*CreateJobOK) IsCode

func (o *CreateJobOK) IsCode(code int) bool

IsCode returns true when this create job o k response a status code equal to that given

func (*CreateJobOK) IsRedirect

func (o *CreateJobOK) IsRedirect() bool

IsRedirect returns true when this create job o k response has a 3xx status code

func (*CreateJobOK) IsServerError

func (o *CreateJobOK) IsServerError() bool

IsServerError returns true when this create job o k response has a 5xx status code

func (*CreateJobOK) IsSuccess

func (o *CreateJobOK) IsSuccess() bool

IsSuccess returns true when this create job o k response has a 2xx status code

func (*CreateJobOK) String

func (o *CreateJobOK) String() string

type CreateJobParams

type CreateJobParams struct {

	/* JobCreation.

	   Job to create
	*/
	JobCreation *models.JobScheduleDescription

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

CreateJobParams contains all the parameters to send to the API endpoint

for the create job operation.

Typically these are written to a http.Request.

func NewCreateJobParams

func NewCreateJobParams() *CreateJobParams

NewCreateJobParams creates a new CreateJobParams 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 NewCreateJobParamsWithContext

func NewCreateJobParamsWithContext(ctx context.Context) *CreateJobParams

NewCreateJobParamsWithContext creates a new CreateJobParams object with the ability to set a context for a request.

func NewCreateJobParamsWithHTTPClient

func NewCreateJobParamsWithHTTPClient(client *http.Client) *CreateJobParams

NewCreateJobParamsWithHTTPClient creates a new CreateJobParams object with the ability to set a custom HTTPClient for a request.

func NewCreateJobParamsWithTimeout

func NewCreateJobParamsWithTimeout(timeout time.Duration) *CreateJobParams

NewCreateJobParamsWithTimeout creates a new CreateJobParams object with the ability to set a timeout on a request.

func (*CreateJobParams) SetContext

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

SetContext adds the context to the create job params

func (*CreateJobParams) SetDefaults

func (o *CreateJobParams) SetDefaults()

SetDefaults hydrates default values in the create job params (not the query body).

All values with no default are reset to their zero value.

func (*CreateJobParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create job params

func (*CreateJobParams) SetJobCreation

func (o *CreateJobParams) SetJobCreation(jobCreation *models.JobScheduleDescription)

SetJobCreation adds the jobCreation to the create job params

func (*CreateJobParams) SetTimeout

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

SetTimeout adds the timeout to the create job params

func (*CreateJobParams) WithContext

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

WithContext adds the context to the create job params

func (*CreateJobParams) WithDefaults

func (o *CreateJobParams) WithDefaults() *CreateJobParams

WithDefaults hydrates default values in the create job params (not the query body).

All values with no default are reset to their zero value.

func (*CreateJobParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create job params

func (*CreateJobParams) WithJobCreation

func (o *CreateJobParams) WithJobCreation(jobCreation *models.JobScheduleDescription) *CreateJobParams

WithJobCreation adds the jobCreation to the create job params

func (*CreateJobParams) WithTimeout

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

WithTimeout adds the timeout to the create job params

func (*CreateJobParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateJobReader

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

CreateJobReader is a Reader for the CreateJob structure.

func (*CreateJobReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateJobUnprocessableEntity

type CreateJobUnprocessableEntity struct {
	Payload *models.Status
}

CreateJobUnprocessableEntity describes a response with status code 422, with default header values.

Invalid data in request

func NewCreateJobUnprocessableEntity

func NewCreateJobUnprocessableEntity() *CreateJobUnprocessableEntity

NewCreateJobUnprocessableEntity creates a CreateJobUnprocessableEntity with default headers values

func (*CreateJobUnprocessableEntity) Code

Code gets the status code for the create job unprocessable entity response

func (*CreateJobUnprocessableEntity) Error

func (*CreateJobUnprocessableEntity) GetPayload

func (o *CreateJobUnprocessableEntity) GetPayload() *models.Status

func (*CreateJobUnprocessableEntity) IsClientError

func (o *CreateJobUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create job unprocessable entity response has a 4xx status code

func (*CreateJobUnprocessableEntity) IsCode

func (o *CreateJobUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this create job unprocessable entity response a status code equal to that given

func (*CreateJobUnprocessableEntity) IsRedirect

func (o *CreateJobUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this create job unprocessable entity response has a 3xx status code

func (*CreateJobUnprocessableEntity) IsServerError

func (o *CreateJobUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create job unprocessable entity response has a 5xx status code

func (*CreateJobUnprocessableEntity) IsSuccess

func (o *CreateJobUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this create job unprocessable entity response has a 2xx status code

func (*CreateJobUnprocessableEntity) String

type DeleteJobInternalServerError

type DeleteJobInternalServerError struct {
	Payload *models.Status
}

DeleteJobInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteJobInternalServerError

func NewDeleteJobInternalServerError() *DeleteJobInternalServerError

NewDeleteJobInternalServerError creates a DeleteJobInternalServerError with default headers values

func (*DeleteJobInternalServerError) Code

Code gets the status code for the delete job internal server error response

func (*DeleteJobInternalServerError) Error

func (*DeleteJobInternalServerError) GetPayload

func (o *DeleteJobInternalServerError) GetPayload() *models.Status

func (*DeleteJobInternalServerError) IsClientError

func (o *DeleteJobInternalServerError) IsClientError() bool

IsClientError returns true when this delete job internal server error response has a 4xx status code

func (*DeleteJobInternalServerError) IsCode

func (o *DeleteJobInternalServerError) IsCode(code int) bool

IsCode returns true when this delete job internal server error response a status code equal to that given

func (*DeleteJobInternalServerError) IsRedirect

func (o *DeleteJobInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete job internal server error response has a 3xx status code

func (*DeleteJobInternalServerError) IsServerError

func (o *DeleteJobInternalServerError) IsServerError() bool

IsServerError returns true when this delete job internal server error response has a 5xx status code

func (*DeleteJobInternalServerError) IsSuccess

func (o *DeleteJobInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete job internal server error response has a 2xx status code

func (*DeleteJobInternalServerError) String

type DeleteJobNotFound

type DeleteJobNotFound struct {
	Payload *models.Status
}

DeleteJobNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteJobNotFound

func NewDeleteJobNotFound() *DeleteJobNotFound

NewDeleteJobNotFound creates a DeleteJobNotFound with default headers values

func (*DeleteJobNotFound) Code

func (o *DeleteJobNotFound) Code() int

Code gets the status code for the delete job not found response

func (*DeleteJobNotFound) Error

func (o *DeleteJobNotFound) Error() string

func (*DeleteJobNotFound) GetPayload

func (o *DeleteJobNotFound) GetPayload() *models.Status

func (*DeleteJobNotFound) IsClientError

func (o *DeleteJobNotFound) IsClientError() bool

IsClientError returns true when this delete job not found response has a 4xx status code

func (*DeleteJobNotFound) IsCode

func (o *DeleteJobNotFound) IsCode(code int) bool

IsCode returns true when this delete job not found response a status code equal to that given

func (*DeleteJobNotFound) IsRedirect

func (o *DeleteJobNotFound) IsRedirect() bool

IsRedirect returns true when this delete job not found response has a 3xx status code

func (*DeleteJobNotFound) IsServerError

func (o *DeleteJobNotFound) IsServerError() bool

IsServerError returns true when this delete job not found response has a 5xx status code

func (*DeleteJobNotFound) IsSuccess

func (o *DeleteJobNotFound) IsSuccess() bool

IsSuccess returns true when this delete job not found response has a 2xx status code

func (*DeleteJobNotFound) String

func (o *DeleteJobNotFound) String() string

type DeleteJobOK

type DeleteJobOK struct {
	Payload *models.Status
}

DeleteJobOK describes a response with status code 200, with default header values.

Successful delete job

func NewDeleteJobOK

func NewDeleteJobOK() *DeleteJobOK

NewDeleteJobOK creates a DeleteJobOK with default headers values

func (*DeleteJobOK) Code

func (o *DeleteJobOK) Code() int

Code gets the status code for the delete job o k response

func (*DeleteJobOK) Error

func (o *DeleteJobOK) Error() string

func (*DeleteJobOK) GetPayload

func (o *DeleteJobOK) GetPayload() *models.Status

func (*DeleteJobOK) IsClientError

func (o *DeleteJobOK) IsClientError() bool

IsClientError returns true when this delete job o k response has a 4xx status code

func (*DeleteJobOK) IsCode

func (o *DeleteJobOK) IsCode(code int) bool

IsCode returns true when this delete job o k response a status code equal to that given

func (*DeleteJobOK) IsRedirect

func (o *DeleteJobOK) IsRedirect() bool

IsRedirect returns true when this delete job o k response has a 3xx status code

func (*DeleteJobOK) IsServerError

func (o *DeleteJobOK) IsServerError() bool

IsServerError returns true when this delete job o k response has a 5xx status code

func (*DeleteJobOK) IsSuccess

func (o *DeleteJobOK) IsSuccess() bool

IsSuccess returns true when this delete job o k response has a 2xx status code

func (*DeleteJobOK) String

func (o *DeleteJobOK) String() string

type DeleteJobParams

type DeleteJobParams struct {

	/* JobName.

	   Name of job
	*/
	JobName string

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

DeleteJobParams contains all the parameters to send to the API endpoint

for the delete job operation.

Typically these are written to a http.Request.

func NewDeleteJobParams

func NewDeleteJobParams() *DeleteJobParams

NewDeleteJobParams creates a new DeleteJobParams 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 NewDeleteJobParamsWithContext

func NewDeleteJobParamsWithContext(ctx context.Context) *DeleteJobParams

NewDeleteJobParamsWithContext creates a new DeleteJobParams object with the ability to set a context for a request.

func NewDeleteJobParamsWithHTTPClient

func NewDeleteJobParamsWithHTTPClient(client *http.Client) *DeleteJobParams

NewDeleteJobParamsWithHTTPClient creates a new DeleteJobParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteJobParamsWithTimeout

func NewDeleteJobParamsWithTimeout(timeout time.Duration) *DeleteJobParams

NewDeleteJobParamsWithTimeout creates a new DeleteJobParams object with the ability to set a timeout on a request.

func (*DeleteJobParams) SetContext

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

SetContext adds the context to the delete job params

func (*DeleteJobParams) SetDefaults

func (o *DeleteJobParams) SetDefaults()

SetDefaults hydrates default values in the delete job params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteJobParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete job params

func (*DeleteJobParams) SetJobName

func (o *DeleteJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the delete job params

func (*DeleteJobParams) SetTimeout

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

SetTimeout adds the timeout to the delete job params

func (*DeleteJobParams) WithContext

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

WithContext adds the context to the delete job params

func (*DeleteJobParams) WithDefaults

func (o *DeleteJobParams) WithDefaults() *DeleteJobParams

WithDefaults hydrates default values in the delete job params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteJobParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete job params

func (*DeleteJobParams) WithJobName

func (o *DeleteJobParams) WithJobName(jobName string) *DeleteJobParams

WithJobName adds the jobName to the delete job params

func (*DeleteJobParams) WithTimeout

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

WithTimeout adds the timeout to the delete job params

func (*DeleteJobParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteJobReader

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

DeleteJobReader is a Reader for the DeleteJob structure.

func (*DeleteJobReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetJobInternalServerError

type GetJobInternalServerError struct {
	Payload *models.Status
}

GetJobInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetJobInternalServerError

func NewGetJobInternalServerError() *GetJobInternalServerError

NewGetJobInternalServerError creates a GetJobInternalServerError with default headers values

func (*GetJobInternalServerError) Code

func (o *GetJobInternalServerError) Code() int

Code gets the status code for the get job internal server error response

func (*GetJobInternalServerError) Error

func (o *GetJobInternalServerError) Error() string

func (*GetJobInternalServerError) GetPayload

func (o *GetJobInternalServerError) GetPayload() *models.Status

func (*GetJobInternalServerError) IsClientError

func (o *GetJobInternalServerError) IsClientError() bool

IsClientError returns true when this get job internal server error response has a 4xx status code

func (*GetJobInternalServerError) IsCode

func (o *GetJobInternalServerError) IsCode(code int) bool

IsCode returns true when this get job internal server error response a status code equal to that given

func (*GetJobInternalServerError) IsRedirect

func (o *GetJobInternalServerError) IsRedirect() bool

IsRedirect returns true when this get job internal server error response has a 3xx status code

func (*GetJobInternalServerError) IsServerError

func (o *GetJobInternalServerError) IsServerError() bool

IsServerError returns true when this get job internal server error response has a 5xx status code

func (*GetJobInternalServerError) IsSuccess

func (o *GetJobInternalServerError) IsSuccess() bool

IsSuccess returns true when this get job internal server error response has a 2xx status code

func (*GetJobInternalServerError) String

func (o *GetJobInternalServerError) String() string

type GetJobNotFound

type GetJobNotFound struct {
	Payload *models.Status
}

GetJobNotFound describes a response with status code 404, with default header values.

Not found

func NewGetJobNotFound

func NewGetJobNotFound() *GetJobNotFound

NewGetJobNotFound creates a GetJobNotFound with default headers values

func (*GetJobNotFound) Code

func (o *GetJobNotFound) Code() int

Code gets the status code for the get job not found response

func (*GetJobNotFound) Error

func (o *GetJobNotFound) Error() string

func (*GetJobNotFound) GetPayload

func (o *GetJobNotFound) GetPayload() *models.Status

func (*GetJobNotFound) IsClientError

func (o *GetJobNotFound) IsClientError() bool

IsClientError returns true when this get job not found response has a 4xx status code

func (*GetJobNotFound) IsCode

func (o *GetJobNotFound) IsCode(code int) bool

IsCode returns true when this get job not found response a status code equal to that given

func (*GetJobNotFound) IsRedirect

func (o *GetJobNotFound) IsRedirect() bool

IsRedirect returns true when this get job not found response has a 3xx status code

func (*GetJobNotFound) IsServerError

func (o *GetJobNotFound) IsServerError() bool

IsServerError returns true when this get job not found response has a 5xx status code

func (*GetJobNotFound) IsSuccess

func (o *GetJobNotFound) IsSuccess() bool

IsSuccess returns true when this get job not found response has a 2xx status code

func (*GetJobNotFound) String

func (o *GetJobNotFound) String() string

type GetJobOK

type GetJobOK struct {
	Payload *models.JobStatus
}

GetJobOK describes a response with status code 200, with default header values.

Successful get job

func NewGetJobOK

func NewGetJobOK() *GetJobOK

NewGetJobOK creates a GetJobOK with default headers values

func (*GetJobOK) Code

func (o *GetJobOK) Code() int

Code gets the status code for the get job o k response

func (*GetJobOK) Error

func (o *GetJobOK) Error() string

func (*GetJobOK) GetPayload

func (o *GetJobOK) GetPayload() *models.JobStatus

func (*GetJobOK) IsClientError

func (o *GetJobOK) IsClientError() bool

IsClientError returns true when this get job o k response has a 4xx status code

func (*GetJobOK) IsCode

func (o *GetJobOK) IsCode(code int) bool

IsCode returns true when this get job o k response a status code equal to that given

func (*GetJobOK) IsRedirect

func (o *GetJobOK) IsRedirect() bool

IsRedirect returns true when this get job o k response has a 3xx status code

func (*GetJobOK) IsServerError

func (o *GetJobOK) IsServerError() bool

IsServerError returns true when this get job o k response has a 5xx status code

func (*GetJobOK) IsSuccess

func (o *GetJobOK) IsSuccess() bool

IsSuccess returns true when this get job o k response has a 2xx status code

func (*GetJobOK) String

func (o *GetJobOK) String() string

type GetJobParams

type GetJobParams struct {

	/* JobName.

	   Name of job
	*/
	JobName string

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

GetJobParams contains all the parameters to send to the API endpoint

for the get job operation.

Typically these are written to a http.Request.

func NewGetJobParams

func NewGetJobParams() *GetJobParams

NewGetJobParams creates a new GetJobParams 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 NewGetJobParamsWithContext

func NewGetJobParamsWithContext(ctx context.Context) *GetJobParams

NewGetJobParamsWithContext creates a new GetJobParams object with the ability to set a context for a request.

func NewGetJobParamsWithHTTPClient

func NewGetJobParamsWithHTTPClient(client *http.Client) *GetJobParams

NewGetJobParamsWithHTTPClient creates a new GetJobParams object with the ability to set a custom HTTPClient for a request.

func NewGetJobParamsWithTimeout

func NewGetJobParamsWithTimeout(timeout time.Duration) *GetJobParams

NewGetJobParamsWithTimeout creates a new GetJobParams object with the ability to set a timeout on a request.

func (*GetJobParams) SetContext

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

SetContext adds the context to the get job params

func (*GetJobParams) SetDefaults

func (o *GetJobParams) SetDefaults()

SetDefaults hydrates default values in the get job params (not the query body).

All values with no default are reset to their zero value.

func (*GetJobParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get job params

func (*GetJobParams) SetJobName

func (o *GetJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the get job params

func (*GetJobParams) SetTimeout

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

SetTimeout adds the timeout to the get job params

func (*GetJobParams) WithContext

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

WithContext adds the context to the get job params

func (*GetJobParams) WithDefaults

func (o *GetJobParams) WithDefaults() *GetJobParams

WithDefaults hydrates default values in the get job params (not the query body).

All values with no default are reset to their zero value.

func (*GetJobParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get job params

func (*GetJobParams) WithJobName

func (o *GetJobParams) WithJobName(jobName string) *GetJobParams

WithJobName adds the jobName to the get job params

func (*GetJobParams) WithTimeout

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

WithTimeout adds the timeout to the get job params

func (*GetJobParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetJobReader

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

GetJobReader is a Reader for the GetJob structure.

func (*GetJobReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetJobsInternalServerError

type GetJobsInternalServerError struct {
	Payload *models.Status
}

GetJobsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetJobsInternalServerError

func NewGetJobsInternalServerError() *GetJobsInternalServerError

NewGetJobsInternalServerError creates a GetJobsInternalServerError with default headers values

func (*GetJobsInternalServerError) Code

func (o *GetJobsInternalServerError) Code() int

Code gets the status code for the get jobs internal server error response

func (*GetJobsInternalServerError) Error

func (*GetJobsInternalServerError) GetPayload

func (o *GetJobsInternalServerError) GetPayload() *models.Status

func (*GetJobsInternalServerError) IsClientError

func (o *GetJobsInternalServerError) IsClientError() bool

IsClientError returns true when this get jobs internal server error response has a 4xx status code

func (*GetJobsInternalServerError) IsCode

func (o *GetJobsInternalServerError) IsCode(code int) bool

IsCode returns true when this get jobs internal server error response a status code equal to that given

func (*GetJobsInternalServerError) IsRedirect

func (o *GetJobsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get jobs internal server error response has a 3xx status code

func (*GetJobsInternalServerError) IsServerError

func (o *GetJobsInternalServerError) IsServerError() bool

IsServerError returns true when this get jobs internal server error response has a 5xx status code

func (*GetJobsInternalServerError) IsSuccess

func (o *GetJobsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get jobs internal server error response has a 2xx status code

func (*GetJobsInternalServerError) String

func (o *GetJobsInternalServerError) String() string

type GetJobsOK

type GetJobsOK struct {
	Payload []*models.JobStatus
}

GetJobsOK describes a response with status code 200, with default header values.

Successful get jobs

func NewGetJobsOK

func NewGetJobsOK() *GetJobsOK

NewGetJobsOK creates a GetJobsOK with default headers values

func (*GetJobsOK) Code

func (o *GetJobsOK) Code() int

Code gets the status code for the get jobs o k response

func (*GetJobsOK) Error

func (o *GetJobsOK) Error() string

func (*GetJobsOK) GetPayload

func (o *GetJobsOK) GetPayload() []*models.JobStatus

func (*GetJobsOK) IsClientError

func (o *GetJobsOK) IsClientError() bool

IsClientError returns true when this get jobs o k response has a 4xx status code

func (*GetJobsOK) IsCode

func (o *GetJobsOK) IsCode(code int) bool

IsCode returns true when this get jobs o k response a status code equal to that given

func (*GetJobsOK) IsRedirect

func (o *GetJobsOK) IsRedirect() bool

IsRedirect returns true when this get jobs o k response has a 3xx status code

func (*GetJobsOK) IsServerError

func (o *GetJobsOK) IsServerError() bool

IsServerError returns true when this get jobs o k response has a 5xx status code

func (*GetJobsOK) IsSuccess

func (o *GetJobsOK) IsSuccess() bool

IsSuccess returns true when this get jobs o k response has a 2xx status code

func (*GetJobsOK) String

func (o *GetJobsOK) String() string

type GetJobsParams

type GetJobsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetJobsParams contains all the parameters to send to the API endpoint

for the get jobs operation.

Typically these are written to a http.Request.

func NewGetJobsParams

func NewGetJobsParams() *GetJobsParams

NewGetJobsParams creates a new GetJobsParams 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 NewGetJobsParamsWithContext

func NewGetJobsParamsWithContext(ctx context.Context) *GetJobsParams

NewGetJobsParamsWithContext creates a new GetJobsParams object with the ability to set a context for a request.

func NewGetJobsParamsWithHTTPClient

func NewGetJobsParamsWithHTTPClient(client *http.Client) *GetJobsParams

NewGetJobsParamsWithHTTPClient creates a new GetJobsParams object with the ability to set a custom HTTPClient for a request.

func NewGetJobsParamsWithTimeout

func NewGetJobsParamsWithTimeout(timeout time.Duration) *GetJobsParams

NewGetJobsParamsWithTimeout creates a new GetJobsParams object with the ability to set a timeout on a request.

func (*GetJobsParams) SetContext

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

SetContext adds the context to the get jobs params

func (*GetJobsParams) SetDefaults

func (o *GetJobsParams) SetDefaults()

SetDefaults hydrates default values in the get jobs params (not the query body).

All values with no default are reset to their zero value.

func (*GetJobsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get jobs params

func (*GetJobsParams) SetTimeout

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

SetTimeout adds the timeout to the get jobs params

func (*GetJobsParams) WithContext

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

WithContext adds the context to the get jobs params

func (*GetJobsParams) WithDefaults

func (o *GetJobsParams) WithDefaults() *GetJobsParams

WithDefaults hydrates default values in the get jobs params (not the query body).

All values with no default are reset to their zero value.

func (*GetJobsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get jobs params

func (*GetJobsParams) WithTimeout

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

WithTimeout adds the timeout to the get jobs params

func (*GetJobsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetJobsReader

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

GetJobsReader is a Reader for the GetJobs structure.

func (*GetJobsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StopJobInternalServerError

type StopJobInternalServerError struct {
	Payload *models.Status
}

StopJobInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewStopJobInternalServerError

func NewStopJobInternalServerError() *StopJobInternalServerError

NewStopJobInternalServerError creates a StopJobInternalServerError with default headers values

func (*StopJobInternalServerError) Code

func (o *StopJobInternalServerError) Code() int

Code gets the status code for the stop job internal server error response

func (*StopJobInternalServerError) Error

func (*StopJobInternalServerError) GetPayload

func (o *StopJobInternalServerError) GetPayload() *models.Status

func (*StopJobInternalServerError) IsClientError

func (o *StopJobInternalServerError) IsClientError() bool

IsClientError returns true when this stop job internal server error response has a 4xx status code

func (*StopJobInternalServerError) IsCode

func (o *StopJobInternalServerError) IsCode(code int) bool

IsCode returns true when this stop job internal server error response a status code equal to that given

func (*StopJobInternalServerError) IsRedirect

func (o *StopJobInternalServerError) IsRedirect() bool

IsRedirect returns true when this stop job internal server error response has a 3xx status code

func (*StopJobInternalServerError) IsServerError

func (o *StopJobInternalServerError) IsServerError() bool

IsServerError returns true when this stop job internal server error response has a 5xx status code

func (*StopJobInternalServerError) IsSuccess

func (o *StopJobInternalServerError) IsSuccess() bool

IsSuccess returns true when this stop job internal server error response has a 2xx status code

func (*StopJobInternalServerError) String

func (o *StopJobInternalServerError) String() string

type StopJobNotFound

type StopJobNotFound struct {
	Payload *models.Status
}

StopJobNotFound describes a response with status code 404, with default header values.

Not found

func NewStopJobNotFound

func NewStopJobNotFound() *StopJobNotFound

NewStopJobNotFound creates a StopJobNotFound with default headers values

func (*StopJobNotFound) Code

func (o *StopJobNotFound) Code() int

Code gets the status code for the stop job not found response

func (*StopJobNotFound) Error

func (o *StopJobNotFound) Error() string

func (*StopJobNotFound) GetPayload

func (o *StopJobNotFound) GetPayload() *models.Status

func (*StopJobNotFound) IsClientError

func (o *StopJobNotFound) IsClientError() bool

IsClientError returns true when this stop job not found response has a 4xx status code

func (*StopJobNotFound) IsCode

func (o *StopJobNotFound) IsCode(code int) bool

IsCode returns true when this stop job not found response a status code equal to that given

func (*StopJobNotFound) IsRedirect

func (o *StopJobNotFound) IsRedirect() bool

IsRedirect returns true when this stop job not found response has a 3xx status code

func (*StopJobNotFound) IsServerError

func (o *StopJobNotFound) IsServerError() bool

IsServerError returns true when this stop job not found response has a 5xx status code

func (*StopJobNotFound) IsSuccess

func (o *StopJobNotFound) IsSuccess() bool

IsSuccess returns true when this stop job not found response has a 2xx status code

func (*StopJobNotFound) String

func (o *StopJobNotFound) String() string

type StopJobOK

type StopJobOK struct {
	Payload *models.Status
}

StopJobOK describes a response with status code 200, with default header values.

Successful delete job

func NewStopJobOK

func NewStopJobOK() *StopJobOK

NewStopJobOK creates a StopJobOK with default headers values

func (*StopJobOK) Code

func (o *StopJobOK) Code() int

Code gets the status code for the stop job o k response

func (*StopJobOK) Error

func (o *StopJobOK) Error() string

func (*StopJobOK) GetPayload

func (o *StopJobOK) GetPayload() *models.Status

func (*StopJobOK) IsClientError

func (o *StopJobOK) IsClientError() bool

IsClientError returns true when this stop job o k response has a 4xx status code

func (*StopJobOK) IsCode

func (o *StopJobOK) IsCode(code int) bool

IsCode returns true when this stop job o k response a status code equal to that given

func (*StopJobOK) IsRedirect

func (o *StopJobOK) IsRedirect() bool

IsRedirect returns true when this stop job o k response has a 3xx status code

func (*StopJobOK) IsServerError

func (o *StopJobOK) IsServerError() bool

IsServerError returns true when this stop job o k response has a 5xx status code

func (*StopJobOK) IsSuccess

func (o *StopJobOK) IsSuccess() bool

IsSuccess returns true when this stop job o k response has a 2xx status code

func (*StopJobOK) String

func (o *StopJobOK) String() string

type StopJobParams

type StopJobParams struct {

	/* JobName.

	   Name of job
	*/
	JobName string

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

StopJobParams contains all the parameters to send to the API endpoint

for the stop job operation.

Typically these are written to a http.Request.

func NewStopJobParams

func NewStopJobParams() *StopJobParams

NewStopJobParams creates a new StopJobParams 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 NewStopJobParamsWithContext

func NewStopJobParamsWithContext(ctx context.Context) *StopJobParams

NewStopJobParamsWithContext creates a new StopJobParams object with the ability to set a context for a request.

func NewStopJobParamsWithHTTPClient

func NewStopJobParamsWithHTTPClient(client *http.Client) *StopJobParams

NewStopJobParamsWithHTTPClient creates a new StopJobParams object with the ability to set a custom HTTPClient for a request.

func NewStopJobParamsWithTimeout

func NewStopJobParamsWithTimeout(timeout time.Duration) *StopJobParams

NewStopJobParamsWithTimeout creates a new StopJobParams object with the ability to set a timeout on a request.

func (*StopJobParams) SetContext

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

SetContext adds the context to the stop job params

func (*StopJobParams) SetDefaults

func (o *StopJobParams) SetDefaults()

SetDefaults hydrates default values in the stop job params (not the query body).

All values with no default are reset to their zero value.

func (*StopJobParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stop job params

func (*StopJobParams) SetJobName

func (o *StopJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the stop job params

func (*StopJobParams) SetTimeout

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

SetTimeout adds the timeout to the stop job params

func (*StopJobParams) WithContext

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

WithContext adds the context to the stop job params

func (*StopJobParams) WithDefaults

func (o *StopJobParams) WithDefaults() *StopJobParams

WithDefaults hydrates default values in the stop job params (not the query body).

All values with no default are reset to their zero value.

func (*StopJobParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stop job params

func (*StopJobParams) WithJobName

func (o *StopJobParams) WithJobName(jobName string) *StopJobParams

WithJobName adds the jobName to the stop job params

func (*StopJobParams) WithTimeout

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

WithTimeout adds the timeout to the stop job params

func (*StopJobParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StopJobReader

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

StopJobReader is a Reader for the StopJob structure.

func (*StopJobReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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