Documentation
¶
Index ¶
- type API
- type Client
- func (a *Client) CreatePlan(ctx context.Context, params *CreatePlanParams) (*CreatePlanCreated, error)
- func (a *Client) GetCompletePlan(ctx context.Context, params *GetCompletePlanParams) (*GetCompletePlanOK, error)
- func (a *Client) GetPlan(ctx context.Context, params *GetPlanParams) (*GetPlanOK, error)
- func (a *Client) ListCompletePlans(ctx context.Context, params *ListCompletePlansParams) (*ListCompletePlansOK, error)
- func (a *Client) ListPlans(ctx context.Context, params *ListPlansParams) (*ListPlansOK, error)
- func (a *Client) UpdatePlan(ctx context.Context, params *UpdatePlanParams) (*UpdatePlanOK, error)
- type CreatePlanBadRequest
- type CreatePlanConflict
- type CreatePlanCreated
- type CreatePlanInternalServerError
- type CreatePlanParams
- func (o *CreatePlanParams) SetContext(ctx context.Context)
- func (o *CreatePlanParams) SetHTTPClient(client *http.Client)
- func (o *CreatePlanParams) SetPlan(plan *models.Plan)
- func (o *CreatePlanParams) SetTimeout(timeout time.Duration)
- func (o *CreatePlanParams) WithContext(ctx context.Context) *CreatePlanParams
- func (o *CreatePlanParams) WithHTTPClient(client *http.Client) *CreatePlanParams
- func (o *CreatePlanParams) WithPlan(plan *models.Plan) *CreatePlanParams
- func (o *CreatePlanParams) WithTimeout(timeout time.Duration) *CreatePlanParams
- func (o *CreatePlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePlanReader
- type GetCompletePlanInternalServerError
- type GetCompletePlanNotFound
- type GetCompletePlanOK
- type GetCompletePlanParams
- func NewGetCompletePlanParams() *GetCompletePlanParams
- func NewGetCompletePlanParamsWithContext(ctx context.Context) *GetCompletePlanParams
- func NewGetCompletePlanParamsWithHTTPClient(client *http.Client) *GetCompletePlanParams
- func NewGetCompletePlanParamsWithTimeout(timeout time.Duration) *GetCompletePlanParams
- func (o *GetCompletePlanParams) SetContext(ctx context.Context)
- func (o *GetCompletePlanParams) SetHTTPClient(client *http.Client)
- func (o *GetCompletePlanParams) SetID(id string)
- func (o *GetCompletePlanParams) SetTimeout(timeout time.Duration)
- func (o *GetCompletePlanParams) WithContext(ctx context.Context) *GetCompletePlanParams
- func (o *GetCompletePlanParams) WithHTTPClient(client *http.Client) *GetCompletePlanParams
- func (o *GetCompletePlanParams) WithID(id string) *GetCompletePlanParams
- func (o *GetCompletePlanParams) WithTimeout(timeout time.Duration) *GetCompletePlanParams
- func (o *GetCompletePlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCompletePlanReader
- type GetPlanInternalServerError
- type GetPlanNotFound
- type GetPlanOK
- type GetPlanParams
- func (o *GetPlanParams) SetContext(ctx context.Context)
- func (o *GetPlanParams) SetHTTPClient(client *http.Client)
- func (o *GetPlanParams) SetID(id string)
- func (o *GetPlanParams) SetTimeout(timeout time.Duration)
- func (o *GetPlanParams) WithContext(ctx context.Context) *GetPlanParams
- func (o *GetPlanParams) WithHTTPClient(client *http.Client) *GetPlanParams
- func (o *GetPlanParams) WithID(id string) *GetPlanParams
- func (o *GetPlanParams) WithTimeout(timeout time.Duration) *GetPlanParams
- func (o *GetPlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPlanReader
- type ListCompletePlansInternalServerError
- type ListCompletePlansOK
- type ListCompletePlansParams
- func NewListCompletePlansParams() *ListCompletePlansParams
- func NewListCompletePlansParamsWithContext(ctx context.Context) *ListCompletePlansParams
- func NewListCompletePlansParamsWithHTTPClient(client *http.Client) *ListCompletePlansParams
- func NewListCompletePlansParamsWithTimeout(timeout time.Duration) *ListCompletePlansParams
- func (o *ListCompletePlansParams) SetContext(ctx context.Context)
- func (o *ListCompletePlansParams) SetHTTPClient(client *http.Client)
- func (o *ListCompletePlansParams) SetTimeout(timeout time.Duration)
- func (o *ListCompletePlansParams) WithContext(ctx context.Context) *ListCompletePlansParams
- func (o *ListCompletePlansParams) WithHTTPClient(client *http.Client) *ListCompletePlansParams
- func (o *ListCompletePlansParams) WithTimeout(timeout time.Duration) *ListCompletePlansParams
- func (o *ListCompletePlansParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCompletePlansReader
- type ListPlansInternalServerError
- type ListPlansOK
- type ListPlansParams
- func (o *ListPlansParams) SetContext(ctx context.Context)
- func (o *ListPlansParams) SetHTTPClient(client *http.Client)
- func (o *ListPlansParams) SetTimeout(timeout time.Duration)
- func (o *ListPlansParams) WithContext(ctx context.Context) *ListPlansParams
- func (o *ListPlansParams) WithHTTPClient(client *http.Client) *ListPlansParams
- func (o *ListPlansParams) WithTimeout(timeout time.Duration) *ListPlansParams
- func (o *ListPlansParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPlansReader
- type UpdatePlanInternalServerError
- type UpdatePlanNotFound
- type UpdatePlanOK
- type UpdatePlanParams
- func (o *UpdatePlanParams) SetContext(ctx context.Context)
- func (o *UpdatePlanParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePlanParams) SetID(id string)
- func (o *UpdatePlanParams) SetPlan(plan *models.Plan)
- func (o *UpdatePlanParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePlanParams) WithContext(ctx context.Context) *UpdatePlanParams
- func (o *UpdatePlanParams) WithHTTPClient(client *http.Client) *UpdatePlanParams
- func (o *UpdatePlanParams) WithID(id string) *UpdatePlanParams
- func (o *UpdatePlanParams) WithPlan(plan *models.Plan) *UpdatePlanParams
- func (o *UpdatePlanParams) WithTimeout(timeout time.Duration) *UpdatePlanParams
- func (o *UpdatePlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePlanReader
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) 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 (o *CreatePlanInternalServerError) Error() string
func (*CreatePlanInternalServerError) GetPayload ¶
func (o *CreatePlanInternalServerError) GetPayload() *models.ErrorResponse
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 (o *GetCompletePlanInternalServerError) Error() string
func (*GetCompletePlanInternalServerError) GetPayload ¶
func (o *GetCompletePlanInternalServerError) GetPayload() *models.ErrorResponse
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 ¶
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 ¶
func (o *GetCompletePlanParams) WithContext(ctx context.Context) *GetCompletePlanParams
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 ¶
func (o *GetCompletePlanParams) WithID(id string) *GetCompletePlanParams
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 (o *GetPlanInternalServerError) Error() string
func (*GetPlanInternalServerError) GetPayload ¶
func (o *GetPlanInternalServerError) GetPayload() *models.ErrorResponse
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 ¶
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) GetPayload ¶
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 (o *ListCompletePlansInternalServerError) Error() string
func (*ListCompletePlansInternalServerError) GetPayload ¶
func (o *ListCompletePlansInternalServerError) GetPayload() *models.ErrorResponse
type ListCompletePlansOK ¶
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 ¶
func (o *ListCompletePlansParams) WithContext(ctx context.Context) *ListCompletePlansParams
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 ¶
func (o *ListCompletePlansParams) WithTimeout(timeout time.Duration) *ListCompletePlansParams
WithTimeout adds the timeout to the list complete plans params
func (*ListCompletePlansParams) WriteToRequest ¶
func (o *ListCompletePlansParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ListPlansInternalServerError) Error() string
func (*ListPlansInternalServerError) GetPayload ¶
func (o *ListPlansInternalServerError) GetPayload() *models.ErrorResponse
type ListPlansOK ¶
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 (o *UpdatePlanInternalServerError) Error() string
func (*UpdatePlanInternalServerError) GetPayload ¶
func (o *UpdatePlanInternalServerError) GetPayload() *models.ErrorResponse
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 ¶
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.
Source Files
¶
- create_plan_parameters.go
- create_plan_responses.go
- get_complete_plan_parameters.go
- get_complete_plan_responses.go
- get_plan_parameters.go
- get_plan_responses.go
- list_complete_plans_parameters.go
- list_complete_plans_responses.go
- list_plans_parameters.go
- list_plans_responses.go
- plan_management_client.go
- update_plan_parameters.go
- update_plan_responses.go