=begin #Blog Post endpoints #Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1 =end require 'spec_helper' require 'json' # Unit tests for Hubspot::Cms::Blogs::Tags::BlogTagsApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'BlogTagsApi' do before do # run before each test @api_instance = Hubspot::Cms::Blogs::Tags::BlogTagsApi.new end after do # run after each test end describe 'test an instance of BlogTagsApi' do it 'should create an instance of BlogTagsApi' do expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Tags::BlogTagsApi) end end # unit tests for archive # Delete a Blog Tag # Delete the Blog Tag object identified by the id in the path. # @param object_id The Blog Tag id. # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Whether to return only results that have been archived. # @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_batch # Delete a batch of Blog Tags # Delete the Blog Tag objects identified in the request body. # @param batch_input_string The JSON array of Blog Tag ids. # @param [Hash] opts the optional parameters # @return [nil] describe 'archive_batch 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 attach_to_lang_group # Attach a Blog Tag to a multi-language group # Attach a Blog Tag to a multi-language group. # @param attach_to_lang_primary_request_v_next The JSON representation of the AttachToLangPrimaryRequest object. # @param [Hash] opts the optional parameters # @return [Error] describe 'attach_to_lang_group 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 # Create a new Blog Tag # Create a new Blog Tag. # @param tag The JSON representation of a new Blog Tag. # @param [Hash] opts the optional parameters # @return [Tag] describe 'create 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_batch # Create a batch of Blog Tags # Create the Blog Tag objects detailed in the request body. # @param batch_input_tag The JSON array of new Blog Tags to create. # @param [Hash] opts the optional parameters # @return [BatchResponseTag] describe 'create_batch 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_lang_variation # Create a new language variation # Create a new language variation from an existing Blog Tag # @param tag_clone_request_v_next The JSON representation of the ContentLanguageCloneRequest object. # @param [Hash] opts the optional parameters # @return [Tag] describe 'create_lang_variation 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 detach_from_lang_group # Detach a Blog Tag from a multi-language group # Detach a Blog Tag from a multi-language group. # @param detach_from_lang_group_request_v_next The JSON representation of the DetachFromLangGroupRequest object. # @param [Hash] opts the optional parameters # @return [Error] describe 'detach_from_lang_group 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 # Retrieve a Blog Tag # Retrieve the Blog Tag object identified by the id in the path. # @param object_id The Blog Tag id. # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Specifies whether to return deleted Blog Tags. Defaults to `false`. # @return [Tag] 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 Blog Tags # Get the list of blog tags. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits. # @param [Hash] opts the optional parameters # @option opts [DateTime] :created_at Only return Blog Tags created at exactly the specified time. # @option opts [DateTime] :created_after Only return Blog Tags created after the specified time. # @option opts [DateTime] :created_before Only return Blog Tags created before the specified time. # @option opts [DateTime] :updated_at Only return Blog Tags last updated at exactly the specified time. # @option opts [DateTime] :updated_after Only return Blog Tags last updated after the specified time. # @option opts [DateTime] :updated_before Only return Blog Tags last updated before the specified time. # @option opts [Array] :sort Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default. # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. # @option opts [Integer] :limit The maximum number of results to return. Default is 100. # @option opts [Boolean] :archived Specifies whether to return deleted Blog Tags. Defaults to `false`. # @return [CollectionResponseWithTotalTagForwardPaging] 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 # unit tests for read_batch # Retrieve a batch of Blog Tags # Retrieve the Blog Tag objects identified in the request body. # @param batch_input_string The JSON array of Blog Tag ids. # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Specifies whether to return deleted Blog Tags. Defaults to `false`. # @return [BatchResponseTag] describe 'read_batch 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 set_lang_primary # Set a new primary language # Set a Blog Tag as the primary language of a multi-language group. # @param set_new_language_primary_request_v_next The JSON representation of the SetNewLanguagePrimaryRequest object. # @param [Hash] opts the optional parameters # @return [nil] describe 'set_lang_primary 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 update # Update a Blog Tag # Sparse updates a single Blog Tag object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified. # @param object_id The Blog Tag id. # @param tag The JSON representation of the updated Blog Tag. # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Specifies whether to update deleted Blog Tags. Defaults to `false`. # @return [Tag] describe 'update 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 update_batch # Update a batch of Blog Tags # Update the Blog Tag objects identified in the request body. # @param batch_input_json_node A JSON array of the JSON representations of the updated Blog Tags. # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Specifies whether to update deleted Blog Tags. Defaults to `false`. # @return [BatchResponseTag] describe 'update_batch 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 update_langs # Update languages of multi-language group # Explicitly set new languages for each Blog Tag in a multi-language group. # @param update_languages_request_v_next The JSON representation of the UpdateLanguagesRequest object. # @param [Hash] opts the optional parameters # @return [Error] describe 'update_langs test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end