Documentation ¶
Index ¶
- type Client
- func (a *Client) ProductServiceCreateProduct(params *ProductServiceCreateProductParams, opts ...ClientOption) (*ProductServiceCreateProductOK, error)
- func (a *Client) ProductServiceGetProduct(params *ProductServiceGetProductParams, opts ...ClientOption) (*ProductServiceGetProductOK, error)
- func (a *Client) ProductServiceGetProduct2(params *ProductServiceGetProduct2Params, opts ...ClientOption) (*ProductServiceGetProduct2OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ProductServiceCreateProductDefault
- func (o *ProductServiceCreateProductDefault) Code() int
- func (o *ProductServiceCreateProductDefault) Error() string
- func (o *ProductServiceCreateProductDefault) GetPayload() *models.GooglerpcStatus
- func (o *ProductServiceCreateProductDefault) IsClientError() bool
- func (o *ProductServiceCreateProductDefault) IsCode(code int) bool
- func (o *ProductServiceCreateProductDefault) IsRedirect() bool
- func (o *ProductServiceCreateProductDefault) IsServerError() bool
- func (o *ProductServiceCreateProductDefault) IsSuccess() bool
- func (o *ProductServiceCreateProductDefault) String() string
- type ProductServiceCreateProductOK
- func (o *ProductServiceCreateProductOK) Code() int
- func (o *ProductServiceCreateProductOK) Error() string
- func (o *ProductServiceCreateProductOK) GetPayload() *models.V1CreateProductResponse
- func (o *ProductServiceCreateProductOK) IsClientError() bool
- func (o *ProductServiceCreateProductOK) IsCode(code int) bool
- func (o *ProductServiceCreateProductOK) IsRedirect() bool
- func (o *ProductServiceCreateProductOK) IsServerError() bool
- func (o *ProductServiceCreateProductOK) IsSuccess() bool
- func (o *ProductServiceCreateProductOK) String() string
- type ProductServiceCreateProductParams
- func NewProductServiceCreateProductParams() *ProductServiceCreateProductParams
- func NewProductServiceCreateProductParamsWithContext(ctx context.Context) *ProductServiceCreateProductParams
- func NewProductServiceCreateProductParamsWithHTTPClient(client *http.Client) *ProductServiceCreateProductParams
- func NewProductServiceCreateProductParamsWithTimeout(timeout time.Duration) *ProductServiceCreateProductParams
- func (o *ProductServiceCreateProductParams) SetBody(body *models.V1CreateProductRequest)
- func (o *ProductServiceCreateProductParams) SetContext(ctx context.Context)
- func (o *ProductServiceCreateProductParams) SetDefaults()
- func (o *ProductServiceCreateProductParams) SetHTTPClient(client *http.Client)
- func (o *ProductServiceCreateProductParams) SetTimeout(timeout time.Duration)
- func (o *ProductServiceCreateProductParams) WithBody(body *models.V1CreateProductRequest) *ProductServiceCreateProductParams
- func (o *ProductServiceCreateProductParams) WithContext(ctx context.Context) *ProductServiceCreateProductParams
- func (o *ProductServiceCreateProductParams) WithDefaults() *ProductServiceCreateProductParams
- func (o *ProductServiceCreateProductParams) WithHTTPClient(client *http.Client) *ProductServiceCreateProductParams
- func (o *ProductServiceCreateProductParams) WithTimeout(timeout time.Duration) *ProductServiceCreateProductParams
- func (o *ProductServiceCreateProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProductServiceCreateProductReader
- type ProductServiceGetProduct2Default
- func (o *ProductServiceGetProduct2Default) Code() int
- func (o *ProductServiceGetProduct2Default) Error() string
- func (o *ProductServiceGetProduct2Default) GetPayload() *models.GooglerpcStatus
- func (o *ProductServiceGetProduct2Default) IsClientError() bool
- func (o *ProductServiceGetProduct2Default) IsCode(code int) bool
- func (o *ProductServiceGetProduct2Default) IsRedirect() bool
- func (o *ProductServiceGetProduct2Default) IsServerError() bool
- func (o *ProductServiceGetProduct2Default) IsSuccess() bool
- func (o *ProductServiceGetProduct2Default) String() string
- type ProductServiceGetProduct2OK
- func (o *ProductServiceGetProduct2OK) Code() int
- func (o *ProductServiceGetProduct2OK) Error() string
- func (o *ProductServiceGetProduct2OK) GetPayload() *models.V1GetProductResponse
- func (o *ProductServiceGetProduct2OK) IsClientError() bool
- func (o *ProductServiceGetProduct2OK) IsCode(code int) bool
- func (o *ProductServiceGetProduct2OK) IsRedirect() bool
- func (o *ProductServiceGetProduct2OK) IsServerError() bool
- func (o *ProductServiceGetProduct2OK) IsSuccess() bool
- func (o *ProductServiceGetProduct2OK) String() string
- type ProductServiceGetProduct2Params
- func NewProductServiceGetProduct2Params() *ProductServiceGetProduct2Params
- func NewProductServiceGetProduct2ParamsWithContext(ctx context.Context) *ProductServiceGetProduct2Params
- func NewProductServiceGetProduct2ParamsWithHTTPClient(client *http.Client) *ProductServiceGetProduct2Params
- func NewProductServiceGetProduct2ParamsWithTimeout(timeout time.Duration) *ProductServiceGetProduct2Params
- func (o *ProductServiceGetProduct2Params) SetContext(ctx context.Context)
- func (o *ProductServiceGetProduct2Params) SetDefaults()
- func (o *ProductServiceGetProduct2Params) SetHTTPClient(client *http.Client)
- func (o *ProductServiceGetProduct2Params) SetID(id string)
- func (o *ProductServiceGetProduct2Params) SetOptionalID(optionalID *string)
- func (o *ProductServiceGetProduct2Params) SetTimeout(timeout time.Duration)
- func (o *ProductServiceGetProduct2Params) WithContext(ctx context.Context) *ProductServiceGetProduct2Params
- func (o *ProductServiceGetProduct2Params) WithDefaults() *ProductServiceGetProduct2Params
- func (o *ProductServiceGetProduct2Params) WithHTTPClient(client *http.Client) *ProductServiceGetProduct2Params
- func (o *ProductServiceGetProduct2Params) WithID(id string) *ProductServiceGetProduct2Params
- func (o *ProductServiceGetProduct2Params) WithOptionalID(optionalID *string) *ProductServiceGetProduct2Params
- func (o *ProductServiceGetProduct2Params) WithTimeout(timeout time.Duration) *ProductServiceGetProduct2Params
- func (o *ProductServiceGetProduct2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProductServiceGetProduct2Reader
- type ProductServiceGetProductDefault
- func (o *ProductServiceGetProductDefault) Code() int
- func (o *ProductServiceGetProductDefault) Error() string
- func (o *ProductServiceGetProductDefault) GetPayload() *models.GooglerpcStatus
- func (o *ProductServiceGetProductDefault) IsClientError() bool
- func (o *ProductServiceGetProductDefault) IsCode(code int) bool
- func (o *ProductServiceGetProductDefault) IsRedirect() bool
- func (o *ProductServiceGetProductDefault) IsServerError() bool
- func (o *ProductServiceGetProductDefault) IsSuccess() bool
- func (o *ProductServiceGetProductDefault) String() string
- type ProductServiceGetProductOK
- func (o *ProductServiceGetProductOK) Code() int
- func (o *ProductServiceGetProductOK) Error() string
- func (o *ProductServiceGetProductOK) GetPayload() *models.V1GetProductResponse
- func (o *ProductServiceGetProductOK) IsClientError() bool
- func (o *ProductServiceGetProductOK) IsCode(code int) bool
- func (o *ProductServiceGetProductOK) IsRedirect() bool
- func (o *ProductServiceGetProductOK) IsServerError() bool
- func (o *ProductServiceGetProductOK) IsSuccess() bool
- func (o *ProductServiceGetProductOK) String() string
- type ProductServiceGetProductParams
- func NewProductServiceGetProductParams() *ProductServiceGetProductParams
- func NewProductServiceGetProductParamsWithContext(ctx context.Context) *ProductServiceGetProductParams
- func NewProductServiceGetProductParamsWithHTTPClient(client *http.Client) *ProductServiceGetProductParams
- func NewProductServiceGetProductParamsWithTimeout(timeout time.Duration) *ProductServiceGetProductParams
- func (o *ProductServiceGetProductParams) SetBody(body *models.V1GetProductRequest)
- func (o *ProductServiceGetProductParams) SetContext(ctx context.Context)
- func (o *ProductServiceGetProductParams) SetDefaults()
- func (o *ProductServiceGetProductParams) SetHTTPClient(client *http.Client)
- func (o *ProductServiceGetProductParams) SetTimeout(timeout time.Duration)
- func (o *ProductServiceGetProductParams) WithBody(body *models.V1GetProductRequest) *ProductServiceGetProductParams
- func (o *ProductServiceGetProductParams) WithContext(ctx context.Context) *ProductServiceGetProductParams
- func (o *ProductServiceGetProductParams) WithDefaults() *ProductServiceGetProductParams
- func (o *ProductServiceGetProductParams) WithHTTPClient(client *http.Client) *ProductServiceGetProductParams
- func (o *ProductServiceGetProductParams) WithTimeout(timeout time.Duration) *ProductServiceGetProductParams
- func (o *ProductServiceGetProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProductServiceGetProductReader
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 service API
func (*Client) ProductServiceCreateProduct ¶
func (a *Client) ProductServiceCreateProduct(params *ProductServiceCreateProductParams, opts ...ClientOption) (*ProductServiceCreateProductOK, error)
ProductServiceCreateProduct プロダクトの作成s
プロダクトを作成します。
func (*Client) ProductServiceGetProduct ¶
func (a *Client) ProductServiceGetProduct(params *ProductServiceGetProductParams, opts ...ClientOption) (*ProductServiceGetProductOK, error)
ProductServiceGetProduct プロダクトの取得s
指定したプロダクトを取得します。
func (*Client) ProductServiceGetProduct2 ¶
func (a *Client) ProductServiceGetProduct2(params *ProductServiceGetProduct2Params, opts ...ClientOption) (*ProductServiceGetProduct2OK, error)
ProductServiceGetProduct2 プロダクトの取得s
指定したプロダクトを取得します。
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 { ProductServiceCreateProduct(params *ProductServiceCreateProductParams, opts ...ClientOption) (*ProductServiceCreateProductOK, error) ProductServiceGetProduct(params *ProductServiceGetProductParams, opts ...ClientOption) (*ProductServiceGetProductOK, error) ProductServiceGetProduct2(params *ProductServiceGetProduct2Params, opts ...ClientOption) (*ProductServiceGetProduct2OK, 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 service API client.
type ProductServiceCreateProductDefault ¶
type ProductServiceCreateProductDefault struct { Payload *models.GooglerpcStatus // contains filtered or unexported fields }
ProductServiceCreateProductDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewProductServiceCreateProductDefault ¶
func NewProductServiceCreateProductDefault(code int) *ProductServiceCreateProductDefault
NewProductServiceCreateProductDefault creates a ProductServiceCreateProductDefault with default headers values
func (*ProductServiceCreateProductDefault) Code ¶
func (o *ProductServiceCreateProductDefault) Code() int
Code gets the status code for the product service create product default response
func (*ProductServiceCreateProductDefault) Error ¶
func (o *ProductServiceCreateProductDefault) Error() string
func (*ProductServiceCreateProductDefault) GetPayload ¶
func (o *ProductServiceCreateProductDefault) GetPayload() *models.GooglerpcStatus
func (*ProductServiceCreateProductDefault) IsClientError ¶
func (o *ProductServiceCreateProductDefault) IsClientError() bool
IsClientError returns true when this product service create product default response has a 4xx status code
func (*ProductServiceCreateProductDefault) IsCode ¶
func (o *ProductServiceCreateProductDefault) IsCode(code int) bool
IsCode returns true when this product service create product default response a status code equal to that given
func (*ProductServiceCreateProductDefault) IsRedirect ¶
func (o *ProductServiceCreateProductDefault) IsRedirect() bool
IsRedirect returns true when this product service create product default response has a 3xx status code
func (*ProductServiceCreateProductDefault) IsServerError ¶
func (o *ProductServiceCreateProductDefault) IsServerError() bool
IsServerError returns true when this product service create product default response has a 5xx status code
func (*ProductServiceCreateProductDefault) IsSuccess ¶
func (o *ProductServiceCreateProductDefault) IsSuccess() bool
IsSuccess returns true when this product service create product default response has a 2xx status code
func (*ProductServiceCreateProductDefault) String ¶
func (o *ProductServiceCreateProductDefault) String() string
type ProductServiceCreateProductOK ¶
type ProductServiceCreateProductOK struct {
Payload *models.V1CreateProductResponse
}
ProductServiceCreateProductOK describes a response with status code 200, with default header values.
A successful response.
func NewProductServiceCreateProductOK ¶
func NewProductServiceCreateProductOK() *ProductServiceCreateProductOK
NewProductServiceCreateProductOK creates a ProductServiceCreateProductOK with default headers values
func (*ProductServiceCreateProductOK) Code ¶
func (o *ProductServiceCreateProductOK) Code() int
Code gets the status code for the product service create product o k response
func (*ProductServiceCreateProductOK) Error ¶
func (o *ProductServiceCreateProductOK) Error() string
func (*ProductServiceCreateProductOK) GetPayload ¶
func (o *ProductServiceCreateProductOK) GetPayload() *models.V1CreateProductResponse
func (*ProductServiceCreateProductOK) IsClientError ¶
func (o *ProductServiceCreateProductOK) IsClientError() bool
IsClientError returns true when this product service create product o k response has a 4xx status code
func (*ProductServiceCreateProductOK) IsCode ¶
func (o *ProductServiceCreateProductOK) IsCode(code int) bool
IsCode returns true when this product service create product o k response a status code equal to that given
func (*ProductServiceCreateProductOK) IsRedirect ¶
func (o *ProductServiceCreateProductOK) IsRedirect() bool
IsRedirect returns true when this product service create product o k response has a 3xx status code
func (*ProductServiceCreateProductOK) IsServerError ¶
func (o *ProductServiceCreateProductOK) IsServerError() bool
IsServerError returns true when this product service create product o k response has a 5xx status code
func (*ProductServiceCreateProductOK) IsSuccess ¶
func (o *ProductServiceCreateProductOK) IsSuccess() bool
IsSuccess returns true when this product service create product o k response has a 2xx status code
func (*ProductServiceCreateProductOK) String ¶
func (o *ProductServiceCreateProductOK) String() string
type ProductServiceCreateProductParams ¶
type ProductServiceCreateProductParams struct { // Body. Body *models.V1CreateProductRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ProductServiceCreateProductParams contains all the parameters to send to the API endpoint
for the product service create product operation. Typically these are written to a http.Request.
func NewProductServiceCreateProductParams ¶
func NewProductServiceCreateProductParams() *ProductServiceCreateProductParams
NewProductServiceCreateProductParams creates a new ProductServiceCreateProductParams 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 NewProductServiceCreateProductParamsWithContext ¶
func NewProductServiceCreateProductParamsWithContext(ctx context.Context) *ProductServiceCreateProductParams
NewProductServiceCreateProductParamsWithContext creates a new ProductServiceCreateProductParams object with the ability to set a context for a request.
func NewProductServiceCreateProductParamsWithHTTPClient ¶
func NewProductServiceCreateProductParamsWithHTTPClient(client *http.Client) *ProductServiceCreateProductParams
NewProductServiceCreateProductParamsWithHTTPClient creates a new ProductServiceCreateProductParams object with the ability to set a custom HTTPClient for a request.
func NewProductServiceCreateProductParamsWithTimeout ¶
func NewProductServiceCreateProductParamsWithTimeout(timeout time.Duration) *ProductServiceCreateProductParams
NewProductServiceCreateProductParamsWithTimeout creates a new ProductServiceCreateProductParams object with the ability to set a timeout on a request.
func (*ProductServiceCreateProductParams) SetBody ¶
func (o *ProductServiceCreateProductParams) SetBody(body *models.V1CreateProductRequest)
SetBody adds the body to the product service create product params
func (*ProductServiceCreateProductParams) SetContext ¶
func (o *ProductServiceCreateProductParams) SetContext(ctx context.Context)
SetContext adds the context to the product service create product params
func (*ProductServiceCreateProductParams) SetDefaults ¶
func (o *ProductServiceCreateProductParams) SetDefaults()
SetDefaults hydrates default values in the product service create product params (not the query body).
All values with no default are reset to their zero value.
func (*ProductServiceCreateProductParams) SetHTTPClient ¶
func (o *ProductServiceCreateProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the product service create product params
func (*ProductServiceCreateProductParams) SetTimeout ¶
func (o *ProductServiceCreateProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the product service create product params
func (*ProductServiceCreateProductParams) WithBody ¶
func (o *ProductServiceCreateProductParams) WithBody(body *models.V1CreateProductRequest) *ProductServiceCreateProductParams
WithBody adds the body to the product service create product params
func (*ProductServiceCreateProductParams) WithContext ¶
func (o *ProductServiceCreateProductParams) WithContext(ctx context.Context) *ProductServiceCreateProductParams
WithContext adds the context to the product service create product params
func (*ProductServiceCreateProductParams) WithDefaults ¶
func (o *ProductServiceCreateProductParams) WithDefaults() *ProductServiceCreateProductParams
WithDefaults hydrates default values in the product service create product params (not the query body).
All values with no default are reset to their zero value.
func (*ProductServiceCreateProductParams) WithHTTPClient ¶
func (o *ProductServiceCreateProductParams) WithHTTPClient(client *http.Client) *ProductServiceCreateProductParams
WithHTTPClient adds the HTTPClient to the product service create product params
func (*ProductServiceCreateProductParams) WithTimeout ¶
func (o *ProductServiceCreateProductParams) WithTimeout(timeout time.Duration) *ProductServiceCreateProductParams
WithTimeout adds the timeout to the product service create product params
func (*ProductServiceCreateProductParams) WriteToRequest ¶
func (o *ProductServiceCreateProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ProductServiceCreateProductReader ¶
type ProductServiceCreateProductReader struct {
// contains filtered or unexported fields
}
ProductServiceCreateProductReader is a Reader for the ProductServiceCreateProduct structure.
func (*ProductServiceCreateProductReader) ReadResponse ¶
func (o *ProductServiceCreateProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ProductServiceGetProduct2Default ¶
type ProductServiceGetProduct2Default struct { Payload *models.GooglerpcStatus // contains filtered or unexported fields }
ProductServiceGetProduct2Default describes a response with status code -1, with default header values.
An unexpected error response.
func NewProductServiceGetProduct2Default ¶
func NewProductServiceGetProduct2Default(code int) *ProductServiceGetProduct2Default
NewProductServiceGetProduct2Default creates a ProductServiceGetProduct2Default with default headers values
func (*ProductServiceGetProduct2Default) Code ¶
func (o *ProductServiceGetProduct2Default) Code() int
Code gets the status code for the product service get product2 default response
func (*ProductServiceGetProduct2Default) Error ¶
func (o *ProductServiceGetProduct2Default) Error() string
func (*ProductServiceGetProduct2Default) GetPayload ¶
func (o *ProductServiceGetProduct2Default) GetPayload() *models.GooglerpcStatus
func (*ProductServiceGetProduct2Default) IsClientError ¶
func (o *ProductServiceGetProduct2Default) IsClientError() bool
IsClientError returns true when this product service get product2 default response has a 4xx status code
func (*ProductServiceGetProduct2Default) IsCode ¶
func (o *ProductServiceGetProduct2Default) IsCode(code int) bool
IsCode returns true when this product service get product2 default response a status code equal to that given
func (*ProductServiceGetProduct2Default) IsRedirect ¶
func (o *ProductServiceGetProduct2Default) IsRedirect() bool
IsRedirect returns true when this product service get product2 default response has a 3xx status code
func (*ProductServiceGetProduct2Default) IsServerError ¶
func (o *ProductServiceGetProduct2Default) IsServerError() bool
IsServerError returns true when this product service get product2 default response has a 5xx status code
func (*ProductServiceGetProduct2Default) IsSuccess ¶
func (o *ProductServiceGetProduct2Default) IsSuccess() bool
IsSuccess returns true when this product service get product2 default response has a 2xx status code
func (*ProductServiceGetProduct2Default) String ¶
func (o *ProductServiceGetProduct2Default) String() string
type ProductServiceGetProduct2OK ¶
type ProductServiceGetProduct2OK struct {
Payload *models.V1GetProductResponse
}
ProductServiceGetProduct2OK describes a response with status code 200, with default header values.
A successful response.
func NewProductServiceGetProduct2OK ¶
func NewProductServiceGetProduct2OK() *ProductServiceGetProduct2OK
NewProductServiceGetProduct2OK creates a ProductServiceGetProduct2OK with default headers values
func (*ProductServiceGetProduct2OK) Code ¶
func (o *ProductServiceGetProduct2OK) Code() int
Code gets the status code for the product service get product2 o k response
func (*ProductServiceGetProduct2OK) Error ¶
func (o *ProductServiceGetProduct2OK) Error() string
func (*ProductServiceGetProduct2OK) GetPayload ¶
func (o *ProductServiceGetProduct2OK) GetPayload() *models.V1GetProductResponse
func (*ProductServiceGetProduct2OK) IsClientError ¶
func (o *ProductServiceGetProduct2OK) IsClientError() bool
IsClientError returns true when this product service get product2 o k response has a 4xx status code
func (*ProductServiceGetProduct2OK) IsCode ¶
func (o *ProductServiceGetProduct2OK) IsCode(code int) bool
IsCode returns true when this product service get product2 o k response a status code equal to that given
func (*ProductServiceGetProduct2OK) IsRedirect ¶
func (o *ProductServiceGetProduct2OK) IsRedirect() bool
IsRedirect returns true when this product service get product2 o k response has a 3xx status code
func (*ProductServiceGetProduct2OK) IsServerError ¶
func (o *ProductServiceGetProduct2OK) IsServerError() bool
IsServerError returns true when this product service get product2 o k response has a 5xx status code
func (*ProductServiceGetProduct2OK) IsSuccess ¶
func (o *ProductServiceGetProduct2OK) IsSuccess() bool
IsSuccess returns true when this product service get product2 o k response has a 2xx status code
func (*ProductServiceGetProduct2OK) String ¶
func (o *ProductServiceGetProduct2OK) String() string
type ProductServiceGetProduct2Params ¶
type ProductServiceGetProduct2Params struct { /* ID. プロダクトID */ ID string /* OptionalID. プロダクト管理ID(プロダクトIDの代わりに指定可) */ OptionalID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ProductServiceGetProduct2Params contains all the parameters to send to the API endpoint
for the product service get product2 operation. Typically these are written to a http.Request.
func NewProductServiceGetProduct2Params ¶
func NewProductServiceGetProduct2Params() *ProductServiceGetProduct2Params
NewProductServiceGetProduct2Params creates a new ProductServiceGetProduct2Params 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 NewProductServiceGetProduct2ParamsWithContext ¶
func NewProductServiceGetProduct2ParamsWithContext(ctx context.Context) *ProductServiceGetProduct2Params
NewProductServiceGetProduct2ParamsWithContext creates a new ProductServiceGetProduct2Params object with the ability to set a context for a request.
func NewProductServiceGetProduct2ParamsWithHTTPClient ¶
func NewProductServiceGetProduct2ParamsWithHTTPClient(client *http.Client) *ProductServiceGetProduct2Params
NewProductServiceGetProduct2ParamsWithHTTPClient creates a new ProductServiceGetProduct2Params object with the ability to set a custom HTTPClient for a request.
func NewProductServiceGetProduct2ParamsWithTimeout ¶
func NewProductServiceGetProduct2ParamsWithTimeout(timeout time.Duration) *ProductServiceGetProduct2Params
NewProductServiceGetProduct2ParamsWithTimeout creates a new ProductServiceGetProduct2Params object with the ability to set a timeout on a request.
func (*ProductServiceGetProduct2Params) SetContext ¶
func (o *ProductServiceGetProduct2Params) SetContext(ctx context.Context)
SetContext adds the context to the product service get product2 params
func (*ProductServiceGetProduct2Params) SetDefaults ¶
func (o *ProductServiceGetProduct2Params) SetDefaults()
SetDefaults hydrates default values in the product service get product2 params (not the query body).
All values with no default are reset to their zero value.
func (*ProductServiceGetProduct2Params) SetHTTPClient ¶
func (o *ProductServiceGetProduct2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the product service get product2 params
func (*ProductServiceGetProduct2Params) SetID ¶
func (o *ProductServiceGetProduct2Params) SetID(id string)
SetID adds the id to the product service get product2 params
func (*ProductServiceGetProduct2Params) SetOptionalID ¶
func (o *ProductServiceGetProduct2Params) SetOptionalID(optionalID *string)
SetOptionalID adds the optionalId to the product service get product2 params
func (*ProductServiceGetProduct2Params) SetTimeout ¶
func (o *ProductServiceGetProduct2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the product service get product2 params
func (*ProductServiceGetProduct2Params) WithContext ¶
func (o *ProductServiceGetProduct2Params) WithContext(ctx context.Context) *ProductServiceGetProduct2Params
WithContext adds the context to the product service get product2 params
func (*ProductServiceGetProduct2Params) WithDefaults ¶
func (o *ProductServiceGetProduct2Params) WithDefaults() *ProductServiceGetProduct2Params
WithDefaults hydrates default values in the product service get product2 params (not the query body).
All values with no default are reset to their zero value.
func (*ProductServiceGetProduct2Params) WithHTTPClient ¶
func (o *ProductServiceGetProduct2Params) WithHTTPClient(client *http.Client) *ProductServiceGetProduct2Params
WithHTTPClient adds the HTTPClient to the product service get product2 params
func (*ProductServiceGetProduct2Params) WithID ¶
func (o *ProductServiceGetProduct2Params) WithID(id string) *ProductServiceGetProduct2Params
WithID adds the id to the product service get product2 params
func (*ProductServiceGetProduct2Params) WithOptionalID ¶
func (o *ProductServiceGetProduct2Params) WithOptionalID(optionalID *string) *ProductServiceGetProduct2Params
WithOptionalID adds the optionalID to the product service get product2 params
func (*ProductServiceGetProduct2Params) WithTimeout ¶
func (o *ProductServiceGetProduct2Params) WithTimeout(timeout time.Duration) *ProductServiceGetProduct2Params
WithTimeout adds the timeout to the product service get product2 params
func (*ProductServiceGetProduct2Params) WriteToRequest ¶
func (o *ProductServiceGetProduct2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ProductServiceGetProduct2Reader ¶
type ProductServiceGetProduct2Reader struct {
// contains filtered or unexported fields
}
ProductServiceGetProduct2Reader is a Reader for the ProductServiceGetProduct2 structure.
func (*ProductServiceGetProduct2Reader) ReadResponse ¶
func (o *ProductServiceGetProduct2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ProductServiceGetProductDefault ¶
type ProductServiceGetProductDefault struct { Payload *models.GooglerpcStatus // contains filtered or unexported fields }
ProductServiceGetProductDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewProductServiceGetProductDefault ¶
func NewProductServiceGetProductDefault(code int) *ProductServiceGetProductDefault
NewProductServiceGetProductDefault creates a ProductServiceGetProductDefault with default headers values
func (*ProductServiceGetProductDefault) Code ¶
func (o *ProductServiceGetProductDefault) Code() int
Code gets the status code for the product service get product default response
func (*ProductServiceGetProductDefault) Error ¶
func (o *ProductServiceGetProductDefault) Error() string
func (*ProductServiceGetProductDefault) GetPayload ¶
func (o *ProductServiceGetProductDefault) GetPayload() *models.GooglerpcStatus
func (*ProductServiceGetProductDefault) IsClientError ¶
func (o *ProductServiceGetProductDefault) IsClientError() bool
IsClientError returns true when this product service get product default response has a 4xx status code
func (*ProductServiceGetProductDefault) IsCode ¶
func (o *ProductServiceGetProductDefault) IsCode(code int) bool
IsCode returns true when this product service get product default response a status code equal to that given
func (*ProductServiceGetProductDefault) IsRedirect ¶
func (o *ProductServiceGetProductDefault) IsRedirect() bool
IsRedirect returns true when this product service get product default response has a 3xx status code
func (*ProductServiceGetProductDefault) IsServerError ¶
func (o *ProductServiceGetProductDefault) IsServerError() bool
IsServerError returns true when this product service get product default response has a 5xx status code
func (*ProductServiceGetProductDefault) IsSuccess ¶
func (o *ProductServiceGetProductDefault) IsSuccess() bool
IsSuccess returns true when this product service get product default response has a 2xx status code
func (*ProductServiceGetProductDefault) String ¶
func (o *ProductServiceGetProductDefault) String() string
type ProductServiceGetProductOK ¶
type ProductServiceGetProductOK struct {
Payload *models.V1GetProductResponse
}
ProductServiceGetProductOK describes a response with status code 200, with default header values.
A successful response.
func NewProductServiceGetProductOK ¶
func NewProductServiceGetProductOK() *ProductServiceGetProductOK
NewProductServiceGetProductOK creates a ProductServiceGetProductOK with default headers values
func (*ProductServiceGetProductOK) Code ¶
func (o *ProductServiceGetProductOK) Code() int
Code gets the status code for the product service get product o k response
func (*ProductServiceGetProductOK) Error ¶
func (o *ProductServiceGetProductOK) Error() string
func (*ProductServiceGetProductOK) GetPayload ¶
func (o *ProductServiceGetProductOK) GetPayload() *models.V1GetProductResponse
func (*ProductServiceGetProductOK) IsClientError ¶
func (o *ProductServiceGetProductOK) IsClientError() bool
IsClientError returns true when this product service get product o k response has a 4xx status code
func (*ProductServiceGetProductOK) IsCode ¶
func (o *ProductServiceGetProductOK) IsCode(code int) bool
IsCode returns true when this product service get product o k response a status code equal to that given
func (*ProductServiceGetProductOK) IsRedirect ¶
func (o *ProductServiceGetProductOK) IsRedirect() bool
IsRedirect returns true when this product service get product o k response has a 3xx status code
func (*ProductServiceGetProductOK) IsServerError ¶
func (o *ProductServiceGetProductOK) IsServerError() bool
IsServerError returns true when this product service get product o k response has a 5xx status code
func (*ProductServiceGetProductOK) IsSuccess ¶
func (o *ProductServiceGetProductOK) IsSuccess() bool
IsSuccess returns true when this product service get product o k response has a 2xx status code
func (*ProductServiceGetProductOK) String ¶
func (o *ProductServiceGetProductOK) String() string
type ProductServiceGetProductParams ¶
type ProductServiceGetProductParams struct { // Body. Body *models.V1GetProductRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ProductServiceGetProductParams contains all the parameters to send to the API endpoint
for the product service get product operation. Typically these are written to a http.Request.
func NewProductServiceGetProductParams ¶
func NewProductServiceGetProductParams() *ProductServiceGetProductParams
NewProductServiceGetProductParams creates a new ProductServiceGetProductParams 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 NewProductServiceGetProductParamsWithContext ¶
func NewProductServiceGetProductParamsWithContext(ctx context.Context) *ProductServiceGetProductParams
NewProductServiceGetProductParamsWithContext creates a new ProductServiceGetProductParams object with the ability to set a context for a request.
func NewProductServiceGetProductParamsWithHTTPClient ¶
func NewProductServiceGetProductParamsWithHTTPClient(client *http.Client) *ProductServiceGetProductParams
NewProductServiceGetProductParamsWithHTTPClient creates a new ProductServiceGetProductParams object with the ability to set a custom HTTPClient for a request.
func NewProductServiceGetProductParamsWithTimeout ¶
func NewProductServiceGetProductParamsWithTimeout(timeout time.Duration) *ProductServiceGetProductParams
NewProductServiceGetProductParamsWithTimeout creates a new ProductServiceGetProductParams object with the ability to set a timeout on a request.
func (*ProductServiceGetProductParams) SetBody ¶
func (o *ProductServiceGetProductParams) SetBody(body *models.V1GetProductRequest)
SetBody adds the body to the product service get product params
func (*ProductServiceGetProductParams) SetContext ¶
func (o *ProductServiceGetProductParams) SetContext(ctx context.Context)
SetContext adds the context to the product service get product params
func (*ProductServiceGetProductParams) SetDefaults ¶
func (o *ProductServiceGetProductParams) SetDefaults()
SetDefaults hydrates default values in the product service get product params (not the query body).
All values with no default are reset to their zero value.
func (*ProductServiceGetProductParams) SetHTTPClient ¶
func (o *ProductServiceGetProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the product service get product params
func (*ProductServiceGetProductParams) SetTimeout ¶
func (o *ProductServiceGetProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the product service get product params
func (*ProductServiceGetProductParams) WithBody ¶
func (o *ProductServiceGetProductParams) WithBody(body *models.V1GetProductRequest) *ProductServiceGetProductParams
WithBody adds the body to the product service get product params
func (*ProductServiceGetProductParams) WithContext ¶
func (o *ProductServiceGetProductParams) WithContext(ctx context.Context) *ProductServiceGetProductParams
WithContext adds the context to the product service get product params
func (*ProductServiceGetProductParams) WithDefaults ¶
func (o *ProductServiceGetProductParams) WithDefaults() *ProductServiceGetProductParams
WithDefaults hydrates default values in the product service get product params (not the query body).
All values with no default are reset to their zero value.
func (*ProductServiceGetProductParams) WithHTTPClient ¶
func (o *ProductServiceGetProductParams) WithHTTPClient(client *http.Client) *ProductServiceGetProductParams
WithHTTPClient adds the HTTPClient to the product service get product params
func (*ProductServiceGetProductParams) WithTimeout ¶
func (o *ProductServiceGetProductParams) WithTimeout(timeout time.Duration) *ProductServiceGetProductParams
WithTimeout adds the timeout to the product service get product params
func (*ProductServiceGetProductParams) WriteToRequest ¶
func (o *ProductServiceGetProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ProductServiceGetProductReader ¶
type ProductServiceGetProductReader struct {
// contains filtered or unexported fields
}
ProductServiceGetProductReader is a Reader for the ProductServiceGetProduct structure.
func (*ProductServiceGetProductReader) ReadResponse ¶
func (o *ProductServiceGetProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.