def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
      response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
      response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets the authorization rules for a NotificationHub.

 @param resource_group_name [String] The name of the resource group.
 @param namespace_name [String] The namespace name
 @param notification_hub_name [String] The notification hub name.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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