plan_management

package
v0.0.0-...-33e56a9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CreatePlanBadRequestCode int = 400

CreatePlanBadRequestCode is the HTTP code returned for type CreatePlanBadRequest

View Source
const CreatePlanConflictCode int = 409

CreatePlanConflictCode is the HTTP code returned for type CreatePlanConflict

View Source
const CreatePlanCreatedCode int = 201

CreatePlanCreatedCode is the HTTP code returned for type CreatePlanCreated

View Source
const CreatePlanInternalServerErrorCode int = 500

CreatePlanInternalServerErrorCode is the HTTP code returned for type CreatePlanInternalServerError

View Source
const GetCompletePlanInternalServerErrorCode int = 500

GetCompletePlanInternalServerErrorCode is the HTTP code returned for type GetCompletePlanInternalServerError

View Source
const GetCompletePlanNotFoundCode int = 404

GetCompletePlanNotFoundCode is the HTTP code returned for type GetCompletePlanNotFound

View Source
const GetCompletePlanOKCode int = 200

GetCompletePlanOKCode is the HTTP code returned for type GetCompletePlanOK

View Source
const GetPlanInternalServerErrorCode int = 500

GetPlanInternalServerErrorCode is the HTTP code returned for type GetPlanInternalServerError

View Source
const GetPlanNotFoundCode int = 404

GetPlanNotFoundCode is the HTTP code returned for type GetPlanNotFound

View Source
const GetPlanOKCode int = 200

GetPlanOKCode is the HTTP code returned for type GetPlanOK

View Source
const ListCompletePlansInternalServerErrorCode int = 500

ListCompletePlansInternalServerErrorCode is the HTTP code returned for type ListCompletePlansInternalServerError

View Source
const ListCompletePlansOKCode int = 200

ListCompletePlansOKCode is the HTTP code returned for type ListCompletePlansOK

View Source
const ListPlansInternalServerErrorCode int = 500

ListPlansInternalServerErrorCode is the HTTP code returned for type ListPlansInternalServerError

View Source
const ListPlansOKCode int = 200

ListPlansOKCode is the HTTP code returned for type ListPlansOK

View Source
const UpdatePlanInternalServerErrorCode int = 500

UpdatePlanInternalServerErrorCode is the HTTP code returned for type UpdatePlanInternalServerError

View Source
const UpdatePlanNotFoundCode int = 404

UpdatePlanNotFoundCode is the HTTP code returned for type UpdatePlanNotFound

View Source
const UpdatePlanOKCode int = 200

UpdatePlanOKCode is the HTTP code returned for type UpdatePlanOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePlan

type CreatePlan struct {
	Context *middleware.Context
	Handler CreatePlanHandler
}

CreatePlan swagger:route POST /plan planManagement createPlan

Create a plan

Creates a new plan

func NewCreatePlan

func NewCreatePlan(ctx *middleware.Context, handler CreatePlanHandler) *CreatePlan

NewCreatePlan creates a new http.Handler for the create plan operation

func (*CreatePlan) ServeHTTP

func (o *CreatePlan) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreatePlanBadRequest

type CreatePlanBadRequest struct {
}

CreatePlanBadRequest invalid input, object invalid

swagger:response createPlanBadRequest

func NewCreatePlanBadRequest

func NewCreatePlanBadRequest() *CreatePlanBadRequest

NewCreatePlanBadRequest creates CreatePlanBadRequest with default headers values

func (*CreatePlanBadRequest) WriteResponse

