products

package
v0.0.0-...-13576d3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: Apache-2.0 Imports: 11 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 products API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new products API client.

func (*Client) DeleteMetadataForProduct

func (a *Client) DeleteMetadataForProduct(params *DeleteMetadataForProductParams) (*DeleteMetadataForProductOK, error)

DeleteMetadataForProduct removes any associated metadata

{"nickname":"Clear metadata from product","request" :"deleteProductMetadataRequest.html","response":"deleteProductMetadataResponse.html"}

func (*Client) GetAllProducts

func (a *Client) GetAllProducts(params *GetAllProductsParams) (*GetAllProductsOK, error)

GetAllProducts returns a collection of products by default 10 values are returned records are returned in natural order

{"nickname":"Get all products","response":"getProductAll.html"}

func (*Client) GetMetadataForProduct

func (a *Client) GetMetadataForProduct(params *GetMetadataForProductParams) (*GetMetadataForProductOK, error)

GetMetadataForProduct retrieves any associated metadata

{"nickname":"Retrieve metadata on product","request":"getProductMetadataRequest.html","response":"getProductMetadataResponse.html"}

func (*Client) GetProductByID

func (a *Client) GetProductByID(params *GetProductByIDParams) (*GetProductByIDOK, error)

GetProductByID returns a single product specified by the product ID parameter

{"nickname":"Retrieve an existing product","response":"getProductByID.html"}

func (*Client) SetMetadataForProduct

func (a *Client) SetMetadataForProduct(params *SetMetadataForProductParams) (*SetMetadataForProductOK, error)

SetMetadataForProduct removes any existing metadata keys and create the provided data

{"nickname":"Set metadata on product","request":"setProductMetadataRequest.html","response":"setProductMetadataResponse.html"}

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpsertMetadataForProduct

func (a *Client) UpsertMetadataForProduct(params *UpsertMetadataForProductParams) (*UpsertMetadataForProductOK, error)

UpsertMetadataForProduct updates any existing metadata key values and insert any new key values no keys will be removed

{"nickname":"Upsert metadata on product","request":"upsertProductMetadataRequest.html","response":"upsertProductMetadataResponse.html"}

type DeleteMetadataForProductDefault

type DeleteMetadataForProductDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

DeleteMetadataForProductDefault handles this case with default header values.

error

func NewDeleteMetadataForProductDefault

func NewDeleteMetadataForProductDefault(code int) *DeleteMetadataForProductDefault

NewDeleteMetadataForProductDefault creates a DeleteMetadataForProductDefault with default headers values

func (*DeleteMetadataForProductDefault) Code

Code gets the status code for the delete metadata for product default response

func (*DeleteMetadataForProductDefault) Error

type DeleteMetadataForProductOK

type DeleteMetadataForProductOK struct {
	Payload models.DynamicMetadata
}

DeleteMetadataForProductOK handles this case with default header values.

success

func NewDeleteMetadataForProductOK

func NewDeleteMetadataForProductOK() *DeleteMetadataForProductOK

NewDeleteMetadataForProductOK creates a DeleteMetadataForProductOK with default headers values

func (*DeleteMetadataForProductOK) Error

type DeleteMetadataForProductParams

type DeleteMetadataForProductParams struct {

	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*ProductID*/
	ProductID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteMetadataForProductParams contains all the parameters to send to the API endpoint for the delete metadata for product operation typically these are written to a http.Request

func NewDeleteMetadataForProductParams

func NewDeleteMetadataForProductParams() *DeleteMetadataForProductParams

NewDeleteMetadataForProductParams creates a new DeleteMetadataForProductParams object with the default values initialized.

func NewDeleteMetadataForProductParamsWithContext

func NewDeleteMetadataForProductParamsWithContext(ctx context.Context) *DeleteMetadataForProductParams

NewDeleteMetadataForProductParamsWithContext creates a new DeleteMetadataForProductParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteMetadataForProductParamsWithHTTPClient

func NewDeleteMetadataForProductParamsWithHTTPClient(client *http.Client) *DeleteMetadataForProductParams

NewDeleteMetadataForProductParamsWithHTTPClient creates a new DeleteMetadataForProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteMetadataForProductParamsWithTimeout

func NewDeleteMetadataForProductParamsWithTimeout(timeout time.Duration) *DeleteMetadataForProductParams

NewDeleteMetadataForProductParamsWithTimeout creates a new DeleteMetadataForProductParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteMetadataForProductParams) SetContext

