From aea745484746c4ee53c7c0bf5f46cff329b2a587 Mon Sep 17 00:00:00 2001 From: Phrase Date: Tue, 1 Oct 2024 11:34:42 +0000 Subject: [PATCH] Deploying from phrase/openapi@25e90f46 --- docs/FormatsApi.md | 12 +++--------- docs/KeyCreateParameters.md | 2 +- docs/KeyUpdateParameters.md | 2 +- docs/ProjectCreateParameters.md | 2 +- docs/ProjectUpdateParameters.md | 2 +- docs/ScreenshotUpdateParameters.md | 2 +- lib/phrase/api/formats_api.rb | 3 --- spec/api/formats_api_spec.rb | 1 - 8 files changed, 8 insertions(+), 18 deletions(-) diff --git a/docs/FormatsApi.md b/docs/FormatsApi.md index 4b6193d..d625275 100644 --- a/docs/FormatsApi.md +++ b/docs/FormatsApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## formats_list -> Array<Format> formats_list(opts) +> Array<Format> formats_list List formats @@ -33,13 +33,10 @@ Phrase.configure do |config| end api_instance = Phrase::FormatsApi.new -opts = { - x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional) -} begin #List formats - result = api_instance.formats_list(opts) + result = api_instance.formats_list pp result rescue Phrase::ApiError => e puts "Exception when calling FormatsApi->formats_list: #{e}" @@ -48,10 +45,7 @@ end ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional] +This endpoint does not need any parameter. ### Return type diff --git a/docs/KeyCreateParameters.md b/docs/KeyCreateParameters.md index 9bd4ccd..c17f5fa 100644 --- a/docs/KeyCreateParameters.md +++ b/docs/KeyCreateParameters.md @@ -35,7 +35,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch, data_type: number, tags: awesome-feature,needs-proofreading, max_characters_allowed: 140, - screenshot: [B@6241ef96, + screenshot: [B@39876e1f, remove_screenshot: null, unformatted: null, default_translation_content: Default translation content, diff --git a/docs/KeyUpdateParameters.md b/docs/KeyUpdateParameters.md index 6a74dbe..f14f3c4 100644 --- a/docs/KeyUpdateParameters.md +++ b/docs/KeyUpdateParameters.md @@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch, data_type: number, tags: awesome-feature,needs-proofreading, max_characters_allowed: 140, - screenshot: [B@5865b0f6, + screenshot: [B@1c8ab147, remove_screenshot: null, unformatted: null, xml_space_preserve: null, diff --git a/docs/ProjectCreateParameters.md b/docs/ProjectCreateParameters.md index 2845b4d..3bb064a 100644 --- a/docs/ProjectCreateParameters.md +++ b/docs/ProjectCreateParameters.md @@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project, main_format: yml, media: Python, shares_translation_memory: true, - project_image: [B@7e2f1454, + project_image: [B@9bd7c1, remove_project_image: null, account_id: abcd1234, point_of_contact: abcd1234, diff --git a/docs/ProjectUpdateParameters.md b/docs/ProjectUpdateParameters.md index 9087adf..271051e 100644 --- a/docs/ProjectUpdateParameters.md +++ b/docs/ProjectUpdateParameters.md @@ -38,7 +38,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234, main_format: yml, media: Python, shares_translation_memory: true, - project_image: [B@35b1e5e5, + project_image: [B@6028b018, remove_project_image: false, workflow: review, machine_translation_enabled: true, diff --git a/docs/ScreenshotUpdateParameters.md b/docs/ScreenshotUpdateParameters.md index 25c83e9..8b906ce 100644 --- a/docs/ScreenshotUpdateParameters.md +++ b/docs/ScreenshotUpdateParameters.md @@ -17,7 +17,7 @@ require 'Phrase' instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch, name: A screenshot name, description: A screenshot description, - filename: [B@644acaff) + filename: [B@67fc98fe) ``` diff --git a/lib/phrase/api/formats_api.rb b/lib/phrase/api/formats_api.rb index db08066..a82d5ae 100644 --- a/lib/phrase/api/formats_api.rb +++ b/lib/phrase/api/formats_api.rb @@ -10,7 +10,6 @@ def initialize(api_client = ApiClient.default) # List formats # Get a handy list of all localization file formats supported in Phrase. # @param [Hash] opts the optional parameters - # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [Array] def formats_list(opts = {}) data, _status_code, _headers = formats_list_with_http_info(opts) @@ -20,7 +19,6 @@ def formats_list(opts = {}) # List formats # Get a handy list of all localization file formats supported in Phrase. # @param [Hash] opts the optional parameters - # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [Array<(Response<(Array)>, Integer, Hash)>] Response<(Array)> data, response status code and response headers def formats_list_with_http_info(opts = {}) if @api_client.config.debugging @@ -36,7 +34,6 @@ def formats_list_with_http_info(opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil? # form parameters form_params = opts[:form_params] || {} diff --git a/spec/api/formats_api_spec.rb b/spec/api/formats_api_spec.rb index e339cf4..dda1f57 100644 --- a/spec/api/formats_api_spec.rb +++ b/spec/api/formats_api_spec.rb @@ -24,7 +24,6 @@ # List formats # Get a handy list of all localization file formats supported in Phrase. # @param [Hash] opts the optional parameters - # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [Array] describe 'formats_list test' do it 'should work' do