def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, tags:nil, custom_headers:nil)
      first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, tags:tags, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, tags:nil, custom_headers:nil)
      first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, tags:tags, custom_headers:custom_headers)
      first_page.get_all_items
    end
Lists a collection of the operations for the specified API.

 @param resource_group_name [String] The name of the resource group.
 @param service_name [String] The name of the API Management service.
 @param api_id [String] API revision identifier. Must be unique in the current
 API Management service instance. Non-current revision has ;rev=n as a suffix
 where n is the revision number.
 @param filter [String] |   Field     |     Usage     |     Supported
 operators     |     Supported functions
 |</br>|-------------|-------------|-------------|-------------|</br>| name |
 filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
 | </br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof,
 contains, startswith, endswith | </br>| method | filter | ge, le, eq, ne, gt,
 lt | substringof, contains, startswith, endswith | </br>| description |
 filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
 | </br>| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof,
 contains, startswith, endswith | </br>
 @param top [Integer] Number of records to return.
 @param skip [Integer] Number of records to skip.
 @param tags [String] Include tags in the response.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Array<OperationContract>] operation results.