Documentation
¶
Index ¶
- type API
- type Client
- func (a *Client) CreateSkuBundle(ctx context.Context, params *CreateSkuBundleParams) (*CreateSkuBundleCreated, error)
- func (a *Client) GetSkuBundle(ctx context.Context, params *GetSkuBundleParams) (*GetSkuBundleOK, error)
- func (a *Client) GetSkuBundleByName(ctx context.Context, params *GetSkuBundleByNameParams) (*GetSkuBundleByNameOK, error)
- func (a *Client) ListSkuBundles(ctx context.Context, params *ListSkuBundlesParams) (*ListSkuBundlesOK, error)
- func (a *Client) UpdateSkuBundle(ctx context.Context, params *UpdateSkuBundleParams) (*UpdateSkuBundleOK, error)
- type CreateSkuBundleBadRequest
- type CreateSkuBundleConflict
- type CreateSkuBundleCreated
- type CreateSkuBundleInternalServerError
- type CreateSkuBundleParams
- func NewCreateSkuBundleParams() *CreateSkuBundleParams
- func NewCreateSkuBundleParamsWithContext(ctx context.Context) *CreateSkuBundleParams
- func NewCreateSkuBundleParamsWithHTTPClient(client *http.Client) *CreateSkuBundleParams
- func NewCreateSkuBundleParamsWithTimeout(timeout time.Duration) *CreateSkuBundleParams
- func (o *CreateSkuBundleParams) SetBundle(bundle *models.SkuBundle)
- func (o *CreateSkuBundleParams) SetContext(ctx context.Context)
- func (o *CreateSkuBundleParams) SetHTTPClient(client *http.Client)
- func (o *CreateSkuBundleParams) SetTimeout(timeout time.Duration)
- func (o *CreateSkuBundleParams) WithBundle(bundle *models.SkuBundle) *CreateSkuBundleParams
- func (o *CreateSkuBundleParams) WithContext(ctx context.Context) *CreateSkuBundleParams
- func (o *CreateSkuBundleParams) WithHTTPClient(client *http.Client) *CreateSkuBundleParams
- func (o *CreateSkuBundleParams) WithTimeout(timeout time.Duration) *CreateSkuBundleParams
- func (o *CreateSkuBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSkuBundleReader
- type GetSkuBundleByNameInternalServerError
- type GetSkuBundleByNameNotFound
- type GetSkuBundleByNameOK
- type GetSkuBundleByNameParams
- func NewGetSkuBundleByNameParams() *GetSkuBundleByNameParams
- func NewGetSkuBundleByNameParamsWithContext(ctx context.Context) *GetSkuBundleByNameParams
- func NewGetSkuBundleByNameParamsWithHTTPClient(client *http.Client) *GetSkuBundleByNameParams
- func NewGetSkuBundleByNameParamsWithTimeout(timeout time.Duration) *GetSkuBundleByNameParams
- func (o *GetSkuBundleByNameParams) SetContext(ctx context.Context)
- func (o *GetSkuBundleByNameParams) SetHTTPClient(client *http.Client)
- func (o *GetSkuBundleByNameParams) SetName(name string)
- func (o *GetSkuBundleByNameParams) SetTimeout(timeout time.Duration)
- func (o *GetSkuBundleByNameParams) WithContext(ctx context.Context) *GetSkuBundleByNameParams
- func (o *GetSkuBundleByNameParams) WithHTTPClient(client *http.Client) *GetSkuBundleByNameParams
- func (o *GetSkuBundleByNameParams) WithName(name string) *GetSkuBundleByNameParams
- func (o *GetSkuBundleByNameParams) WithTimeout(timeout time.Duration) *GetSkuBundleByNameParams
- func (o *GetSkuBundleByNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSkuBundleByNameReader
- type GetSkuBundleInternalServerError
- type GetSkuBundleNotFound
- type GetSkuBundleOK
- type GetSkuBundleParams
- func (o *GetSkuBundleParams) SetContext(ctx context.Context)
- func (o *GetSkuBundleParams) SetHTTPClient(client *http.Client)
- func (o *GetSkuBundleParams) SetID(id string)
- func (o *GetSkuBundleParams) SetTimeout(timeout time.Duration)
- func (o *GetSkuBundleParams) WithContext(ctx context.Context) *GetSkuBundleParams
- func (o *GetSkuBundleParams) WithHTTPClient(client *http.Client) *GetSkuBundleParams
- func (o *GetSkuBundleParams) WithID(id string) *GetSkuBundleParams
- func (o *GetSkuBundleParams) WithTimeout(timeout time.Duration) *GetSkuBundleParams
- func (o *GetSkuBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSkuBundleReader
- type ListSkuBundlesInternalServerError
- type ListSkuBundlesOK
- type ListSkuBundlesParams
- func NewListSkuBundlesParams() *ListSkuBundlesParams
- func NewListSkuBundlesParamsWithContext(ctx context.Context) *ListSkuBundlesParams
- func NewListSkuBundlesParamsWithHTTPClient(client *http.Client) *ListSkuBundlesParams
- func NewListSkuBundlesParamsWithTimeout(timeout time.Duration) *ListSkuBundlesParams
- func (o *ListSkuBundlesParams) SetContext(ctx context.Context)
- func (o *ListSkuBundlesParams) SetHTTPClient(client *http.Client)
- func (o *ListSkuBundlesParams) SetTimeout(timeout time.Duration)
- func (o *ListSkuBundlesParams) WithContext(ctx context.Context) *ListSkuBundlesParams
- func (o *ListSkuBundlesParams) WithHTTPClient(client *http.Client) *ListSkuBundlesParams
- func (o *ListSkuBundlesParams) WithTimeout(timeout time.Duration) *ListSkuBundlesParams
- func (o *ListSkuBundlesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSkuBundlesReader
- type UpdateSkuBundleInternalServerError
- type UpdateSkuBundleNotFound
- type UpdateSkuBundleOK
- type UpdateSkuBundleParams
- func NewUpdateSkuBundleParams() *UpdateSkuBundleParams
- func NewUpdateSkuBundleParamsWithContext(ctx context.Context) *UpdateSkuBundleParams
- func NewUpdateSkuBundleParamsWithHTTPClient(client *http.Client) *UpdateSkuBundleParams
- func NewUpdateSkuBundleParamsWithTimeout(timeout time.Duration) *UpdateSkuBundleParams
- func (o *UpdateSkuBundleParams) SetBundle(bundle *models.SkuBundle)
- func (o *UpdateSkuBundleParams) SetContext(ctx context.Context)
- func (o *UpdateSkuBundleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSkuBundleParams) SetID(id string)
- func (o *UpdateSkuBundleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSkuBundleParams) WithBundle(bundle *models.SkuBundle) *UpdateSkuBundleParams
- func (o *UpdateSkuBundleParams) WithContext(ctx context.Context) *UpdateSkuBundleParams
- func (o *UpdateSkuBundleParams) WithHTTPClient(client *http.Client) *UpdateSkuBundleParams
- func (o *UpdateSkuBundleParams) WithID(id string) *UpdateSkuBundleParams
- func (o *UpdateSkuBundleParams) WithTimeout(timeout time.Duration) *UpdateSkuBundleParams
- func (o *UpdateSkuBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSkuBundleReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
/*
CreateSkuBundle creates s k u bundle
Creates a new sku bundle*/
CreateSkuBundle(ctx context.Context, params *CreateSkuBundleParams) (*CreateSkuBundleCreated, error)
/*
GetSkuBundle gets specific sku bundle
get sku bundle with given id*/
GetSkuBundle(ctx context.Context, params *GetSkuBundleParams) (*GetSkuBundleOK, error)
/*
GetSkuBundleByName gets specific sku bundle
get sku bundle with given name*/
GetSkuBundleByName(ctx context.Context, params *GetSkuBundleByNameParams) (*GetSkuBundleByNameOK, error)
/*
ListSkuBundles lists s k u bundles
lists all sku bundles*/
ListSkuBundles(ctx context.Context, params *ListSkuBundlesParams) (*ListSkuBundlesOK, error)
/*
UpdateSkuBundle updates specific sku bundle
Update sku bundle with given id*/
UpdateSkuBundle(ctx context.Context, params *UpdateSkuBundleParams) (*UpdateSkuBundleOK, error)
}
API is the interface of the bundle management client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for bundle management API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new bundle management API client.
func (*Client) CreateSkuBundle ¶
func (a *Client) CreateSkuBundle(ctx context.Context, params *CreateSkuBundleParams) (*CreateSkuBundleCreated, error)
CreateSkuBundle creates s k u bundle
Creates a new sku bundle
func (*Client) GetSkuBundle ¶
func (a *Client) GetSkuBundle(ctx context.Context, params *GetSkuBundleParams) (*GetSkuBundleOK, error)
GetSkuBundle gets specific sku bundle
get sku bundle with given id
func (*Client) GetSkuBundleByName ¶
func (a *Client) GetSkuBundleByName(ctx context.Context, params *GetSkuBundleByNameParams) (*GetSkuBundleByNameOK, error)
GetSkuBundleByName gets specific sku bundle
get sku bundle with given name
func (*Client) ListSkuBundles ¶
func (a *Client) ListSkuBundles(ctx context.Context, params *ListSkuBundlesParams) (*ListSkuBundlesOK, error)
ListSkuBundles lists s k u bundles
lists all sku bundles
func (*Client) UpdateSkuBundle ¶
func (a *Client) UpdateSkuBundle(ctx context.Context, params *UpdateSkuBundleParams) (*UpdateSkuBundleOK, error)
UpdateSkuBundle updates specific sku bundle
Update sku bundle with given id
type CreateSkuBundleBadRequest ¶
type CreateSkuBundleBadRequest struct {
}
CreateSkuBundleBadRequest handles this case with default header values.
invalid input, object invalid
func NewCreateSkuBundleBadRequest ¶
func NewCreateSkuBundleBadRequest() *CreateSkuBundleBadRequest
NewCreateSkuBundleBadRequest creates a CreateSkuBundleBadRequest with default headers values
func (*CreateSkuBundleBadRequest) Error ¶
func (o *CreateSkuBundleBadRequest) Error() string
type CreateSkuBundleConflict ¶
type CreateSkuBundleConflict struct {
Payload *models.ErrorResponse
}
CreateSkuBundleConflict handles this case with default header values.
an existing item already exists
func NewCreateSkuBundleConflict ¶
func NewCreateSkuBundleConflict() *CreateSkuBundleConflict
NewCreateSkuBundleConflict creates a CreateSkuBundleConflict with default headers values
func (*CreateSkuBundleConflict) Error ¶
func (o *CreateSkuBundleConflict) Error() string
func (*CreateSkuBundleConflict) GetPayload ¶
func (o *CreateSkuBundleConflict) GetPayload() *models.ErrorResponse
type CreateSkuBundleCreated ¶
type CreateSkuBundleCreated struct {
Payload *models.ItemCreatedResponse
}
CreateSkuBundleCreated handles this case with default header values.
item created
func NewCreateSkuBundleCreated ¶
func NewCreateSkuBundleCreated() *CreateSkuBundleCreated
NewCreateSkuBundleCreated creates a CreateSkuBundleCreated with default headers values
func (*CreateSkuBundleCreated) Error ¶
func (o *CreateSkuBundleCreated) Error() string
func (*CreateSkuBundleCreated) GetPayload ¶
func (o *CreateSkuBundleCreated) GetPayload() *models.ItemCreatedResponse
type CreateSkuBundleInternalServerError ¶
type CreateSkuBundleInternalServerError struct {
Payload *models.ErrorResponse
}
CreateSkuBundleInternalServerError handles this case with default header values.
unexpected error
func NewCreateSkuBundleInternalServerError ¶
func NewCreateSkuBundleInternalServerError() *CreateSkuBundleInternalServerError
NewCreateSkuBundleInternalServerError creates a CreateSkuBundleInternalServerError with default headers values
func (*CreateSkuBundleInternalServerError) Error ¶
func (o *CreateSkuBundleInternalServerError) Error() string
func (*CreateSkuBundleInternalServerError) GetPayload ¶
func (o *CreateSkuBundleInternalServerError) GetPayload() *models.ErrorResponse
type CreateSkuBundleParams ¶
type CreateSkuBundleParams struct {
/*Bundle
SKU bundle to be added
*/
Bundle *models.SkuBundle
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateSkuBundleParams contains all the parameters to send to the API endpoint for the create sku bundle operation typically these are written to a http.Request
func NewCreateSkuBundleParams ¶
func NewCreateSkuBundleParams() *CreateSkuBundleParams
NewCreateSkuBundleParams creates a new CreateSkuBundleParams object with the default values initialized.
func NewCreateSkuBundleParamsWithContext ¶
func NewCreateSkuBundleParamsWithContext(ctx context.Context) *CreateSkuBundleParams
NewCreateSkuBundleParamsWithContext creates a new CreateSkuBundleParams object with the default values initialized, and the ability to set a context for a request
func NewCreateSkuBundleParamsWithHTTPClient ¶
func NewCreateSkuBundleParamsWithHTTPClient(client *http.Client) *CreateSkuBundleParams
NewCreateSkuBundleParamsWithHTTPClient creates a new CreateSkuBundleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateSkuBundleParamsWithTimeout ¶
func NewCreateSkuBundleParamsWithTimeout(timeout time.Duration) *CreateSkuBundleParams
NewCreateSkuBundleParamsWithTimeout creates a new CreateSkuBundleParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateSkuBundleParams) SetBundle ¶
func (o *CreateSkuBundleParams) SetBundle(bundle *models.SkuBundle)
SetBundle adds the bundle to the create sku bundle params
func (*CreateSkuBundleParams) SetContext ¶
func (o *CreateSkuBundleParams) SetContext(ctx context.Context)
SetContext adds the context to the create sku bundle params
func (*CreateSkuBundleParams) SetHTTPClient ¶
func (o *CreateSkuBundleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create sku bundle params
func (*CreateSkuBundleParams) SetTimeout ¶
func (o *CreateSkuBundleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create sku bundle params
func (*CreateSkuBundleParams) WithBundle ¶
func (o *CreateSkuBundleParams) WithBundle(bundle *models.SkuBundle) *CreateSkuBundleParams
WithBundle adds the bundle to the create sku bundle params
func (*CreateSkuBundleParams) WithContext ¶
func (o *CreateSkuBundleParams) WithContext(ctx context.Context) *CreateSkuBundleParams
WithContext adds the context to the create sku bundle params
func (*CreateSkuBundleParams) WithHTTPClient ¶
func (o *CreateSkuBundleParams) WithHTTPClient(client *http.Client) *CreateSkuBundleParams
WithHTTPClient adds the HTTPClient to the create sku bundle params
func (*CreateSkuBundleParams) WithTimeout ¶
func (o *CreateSkuBundleParams) WithTimeout(timeout time.Duration) *CreateSkuBundleParams
WithTimeout adds the timeout to the create sku bundle params
func (*CreateSkuBundleParams) WriteToRequest ¶
func (o *CreateSkuBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSkuBundleReader ¶
type CreateSkuBundleReader struct {
// contains filtered or unexported fields
}
CreateSkuBundleReader is a Reader for the CreateSkuBundle structure.
func (*CreateSkuBundleReader) ReadResponse ¶
func (o *CreateSkuBundleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSkuBundleByNameInternalServerError ¶
type GetSkuBundleByNameInternalServerError struct {
Payload *models.ErrorResponse
}
GetSkuBundleByNameInternalServerError handles this case with default header values.
unexpected error
func NewGetSkuBundleByNameInternalServerError ¶
func NewGetSkuBundleByNameInternalServerError() *GetSkuBundleByNameInternalServerError
NewGetSkuBundleByNameInternalServerError creates a GetSkuBundleByNameInternalServerError with default headers values
func (*GetSkuBundleByNameInternalServerError) Error ¶
func (o *GetSkuBundleByNameInternalServerError) Error() string
func (*GetSkuBundleByNameInternalServerError) GetPayload ¶
func (o *GetSkuBundleByNameInternalServerError) GetPayload() *models.ErrorResponse
type GetSkuBundleByNameNotFound ¶
type GetSkuBundleByNameNotFound struct {
Payload *models.ErrorResponse
}
GetSkuBundleByNameNotFound handles this case with default header values.
sku bundle with name not found
func NewGetSkuBundleByNameNotFound ¶
func NewGetSkuBundleByNameNotFound() *GetSkuBundleByNameNotFound
NewGetSkuBundleByNameNotFound creates a GetSkuBundleByNameNotFound with default headers values
func (*GetSkuBundleByNameNotFound) Error ¶
func (o *GetSkuBundleByNameNotFound) Error() string
func (*GetSkuBundleByNameNotFound) GetPayload ¶
func (o *GetSkuBundleByNameNotFound) GetPayload() *models.ErrorResponse
type GetSkuBundleByNameOK ¶
GetSkuBundleByNameOK handles this case with default header values.
sku bundle returned
func NewGetSkuBundleByNameOK ¶
func NewGetSkuBundleByNameOK() *GetSkuBundleByNameOK
NewGetSkuBundleByNameOK creates a GetSkuBundleByNameOK with default headers values
func (*GetSkuBundleByNameOK) Error ¶
func (o *GetSkuBundleByNameOK) Error() string
func (*GetSkuBundleByNameOK) GetPayload ¶
func (o *GetSkuBundleByNameOK) GetPayload() *models.SkuBundle
type GetSkuBundleByNameParams ¶
type GetSkuBundleByNameParams struct {
/*Name
Id of sku bundle to be obtained
*/
Name string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSkuBundleByNameParams contains all the parameters to send to the API endpoint for the get sku bundle by name operation typically these are written to a http.Request
func NewGetSkuBundleByNameParams ¶
func NewGetSkuBundleByNameParams() *GetSkuBundleByNameParams
NewGetSkuBundleByNameParams creates a new GetSkuBundleByNameParams object with the default values initialized.
func NewGetSkuBundleByNameParamsWithContext ¶
func NewGetSkuBundleByNameParamsWithContext(ctx context.Context) *GetSkuBundleByNameParams
NewGetSkuBundleByNameParamsWithContext creates a new GetSkuBundleByNameParams object with the default values initialized, and the ability to set a context for a request
func NewGetSkuBundleByNameParamsWithHTTPClient ¶
func NewGetSkuBundleByNameParamsWithHTTPClient(client *http.Client) *GetSkuBundleByNameParams
NewGetSkuBundleByNameParamsWithHTTPClient creates a new GetSkuBundleByNameParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSkuBundleByNameParamsWithTimeout ¶
func NewGetSkuBundleByNameParamsWithTimeout(timeout time.Duration) *GetSkuBundleByNameParams
NewGetSkuBundleByNameParamsWithTimeout creates a new GetSkuBundleByNameParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSkuBundleByNameParams) SetContext ¶
func (o *GetSkuBundleByNameParams) SetContext(ctx context.Context)
SetContext adds the context to the get sku bundle by name params
func (*GetSkuBundleByNameParams) SetHTTPClient ¶
func (o *GetSkuBundleByNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sku bundle by name params
func (*GetSkuBundleByNameParams) SetName ¶
func (o *GetSkuBundleByNameParams) SetName(name string)
SetName adds the name to the get sku bundle by name params
func (*GetSkuBundleByNameParams) SetTimeout ¶
func (o *GetSkuBundleByNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sku bundle by name params
func (*GetSkuBundleByNameParams) WithContext ¶
func (o *GetSkuBundleByNameParams) WithContext(ctx context.Context) *GetSkuBundleByNameParams
WithContext adds the context to the get sku bundle by name params
func (*GetSkuBundleByNameParams) WithHTTPClient ¶
func (o *GetSkuBundleByNameParams) WithHTTPClient(client *http.Client) *GetSkuBundleByNameParams
WithHTTPClient adds the HTTPClient to the get sku bundle by name params
func (*GetSkuBundleByNameParams) WithName ¶
func (o *GetSkuBundleByNameParams) WithName(name string) *GetSkuBundleByNameParams
WithName adds the name to the get sku bundle by name params
func (*GetSkuBundleByNameParams) WithTimeout ¶
func (o *GetSkuBundleByNameParams) WithTimeout(timeout time.Duration) *GetSkuBundleByNameParams
WithTimeout adds the timeout to the get sku bundle by name params
func (*GetSkuBundleByNameParams) WriteToRequest ¶
func (o *GetSkuBundleByNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSkuBundleByNameReader ¶
type GetSkuBundleByNameReader struct {
// contains filtered or unexported fields
}
GetSkuBundleByNameReader is a Reader for the GetSkuBundleByName structure.
func (*GetSkuBundleByNameReader) ReadResponse ¶
func (o *GetSkuBundleByNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSkuBundleInternalServerError ¶
type GetSkuBundleInternalServerError struct {
Payload *models.ErrorResponse
}
GetSkuBundleInternalServerError handles this case with default header values.
unexpected error
func NewGetSkuBundleInternalServerError ¶
func NewGetSkuBundleInternalServerError() *GetSkuBundleInternalServerError
NewGetSkuBundleInternalServerError creates a GetSkuBundleInternalServerError with default headers values
func (*GetSkuBundleInternalServerError) Error ¶
func (o *GetSkuBundleInternalServerError) Error() string
func (*GetSkuBundleInternalServerError) GetPayload ¶
func (o *GetSkuBundleInternalServerError) GetPayload() *models.ErrorResponse
type GetSkuBundleNotFound ¶
type GetSkuBundleNotFound struct {
Payload *models.ErrorResponse
}
GetSkuBundleNotFound handles this case with default header values.
sku bundle with id not found
func NewGetSkuBundleNotFound ¶
func NewGetSkuBundleNotFound() *GetSkuBundleNotFound
NewGetSkuBundleNotFound creates a GetSkuBundleNotFound with default headers values
func (*GetSkuBundleNotFound) Error ¶
func (o *GetSkuBundleNotFound) Error() string
func (*GetSkuBundleNotFound) GetPayload ¶
func (o *GetSkuBundleNotFound) GetPayload() *models.ErrorResponse
type GetSkuBundleOK ¶
GetSkuBundleOK handles this case with default header values.
sku bundle returned
func NewGetSkuBundleOK ¶
func NewGetSkuBundleOK() *GetSkuBundleOK
NewGetSkuBundleOK creates a GetSkuBundleOK with default headers values
func (*GetSkuBundleOK) Error ¶
func (o *GetSkuBundleOK) Error() string
func (*GetSkuBundleOK) GetPayload ¶
func (o *GetSkuBundleOK) GetPayload() *models.SkuBundle
type GetSkuBundleParams ¶
type GetSkuBundleParams struct {
/*ID
Id of sku bundle to be obtained
*/
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSkuBundleParams contains all the parameters to send to the API endpoint for the get sku bundle operation typically these are written to a http.Request
func NewGetSkuBundleParams ¶
func NewGetSkuBundleParams() *GetSkuBundleParams
NewGetSkuBundleParams creates a new GetSkuBundleParams object with the default values initialized.
func NewGetSkuBundleParamsWithContext ¶
func NewGetSkuBundleParamsWithContext(ctx context.Context) *GetSkuBundleParams
NewGetSkuBundleParamsWithContext creates a new GetSkuBundleParams object with the default values initialized, and the ability to set a context for a request
func NewGetSkuBundleParamsWithHTTPClient ¶
func NewGetSkuBundleParamsWithHTTPClient(client *http.Client) *GetSkuBundleParams
NewGetSkuBundleParamsWithHTTPClient creates a new GetSkuBundleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSkuBundleParamsWithTimeout ¶
func NewGetSkuBundleParamsWithTimeout(timeout time.Duration) *GetSkuBundleParams
NewGetSkuBundleParamsWithTimeout creates a new GetSkuBundleParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSkuBundleParams) SetContext ¶
func (o *GetSkuBundleParams) SetContext(ctx context.Context)
SetContext adds the context to the get sku bundle params
func (*GetSkuBundleParams) SetHTTPClient ¶
func (o *GetSkuBundleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sku bundle params
func (*GetSkuBundleParams) SetID ¶
func (o *GetSkuBundleParams) SetID(id string)
SetID adds the id to the get sku bundle params
func (*GetSkuBundleParams) SetTimeout ¶
func (o *GetSkuBundleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sku bundle params
func (*GetSkuBundleParams) WithContext ¶
func (o *GetSkuBundleParams) WithContext(ctx context.Context) *GetSkuBundleParams
WithContext adds the context to the get sku bundle params
func (*GetSkuBundleParams) WithHTTPClient ¶
func (o *GetSkuBundleParams) WithHTTPClient(client *http.Client) *GetSkuBundleParams
WithHTTPClient adds the HTTPClient to the get sku bundle params
func (*GetSkuBundleParams) WithID ¶
func (o *GetSkuBundleParams) WithID(id string) *GetSkuBundleParams
WithID adds the id to the get sku bundle params
func (*GetSkuBundleParams) WithTimeout ¶
func (o *GetSkuBundleParams) WithTimeout(timeout time.Duration) *GetSkuBundleParams
WithTimeout adds the timeout to the get sku bundle params
func (*GetSkuBundleParams) WriteToRequest ¶
func (o *GetSkuBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSkuBundleReader ¶
type GetSkuBundleReader struct {
// contains filtered or unexported fields
}
GetSkuBundleReader is a Reader for the GetSkuBundle structure.
func (*GetSkuBundleReader) ReadResponse ¶
func (o *GetSkuBundleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSkuBundlesInternalServerError ¶
type ListSkuBundlesInternalServerError struct {
Payload *models.ErrorResponse
}
ListSkuBundlesInternalServerError handles this case with default header values.
unexpected error
func NewListSkuBundlesInternalServerError ¶
func NewListSkuBundlesInternalServerError() *ListSkuBundlesInternalServerError
NewListSkuBundlesInternalServerError creates a ListSkuBundlesInternalServerError with default headers values
func (*ListSkuBundlesInternalServerError) Error ¶
func (o *ListSkuBundlesInternalServerError) Error() string
func (*ListSkuBundlesInternalServerError) GetPayload ¶
func (o *ListSkuBundlesInternalServerError) GetPayload() *models.ErrorResponse
type ListSkuBundlesOK ¶
ListSkuBundlesOK handles this case with default header values.
list of skus bundles returned
func NewListSkuBundlesOK ¶
func NewListSkuBundlesOK() *ListSkuBundlesOK
NewListSkuBundlesOK creates a ListSkuBundlesOK with default headers values
func (*ListSkuBundlesOK) Error ¶
func (o *ListSkuBundlesOK) Error() string
func (*ListSkuBundlesOK) GetPayload ¶
func (o *ListSkuBundlesOK) GetPayload() []*models.SkuBundle
type ListSkuBundlesParams ¶
type ListSkuBundlesParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListSkuBundlesParams contains all the parameters to send to the API endpoint for the list sku bundles operation typically these are written to a http.Request
func NewListSkuBundlesParams ¶
func NewListSkuBundlesParams() *ListSkuBundlesParams
NewListSkuBundlesParams creates a new ListSkuBundlesParams object with the default values initialized.
func NewListSkuBundlesParamsWithContext ¶
func NewListSkuBundlesParamsWithContext(ctx context.Context) *ListSkuBundlesParams
NewListSkuBundlesParamsWithContext creates a new ListSkuBundlesParams object with the default values initialized, and the ability to set a context for a request
func NewListSkuBundlesParamsWithHTTPClient ¶
func NewListSkuBundlesParamsWithHTTPClient(client *http.Client) *ListSkuBundlesParams
NewListSkuBundlesParamsWithHTTPClient creates a new ListSkuBundlesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListSkuBundlesParamsWithTimeout ¶
func NewListSkuBundlesParamsWithTimeout(timeout time.Duration) *ListSkuBundlesParams
NewListSkuBundlesParamsWithTimeout creates a new ListSkuBundlesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListSkuBundlesParams) SetContext ¶
func (o *ListSkuBundlesParams) SetContext(ctx context.Context)
SetContext adds the context to the list sku bundles params
func (*ListSkuBundlesParams) SetHTTPClient ¶
func (o *ListSkuBundlesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list sku bundles params
func (*ListSkuBundlesParams) SetTimeout ¶
func (o *ListSkuBundlesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list sku bundles params
func (*ListSkuBundlesParams) WithContext ¶
func (o *ListSkuBundlesParams) WithContext(ctx context.Context) *ListSkuBundlesParams
WithContext adds the context to the list sku bundles params
func (*ListSkuBundlesParams) WithHTTPClient ¶
func (o *ListSkuBundlesParams) WithHTTPClient(client *http.Client) *ListSkuBundlesParams
WithHTTPClient adds the HTTPClient to the list sku bundles params
func (*ListSkuBundlesParams) WithTimeout ¶
func (o *ListSkuBundlesParams) WithTimeout(timeout time.Duration) *ListSkuBundlesParams
WithTimeout adds the timeout to the list sku bundles params
func (*ListSkuBundlesParams) WriteToRequest ¶
func (o *ListSkuBundlesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSkuBundlesReader ¶
type ListSkuBundlesReader struct {
// contains filtered or unexported fields
}
ListSkuBundlesReader is a Reader for the ListSkuBundles structure.
func (*ListSkuBundlesReader) ReadResponse ¶
func (o *ListSkuBundlesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSkuBundleInternalServerError ¶
type UpdateSkuBundleInternalServerError struct {
Payload *models.ErrorResponse
}
UpdateSkuBundleInternalServerError handles this case with default header values.
unexpected error
func NewUpdateSkuBundleInternalServerError ¶
func NewUpdateSkuBundleInternalServerError() *UpdateSkuBundleInternalServerError
NewUpdateSkuBundleInternalServerError creates a UpdateSkuBundleInternalServerError with default headers values
func (*UpdateSkuBundleInternalServerError) Error ¶
func (o *UpdateSkuBundleInternalServerError) Error() string
func (*UpdateSkuBundleInternalServerError) GetPayload ¶
func (o *UpdateSkuBundleInternalServerError) GetPayload() *models.ErrorResponse
type UpdateSkuBundleNotFound ¶
type UpdateSkuBundleNotFound struct {
Payload *models.ErrorResponse
}
UpdateSkuBundleNotFound handles this case with default header values.
sku bundle with id not found
func NewUpdateSkuBundleNotFound ¶
func NewUpdateSkuBundleNotFound() *UpdateSkuBundleNotFound
NewUpdateSkuBundleNotFound creates a UpdateSkuBundleNotFound with default headers values
func (*UpdateSkuBundleNotFound) Error ¶
func (o *UpdateSkuBundleNotFound) Error() string
func (*UpdateSkuBundleNotFound) GetPayload ¶
func (o *UpdateSkuBundleNotFound) GetPayload() *models.ErrorResponse
type UpdateSkuBundleOK ¶
UpdateSkuBundleOK handles this case with default header values.
updated sku bundle
func NewUpdateSkuBundleOK ¶
func NewUpdateSkuBundleOK() *UpdateSkuBundleOK
NewUpdateSkuBundleOK creates a UpdateSkuBundleOK with default headers values
func (*UpdateSkuBundleOK) Error ¶
func (o *UpdateSkuBundleOK) Error() string
func (*UpdateSkuBundleOK) GetPayload ¶
func (o *UpdateSkuBundleOK) GetPayload() *models.SkuBundle
type UpdateSkuBundleParams ¶
type UpdateSkuBundleParams struct {
/*Bundle
updated sku bundle containing all parameters except id
*/
Bundle *models.SkuBundle
/*ID
Id of sku bundle to be obtained
*/
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateSkuBundleParams contains all the parameters to send to the API endpoint for the update sku bundle operation typically these are written to a http.Request
func NewUpdateSkuBundleParams ¶
func NewUpdateSkuBundleParams() *UpdateSkuBundleParams
NewUpdateSkuBundleParams creates a new UpdateSkuBundleParams object with the default values initialized.
func NewUpdateSkuBundleParamsWithContext ¶
func NewUpdateSkuBundleParamsWithContext(ctx context.Context) *UpdateSkuBundleParams
NewUpdateSkuBundleParamsWithContext creates a new UpdateSkuBundleParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateSkuBundleParamsWithHTTPClient ¶
func NewUpdateSkuBundleParamsWithHTTPClient(client *http.Client) *UpdateSkuBundleParams
NewUpdateSkuBundleParamsWithHTTPClient creates a new UpdateSkuBundleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateSkuBundleParamsWithTimeout ¶
func NewUpdateSkuBundleParamsWithTimeout(timeout time.Duration) *UpdateSkuBundleParams
NewUpdateSkuBundleParamsWithTimeout creates a new UpdateSkuBundleParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateSkuBundleParams) SetBundle ¶
func (o *UpdateSkuBundleParams) SetBundle(bundle *models.SkuBundle)
SetBundle adds the bundle to the update sku bundle params
func (*UpdateSkuBundleParams) SetContext ¶
func (o *UpdateSkuBundleParams) SetContext(ctx context.Context)
SetContext adds the context to the update sku bundle params
func (*UpdateSkuBundleParams) SetHTTPClient ¶
func (o *UpdateSkuBundleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update sku bundle params
func (*UpdateSkuBundleParams) SetID ¶
func (o *UpdateSkuBundleParams) SetID(id string)
SetID adds the id to the update sku bundle params
func (*UpdateSkuBundleParams) SetTimeout ¶
func (o *UpdateSkuBundleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update sku bundle params
func (*UpdateSkuBundleParams) WithBundle ¶
func (o *UpdateSkuBundleParams) WithBundle(bundle *models.SkuBundle) *UpdateSkuBundleParams
WithBundle adds the bundle to the update sku bundle params
func (*UpdateSkuBundleParams) WithContext ¶
func (o *UpdateSkuBundleParams) WithContext(ctx context.Context) *UpdateSkuBundleParams
WithContext adds the context to the update sku bundle params
func (*UpdateSkuBundleParams) WithHTTPClient ¶
func (o *UpdateSkuBundleParams) WithHTTPClient(client *http.Client) *UpdateSkuBundleParams
WithHTTPClient adds the HTTPClient to the update sku bundle params
func (*UpdateSkuBundleParams) WithID ¶
func (o *UpdateSkuBundleParams) WithID(id string) *UpdateSkuBundleParams
WithID adds the id to the update sku bundle params
func (*UpdateSkuBundleParams) WithTimeout ¶
func (o *UpdateSkuBundleParams) WithTimeout(timeout time.Duration) *UpdateSkuBundleParams
WithTimeout adds the timeout to the update sku bundle params
func (*UpdateSkuBundleParams) WriteToRequest ¶
func (o *UpdateSkuBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSkuBundleReader ¶
type UpdateSkuBundleReader struct {
// contains filtered or unexported fields
}
UpdateSkuBundleReader is a Reader for the UpdateSkuBundle structure.
func (*UpdateSkuBundleReader) ReadResponse ¶
func (o *UpdateSkuBundleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- bundle_management_client.go
- create_sku_bundle_parameters.go
- create_sku_bundle_responses.go
- get_sku_bundle_by_name_parameters.go
- get_sku_bundle_by_name_responses.go
- get_sku_bundle_parameters.go
- get_sku_bundle_responses.go
- list_sku_bundles_parameters.go
- list_sku_bundles_responses.go
- update_sku_bundle_parameters.go
- update_sku_bundle_responses.go