Documentation ¶
Index ¶
- Constants
- type ProductFind
- type ProductFindBadRequest
- type ProductFindForbidden
- type ProductFindHandler
- type ProductFindHandlerFunc
- type ProductFindNotFound
- type ProductFindOK
- func (o *ProductFindOK) SetPayload(payload []*models.ProductSummary)
- func (o *ProductFindOK) SetXResultCount(xResultCount string)
- func (o *ProductFindOK) SetXTotalCount(xTotalCount string)
- func (o *ProductFindOK) WithPayload(payload []*models.ProductSummary) *ProductFindOK
- func (o *ProductFindOK) WithXResultCount(xResultCount string) *ProductFindOK
- func (o *ProductFindOK) WithXTotalCount(xTotalCount string) *ProductFindOK
- func (o *ProductFindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ProductFindParams
- type ProductFindServiceUnavailable
- func (o *ProductFindServiceUnavailable) SetPayload(payload *models.ErrorRepresentation)
- func (o *ProductFindServiceUnavailable) WithPayload(payload *models.ErrorRepresentation) *ProductFindServiceUnavailable
- func (o *ProductFindServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ProductFindURL
- func (o *ProductFindURL) Build() (*url.URL, error)
- func (o *ProductFindURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ProductFindURL) Must(u *url.URL, err error) *url.URL
- func (o *ProductFindURL) SetBasePath(bp string)
- func (o *ProductFindURL) String() string
- func (o *ProductFindURL) StringFull(scheme, host string) string
- func (o *ProductFindURL) WithBasePath(bp string) *ProductFindURL
- type ProductFindUnauthorized
- type ProductFindUnprocessableEntity
- func (o *ProductFindUnprocessableEntity) SetPayload(payload *models.ErrorRepresentation)
- func (o *ProductFindUnprocessableEntity) WithPayload(payload *models.ErrorRepresentation) *ProductFindUnprocessableEntity
- func (o *ProductFindUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ProductGet
- type ProductGetBadRequest
- type ProductGetForbidden
- type ProductGetHandler
- type ProductGetHandlerFunc
- type ProductGetNotFound
- type ProductGetOK
- type ProductGetParams
- type ProductGetServiceUnavailable
- func (o *ProductGetServiceUnavailable) SetPayload(payload *models.ErrorRepresentation)
- func (o *ProductGetServiceUnavailable) WithPayload(payload *models.ErrorRepresentation) *ProductGetServiceUnavailable
- func (o *ProductGetServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ProductGetURL
- func (o *ProductGetURL) Build() (*url.URL, error)
- func (o *ProductGetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ProductGetURL) Must(u *url.URL, err error) *url.URL
- func (o *ProductGetURL) SetBasePath(bp string)
- func (o *ProductGetURL) String() string
- func (o *ProductGetURL) StringFull(scheme, host string) string
- func (o *ProductGetURL) WithBasePath(bp string) *ProductGetURL
- type ProductGetUnauthorized
- type ProductGetUnprocessableEntity
- func (o *ProductGetUnprocessableEntity) SetPayload(payload *models.ErrorRepresentation)
- func (o *ProductGetUnprocessableEntity) WithPayload(payload *models.ErrorRepresentation) *ProductGetUnprocessableEntity
- func (o *ProductGetUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const ProductFindBadRequestCode int = 400
ProductFindBadRequestCode is the HTTP code returned for type ProductFindBadRequest
const ProductFindForbiddenCode int = 403
ProductFindForbiddenCode is the HTTP code returned for type ProductFindForbidden
const ProductFindNotFoundCode int = 404
ProductFindNotFoundCode is the HTTP code returned for type ProductFindNotFound
const ProductFindOKCode int = 200
ProductFindOKCode is the HTTP code returned for type ProductFindOK
ProductFindServiceUnavailableCode is the HTTP code returned for type ProductFindServiceUnavailable
ProductFindUnauthorizedCode is the HTTP code returned for type ProductFindUnauthorized
const ProductFindUnprocessableEntityCode int = 422
ProductFindUnprocessableEntityCode is the HTTP code returned for type ProductFindUnprocessableEntity
const ProductGetBadRequestCode int = 400
ProductGetBadRequestCode is the HTTP code returned for type ProductGetBadRequest
const ProductGetForbiddenCode int = 403
ProductGetForbiddenCode is the HTTP code returned for type ProductGetForbidden
const ProductGetNotFoundCode int = 404
ProductGetNotFoundCode is the HTTP code returned for type ProductGetNotFound
const ProductGetOKCode int = 200
ProductGetOKCode is the HTTP code returned for type ProductGetOK
ProductGetServiceUnavailableCode is the HTTP code returned for type ProductGetServiceUnavailable
ProductGetUnauthorizedCode is the HTTP code returned for type ProductGetUnauthorized
const ProductGetUnprocessableEntityCode int = 422
ProductGetUnprocessableEntityCode is the HTTP code returned for type ProductGetUnprocessableEntity
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductFind ¶
type ProductFind struct { Context *middleware.Context Handler ProductFindHandler }
ProductFind swagger:route GET /productInventoryManagement/v3/product Product productFind
productFind (list) - retrieve product list with summary view
The Buyer requests a list of Products from the Seller based on filter criteria.
func NewProductFind ¶
func NewProductFind(ctx *middleware.Context, handler ProductFindHandler) *ProductFind
NewProductFind creates a new http.Handler for the product find operation
func (*ProductFind) ServeHTTP ¶
func (o *ProductFind) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ProductFindBadRequest ¶
type ProductFindBadRequest struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductFindBadRequest Bad Request
List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value
swagger:response productFindBadRequest
func NewProductFindBadRequest ¶
func NewProductFindBadRequest() *ProductFindBadRequest
NewProductFindBadRequest creates ProductFindBadRequest with default headers values
func (*ProductFindBadRequest) SetPayload ¶
func (o *ProductFindBadRequest) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product find bad request response
func (*ProductFindBadRequest) WithPayload ¶
func (o *ProductFindBadRequest) WithPayload(payload *models.ErrorRepresentation) *ProductFindBadRequest
WithPayload adds the payload to the product find bad request response
func (*ProductFindBadRequest) WriteResponse ¶
func (o *ProductFindBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductFindForbidden ¶
type ProductFindForbidden struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductFindForbidden Forbidden
List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests
swagger:response productFindForbidden
func NewProductFindForbidden ¶
func NewProductFindForbidden() *ProductFindForbidden
NewProductFindForbidden creates ProductFindForbidden with default headers values
func (*ProductFindForbidden) SetPayload ¶
func (o *ProductFindForbidden) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product find forbidden response
func (*ProductFindForbidden) WithPayload ¶
func (o *ProductFindForbidden) WithPayload(payload *models.ErrorRepresentation) *ProductFindForbidden
WithPayload adds the payload to the product find forbidden response
func (*ProductFindForbidden) WriteResponse ¶
func (o *ProductFindForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductFindHandler ¶
type ProductFindHandler interface {
Handle(ProductFindParams, *models.Principal) middleware.Responder
}
ProductFindHandler interface for that can handle valid product find params
type ProductFindHandlerFunc ¶
type ProductFindHandlerFunc func(ProductFindParams, *models.Principal) middleware.Responder
ProductFindHandlerFunc turns a function with the right signature into a product find handler
func (ProductFindHandlerFunc) Handle ¶
func (fn ProductFindHandlerFunc) Handle(params ProductFindParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ProductFindNotFound ¶
type ProductFindNotFound struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductFindNotFound Not Found
List of supported error codes: - 60: Resource not found
swagger:response productFindNotFound
func NewProductFindNotFound ¶
func NewProductFindNotFound() *ProductFindNotFound
NewProductFindNotFound creates ProductFindNotFound with default headers values
func (*ProductFindNotFound) SetPayload ¶
func (o *ProductFindNotFound) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product find not found response
func (*ProductFindNotFound) WithPayload ¶
func (o *ProductFindNotFound) WithPayload(payload *models.ErrorRepresentation) *ProductFindNotFound
WithPayload adds the payload to the product find not found response
func (*ProductFindNotFound) WriteResponse ¶
func (o *ProductFindNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductFindOK ¶
type ProductFindOK struct { /*The number of resources retrieved in the response */ XResultCount string `json:"X-Result-Count"` /*The total number of matching resources */ XTotalCount string `json:"X-Total_Count"` /* In: Body */ Payload []*models.ProductSummary `json:"body,omitempty"` }
ProductFindOK Ok
swagger:response productFindOK
func NewProductFindOK ¶
func NewProductFindOK() *ProductFindOK
NewProductFindOK creates ProductFindOK with default headers values
func (*ProductFindOK) SetPayload ¶
func (o *ProductFindOK) SetPayload(payload []*models.ProductSummary)
SetPayload sets the payload to the product find o k response
func (*ProductFindOK) SetXResultCount ¶
func (o *ProductFindOK) SetXResultCount(xResultCount string)
SetXResultCount sets the xResultCount to the product find o k response
func (*ProductFindOK) SetXTotalCount ¶
func (o *ProductFindOK) SetXTotalCount(xTotalCount string)
SetXTotalCount sets the xTotalCount to the product find o k response
func (*ProductFindOK) WithPayload ¶
func (o *ProductFindOK) WithPayload(payload []*models.ProductSummary) *ProductFindOK
WithPayload adds the payload to the product find o k response
func (*ProductFindOK) WithXResultCount ¶
func (o *ProductFindOK) WithXResultCount(xResultCount string) *ProductFindOK
WithXResultCount adds the xResultCount to the product find o k response
func (*ProductFindOK) WithXTotalCount ¶
func (o *ProductFindOK) WithXTotalCount(xTotalCount string) *ProductFindOK
WithXTotalCount adds the xTotalCount to the product find o k response
func (*ProductFindOK) WriteResponse ¶
func (o *ProductFindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductFindParams ¶
type ProductFindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The Billing Account associated with the Product. In: query */ BillingAccountID *string /*Identifier of the party who role is buyer. In: query */ BuyerID *string /*A reference to the buyerProductId provided in the order In: query */ BuyerProductID *string /*A site identifier which is associated to the product In: query */ GeographicalSiteID *string /*Greater than the date that the last change affecting this Product was complet-ed In: query */ LastUpdateDateGt *strfmt.DateTime /*Less than date that the last change affecting this Product was completed In: query */ LastUpdateDateLt *strfmt.DateTime /*Requested number of resources to be provided in response requested by client In: query */ Limit *string /*Requested index for start of resources to be provided in response requested by client In: query */ Offset *string /*A reference to a product offering by id In: query */ ProductOfferingID *string /*Identifies Product Order(s) associated with the Product In: query */ ProductOrderID *string /*A reference to a product spec by id In: query */ ProductSpecificationID *string /*This criteria allows to retrieve all Product records with a Product Relationship to a specified Product. E.g. All Products related to Product with ID 5 In: query */ RelatedProductID *string /*Greater than the date that is the initial install date for the Product In: query */ StartDateGt *strfmt.DateTime /*Less than the date that is the initial install date for the Product In: query */ StartDateLt *strfmt.DateTime /*The status of the product In: query */ Status *string }
ProductFindParams contains all the bound params for the product find operation typically these are obtained from a http.Request
swagger:parameters productFind
func NewProductFindParams ¶
func NewProductFindParams() ProductFindParams
NewProductFindParams creates a new ProductFindParams object
There are no default values defined in the spec.
func (*ProductFindParams) BindRequest ¶
func (o *ProductFindParams) 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 NewProductFindParams() beforehand.
type ProductFindServiceUnavailable ¶
type ProductFindServiceUnavailable struct { models.ErrorRepresentation `json:"body,omitempty"` }Payload *
ProductFindServiceUnavailable Service Unavailable
swagger:response productFindServiceUnavailable
func NewProductFindServiceUnavailable ¶
func NewProductFindServiceUnavailable() *ProductFindServiceUnavailable
NewProductFindServiceUnavailable creates ProductFindServiceUnavailable with default headers values
func (*ProductFindServiceUnavailable) SetPayload ¶
func (o *ProductFindServiceUnavailable) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product find service unavailable response
func (*ProductFindServiceUnavailable) WithPayload ¶
func (o *ProductFindServiceUnavailable) WithPayload(payload *models.ErrorRepresentation) *ProductFindServiceUnavailable
WithPayload adds the payload to the product find service unavailable response
func (*ProductFindServiceUnavailable) WriteResponse ¶
func (o *ProductFindServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductFindURL ¶
type ProductFindURL struct { BillingAccountID *string BuyerID *string BuyerProductID *string GeographicalSiteID *string LastUpdateDateGt *strfmt.DateTime LastUpdateDateLt *strfmt.DateTime Limit *string Offset *string ProductOfferingID *string ProductOrderID *string ProductSpecificationID *string RelatedProductID *string StartDateGt *strfmt.DateTime StartDateLt *strfmt.DateTime Status *string // contains filtered or unexported fields }
ProductFindURL generates an URL for the product find operation
func (*ProductFindURL) Build ¶
func (o *ProductFindURL) Build() (*url.URL, error)
Build a url path and query string
func (*ProductFindURL) BuildFull ¶
func (o *ProductFindURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ProductFindURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ProductFindURL) SetBasePath ¶
func (o *ProductFindURL) 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 (*ProductFindURL) String ¶
func (o *ProductFindURL) String() string
String returns the string representation of the path with query string
func (*ProductFindURL) StringFull ¶
func (o *ProductFindURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ProductFindURL) WithBasePath ¶
func (o *ProductFindURL) WithBasePath(bp string) *ProductFindURL
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 ProductFindUnauthorized ¶
type ProductFindUnauthorized struct { models.ErrorRepresentation `json:"body,omitempty"` }Payload *
ProductFindUnauthorized Unauthorized
List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials
swagger:response productFindUnauthorized
func NewProductFindUnauthorized ¶
func NewProductFindUnauthorized() *ProductFindUnauthorized
NewProductFindUnauthorized creates ProductFindUnauthorized with default headers values
func (*ProductFindUnauthorized) SetPayload ¶
func (o *ProductFindUnauthorized) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product find unauthorized response
func (*ProductFindUnauthorized) WithPayload ¶
func (o *ProductFindUnauthorized) WithPayload(payload *models.ErrorRepresentation) *ProductFindUnauthorized
WithPayload adds the payload to the product find unauthorized response
func (*ProductFindUnauthorized) WriteResponse ¶
func (o *ProductFindUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductFindUnprocessableEntity ¶
type ProductFindUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductFindUnprocessableEntity Unprocessable entity
Functional error
- code: 100
message: Too many records retrieved - please restrict requested parameter value(s) description:
- code: 103
message: Incomplete request - If place.id is filled, place.type must be filled description:
- code: 104
message: Incomplete request - If place.type is filled, place.id must be filled description:
- code: 105
message: Incomplete request - If partyRole.role is filled, partyRole.relatedPartyId must be filled description:
- code: 106
message: Incomplete request - If partyRole.relatedPartyId is filled, partyRole.role must be filled description:
swagger:response productFindUnprocessableEntity
func NewProductFindUnprocessableEntity ¶
func NewProductFindUnprocessableEntity() *ProductFindUnprocessableEntity
NewProductFindUnprocessableEntity creates ProductFindUnprocessableEntity with default headers values
func (*ProductFindUnprocessableEntity) SetPayload ¶
func (o *ProductFindUnprocessableEntity) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product find unprocessable entity response
func (*ProductFindUnprocessableEntity) WithPayload ¶
func (o *ProductFindUnprocessableEntity) WithPayload(payload *models.ErrorRepresentation) *ProductFindUnprocessableEntity
WithPayload adds the payload to the product find unprocessable entity response
func (*ProductFindUnprocessableEntity) WriteResponse ¶
func (o *ProductFindUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductGet ¶
type ProductGet struct { Context *middleware.Context Handler ProductGetHandler }
ProductGet swagger:route GET /productInventoryManagement/v3/product/{ProductId} Product productGet
productGet (by id) - retrieve one product with all information
The Buyer requests the details associated with a single Product based on a Seller Product Identifier.
func NewProductGet ¶
func NewProductGet(ctx *middleware.Context, handler ProductGetHandler) *ProductGet
NewProductGet creates a new http.Handler for the product get operation
func (*ProductGet) ServeHTTP ¶
func (o *ProductGet) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ProductGetBadRequest ¶
type ProductGetBadRequest struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductGetBadRequest Bad Request
List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value
swagger:response productGetBadRequest
func NewProductGetBadRequest ¶
func NewProductGetBadRequest() *ProductGetBadRequest
NewProductGetBadRequest creates ProductGetBadRequest with default headers values
func (*ProductGetBadRequest) SetPayload ¶
func (o *ProductGetBadRequest) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product get bad request response
func (*ProductGetBadRequest) WithPayload ¶
func (o *ProductGetBadRequest) WithPayload(payload *models.ErrorRepresentation) *ProductGetBadRequest
WithPayload adds the payload to the product get bad request response
func (*ProductGetBadRequest) WriteResponse ¶
func (o *ProductGetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductGetForbidden ¶
type ProductGetForbidden struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductGetForbidden Forbidden
List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests
swagger:response productGetForbidden
func NewProductGetForbidden ¶
func NewProductGetForbidden() *ProductGetForbidden
NewProductGetForbidden creates ProductGetForbidden with default headers values
func (*ProductGetForbidden) SetPayload ¶
func (o *ProductGetForbidden) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product get forbidden response
func (*ProductGetForbidden) WithPayload ¶
func (o *ProductGetForbidden) WithPayload(payload *models.ErrorRepresentation) *ProductGetForbidden
WithPayload adds the payload to the product get forbidden response
func (*ProductGetForbidden) WriteResponse ¶
func (o *ProductGetForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductGetHandler ¶
type ProductGetHandler interface {
Handle(ProductGetParams, *models.Principal) middleware.Responder
}
ProductGetHandler interface for that can handle valid product get params
type ProductGetHandlerFunc ¶
type ProductGetHandlerFunc func(ProductGetParams, *models.Principal) middleware.Responder
ProductGetHandlerFunc turns a function with the right signature into a product get handler
func (ProductGetHandlerFunc) Handle ¶
func (fn ProductGetHandlerFunc) Handle(params ProductGetParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ProductGetNotFound ¶
type ProductGetNotFound struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductGetNotFound Not Found
List of supported error codes: - 60: Resource not found
swagger:response productGetNotFound
func NewProductGetNotFound ¶
func NewProductGetNotFound() *ProductGetNotFound
NewProductGetNotFound creates ProductGetNotFound with default headers values
func (*ProductGetNotFound) SetPayload ¶
func (o *ProductGetNotFound) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product get not found response
func (*ProductGetNotFound) WithPayload ¶
func (o *ProductGetNotFound) WithPayload(payload *models.ErrorRepresentation) *ProductGetNotFound
WithPayload adds the payload to the product get not found response
func (*ProductGetNotFound) WriteResponse ¶
func (o *ProductGetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductGetOK ¶
ProductGetOK Ok
swagger:response productGetOK
func NewProductGetOK ¶
func NewProductGetOK() *ProductGetOK
NewProductGetOK creates ProductGetOK with default headers values
func (*ProductGetOK) SetPayload ¶
func (o *ProductGetOK) SetPayload(payload *models.Product)
SetPayload sets the payload to the product get o k response
func (*ProductGetOK) WithPayload ¶
func (o *ProductGetOK) WithPayload(payload *models.Product) *ProductGetOK
WithPayload adds the payload to the product get o k response
func (*ProductGetOK) WriteResponse ¶
func (o *ProductGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductGetParams ¶
type ProductGetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ProductID string }
ProductGetParams contains all the bound params for the product get operation typically these are obtained from a http.Request
swagger:parameters productGet
func NewProductGetParams ¶
func NewProductGetParams() ProductGetParams
NewProductGetParams creates a new ProductGetParams object
There are no default values defined in the spec.
func (*ProductGetParams) BindRequest ¶
func (o *ProductGetParams) 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 NewProductGetParams() beforehand.
type ProductGetServiceUnavailable ¶
type ProductGetServiceUnavailable struct { models.ErrorRepresentation `json:"body,omitempty"` }Payload *
ProductGetServiceUnavailable Service Unavailable
swagger:response productGetServiceUnavailable
func NewProductGetServiceUnavailable ¶
func NewProductGetServiceUnavailable() *ProductGetServiceUnavailable
NewProductGetServiceUnavailable creates ProductGetServiceUnavailable with default headers values
func (*ProductGetServiceUnavailable) SetPayload ¶
func (o *ProductGetServiceUnavailable) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product get service unavailable response
func (*ProductGetServiceUnavailable) WithPayload ¶
func (o *ProductGetServiceUnavailable) WithPayload(payload *models.ErrorRepresentation) *ProductGetServiceUnavailable
WithPayload adds the payload to the product get service unavailable response
func (*ProductGetServiceUnavailable) WriteResponse ¶
func (o *ProductGetServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductGetURL ¶
type ProductGetURL struct { ProductID string // contains filtered or unexported fields }
ProductGetURL generates an URL for the product get operation
func (*ProductGetURL) Build ¶
func (o *ProductGetURL) Build() (*url.URL, error)
Build a url path and query string
func (*ProductGetURL) BuildFull ¶
func (o *ProductGetURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ProductGetURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ProductGetURL) SetBasePath ¶
func (o *ProductGetURL) 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 (*ProductGetURL) String ¶
func (o *ProductGetURL) String() string
String returns the string representation of the path with query string
func (*ProductGetURL) StringFull ¶
func (o *ProductGetURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ProductGetURL) WithBasePath ¶
func (o *ProductGetURL) WithBasePath(bp string) *ProductGetURL
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 ProductGetUnauthorized ¶
type ProductGetUnauthorized struct { models.ErrorRepresentation `json:"body,omitempty"` }Payload *
ProductGetUnauthorized Unauthorized
List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials
swagger:response productGetUnauthorized
func NewProductGetUnauthorized ¶
func NewProductGetUnauthorized() *ProductGetUnauthorized
NewProductGetUnauthorized creates ProductGetUnauthorized with default headers values
func (*ProductGetUnauthorized) SetPayload ¶
func (o *ProductGetUnauthorized) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product get unauthorized response
func (*ProductGetUnauthorized) WithPayload ¶
func (o *ProductGetUnauthorized) WithPayload(payload *models.ErrorRepresentation) *ProductGetUnauthorized
WithPayload adds the payload to the product get unauthorized response
func (*ProductGetUnauthorized) WriteResponse ¶
func (o *ProductGetUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProductGetUnprocessableEntity ¶
type ProductGetUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorRepresentation `json:"body,omitempty"` }
ProductGetUnprocessableEntity Unprocessable entity
Functional error ¶
swagger:response productGetUnprocessableEntity
func NewProductGetUnprocessableEntity ¶
func NewProductGetUnprocessableEntity() *ProductGetUnprocessableEntity
NewProductGetUnprocessableEntity creates ProductGetUnprocessableEntity with default headers values
func (*ProductGetUnprocessableEntity) SetPayload ¶
func (o *ProductGetUnprocessableEntity) SetPayload(payload *models.ErrorRepresentation)
SetPayload sets the payload to the product get unprocessable entity response
func (*ProductGetUnprocessableEntity) WithPayload ¶
func (o *ProductGetUnprocessableEntity) WithPayload(payload *models.ErrorRepresentation) *ProductGetUnprocessableEntity
WithPayload adds the payload to the product get unprocessable entity response
func (*ProductGetUnprocessableEntity) WriteResponse ¶
func (o *ProductGetUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client