def list_by_resource_group(resource_group_name, service_endpoint_policy_name, custom_headers:nil)
      first_page = list_by_resource_group_as_lazy(resource_group_name, service_endpoint_policy_name, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_by_resource_group(resource_group_name, service_endpoint_policy_name, custom_headers:nil)
      first_page = list_by_resource_group_as_lazy(resource_group_name, service_endpoint_policy_name, custom_headers:custom_headers)
      first_page.get_all_items
    end
Gets all service endpoint policy definitions in a service end point policy.

 @param resource_group_name [String] The name of the resource group.
 @param service_endpoint_policy_name [String] The name of the service endpoint
 policy name.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Array<ServiceEndpointPolicyDefinition>] operation results.