X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fclientapi%2Fxapp%2Fget_xapp_config_list_parameters.go;fp=pkg%2Fclientapi%2Fxapp%2Fget_xapp_config_list_parameters.go;h=b577424ced86df24535b2f55af51f8c65f3ccf89;hb=3602bf801fef17e317cb35a4c710118ec80908b9;hp=0000000000000000000000000000000000000000;hpb=060448c051013852d463bc13bfc5f0aa3696ac9c;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/clientapi/xapp/get_xapp_config_list_parameters.go b/pkg/clientapi/xapp/get_xapp_config_list_parameters.go new file mode 100644 index 0000000..b577424 --- /dev/null +++ b/pkg/clientapi/xapp/get_xapp_config_list_parameters.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package xapp + +// 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" + + strfmt "github.com/go-openapi/strfmt" +) + +// NewGetXappConfigListParams creates a new GetXappConfigListParams object +// with the default values initialized. +func NewGetXappConfigListParams() *GetXappConfigListParams { + + return &GetXappConfigListParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewGetXappConfigListParamsWithTimeout creates a new GetXappConfigListParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewGetXappConfigListParamsWithTimeout(timeout time.Duration) *GetXappConfigListParams { + + return &GetXappConfigListParams{ + + timeout: timeout, + } +} + +// NewGetXappConfigListParamsWithContext creates a new GetXappConfigListParams object +// with the default values initialized, and the ability to set a context for a request +func NewGetXappConfigListParamsWithContext(ctx context.Context) *GetXappConfigListParams { + + return &GetXappConfigListParams{ + + Context: ctx, + } +} + +// NewGetXappConfigListParamsWithHTTPClient creates a new GetXappConfigListParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewGetXappConfigListParamsWithHTTPClient(client *http.Client) *GetXappConfigListParams { + + return &GetXappConfigListParams{ + HTTPClient: client, + } +} + +/*GetXappConfigListParams contains all the parameters to send to the API endpoint +for the get xapp config list operation typically these are written to a http.Request +*/ +type GetXappConfigListParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the get xapp config list params +func (o *GetXappConfigListParams) WithTimeout(timeout time.Duration) *GetXappConfigListParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get xapp config list params +func (o *GetXappConfigListParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get xapp config list params +func (o *GetXappConfigListParams) WithContext(ctx context.Context) *GetXappConfigListParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get xapp config list params +func (o *GetXappConfigListParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get xapp config list params +func (o *GetXappConfigListParams) WithHTTPClient(client *http.Client) *GetXappConfigListParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get xapp config list params +func (o *GetXappConfigListParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *GetXappConfigListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +}