schedule

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddScheduleBadRequest

type AddScheduleBadRequest struct {
	Payload *models.Errored
}

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

Invalid input

func NewAddScheduleBadRequest

func NewAddScheduleBadRequest() *AddScheduleBadRequest

NewAddScheduleBadRequest creates a AddScheduleBadRequest with default headers values

func (*AddScheduleBadRequest) Error

func (o *AddScheduleBadRequest) Error() string

func (*AddScheduleBadRequest) GetPayload

func (o *AddScheduleBadRequest) GetPayload() *models.Errored

func (*AddScheduleBadRequest) IsClientError

func (o *AddScheduleBadRequest) IsClientError() bool

IsClientError returns true when this add schedule bad request response has a 4xx status code

func (*AddScheduleBadRequest) IsCode

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

IsCode returns true when this add schedule bad request response a status code equal to that given

func (*AddScheduleBadRequest) IsRedirect

func (o *AddScheduleBadRequest) IsRedirect() bool

IsRedirect returns true when this add schedule bad request response has a 3xx status code

func (*AddScheduleBadRequest) IsServerError

func (o *AddScheduleBadRequest) IsServerError() bool

IsServerError returns true when this add schedule bad request response has a 5xx status code

func (*AddScheduleBadRequest) IsSuccess

func (o *AddScheduleBadRequest) IsSuccess() bool

IsSuccess returns true when this add schedule bad request response has a 2xx status code

func (*AddScheduleBadRequest) String

func (o *AddScheduleBadRequest) String() string

type AddScheduleCreated

type AddScheduleCreated struct {
	Payload *models.ScheduleInfo
}

AddScheduleCreated describes a response with status code 201, with default header values.

Successfully added

func NewAddScheduleCreated

func NewAddScheduleCreated() *AddScheduleCreated

NewAddScheduleCreated creates a AddScheduleCreated with default headers values

func (*AddScheduleCreated) Error

func (o *AddScheduleCreated) Error() string

func (*AddScheduleCreated) GetPayload

func (o *AddScheduleCreated) GetPayload() *models.ScheduleInfo

func (*AddScheduleCreated) IsClientError

func (o *AddScheduleCreated) IsClientError() bool

IsClientError returns true when this add schedule created response has a 4xx status code

func (*AddScheduleCreated) IsCode

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

IsCode returns true when this add schedule created response a status code equal to that given

func (*AddScheduleCreated) IsRedirect

func (o *AddScheduleCreated) IsRedirect() bool

IsRedirect returns true when this add schedule created response has a 3xx status code

func (*AddScheduleCreated) IsServerError

func (o *AddScheduleCreated) IsServerError() bool

IsServerError returns true when this add schedule created response has a 5xx status code

func (*AddScheduleCreated) IsSuccess

func (o *AddScheduleCreated) IsSuccess() bool

IsSuccess returns true when this add schedule created response has a 2xx status code

func (*AddScheduleCreated) String

func (o *AddScheduleCreated) String() string

type AddScheduleNotFound added in v0.2.5

type AddScheduleNotFound struct {
	Payload *models.Errored
}

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

Not Found

func NewAddScheduleNotFound added in v0.2.5

func NewAddScheduleNotFound() *AddScheduleNotFound

NewAddScheduleNotFound creates a AddScheduleNotFound with default headers values

func (*AddScheduleNotFound) Error added in v0.2.5

func (o *AddScheduleNotFound) Error() string

func (*AddScheduleNotFound) GetPayload added in v0.2.5

func (o *AddScheduleNotFound) GetPayload() *models.Errored

func (*AddScheduleNotFound) IsClientError added in v0.2.5

func (o *AddScheduleNotFound) IsClientError() bool

IsClientError returns true when this add schedule not found response has a 4xx status code

func (*AddScheduleNotFound) IsCode added in v0.2.5

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

IsCode returns true when this add schedule not found response a status code equal to that given

func (*AddScheduleNotFound) IsRedirect added in v0.2.5

