lib/hubspot/codegen/crm/deals/api/associations_api.rb in hubspot-api-client-15.0.2 vs lib/hubspot/codegen/crm/deals/api/associations_api.rb in hubspot-api-client-16.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.3.1 +OpenAPI Generator version: 6.2.1 =end require 'cgi' @@ -59,11 +59,11 @@ # verify the required parameter 'association_type' is set if @api_client.config.client_side_validation && association_type.nil? fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.archive" end # resource path - local_var_path = '/crm/v3/objects/deals/{dealId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'dealId' + '}', CGI.escape(deal_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s)) + local_var_path = '/crm/v4/objects/deals/{dealId}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'dealId' + '}', CGI.escape(deal_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters @@ -73,19 +73,20 @@ # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:body] + post_body = opts[:debug_body] # return_type - return_type = opts[:return_type] + return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] + auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] new_options = opts.merge( + :operation => :"AssociationsApi.archive", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, @@ -137,11 +138,11 @@ # verify the required parameter 'association_type' is set if @api_client.config.client_side_validation && association_type.nil? fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.create" end # resource path - local_var_path = '/crm/v3/objects/deals/{dealId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'dealId' + '}', CGI.escape(deal_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s)) + local_var_path = '/crm/v4/objects/deals/{dealId}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'dealId' + '}', CGI.escape(deal_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters @@ -151,19 +152,20 @@ # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:body] + post_body = opts[:debug_body] # return_type - return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations' + return_type = opts[:debug_return_type] || 'SimplePublicObjectWithAssociations' # auth_names - auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] + auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] new_options = opts.merge( + :operation => :"AssociationsApi.create", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, @@ -192,11 +194,11 @@ # List associations of a deal by type # @param deal_id [String] # @param to_object_type [String] # @param [Hash] opts the optional parameters # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results. - # @option opts [Integer] :limit The maximum number of results to display per page. + # @option opts [Integer] :limit The maximum number of results to display per page. (default to 500) # @return [Array<(CollectionResponseAssociatedIdForwardPaging, Integer, Hash)>] CollectionResponseAssociatedIdForwardPaging data, response status code and response headers def get_all_with_http_info(deal_id, to_object_type, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...' end @@ -207,11 +209,11 @@ # verify the required parameter 'to_object_type' is set if @api_client.config.client_side_validation && to_object_type.nil? fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.get_all" end # resource path - local_var_path = '/crm/v3/objects/deals/{dealId}/associations/{toObjectType}'.sub('{' + 'dealId' + '}', CGI.escape(deal_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)) + local_var_path = '/crm/v4/objects/deals/{dealId}/associations/{toObjectType}'.sub('{' + 'dealId' + '}', CGI.escape(deal_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? @@ -223,18 +225,19 @@ # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:body] + post_body = opts[:debug_body] # return_type - return_type = opts[:return_type] || 'CollectionResponseAssociatedIdForwardPaging' + return_type = opts[:debug_return_type] || 'CollectionResponseAssociatedIdForwardPaging' # auth_names - auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] + auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] new_options = opts.merge( + :operation => :"AssociationsApi.get_all", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names,