product_service

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

Code gets the status code for the product service create product default response

func (*ProductServiceCreateProductDefault) Error

func (*ProductServiceCreateProductDefault) GetPayload

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

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

IsSuccess returns true when this product service create product default response has a 2xx status code

func (*ProductServiceCreateProductDefault) 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

Code gets the status code for the product service create product o k response

func (*ProductServiceCreateProductOK) Error

func (*ProductServiceCreateProductOK) GetPayload

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

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

SetBody adds the body to the product service create product params

func (*ProductServiceCreateProductParams) SetContext

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

WithBody adds the body to the product service create product params

func (*ProductServiceCreateProductParams) WithContext

WithContext adds the context to the product service create product params

func (*ProductServiceCreateProductParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the product service create product params

func (*ProductServiceCreateProductParams) WithTimeout

WithTimeout adds the timeout to the product service create product params

func (*ProductServiceCreateProductParams) WriteToRequest

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

Code gets the status code for the product service get product2 default response

func (*ProductServiceGetProduct2Default) Error

func (*ProductServiceGetProduct2Default) GetPayload

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

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 (*ProductServiceGetProduct2OK) GetPayload

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

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

WithContext adds the context to the product service get product2 params

func (*ProductServiceGetProduct2Params) WithDefaults

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

WithHTTPClient adds the HTTPClient to the product service get product2 params

func (*ProductServiceGetProduct2Params) WithID

WithID adds the id to the product service get product2 params

func (*ProductServiceGetProduct2Params) WithOptionalID

WithOptionalID adds the optionalID to the product service get product2 params

func (*ProductServiceGetProduct2Params) WithTimeout

WithTimeout adds the timeout to the product service get product2 params

func (*ProductServiceGetProduct2Params) WriteToRequest

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

Code gets the status code for the product service get product default response

func (*ProductServiceGetProductDefault) Error

func (*ProductServiceGetProductDefault) GetPayload

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

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 (*ProductServiceGetProductOK) GetPayload

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

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

WithBody adds the body to the product service get product params

func (*ProductServiceGetProductParams) WithContext

WithContext adds the context to the product service get product params

func (*ProductServiceGetProductParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the product service get product params

func (*ProductServiceGetProductParams) WithTimeout

WithTimeout adds the timeout to the product service get product params

func (*ProductServiceGetProductParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL