Documentation
¶
Index ¶
- Constants
- type CreateSkuBundle
- type CreateSkuBundleBadRequest
- type CreateSkuBundleConflict
- type CreateSkuBundleCreated
- type CreateSkuBundleHandler
- type CreateSkuBundleHandlerFunc
- type CreateSkuBundleInternalServerError
- func (o *CreateSkuBundleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *CreateSkuBundleInternalServerError) WithPayload(payload *models.ErrorResponse) *CreateSkuBundleInternalServerError
- func (o *CreateSkuBundleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSkuBundleParams
- type CreateSkuBundleURL
- func (o *CreateSkuBundleURL) Build() (*url.URL, error)
- func (o *CreateSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSkuBundleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSkuBundleURL) SetBasePath(bp string)
- func (o *CreateSkuBundleURL) String() string
- func (o *CreateSkuBundleURL) StringFull(scheme, host string) string
- func (o *CreateSkuBundleURL) WithBasePath(bp string) *CreateSkuBundleURL
- type GetSkuBundle
- type GetSkuBundleByName
- type GetSkuBundleByNameHandler
- type GetSkuBundleByNameHandlerFunc
- type GetSkuBundleByNameInternalServerError
- func (o *GetSkuBundleByNameInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetSkuBundleByNameInternalServerError) WithPayload(payload *models.ErrorResponse) *GetSkuBundleByNameInternalServerError
- func (o *GetSkuBundleByNameInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSkuBundleByNameNotFound
- type GetSkuBundleByNameOK
- type GetSkuBundleByNameParams
- type GetSkuBundleByNameURL
- func (o *GetSkuBundleByNameURL) Build() (*url.URL, error)
- func (o *GetSkuBundleByNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSkuBundleByNameURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSkuBundleByNameURL) SetBasePath(bp string)
- func (o *GetSkuBundleByNameURL) String() string
- func (o *GetSkuBundleByNameURL) StringFull(scheme, host string) string
- func (o *GetSkuBundleByNameURL) WithBasePath(bp string) *GetSkuBundleByNameURL
- type GetSkuBundleHandler
- type GetSkuBundleHandlerFunc
- type GetSkuBundleInternalServerError
- func (o *GetSkuBundleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetSkuBundleInternalServerError) WithPayload(payload *models.ErrorResponse) *GetSkuBundleInternalServerError
- func (o *GetSkuBundleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSkuBundleNotFound
- type GetSkuBundleOK
- type GetSkuBundleParams
- type GetSkuBundleURL
- func (o *GetSkuBundleURL) Build() (*url.URL, error)
- func (o *GetSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSkuBundleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSkuBundleURL) SetBasePath(bp string)
- func (o *GetSkuBundleURL) String() string
- func (o *GetSkuBundleURL) StringFull(scheme, host string) string
- func (o *GetSkuBundleURL) WithBasePath(bp string) *GetSkuBundleURL
- type ListSkuBundles
- type ListSkuBundlesHandler
- type ListSkuBundlesHandlerFunc
- type ListSkuBundlesInternalServerError
- func (o *ListSkuBundlesInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ListSkuBundlesInternalServerError) WithPayload(payload *models.ErrorResponse) *ListSkuBundlesInternalServerError
- func (o *ListSkuBundlesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListSkuBundlesOK
- type ListSkuBundlesParams
- type ListSkuBundlesURL
- func (o *ListSkuBundlesURL) Build() (*url.URL, error)
- func (o *ListSkuBundlesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListSkuBundlesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListSkuBundlesURL) SetBasePath(bp string)
- func (o *ListSkuBundlesURL) String() string
- func (o *ListSkuBundlesURL) StringFull(scheme, host string) string
- func (o *ListSkuBundlesURL) WithBasePath(bp string) *ListSkuBundlesURL
- type UpdateSkuBundle
- type UpdateSkuBundleHandler
- type UpdateSkuBundleHandlerFunc
- type UpdateSkuBundleInternalServerError
- func (o *UpdateSkuBundleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *UpdateSkuBundleInternalServerError) WithPayload(payload *models.ErrorResponse) *UpdateSkuBundleInternalServerError
- func (o *UpdateSkuBundleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateSkuBundleNotFound
- type UpdateSkuBundleOK
- type UpdateSkuBundleParams
- type UpdateSkuBundleURL
- func (o *UpdateSkuBundleURL) Build() (*url.URL, error)
- func (o *UpdateSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateSkuBundleURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateSkuBundleURL) SetBasePath(bp string)
- func (o *UpdateSkuBundleURL) String() string
- func (o *UpdateSkuBundleURL) StringFull(scheme, host string) string
- func (o *UpdateSkuBundleURL) WithBasePath(bp string) *UpdateSkuBundleURL
Constants ¶
const CreateSkuBundleBadRequestCode int = 400
CreateSkuBundleBadRequestCode is the HTTP code returned for type CreateSkuBundleBadRequest
const CreateSkuBundleConflictCode int = 409
CreateSkuBundleConflictCode is the HTTP code returned for type CreateSkuBundleConflict
const CreateSkuBundleCreatedCode int = 201
CreateSkuBundleCreatedCode is the HTTP code returned for type CreateSkuBundleCreated
const CreateSkuBundleInternalServerErrorCode int = 500
CreateSkuBundleInternalServerErrorCode is the HTTP code returned for type CreateSkuBundleInternalServerError
const GetSkuBundleByNameInternalServerErrorCode int = 500
GetSkuBundleByNameInternalServerErrorCode is the HTTP code returned for type GetSkuBundleByNameInternalServerError
const GetSkuBundleByNameNotFoundCode int = 404
GetSkuBundleByNameNotFoundCode is the HTTP code returned for type GetSkuBundleByNameNotFound
const GetSkuBundleByNameOKCode int = 200
GetSkuBundleByNameOKCode is the HTTP code returned for type GetSkuBundleByNameOK
const GetSkuBundleInternalServerErrorCode int = 500
GetSkuBundleInternalServerErrorCode is the HTTP code returned for type GetSkuBundleInternalServerError
const GetSkuBundleNotFoundCode int = 404
GetSkuBundleNotFoundCode is the HTTP code returned for type GetSkuBundleNotFound
const GetSkuBundleOKCode int = 200
GetSkuBundleOKCode is the HTTP code returned for type GetSkuBundleOK
const ListSkuBundlesInternalServerErrorCode int = 500
ListSkuBundlesInternalServerErrorCode is the HTTP code returned for type ListSkuBundlesInternalServerError
const ListSkuBundlesOKCode int = 200
ListSkuBundlesOKCode is the HTTP code returned for type ListSkuBundlesOK
const UpdateSkuBundleInternalServerErrorCode int = 500
UpdateSkuBundleInternalServerErrorCode is the HTTP code returned for type UpdateSkuBundleInternalServerError
const UpdateSkuBundleNotFoundCode int = 404
UpdateSkuBundleNotFoundCode is the HTTP code returned for type UpdateSkuBundleNotFound
const UpdateSkuBundleOKCode int = 200
UpdateSkuBundleOKCode is the HTTP code returned for type UpdateSkuBundleOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSkuBundle ¶
type CreateSkuBundle struct {
Context *middleware.Context
Handler CreateSkuBundleHandler
}
CreateSkuBundle swagger:route POST /sku/bundle bundleManagement createSkuBundle
create SKU bundle
Creates a new sku bundle
func NewCreateSkuBundle ¶
func NewCreateSkuBundle(ctx *middleware.Context, handler CreateSkuBundleHandler) *CreateSkuBundle
NewCreateSkuBundle creates a new http.Handler for the create sku bundle operation
func (*CreateSkuBundle) ServeHTTP ¶
func (o *CreateSkuBundle) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSkuBundleBadRequest ¶
type CreateSkuBundleBadRequest struct {
}
CreateSkuBundleBadRequest invalid input, object invalid
swagger:response createSkuBundleBadRequest
func NewCreateSkuBundleBadRequest ¶
func NewCreateSkuBundleBadRequest() *CreateSkuBundleBadRequest
NewCreateSkuBundleBadRequest creates CreateSkuBundleBadRequest with default headers values
func (*CreateSkuBundleBadRequest) WriteResponse ¶
func (o *CreateSkuBundleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSkuBundleConflict ¶
type CreateSkuBundleConflict struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
CreateSkuBundleConflict an existing item already exists
swagger:response createSkuBundleConflict
func NewCreateSkuBundleConflict ¶
func NewCreateSkuBundleConflict() *CreateSkuBundleConflict
NewCreateSkuBundleConflict creates CreateSkuBundleConflict with default headers values
func (*CreateSkuBundleConflict) SetPayload ¶
func (o *CreateSkuBundleConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create sku bundle conflict response
func (*CreateSkuBundleConflict) WithPayload ¶
func (o *CreateSkuBundleConflict) WithPayload(payload *models.ErrorResponse) *CreateSkuBundleConflict
WithPayload adds the payload to the create sku bundle conflict response
func (*CreateSkuBundleConflict) WriteResponse ¶
func (o *CreateSkuBundleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSkuBundleCreated ¶
type CreateSkuBundleCreated struct {
/*
In: Body
*/
Payload *models.ItemCreatedResponse `json:"body,omitempty"`
}
CreateSkuBundleCreated item created
swagger:response createSkuBundleCreated
func NewCreateSkuBundleCreated ¶
func NewCreateSkuBundleCreated() *CreateSkuBundleCreated
NewCreateSkuBundleCreated creates CreateSkuBundleCreated with default headers values
func (*CreateSkuBundleCreated) SetPayload ¶
func (o *CreateSkuBundleCreated) SetPayload(payload *models.ItemCreatedResponse)
SetPayload sets the payload to the create sku bundle created response
func (*CreateSkuBundleCreated) WithPayload ¶
func (o *CreateSkuBundleCreated) WithPayload(payload *models.ItemCreatedResponse) *CreateSkuBundleCreated
WithPayload adds the payload to the create sku bundle created response
func (*CreateSkuBundleCreated) WriteResponse ¶
func (o *CreateSkuBundleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSkuBundleHandler ¶
type CreateSkuBundleHandler interface {
Handle(CreateSkuBundleParams, interface{}) middleware.Responder
}
CreateSkuBundleHandler interface for that can handle valid create sku bundle params
type CreateSkuBundleHandlerFunc ¶
type CreateSkuBundleHandlerFunc func(CreateSkuBundleParams, interface{}) middleware.Responder
CreateSkuBundleHandlerFunc turns a function with the right signature into a create sku bundle handler
func (CreateSkuBundleHandlerFunc) Handle ¶
func (fn CreateSkuBundleHandlerFunc) Handle(params CreateSkuBundleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateSkuBundleInternalServerError ¶
type CreateSkuBundleInternalServerError struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
CreateSkuBundleInternalServerError unexpected error
swagger:response createSkuBundleInternalServerError
func NewCreateSkuBundleInternalServerError ¶
func NewCreateSkuBundleInternalServerError() *CreateSkuBundleInternalServerError
NewCreateSkuBundleInternalServerError creates CreateSkuBundleInternalServerError with default headers values
func (*CreateSkuBundleInternalServerError) SetPayload ¶
func (o *CreateSkuBundleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create sku bundle internal server error response
func (*CreateSkuBundleInternalServerError) WithPayload ¶
func (o *CreateSkuBundleInternalServerError) WithPayload(payload *models.ErrorResponse) *CreateSkuBundleInternalServerError
WithPayload adds the payload to the create sku bundle internal server error response
func (*CreateSkuBundleInternalServerError) WriteResponse ¶
func (o *CreateSkuBundleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSkuBundleParams ¶
type CreateSkuBundleParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*SKU bundle to be added
In: body
*/
Bundle *models.SkuBundle
}
CreateSkuBundleParams contains all the bound params for the create sku bundle operation typically these are obtained from a http.Request
swagger:parameters createSkuBundle
func NewCreateSkuBundleParams ¶
func NewCreateSkuBundleParams() CreateSkuBundleParams
NewCreateSkuBundleParams creates a new CreateSkuBundleParams object no default values defined in spec.
func (*CreateSkuBundleParams) BindRequest ¶
func (o *CreateSkuBundleParams) 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 NewCreateSkuBundleParams() beforehand.
type CreateSkuBundleURL ¶
type CreateSkuBundleURL struct {
// contains filtered or unexported fields
}
CreateSkuBundleURL generates an URL for the create sku bundle operation
func (*CreateSkuBundleURL) Build ¶
func (o *CreateSkuBundleURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSkuBundleURL) BuildFull ¶
func (o *CreateSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSkuBundleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSkuBundleURL) SetBasePath ¶
func (o *CreateSkuBundleURL) 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 (*CreateSkuBundleURL) String ¶
func (o *CreateSkuBundleURL) String() string
String returns the string representation of the path with query string
func (*CreateSkuBundleURL) StringFull ¶
func (o *CreateSkuBundleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSkuBundleURL) WithBasePath ¶
func (o *CreateSkuBundleURL) WithBasePath(bp string) *CreateSkuBundleURL
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 GetSkuBundle ¶
type GetSkuBundle struct {
Context *middleware.Context
Handler GetSkuBundleHandler
}
GetSkuBundle swagger:route GET /sku/bundle/{id} bundleManagement getSkuBundle
Get specific sku bundle ¶
get sku bundle with given id
func NewGetSkuBundle ¶
func NewGetSkuBundle(ctx *middleware.Context, handler GetSkuBundleHandler) *GetSkuBundle
NewGetSkuBundle creates a new http.Handler for the get sku bundle operation
func (*GetSkuBundle) ServeHTTP ¶
func (o *GetSkuBundle) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSkuBundleByName ¶
type GetSkuBundleByName struct {
Context *middleware.Context
Handler GetSkuBundleByNameHandler
}
GetSkuBundleByName swagger:route GET /sku/bundle/name/{name} bundleManagement getSkuBundleByName
Get specific sku bundle ¶
get sku bundle with given name
func NewGetSkuBundleByName ¶
func NewGetSkuBundleByName(ctx *middleware.Context, handler GetSkuBundleByNameHandler) *GetSkuBundleByName
NewGetSkuBundleByName creates a new http.Handler for the get sku bundle by name operation
func (*GetSkuBundleByName) ServeHTTP ¶
func (o *GetSkuBundleByName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSkuBundleByNameHandler ¶
type GetSkuBundleByNameHandler interface {
Handle(GetSkuBundleByNameParams, interface{}) middleware.Responder
}
GetSkuBundleByNameHandler interface for that can handle valid get sku bundle by name params
type GetSkuBundleByNameHandlerFunc ¶
type GetSkuBundleByNameHandlerFunc func(GetSkuBundleByNameParams, interface{}) middleware.Responder
GetSkuBundleByNameHandlerFunc turns a function with the right signature into a get sku bundle by name handler
func (GetSkuBundleByNameHandlerFunc) Handle ¶
func (fn GetSkuBundleByNameHandlerFunc) Handle(params GetSkuBundleByNameParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetSkuBundleByNameInternalServerError ¶
type GetSkuBundleByNameInternalServerError struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
GetSkuBundleByNameInternalServerError unexpected error
swagger:response getSkuBundleByNameInternalServerError
func NewGetSkuBundleByNameInternalServerError ¶
func NewGetSkuBundleByNameInternalServerError() *GetSkuBundleByNameInternalServerError
NewGetSkuBundleByNameInternalServerError creates GetSkuBundleByNameInternalServerError with default headers values
func (*GetSkuBundleByNameInternalServerError) SetPayload ¶
func (o *GetSkuBundleByNameInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get sku bundle by name internal server error response
func (*GetSkuBundleByNameInternalServerError) WithPayload ¶
func (o *GetSkuBundleByNameInternalServerError) WithPayload(payload *models.ErrorResponse) *GetSkuBundleByNameInternalServerError
WithPayload adds the payload to the get sku bundle by name internal server error response
func (*GetSkuBundleByNameInternalServerError) WriteResponse ¶
func (o *GetSkuBundleByNameInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSkuBundleByNameNotFound ¶
type GetSkuBundleByNameNotFound struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
GetSkuBundleByNameNotFound sku bundle with name not found
swagger:response getSkuBundleByNameNotFound
func NewGetSkuBundleByNameNotFound ¶
func NewGetSkuBundleByNameNotFound() *GetSkuBundleByNameNotFound
NewGetSkuBundleByNameNotFound creates GetSkuBundleByNameNotFound with default headers values
func (*GetSkuBundleByNameNotFound) SetPayload ¶
func (o *GetSkuBundleByNameNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get sku bundle by name not found response
func (*GetSkuBundleByNameNotFound) WithPayload ¶
func (o *GetSkuBundleByNameNotFound) WithPayload(payload *models.ErrorResponse) *GetSkuBundleByNameNotFound
WithPayload adds the payload to the get sku bundle by name not found response
func (*GetSkuBundleByNameNotFound) WriteResponse ¶
func (o *GetSkuBundleByNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSkuBundleByNameOK ¶
type GetSkuBundleByNameOK struct {
/*
In: Body
*/
Payload *models.SkuBundle `json:"body,omitempty"`
}
GetSkuBundleByNameOK sku bundle returned
swagger:response getSkuBundleByNameOK
func NewGetSkuBundleByNameOK ¶
func NewGetSkuBundleByNameOK() *GetSkuBundleByNameOK
NewGetSkuBundleByNameOK creates GetSkuBundleByNameOK with default headers values
func (*GetSkuBundleByNameOK) SetPayload ¶
func (o *GetSkuBundleByNameOK) SetPayload(payload *models.SkuBundle)
SetPayload sets the payload to the get sku bundle by name o k response
func (*GetSkuBundleByNameOK) WithPayload ¶
func (o *GetSkuBundleByNameOK) WithPayload(payload *models.SkuBundle) *GetSkuBundleByNameOK
WithPayload adds the payload to the get sku bundle by name o k response
func (*GetSkuBundleByNameOK) WriteResponse ¶
func (o *GetSkuBundleByNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSkuBundleByNameParams ¶
type GetSkuBundleByNameParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*Id of sku bundle to be obtained
Required: true
In: path
*/
Name string
}
GetSkuBundleByNameParams contains all the bound params for the get sku bundle by name operation typically these are obtained from a http.Request
swagger:parameters getSkuBundleByName
func NewGetSkuBundleByNameParams ¶
func NewGetSkuBundleByNameParams() GetSkuBundleByNameParams
NewGetSkuBundleByNameParams creates a new GetSkuBundleByNameParams object no default values defined in spec.
func (*GetSkuBundleByNameParams) BindRequest ¶
func (o *GetSkuBundleByNameParams) 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 NewGetSkuBundleByNameParams() beforehand.
type GetSkuBundleByNameURL ¶
type GetSkuBundleByNameURL struct {
Name string
// contains filtered or unexported fields
}
GetSkuBundleByNameURL generates an URL for the get sku bundle by name operation
func (*GetSkuBundleByNameURL) Build ¶
func (o *GetSkuBundleByNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSkuBundleByNameURL) BuildFull ¶
func (o *GetSkuBundleByNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSkuBundleByNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSkuBundleByNameURL) SetBasePath ¶
func (o *GetSkuBundleByNameURL) 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 (*GetSkuBundleByNameURL) String ¶
func (o *GetSkuBundleByNameURL) String() string
String returns the string representation of the path with query string
func (*GetSkuBundleByNameURL) StringFull ¶
func (o *GetSkuBundleByNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSkuBundleByNameURL) WithBasePath ¶
func (o *GetSkuBundleByNameURL) WithBasePath(bp string) *GetSkuBundleByNameURL
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 GetSkuBundleHandler ¶
type GetSkuBundleHandler interface {
Handle(GetSkuBundleParams, interface{}) middleware.Responder
}
GetSkuBundleHandler interface for that can handle valid get sku bundle params
type GetSkuBundleHandlerFunc ¶
type GetSkuBundleHandlerFunc func(GetSkuBundleParams, interface{}) middleware.Responder
GetSkuBundleHandlerFunc turns a function with the right signature into a get sku bundle handler
func (GetSkuBundleHandlerFunc) Handle ¶
func (fn GetSkuBundleHandlerFunc) Handle(params GetSkuBundleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetSkuBundleInternalServerError ¶
type GetSkuBundleInternalServerError struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
GetSkuBundleInternalServerError unexpected error
swagger:response getSkuBundleInternalServerError
func NewGetSkuBundleInternalServerError ¶
func NewGetSkuBundleInternalServerError() *GetSkuBundleInternalServerError
NewGetSkuBundleInternalServerError creates GetSkuBundleInternalServerError with default headers values
func (*GetSkuBundleInternalServerError) SetPayload ¶
func (o *GetSkuBundleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get sku bundle internal server error response
func (*GetSkuBundleInternalServerError) WithPayload ¶
func (o *GetSkuBundleInternalServerError) WithPayload(payload *models.ErrorResponse) *GetSkuBundleInternalServerError
WithPayload adds the payload to the get sku bundle internal server error response
func (*GetSkuBundleInternalServerError) WriteResponse ¶
func (o *GetSkuBundleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSkuBundleNotFound ¶
type GetSkuBundleNotFound struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
GetSkuBundleNotFound sku bundle with id not found
swagger:response getSkuBundleNotFound
func NewGetSkuBundleNotFound ¶
func NewGetSkuBundleNotFound() *GetSkuBundleNotFound
NewGetSkuBundleNotFound creates GetSkuBundleNotFound with default headers values
func (*GetSkuBundleNotFound) SetPayload ¶
func (o *GetSkuBundleNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get sku bundle not found response
func (*GetSkuBundleNotFound) WithPayload ¶
func (o *GetSkuBundleNotFound) WithPayload(payload *models.ErrorResponse) *GetSkuBundleNotFound
WithPayload adds the payload to the get sku bundle not found response
func (*GetSkuBundleNotFound) WriteResponse ¶
func (o *GetSkuBundleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSkuBundleOK ¶
GetSkuBundleOK sku bundle returned
swagger:response getSkuBundleOK
func NewGetSkuBundleOK ¶
func NewGetSkuBundleOK() *GetSkuBundleOK
NewGetSkuBundleOK creates GetSkuBundleOK with default headers values
func (*GetSkuBundleOK) SetPayload ¶
func (o *GetSkuBundleOK) SetPayload(payload *models.SkuBundle)
SetPayload sets the payload to the get sku bundle o k response
func (*GetSkuBundleOK) WithPayload ¶
func (o *GetSkuBundleOK) WithPayload(payload *models.SkuBundle) *GetSkuBundleOK
WithPayload adds the payload to the get sku bundle o k response
func (*GetSkuBundleOK) WriteResponse ¶
func (o *GetSkuBundleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSkuBundleParams ¶
type GetSkuBundleParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*Id of sku bundle to be obtained
Required: true
In: path
*/
ID string
}
GetSkuBundleParams contains all the bound params for the get sku bundle operation typically these are obtained from a http.Request
swagger:parameters getSkuBundle
func NewGetSkuBundleParams ¶
func NewGetSkuBundleParams() GetSkuBundleParams
NewGetSkuBundleParams creates a new GetSkuBundleParams object no default values defined in spec.
func (*GetSkuBundleParams) BindRequest ¶
func (o *GetSkuBundleParams) 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 NewGetSkuBundleParams() beforehand.
type GetSkuBundleURL ¶
type GetSkuBundleURL struct {
ID string
// contains filtered or unexported fields
}
GetSkuBundleURL generates an URL for the get sku bundle operation
func (*GetSkuBundleURL) Build ¶
func (o *GetSkuBundleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSkuBundleURL) BuildFull ¶
func (o *GetSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSkuBundleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSkuBundleURL) SetBasePath ¶
func (o *GetSkuBundleURL) 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 (*GetSkuBundleURL) String ¶
func (o *GetSkuBundleURL) String() string
String returns the string representation of the path with query string
func (*GetSkuBundleURL) StringFull ¶
func (o *GetSkuBundleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSkuBundleURL) WithBasePath ¶
func (o *GetSkuBundleURL) WithBasePath(bp string) *GetSkuBundleURL
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 ListSkuBundles ¶
type ListSkuBundles struct {
Context *middleware.Context
Handler ListSkuBundlesHandler
}
ListSkuBundles swagger:route GET /sku/bundle bundleManagement listSkuBundles
list SKU Bundles
lists all sku bundles
func NewListSkuBundles ¶
func NewListSkuBundles(ctx *middleware.Context, handler ListSkuBundlesHandler) *ListSkuBundles
NewListSkuBundles creates a new http.Handler for the list sku bundles operation
func (*ListSkuBundles) ServeHTTP ¶
func (o *ListSkuBundles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListSkuBundlesHandler ¶
type ListSkuBundlesHandler interface {
Handle(ListSkuBundlesParams, interface{}) middleware.Responder
}
ListSkuBundlesHandler interface for that can handle valid list sku bundles params
type ListSkuBundlesHandlerFunc ¶
type ListSkuBundlesHandlerFunc func(ListSkuBundlesParams, interface{}) middleware.Responder
ListSkuBundlesHandlerFunc turns a function with the right signature into a list sku bundles handler
func (ListSkuBundlesHandlerFunc) Handle ¶
func (fn ListSkuBundlesHandlerFunc) Handle(params ListSkuBundlesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListSkuBundlesInternalServerError ¶
type ListSkuBundlesInternalServerError struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
ListSkuBundlesInternalServerError unexpected error
swagger:response listSkuBundlesInternalServerError
func NewListSkuBundlesInternalServerError ¶
func NewListSkuBundlesInternalServerError() *ListSkuBundlesInternalServerError
NewListSkuBundlesInternalServerError creates ListSkuBundlesInternalServerError with default headers values
func (*ListSkuBundlesInternalServerError) SetPayload ¶
func (o *ListSkuBundlesInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the list sku bundles internal server error response
func (*ListSkuBundlesInternalServerError) WithPayload ¶
func (o *ListSkuBundlesInternalServerError) WithPayload(payload *models.ErrorResponse) *ListSkuBundlesInternalServerError
WithPayload adds the payload to the list sku bundles internal server error response
func (*ListSkuBundlesInternalServerError) WriteResponse ¶
func (o *ListSkuBundlesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSkuBundlesOK ¶
ListSkuBundlesOK list of skus bundles returned
swagger:response listSkuBundlesOK
func NewListSkuBundlesOK ¶
func NewListSkuBundlesOK() *ListSkuBundlesOK
NewListSkuBundlesOK creates ListSkuBundlesOK with default headers values
func (*ListSkuBundlesOK) SetPayload ¶
func (o *ListSkuBundlesOK) SetPayload(payload []*models.SkuBundle)
SetPayload sets the payload to the list sku bundles o k response
func (*ListSkuBundlesOK) WithPayload ¶
func (o *ListSkuBundlesOK) WithPayload(payload []*models.SkuBundle) *ListSkuBundlesOK
WithPayload adds the payload to the list sku bundles o k response
func (*ListSkuBundlesOK) WriteResponse ¶
func (o *ListSkuBundlesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSkuBundlesParams ¶
ListSkuBundlesParams contains all the bound params for the list sku bundles operation typically these are obtained from a http.Request
swagger:parameters listSkuBundles
func NewListSkuBundlesParams ¶
func NewListSkuBundlesParams() ListSkuBundlesParams
NewListSkuBundlesParams creates a new ListSkuBundlesParams object no default values defined in spec.
func (*ListSkuBundlesParams) BindRequest ¶
func (o *ListSkuBundlesParams) 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 NewListSkuBundlesParams() beforehand.
type ListSkuBundlesURL ¶
type ListSkuBundlesURL struct {
// contains filtered or unexported fields
}
ListSkuBundlesURL generates an URL for the list sku bundles operation
func (*ListSkuBundlesURL) Build ¶
func (o *ListSkuBundlesURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListSkuBundlesURL) BuildFull ¶
func (o *ListSkuBundlesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListSkuBundlesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListSkuBundlesURL) SetBasePath ¶
func (o *ListSkuBundlesURL) 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 (*ListSkuBundlesURL) String ¶
func (o *ListSkuBundlesURL) String() string
String returns the string representation of the path with query string
func (*ListSkuBundlesURL) StringFull ¶
func (o *ListSkuBundlesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListSkuBundlesURL) WithBasePath ¶
func (o *ListSkuBundlesURL) WithBasePath(bp string) *ListSkuBundlesURL
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 UpdateSkuBundle ¶
type UpdateSkuBundle struct {
Context *middleware.Context
Handler UpdateSkuBundleHandler
}
UpdateSkuBundle swagger:route PUT /sku/bundle/{id} bundleManagement updateSkuBundle
Update specific sku bundle ¶
Update sku bundle with given id
func NewUpdateSkuBundle ¶
func NewUpdateSkuBundle(ctx *middleware.Context, handler UpdateSkuBundleHandler) *UpdateSkuBundle
NewUpdateSkuBundle creates a new http.Handler for the update sku bundle operation
func (*UpdateSkuBundle) ServeHTTP ¶
func (o *UpdateSkuBundle) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateSkuBundleHandler ¶
type UpdateSkuBundleHandler interface {
Handle(UpdateSkuBundleParams, interface{}) middleware.Responder
}
UpdateSkuBundleHandler interface for that can handle valid update sku bundle params
type UpdateSkuBundleHandlerFunc ¶
type UpdateSkuBundleHandlerFunc func(UpdateSkuBundleParams, interface{}) middleware.Responder
UpdateSkuBundleHandlerFunc turns a function with the right signature into a update sku bundle handler
func (UpdateSkuBundleHandlerFunc) Handle ¶
func (fn UpdateSkuBundleHandlerFunc) Handle(params UpdateSkuBundleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateSkuBundleInternalServerError ¶
type UpdateSkuBundleInternalServerError struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
UpdateSkuBundleInternalServerError unexpected error
swagger:response updateSkuBundleInternalServerError
func NewUpdateSkuBundleInternalServerError ¶
func NewUpdateSkuBundleInternalServerError() *UpdateSkuBundleInternalServerError
NewUpdateSkuBundleInternalServerError creates UpdateSkuBundleInternalServerError with default headers values
func (*UpdateSkuBundleInternalServerError) SetPayload ¶
func (o *UpdateSkuBundleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the update sku bundle internal server error response
func (*UpdateSkuBundleInternalServerError) WithPayload ¶
func (o *UpdateSkuBundleInternalServerError) WithPayload(payload *models.ErrorResponse) *UpdateSkuBundleInternalServerError
WithPayload adds the payload to the update sku bundle internal server error response
func (*UpdateSkuBundleInternalServerError) WriteResponse ¶
func (o *UpdateSkuBundleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSkuBundleNotFound ¶
type UpdateSkuBundleNotFound struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
UpdateSkuBundleNotFound sku bundle with id not found
swagger:response updateSkuBundleNotFound
func NewUpdateSkuBundleNotFound ¶
func NewUpdateSkuBundleNotFound() *UpdateSkuBundleNotFound
NewUpdateSkuBundleNotFound creates UpdateSkuBundleNotFound with default headers values
func (*UpdateSkuBundleNotFound) SetPayload ¶
func (o *UpdateSkuBundleNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the update sku bundle not found response
func (*UpdateSkuBundleNotFound) WithPayload ¶
func (o *UpdateSkuBundleNotFound) WithPayload(payload *models.ErrorResponse) *UpdateSkuBundleNotFound
WithPayload adds the payload to the update sku bundle not found response
func (*UpdateSkuBundleNotFound) WriteResponse ¶
func (o *UpdateSkuBundleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSkuBundleOK ¶
UpdateSkuBundleOK updated sku bundle
swagger:response updateSkuBundleOK
func NewUpdateSkuBundleOK ¶
func NewUpdateSkuBundleOK() *UpdateSkuBundleOK
NewUpdateSkuBundleOK creates UpdateSkuBundleOK with default headers values
func (*UpdateSkuBundleOK) SetPayload ¶
func (o *UpdateSkuBundleOK) SetPayload(payload *models.SkuBundle)
SetPayload sets the payload to the update sku bundle o k response
func (*UpdateSkuBundleOK) WithPayload ¶
func (o *UpdateSkuBundleOK) WithPayload(payload *models.SkuBundle) *UpdateSkuBundleOK
WithPayload adds the payload to the update sku bundle o k response
func (*UpdateSkuBundleOK) WriteResponse ¶
func (o *UpdateSkuBundleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSkuBundleParams ¶
type UpdateSkuBundleParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*updated sku bundle containing all parameters except id
Required: true
In: body
*/
Bundle *models.SkuBundle
/*Id of sku bundle to be obtained
Required: true
In: path
*/
ID string
}
UpdateSkuBundleParams contains all the bound params for the update sku bundle operation typically these are obtained from a http.Request
swagger:parameters updateSkuBundle
func NewUpdateSkuBundleParams ¶
func NewUpdateSkuBundleParams() UpdateSkuBundleParams
NewUpdateSkuBundleParams creates a new UpdateSkuBundleParams object no default values defined in spec.
func (*UpdateSkuBundleParams) BindRequest ¶
func (o *UpdateSkuBundleParams) 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 NewUpdateSkuBundleParams() beforehand.
type UpdateSkuBundleURL ¶
type UpdateSkuBundleURL struct {
ID string
// contains filtered or unexported fields
}
UpdateSkuBundleURL generates an URL for the update sku bundle operation
func (*UpdateSkuBundleURL) Build ¶
func (o *UpdateSkuBundleURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateSkuBundleURL) BuildFull ¶
func (o *UpdateSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateSkuBundleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateSkuBundleURL) SetBasePath ¶
func (o *UpdateSkuBundleURL) 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 (*UpdateSkuBundleURL) String ¶
func (o *UpdateSkuBundleURL) String() string
String returns the string representation of the path with query string
func (*UpdateSkuBundleURL) StringFull ¶
func (o *UpdateSkuBundleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateSkuBundleURL) WithBasePath ¶
func (o *UpdateSkuBundleURL) WithBasePath(bp string) *UpdateSkuBundleURL
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
Source Files
¶
- create_sku_bundle.go
- create_sku_bundle_parameters.go
- create_sku_bundle_responses.go
- create_sku_bundle_urlbuilder.go
- get_sku_bundle.go
- get_sku_bundle_by_name.go
- get_sku_bundle_by_name_parameters.go
- get_sku_bundle_by_name_responses.go
- get_sku_bundle_by_name_urlbuilder.go
- get_sku_bundle_parameters.go
- get_sku_bundle_responses.go
- get_sku_bundle_urlbuilder.go
- list_sku_bundles.go
- list_sku_bundles_parameters.go
- list_sku_bundles_responses.go
- list_sku_bundles_urlbuilder.go
- update_sku_bundle.go
- update_sku_bundle_parameters.go
- update_sku_bundle_responses.go
- update_sku_bundle_urlbuilder.go