lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb in hubspot-api-client-15.0.2 vs lib/hubspot/codegen/crm/objects/tasks/api/batch_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'
@@ -52,25 +52,29 @@
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
# 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(batch_input_simple_public_object_id)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_simple_public_object_id)
# 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 => :"BatchApi.archive",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -114,25 +118,29 @@
# 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(batch_input_simple_public_object_input)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_simple_public_object_input)
# return_type
- return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
+ return_type = opts[:debug_return_type] || 'BatchResponseSimplePublicObject'
# auth_names
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
new_options = opts.merge(
+ :operation => :"BatchApi.create",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -157,11 +165,11 @@
end
# Read a batch of tasks by internal ID, or unique property values
# @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
# @param [Hash] opts the optional parameters
- # @option opts [Boolean] :archived Whether to return only results that have been archived.
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
# @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
def read_with_http_info(batch_read_input_simple_public_object_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: BatchApi.read ...'
end
@@ -179,25 +187,29 @@
# 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(batch_read_input_simple_public_object_id)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_read_input_simple_public_object_id)
# return_type
- return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
+ return_type = opts[:debug_return_type] || 'BatchResponseSimplePublicObject'
# auth_names
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
new_options = opts.merge(
+ :operation => :"BatchApi.read",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -241,24 +253,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(batch_input_simple_public_object_batch_input)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_simple_public_object_batch_input)
# return_type
- return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
+ return_type = opts[:debug_return_type] || 'BatchResponseSimplePublicObject'
# auth_names
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
new_options = opts.merge(
+ :operation => :"BatchApi.update",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,