Documentation ¶
Index ¶
- type Client
- func (a *Client) ProductFind(params *ProductFindParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ProductFindOK, error)
- func (a *Client) ProductGet(params *ProductGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ProductGetOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ProductFindBadRequest
- type ProductFindForbidden
- type ProductFindNotFound
- type ProductFindOK
- type ProductFindParams
- func (o *ProductFindParams) SetBillingAccountID(billingAccountID *string)
- func (o *ProductFindParams) SetBuyerID(buyerID *string)
- func (o *ProductFindParams) SetBuyerProductID(buyerProductID *string)
- func (o *ProductFindParams) SetContext(ctx context.Context)
- func (o *ProductFindParams) SetDefaults()
- func (o *ProductFindParams) SetGeographicalSiteID(geographicalSiteID *string)
- func (o *ProductFindParams) SetHTTPClient(client *http.Client)
- func (o *ProductFindParams) SetLastUpdateDateGt(lastUpdateDateGt *strfmt.DateTime)
- func (o *ProductFindParams) SetLastUpdateDateLt(lastUpdateDateLt *strfmt.DateTime)
- func (o *ProductFindParams) SetLimit(limit *string)
- func (o *ProductFindParams) SetOffset(offset *string)
- func (o *ProductFindParams) SetProductOfferingID(productOfferingID *string)
- func (o *ProductFindParams) SetProductOrderID(productOrderID *string)
- func (o *ProductFindParams) SetProductSpecificationID(productSpecificationID *string)
- func (o *ProductFindParams) SetRelatedProductID(relatedProductID *string)
- func (o *ProductFindParams) SetStartDateGt(startDateGt *strfmt.DateTime)
- func (o *ProductFindParams) SetStartDateLt(startDateLt *strfmt.DateTime)
- func (o *ProductFindParams) SetStatus(status *string)
- func (o *ProductFindParams) SetTimeout(timeout time.Duration)
- func (o *ProductFindParams) WithBillingAccountID(billingAccountID *string) *ProductFindParams
- func (o *ProductFindParams) WithBuyerID(buyerID *string) *ProductFindParams
- func (o *ProductFindParams) WithBuyerProductID(buyerProductID *string) *ProductFindParams
- func (o *ProductFindParams) WithContext(ctx context.Context) *ProductFindParams
- func (o *ProductFindParams) WithDefaults() *ProductFindParams
- func (o *ProductFindParams) WithGeographicalSiteID(geographicalSiteID *string) *ProductFindParams
- func (o *ProductFindParams) WithHTTPClient(client *http.Client) *ProductFindParams
- func (o *ProductFindParams) WithLastUpdateDateGt(lastUpdateDateGt *strfmt.DateTime) *ProductFindParams
- func (o *ProductFindParams) WithLastUpdateDateLt(lastUpdateDateLt *strfmt.DateTime) *ProductFindParams
- func (o *ProductFindParams) WithLimit(limit *string) *ProductFindParams
- func (o *ProductFindParams) WithOffset(offset *string) *ProductFindParams
- func (o *ProductFindParams) WithProductOfferingID(productOfferingID *string) *ProductFindParams
- func (o *ProductFindParams) WithProductOrderID(productOrderID *string) *ProductFindParams
- func (o *ProductFindParams) WithProductSpecificationID(productSpecificationID *string) *ProductFindParams
- func (o *ProductFindParams) WithRelatedProductID(relatedProductID *string) *ProductFindParams
- func (o *ProductFindParams) WithStartDateGt(startDateGt *strfmt.DateTime) *ProductFindParams
- func (o *ProductFindParams) WithStartDateLt(startDateLt *strfmt.DateTime) *ProductFindParams
- func (o *ProductFindParams) WithStatus(status *string) *ProductFindParams
- func (o *ProductFindParams) WithTimeout(timeout time.Duration) *ProductFindParams
- func (o *ProductFindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProductFindReader
- type ProductFindServiceUnavailable
- type ProductFindUnauthorized
- type ProductFindUnprocessableEntity
- type ProductGetBadRequest
- type ProductGetForbidden
- type ProductGetNotFound
- type ProductGetOK
- type ProductGetParams
- func (o *ProductGetParams) SetContext(ctx context.Context)
- func (o *ProductGetParams) SetDefaults()
- func (o *ProductGetParams) SetHTTPClient(client *http.Client)
- func (o *ProductGetParams) SetProductID(productID string)
- func (o *ProductGetParams) SetTimeout(timeout time.Duration)
- func (o *ProductGetParams) WithContext(ctx context.Context) *ProductGetParams
- func (o *ProductGetParams) WithDefaults() *ProductGetParams
- func (o *ProductGetParams) WithHTTPClient(client *http.Client) *ProductGetParams
- func (o *ProductGetParams) WithProductID(productID string) *ProductGetParams
- func (o *ProductGetParams) WithTimeout(timeout time.Duration) *ProductGetParams
- func (o *ProductGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProductGetReader
- type ProductGetServiceUnavailable
- type ProductGetUnauthorized
- type ProductGetUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for product API
func (*Client) ProductFind ¶
func (a *Client) ProductFind(params *ProductFindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductFindOK, error)
ProductFind products find list retrieve product list with summary view
The Buyer requests a list of Products from the Seller based on filter criteria.
func (*Client) ProductGet ¶
func (a *Client) ProductGet(params *ProductGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductGetOK, error)
ProductGet products get 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 (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ProductFind(params *ProductFindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductFindOK, error) ProductGet(params *ProductGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductGetOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new product API client.
type ProductFindBadRequest ¶
type ProductFindBadRequest struct {
Payload *models.ErrorRepresentation
}
ProductFindBadRequest describes a response with status code 400, with default header values. 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
func NewProductFindBadRequest ¶
func NewProductFindBadRequest() *ProductFindBadRequest
NewProductFindBadRequest creates a ProductFindBadRequest with default headers values
func (*ProductFindBadRequest) Error ¶
func (o *ProductFindBadRequest) Error() string
func (*ProductFindBadRequest) GetPayload ¶
func (o *ProductFindBadRequest) GetPayload() *models.ErrorRepresentation
type ProductFindForbidden ¶
type ProductFindForbidden struct {
Payload *models.ErrorRepresentation
}
ProductFindForbidden describes a response with status code 403, with default header values. Forbidden
List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests
func NewProductFindForbidden ¶
func NewProductFindForbidden() *ProductFindForbidden
NewProductFindForbidden creates a ProductFindForbidden with default headers values
func (*ProductFindForbidden) Error ¶
func (o *ProductFindForbidden) Error() string
func (*ProductFindForbidden) GetPayload ¶
func (o *ProductFindForbidden) GetPayload() *models.ErrorRepresentation
type ProductFindNotFound ¶
type ProductFindNotFound struct {
Payload *models.ErrorRepresentation
}
ProductFindNotFound describes a response with status code 404, with default header values. Not Found
List of supported error codes: - 60: Resource not found
func NewProductFindNotFound ¶
func NewProductFindNotFound() *ProductFindNotFound
NewProductFindNotFound creates a ProductFindNotFound with default headers values
func (*ProductFindNotFound) Error ¶
func (o *ProductFindNotFound) Error() string
func (*ProductFindNotFound) GetPayload ¶
func (o *ProductFindNotFound) GetPayload() *models.ErrorRepresentation
type ProductFindOK ¶
type ProductFindOK struct { /* The number of resources retrieved in the response */ XResultCount string /* The total number of matching resources */ XTotalCount string Payload []*models.ProductSummary }
ProductFindOK describes a response with status code 200, with default header values.
Ok
func NewProductFindOK ¶
func NewProductFindOK() *ProductFindOK
NewProductFindOK creates a ProductFindOK with default headers values
func (*ProductFindOK) Error ¶
func (o *ProductFindOK) Error() string
func (*ProductFindOK) GetPayload ¶
func (o *ProductFindOK) GetPayload() []*models.ProductSummary
type ProductFindParams ¶
type ProductFindParams struct { /* BillingAccountID. The Billing Account associated with the Product. */ BillingAccountID *string /* BuyerID. Identifier of the party who role is buyer. */ BuyerID *string /* BuyerProductID. A reference to the buyerProductId provided in the order */ BuyerProductID *string /* GeographicalSiteID. A site identifier which is associated to the product */ GeographicalSiteID *string /* LastUpdateDateGt. Greater than the date that the last change affecting this Product was complet-ed Format: date-time */ LastUpdateDateGt *strfmt.DateTime /* LastUpdateDateLt. Less than date that the last change affecting this Product was completed Format: date-time */ LastUpdateDateLt *strfmt.DateTime /* Limit. Requested number of resources to be provided in response requested by client */ Limit *string /* Offset. Requested index for start of resources to be provided in response requested by client */ Offset *string /* ProductOfferingID. A reference to a product offering by id */ ProductOfferingID *string /* ProductOrderID. Identifies Product Order(s) associated with the Product */ ProductOrderID *string /* ProductSpecificationID. A reference to a product spec by id */ ProductSpecificationID *string /* RelatedProductID. 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 */ RelatedProductID *string /* StartDateGt. Greater than the date that is the initial install date for the Product Format: date-time */ StartDateGt *strfmt.DateTime /* StartDateLt. Less than the date that is the initial install date for the Product Format: date-time */ StartDateLt *strfmt.DateTime /* Status. The status of the product */ Status *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ProductFindParams contains all the parameters to send to the API endpoint
for the product find operation. Typically these are written to a http.Request.
func NewProductFindParams ¶
func NewProductFindParams() *ProductFindParams
NewProductFindParams creates a new ProductFindParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewProductFindParamsWithContext ¶
func NewProductFindParamsWithContext(ctx context.Context) *ProductFindParams
NewProductFindParamsWithContext creates a new ProductFindParams object with the ability to set a context for a request.
func NewProductFindParamsWithHTTPClient ¶
func NewProductFindParamsWithHTTPClient(client *http.Client) *ProductFindParams
NewProductFindParamsWithHTTPClient creates a new ProductFindParams object with the ability to set a custom HTTPClient for a request.
func NewProductFindParamsWithTimeout ¶
func NewProductFindParamsWithTimeout(timeout time.Duration) *ProductFindParams
NewProductFindParamsWithTimeout creates a new ProductFindParams object with the ability to set a timeout on a request.
func (*ProductFindParams) SetBillingAccountID ¶
func (o *ProductFindParams) SetBillingAccountID(billingAccountID *string)
SetBillingAccountID adds the billingAccountId to the product find params
func (*ProductFindParams) SetBuyerID ¶
func (o *ProductFindParams) SetBuyerID(buyerID *string)
SetBuyerID adds the buyerId to the product find params
func (*ProductFindParams) SetBuyerProductID ¶
func (o *ProductFindParams) SetBuyerProductID(buyerProductID *string)
SetBuyerProductID adds the buyerProductId to the product find params
func (*ProductFindParams) SetContext ¶
func (o *ProductFindParams) SetContext(ctx context.Context)
SetContext adds the context to the product find params
func (*ProductFindParams) SetDefaults ¶
func (o *ProductFindParams) SetDefaults()
SetDefaults hydrates default values in the product find params (not the query body).
All values with no default are reset to their zero value.
func (*ProductFindParams) SetGeographicalSiteID ¶
func (o *ProductFindParams) SetGeographicalSiteID(geographicalSiteID *string)
SetGeographicalSiteID adds the geographicalSiteId to the product find params
func (*ProductFindParams) SetHTTPClient ¶
func (o *ProductFindParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the product find params
func (*ProductFindParams) SetLastUpdateDateGt ¶
func (o *ProductFindParams) SetLastUpdateDateGt(lastUpdateDateGt *strfmt.DateTime)
SetLastUpdateDateGt adds the lastUpdateDateGt to the product find params
func (*ProductFindParams) SetLastUpdateDateLt ¶
func (o *ProductFindParams) SetLastUpdateDateLt(lastUpdateDateLt *strfmt.DateTime)
SetLastUpdateDateLt adds the lastUpdateDateLt to the product find params
func (*ProductFindParams) SetLimit ¶
func (o *ProductFindParams) SetLimit(limit *string)
SetLimit adds the limit to the product find params
func (*ProductFindParams) SetOffset ¶
func (o *ProductFindParams) SetOffset(offset *string)
SetOffset adds the offset to the product find params
func (*ProductFindParams) SetProductOfferingID ¶
func (o *ProductFindParams) SetProductOfferingID(productOfferingID *string)
SetProductOfferingID adds the productOfferingId to the product find params
func (*ProductFindParams) SetProductOrderID ¶
func (o *ProductFindParams) SetProductOrderID(productOrderID *string)
SetProductOrderID adds the productOrderId to the product find params
func (*ProductFindParams) SetProductSpecificationID ¶
func (o *ProductFindParams) SetProductSpecificationID(productSpecificationID *string)
SetProductSpecificationID adds the productSpecificationId to the product find params
func (*ProductFindParams) SetRelatedProductID ¶
func (o *ProductFindParams) SetRelatedProductID(relatedProductID *string)
SetRelatedProductID adds the relatedProductId to the product find params
func (*ProductFindParams) SetStartDateGt ¶
func (o *ProductFindParams) SetStartDateGt(startDateGt *strfmt.DateTime)
SetStartDateGt adds the startDateGt to the product find params
func (*ProductFindParams) SetStartDateLt ¶
func (o *ProductFindParams) SetStartDateLt(startDateLt *strfmt.DateTime)
SetStartDateLt adds the startDateLt to the product find params
func (*ProductFindParams) SetStatus ¶
func (o *ProductFindParams) SetStatus(status *string)
SetStatus adds the status to the product find params
func (*ProductFindParams) SetTimeout ¶
func (o *ProductFindParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the product find params
func (*ProductFindParams) WithBillingAccountID ¶
func (o *ProductFindParams) WithBillingAccountID(billingAccountID *string) *ProductFindParams
WithBillingAccountID adds the billingAccountID to the product find params
func (*ProductFindParams) WithBuyerID ¶
func (o *ProductFindParams) WithBuyerID(buyerID *string) *ProductFindParams
WithBuyerID adds the buyerID to the product find params
func (*ProductFindParams) WithBuyerProductID ¶
func (o *ProductFindParams) WithBuyerProductID(buyerProductID *string) *ProductFindParams
WithBuyerProductID adds the buyerProductID to the product find params
func (*ProductFindParams) WithContext ¶
func (o *ProductFindParams) WithContext(ctx context.Context) *ProductFindParams
WithContext adds the context to the product find params
func (*ProductFindParams) WithDefaults ¶
func (o *ProductFindParams) WithDefaults() *ProductFindParams
WithDefaults hydrates default values in the product find params (not the query body).
All values with no default are reset to their zero value.
func (*ProductFindParams) WithGeographicalSiteID ¶
func (o *ProductFindParams) WithGeographicalSiteID(geographicalSiteID *string) *ProductFindParams
WithGeographicalSiteID adds the geographicalSiteID to the product find params
func (*ProductFindParams) WithHTTPClient ¶
func (o *ProductFindParams) WithHTTPClient(client *http.Client) *ProductFindParams
WithHTTPClient adds the HTTPClient to the product find params
func (*ProductFindParams) WithLastUpdateDateGt ¶
func (o *ProductFindParams) WithLastUpdateDateGt(lastUpdateDateGt *strfmt.DateTime) *ProductFindParams
WithLastUpdateDateGt adds the lastUpdateDateGt to the product find params
func (*ProductFindParams) WithLastUpdateDateLt ¶
func (o *ProductFindParams) WithLastUpdateDateLt(lastUpdateDateLt *strfmt.DateTime) *ProductFindParams
WithLastUpdateDateLt adds the lastUpdateDateLt to the product find params
func (*ProductFindParams) WithLimit ¶
func (o *ProductFindParams) WithLimit(limit *string) *ProductFindParams
WithLimit adds the limit to the product find params
func (*ProductFindParams) WithOffset ¶
func (o *ProductFindParams) WithOffset(offset *string) *ProductFindParams
WithOffset adds the offset to the product find params
func (*ProductFindParams) WithProductOfferingID ¶
func (o *ProductFindParams) WithProductOfferingID(productOfferingID *string) *ProductFindParams
WithProductOfferingID adds the productOfferingID to the product find params
func (*ProductFindParams) WithProductOrderID ¶
func (o *ProductFindParams) WithProductOrderID(productOrderID *string) *ProductFindParams
WithProductOrderID adds the productOrderID to the product find params
func (*ProductFindParams) WithProductSpecificationID ¶
func (o *ProductFindParams) WithProductSpecificationID(productSpecificationID *string) *ProductFindParams
WithProductSpecificationID adds the productSpecificationID to the product find params
func (*ProductFindParams) WithRelatedProductID ¶
func (o *ProductFindParams) WithRelatedProductID(relatedProductID *string) *ProductFindParams
WithRelatedProductID adds the relatedProductID to the product find params
func (*ProductFindParams) WithStartDateGt ¶
func (o *ProductFindParams) WithStartDateGt(startDateGt *strfmt.DateTime) *ProductFindParams
WithStartDateGt adds the startDateGt to the product find params
func (*ProductFindParams) WithStartDateLt ¶
func (o *ProductFindParams) WithStartDateLt(startDateLt *strfmt.DateTime) *ProductFindParams
WithStartDateLt adds the startDateLt to the product find params
func (*ProductFindParams) WithStatus ¶
func (o *ProductFindParams) WithStatus(status *string) *ProductFindParams
WithStatus adds the status to the product find params
func (*ProductFindParams) WithTimeout ¶
func (o *ProductFindParams) WithTimeout(timeout time.Duration) *ProductFindParams
WithTimeout adds the timeout to the product find params
func (*ProductFindParams) WriteToRequest ¶
func (o *ProductFindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ProductFindReader ¶
type ProductFindReader struct {
// contains filtered or unexported fields
}
ProductFindReader is a Reader for the ProductFind structure.
func (*ProductFindReader) ReadResponse ¶
func (o *ProductFindReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ProductFindServiceUnavailable ¶
type ProductFindServiceUnavailable struct {
}ProductFindServiceUnavailable describes a response with status code 503, with default header values.
Service Unavailable
func NewProductFindServiceUnavailable ¶
func NewProductFindServiceUnavailable() *ProductFindServiceUnavailable
NewProductFindServiceUnavailable creates a ProductFindServiceUnavailable with default headers values
func (*ProductFindServiceUnavailable) Error ¶
func (o *ProductFindServiceUnavailable) Error() string
func (*ProductFindServiceUnavailable) GetPayload ¶
func (o *ProductFindServiceUnavailable) GetPayload() *models.ErrorRepresentation
type ProductFindUnauthorized ¶
type ProductFindUnauthorized struct {
}ProductFindUnauthorized describes a response with status code 401, with default header values. Unauthorized
List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials
func NewProductFindUnauthorized ¶
func NewProductFindUnauthorized() *ProductFindUnauthorized
NewProductFindUnauthorized creates a ProductFindUnauthorized with default headers values
func (*ProductFindUnauthorized) Error ¶
func (o *ProductFindUnauthorized) Error() string
func (*ProductFindUnauthorized) GetPayload ¶
func (o *ProductFindUnauthorized) GetPayload() *models.ErrorRepresentation
type ProductFindUnprocessableEntity ¶
type ProductFindUnprocessableEntity struct {
Payload *models.ErrorRepresentation
}
ProductFindUnprocessableEntity describes a response with status code 422, with default header values. 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:
func NewProductFindUnprocessableEntity ¶
func NewProductFindUnprocessableEntity() *ProductFindUnprocessableEntity
NewProductFindUnprocessableEntity creates a ProductFindUnprocessableEntity with default headers values
func (*ProductFindUnprocessableEntity) Error ¶
func (o *ProductFindUnprocessableEntity) Error() string
func (*ProductFindUnprocessableEntity) GetPayload ¶
func (o *ProductFindUnprocessableEntity) GetPayload() *models.ErrorRepresentation
type ProductGetBadRequest ¶
type ProductGetBadRequest struct {
Payload *models.ErrorRepresentation
}
ProductGetBadRequest describes a response with status code 400, with default header values. 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
func NewProductGetBadRequest ¶
func NewProductGetBadRequest() *ProductGetBadRequest
NewProductGetBadRequest creates a ProductGetBadRequest with default headers values
func (*ProductGetBadRequest) Error ¶
func (o *ProductGetBadRequest) Error() string
func (*ProductGetBadRequest) GetPayload ¶
func (o *ProductGetBadRequest) GetPayload() *models.ErrorRepresentation
type ProductGetForbidden ¶
type ProductGetForbidden struct {
Payload *models.ErrorRepresentation
}
ProductGetForbidden describes a response with status code 403, with default header values. Forbidden
List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests
func NewProductGetForbidden ¶
func NewProductGetForbidden() *ProductGetForbidden
NewProductGetForbidden creates a ProductGetForbidden with default headers values
func (*ProductGetForbidden) Error ¶
func (o *ProductGetForbidden) Error() string
func (*ProductGetForbidden) GetPayload ¶
func (o *ProductGetForbidden) GetPayload() *models.ErrorRepresentation
type ProductGetNotFound ¶
type ProductGetNotFound struct {
Payload *models.ErrorRepresentation
}
ProductGetNotFound describes a response with status code 404, with default header values. Not Found
List of supported error codes: - 60: Resource not found
func NewProductGetNotFound ¶
func NewProductGetNotFound() *ProductGetNotFound
NewProductGetNotFound creates a ProductGetNotFound with default headers values
func (*ProductGetNotFound) Error ¶
func (o *ProductGetNotFound) Error() string
func (*ProductGetNotFound) GetPayload ¶
func (o *ProductGetNotFound) GetPayload() *models.ErrorRepresentation
type ProductGetOK ¶
ProductGetOK describes a response with status code 200, with default header values.
Ok
func NewProductGetOK ¶
func NewProductGetOK() *ProductGetOK
NewProductGetOK creates a ProductGetOK with default headers values
func (*ProductGetOK) Error ¶
func (o *ProductGetOK) Error() string
func (*ProductGetOK) GetPayload ¶
func (o *ProductGetOK) GetPayload() *models.Product
type ProductGetParams ¶
type ProductGetParams struct { // ProductID. ProductID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ProductGetParams contains all the parameters to send to the API endpoint
for the product get operation. Typically these are written to a http.Request.
func NewProductGetParams ¶
func NewProductGetParams() *ProductGetParams
NewProductGetParams creates a new ProductGetParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewProductGetParamsWithContext ¶
func NewProductGetParamsWithContext(ctx context.Context) *ProductGetParams
NewProductGetParamsWithContext creates a new ProductGetParams object with the ability to set a context for a request.
func NewProductGetParamsWithHTTPClient ¶
func NewProductGetParamsWithHTTPClient(client *http.Client) *ProductGetParams
NewProductGetParamsWithHTTPClient creates a new ProductGetParams object with the ability to set a custom HTTPClient for a request.
func NewProductGetParamsWithTimeout ¶
func NewProductGetParamsWithTimeout(timeout time.Duration) *ProductGetParams
NewProductGetParamsWithTimeout creates a new ProductGetParams object with the ability to set a timeout on a request.
func (*ProductGetParams) SetContext ¶
func (o *ProductGetParams) SetContext(ctx context.Context)
SetContext adds the context to the product get params
func (*ProductGetParams) SetDefaults ¶
func (o *ProductGetParams) SetDefaults()
SetDefaults hydrates default values in the product get params (not the query body).
All values with no default are reset to their zero value.
func (*ProductGetParams) SetHTTPClient ¶
func (o *ProductGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the product get params
func (*ProductGetParams) SetProductID ¶
func (o *ProductGetParams) SetProductID(productID string)
SetProductID adds the productId to the product get params
func (*ProductGetParams) SetTimeout ¶
func (o *ProductGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the product get params
func (*ProductGetParams) WithContext ¶
func (o *ProductGetParams) WithContext(ctx context.Context) *ProductGetParams
WithContext adds the context to the product get params
func (*ProductGetParams) WithDefaults ¶
func (o *ProductGetParams) WithDefaults() *ProductGetParams
WithDefaults hydrates default values in the product get params (not the query body).
All values with no default are reset to their zero value.
func (*ProductGetParams) WithHTTPClient ¶
func (o *ProductGetParams) WithHTTPClient(client *http.Client) *ProductGetParams
WithHTTPClient adds the HTTPClient to the product get params
func (*ProductGetParams) WithProductID ¶
func (o *ProductGetParams) WithProductID(productID string) *ProductGetParams
WithProductID adds the productID to the product get params
func (*ProductGetParams) WithTimeout ¶
func (o *ProductGetParams) WithTimeout(timeout time.Duration) *ProductGetParams
WithTimeout adds the timeout to the product get params
func (*ProductGetParams) WriteToRequest ¶
func (o *ProductGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ProductGetReader ¶
type ProductGetReader struct {
// contains filtered or unexported fields
}
ProductGetReader is a Reader for the ProductGet structure.
func (*ProductGetReader) ReadResponse ¶
func (o *ProductGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ProductGetServiceUnavailable ¶
type ProductGetServiceUnavailable struct {
}ProductGetServiceUnavailable describes a response with status code 503, with default header values.
Service Unavailable
func NewProductGetServiceUnavailable ¶
func NewProductGetServiceUnavailable() *ProductGetServiceUnavailable
NewProductGetServiceUnavailable creates a ProductGetServiceUnavailable with default headers values
func (*ProductGetServiceUnavailable) Error ¶
func (o *ProductGetServiceUnavailable) Error() string
func (*ProductGetServiceUnavailable) GetPayload ¶
func (o *ProductGetServiceUnavailable) GetPayload() *models.ErrorRepresentation
type ProductGetUnauthorized ¶
type ProductGetUnauthorized struct {
}ProductGetUnauthorized describes a response with status code 401, with default header values. Unauthorized
List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials
func NewProductGetUnauthorized ¶
func NewProductGetUnauthorized() *ProductGetUnauthorized
NewProductGetUnauthorized creates a ProductGetUnauthorized with default headers values
func (*ProductGetUnauthorized) Error ¶
func (o *ProductGetUnauthorized) Error() string
func (*ProductGetUnauthorized) GetPayload ¶
func (o *ProductGetUnauthorized) GetPayload() *models.ErrorRepresentation
type ProductGetUnprocessableEntity ¶
type ProductGetUnprocessableEntity struct {
Payload *models.ErrorRepresentation
}
ProductGetUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable entity
Functional error
func NewProductGetUnprocessableEntity ¶
func NewProductGetUnprocessableEntity() *ProductGetUnprocessableEntity
NewProductGetUnprocessableEntity creates a ProductGetUnprocessableEntity with default headers values
func (*ProductGetUnprocessableEntity) Error ¶
func (o *ProductGetUnprocessableEntity) Error() string
func (*ProductGetUnprocessableEntity) GetPayload ¶
func (o *ProductGetUnprocessableEntity) GetPayload() *models.ErrorRepresentation