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: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreatePlan creates a plan

	   Creates a new plan*/
	CreatePlan(ctx context.Context, params *CreatePlanParams) (*CreatePlanCreated, error)
	/*
	   GetCompletePlan gets complete plan

	   gets complete plan with planid*/
	GetCompletePlan(ctx context.Context, params *GetCompletePlanParams) (*GetCompletePlanOK, error)
	/*
	   GetPlan gets specific plan

	   get plan with given planid*/
	GetPlan(ctx context.Context, params *GetPlanParams) (*GetPlanOK, error)
	/*
	   ListCompletePlans gets full information relating to known plans

	   Obtains full information on all known plans*/
	ListCompletePlans(ctx context.Context, params *ListCompletePlansParams) (*ListCompletePlansOK, error)
	/*
	   ListPlans lists all plans

	   lists all plans (tbd - pagination?)*/
	ListPlans(ctx context.Context, params *ListPlansParams) (*ListPlansOK, error)
	/*
	   UpdatePlan updates specific plan

	   Update plan with given planId*/
	UpdatePlan(ctx context.Context, params *UpdatePlanParams) (*UpdatePlanOK, error)
}

API is the interface of the plan management client

type Client

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

Client for plan management API

func New

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

New creates a new plan management API client.

func (*Client) CreatePlan

func (a *Client) CreatePlan(ctx context.Context, params *CreatePlanParams) (*CreatePlanCreated, error)

CreatePlan creates a plan

Creates a new plan

func (*Client) GetCompletePlan

func (a *Client) GetCompletePlan(ctx context.Context, params *GetCompletePlanParams) (*GetCompletePlanOK, error)

GetCompletePlan gets complete plan

gets complete plan with planid

func (*Client) GetPlan

func (a *Client) GetPlan(ctx context.Context, params *GetPlanParams) (*GetPlanOK, error)

GetPlan gets specific plan

get plan with given planid

func (*Client) ListCompletePlans

func (a *Client) ListCompletePlans(ctx context.Context, params *ListCompletePlansParams) (*ListCompletePlansOK, error)

ListCompletePlans gets full information relating to known plans

Obtains full information on all known plans

func (*Client) ListPlans

func (a *Client) ListPlans(ctx context.Context, params *ListPlansParams) (*ListPlansOK, error)

ListPlans lists all plans

lists all plans (tbd - pagination?)

func (*Client) UpdatePlan

func (a *Client) UpdatePlan(ctx context.Context, params *UpdatePlanParams) (*UpdatePlanOK, error)

UpdatePlan updates specific plan

Update plan with given planId

type CreatePlanBadRequest

type CreatePlanBadRequest struct {
}

CreatePlanBadRequest handles this case with default header values.

invalid input, object invalid

func NewCreatePlanBadRequest

func NewCreatePlanBadRequest() *CreatePlanBadRequest

NewCreatePlanBadRequest creates a CreatePlanBadRequest with default headers values

func (*CreatePlanBadRequest) Error

func (o *CreatePlanBadRequest) Error() string

type CreatePlanConflict

type CreatePlanConflict struct {
	Payload *models.ErrorResponse
}

CreatePlanConflict handles this case with default header values.

an existing item already exists

func NewCreatePlanConflict

func NewCreatePlanConflict() *CreatePlanConflict

NewCreatePlanConflict creates a CreatePlanConflict with default headers values

func (*CreatePlanConflict) Error

func (o *CreatePlanConflict) Error() string

func (*CreatePlanConflict) GetPayload

func (o *CreatePlanConflict) GetPayload() *models.ErrorResponse

type CreatePlanCreated

type CreatePlanCreated struct {
	Payload *models.ItemCreatedResponse
}

CreatePlanCreated handles this case with default header values.

item created

func NewCreatePlanCreated

func NewCreatePlanCreated() *CreatePlanCreated

NewCreatePlanCreated creates a CreatePlanCreated with default headers values

func (*CreatePlanCreated) Error

func (o *CreatePlanCreated) Error() string

func (*CreatePlanCreated) GetPayload

func (o *CreatePlanCreated) GetPayload() *models.ItemCreatedResponse

type CreatePlanInternalServerError

type CreatePlanInternalServerError struct {
	Payload *models.ErrorResponse
}

CreatePlanInternalServerError handles this case with default header values.

unexpected error

