lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb in hubspot-api-client-15.0.2 vs lib/hubspot/codegen/crm/objects/notes/api/basic_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,19 +60,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 => :"BasicApi.archive",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -118,25 +119,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(simple_public_object_input)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_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 => :"BasicApi.create",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -170,11 +175,11 @@
# @param note_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
- # @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)
# @option opts [String] :id_property The name of a property whose values are unique for this object type
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
def get_by_id_with_http_info(note_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
@@ -201,19 +206,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 => :"BasicApi.get_by_id",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -243,16 +249,16 @@
end
# List
# Read a page of notes. Control what is returned via the `properties` query param.
# @param [Hash] opts the optional parameters
- # @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 10)
# @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 [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
- # @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<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
def get_page_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
end
@@ -275,19 +281,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] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
+ return_type = opts[:debug_return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
# auth_names
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
new_options = opts.merge(
+ :operation => :"BasicApi.get_page",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -342,24 +349,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(simple_public_object_input)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_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 => :"BasicApi.update",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,