deal_schedule

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 1

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 deal schedule API

func (*Client) GetSchedules

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

GetSchedules lists all deal making schedules

func (*Client) PostSchedule

func (a *Client) PostSchedule(params *PostScheduleParams, opts ...ClientOption) (*PostScheduleOK, error)

PostSchedule creates a new schedule

Create a new schedule

func (*Client) PostScheduleIDPause

func (a *Client) PostScheduleIDPause(params *PostScheduleIDPauseParams, opts ...ClientOption) (*PostScheduleIDPauseOK, error)

PostScheduleIDPause pauses a specific schedule

func (*Client) PostScheduleIDResume

func (a *Client) PostScheduleIDResume(params *PostScheduleIDResumeParams, opts ...ClientOption) (*PostScheduleIDResumeOK, error)

PostScheduleIDResume resumes a specific schedule

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetSchedules(params *GetSchedulesParams, opts ...ClientOption) (*GetSchedulesOK, error)

	PostSchedule(params *PostScheduleParams, opts ...ClientOption) (*PostScheduleOK, error)

	PostScheduleIDPause(params *PostScheduleIDPauseParams, opts ...ClientOption) (*PostScheduleIDPauseOK, error)

	PostScheduleIDResume(params *PostScheduleIDResumeParams, opts ...ClientOption) (*PostScheduleIDResumeOK, 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 deal schedule API client.

type GetSchedulesBadRequest

type GetSchedulesBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewGetSchedulesBadRequest

func NewGetSchedulesBadRequest() *GetSchedulesBadRequest

NewGetSchedulesBadRequest creates a GetSchedulesBadRequest with default headers values

func (*GetSchedulesBadRequest) Code

func (o *GetSchedulesBadRequest) Code() int

Code gets the status code for the get schedules bad request response

func (*GetSchedulesBadRequest) Error

func (o *GetSchedulesBadRequest) Error() string

func (*GetSchedulesBadRequest) GetPayload

func (o *GetSchedulesBadRequest) GetPayload() *models.APIHTTPError

func (*GetSchedulesBadRequest) IsClientError

func (o *GetSchedulesBadRequest) IsClientError() bool

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

func (*GetSchedulesBadRequest) IsCode

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

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

func (*GetSchedulesBadRequest) IsRedirect

func (o *GetSchedulesBadRequest) IsRedirect() bool

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

func (*GetSchedulesBadRequest) IsServerError

func (o *GetSchedulesBadRequest) IsServerError() bool

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

func (*GetSchedulesBadRequest) IsSuccess

func (o *GetSchedulesBadRequest) IsSuccess() bool

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

func (*GetSchedulesBadRequest) String

func (o *GetSchedulesBadRequest) String() string

type GetSchedulesInternalServerError

type GetSchedulesInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewGetSchedulesInternalServerError

func NewGetSchedulesInternalServerError() *GetSchedulesInternalServerError

NewGetSchedulesInternalServerError creates a GetSchedulesInternalServerError with default headers values

func (*GetSchedulesInternalServerError) Code

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

func (*GetSchedulesInternalServerError) Error

func (*GetSchedulesInternalServerError) GetPayload

func (*GetSchedulesInternalServerError) IsClientError

func (o *GetSchedulesInternalServerError) IsClientError() bool

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

func (*GetSchedulesInternalServerError) IsCode

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

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

func (*GetSchedulesInternalServerError) IsRedirect

func (o *GetSchedulesInternalServerError) IsRedirect() bool

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

func (*GetSchedulesInternalServerError) IsServerError

func (o *GetSchedulesInternalServerError) IsServerError() bool

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

func (*GetSchedulesInternalServerError) IsSuccess

func (o *GetSchedulesInternalServerError) IsSuccess() bool

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

func (*GetSchedulesInternalServerError) String

type GetSchedulesOK

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

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

OK

func NewGetSchedulesOK

func NewGetSchedulesOK() *GetSchedulesOK

NewGetSchedulesOK creates a GetSchedulesOK with default headers values

func (*GetSchedulesOK) Code

func (o *GetSchedulesOK) Code() int

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

func (*GetSchedulesOK) Error

func (o *GetSchedulesOK) Error() string

func (*GetSchedulesOK) GetPayload

func (o *GetSchedulesOK) GetPayload() []*models.ModelSchedule

func (*GetSchedulesOK) IsClientError

func (o *GetSchedulesOK) IsClientError() bool

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

func (*GetSchedulesOK) IsCode

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

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

func (*GetSchedulesOK) IsRedirect

func (o *GetSchedulesOK) IsRedirect() bool

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

func (*GetSchedulesOK) IsServerError

func (o *GetSchedulesOK) IsServerError() bool

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

func (*GetSchedulesOK) IsSuccess

func (o *GetSchedulesOK) IsSuccess() bool

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

func (*GetSchedulesOK) String

func (o *GetSchedulesOK) String() 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 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 NewGetSchedulesParamsWithContext

func NewGetSchedulesParamsWithContext(ctx context.Context) *GetSchedulesParams

NewGetSchedulesParamsWithContext creates a new GetSchedulesParams object with 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 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 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) SetDefaults

