require 'spec_helper' require 'json' # Unit tests for Phrase::CustomMetadataApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'CustomMetadataApi' do before do # run before each test @api_instance = Phrase::CustomMetadataApi.new end after do # run after each test end describe 'test an instance of CustomMetadataApi' do it 'should create an instance of CustomMetadataApi' do expect(@api_instance).to be_instance_of(Phrase::CustomMetadataApi) end end # unit tests for custom_metadata_properties_delete # Destroy property # Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above. # @param account_id Account ID # @param id ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [nil] describe 'custom_metadata_properties_delete 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 custom_metadata_properties_list # List properties # List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above. # @param account_id Account ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [CustomMetadataDataType] :data_type Data Type of Custom Metadata Property # @option opts [String] :project_id id of project that the properties belong to # @option opts [Integer] :page Page number # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default # @option opts [String] :q query to find a property by name # @option opts [String] :sort Sort criteria. Can be one of: name, data_type, created_at. # @option opts [String] :order Order direction. Can be one of: asc, desc. # @return [Array] describe 'custom_metadata_properties_list 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 custom_metadata_property_create # Create a property # Create a new custom metadata property. # @param account_id Account ID # @param custom_metadata_properties_create_parameters # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [CustomMetadataProperty] describe 'custom_metadata_property_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 custom_metadata_property_show # Get a single property # Get details of a single custom property. # @param account_id Account ID # @param id ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [CustomMetadataProperty] describe 'custom_metadata_property_show 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 custom_metadata_property_update # Update a property # Update an existing custom metadata property. # @param account_id Account ID # @param id ID # @param custom_metadata_properties_update_parameters # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [CustomMetadataProperty] describe 'custom_metadata_property_update test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end