+/*
+GetAllSubscriptions returns list of subscriptions
+*/
+func (a *Client) GetAllSubscriptions(params *GetAllSubscriptionsParams) (*GetAllSubscriptionsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetAllSubscriptionsParams()
+ }
+
+ result, err := a.transport.Submit(&runtime.ClientOperation{
+ ID: "getAllSubscriptions",
+ Method: "GET",
+ PathPattern: "/subscriptions",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{""},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetAllSubscriptionsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ })
+ if err != nil {
+ return nil, err
+ }
+ return result.(*GetAllSubscriptionsOK), nil
+
+}
+