func (o *GetSchedulesParams) SetDefaults()

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

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

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

func (o *GetSchedulesParams) WithDefaults() *GetSchedulesParams

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

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

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 PostScheduleBadRequest

type PostScheduleBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewPostScheduleBadRequest

func NewPostScheduleBadRequest() *PostScheduleBadRequest

NewPostScheduleBadRequest creates a PostScheduleBadRequest with default headers values

func (*PostScheduleBadRequest) Code

func (o *PostScheduleBadRequest) Code() int

Code gets the status code for the post schedule bad request response

func (*PostScheduleBadRequest) Error

func (o *PostScheduleBadRequest) Error() string

func (*PostScheduleBadRequest) GetPayload

func (o *PostScheduleBadRequest) GetPayload() *models.APIHTTPError

func (*PostScheduleBadRequest) IsClientError

func (o *PostScheduleBadRequest) IsClientError() bool

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

func (*PostScheduleBadRequest) IsCode

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

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

func (*PostScheduleBadRequest) IsRedirect

func (o *PostScheduleBadRequest) IsRedirect() bool

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

func (*PostScheduleBadRequest) IsServerError

func (o *PostScheduleBadRequest) IsServerError() bool

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

func (*PostScheduleBadRequest) IsSuccess

func (o *PostScheduleBadRequest) IsSuccess() bool

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

func (*PostScheduleBadRequest) String

func (o *PostScheduleBadRequest) String() string

type PostScheduleIDPauseBadRequest

type PostScheduleIDPauseBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewPostScheduleIDPauseBadRequest

func NewPostScheduleIDPauseBadRequest() *PostScheduleIDPauseBadRequest

NewPostScheduleIDPauseBadRequest creates a PostScheduleIDPauseBadRequest with default headers values

func (*PostScheduleIDPauseBadRequest) Code

Code gets the status code for the post schedule Id pause bad request response

func (*PostScheduleIDPauseBadRequest) Error

func (*PostScheduleIDPauseBadRequest) GetPayload

func (*PostScheduleIDPauseBadRequest) IsClientError

func (o *PostScheduleIDPauseBadRequest) IsClientError() bool

IsClientError returns true when this post schedule Id pause bad request response has a 4xx status code

func (*PostScheduleIDPauseBadRequest) IsCode

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

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

func (*PostScheduleIDPauseBadRequest) IsRedirect

func (o *PostScheduleIDPauseBadRequest) IsRedirect() bool

IsRedirect returns true when this post schedule Id pause bad request response has a 3xx status code

func (*PostScheduleIDPauseBadRequest) IsServerError

func (o *PostScheduleIDPauseBadRequest) IsServerError() bool

IsServerError returns true when this post schedule Id pause bad request response has a 5xx status code

func (*PostScheduleIDPauseBadRequest) IsSuccess

func (o *PostScheduleIDPauseBadRequest) IsSuccess() bool

IsSuccess returns true when this post schedule Id pause bad request response has a 2xx status code

func (*PostScheduleIDPauseBadRequest) String

type PostScheduleIDPauseInternalServerError

type PostScheduleIDPauseInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewPostScheduleIDPauseInternalServerError

func NewPostScheduleIDPauseInternalServerError() *PostScheduleIDPauseInternalServerError

NewPostScheduleIDPauseInternalServerError creates a PostScheduleIDPauseInternalServerError with default headers values

func (*PostScheduleIDPauseInternalServerError) Code

Code gets the status code for the post schedule Id pause internal server error response

func (*PostScheduleIDPauseInternalServerError) Error

func (*PostScheduleIDPauseInternalServerError) GetPayload

func (*PostScheduleIDPauseInternalServerError) IsClientError

func (o *PostScheduleIDPauseInternalServerError) IsClientError() bool

IsClientError returns true when this post schedule Id pause internal server error response has a 4xx status code

