schedules

package
v0.0.0-...-2b9725c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddScheduleCreated

type AddScheduleCreated struct {
	Payload *models.Schedule
}

AddScheduleCreated handles this case with default header values.

Created

func NewAddScheduleCreated

func NewAddScheduleCreated() *AddScheduleCreated

NewAddScheduleCreated creates a AddScheduleCreated with default headers values

func (*AddScheduleCreated) Error

func (o *AddScheduleCreated) Error() string

type AddScheduleDefault

type AddScheduleDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

AddScheduleDefault handles this case with default header values.

unexpected error

func NewAddScheduleDefault

func NewAddScheduleDefault(code int) *AddScheduleDefault

NewAddScheduleDefault creates a AddScheduleDefault with default headers values

func (*AddScheduleDefault) Code

func (o *AddScheduleDefault) Code() int

Code gets the status code for the add schedule default response

func (*AddScheduleDefault) Error

func (o *AddScheduleDefault) Error() string

type AddScheduleParams

type AddScheduleParams struct {

	/*Schedule
	  Schedule

	*/
	Schedule *models.Schedule

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

AddScheduleParams contains all the parameters to send to the API endpoint for the add schedule operation typically these are written to a http.Request

func NewAddScheduleParams

func NewAddScheduleParams() *AddScheduleParams

NewAddScheduleParams creates a new AddScheduleParams object with the default values initialized.

func NewAddScheduleParamsWithContext

func NewAddScheduleParamsWithContext(ctx context.Context) *AddScheduleParams

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

func NewAddScheduleParamsWithHTTPClient

func NewAddScheduleParamsWithHTTPClient(client *http.Client) *AddScheduleParams

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

func NewAddScheduleParamsWithTimeout

func NewAddScheduleParamsWithTimeout(timeout time.Duration) *AddScheduleParams

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

func (*AddScheduleParams) SetContext

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

SetContext adds the context to the add schedule params

func (*AddScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add schedule params

func (*AddScheduleParams) SetSchedule

func (o *AddScheduleParams) SetSchedule(schedule *models.Schedule)

SetSchedule adds the schedule to the add schedule params

func (*AddScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the add schedule params

func (*AddScheduleParams) WithContext

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

WithContext adds the context to the add schedule params

func (*AddScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add schedule params

func (*AddScheduleParams) WithSchedule

func (o *AddScheduleParams) WithSchedule(schedule *models.Schedule) *AddScheduleParams

WithSchedule adds the schedule to the add schedule params

func (*AddScheduleParams) WithTimeout

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

WithTimeout adds the timeout to the add schedule params

func (*AddScheduleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddScheduleReader

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

AddScheduleReader is a Reader for the AddSchedule structure.

func (*AddScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for schedules API

func New

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

New creates a new schedules API client.

func (*Client) AddSchedule

func (a *Client) AddSchedule(params *AddScheduleParams) (*AddScheduleCreated, error)

AddSchedule Creates a new schedule. Duplicates are not allowed

func (*Client) DeleteSchedule

func (a *Client) DeleteSchedule(params *DeleteScheduleParams) (*DeleteScheduleNoContent, error)

DeleteSchedule Delete an existant schedules

func (*Client) GetSchedule

func (a *Client) GetSchedule(params *GetScheduleParams) (*GetScheduleOK, error)

GetSchedule get schedule API

func (*Client) GetSchedules

func (a *Client) GetSchedules(params *GetSchedulesParams) (*GetSchedulesOK, error)

GetSchedules get schedules API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateSchedule

func (a *Client) UpdateSchedule(params *UpdateScheduleParams) (*UpdateScheduleCreated, error)

UpdateSchedule Updates an existant Schedule

type DeleteScheduleBadRequest

type DeleteScheduleBadRequest struct {
}

DeleteScheduleBadRequest handles this case with default header values.

Invalid ID

func NewDeleteScheduleBadRequest

func NewDeleteScheduleBadRequest() *DeleteScheduleBadRequest

NewDeleteScheduleBadRequest creates a DeleteScheduleBadRequest with default headers values

func (*DeleteScheduleBadRequest) Error

func (o *DeleteScheduleBadRequest) Error() string

type DeleteScheduleNoContent

type DeleteScheduleNoContent struct {
}

DeleteScheduleNoContent handles this case with default header values.

Deleted successfully

func NewDeleteScheduleNoContent

func NewDeleteScheduleNoContent() *DeleteScheduleNoContent

NewDeleteScheduleNoContent creates a DeleteScheduleNoContent with default headers values

func (*DeleteScheduleNoContent) Error

func (o *DeleteScheduleNoContent) Error() string

type DeleteScheduleNotFound

type DeleteScheduleNotFound struct {
}

DeleteScheduleNotFound handles this case with default header values.

Schedule not found

func NewDeleteScheduleNotFound

func NewDeleteScheduleNotFound() *DeleteScheduleNotFound

NewDeleteScheduleNotFound creates a DeleteScheduleNotFound with default headers values

func (*DeleteScheduleNotFound) Error

func (o *DeleteScheduleNotFound) Error() string

type DeleteScheduleParams

type DeleteScheduleParams struct {

	/*ID
	  The id of the item

	*/
	ID int64

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

DeleteScheduleParams contains all the parameters to send to the API endpoint for the delete schedule operation typically these are written to a http.Request

func NewDeleteScheduleParams

func NewDeleteScheduleParams() *DeleteScheduleParams

NewDeleteScheduleParams creates a new DeleteScheduleParams object with the default values initialized.

func NewDeleteScheduleParamsWithContext

func NewDeleteScheduleParamsWithContext(ctx context.Context) *DeleteScheduleParams

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

func NewDeleteScheduleParamsWithHTTPClient

func NewDeleteScheduleParamsWithHTTPClient(client *http.Client) *DeleteScheduleParams

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

func NewDeleteScheduleParamsWithTimeout

func NewDeleteScheduleParamsWithTimeout(timeout time.Duration) *DeleteScheduleParams

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

func (*DeleteScheduleParams) SetContext

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

SetContext adds the context to the delete schedule params

func (*DeleteScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete schedule params

func (*DeleteScheduleParams) SetID

func (o *DeleteScheduleParams) SetID(id int64)

SetID adds the id to the delete schedule params

func (*DeleteScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the delete schedule params

func (*DeleteScheduleParams) WithContext

WithContext adds the context to the delete schedule params

func (*DeleteScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete schedule params

func (*DeleteScheduleParams) WithID

WithID adds the id to the delete schedule params

func (*DeleteScheduleParams) WithTimeout

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

WithTimeout adds the timeout to the delete schedule params

func (*DeleteScheduleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteScheduleReader

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

DeleteScheduleReader is a Reader for the DeleteSchedule structure.

func (*DeleteScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetScheduleOK

type GetScheduleOK struct {
	Payload *models.Schedule
}

GetScheduleOK handles this case with default header values.

list of schedules

func NewGetScheduleOK

func NewGetScheduleOK() *GetScheduleOK

NewGetScheduleOK creates a GetScheduleOK with default headers values

func (*GetScheduleOK) Error

func (o *GetScheduleOK) Error() string

type GetScheduleParams

type GetScheduleParams struct {

	/*ID
	  The id of the item

	*/
	ID int64

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

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

func NewGetScheduleParams

func NewGetScheduleParams() *GetScheduleParams

NewGetScheduleParams creates a new GetScheduleParams object with the default values initialized.

func NewGetScheduleParamsWithContext

func NewGetScheduleParamsWithContext(ctx context.Context) *GetScheduleParams

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

func NewGetScheduleParamsWithHTTPClient

func NewGetScheduleParamsWithHTTPClient(client *http.Client) *GetScheduleParams

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

func NewGetScheduleParamsWithTimeout

func NewGetScheduleParamsWithTimeout(timeout time.Duration) *GetScheduleParams

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

func (*GetScheduleParams) SetContext

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

SetContext adds the context to the get schedule params

func (*GetScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get schedule params

func (*GetScheduleParams) SetID

func (o *GetScheduleParams) SetID(id int64)

SetID adds the id to the get schedule params

func (*GetScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the get schedule params

func (*GetScheduleParams) WithContext

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

WithContext adds the context to the get schedule params

func (*GetScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get schedule params

func (*GetScheduleParams) WithID

func (o *GetScheduleParams) WithID(id int64) *GetScheduleParams

WithID adds the id to the get schedule params

func (*GetScheduleParams) WithTimeout

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

WithTimeout adds the timeout to the get schedule params

func (*GetScheduleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetScheduleReader

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

GetScheduleReader is a Reader for the GetSchedule structure.

func (*GetScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSchedulesBadRequest

type GetSchedulesBadRequest struct {
	Payload *models.Error
}

GetSchedulesBadRequest handles this case with default header values.

generic error response

func NewGetSchedulesBadRequest

func NewGetSchedulesBadRequest() *GetSchedulesBadRequest

NewGetSchedulesBadRequest creates a GetSchedulesBadRequest with default headers values

func (*GetSchedulesBadRequest) Error

func (o *GetSchedulesBadRequest) Error() string

type GetSchedulesDefault

type GetSchedulesDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetSchedulesDefault handles this case with default header values.

generic error response

func NewGetSchedulesDefault

func NewGetSchedulesDefault(code int) *GetSchedulesDefault

NewGetSchedulesDefault creates a GetSchedulesDefault with default headers values

func (*GetSchedulesDefault) Code

func (o *GetSchedulesDefault) Code() int

Code gets the status code for the get schedules default response

func (*GetSchedulesDefault) Error

func (o *GetSchedulesDefault) Error() string

type GetSchedulesOK

type GetSchedulesOK struct {
	Payload []*models.Schedule
}

GetSchedulesOK handles this case with default header values.

list of schedules

func NewGetSchedulesOK

func NewGetSchedulesOK() *GetSchedulesOK

NewGetSchedulesOK creates a GetSchedulesOK with default headers values

func (*GetSchedulesOK) Error

func (o *GetSchedulesOK) Error() string

type GetSchedulesParams

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

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

func NewGetSchedulesParams

func NewGetSchedulesParams() *GetSchedulesParams

NewGetSchedulesParams creates a new GetSchedulesParams object with the default values initialized.

func NewGetSchedulesParamsWithContext

func NewGetSchedulesParamsWithContext(ctx context.Context) *GetSchedulesParams

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

func NewGetSchedulesParamsWithHTTPClient

func NewGetSchedulesParamsWithHTTPClient(client *http.Client) *GetSchedulesParams

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

func NewGetSchedulesParamsWithTimeout

func NewGetSchedulesParamsWithTimeout(timeout time.Duration) *GetSchedulesParams

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

func (*GetSchedulesParams) SetContext

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

SetContext adds the context to the get schedules params

func (*GetSchedulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get schedules params

func (*GetSchedulesParams) SetTimeout

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

SetTimeout adds the timeout to the get schedules params

func (*GetSchedulesParams) WithContext

WithContext adds the context to the get schedules params

func (*GetSchedulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get schedules params

func (*GetSchedulesParams) WithTimeout

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

WithTimeout adds the timeout to the get schedules params

func (*GetSchedulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSchedulesReader

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

GetSchedulesReader is a Reader for the GetSchedules structure.

func (*GetSchedulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateScheduleBadRequest

type UpdateScheduleBadRequest struct {
}

UpdateScheduleBadRequest handles this case with default header values.

invalid id

func NewUpdateScheduleBadRequest

func NewUpdateScheduleBadRequest() *UpdateScheduleBadRequest

NewUpdateScheduleBadRequest creates a UpdateScheduleBadRequest with default headers values

func (*UpdateScheduleBadRequest) Error

func (o *UpdateScheduleBadRequest) Error() string

type UpdateScheduleCreated

type UpdateScheduleCreated struct {
	Payload *models.Schedule
}

UpdateScheduleCreated handles this case with default header values.

Updated Succesfully

func NewUpdateScheduleCreated

func NewUpdateScheduleCreated() *UpdateScheduleCreated

NewUpdateScheduleCreated creates a UpdateScheduleCreated with default headers values

func (*UpdateScheduleCreated) Error

func (o *UpdateScheduleCreated) Error() string

type UpdateScheduleNotFound

type UpdateScheduleNotFound struct {
}

UpdateScheduleNotFound handles this case with default header values.

schedule not found

func NewUpdateScheduleNotFound

func NewUpdateScheduleNotFound() *UpdateScheduleNotFound

NewUpdateScheduleNotFound creates a UpdateScheduleNotFound with default headers values

func (*UpdateScheduleNotFound) Error

func (o *UpdateScheduleNotFound) Error() string

type UpdateScheduleParams

type UpdateScheduleParams struct {

	/*ID
	  The id of the item

	*/
	ID int64
	/*Schedule
	  the schedule to update

	*/
	Schedule *models.Schedule

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

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

func NewUpdateScheduleParams

func NewUpdateScheduleParams() *UpdateScheduleParams

NewUpdateScheduleParams creates a new UpdateScheduleParams object with the default values initialized.

func NewUpdateScheduleParamsWithContext

func NewUpdateScheduleParamsWithContext(ctx context.Context) *UpdateScheduleParams

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

func NewUpdateScheduleParamsWithHTTPClient

func NewUpdateScheduleParamsWithHTTPClient(client *http.Client) *UpdateScheduleParams

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

func NewUpdateScheduleParamsWithTimeout

func NewUpdateScheduleParamsWithTimeout(timeout time.Duration) *UpdateScheduleParams

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

func (*UpdateScheduleParams) SetContext

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

SetContext adds the context to the update schedule params

func (*UpdateScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update schedule params

func (*UpdateScheduleParams) SetID

func (o *UpdateScheduleParams) SetID(id int64)

SetID adds the id to the update schedule params

func (*UpdateScheduleParams) SetSchedule

func (o *UpdateScheduleParams) SetSchedule(schedule *models.Schedule)

SetSchedule adds the schedule to the update schedule params

func (*UpdateScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the update schedule params

func (*UpdateScheduleParams) WithContext

WithContext adds the context to the update schedule params

func (*UpdateScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update schedule params

func (*UpdateScheduleParams) WithID

WithID adds the id to the update schedule params

func (*UpdateScheduleParams) WithSchedule

func (o *UpdateScheduleParams) WithSchedule(schedule *models.Schedule) *UpdateScheduleParams

WithSchedule adds the schedule to the update schedule params

func (*UpdateScheduleParams) WithTimeout

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

WithTimeout adds the timeout to the update schedule params

func (*UpdateScheduleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateScheduleReader

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

UpdateScheduleReader is a Reader for the UpdateSchedule structure.

func (*UpdateScheduleReader) ReadResponse

func (o *UpdateScheduleReader) 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