func NewCreatePlanInternalServerError

func NewCreatePlanInternalServerError() *CreatePlanInternalServerError

NewCreatePlanInternalServerError creates a CreatePlanInternalServerError with default headers values

func (*CreatePlanInternalServerError) Error

func (*CreatePlanInternalServerError) GetPayload

type CreatePlanParams

type CreatePlanParams struct {

	/*Plan
	  Plan to be added

	*/
	Plan *models.Plan

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

CreatePlanParams contains all the parameters to send to the API endpoint for the create plan operation typically these are written to a http.Request

func NewCreatePlanParams

func NewCreatePlanParams() *CreatePlanParams

NewCreatePlanParams creates a new CreatePlanParams object with the default values initialized.

func NewCreatePlanParamsWithContext

func NewCreatePlanParamsWithContext(ctx context.Context) *CreatePlanParams

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

func NewCreatePlanParamsWithHTTPClient

func NewCreatePlanParamsWithHTTPClient(client *http.Client) *CreatePlanParams

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

func NewCreatePlanParamsWithTimeout

func NewCreatePlanParamsWithTimeout(timeout time.Duration) *CreatePlanParams

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

func (*CreatePlanParams) SetContext

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

SetContext adds the context to the create plan params

func (*CreatePlanParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create plan params

func (*CreatePlanParams) SetPlan

func (o *CreatePlanParams) SetPlan(plan *models.Plan)

SetPlan adds the plan to the create plan params

func (*CreatePlanParams) SetTimeout

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

SetTimeout adds the timeout to the create plan params

func (*CreatePlanParams) WithContext

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

WithContext adds the context to the create plan params

func (*CreatePlanParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create plan params

func (*CreatePlanParams) WithPlan

func (o *CreatePlanParams) WithPlan(plan *models.Plan) *CreatePlanParams

WithPlan adds the plan to the create plan params

func (*CreatePlanParams) WithTimeout

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

WithTimeout adds the timeout to the create plan params

func (*CreatePlanParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePlanReader

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

CreatePlanReader is a Reader for the CreatePlan structure.

func (*CreatePlanReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCompletePlanInternalServerError

type GetCompletePlanInternalServerError struct {
	Payload *models.ErrorResponse
}

GetCompletePlanInternalServerError handles this case with default header values.

unexpected error

func NewGetCompletePlanInternalServerError

func NewGetCompletePlanInternalServerError() *GetCompletePlanInternalServerError

NewGetCompletePlanInternalServerError creates a GetCompletePlanInternalServerError with default headers values

func (*GetCompletePlanInternalServerError) Error

func (*GetCompletePlanInternalServerError) GetPayload

type GetCompletePlanNotFound

type GetCompletePlanNotFound struct {
	Payload *models.ErrorResponse
}

GetCompletePlanNotFound handles this case with default header values.

complete plan with planid not found

func NewGetCompletePlanNotFound

func NewGetCompletePlanNotFound() *GetCompletePlanNotFound

NewGetCompletePlanNotFound creates a GetCompletePlanNotFound with default headers values

func (*GetCompletePlanNotFound) Error

func (o *GetCompletePlanNotFound) Error() string

func (*GetCompletePlanNotFound) GetPayload

func (o *GetCompletePlanNotFound) GetPayload() *models.ErrorResponse

type GetCompletePlanOK

type GetCompletePlanOK struct {
	Payload *models.Plan
}

GetCompletePlanOK handles this case with default header values.

plan returned

func NewGetCompletePlanOK

func NewGetCompletePlanOK() *GetCompletePlanOK

NewGetCompletePlanOK creates a GetCompletePlanOK with default headers values

func (*GetCompletePlanOK) Error

func (o *GetCompletePlanOK) Error() string

func (*GetCompletePlanOK) GetPayload

func (o *GetCompletePlanOK) GetPayload() *models.Plan

type GetCompletePlanParams

type GetCompletePlanParams struct {

	/*ID
	  Id of plan to be obtained

	*/
	ID string

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

GetCompletePlanParams contains all the parameters to send to the API endpoint for the get complete plan operation typically these are written to a http.Request

func NewGetCompletePlanParams

func NewGetCompletePlanParams() *GetCompletePlanParams

NewGetCompletePlanParams creates a new GetCompletePlanParams object with the default values initialized.

func NewGetCompletePlanParamsWithContext

func NewGetCompletePlanParamsWithContext(ctx context.Context) *GetCompletePlanParams

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

func NewGetCompletePlanParamsWithHTTPClient

func NewGetCompletePlanParamsWithHTTPClient(client *http.Client) *GetCompletePlanParams

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

func NewGetCompletePlanParamsWithTimeout

func NewGetCompletePlanParamsWithTimeout(timeout time.Duration) *GetCompletePlanParams

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

func (*GetCompletePlanParams) SetContext

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

SetContext adds the context to the get complete plan params

func (*GetCompletePlanParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get complete plan params

func (*GetCompletePlanParams) SetID

func (o *GetCompletePlanParams) SetID(id string)

SetID adds the id to the get complete plan params

func (*GetCompletePlanParams) SetTimeout

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

SetTimeout adds the timeout to the get complete plan params

func (*GetCompletePlanParams) WithContext

WithContext adds the context to the get complete plan params

func (*GetCompletePlanParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get complete plan params

func (*GetCompletePlanParams) WithID

WithID adds the id to the get complete plan params

func (*GetCompletePlanParams) WithTimeout

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

WithTimeout adds the timeout to the get complete plan params

func (*GetCompletePlanParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCompletePlanReader

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

GetCompletePlanReader is a Reader for the GetCompletePlan structure.

func (*GetCompletePlanReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPlanInternalServerError

type GetPlanInternalServerError struct {
	Payload *models.ErrorResponse
}

GetPlanInternalServerError handles this case with default header values.

unexpected error

func NewGetPlanInternalServerError

func NewGetPlanInternalServerError() *GetPlanInternalServerError

NewGetPlanInternalServerError creates a GetPlanInternalServerError with default headers values

func (*GetPlanInternalServerError) Error

func (*GetPlanInternalServerError) GetPayload

type GetPlanNotFound

type GetPlanNotFound struct {
	Payload *models.ErrorResponse
}

GetPlanNotFound handles this case with default header values.

plan with planid not found

func NewGetPlanNotFound

func NewGetPlanNotFound() *GetPlanNotFound

NewGetPlanNotFound creates a GetPlanNotFound with default headers values

func (*GetPlanNotFound) Error

func (o *GetPlanNotFound) Error() string

func (*GetPlanNotFound) GetPayload

func (o *GetPlanNotFound) GetPayload() *models.ErrorResponse

type GetPlanOK

type GetPlanOK struct {
	Payload *models.Plan
}

GetPlanOK handles this case with default header values.

plan returned

func NewGetPlanOK

func NewGetPlanOK() *GetPlanOK

NewGetPlanOK creates a GetPlanOK with default headers values

func (*GetPlanOK) Error

func (o *GetPlanOK) Error() string

func (*GetPlanOK) GetPayload

func (o *GetPlanOK) GetPayload() *models.Plan

type GetPlanParams

type GetPlanParams struct {

	/*ID
	  Id of plan to be obtained

	*/
	ID string

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

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

func NewGetPlanParams

func NewGetPlanParams() *GetPlanParams

NewGetPlanParams creates a new GetPlanParams object with the default values initialized.

func NewGetPlanParamsWithContext

func NewGetPlanParamsWithContext(ctx context.Context) *GetPlanParams

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

func NewGetPlanParamsWithHTTPClient

func NewGetPlanParamsWithHTTPClient(client *http.Client) *GetPlanParams

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

func NewGetPlanParamsWithTimeout

func NewGetPlanParamsWithTimeout(timeout time.Duration) *GetPlanParams

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

func (*GetPlanParams) SetContext

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

SetContext adds the context to the get plan params

func (*GetPlanParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get plan params

func (*GetPlanParams) SetID

func (o *GetPlanParams) SetID(id string)

SetID adds the id to the get plan params

func (*GetPlanParams) SetTimeout

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

SetTimeout adds the timeout to the get plan params

func (*GetPlanParams) WithContext

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

WithContext adds the context to the get plan params

func (*GetPlanParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get plan params

func (*GetPlanParams) WithID

func (o *GetPlanParams) WithID(id string) *GetPlanParams

WithID adds the id to the get plan params

func (*GetPlanParams) WithTimeout

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

WithTimeout adds the timeout to the get plan params

func (*GetPlanParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPlanReader

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

GetPlanReader is a Reader for the GetPlan structure.

func (*GetPlanReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCompletePlansInternalServerError

type ListCompletePlansInternalServerError struct {
	Payload *models.ErrorResponse
}

ListCompletePlansInternalServerError handles this case with default header values.

unexpected error

func NewListCompletePlansInternalServerError

func NewListCompletePlansInternalServerError() *ListCompletePlansInternalServerError

NewListCompletePlansInternalServerError creates a ListCompletePlansInternalServerError with default headers values

func (*ListCompletePlansInternalServerError) Error

func (*ListCompletePlansInternalServerError) GetPayload

type ListCompletePlansOK

type ListCompletePlansOK struct {
	Payload []*models.Plan
}

ListCompletePlansOK handles this case with default header values.

Set of known plans returned in full

func NewListCompletePlansOK

func NewListCompletePlansOK() *ListCompletePlansOK

NewListCompletePlansOK creates a ListCompletePlansOK with default headers values

func (*ListCompletePlansOK) Error

func (o *ListCompletePlansOK) Error() string

func (*ListCompletePlansOK) GetPayload

func (o *ListCompletePlansOK) GetPayload() []*models.Plan

type ListCompletePlansParams

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

ListCompletePlansParams contains all the parameters to send to the API endpoint for the list complete plans operation typically these are written to a http.Request

func NewListCompletePlansParams

func NewListCompletePlansParams() *ListCompletePlansParams

NewListCompletePlansParams creates a new ListCompletePlansParams object with the default values initialized.

func NewListCompletePlansParamsWithContext

func NewListCompletePlansParamsWithContext(ctx context.Context) *ListCompletePlansParams

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

func NewListCompletePlansParamsWithHTTPClient

func NewListCompletePlansParamsWithHTTPClient(client *http.Client) *ListCompletePlansParams

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

func NewListCompletePlansParamsWithTimeout

func NewListCompletePlansParamsWithTimeout(timeout time.Duration) *ListCompletePlansParams

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

func (*ListCompletePlansParams) SetContext

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

SetContext adds the context to the list complete plans params

func (*ListCompletePlansParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list complete plans params

func (*ListCompletePlansParams) SetTimeout

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

SetTimeout adds the timeout to the list complete plans params

func (*ListCompletePlansParams) WithContext

WithContext adds the context to the list complete plans params

func (*ListCompletePlansParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list complete plans params

func (*ListCompletePlansParams) WithTimeout

WithTimeout adds the timeout to the list complete plans params

func (*ListCompletePlansParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListCompletePlansReader

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

ListCompletePlansReader is a Reader for the ListCompletePlans structure.

func (*ListCompletePlansReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPlansInternalServerError

type ListPlansInternalServerError struct {
	Payload *models.ErrorResponse
}

ListPlansInternalServerError handles this case with default header values.

unexpected error

func NewListPlansInternalServerError

func NewListPlansInternalServerError() *ListPlansInternalServerError

NewListPlansInternalServerError creates a ListPlansInternalServerError with default headers values

func (*ListPlansInternalServerError) Error

func (*ListPlansInternalServerError) GetPayload

type ListPlansOK

type ListPlansOK struct {
	Payload []*models.Plan
}

ListPlansOK handles this case with default header values.

list of plans returned

func NewListPlansOK

func NewListPlansOK() *ListPlansOK

NewListPlansOK creates a ListPlansOK with default headers values

func (*ListPlansOK) Error

func (o *ListPlansOK) Error() string

func (*ListPlansOK) GetPayload

func (o *ListPlansOK) GetPayload() []*models.Plan

type ListPlansParams

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

ListPlansParams contains all the parameters to send to the API endpoint for the list plans operation typically these are written to a http.Request

func NewListPlansParams

func NewListPlansParams() *ListPlansParams

NewListPlansParams creates a new ListPlansParams object with the default values initialized.

func NewListPlansParamsWithContext

func NewListPlansParamsWithContext(ctx context.Context) *ListPlansParams

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

func NewListPlansParamsWithHTTPClient

func NewListPlansParamsWithHTTPClient(client *http.Client) *ListPlansParams

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

func NewListPlansParamsWithTimeout

func NewListPlansParamsWithTimeout(timeout time.Duration) *ListPlansParams

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

func (*ListPlansParams) SetContext

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

SetContext adds the context to the list plans params

func (*ListPlansParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list plans params

func (*ListPlansParams) SetTimeout

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

SetTimeout adds the timeout to the list plans params

func (*ListPlansParams) WithContext

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

WithContext adds the context to the list plans params

func (*ListPlansParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list plans params

func (*ListPlansParams) WithTimeout

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

WithTimeout adds the timeout to the list plans params

func (*ListPlansParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListPlansReader

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

ListPlansReader is a Reader for the ListPlans structure.

func (*ListPlansReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePlanInternalServerError

type UpdatePlanInternalServerError struct {
	Payload *models.ErrorResponse
}

UpdatePlanInternalServerError handles this case with default header values.

unexpected error

func NewUpdatePlanInternalServerError

func NewUpdatePlanInternalServerError() *UpdatePlanInternalServerError

NewUpdatePlanInternalServerError creates a UpdatePlanInternalServerError with default headers values

func (*UpdatePlanInternalServerError) Error

func (*UpdatePlanInternalServerError) GetPayload

type UpdatePlanNotFound

type UpdatePlanNotFound struct {
	Payload *models.ErrorResponse
}

UpdatePlanNotFound handles this case with default header values.

plan with planid not found

func NewUpdatePlanNotFound

func NewUpdatePlanNotFound() *UpdatePlanNotFound

NewUpdatePlanNotFound creates a UpdatePlanNotFound with default headers values

func (*UpdatePlanNotFound) Error

func (o *UpdatePlanNotFound) Error() string

func (*UpdatePlanNotFound) GetPayload

func (o *UpdatePlanNotFound) GetPayload() *models.ErrorResponse

type UpdatePlanOK

type UpdatePlanOK struct {
	Payload *models.Plan
}

UpdatePlanOK handles this case with default header values.

updated plan

func NewUpdatePlanOK

func NewUpdatePlanOK() *UpdatePlanOK

NewUpdatePlanOK creates a UpdatePlanOK with default headers values

func (*UpdatePlanOK) Error

func (o *UpdatePlanOK) Error() string

func (*UpdatePlanOK) GetPayload

func (o *UpdatePlanOK) GetPayload() *models.Plan

type UpdatePlanParams

type UpdatePlanParams struct {

	/*ID
	  Id of plan to be obtained

	*/
	ID string
	/*Plan
	  updated plan containing all parameters except id

	*/
	Plan *models.Plan

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

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

func NewUpdatePlanParams

func NewUpdatePlanParams() *UpdatePlanParams

NewUpdatePlanParams creates a new UpdatePlanParams object with the default values initialized.

func NewUpdatePlanParamsWithContext

func NewUpdatePlanParamsWithContext(ctx context.Context) *UpdatePlanParams

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

func NewUpdatePlanParamsWithHTTPClient

func NewUpdatePlanParamsWithHTTPClient(client *http.Client) *UpdatePlanParams

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

func NewUpdatePlanParamsWithTimeout

func NewUpdatePlanParamsWithTimeout(timeout time.Duration) *UpdatePlanParams

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

func (*UpdatePlanParams) SetContext

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

SetContext adds the context to the update plan params

func (*UpdatePlanParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update plan params

func (*UpdatePlanParams) SetID

func (o *UpdatePlanParams) SetID(id string)

SetID adds the id to the update plan params

func (*UpdatePlanParams) SetPlan

func (o *UpdatePlanParams) SetPlan(plan *models.Plan)

SetPlan adds the plan to the update plan params

func (*UpdatePlanParams) SetTimeout

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

SetTimeout adds the timeout to the update plan params

func (*UpdatePlanParams) WithContext

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

WithContext adds the context to the update plan params

func (*UpdatePlanParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update plan params

func (*UpdatePlanParams) WithID

func (o *UpdatePlanParams) WithID(id string) *UpdatePlanParams

WithID adds the id to the update plan params

func (*UpdatePlanParams) WithPlan

func (o *UpdatePlanParams) WithPlan(plan *models.Plan) *UpdatePlanParams

WithPlan adds the plan to the update plan params

func (*UpdatePlanParams) WithTimeout

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

WithTimeout adds the timeout to the update plan params

func (*UpdatePlanParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdatePlanReader

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

UpdatePlanReader is a Reader for the UpdatePlan structure.

func (*UpdatePlanReader) ReadResponse

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