def list_by_users_as_lazy(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil)
      response = list_by_users_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_users_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_users_as_lazy(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil)
      response = list_by_users_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_users_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists the collection of subscriptions of the specified user.

 @param resource_group_name [String] The name of the resource group.
 @param service_name [String] The name of the API Management service.
 @param uid [String] User identifier. Must be unique in the current API
 Management service instance.
 @param filter [String] | Field        | Supported operators    | Supported
 functions                         |
 |--------------|------------------------|---------------------------------------------|
 | id           | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
 endswith |
 | name         | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
 endswith |
 | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
 endswith |
 | userId       | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
 endswith |
 | productId    | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
 endswith |
 | state        | eq                     |
 |
 @param top [Integer] Number of records to return.
 @param skip [Integer] Number of records to skip.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [SubscriptionCollection] which provide lazy access to pages of the
 response.