lib/hubspot/codegen/crm/quotes/api/associations_api.rb in hubspot-api-client-8.0.1 vs lib/hubspot/codegen/crm/quotes/api/associations_api.rb in hubspot-api-client-9.0.0
- old
+ new
@@ -4,11 +4,11 @@
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 4.2.3
+OpenAPI Generator version: 4.3.1
=end
require 'cgi'
@@ -23,20 +23,26 @@
end
# List associations of a quote by type
# @param quote_id [String]
# @param to_object_type [String]
# @param [Hash] opts the optional parameters
+ # @option opts [Boolean] :paginate_associations (default to false)
+ # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
+ # @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
# @return [CollectionResponseAssociatedId]
def get_all(quote_id, to_object_type, opts = {})
data, _status_code, _headers = get_all_with_http_info(quote_id, to_object_type, opts)
data
end
# List associations of a quote by type
# @param quote_id [String]
# @param to_object_type [String]
# @param [Hash] opts the optional parameters
+ # @option opts [Boolean] :paginate_associations
+ # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
+ # @option opts [Integer] :limit The maximum number of results to display per page.
# @return [Array<(CollectionResponseAssociatedId, Integer, Hash)>] CollectionResponseAssociatedId data, response status code and response headers
def get_all_with_http_info(quote_id, to_object_type, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
end
@@ -51,9 +57,12 @@
# resource path
local_var_path = '/crm/v3/objects/quotes/{quoteId}/associations/{toObjectType}'.sub('{' + 'quoteId' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])