def list_at_subscription_scope(filter:nil, top:nil, custom_headers:nil)
      first_page = list_at_subscription_scope_as_lazy(filter:filter, top:top, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_at_subscription_scope(filter:nil, top:nil, custom_headers:nil)
      first_page = list_at_subscription_scope_as_lazy(filter:filter, top:top, custom_headers:custom_headers)
      first_page.get_all_items
    end
Get all the deployments for a subscription.

 @param filter [String] The filter to apply on the operation. For example, you
 can use $filter=provisioningState eq '{state}'.
 @param top [Integer] The number of results to get. If null is passed, returns
 all deployments.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Array<DeploymentExtended>] operation results.