lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb in hubspot-api-client-15.0.2 vs lib/hubspot/codegen/crm/objects/feedback_submissions/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'
@@ -60,11 +60,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/feedback_submissions/{feedbackSubmissionId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'feedbackSubmissionId' + '}', CGI.escape(feedback_submission_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/feedback_submissions/{feedbackSubmissionId}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'feedbackSubmissionId' + '}', CGI.escape(feedback_submission_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
@@ -74,19 +74,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,
@@ -138,11 +139,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/feedback_submissions/{feedbackSubmissionId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'feedbackSubmissionId' + '}', CGI.escape(feedback_submission_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/feedback_submissions/{feedbackSubmissionId}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'feedbackSubmissionId' + '}', CGI.escape(feedback_submission_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
@@ -152,19 +153,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,
@@ -193,11 +195,11 @@
# List associations of a feedback submission by type
# @param feedback_submission_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 `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.
+ # @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_page_with_http_info(feedback_submission_id, to_object_type, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: AssociationsApi.get_page ...'
end
@@ -208,11 +210,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_page"
end
# resource path
- local_var_path = '/crm/v3/objects/feedback_submissions/{feedbackSubmissionId}/associations/{toObjectType}'.sub('{' + 'feedbackSubmissionId' + '}', CGI.escape(feedback_submission_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
+ local_var_path = '/crm/v4/objects/feedback_submissions/{feedbackSubmissionId}/associations/{toObjectType}'.sub('{' + 'feedbackSubmissionId' + '}', CGI.escape(feedback_submission_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?
@@ -224,18 +226,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_page",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,