lib/hubspot/codegen/crm/tickets/api/public_object_api.rb in hubspot-api-client-15.0.2 vs lib/hubspot/codegen/crm/tickets/api/public_object_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'
@@ -51,24 +51,28 @@
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
# HTTP header 'Content-Type'
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
+ content_type = @api_client.select_header_content_type(['application/json'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
- post_body = opts[:body] || @api_client.object_to_http_body(public_merge_input)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(public_merge_input)
# return_type
- return_type = opts[:return_type] || 'SimplePublicObject'
+ return_type = opts[:debug_return_type] || 'SimplePublicObject'
# auth_names
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
new_options = opts.merge(
+ :operation => :"PublicObjectApi.merge",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,