Method: Propertyware::PortfoliosApi#get_portfolios_with_http_info
- Defined in:
- lib/propertyware/api/portfolios_api.rb
#get_portfolios_with_http_info(opts = {}) ⇒ Array<(Array<Portfolio>, Integer, Hash)>
Retrieve all portfolios Retrieves a list of portfolios.<br/><br/><b>Required permission:</b><br/><span class="permissionBlock">PORTFOLIOS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>name</code>, <code>abbreviation</code>, <code>lastmodifieddatetime</code>, <code>id</code>
474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 |
# File 'lib/propertyware/api/portfolios_api.rb', line 474 def get_portfolios_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PortfoliosApi.get_portfolios ...' end # resource path local_var_path = '/portfolios' # query parameters query_params = opts[:query_params] || {} query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'lastModifiedDateTimeStart'] = opts[:'last_modified_date_time_start'] if !opts[:'last_modified_date_time_start'].nil? query_params[:'lastModifiedDateTimeEnd'] = opts[:'last_modified_date_time_end'] if !opts[:'last_modified_date_time_end'].nil? query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'includeDeactivated'] = opts[:'include_deactivated'] if !opts[:'include_deactivated'].nil? query_params[:'includeCustomFields'] = opts[:'include_custom_fields'] if !opts[:'include_custom_fields'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<Portfolio>' # auth_names auth_names = opts[:debug_auth_names] || ['organizationId', 'clientId', 'clientSecret'] = opts.merge( :operation => :"PortfoliosApi.get_portfolios", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PortfoliosApi#get_portfolios\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |