def begin_suspend_as_lazy(resource_group_name, name, custom_headers:nil)
      response = begin_suspend_async(resource_group_name, name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          begin_suspend_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def begin_suspend_as_lazy(resource_group_name, name, custom_headers:nil)
      response = begin_suspend_async(resource_group_name, name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          begin_suspend_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Suspend an App Service Environment.

 Suspend an App Service Environment.

 @param resource_group_name [String] Name of the resource group to which the
 resource belongs.
 @param name [String] Name of the App Service Environment.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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