func (o *AddScheduleNotFound) IsRedirect() bool

IsRedirect returns true when this add schedule not found response has a 3xx status code

func (*AddScheduleNotFound) IsServerError added in v0.2.5

func (o *AddScheduleNotFound) IsServerError() bool

IsServerError returns true when this add schedule not found response has a 5xx status code

func (*AddScheduleNotFound) IsSuccess added in v0.2.5

func (o *AddScheduleNotFound) IsSuccess() bool

IsSuccess returns true when this add schedule not found response has a 2xx status code

func (*AddScheduleNotFound) String added in v0.2.5

func (o *AddScheduleNotFound) String() string

type AddScheduleParams

type AddScheduleParams struct {

	/* Body.

	   Schedule information (payload)
	*/
	Body *models.SchedulePayload

	/* ProjectSlug.

	     Project slug in the form vcs-slug/org-name/repo-name.
	The / characters may be URL-escaped.
	Example: gh/CircleCI-Public/api-preview-docs

	*/
	ProjectSlug string

	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 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 NewAddScheduleParamsWithContext

func NewAddScheduleParamsWithContext(ctx context.Context) *AddScheduleParams

NewAddScheduleParamsWithContext creates a new AddScheduleParams object with 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 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 ability to set a timeout on a request.

func (*AddScheduleParams) SetBody

func (o *AddScheduleParams) SetBody(body *models.SchedulePayload)

SetBody adds the body to the add schedule params

func (*AddScheduleParams) SetContext

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

SetContext adds the context to the add schedule params

func (*AddScheduleParams) SetDefaults

func (o *AddScheduleParams) SetDefaults()

SetDefaults hydrates default values in the add schedule params (not the query body).

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

func (*AddScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add schedule params

func (*AddScheduleParams) SetProjectSlug

func (o *AddScheduleParams) SetProjectSlug(projectSlug string)

SetProjectSlug adds the projectSlug 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) WithBody

WithBody adds the body 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) WithDefaults

func (o *AddScheduleParams) WithDefaults() *AddScheduleParams

WithDefaults hydrates default values in the add schedule params (not the query body).

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

func (*AddScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add schedule params

func (*AddScheduleParams) WithProjectSlug

func (o *AddScheduleParams) WithProjectSlug(projectSlug string) *AddScheduleParams

WithProjectSlug adds the projectSlug 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 schedule API

func (*Client) AddSchedule

func (a *Client) AddSchedule(params *AddScheduleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddScheduleCreated, error)

AddSchedule creates a schedule

func (*Client) DeleteSchedule

func (a *Client) DeleteSchedule(params *DeleteScheduleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteScheduleOK, error)

DeleteSchedule deletes a schedule

Delete a schedule by ID.

func (*Client) GetSchedule

func (a *Client) GetSchedule(params *GetScheduleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetScheduleOK, error)

GetSchedule gets a schedule

Get a schedule by ID.

func (*Client) ListSchedules

func (a *Client) ListSchedules(params *ListSchedulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSchedulesOK, error)

ListSchedules lists schedules

Returns all schedules for this project.

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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateScheduleOK, error)

UpdateSchedule updates a schedule

