def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, filter:nil, top:nil, label:nil, custom_headers:nil)
      first_page = list_by_resource_as_lazy(resource_group_name, provider_namespace, resource_type_name, resource_name, filter:filter, top:top, label:label, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, filter:nil, top:nil, label:nil, custom_headers:nil)
      first_page = list_by_resource_as_lazy(resource_group_name, provider_namespace, resource_type_name, resource_name, filter:filter, top:top, label:label, custom_headers:custom_headers)
      first_page.get_all_items
    end
List all event subscriptions for a specific topic

 List all event subscriptions that have been created for a specific topic

 @param resource_group_name [String] The name of the resource group within the
 user's subscription.
 @param provider_namespace [String] Namespace of the provider of the topic
 @param resource_type_name [String] Name of the resource type
 @param resource_name [String] Name of the resource
 @param filter [String] Filter the results using OData syntax.
 @param top [Integer] The number of results to return.
 @param label [String] The label used to filter the results for event
 subscriptions list.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Array<EventSubscription>] operation results.