lib/hubspot/codegen/crm/tickets/api/batch_api.rb in hubspot-api-client-2.3.2 vs lib/hubspot/codegen/crm/tickets/api/batch_api.rb in hubspot-api-client-3.0.0.pre.beta

- old
+ new

@@ -24,23 +24,23 @@ # Archive a batch of tickets by ID # Archive a list of tickets given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent). # @param [Hash] opts the optional parameters # @option opts [BatchInputSimplePublicObjectId] :batch_input_simple_public_object_id # @return [nil] - def archive_batch(opts = {}) - archive_batch_with_http_info(opts) + def archive(opts = {}) + archive_with_http_info(opts) nil end # Archive a batch of tickets by ID # Archive a list of tickets given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent). # @param [Hash] opts the optional parameters # @option opts [BatchInputSimplePublicObjectId] :batch_input_simple_public_object_id # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def archive_batch_with_http_info(opts = {}) + def archive_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BatchApi.archive_batch ...' + @api_client.config.logger.debug 'Calling API: BatchApi.archive ...' end # resource path local_var_path = '/crm/v3/objects/tickets/batch/archive' # query parameters @@ -74,33 +74,33 @@ :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: BatchApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: BatchApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a batch of tickets # Create a batch of tickets. This follows the same rules as creating an individual object. # @param [Hash] opts the optional parameters # @option opts [BatchInputSimplePublicObjectInput] :batch_input_simple_public_object_input # @return [BatchResponseSimplePublicObject] - def create_batch(opts = {}) - data, _status_code, _headers = create_batch_with_http_info(opts) + def create(opts = {}) + data, _status_code, _headers = create_with_http_info(opts) data end # Create a batch of tickets # Create a batch of tickets. This follows the same rules as creating an individual object. # @param [Hash] opts the optional parameters # @option opts [BatchInputSimplePublicObjectInput] :batch_input_simple_public_object_input # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers - def create_batch_with_http_info(opts = {}) + def create_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BatchApi.create_batch ...' + @api_client.config.logger.debug 'Calling API: BatchApi.create ...' end # resource path local_var_path = '/crm/v3/objects/tickets/batch/create' # query parameters @@ -134,35 +134,35 @@ :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: BatchApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: BatchApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Read a batch of tickets by internal ID, or unique property values # Read a list of tickets given a collection of IDs. Use the `properties` request body property to control which properties are returned. # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false) # @option opts [BatchReadInputSimplePublicObjectId] :batch_read_input_simple_public_object_id # @return [BatchResponseSimplePublicObject] - def read_batch(opts = {}) - data, _status_code, _headers = read_batch_with_http_info(opts) + def read(opts = {}) + data, _status_code, _headers = read_with_http_info(opts) data end # Read a batch of tickets by internal ID, or unique property values # Read a list of tickets given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned. # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Whether to return only results that have been archived. # @option opts [BatchReadInputSimplePublicObjectId] :batch_read_input_simple_public_object_id # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers - def read_batch_with_http_info(opts = {}) + def read_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...' + @api_client.config.logger.debug 'Calling API: BatchApi.read ...' end # resource path local_var_path = '/crm/v3/objects/tickets/batch/read' # query parameters @@ -197,33 +197,33 @@ :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: BatchApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a batch of tickets # Perform a partial upate on a batch of tickets. This follows the same rules as performing partial updates on an individual object. # @param [Hash] opts the optional parameters # @option opts [BatchInputSimplePublicObjectBatchInput] :batch_input_simple_public_object_batch_input # @return [BatchResponseSimplePublicObject] - def update_batch(opts = {}) - data, _status_code, _headers = update_batch_with_http_info(opts) + def update(opts = {}) + data, _status_code, _headers = update_with_http_info(opts) data end # Update a batch of tickets # Perform a partial upate on a batch of tickets. This follows the same rules as performing partial updates on an individual object. # @param [Hash] opts the optional parameters # @option opts [BatchInputSimplePublicObjectBatchInput] :batch_input_simple_public_object_batch_input # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers - def update_batch_with_http_info(opts = {}) + def update_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BatchApi.update_batch ...' + @api_client.config.logger.debug 'Calling API: BatchApi.update ...' end # resource path local_var_path = '/crm/v3/objects/tickets/batch/update' # query parameters @@ -257,10 +257,10 @@ :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: BatchApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: BatchApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end