Updates a schedule and returns the updatd schedule.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddSchedule(params *AddScheduleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddScheduleCreated, error)

	DeleteSchedule(params *DeleteScheduleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteScheduleOK, error)

	GetSchedule(params *GetScheduleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetScheduleOK, error)

	ListSchedules(params *ListSchedulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSchedulesOK, error)

	UpdateSchedule(params *UpdateScheduleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateScheduleOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new schedule API client.

type DeleteScheduleBadRequest

type DeleteScheduleBadRequest struct {
	Payload *models.Errored
}

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

Invalid input

func NewDeleteScheduleBadRequest

func NewDeleteScheduleBadRequest() *DeleteScheduleBadRequest

NewDeleteScheduleBadRequest creates a DeleteScheduleBadRequest with default headers values

func (*DeleteScheduleBadRequest) Error

func (o *DeleteScheduleBadRequest) Error() string

func (*DeleteScheduleBadRequest) GetPayload

func (o *DeleteScheduleBadRequest) GetPayload() *models.Errored

func (*DeleteScheduleBadRequest) IsClientError

func (o *DeleteScheduleBadRequest) IsClientError() bool

IsClientError returns true when this delete schedule bad request response has a 4xx status code

func (*DeleteScheduleBadRequest) IsCode

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

IsCode returns true when this delete schedule bad request response a status code equal to that given

func (*DeleteScheduleBadRequest) IsRedirect

func (o *DeleteScheduleBadRequest) IsRedirect() bool

IsRedirect returns true when this delete schedule bad request response has a 3xx status code

func (*DeleteScheduleBadRequest) IsServerError

func (o *DeleteScheduleBadRequest) IsServerError() bool

IsServerError returns true when this delete schedule bad request response has a 5xx status code

func (*DeleteScheduleBadRequest) IsSuccess

func (o *DeleteScheduleBadRequest) IsSuccess() bool

IsSuccess returns true when this delete schedule bad request response has a 2xx status code

func (*DeleteScheduleBadRequest) String

func (o *DeleteScheduleBadRequest) String() string

type DeleteScheduleNotFound added in v0.2.5

type DeleteScheduleNotFound struct {
	Payload *models.Errored
}

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

Not Found

func NewDeleteScheduleNotFound added in v0.2.5

func NewDeleteScheduleNotFound() *DeleteScheduleNotFound

NewDeleteScheduleNotFound creates a DeleteScheduleNotFound with default headers values

func (*DeleteScheduleNotFound) Error added in v0.2.5

func (o *DeleteScheduleNotFound) Error() string

func (*DeleteScheduleNotFound) GetPayload added in v0.2.5

func (o *DeleteScheduleNotFound) GetPayload() *models.Errored

func (*DeleteScheduleNotFound) IsClientError added in v0.2.5

func (o *DeleteScheduleNotFound) IsClientError() bool

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

func (*DeleteScheduleNotFound) IsCode added in v0.2.5

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

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

func (*DeleteScheduleNotFound) IsRedirect added in v0.2.5

func (o *DeleteScheduleNotFound) IsRedirect() bool

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

func (*DeleteScheduleNotFound) IsServerError added in v0.2.5

func (o *DeleteScheduleNotFound) IsServerError() bool

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

func (*DeleteScheduleNotFound) IsSuccess added in v0.2.5

func (o *DeleteScheduleNotFound) IsSuccess() bool

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

func (*DeleteScheduleNotFound) String added in v0.2.5

func (o *DeleteScheduleNotFound) String() string

type DeleteScheduleOK

type DeleteScheduleOK struct {
	Payload *models.Deleted
}

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

DeleteScheduleOK delete schedule o k

func NewDeleteScheduleOK

func NewDeleteScheduleOK() *DeleteScheduleOK

NewDeleteScheduleOK creates a DeleteScheduleOK with default headers values

func (*DeleteScheduleOK) Error

func (o *DeleteScheduleOK) Error() string

func (*DeleteScheduleOK) GetPayload

func (o *DeleteScheduleOK) GetPayload() *models.Deleted

func (*DeleteScheduleOK) IsClientError

func (o *DeleteScheduleOK) IsClientError() bool

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

func (*DeleteScheduleOK) IsCode

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

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

func (*DeleteScheduleOK) IsRedirect

func (o *DeleteScheduleOK) IsRedirect() bool

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

func (*DeleteScheduleOK) IsServerError

func (o *DeleteScheduleOK) IsServerError() bool

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

func (*DeleteScheduleOK) IsSuccess

func (o *DeleteScheduleOK) IsSuccess() bool

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

func (*DeleteScheduleOK) String

func (o *DeleteScheduleOK) String() string

type DeleteScheduleParams

type DeleteScheduleParams struct {

	/* ID.

	   The unique ID of the schedule.

	   Format: uuid
	*/
	ID strfmt.UUID

	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 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 NewDeleteScheduleParamsWithContext

func NewDeleteScheduleParamsWithContext(ctx context.Context) *DeleteScheduleParams

NewDeleteScheduleParamsWithContext creates a new DeleteScheduleParams object with 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 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 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) SetDefaults

func (o *DeleteScheduleParams) SetDefaults()

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

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

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 strfmt.UUID)

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) WithDefaults

