Skip to content

Commit

Permalink
Deploying from phrase/openapi@25e90f46
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Oct 1, 2024
1 parent d4ac00b commit aea7454
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 18 deletions.
12 changes: 3 additions & 9 deletions docs/FormatsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Method | HTTP request | Description

## formats_list

> Array<Format> formats_list(opts)
> Array<Format> formats_list
List formats

Expand All @@ -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}"
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/KeyCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion docs/KeyUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion docs/ProjectCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion docs/ProjectUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion docs/ScreenshotUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```


3 changes: 0 additions & 3 deletions lib/phrase/api/formats_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<Format>]
def formats_list(opts = {})
data, _status_code, _headers = formats_list_with_http_info(opts)
Expand All @@ -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<Format>)>, Integer, Hash)>] Response<(Array<Format>)> data, response status code and response headers
def formats_list_with_http_info(opts = {})
if @api_client.config.debugging
Expand All @@ -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] || {}
Expand Down
1 change: 0 additions & 1 deletion spec/api/formats_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<Format>]
describe 'formats_list test' do
it 'should work' do
Expand Down

0 comments on commit aea7454

Please sign in to comment.