def list_by_profile(resource_group_name, profile_name, custom_headers:nil)
      first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_by_profile(resource_group_name, profile_name, custom_headers:nil)
      first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers)
      first_page.get_all_items
    end
Lists existing CDN endpoints.

 @param resource_group_name [String] Name of the Resource group within the
 Azure subscription.
 @param profile_name [String] Name of the CDN profile which is unique within
 the resource group.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Array<Endpoint>] operation results.