func (o *DeleteScheduleParams) WithDefaults() *DeleteScheduleParams

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

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

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 GetScheduleBadRequest

type GetScheduleBadRequest struct {
	Payload *models.Errored
}

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

Invalid input

func NewGetScheduleBadRequest

func NewGetScheduleBadRequest() *GetScheduleBadRequest

NewGetScheduleBadRequest creates a GetScheduleBadRequest with default headers values

func (*GetScheduleBadRequest) Error

func (o *GetScheduleBadRequest) Error() string

func (*GetScheduleBadRequest) GetPayload

func (o *GetScheduleBadRequest) GetPayload() *models.Errored

func (*GetScheduleBadRequest) IsClientError

func (o *GetScheduleBadRequest) IsClientError() bool

IsClientError returns true when this get schedule bad request response has a 4xx status code

func (*GetScheduleBadRequest) IsCode

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

IsCode returns true when this get schedule bad request response a status code equal to that given

func (*GetScheduleBadRequest) IsRedirect

func (o *GetScheduleBadRequest) IsRedirect() bool

IsRedirect returns true when this get schedule bad request response has a 3xx status code

func (*GetScheduleBadRequest) IsServerError

func (o *GetScheduleBadRequest) IsServerError() bool

IsServerError returns true when this get schedule bad request response has a 5xx status code

func (*GetScheduleBadRequest) IsSuccess

func (o *GetScheduleBadRequest) IsSuccess() bool

IsSuccess returns true when this get schedule bad request response has a 2xx status code

func (*GetScheduleBadRequest) String

func (o *GetScheduleBadRequest) String() string

type GetScheduleNotFound added in v0.2.5

type GetScheduleNotFound struct {
	Payload *models.Errored
}

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

Not Found

func NewGetScheduleNotFound added in v0.2.5

func NewGetScheduleNotFound() *GetScheduleNotFound

NewGetScheduleNotFound creates a GetScheduleNotFound with default headers values

func (*GetScheduleNotFound) Error added in v0.2.5

func (o *GetScheduleNotFound) Error() string

func (*GetScheduleNotFound) GetPayload added in v0.2.5

func (o *GetScheduleNotFound) GetPayload() *models.Errored

func (*GetScheduleNotFound) IsClientError added in v0.2.5

func (o *GetScheduleNotFound) IsClientError() bool

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

func (*GetScheduleNotFound) IsCode added in v0.2.5

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

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

func (*GetScheduleNotFound) IsRedirect added in v0.2.5

func (o *GetScheduleNotFound) IsRedirect() bool

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

func (*GetScheduleNotFound) IsServerError added in v0.2.5

func (o *GetScheduleNotFound) IsServerError() bool

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

func (*GetScheduleNotFound) IsSuccess added in v0.2.5

func (o *GetScheduleNotFound) IsSuccess() bool

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

func (*GetScheduleNotFound) String added in v0.2.5

func (o *GetScheduleNotFound) String() string

type GetScheduleOK

type GetScheduleOK struct {
	Payload *models.ScheduleInfo
}

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

A schedule object

func NewGetScheduleOK

func NewGetScheduleOK() *GetScheduleOK

NewGetScheduleOK creates a GetScheduleOK with default headers values

func (*GetScheduleOK) Error

func (o *GetScheduleOK) Error() string

func (*GetScheduleOK) GetPayload

func (o *GetScheduleOK) GetPayload() *models.ScheduleInfo