func (*PostScheduleIDPauseInternalServerError) IsCode

IsCode returns true when this post schedule Id pause internal server error response a status code equal to that given

func (*PostScheduleIDPauseInternalServerError) IsRedirect

IsRedirect returns true when this post schedule Id pause internal server error response has a 3xx status code

func (*PostScheduleIDPauseInternalServerError) IsServerError

func (o *PostScheduleIDPauseInternalServerError) IsServerError() bool

IsServerError returns true when this post schedule Id pause internal server error response has a 5xx status code

func (*PostScheduleIDPauseInternalServerError) IsSuccess

IsSuccess returns true when this post schedule Id pause internal server error response has a 2xx status code

func (*PostScheduleIDPauseInternalServerError) String

type PostScheduleIDPauseOK

type PostScheduleIDPauseOK struct {
	Payload *models.ModelSchedule
}

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

OK

func NewPostScheduleIDPauseOK

func NewPostScheduleIDPauseOK() *PostScheduleIDPauseOK

NewPostScheduleIDPauseOK creates a PostScheduleIDPauseOK with default headers values

func (*PostScheduleIDPauseOK) Code

func (o *PostScheduleIDPauseOK) Code() int

Code gets the status code for the post schedule Id pause o k response

func (*PostScheduleIDPauseOK) Error

func (o *PostScheduleIDPauseOK) Error() string

func (*PostScheduleIDPauseOK) GetPayload

func (o *PostScheduleIDPauseOK) GetPayload() *models.ModelSchedule

func (*PostScheduleIDPauseOK) IsClientError

func (o *PostScheduleIDPauseOK) IsClientError() bool

IsClientError returns true when this post schedule Id pause o k response has a 4xx status code

func (*PostScheduleIDPauseOK) IsCode

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

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

func (*PostScheduleIDPauseOK) IsRedirect

func (o *PostScheduleIDPauseOK) IsRedirect() bool

IsRedirect returns true when this post schedule Id pause o k response has a 3xx status code

func (*PostScheduleIDPauseOK) IsServerError

func (o *PostScheduleIDPauseOK) IsServerError() bool

IsServerError returns true when this post schedule Id pause o k response has a 5xx status code

func (*PostScheduleIDPauseOK) IsSuccess

func (o *PostScheduleIDPauseOK) IsSuccess() bool

IsSuccess returns true when this post schedule Id pause o k response has a 2xx status code

func (*PostScheduleIDPauseOK) String

func (o *PostScheduleIDPauseOK) String() string

type PostScheduleIDPauseParams

