X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fclientapi%2Fquery%2Fget_all_subscriptions_parameters.go;fp=pkg%2Fclientapi%2Fquery%2Fget_all_subscriptions_parameters.go;h=94f3b84889e6adaaa0b1c39786d2ef9a381f8c84;hb=9568a2d73b96516b27f54650e309f0d157fb97d9;hp=0000000000000000000000000000000000000000;hpb=b4c7039b6a720c2b35deb79b3018472243677c70;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/clientapi/query/get_all_subscriptions_parameters.go b/pkg/clientapi/query/get_all_subscriptions_parameters.go new file mode 100644 index 0000000..94f3b84 --- /dev/null +++ b/pkg/clientapi/query/get_all_subscriptions_parameters.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package query + +// 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" +) + +// NewGetAllSubscriptionsParams creates a new GetAllSubscriptionsParams object +// with the default values initialized. +func NewGetAllSubscriptionsParams() *GetAllSubscriptionsParams { + + return &GetAllSubscriptionsParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewGetAllSubscriptionsParamsWithTimeout creates a new GetAllSubscriptionsParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewGetAllSubscriptionsParamsWithTimeout(timeout time.Duration) *GetAllSubscriptionsParams { + + return &GetAllSubscriptionsParams{ + + timeout: timeout, + } +} + +// NewGetAllSubscriptionsParamsWithContext creates a new GetAllSubscriptionsParams object +// with the default values initialized, and the ability to set a context for a request +func NewGetAllSubscriptionsParamsWithContext(ctx context.Context) *GetAllSubscriptionsParams { + + return &GetAllSubscriptionsParams{ + + Context: ctx, + } +} + +// NewGetAllSubscriptionsParamsWithHTTPClient creates a new GetAllSubscriptionsParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewGetAllSubscriptionsParamsWithHTTPClient(client *http.Client) *GetAllSubscriptionsParams { + + return &GetAllSubscriptionsParams{ + HTTPClient: client, + } +} + +/*GetAllSubscriptionsParams contains all the parameters to send to the API endpoint +for the get all subscriptions operation typically these are written to a http.Request +*/ +type GetAllSubscriptionsParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the get all subscriptions params +func (o *GetAllSubscriptionsParams) WithTimeout(timeout time.Duration) *GetAllSubscriptionsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get all subscriptions params +func (o *GetAllSubscriptionsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get all subscriptions params +func (o *GetAllSubscriptionsParams) WithContext(ctx context.Context) *GetAllSubscriptionsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get all subscriptions params +func (o *GetAllSubscriptionsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get all subscriptions params +func (o *GetAllSubscriptionsParams) WithHTTPClient(client *http.Client) *GetAllSubscriptionsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get all subscriptions params +func (o *GetAllSubscriptionsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *GetAllSubscriptionsParams) 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 +}