func (*GetScheduleOK) IsClientError

func (o *GetScheduleOK) IsClientError() bool

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

func (*GetScheduleOK) IsCode

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

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

func (*GetScheduleOK) IsRedirect

func (o *GetScheduleOK) IsRedirect() bool

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

func (*GetScheduleOK) IsServerError

func (o *GetScheduleOK) IsServerError() bool

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

func (*GetScheduleOK) IsSuccess

func (o *GetScheduleOK) IsSuccess() bool

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

func (*GetScheduleOK) String

func (o *GetScheduleOK) String() string

type GetScheduleParams

type GetScheduleParams struct {

	/* ID.

	   The unique ID of the schedule.

	   Format: uuid
	*/
	ID strfmt.UUID

	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 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 NewGetScheduleParamsWithContext

func NewGetScheduleParamsWithContext(ctx context.Context) *GetScheduleParams

NewGetScheduleParamsWithContext creates a new GetScheduleParams object with 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 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 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) SetDefaults

func (o *GetScheduleParams) SetDefaults()

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

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

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 strfmt.UUID)

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) WithDefaults

func (o *GetScheduleParams) WithDefaults() *GetScheduleParams

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

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

func (*GetScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get schedule params

func (*GetScheduleParams) WithID

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 ListSchedulesBadRequest

type ListSchedulesBadRequest struct {
	Payload *models.Errored
}

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

Invalid input

func NewListSchedulesBadRequest

func NewListSchedulesBadRequest() *ListSchedulesBadRequest

NewListSchedulesBadRequest creates a ListSchedulesBadRequest with default headers values

func (*ListSchedulesBadRequest) Error

func (o *ListSchedulesBadRequest) Error() string

func (*ListSchedulesBadRequest) GetPayload

func (o *ListSchedulesBadRequest) GetPayload() *models.Errored

func (*ListSchedulesBadRequest) IsClientError

func (o *ListSchedulesBadRequest) IsClientError() bool

IsClientError returns true when this list schedules bad request response has a 4xx status code

func (*ListSchedulesBadRequest) IsCode

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

IsCode returns true when this list schedules bad request response a status code equal to that given

func (*ListSchedulesBadRequest) IsRedirect

func (o *ListSchedulesBadRequest) IsRedirect() bool

IsRedirect returns true when this list schedules bad request response has a 3xx status code

func (*ListSchedulesBadRequest) IsServerError

func (o *ListSchedulesBadRequest) IsServerError() bool

IsServerError returns true when this list schedules bad request response has a 5xx status code

func (*ListSchedulesBadRequest) IsSuccess

func (o *ListSchedulesBadRequest) IsSuccess() bool

IsSuccess returns true when this list schedules bad request response has a 2xx status code

func (*ListSchedulesBadRequest) String

func (o *ListSchedulesBadRequest) String() string

type ListSchedulesNotFound added in v0.2.5

type ListSchedulesNotFound struct {
	Payload *models.Errored
}

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

Not Found

func NewListSchedulesNotFound added in v0.2.5

func NewListSchedulesNotFound() *ListSchedulesNotFound

NewListSchedulesNotFound creates a ListSchedulesNotFound with default headers values

func (*ListSchedulesNotFound) Error added in v0.2.5

func (o *ListSchedulesNotFound) Error() string

func (*ListSchedulesNotFound) GetPayload added in v0.2.5

func (o *ListSchedulesNotFound) GetPayload() *models.Errored

func (*ListSchedulesNotFound) IsClientError added in v0.2.5

func (o *ListSchedulesNotFound) IsClientError() bool

IsClientError returns true when this list schedules not found response has a 4xx status code

func (*ListSchedulesNotFound) IsCode added in v0.2.5

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 added in v0.2.5

func (o *ListSchedulesNotFound) IsRedirect() bool

IsRedirect returns true when this list schedules not found response has a 3xx status code

func (*ListSchedulesNotFound) IsServerError added in v0.2.5

func (o *ListSchedulesNotFound) IsServerError() bool

IsServerError returns true when this list schedules not found response has a 5xx status code

func (*ListSchedulesNotFound) IsSuccess added in v0.2.5

func (o *ListSchedulesNotFound) IsSuccess() bool

IsSuccess returns true when this list schedules not found response has a 2xx status code

func (*ListSchedulesNotFound) String added in v0.2.5

func (o *ListSchedulesNotFound) String() string

type ListSchedulesOK

type ListSchedulesOK struct {
	Payload *models.SchedulesInfo
}

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

A sequence of schedules

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.SchedulesInfo

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 {

	/* PageToken.

	   A token to retrieve the next page of results.

	   Default: "project"
	*/
	PageToken string

	/* ProjectSlug.

	     Project slug in the form vcs-slug/org-name/repo-name.
	The / characters may be URL-escaped.
	Example: gh/CircleCI-Public/api-preview-docs

	*/
	ProjectSlug string

	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) SetPageToken

func (o *ListSchedulesParams) SetPageToken(pageToken string)

SetPageToken adds the pageToken to the list schedules params

func (*ListSchedulesParams) SetProjectSlug

func (o *ListSchedulesParams) SetProjectSlug(projectSlug string)

SetProjectSlug adds the projectSlug 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) WithContext

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) WithPageToken

func (o *ListSchedulesParams) WithPageToken(pageToken string) *ListSchedulesParams

WithPageToken adds the pageToken to the list schedules params

func (*ListSchedulesParams) WithProjectSlug

func (o *ListSchedulesParams) WithProjectSlug(projectSlug string) *ListSchedulesParams

WithProjectSlug adds the projectSlug 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) 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 UpdateScheduleBadRequest

type UpdateScheduleBadRequest struct {
	Payload *models.Errored
}

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

Invalid input

func NewUpdateScheduleBadRequest

func NewUpdateScheduleBadRequest() *UpdateScheduleBadRequest

NewUpdateScheduleBadRequest creates a UpdateScheduleBadRequest with default headers values

func (*UpdateScheduleBadRequest) Error

func (o *UpdateScheduleBadRequest) Error() string

func (*UpdateScheduleBadRequest) GetPayload

func (o *UpdateScheduleBadRequest) GetPayload() *models.Errored

func (*UpdateScheduleBadRequest) IsClientError

func (o *UpdateScheduleBadRequest) IsClientError() bool

IsClientError returns true when this update schedule bad request response has a 4xx status code

func (*UpdateScheduleBadRequest) IsCode

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

IsCode returns true when this update schedule bad request response a status code equal to that given

func (*UpdateScheduleBadRequest) IsRedirect

func (o *UpdateScheduleBadRequest) IsRedirect() bool

IsRedirect returns true when this update schedule bad request response has a 3xx status code

func (*UpdateScheduleBadRequest) IsServerError

func (o *UpdateScheduleBadRequest) IsServerError() bool

IsServerError returns true when this update schedule bad request response has a 5xx status code

func (*UpdateScheduleBadRequest) IsSuccess

func (o *UpdateScheduleBadRequest) IsSuccess() bool

IsSuccess returns true when this update schedule bad request response has a 2xx status code

func (*UpdateScheduleBadRequest) String

func (o *UpdateScheduleBadRequest) String() string

type UpdateScheduleNotFound added in v0.2.5

type UpdateScheduleNotFound struct {
	Payload *models.Errored
}

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

Not Found

func NewUpdateScheduleNotFound added in v0.2.5

func NewUpdateScheduleNotFound() *UpdateScheduleNotFound

NewUpdateScheduleNotFound creates a UpdateScheduleNotFound with default headers values

func (*UpdateScheduleNotFound) Error added in v0.2.5

func (o *UpdateScheduleNotFound) Error() string

func (*UpdateScheduleNotFound) GetPayload added in v0.2.5

func (o *UpdateScheduleNotFound) GetPayload() *models.Errored

func (*UpdateScheduleNotFound) IsClientError added in v0.2.5

func (o *UpdateScheduleNotFound) IsClientError() bool

IsClientError returns true when this update schedule not found response has a 4xx status code

func (*UpdateScheduleNotFound) IsCode added in v0.2.5

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

IsCode returns true when this update schedule not found response a status code equal to that given

func (*UpdateScheduleNotFound) IsRedirect added in v0.2.5

func (o *UpdateScheduleNotFound) IsRedirect() bool

IsRedirect returns true when this update schedule not found response has a 3xx status code

func (*UpdateScheduleNotFound) IsServerError added in v0.2.5

func (o *UpdateScheduleNotFound) IsServerError() bool

IsServerError returns true when this update schedule not found response has a 5xx status code

func (*UpdateScheduleNotFound) IsSuccess added in v0.2.5

func (o *UpdateScheduleNotFound) IsSuccess() bool

IsSuccess returns true when this update schedule not found response has a 2xx status code

func (*UpdateScheduleNotFound) String added in v0.2.5

func (o *UpdateScheduleNotFound) String() string

type UpdateScheduleOK

type UpdateScheduleOK struct {
	Payload *models.ScheduleInfo
}

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

A schedule object

func NewUpdateScheduleOK

func NewUpdateScheduleOK() *UpdateScheduleOK

NewUpdateScheduleOK creates a UpdateScheduleOK with default headers values

func (*UpdateScheduleOK) Error

func (o *UpdateScheduleOK) Error() string

func (*UpdateScheduleOK) GetPayload

func (o *UpdateScheduleOK) GetPayload() *models.ScheduleInfo

func (*UpdateScheduleOK) IsClientError

func (o *UpdateScheduleOK) IsClientError() bool

IsClientError returns true when this update schedule o k response has a 4xx status code

func (*UpdateScheduleOK) IsCode

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

IsCode returns true when this update schedule o k response a status code equal to that given

func (*UpdateScheduleOK) IsRedirect

func (o *UpdateScheduleOK) IsRedirect() bool

IsRedirect returns true when this update schedule o k response has a 3xx status code

func (*UpdateScheduleOK) IsServerError

func (o *UpdateScheduleOK) IsServerError() bool

IsServerError returns true when this update schedule o k response has a 5xx status code

func (*UpdateScheduleOK) IsSuccess

func (o *UpdateScheduleOK) IsSuccess() bool

IsSuccess returns true when this update schedule o k response has a 2xx status code

func (*UpdateScheduleOK) String

func (o *UpdateScheduleOK) String() string

type UpdateScheduleParams

type UpdateScheduleParams struct {

	/* Body.

	   Schedule information (payload)
	*/
	Body *models.SchedulePayload

	/* ID.

	   The unique ID of the schedule.

	   Format: uuid
	*/
	ID strfmt.UUID

	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 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 NewUpdateScheduleParamsWithContext

func NewUpdateScheduleParamsWithContext(ctx context.Context) *UpdateScheduleParams

NewUpdateScheduleParamsWithContext creates a new UpdateScheduleParams object with 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 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 ability to set a timeout on a request.

func (*UpdateScheduleParams) SetBody

func (o *UpdateScheduleParams) SetBody(body *models.SchedulePayload)

SetBody adds the body to the update schedule params

func (*UpdateScheduleParams) SetContext

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

SetContext adds the context to the update schedule params

func (*UpdateScheduleParams) SetDefaults

func (o *UpdateScheduleParams) SetDefaults()

SetDefaults hydrates default values in the update schedule params (not the query body).

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

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 strfmt.UUID)

SetID adds the id 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) WithBody

WithBody adds the body to the update schedule params

func (*UpdateScheduleParams) WithContext

WithContext adds the context to the update schedule params

func (*UpdateScheduleParams) WithDefaults

func (o *UpdateScheduleParams) WithDefaults() *UpdateScheduleParams

WithDefaults hydrates default values in the update schedule params (not the query body).

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

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) 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