1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
13 "github.com/go-openapi/errors"
14 "github.com/go-openapi/runtime"
15 cr "github.com/go-openapi/runtime/client"
16 "github.com/go-openapi/strfmt"
19 // NewGetAllSubscriptionsParams creates a new GetAllSubscriptionsParams object
20 // with the default values initialized.
21 func NewGetAllSubscriptionsParams() *GetAllSubscriptionsParams {
23 return &GetAllSubscriptionsParams{
25 timeout: cr.DefaultTimeout,
29 // NewGetAllSubscriptionsParamsWithTimeout creates a new GetAllSubscriptionsParams object
30 // with the default values initialized, and the ability to set a timeout on a request
31 func NewGetAllSubscriptionsParamsWithTimeout(timeout time.Duration) *GetAllSubscriptionsParams {
33 return &GetAllSubscriptionsParams{
39 // NewGetAllSubscriptionsParamsWithContext creates a new GetAllSubscriptionsParams object
40 // with the default values initialized, and the ability to set a context for a request
41 func NewGetAllSubscriptionsParamsWithContext(ctx context.Context) *GetAllSubscriptionsParams {
43 return &GetAllSubscriptionsParams{
49 // NewGetAllSubscriptionsParamsWithHTTPClient creates a new GetAllSubscriptionsParams object
50 // with the default values initialized, and the ability to set a custom HTTPClient for a request
51 func NewGetAllSubscriptionsParamsWithHTTPClient(client *http.Client) *GetAllSubscriptionsParams {
53 return &GetAllSubscriptionsParams{
58 /*GetAllSubscriptionsParams contains all the parameters to send to the API endpoint
59 for the get all subscriptions operation typically these are written to a http.Request
61 type GetAllSubscriptionsParams struct {
63 Context context.Context
64 HTTPClient *http.Client
67 // WithTimeout adds the timeout to the get all subscriptions params
68 func (o *GetAllSubscriptionsParams) WithTimeout(timeout time.Duration) *GetAllSubscriptionsParams {
73 // SetTimeout adds the timeout to the get all subscriptions params
74 func (o *GetAllSubscriptionsParams) SetTimeout(timeout time.Duration) {
78 // WithContext adds the context to the get all subscriptions params
79 func (o *GetAllSubscriptionsParams) WithContext(ctx context.Context) *GetAllSubscriptionsParams {
84 // SetContext adds the context to the get all subscriptions params
85 func (o *GetAllSubscriptionsParams) SetContext(ctx context.Context) {
89 // WithHTTPClient adds the HTTPClient to the get all subscriptions params
90 func (o *GetAllSubscriptionsParams) WithHTTPClient(client *http.Client) *GetAllSubscriptionsParams {
91 o.SetHTTPClient(client)
95 // SetHTTPClient adds the HTTPClient to the get all subscriptions params
96 func (o *GetAllSubscriptionsParams) SetHTTPClient(client *http.Client) {
100 // WriteToRequest writes these params to a swagger request
101 func (o *GetAllSubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
103 if err := r.SetTimeout(o.timeout); err != nil {
109 return errors.CompositeValidationError(res...)