func (o *CreatePlanBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePlanConflict

type CreatePlanConflict struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

CreatePlanConflict an existing item already exists

swagger:response createPlanConflict

func NewCreatePlanConflict

func NewCreatePlanConflict() *CreatePlanConflict

NewCreatePlanConflict creates CreatePlanConflict with default headers values

func (*CreatePlanConflict) SetPayload

func (o *CreatePlanConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create plan conflict response

func (*CreatePlanConflict) WithPayload

func (o *CreatePlanConflict) WithPayload(payload *models.ErrorResponse) *CreatePlanConflict

WithPayload adds the payload to the create plan conflict response

func (*CreatePlanConflict) WriteResponse

func (o *CreatePlanConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePlanCreated

type CreatePlanCreated struct {

	/*
	  In: Body
	*/
	Payload *models.ItemCreatedResponse `json:"body,omitempty"`
}

CreatePlanCreated item created

swagger:response createPlanCreated

func NewCreatePlanCreated

func NewCreatePlanCreated() *CreatePlanCreated

NewCreatePlanCreated creates CreatePlanCreated with default headers values

func (*CreatePlanCreated) SetPayload

func (o *CreatePlanCreated) SetPayload(payload *models.ItemCreatedResponse)

SetPayload sets the payload to the create plan created response

func (*CreatePlanCreated) WithPayload

WithPayload adds the payload to the create plan created response

func (*CreatePlanCreated) WriteResponse

func (o *CreatePlanCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePlanHandler

type CreatePlanHandler interface {
	Handle(CreatePlanParams, interface{}) middleware.Responder
}

CreatePlanHandler interface for that can handle valid create plan params

type CreatePlanHandlerFunc

type CreatePlanHandlerFunc func(CreatePlanParams, interface{}) middleware.Responder

CreatePlanHandlerFunc turns a function with the right signature into a create plan handler

func (CreatePlanHandlerFunc) Handle

func (fn CreatePlanHandlerFunc) Handle(params CreatePlanParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreatePlanInternalServerError

type CreatePlanInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

CreatePlanInternalServerError unexpected error

swagger:response createPlanInternalServerError

func NewCreatePlanInternalServerError

func NewCreatePlanInternalServerError() *CreatePlanInternalServerError

NewCreatePlanInternalServerError creates CreatePlanInternalServerError with default headers values

func (*CreatePlanInternalServerError) SetPayload

func (o *CreatePlanInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create plan internal server error response

func (*CreatePlanInternalServerError) WithPayload

WithPayload adds the payload to the create plan internal server error response

func (*CreatePlanInternalServerError) WriteResponse

func (o *CreatePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePlanParams

type CreatePlanParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Plan to be added
	  In: body
	*/
	Plan *models.Plan
}

CreatePlanParams contains all the bound params for the create plan operation typically these are obtained from a http.Request

swagger:parameters createPlan

func NewCreatePlanParams

func NewCreatePlanParams() CreatePlanParams

NewCreatePlanParams creates a new CreatePlanParams object no default values defined in spec.

func (*CreatePlanParams) BindRequest

func (o *CreatePlanParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreatePlanParams() beforehand.

type CreatePlanURL

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

CreatePlanURL generates an URL for the create plan operation

func (*CreatePlanURL) Build

func (o *CreatePlanURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreatePlanURL) BuildFull

func (o *CreatePlanURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreatePlanURL) Must

func (o *CreatePlanURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreatePlanURL) SetBasePath

func (o *CreatePlanURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreatePlanURL) String

func (o *CreatePlanURL) String() string

String returns the string representation of the path with query string

func (*CreatePlanURL) StringFull

func (o *CreatePlanURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreatePlanURL) WithBasePath

func (o *CreatePlanURL) WithBasePath(bp string) *CreatePlanURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetCompletePlan

type GetCompletePlan struct {
	Context *middleware.Context
	Handler GetCompletePlanHandler
}

GetCompletePlan swagger:route GET /plan/complete/{id} planManagement getCompletePlan

Get complete plan

gets complete plan with planid

func NewGetCompletePlan

func NewGetCompletePlan(ctx *middleware.Context, handler GetCompletePlanHandler) *GetCompletePlan

NewGetCompletePlan creates a new http.Handler for the get complete plan operation

func (*GetCompletePlan) ServeHTTP

func (o *GetCompletePlan) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetCompletePlanHandler

type GetCompletePlanHandler interface {
	Handle(GetCompletePlanParams, interface{}) middleware.Responder
}

GetCompletePlanHandler interface for that can handle valid get complete plan params

type GetCompletePlanHandlerFunc

type GetCompletePlanHandlerFunc func(GetCompletePlanParams, interface{}) middleware.Responder

GetCompletePlanHandlerFunc turns a function with the right signature into a get complete plan handler

func (GetCompletePlanHandlerFunc) Handle

func (fn GetCompletePlanHandlerFunc) Handle(params GetCompletePlanParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetCompletePlanInternalServerError

type GetCompletePlanInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetCompletePlanInternalServerError unexpected error

swagger:response getCompletePlanInternalServerError

func NewGetCompletePlanInternalServerError

func NewGetCompletePlanInternalServerError() *GetCompletePlanInternalServerError

NewGetCompletePlanInternalServerError creates GetCompletePlanInternalServerError with default headers values

func (*GetCompletePlanInternalServerError) SetPayload

SetPayload sets the payload to the get complete plan internal server error response

func (*GetCompletePlanInternalServerError) WithPayload

WithPayload adds the payload to the get complete plan internal server error response

func (*GetCompletePlanInternalServerError) WriteResponse

WriteResponse to the client

type GetCompletePlanNotFound

type GetCompletePlanNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetCompletePlanNotFound complete plan with planid not found

swagger:response getCompletePlanNotFound

func NewGetCompletePlanNotFound

func NewGetCompletePlanNotFound() *GetCompletePlanNotFound

NewGetCompletePlanNotFound creates GetCompletePlanNotFound with default headers values

func (*GetCompletePlanNotFound) SetPayload

func (o *GetCompletePlanNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get complete plan not found response

func (*GetCompletePlanNotFound) WithPayload

WithPayload adds the payload to the get complete plan not found response

func (*GetCompletePlanNotFound) WriteResponse

func (o *GetCompletePlanNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCompletePlanOK

type GetCompletePlanOK struct {

	/*
	  In: Body
	*/
	Payload *models.Plan `json:"body,omitempty"`
}

GetCompletePlanOK plan returned

swagger:response getCompletePlanOK

func NewGetCompletePlanOK

func NewGetCompletePlanOK() *GetCompletePlanOK

NewGetCompletePlanOK creates GetCompletePlanOK with default headers values

func (*GetCompletePlanOK) SetPayload

func (o *GetCompletePlanOK) SetPayload(payload *models.Plan)

SetPayload sets the payload to the get complete plan o k response

func (*GetCompletePlanOK) WithPayload

func (o *GetCompletePlanOK) WithPayload(payload *models.Plan) *GetCompletePlanOK

WithPayload adds the payload to the get complete plan o k response

func (*GetCompletePlanOK) WriteResponse

func (o *GetCompletePlanOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCompletePlanParams

type GetCompletePlanParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Id of plan to be obtained
	  Required: true
	  In: path
	*/
	ID string
}

GetCompletePlanParams contains all the bound params for the get complete plan operation typically these are obtained from a http.Request

swagger:parameters getCompletePlan

func NewGetCompletePlanParams

func NewGetCompletePlanParams() GetCompletePlanParams

NewGetCompletePlanParams creates a new GetCompletePlanParams object no default values defined in spec.

func (*GetCompletePlanParams) BindRequest

func (o *GetCompletePlanParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetCompletePlanParams() beforehand.

type GetCompletePlanURL

type GetCompletePlanURL struct {
	ID string
	// contains filtered or unexported fields
}

GetCompletePlanURL generates an URL for the get complete plan operation

func (*GetCompletePlanURL) Build

func (o *GetCompletePlanURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetCompletePlanURL) BuildFull

func (o *GetCompletePlanURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetCompletePlanURL) Must

func (o *GetCompletePlanURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetCompletePlanURL) SetBasePath

func (o *GetCompletePlanURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetCompletePlanURL) String

func (o *GetCompletePlanURL) String() string

String returns the string representation of the path with query string

func (*GetCompletePlanURL) StringFull

func (o *GetCompletePlanURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetCompletePlanURL) WithBasePath

func (o *GetCompletePlanURL) WithBasePath(bp string) *GetCompletePlanURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetPlan

type GetPlan struct {
	Context *middleware.Context
	Handler GetPlanHandler
}

GetPlan swagger:route GET /plan/{id} planManagement getPlan

Get specific plan

get plan with given planid

func NewGetPlan

func NewGetPlan(ctx *middleware.Context, handler GetPlanHandler) *GetPlan

NewGetPlan creates a new http.Handler for the get plan operation

func (*GetPlan) ServeHTTP

func (o *GetPlan) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetPlanHandler

type GetPlanHandler interface {
	Handle(GetPlanParams, interface{}) middleware.Responder
}

GetPlanHandler interface for that can handle valid get plan params

type GetPlanHandlerFunc

type GetPlanHandlerFunc func(GetPlanParams, interface{}) middleware.Responder

GetPlanHandlerFunc turns a function with the right signature into a get plan handler

func (GetPlanHandlerFunc) Handle

func (fn GetPlanHandlerFunc) Handle(params GetPlanParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPlanInternalServerError

type GetPlanInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetPlanInternalServerError unexpected error

swagger:response getPlanInternalServerError

func NewGetPlanInternalServerError

func NewGetPlanInternalServerError() *GetPlanInternalServerError

NewGetPlanInternalServerError creates GetPlanInternalServerError with default headers values

func (*GetPlanInternalServerError) SetPayload

func (o *GetPlanInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get plan internal server error response

func (*GetPlanInternalServerError) WithPayload

WithPayload adds the payload to the get plan internal server error response

func (*GetPlanInternalServerError) WriteResponse

func (o *GetPlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPlanNotFound

type GetPlanNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetPlanNotFound plan with planid not found

swagger:response getPlanNotFound

func NewGetPlanNotFound

func NewGetPlanNotFound() *GetPlanNotFound

NewGetPlanNotFound creates GetPlanNotFound with default headers values

func (*GetPlanNotFound) SetPayload

func (o *GetPlanNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get plan not found response

func (*GetPlanNotFound) WithPayload

func (o *GetPlanNotFound) WithPayload(payload *models.ErrorResponse) *GetPlanNotFound

WithPayload adds the payload to the get plan not found response

func (*GetPlanNotFound) WriteResponse

func (o *GetPlanNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPlanOK

type GetPlanOK struct {

	/*
	  In: Body
	*/
	Payload *models.Plan `json:"body,omitempty"`
}

GetPlanOK plan returned

swagger:response getPlanOK

func NewGetPlanOK

func NewGetPlanOK() *GetPlanOK

NewGetPlanOK creates GetPlanOK with default headers values

func (*GetPlanOK) SetPayload

func (o *GetPlanOK) SetPayload(payload *models.Plan)

SetPayload sets the payload to the get plan o k response

func (*GetPlanOK) WithPayload

func (o *GetPlanOK) WithPayload(payload *models.Plan) *GetPlanOK

WithPayload adds the payload to the get plan o k response

func (*GetPlanOK) WriteResponse

func (o *GetPlanOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPlanParams

type GetPlanParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Id of plan to be obtained
	  Required: true
	  In: path
	*/
	ID string
}

GetPlanParams contains all the bound params for the get plan operation typically these are obtained from a http.Request

swagger:parameters getPlan

func NewGetPlanParams

func NewGetPlanParams() GetPlanParams

NewGetPlanParams creates a new GetPlanParams object no default values defined in spec.

func (*GetPlanParams) BindRequest

func (o *GetPlanParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetPlanParams() beforehand.

type GetPlanURL

type GetPlanURL struct {
	ID string
	// contains filtered or unexported fields
}

GetPlanURL generates an URL for the get plan operation

func (*GetPlanURL) Build

func (o *GetPlanURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPlanURL) BuildFull

func (o *GetPlanURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPlanURL) Must

func (o *GetPlanURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetPlanURL) SetBasePath

func (o *GetPlanURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetPlanURL) String

func (o *GetPlanURL) String() string

String returns the string representation of the path with query string

func (*GetPlanURL) StringFull

func (o *GetPlanURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPlanURL) WithBasePath

func (o *GetPlanURL) WithBasePath(bp string) *GetPlanURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListCompletePlans

type ListCompletePlans struct {
	Context *middleware.Context
	Handler ListCompletePlansHandler
}

ListCompletePlans swagger:route GET /plan/complete planManagement listCompletePlans

Get full information relating to known plans

Obtains full information on all known plans

func NewListCompletePlans

func NewListCompletePlans(ctx *middleware.Context, handler ListCompletePlansHandler) *ListCompletePlans

NewListCompletePlans creates a new http.Handler for the list complete plans operation

func (*ListCompletePlans) ServeHTTP

func (o *ListCompletePlans) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListCompletePlansHandler

type ListCompletePlansHandler interface {
	Handle(ListCompletePlansParams, interface{}) middleware.Responder
}

ListCompletePlansHandler interface for that can handle valid list complete plans params

type ListCompletePlansHandlerFunc

type ListCompletePlansHandlerFunc func(ListCompletePlansParams, interface{}) middleware.Responder

ListCompletePlansHandlerFunc turns a function with the right signature into a list complete plans handler

func (ListCompletePlansHandlerFunc) Handle

func (fn ListCompletePlansHandlerFunc) Handle(params ListCompletePlansParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListCompletePlansInternalServerError

type ListCompletePlansInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ListCompletePlansInternalServerError unexpected error

swagger:response listCompletePlansInternalServerError

func NewListCompletePlansInternalServerError

func NewListCompletePlansInternalServerError() *ListCompletePlansInternalServerError

NewListCompletePlansInternalServerError creates ListCompletePlansInternalServerError with default headers values

func (*ListCompletePlansInternalServerError) SetPayload

SetPayload sets the payload to the list complete plans internal server error response

func (*ListCompletePlansInternalServerError) WithPayload

WithPayload adds the payload to the list complete plans internal server error response

func (*ListCompletePlansInternalServerError) WriteResponse

WriteResponse to the client

type ListCompletePlansOK

type ListCompletePlansOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Plan `json:"body,omitempty"`
}

ListCompletePlansOK Set of known plans returned in full

swagger:response listCompletePlansOK

func NewListCompletePlansOK

func NewListCompletePlansOK() *ListCompletePlansOK

NewListCompletePlansOK creates ListCompletePlansOK with default headers values

func (*ListCompletePlansOK) SetPayload

func (o *ListCompletePlansOK) SetPayload(payload []*models.Plan)

SetPayload sets the payload to the list complete plans o k response

func (*ListCompletePlansOK) WithPayload

func (o *ListCompletePlansOK) WithPayload(payload []*models.Plan) *ListCompletePlansOK

WithPayload adds the payload to the list complete plans o k response

func (*ListCompletePlansOK) WriteResponse

func (o *ListCompletePlansOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListCompletePlansParams

type ListCompletePlansParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListCompletePlansParams contains all the bound params for the list complete plans operation typically these are obtained from a http.Request

swagger:parameters listCompletePlans

func NewListCompletePlansParams

func NewListCompletePlansParams() ListCompletePlansParams

NewListCompletePlansParams creates a new ListCompletePlansParams object no default values defined in spec.

func (*ListCompletePlansParams) BindRequest

func (o *ListCompletePlansParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListCompletePlansParams() beforehand.

type ListCompletePlansURL

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

ListCompletePlansURL generates an URL for the list complete plans operation

func (*ListCompletePlansURL) Build

func (o *ListCompletePlansURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListCompletePlansURL) BuildFull

func (o *ListCompletePlansURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListCompletePlansURL) Must

func (o *ListCompletePlansURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListCompletePlansURL) SetBasePath

func (o *ListCompletePlansURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListCompletePlansURL) String

func (o *ListCompletePlansURL) String() string

String returns the string representation of the path with query string

func (*ListCompletePlansURL) StringFull

func (o *ListCompletePlansURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListCompletePlansURL) WithBasePath

func (o *ListCompletePlansURL) WithBasePath(bp string) *ListCompletePlansURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListPlans

type ListPlans struct {
	Context *middleware.Context
	Handler ListPlansHandler
}

ListPlans swagger:route GET /plan planManagement listPlans

List all plans

lists all plans (tbd - pagination?)

func NewListPlans

func NewListPlans(ctx *middleware.Context, handler ListPlansHandler) *ListPlans

NewListPlans creates a new http.Handler for the list plans operation

func (*ListPlans) ServeHTTP

func (o *ListPlans) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListPlansHandler

type ListPlansHandler interface {
	Handle(ListPlansParams, interface{}) middleware.Responder
}

ListPlansHandler interface for that can handle valid list plans params

type ListPlansHandlerFunc

type ListPlansHandlerFunc func(ListPlansParams, interface{}) middleware.Responder

ListPlansHandlerFunc turns a function with the right signature into a list plans handler

func (ListPlansHandlerFunc) Handle

func (fn ListPlansHandlerFunc) Handle(params ListPlansParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListPlansInternalServerError

type ListPlansInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ListPlansInternalServerError unexpected error

swagger:response listPlansInternalServerError

func NewListPlansInternalServerError

func NewListPlansInternalServerError() *ListPlansInternalServerError

NewListPlansInternalServerError creates ListPlansInternalServerError with default headers values

func (*ListPlansInternalServerError) SetPayload

func (o *ListPlansInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the list plans internal server error response

func (*ListPlansInternalServerError) WithPayload

WithPayload adds the payload to the list plans internal server error response

func (*ListPlansInternalServerError) WriteResponse

func (o *ListPlansInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListPlansOK

type ListPlansOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Plan `json:"body,omitempty"`
}

ListPlansOK list of plans returned

swagger:response listPlansOK

func NewListPlansOK

func NewListPlansOK() *ListPlansOK

NewListPlansOK creates ListPlansOK with default headers values

func (*ListPlansOK) SetPayload

func (o *ListPlansOK) SetPayload(payload []*models.Plan)

SetPayload sets the payload to the list plans o k response

func (*ListPlansOK) WithPayload

func (o *ListPlansOK) WithPayload(payload []*models.Plan) *ListPlansOK

WithPayload adds the payload to the list plans o k response

func (*ListPlansOK) WriteResponse

func (o *ListPlansOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListPlansParams

type ListPlansParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListPlansParams contains all the bound params for the list plans operation typically these are obtained from a http.Request

swagger:parameters listPlans

func NewListPlansParams

func NewListPlansParams() ListPlansParams

NewListPlansParams creates a new ListPlansParams object no default values defined in spec.

func (*ListPlansParams) BindRequest

func (o *ListPlansParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListPlansParams() beforehand.

type ListPlansURL

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

ListPlansURL generates an URL for the list plans operation

func (*ListPlansURL) Build

func (o *ListPlansURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListPlansURL) BuildFull

func (o *ListPlansURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListPlansURL) Must

func (o *ListPlansURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListPlansURL) SetBasePath

func (o *ListPlansURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListPlansURL) String

func (o *ListPlansURL) String() string

String returns the string representation of the path with query string

func (*ListPlansURL) StringFull

func (o *ListPlansURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListPlansURL) WithBasePath

func (o *ListPlansURL) WithBasePath(bp string) *ListPlansURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdatePlan

type UpdatePlan struct {
	Context *middleware.Context
	Handler UpdatePlanHandler
}

UpdatePlan swagger:route PUT /plan/{id} planManagement updatePlan

Update specific plan

Update plan with given planId

func NewUpdatePlan

func NewUpdatePlan(ctx *middleware.Context, handler UpdatePlanHandler) *UpdatePlan

NewUpdatePlan creates a new http.Handler for the update plan operation

func (*UpdatePlan) ServeHTTP

func (o *UpdatePlan) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdatePlanHandler

type UpdatePlanHandler interface {
	Handle(UpdatePlanParams, interface{}) middleware.Responder
}

UpdatePlanHandler interface for that can handle valid update plan params

type UpdatePlanHandlerFunc

type UpdatePlanHandlerFunc func(UpdatePlanParams, interface{}) middleware.Responder

UpdatePlanHandlerFunc turns a function with the right signature into a update plan handler

func (UpdatePlanHandlerFunc) Handle

func (fn UpdatePlanHandlerFunc) Handle(params UpdatePlanParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdatePlanInternalServerError

type UpdatePlanInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

UpdatePlanInternalServerError unexpected error

swagger:response updatePlanInternalServerError

func NewUpdatePlanInternalServerError

func NewUpdatePlanInternalServerError() *UpdatePlanInternalServerError

NewUpdatePlanInternalServerError creates UpdatePlanInternalServerError with default headers values

func (*UpdatePlanInternalServerError) SetPayload

func (o *UpdatePlanInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the update plan internal server error response

func (*UpdatePlanInternalServerError) WithPayload

WithPayload adds the payload to the update plan internal server error response

func (*UpdatePlanInternalServerError) WriteResponse

func (o *UpdatePlanInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePlanNotFound

type UpdatePlanNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

UpdatePlanNotFound plan with planid not found

swagger:response updatePlanNotFound

func NewUpdatePlanNotFound

func NewUpdatePlanNotFound() *UpdatePlanNotFound

NewUpdatePlanNotFound creates UpdatePlanNotFound with default headers values

func (*UpdatePlanNotFound) SetPayload

func (o *UpdatePlanNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the update plan not found response

func (*UpdatePlanNotFound) WithPayload

func (o *UpdatePlanNotFound) WithPayload(payload *models.ErrorResponse) *UpdatePlanNotFound

WithPayload adds the payload to the update plan not found response

func (*UpdatePlanNotFound) WriteResponse

func (o *UpdatePlanNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePlanOK

type UpdatePlanOK struct {

	/*
	  In: Body
	*/
	Payload *models.Plan `json:"body,omitempty"`
}

UpdatePlanOK updated plan

swagger:response updatePlanOK

func NewUpdatePlanOK

func NewUpdatePlanOK() *UpdatePlanOK

NewUpdatePlanOK creates UpdatePlanOK with default headers values

func (*UpdatePlanOK) SetPayload

func (o *UpdatePlanOK) SetPayload(payload *models.Plan)

SetPayload sets the payload to the update plan o k response

func (*UpdatePlanOK) WithPayload

func (o *UpdatePlanOK) WithPayload(payload *models.Plan) *UpdatePlanOK

WithPayload adds the payload to the update plan o k response

func (*UpdatePlanOK) WriteResponse

func (o *UpdatePlanOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePlanParams

type UpdatePlanParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Id of plan to be obtained
	  Required: true
	  In: path
	*/
	ID string
	/*updated plan containing all parameters except id
	  Required: true
	  In: body
	*/
	Plan *models.Plan
}

UpdatePlanParams contains all the bound params for the update plan operation typically these are obtained from a http.Request

swagger:parameters updatePlan

func NewUpdatePlanParams

func NewUpdatePlanParams() UpdatePlanParams

NewUpdatePlanParams creates a new UpdatePlanParams object no default values defined in spec.

func (*UpdatePlanParams) BindRequest

func (o *UpdatePlanParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdatePlanParams() beforehand.

type UpdatePlanURL

type UpdatePlanURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdatePlanURL generates an URL for the update plan operation

func (*UpdatePlanURL) Build

func (o *UpdatePlanURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdatePlanURL) BuildFull

func (o *UpdatePlanURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdatePlanURL) Must

func (o *UpdatePlanURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdatePlanURL) SetBasePath

func (o *UpdatePlanURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdatePlanURL) String

func (o *UpdatePlanURL) String() string

String returns the string representation of the path with query string

func (*UpdatePlanURL) StringFull

func (o *UpdatePlanURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdatePlanURL) WithBasePath

func (o *UpdatePlanURL) WithBasePath(bp string) *UpdatePlanURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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