def list_at_subscription_scope_as_lazy(deployment_name, top:nil, custom_headers:nil)
      response = list_at_subscription_scope_async(deployment_name, top:top, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_at_subscription_scope_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_at_subscription_scope_as_lazy(deployment_name, top:nil, custom_headers:nil)
      response = list_at_subscription_scope_async(deployment_name, top:top, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_at_subscription_scope_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets all deployments operations for a deployment.

 @param deployment_name [String] The name of the deployment with the operation
 to get.
 @param top [Integer] The number of results to return.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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