func (o *DeleteMetadataForProductParams) SetContext(ctx context.Context)

SetContext adds the context to the delete metadata for product params

func (*DeleteMetadataForProductParams) SetHTTPClient

func (o *DeleteMetadataForProductParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete metadata for product params

func (*DeleteMetadataForProductParams) SetOrganizations

func (o *DeleteMetadataForProductParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the delete metadata for product params

func (*DeleteMetadataForProductParams) SetProductID

func (o *DeleteMetadataForProductParams) SetProductID(productID string)

SetProductID adds the productId to the delete metadata for product params

func (*DeleteMetadataForProductParams) SetTimeout

func (o *DeleteMetadataForProductParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete metadata for product params

func (*DeleteMetadataForProductParams) WithContext

WithContext adds the context to the delete metadata for product params

func (*DeleteMetadataForProductParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete metadata for product params

func (*DeleteMetadataForProductParams) WithOrganizations

func (o *DeleteMetadataForProductParams) WithOrganizations(organizations []string) *DeleteMetadataForProductParams

WithOrganizations adds the organizations to the delete metadata for product params

func (*DeleteMetadataForProductParams) WithProductID

WithProductID adds the productID to the delete metadata for product params

func (*DeleteMetadataForProductParams) WithTimeout

WithTimeout adds the timeout to the delete metadata for product params

func (*DeleteMetadataForProductParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMetadataForProductReader

type DeleteMetadataForProductReader struct {
	// contains filtered or unexported fields
}

DeleteMetadataForProductReader is a Reader for the DeleteMetadataForProduct structure.

func (*DeleteMetadataForProductReader) ReadResponse

func (o *DeleteMetadataForProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAllProductsDefault

type GetAllProductsDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetAllProductsDefault handles this case with default header values.

error

func NewGetAllProductsDefault

func NewGetAllProductsDefault(code int) *GetAllProductsDefault

NewGetAllProductsDefault creates a GetAllProductsDefault with default headers values

func (*GetAllProductsDefault) Code

func (o *GetAllProductsDefault) Code() int

Code gets the status code for the get all products default response

func (*GetAllProductsDefault) Error

func (o *GetAllProductsDefault) Error() string

type GetAllProductsOK

type GetAllProductsOK struct {
	Payload *models.ProductPagedMetadata
}

GetAllProductsOK handles this case with default header values.

success

func NewGetAllProductsOK

func NewGetAllProductsOK() *GetAllProductsOK

NewGetAllProductsOK creates a GetAllProductsOK with default headers values

func (*GetAllProductsOK) Error

func (o *GetAllProductsOK) Error() string

type GetAllProductsParams

type GetAllProductsParams struct {

	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*Metadata*/
	Metadata *string
	/*Offset
	  The offset from the first product to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*Records
	  The maximum number of products to return.

	*/
	Records *int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAllProductsParams contains all the parameters to send to the API endpoint for the get all products operation typically these are written to a http.Request

func NewGetAllProductsParams

func NewGetAllProductsParams() *GetAllProductsParams

NewGetAllProductsParams creates a new GetAllProductsParams object with the default values initialized.

func NewGetAllProductsParamsWithContext

func NewGetAllProductsParamsWithContext(ctx context.Context) *GetAllProductsParams

NewGetAllProductsParamsWithContext creates a new GetAllProductsParams object with the default values initialized, and the ability to set a context for a request

func NewGetAllProductsParamsWithHTTPClient

func NewGetAllProductsParamsWithHTTPClient(client *http.Client) *GetAllProductsParams

NewGetAllProductsParamsWithHTTPClient creates a new GetAllProductsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAllProductsParamsWithTimeout

func NewGetAllProductsParamsWithTimeout(timeout time.Duration) *GetAllProductsParams

NewGetAllProductsParamsWithTimeout creates a new GetAllProductsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAllProductsParams) SetContext

func (o *GetAllProductsParams) SetContext(ctx context.Context)

SetContext adds the context to the get all products params

func (*GetAllProductsParams) SetHTTPClient

func (o *GetAllProductsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get all products params

func (*GetAllProductsParams) SetIncludeRetired

func (o *GetAllProductsParams) SetIncludeRetired(includeRetired *bool)

SetIncludeRetired adds the includeRetired to the get all products params

func (*GetAllProductsParams) SetMetadata

func (o *GetAllProductsParams) SetMetadata(metadata *string)

SetMetadata adds the metadata to the get all products params

func (*GetAllProductsParams) SetOffset

func (o *GetAllProductsParams) SetOffset(offset *int32)

SetOffset adds the offset to the get all products params

func (*GetAllProductsParams) SetOrder

func (o *GetAllProductsParams) SetOrder(order *string)

SetOrder adds the order to the get all products params

func (*GetAllProductsParams) SetOrderBy

func (o *GetAllProductsParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get all products params

func (*GetAllProductsParams) SetOrganizations

func (o *GetAllProductsParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get all products params

func (*GetAllProductsParams) SetRecords

func (o *GetAllProductsParams) SetRecords(records *int32)

SetRecords adds the records to the get all products params

func (*GetAllProductsParams) SetTimeout

func (o *GetAllProductsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get all products params

func (*GetAllProductsParams) WithContext

WithContext adds the context to the get all products params

func (*GetAllProductsParams) WithHTTPClient

func (o *GetAllProductsParams) WithHTTPClient(client *http.Client) *GetAllProductsParams

WithHTTPClient adds the HTTPClient to the get all products params

func (*GetAllProductsParams) WithIncludeRetired

func (o *GetAllProductsParams) WithIncludeRetired(includeRetired *bool) *GetAllProductsParams

WithIncludeRetired adds the includeRetired to the get all products params

func (*GetAllProductsParams) WithMetadata

func (o *GetAllProductsParams) WithMetadata(metadata *string) *GetAllProductsParams

WithMetadata adds the metadata to the get all products params

func (*GetAllProductsParams) WithOffset

func (o *GetAllProductsParams) WithOffset(offset *int32) *GetAllProductsParams

WithOffset adds the offset to the get all products params

func (*GetAllProductsParams) WithOrder

func (o *GetAllProductsParams) WithOrder(order *string) *GetAllProductsParams

WithOrder adds the order to the get all products params

func (*GetAllProductsParams) WithOrderBy

func (o *GetAllProductsParams) WithOrderBy(orderBy *string) *GetAllProductsParams

WithOrderBy adds the orderBy to the get all products params

func (*GetAllProductsParams) WithOrganizations

func (o *GetAllProductsParams) WithOrganizations(organizations []string) *GetAllProductsParams

WithOrganizations adds the organizations to the get all products params

func (*GetAllProductsParams) WithRecords

func (o *GetAllProductsParams) WithRecords(records *int32) *GetAllProductsParams

WithRecords adds the records to the get all products params

func (*GetAllProductsParams) WithTimeout

func (o *GetAllProductsParams) WithTimeout(timeout time.Duration) *GetAllProductsParams

WithTimeout adds the timeout to the get all products params

func (*GetAllProductsParams) WriteToRequest

func (o *GetAllProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAllProductsReader

type GetAllProductsReader struct {
	// contains filtered or unexported fields
}

GetAllProductsReader is a Reader for the GetAllProducts structure.

func (*GetAllProductsReader) ReadResponse

func (o *GetAllProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMetadataForProductDefault

type GetMetadataForProductDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetMetadataForProductDefault handles this case with default header values.

error

func NewGetMetadataForProductDefault

func NewGetMetadataForProductDefault(code int) *GetMetadataForProductDefault

NewGetMetadataForProductDefault creates a GetMetadataForProductDefault with default headers values

func (*GetMetadataForProductDefault) Code

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

func (*GetMetadataForProductDefault) Error

type GetMetadataForProductOK

type GetMetadataForProductOK struct {
	Payload models.DynamicMetadata
}

GetMetadataForProductOK handles this case with default header values.

success

func NewGetMetadataForProductOK

func NewGetMetadataForProductOK() *GetMetadataForProductOK

NewGetMetadataForProductOK creates a GetMetadataForProductOK with default headers values

func (*GetMetadataForProductOK) Error

func (o *GetMetadataForProductOK) Error() string

type GetMetadataForProductParams

type GetMetadataForProductParams struct {

	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*ProductID*/
	ProductID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMetadataForProductParams contains all the parameters to send to the API endpoint for the get metadata for product operation typically these are written to a http.Request

func NewGetMetadataForProductParams

func NewGetMetadataForProductParams() *GetMetadataForProductParams

NewGetMetadataForProductParams creates a new GetMetadataForProductParams object with the default values initialized.

func NewGetMetadataForProductParamsWithContext

func NewGetMetadataForProductParamsWithContext(ctx context.Context) *GetMetadataForProductParams

NewGetMetadataForProductParamsWithContext creates a new GetMetadataForProductParams object with the default values initialized, and the ability to set a context for a request

func NewGetMetadataForProductParamsWithHTTPClient

func NewGetMetadataForProductParamsWithHTTPClient(client *http.Client) *GetMetadataForProductParams

NewGetMetadataForProductParamsWithHTTPClient creates a new GetMetadataForProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetMetadataForProductParamsWithTimeout

func NewGetMetadataForProductParamsWithTimeout(timeout time.Duration) *GetMetadataForProductParams

NewGetMetadataForProductParamsWithTimeout creates a new GetMetadataForProductParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetMetadataForProductParams) SetContext

func (o *GetMetadataForProductParams) SetContext(ctx context.Context)

SetContext adds the context to the get metadata for product params

func (*GetMetadataForProductParams) SetHTTPClient

func (o *GetMetadataForProductParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get metadata for product params

func (*GetMetadataForProductParams) SetOrganizations

func (o *GetMetadataForProductParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get metadata for product params

func (*GetMetadataForProductParams) SetProductID

func (o *GetMetadataForProductParams) SetProductID(productID string)

SetProductID adds the productId to the get metadata for product params

func (*GetMetadataForProductParams) SetTimeout

func (o *GetMetadataForProductParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get metadata for product params

func (*GetMetadataForProductParams) WithContext

WithContext adds the context to the get metadata for product params

func (*GetMetadataForProductParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get metadata for product params

func (*GetMetadataForProductParams) WithOrganizations

func (o *GetMetadataForProductParams) WithOrganizations(organizations []string) *GetMetadataForProductParams

WithOrganizations adds the organizations to the get metadata for product params

func (*GetMetadataForProductParams) WithProductID

func (o *GetMetadataForProductParams) WithProductID(productID string) *GetMetadataForProductParams

WithProductID adds the productID to the get metadata for product params

func (*GetMetadataForProductParams) WithTimeout

WithTimeout adds the timeout to the get metadata for product params

func (*GetMetadataForProductParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMetadataForProductReader

type GetMetadataForProductReader struct {
	// contains filtered or unexported fields
}

GetMetadataForProductReader is a Reader for the GetMetadataForProduct structure.

func (*GetMetadataForProductReader) ReadResponse

func (o *GetMetadataForProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetProductByIDDefault

type GetProductByIDDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetProductByIDDefault handles this case with default header values.

error

func NewGetProductByIDDefault

func NewGetProductByIDDefault(code int) *GetProductByIDDefault

NewGetProductByIDDefault creates a GetProductByIDDefault with default headers values

func (*GetProductByIDDefault) Code

func (o *GetProductByIDDefault) Code() int

Code gets the status code for the get product by ID default response

func (*GetProductByIDDefault) Error

func (o *GetProductByIDDefault) Error() string

type GetProductByIDOK

type GetProductByIDOK struct {
	Payload *models.ProductPagedMetadata
}

GetProductByIDOK handles this case with default header values.

success

func NewGetProductByIDOK

func NewGetProductByIDOK() *GetProductByIDOK

NewGetProductByIDOK creates a GetProductByIDOK with default headers values

func (*GetProductByIDOK) Error

func (o *GetProductByIDOK) Error() string

type GetProductByIDParams

type GetProductByIDParams struct {

	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*Offset
	  The offset from the first product-rate-plan to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*ProductID
	  ID or name of the product.

	*/
	ProductID string
	/*Records
	  The maximum number of product-rate-plans to return.

	*/
	Records *int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetProductByIDParams contains all the parameters to send to the API endpoint for the get product by ID operation typically these are written to a http.Request

func NewGetProductByIDParams

func NewGetProductByIDParams() *GetProductByIDParams

NewGetProductByIDParams creates a new GetProductByIDParams object with the default values initialized.

func NewGetProductByIDParamsWithContext

func NewGetProductByIDParamsWithContext(ctx context.Context) *GetProductByIDParams

NewGetProductByIDParamsWithContext creates a new GetProductByIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetProductByIDParamsWithHTTPClient

func NewGetProductByIDParamsWithHTTPClient(client *http.Client) *GetProductByIDParams

NewGetProductByIDParamsWithHTTPClient creates a new GetProductByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetProductByIDParamsWithTimeout

func NewGetProductByIDParamsWithTimeout(timeout time.Duration) *GetProductByIDParams

NewGetProductByIDParamsWithTimeout creates a new GetProductByIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetProductByIDParams) SetContext

func (o *GetProductByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get product by ID params

func (*GetProductByIDParams) SetHTTPClient

func (o *GetProductByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get product by ID params

func (*GetProductByIDParams) SetIncludeRetired

func (o *GetProductByIDParams) SetIncludeRetired(includeRetired *bool)

SetIncludeRetired adds the includeRetired to the get product by ID params

func (*GetProductByIDParams) SetOffset

func (o *GetProductByIDParams) SetOffset(offset *int32)

SetOffset adds the offset to the get product by ID params

func (*GetProductByIDParams) SetOrder

func (o *GetProductByIDParams) SetOrder(order *string)

SetOrder adds the order to the get product by ID params

func (*GetProductByIDParams) SetOrderBy

func (o *GetProductByIDParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get product by ID params

func (*GetProductByIDParams) SetOrganizations

func (o *GetProductByIDParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get product by ID params

func (*GetProductByIDParams) SetProductID

func (o *GetProductByIDParams) SetProductID(productID string)

SetProductID adds the productId to the get product by ID params

func (*GetProductByIDParams) SetRecords

func (o *GetProductByIDParams) SetRecords(records *int32)

SetRecords adds the records to the get product by ID params

func (*GetProductByIDParams) SetTimeout

func (o *GetProductByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get product by ID params

func (*GetProductByIDParams) WithContext

WithContext adds the context to the get product by ID params

func (*GetProductByIDParams) WithHTTPClient

func (o *GetProductByIDParams) WithHTTPClient(client *http.Client) *GetProductByIDParams

WithHTTPClient adds the HTTPClient to the get product by ID params

func (*GetProductByIDParams) WithIncludeRetired

func (o *GetProductByIDParams) WithIncludeRetired(includeRetired *bool) *GetProductByIDParams

WithIncludeRetired adds the includeRetired to the get product by ID params

func (*GetProductByIDParams) WithOffset

func (o *GetProductByIDParams) WithOffset(offset *int32) *GetProductByIDParams

WithOffset adds the offset to the get product by ID params

func (*GetProductByIDParams) WithOrder

func (o *GetProductByIDParams) WithOrder(order *string) *GetProductByIDParams

WithOrder adds the order to the get product by ID params

func (*GetProductByIDParams) WithOrderBy

func (o *GetProductByIDParams) WithOrderBy(orderBy *string) *GetProductByIDParams

WithOrderBy adds the orderBy to the get product by ID params

func (*GetProductByIDParams) WithOrganizations

func (o *GetProductByIDParams) WithOrganizations(organizations []string) *GetProductByIDParams

WithOrganizations adds the organizations to the get product by ID params

func (*GetProductByIDParams) WithProductID

func (o *GetProductByIDParams) WithProductID(productID string) *GetProductByIDParams

WithProductID adds the productID to the get product by ID params

func (*GetProductByIDParams) WithRecords

func (o *GetProductByIDParams) WithRecords(records *int32) *GetProductByIDParams

WithRecords adds the records to the get product by ID params

func (*GetProductByIDParams) WithTimeout

func (o *GetProductByIDParams) WithTimeout(timeout time.Duration) *GetProductByIDParams

WithTimeout adds the timeout to the get product by ID params

func (*GetProductByIDParams) WriteToRequest

func (o *GetProductByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetProductByIDReader

type GetProductByIDReader struct {
	// contains filtered or unexported fields
}

GetProductByIDReader is a Reader for the GetProductByID structure.

func (*GetProductByIDReader) ReadResponse

func (o *GetProductByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SetMetadataForProductDefault

type SetMetadataForProductDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

SetMetadataForProductDefault handles this case with default header values.

error

func NewSetMetadataForProductDefault

func NewSetMetadataForProductDefault(code int) *SetMetadataForProductDefault

NewSetMetadataForProductDefault creates a SetMetadataForProductDefault with default headers values

func (*SetMetadataForProductDefault) Code

Code gets the status code for the set metadata for product default response

func (*SetMetadataForProductDefault) Error

type SetMetadataForProductOK

type SetMetadataForProductOK struct {
	Payload models.DynamicMetadata
}

SetMetadataForProductOK handles this case with default header values.

success

func NewSetMetadataForProductOK

func NewSetMetadataForProductOK() *SetMetadataForProductOK

NewSetMetadataForProductOK creates a SetMetadataForProductOK with default headers values

func (*SetMetadataForProductOK) Error

func (o *SetMetadataForProductOK) Error() string

type SetMetadataForProductParams

type SetMetadataForProductParams struct {

	/*Metadata*/
	Metadata models.DynamicMetadata
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*ProductID*/
	ProductID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetMetadataForProductParams contains all the parameters to send to the API endpoint for the set metadata for product operation typically these are written to a http.Request

func NewSetMetadataForProductParams

func NewSetMetadataForProductParams() *SetMetadataForProductParams

NewSetMetadataForProductParams creates a new SetMetadataForProductParams object with the default values initialized.

func NewSetMetadataForProductParamsWithContext

func NewSetMetadataForProductParamsWithContext(ctx context.Context) *SetMetadataForProductParams

NewSetMetadataForProductParamsWithContext creates a new SetMetadataForProductParams object with the default values initialized, and the ability to set a context for a request

func NewSetMetadataForProductParamsWithHTTPClient

func NewSetMetadataForProductParamsWithHTTPClient(client *http.Client) *SetMetadataForProductParams

NewSetMetadataForProductParamsWithHTTPClient creates a new SetMetadataForProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetMetadataForProductParamsWithTimeout

func NewSetMetadataForProductParamsWithTimeout(timeout time.Duration) *SetMetadataForProductParams

NewSetMetadataForProductParamsWithTimeout creates a new SetMetadataForProductParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetMetadataForProductParams) SetContext

func (o *SetMetadataForProductParams) SetContext(ctx context.Context)

SetContext adds the context to the set metadata for product params

func (*SetMetadataForProductParams) SetHTTPClient

func (o *SetMetadataForProductParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set metadata for product params

func (*SetMetadataForProductParams) SetMetadata

func (o *SetMetadataForProductParams) SetMetadata(metadata models.DynamicMetadata)

SetMetadata adds the metadata to the set metadata for product params

func (*SetMetadataForProductParams) SetOrganizations

func (o *SetMetadataForProductParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the set metadata for product params

func (*SetMetadataForProductParams) SetProductID

func (o *SetMetadataForProductParams) SetProductID(productID string)

SetProductID adds the productId to the set metadata for product params

func (*SetMetadataForProductParams) SetTimeout

func (o *SetMetadataForProductParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set metadata for product params

func (*SetMetadataForProductParams) WithContext

WithContext adds the context to the set metadata for product params

func (*SetMetadataForProductParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set metadata for product params

func (*SetMetadataForProductParams) WithMetadata

WithMetadata adds the metadata to the set metadata for product params

func (*SetMetadataForProductParams) WithOrganizations

func (o *SetMetadataForProductParams) WithOrganizations(organizations []string) *SetMetadataForProductParams

WithOrganizations adds the organizations to the set metadata for product params

func (*SetMetadataForProductParams) WithProductID

func (o *SetMetadataForProductParams) WithProductID(productID string) *SetMetadataForProductParams

WithProductID adds the productID to the set metadata for product params

func (*SetMetadataForProductParams) WithTimeout

WithTimeout adds the timeout to the set metadata for product params

func (*SetMetadataForProductParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetMetadataForProductReader

type SetMetadataForProductReader struct {
	// contains filtered or unexported fields
}

SetMetadataForProductReader is a Reader for the SetMetadataForProduct structure.

func (*SetMetadataForProductReader) ReadResponse

func (o *SetMetadataForProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpsertMetadataForProductDefault

type UpsertMetadataForProductDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

UpsertMetadataForProductDefault handles this case with default header values.

error

func NewUpsertMetadataForProductDefault

func NewUpsertMetadataForProductDefault(code int) *UpsertMetadataForProductDefault

NewUpsertMetadataForProductDefault creates a UpsertMetadataForProductDefault with default headers values

func (*UpsertMetadataForProductDefault) Code

Code gets the status code for the upsert metadata for product default response

func (*UpsertMetadataForProductDefault) Error

type UpsertMetadataForProductOK

type UpsertMetadataForProductOK struct {
	Payload models.DynamicMetadata
}

UpsertMetadataForProductOK handles this case with default header values.

success

func NewUpsertMetadataForProductOK

func NewUpsertMetadataForProductOK() *UpsertMetadataForProductOK

NewUpsertMetadataForProductOK creates a UpsertMetadataForProductOK with default headers values

func (*UpsertMetadataForProductOK) Error

type UpsertMetadataForProductParams

type UpsertMetadataForProductParams struct {

	/*Metadata*/
	Metadata models.DynamicMetadata
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*ProductID*/
	ProductID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpsertMetadataForProductParams contains all the parameters to send to the API endpoint for the upsert metadata for product operation typically these are written to a http.Request

func NewUpsertMetadataForProductParams

func NewUpsertMetadataForProductParams() *UpsertMetadataForProductParams

NewUpsertMetadataForProductParams creates a new UpsertMetadataForProductParams object with the default values initialized.

func NewUpsertMetadataForProductParamsWithContext

func NewUpsertMetadataForProductParamsWithContext(ctx context.Context) *UpsertMetadataForProductParams

NewUpsertMetadataForProductParamsWithContext creates a new UpsertMetadataForProductParams object with the default values initialized, and the ability to set a context for a request

func NewUpsertMetadataForProductParamsWithHTTPClient

func NewUpsertMetadataForProductParamsWithHTTPClient(client *http.Client) *UpsertMetadataForProductParams

NewUpsertMetadataForProductParamsWithHTTPClient creates a new UpsertMetadataForProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpsertMetadataForProductParamsWithTimeout

func NewUpsertMetadataForProductParamsWithTimeout(timeout time.Duration) *UpsertMetadataForProductParams

NewUpsertMetadataForProductParamsWithTimeout creates a new UpsertMetadataForProductParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpsertMetadataForProductParams) SetContext

func (o *UpsertMetadataForProductParams) SetContext(ctx context.Context)

SetContext adds the context to the upsert metadata for product params

func (*UpsertMetadataForProductParams) SetHTTPClient

func (o *UpsertMetadataForProductParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the upsert metadata for product params

func (*UpsertMetadataForProductParams) SetMetadata

func (o *UpsertMetadataForProductParams) SetMetadata(metadata models.DynamicMetadata)

SetMetadata adds the metadata to the upsert metadata for product params

func (*UpsertMetadataForProductParams) SetOrganizations

func (o *UpsertMetadataForProductParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the upsert metadata for product params

func (*UpsertMetadataForProductParams) SetProductID

func (o *UpsertMetadataForProductParams) SetProductID(productID string)

SetProductID adds the productId to the upsert metadata for product params

func (*UpsertMetadataForProductParams) SetTimeout

func (o *UpsertMetadataForProductParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the upsert metadata for product params

func (*UpsertMetadataForProductParams) WithContext

WithContext adds the context to the upsert metadata for product params

func (*UpsertMetadataForProductParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the upsert metadata for product params

func (*UpsertMetadataForProductParams) WithMetadata

WithMetadata adds the metadata to the upsert metadata for product params

func (*UpsertMetadataForProductParams) WithOrganizations

func (o *UpsertMetadataForProductParams) WithOrganizations(organizations []string) *UpsertMetadataForProductParams

WithOrganizations adds the organizations to the upsert metadata for product params

func (*UpsertMetadataForProductParams) WithProductID

WithProductID adds the productID to the upsert metadata for product params

func (*UpsertMetadataForProductParams) WithTimeout

WithTimeout adds the timeout to the upsert metadata for product params

func (*UpsertMetadataForProductParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpsertMetadataForProductReader

type UpsertMetadataForProductReader struct {
	// contains filtered or unexported fields
}

UpsertMetadataForProductReader is a Reader for the UpsertMetadataForProduct structure.

func (*UpsertMetadataForProductReader) ReadResponse

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