type PostScheduleIDPauseParams struct {

	/* ID.

	   Schedule ID
	*/
	ID string

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

PostScheduleIDPauseParams contains all the parameters to send to the API endpoint

for the post schedule ID pause operation.

Typically these are written to a http.Request.

func NewPostScheduleIDPauseParams

func NewPostScheduleIDPauseParams() *PostScheduleIDPauseParams

NewPostScheduleIDPauseParams creates a new PostScheduleIDPauseParams 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 NewPostScheduleIDPauseParamsWithContext

func NewPostScheduleIDPauseParamsWithContext(ctx context.Context) *PostScheduleIDPauseParams

NewPostScheduleIDPauseParamsWithContext creates a new PostScheduleIDPauseParams object with the ability to set a context for a request.

func NewPostScheduleIDPauseParamsWithHTTPClient

func NewPostScheduleIDPauseParamsWithHTTPClient(client *http.Client) *PostScheduleIDPauseParams

NewPostScheduleIDPauseParamsWithHTTPClient creates a new PostScheduleIDPauseParams object with the ability to set a custom HTTPClient for a request.

func NewPostScheduleIDPauseParamsWithTimeout

func NewPostScheduleIDPauseParamsWithTimeout(timeout time.Duration) *PostScheduleIDPauseParams

NewPostScheduleIDPauseParamsWithTimeout creates a new PostScheduleIDPauseParams object with the ability to set a timeout on a request.

func (*PostScheduleIDPauseParams) SetContext

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

SetContext adds the context to the post schedule ID pause params

func (*PostScheduleIDPauseParams) SetDefaults

func (o *PostScheduleIDPauseParams) SetDefaults()

SetDefaults hydrates default values in the post schedule ID pause params (not the query body).

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

func (*PostScheduleIDPauseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post schedule ID pause params

func (*PostScheduleIDPauseParams) SetID

func (o *PostScheduleIDPauseParams) SetID(id string)

SetID adds the id to the post schedule ID pause params

func (*PostScheduleIDPauseParams) SetTimeout

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

SetTimeout adds the timeout to the post schedule ID pause params

func (*PostScheduleIDPauseParams) WithContext

WithContext adds the context to the post schedule ID pause params

func (*PostScheduleIDPauseParams) WithDefaults

WithDefaults hydrates default values in the post schedule ID pause params (not the query body).

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

func (*PostScheduleIDPauseParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post schedule ID pause params

func (*PostScheduleIDPauseParams) WithID

WithID adds the id to the post schedule ID pause params

func (*PostScheduleIDPauseParams) WithTimeout

WithTimeout adds the timeout to the post schedule ID pause params

func (*PostScheduleIDPauseParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostScheduleIDPauseReader

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

PostScheduleIDPauseReader is a Reader for the PostScheduleIDPause structure.

func (*PostScheduleIDPauseReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostScheduleIDResumeBadRequest

type PostScheduleIDResumeBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewPostScheduleIDResumeBadRequest

func NewPostScheduleIDResumeBadRequest() *PostScheduleIDResumeBadRequest

NewPostScheduleIDResumeBadRequest creates a PostScheduleIDResumeBadRequest with default headers values

func (*PostScheduleIDResumeBadRequest) Code

Code gets the status code for the post schedule Id resume bad request response

func (*PostScheduleIDResumeBadRequest) Error

func (*PostScheduleIDResumeBadRequest) GetPayload

func (*PostScheduleIDResumeBadRequest) IsClientError

func (o *PostScheduleIDResumeBadRequest) IsClientError() bool

IsClientError returns true when this post schedule Id resume bad request response has a 4xx status code

func (*PostScheduleIDResumeBadRequest) IsCode

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

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

func (*PostScheduleIDResumeBadRequest) IsRedirect

func (o *PostScheduleIDResumeBadRequest) IsRedirect() bool

IsRedirect returns true when this post schedule Id resume bad request response has a 3xx status code

func (*PostScheduleIDResumeBadRequest) IsServerError

func (o *PostScheduleIDResumeBadRequest) IsServerError() bool

IsServerError returns true when this post schedule Id resume bad request response has a 5xx status code

func (*PostScheduleIDResumeBadRequest) IsSuccess

func (o *PostScheduleIDResumeBadRequest) IsSuccess() bool

IsSuccess returns true when this post schedule Id resume bad request response has a 2xx status code

func (*PostScheduleIDResumeBadRequest) String

type PostScheduleIDResumeInternalServerError

type PostScheduleIDResumeInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewPostScheduleIDResumeInternalServerError

func NewPostScheduleIDResumeInternalServerError() *PostScheduleIDResumeInternalServerError

NewPostScheduleIDResumeInternalServerError creates a PostScheduleIDResumeInternalServerError with default headers values

func (*PostScheduleIDResumeInternalServerError) Code

Code gets the status code for the post schedule Id resume internal server error response

func (*PostScheduleIDResumeInternalServerError) Error

func (*PostScheduleIDResumeInternalServerError) GetPayload

func (*PostScheduleIDResumeInternalServerError) IsClientError

func (o *PostScheduleIDResumeInternalServerError) IsClientError() bool

IsClientError returns true when this post schedule Id resume internal server error response has a 4xx status code

func (*PostScheduleIDResumeInternalServerError) IsCode

IsCode returns true when this post schedule Id resume internal server error response a status code equal to that given

func (*PostScheduleIDResumeInternalServerError) IsRedirect

IsRedirect returns true when this post schedule Id resume internal server error response has a 3xx status code

func (*PostScheduleIDResumeInternalServerError) IsServerError

func (o *PostScheduleIDResumeInternalServerError) IsServerError() bool

IsServerError returns true when this post schedule Id resume internal server error response has a 5xx status code

func (*PostScheduleIDResumeInternalServerError) IsSuccess

IsSuccess returns true when this post schedule Id resume internal server error response has a 2xx status code

func (*PostScheduleIDResumeInternalServerError) String

type PostScheduleIDResumeOK

type PostScheduleIDResumeOK struct {
	Payload *models.ModelSchedule
}

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

OK

func NewPostScheduleIDResumeOK

func NewPostScheduleIDResumeOK() *PostScheduleIDResumeOK

NewPostScheduleIDResumeOK creates a PostScheduleIDResumeOK with default headers values

func (*PostScheduleIDResumeOK) Code

func (o *PostScheduleIDResumeOK) Code() int

Code gets the status code for the post schedule Id resume o k response

func (*PostScheduleIDResumeOK) Error

func (o *PostScheduleIDResumeOK) Error() string

func (*PostScheduleIDResumeOK) GetPayload

func (o *PostScheduleIDResumeOK) GetPayload() *models.ModelSchedule

func (*PostScheduleIDResumeOK) IsClientError

func (o *PostScheduleIDResumeOK) IsClientError() bool

IsClientError returns true when this post schedule Id resume o k response has a 4xx status code

func (*PostScheduleIDResumeOK) IsCode

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

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

func (*PostScheduleIDResumeOK) IsRedirect

func (o *PostScheduleIDResumeOK) IsRedirect() bool

IsRedirect returns true when this post schedule Id resume o k response has a 3xx status code

func (*PostScheduleIDResumeOK) IsServerError

func (o *PostScheduleIDResumeOK) IsServerError() bool

IsServerError returns true when this post schedule Id resume o k response has a 5xx status code

func (*PostScheduleIDResumeOK) IsSuccess

func (o *PostScheduleIDResumeOK) IsSuccess() bool

IsSuccess returns true when this post schedule Id resume o k response has a 2xx status code

func (*PostScheduleIDResumeOK) String

func (o *PostScheduleIDResumeOK) String() string

type PostScheduleIDResumeParams

type PostScheduleIDResumeParams struct {

	/* ID.

	   Schedule ID
	*/
	ID string

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

PostScheduleIDResumeParams contains all the parameters to send to the API endpoint

for the post schedule ID resume operation.

Typically these are written to a http.Request.

func NewPostScheduleIDResumeParams

func NewPostScheduleIDResumeParams() *PostScheduleIDResumeParams

NewPostScheduleIDResumeParams creates a new PostScheduleIDResumeParams 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 NewPostScheduleIDResumeParamsWithContext

func NewPostScheduleIDResumeParamsWithContext(ctx context.Context) *PostScheduleIDResumeParams

NewPostScheduleIDResumeParamsWithContext creates a new PostScheduleIDResumeParams object with the ability to set a context for a request.

func NewPostScheduleIDResumeParamsWithHTTPClient

func NewPostScheduleIDResumeParamsWithHTTPClient(client *http.Client) *PostScheduleIDResumeParams

NewPostScheduleIDResumeParamsWithHTTPClient creates a new PostScheduleIDResumeParams object with the ability to set a custom HTTPClient for a request.

func NewPostScheduleIDResumeParamsWithTimeout

func NewPostScheduleIDResumeParamsWithTimeout(timeout time.Duration) *PostScheduleIDResumeParams

NewPostScheduleIDResumeParamsWithTimeout creates a new PostScheduleIDResumeParams object with the ability to set a timeout on a request.

func (*PostScheduleIDResumeParams) SetContext

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

SetContext adds the context to the post schedule ID resume params

func (*PostScheduleIDResumeParams) SetDefaults

func (o *PostScheduleIDResumeParams) SetDefaults()

SetDefaults hydrates default values in the post schedule ID resume params (not the query body).

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

func (*PostScheduleIDResumeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post schedule ID resume params

func (*PostScheduleIDResumeParams) SetID

func (o *PostScheduleIDResumeParams) SetID(id string)

SetID adds the id to the post schedule ID resume params

func (*PostScheduleIDResumeParams) SetTimeout

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

SetTimeout adds the timeout to the post schedule ID resume params

func (*PostScheduleIDResumeParams) WithContext

WithContext adds the context to the post schedule ID resume params

func (*PostScheduleIDResumeParams) WithDefaults

WithDefaults hydrates default values in the post schedule ID resume params (not the query body).

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

func (*PostScheduleIDResumeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post schedule ID resume params

func (*PostScheduleIDResumeParams) WithID

WithID adds the id to the post schedule ID resume params

func (*PostScheduleIDResumeParams) WithTimeout

WithTimeout adds the timeout to the post schedule ID resume params

func (*PostScheduleIDResumeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostScheduleIDResumeReader

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

PostScheduleIDResumeReader is a Reader for the PostScheduleIDResume structure.

func (*PostScheduleIDResumeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostScheduleInternalServerError

type PostScheduleInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewPostScheduleInternalServerError

func NewPostScheduleInternalServerError() *PostScheduleInternalServerError

NewPostScheduleInternalServerError creates a PostScheduleInternalServerError with default headers values

func (*PostScheduleInternalServerError) Code

Code gets the status code for the post schedule internal server error response

func (*PostScheduleInternalServerError) Error

func (*PostScheduleInternalServerError) GetPayload

func (*PostScheduleInternalServerError) IsClientError

func (o *PostScheduleInternalServerError) IsClientError() bool

IsClientError returns true when this post schedule internal server error response has a 4xx status code

func (*PostScheduleInternalServerError) IsCode

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

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

func (*PostScheduleInternalServerError) IsRedirect

func (o *PostScheduleInternalServerError) IsRedirect() bool

IsRedirect returns true when this post schedule internal server error response has a 3xx status code

func (*PostScheduleInternalServerError) IsServerError

func (o *PostScheduleInternalServerError) IsServerError() bool

IsServerError returns true when this post schedule internal server error response has a 5xx status code

func (*PostScheduleInternalServerError) IsSuccess

func (o *PostScheduleInternalServerError) IsSuccess() bool

IsSuccess returns true when this post schedule internal server error response has a 2xx status code

func (*PostScheduleInternalServerError) String

type PostScheduleOK

type PostScheduleOK struct {
	Payload *models.ModelSchedule
}

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

OK

func NewPostScheduleOK

func NewPostScheduleOK() *PostScheduleOK

NewPostScheduleOK creates a PostScheduleOK with default headers values

func (*PostScheduleOK) Code

func (o *PostScheduleOK) Code() int

Code gets the status code for the post schedule o k response

func (*PostScheduleOK) Error

func (o *PostScheduleOK) Error() string

func (*PostScheduleOK) GetPayload

func (o *PostScheduleOK) GetPayload() *models.ModelSchedule

func (*PostScheduleOK) IsClientError

func (o *PostScheduleOK) IsClientError() bool

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

func (*PostScheduleOK) IsCode

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

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

func (*PostScheduleOK) IsRedirect

func (o *PostScheduleOK) IsRedirect() bool

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

func (*PostScheduleOK) IsServerError

func (o *PostScheduleOK) IsServerError() bool

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

func (*PostScheduleOK) IsSuccess

func (o *PostScheduleOK) IsSuccess() bool

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

func (*PostScheduleOK) String

func (o *PostScheduleOK) String() string

type PostScheduleParams

type PostScheduleParams struct {

	/* Schedule.

	   CreateRequest
	*/
	Schedule *models.ScheduleCreateRequest

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

PostScheduleParams contains all the parameters to send to the API endpoint

for the post schedule operation.

Typically these are written to a http.Request.

func NewPostScheduleParams

func NewPostScheduleParams() *PostScheduleParams

NewPostScheduleParams creates a new PostScheduleParams 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 NewPostScheduleParamsWithContext

func NewPostScheduleParamsWithContext(ctx context.Context) *PostScheduleParams

NewPostScheduleParamsWithContext creates a new PostScheduleParams object with the ability to set a context for a request.

func NewPostScheduleParamsWithHTTPClient

func NewPostScheduleParamsWithHTTPClient(client *http.Client) *PostScheduleParams

NewPostScheduleParamsWithHTTPClient creates a new PostScheduleParams object with the ability to set a custom HTTPClient for a request.

func NewPostScheduleParamsWithTimeout

func NewPostScheduleParamsWithTimeout(timeout time.Duration) *PostScheduleParams

NewPostScheduleParamsWithTimeout creates a new PostScheduleParams object with the ability to set a timeout on a request.

func (*PostScheduleParams) SetContext

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

SetContext adds the context to the post schedule params

func (*PostScheduleParams) SetDefaults

func (o *PostScheduleParams) SetDefaults()

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

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

func (*PostScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post schedule params

func (*PostScheduleParams) SetSchedule

func (o *PostScheduleParams) SetSchedule(schedule *models.ScheduleCreateRequest)

SetSchedule adds the schedule to the post schedule params

func (*PostScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the post schedule params

func (*PostScheduleParams) WithContext

WithContext adds the context to the post schedule params

func (*PostScheduleParams) WithDefaults

func (o *PostScheduleParams) WithDefaults() *PostScheduleParams

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

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

func (*PostScheduleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post schedule params

func (*PostScheduleParams) WithSchedule

WithSchedule adds the schedule to the post schedule params

func (*PostScheduleParams) WithTimeout

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

WithTimeout adds the timeout to the post schedule params

func (*PostScheduleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostScheduleReader

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

PostScheduleReader is a Reader for the PostSchedule structure.

func (*PostScheduleReader) ReadResponse

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