Cyclops 4 HPC is the purpose built stack to support large HPC centers with resource accounting and billing of cluster as well as cloud resources.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cyclops-4-hpc/services/plan-manager/client/bundle_management/get_sku_bundle_parameters.go

136 lines
3.5 KiB

// Code generated by go-swagger; DO NOT EDIT.
package bundle_management
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"
)
// NewGetSkuBundleParams creates a new GetSkuBundleParams object
// with the default values initialized.
func NewGetSkuBundleParams() *GetSkuBundleParams {
var ()
return &GetSkuBundleParams{
timeout: cr.DefaultTimeout,
}
}
// NewGetSkuBundleParamsWithTimeout creates a new GetSkuBundleParams object
// with the default values initialized, and the ability to set a timeout on a request
func NewGetSkuBundleParamsWithTimeout(timeout time.Duration) *GetSkuBundleParams {
var ()
return &GetSkuBundleParams{
timeout: timeout,
}
}
// NewGetSkuBundleParamsWithContext creates a new GetSkuBundleParams object
// with the default values initialized, and the ability to set a context for a request
func NewGetSkuBundleParamsWithContext(ctx context.Context) *GetSkuBundleParams {
var ()
return &GetSkuBundleParams{
Context: ctx,
}
}
// NewGetSkuBundleParamsWithHTTPClient creates a new GetSkuBundleParams object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSkuBundleParamsWithHTTPClient(client *http.Client) *GetSkuBundleParams {
var ()
return &GetSkuBundleParams{
HTTPClient: client,
}
}
/*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
*/
type GetSkuBundleParams struct {
/*ID
Id of sku bundle to be obtained
*/
ID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithTimeout adds the timeout to the get sku bundle params
func (o *GetSkuBundleParams) WithTimeout(timeout time.Duration) *GetSkuBundleParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the get sku bundle params
func (o *GetSkuBundleParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the get sku bundle params
func (o *GetSkuBundleParams) WithContext(ctx context.Context) *GetSkuBundleParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the get sku bundle params
func (o *GetSkuBundleParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the get sku bundle params
func (o *GetSkuBundleParams) WithHTTPClient(client *http.Client) *GetSkuBundleParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the get sku bundle params
func (o *GetSkuBundleParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithID adds the id to the get sku bundle params
func (o *GetSkuBundleParams) WithID(id string) *GetSkuBundleParams {
o.SetID(id)
return o
}
// SetID adds the id to the get sku bundle params
func (o *GetSkuBundleParams) SetID(id string) {
o.ID = id
}
// WriteToRequest writes these params to a swagger request
func (o *GetSkuBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param id
if err := r.SetPathParam("id", o.ID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}