def list_deployments_at_management_group_as_lazy(management_group_id, remediation_name, query_options:nil, custom_headers:nil)
      response = list_deployments_at_management_group_async(management_group_id, remediation_name, query_options:query_options, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_deployments_at_management_group_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_deployments_at_management_group_as_lazy(management_group_id, remediation_name, query_options:nil, custom_headers:nil)
      response = list_deployments_at_management_group_async(management_group_id, remediation_name, query_options:query_options, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_deployments_at_management_group_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets all deployments for a remediation at management group scope.

 @param management_group_id [String] Management group ID.
 @param remediation_name [String] The name of the remediation.
 @param query_options [QueryOptions] Additional parameters for the operation
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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