Enhancements of REST-based E2 subscription interface
[ric-plt/xapp-frame.git] / pkg / clientapi / xapp / get_xapp_config_list_parameters.go
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 (file)
index 0000000..b577424
--- /dev/null
@@ -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
+}