=begin #Custom Workflow Actions #Create custom workflow actions The version of the OpenAPI document: v4 Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1 =end require 'spec_helper' require 'json' # Unit tests for Hubspot::Automation::Actions::FunctionsApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'FunctionsApi' do before do # run before each test @api_instance = Hubspot::Automation::Actions::FunctionsApi.new end after do # run after each test end describe 'test an instance of FunctionsApi' do it 'should create an instance of FunctionsApi' do expect(@api_instance).to be_instance_of(Hubspot::Automation::Actions::FunctionsApi) end end # unit tests for archive # Delete a custom action function # Delete a function for a custom workflow action. This will remove the function itself as well as removing the association between the function and the custom action. This can't be undone. # @param definition_id The ID of the custom workflow action # @param function_type The type of function. This determines when the function will be called. # @param function_id The ID qualifier for the function. This is used to specify which input field a function is associated with for `PRE_FETCH_OPTIONS` and `POST_FETCH_OPTIONS` function types. # @param app_id # @param [Hash] opts the optional parameters # @return [nil] describe 'archive test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for archive_by_function_type # Delete a custom action function # Delete a function for a custom workflow action. This will remove the function itself as well as removing the association between the function and the custom action. This can't be undone. # @param definition_id The ID of the custom workflow action. # @param function_type The type of function. This determines when the function will be called. # @param app_id # @param [Hash] opts the optional parameters # @return [nil] describe 'archive_by_function_type test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for create_or_replace # Create or replace a custom action function # Creates or replaces a function for a custom workflow action. # @param definition_id The ID of the custom workflow action. # @param function_type The type of function. This determines when the function will be called. # @param function_id The ID qualifier for the function. This is used to specify which input field a function is associated with for `PRE_FETCH_OPTIONS` and `POST_FETCH_OPTIONS` function types. # @param app_id # @param body The function source code. Must be valid JavaScript code. # @param [Hash] opts the optional parameters # @return [ActionFunctionIdentifier] describe 'create_or_replace test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for create_or_replace_by_function_type # Create or replace a custom action function # Creates or replaces a function for a custom workflow action. # @param definition_id The ID of the custom workflow action. # @param function_type The type of function. This determines when the function will be called. # @param app_id # @param body The function source code. Must be valid JavaScript code. # @param [Hash] opts the optional parameters # @return [ActionFunctionIdentifier] describe 'create_or_replace_by_function_type test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_by_function_type # Get a custom action function # Returns the given function for a custom workflow action. # @param definition_id The ID of the custom workflow action. # @param function_type The type of function. This determines when the function will be called. # @param app_id # @param [Hash] opts the optional parameters # @return [ActionFunction] describe 'get_by_function_type test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_by_id # Get a custom action function # Returns the given function for a custom workflow action. # @param definition_id The ID of the custom workflow action. # @param function_type The type of function. This determines when the function will be called. # @param function_id The ID qualifier for the function. This is used to specify which input field a function is associated with for `PRE_FETCH_OPTIONS` and `POST_FETCH_OPTIONS` function types. # @param app_id # @param [Hash] opts the optional parameters # @return [ActionFunction] describe 'get_by_id test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_page # Get all custom action functions # Returns a list of all functions that are associated with the given custom workflow action. # @param definition_id The ID of the custom workflow action. # @param app_id # @param [Hash] opts the optional parameters # @return [CollectionResponseActionFunctionIdentifierNoPaging] describe 'get_page test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end