phrase 4.26.0 → 4.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +14 -3
  4. data/docs/CheckIssue.md +33 -0
  5. data/docs/ChecksApi.md +146 -0
  6. data/docs/JobCreateParameters.md +1 -1
  7. data/docs/KeyCreateParameters.md +1 -1
  8. data/docs/KeyUpdateParameters.md +1 -1
  9. data/docs/Locale.md +6 -0
  10. data/docs/LocaleCreateParameters.md +2 -0
  11. data/docs/LocaleDetails.md +6 -0
  12. data/docs/LocaleUpdateParameters.md +2 -0
  13. data/docs/MachineTranslationApi.md +263 -0
  14. data/docs/MachineTranslationLocaleProviderMapping.md +21 -0
  15. data/docs/MachineTranslationLocaleProviderMappingsCreateParameters.md +21 -0
  16. data/docs/MachineTranslationSettings.md +23 -0
  17. data/docs/MachineTranslationSettingsUpdateParameters.md +17 -0
  18. data/docs/MemberUpdateParameters.md +2 -2
  19. data/docs/MembersApi.md +1 -1
  20. data/docs/ProjectCreateParameters.md +9 -3
  21. data/docs/ProjectDetails.md +5 -1
  22. data/docs/ProjectUpdateParameters.md +9 -3
  23. data/docs/ProjectsApi.md +1 -1
  24. data/docs/ScreenshotUpdateParameters.md +1 -1
  25. data/docs/SpacesApi.md +3 -1
  26. data/docs/Upload.md +3 -1
  27. data/docs/UploadsApi.md +4 -4
  28. data/lib/phrase/api/checks_api.rb +174 -0
  29. data/lib/phrase/api/machine_translation_api.rb +302 -0
  30. data/lib/phrase/api/members_api.rb +2 -2
  31. data/lib/phrase/api/projects_api.rb +2 -2
  32. data/lib/phrase/api/spaces_api.rb +3 -0
  33. data/lib/phrase/api/uploads_api.rb +6 -6
  34. data/lib/phrase/models/check_issue.rb +319 -0
  35. data/lib/phrase/models/job_create_parameters.rb +1 -1
  36. data/lib/phrase/models/locale.rb +31 -1
  37. data/lib/phrase/models/locale_create_parameters.rb +11 -1
  38. data/lib/phrase/models/locale_details.rb +31 -1
  39. data/lib/phrase/models/locale_update_parameters.rb +11 -1
  40. data/lib/phrase/models/machine_translation_locale_provider_mapping.rb +217 -0
  41. data/lib/phrase/models/machine_translation_locale_provider_mappings_create_parameters.rb +232 -0
  42. data/lib/phrase/models/machine_translation_settings.rb +230 -0
  43. data/lib/phrase/models/machine_translation_settings_update_parameters.rb +198 -0
  44. data/lib/phrase/models/member_update_parameters.rb +2 -2
  45. data/lib/phrase/models/project_create_parameters.rb +48 -2
  46. data/lib/phrase/models/project_details.rb +53 -1
  47. data/lib/phrase/models/project_update_parameters.rb +48 -2
  48. data/lib/phrase/models/upload.rb +13 -1
  49. data/lib/phrase/version.rb +1 -1
  50. data/lib/phrase.rb +7 -0
  51. data/spec/api/checks_api_spec.rb +56 -0
  52. data/spec/api/machine_translation_api_spec.rb +79 -0
  53. data/spec/api/members_api_spec.rb +1 -1
  54. data/spec/api/projects_api_spec.rb +1 -1
  55. data/spec/api/spaces_api_spec.rb +1 -0
  56. data/spec/models/check_issue_spec.rb +85 -0
  57. data/spec/models/locale_create_parameters_spec.rb +6 -0
  58. data/spec/models/locale_details_spec.rb +18 -0
  59. data/spec/models/locale_spec.rb +18 -0
  60. data/spec/models/locale_update_parameters_spec.rb +6 -0
  61. data/spec/models/machine_translation_locale_provider_mapping_spec.rb +41 -0
  62. data/spec/models/machine_translation_locale_provider_mappings_create_parameters_spec.rb +41 -0
  63. data/spec/models/machine_translation_settings_spec.rb +47 -0
  64. data/spec/models/machine_translation_settings_update_parameters_spec.rb +29 -0
  65. data/spec/models/project_create_parameters_spec.rb +22 -0
  66. data/spec/models/project_details_spec.rb +16 -0
  67. data/spec/models/project_update_parameters_spec.rb +22 -0
  68. data/spec/models/upload_spec.rb +6 -0
  69. metadata +292 -264
@@ -8,8 +8,12 @@ module Phrase
8
8
 
9
9
  attr_accessor :format
10
10
 
11
+ # Processing state of the upload: `initialized`, `processing`, `success`, or `error`. `error` means processing failed — for example the file could not be parsed, or a provided `file_format` didn't match the file's actual content. Poll this field until it leaves `initialized`/`processing` to get the final outcome.
11
12
  attr_accessor :state
12
13
 
14
+ # A user-facing message explaining why the upload failed, or `null` if the upload did not fail. This message is intended for display only. Its wording may change at any time and it should not be parsed or relied upon programmatically.
15
+ attr_accessor :error_message
16
+
13
17
  # Unique tag of the upload
14
18
  attr_accessor :tag
15
19
 
@@ -34,6 +38,7 @@ module Phrase
34
38
  :'filename' => :'filename',
35
39
  :'format' => :'format',
36
40
  :'state' => :'state',
41
+ :'error_message' => :'error_message',
37
42
  :'tag' => :'tag',
38
43
  :'tags' => :'tags',
39
44
  :'url' => :'url',
@@ -51,6 +56,7 @@ module Phrase
51
56
  :'filename' => :'String',
52
57
  :'format' => :'String',
53
58
  :'state' => :'String',
59
+ :'error_message' => :'String',
54
60
  :'tag' => :'String',
55
61
  :'tags' => :'Array<String>',
56
62
  :'url' => :'String',
@@ -64,6 +70,7 @@ module Phrase
64
70
  # List of attributes with nullable: true
65
71
  def self.openapi_nullable
66
72
  Set.new([
73
+ :'error_message',
67
74
  ])
68
75
  end
69
76
 
@@ -98,6 +105,10 @@ module Phrase
98
105
  self.state = attributes[:'state']
99
106
  end
100
107
 
108
+ if attributes.key?(:'error_message')
109
+ self.error_message = attributes[:'error_message']
110
+ end
111
+
101
112
  if attributes.key?(:'tag')
102
113
  self.tag = attributes[:'tag']
103
114
  end
@@ -151,6 +162,7 @@ module Phrase
151
162
  filename == o.filename &&
152
163
  format == o.format &&
153
164
  state == o.state &&
165
+ error_message == o.error_message &&
154
166
  tag == o.tag &&
155
167
  tags == o.tags &&
156
168
  url == o.url &&
@@ -169,7 +181,7 @@ module Phrase
169
181
  # Calculates hash code according to all attributes.
170
182
  # @return [Integer] Hash code
171
183
  def hash
172
- [id, filename, format, state, tag, tags, url, user, summary, created_at, updated_at].hash
184
+ [id, filename, format, state, error_message, tag, tags, url, user, summary, created_at, updated_at].hash
173
185
  end
174
186
 
175
187
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.26.0'
2
+ VERSION = '4.28.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -36,6 +36,7 @@ require 'phrase/models/branch_merge_parameters'
36
36
  require 'phrase/models/branch_name'
37
37
  require 'phrase/models/branch_sync_parameters'
38
38
  require 'phrase/models/branch_update_parameters'
39
+ require 'phrase/models/check_issue'
39
40
  require 'phrase/models/comment'
40
41
  require 'phrase/models/comment_create_parameters'
41
42
  require 'phrase/models/comment_create_parameters1'
@@ -133,6 +134,10 @@ require 'phrase/models/locale_statistics'
133
134
  require 'phrase/models/locale_team_preview'
134
135
  require 'phrase/models/locale_update_parameters'
135
136
  require 'phrase/models/locale_user_preview'
137
+ require 'phrase/models/machine_translation_locale_provider_mapping'
138
+ require 'phrase/models/machine_translation_locale_provider_mappings_create_parameters'
139
+ require 'phrase/models/machine_translation_settings'
140
+ require 'phrase/models/machine_translation_settings_update_parameters'
136
141
  require 'phrase/models/member'
137
142
  require 'phrase/models/member_project_detail'
138
143
  require 'phrase/models/member_project_detail_project_roles_inner'
@@ -252,6 +257,7 @@ require 'phrase/api/automation_events_api'
252
257
  require 'phrase/api/automations_api'
253
258
  require 'phrase/api/blacklisted_keys_api'
254
259
  require 'phrase/api/branches_api'
260
+ require 'phrase/api/checks_api'
255
261
  require 'phrase/api/comment_reactions_api'
256
262
  require 'phrase/api/comment_replies_api'
257
263
  require 'phrase/api/comments_api'
@@ -277,6 +283,7 @@ require 'phrase/api/keys_figma_attachments_api'
277
283
  require 'phrase/api/linked_keys_api'
278
284
  require 'phrase/api/locale_downloads_api'
279
285
  require 'phrase/api/locales_api'
286
+ require 'phrase/api/machine_translation_api'
280
287
  require 'phrase/api/members_api'
281
288
  require 'phrase/api/notification_groups_api'
282
289
  require 'phrase/api/notifications_api'
@@ -0,0 +1,56 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::ChecksApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'ChecksApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::ChecksApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of ChecksApi' do
18
+ it 'should create an instance of ChecksApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::ChecksApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for check_issue_dismiss
24
+ # Dismiss a check issue
25
+ # **Note:** The Checks API is still in development and might change in subsequent releases. Mark a check issue as dismissed so it no longer appears on the list of active check issues.
26
+ # @param project_id Project ID
27
+ # @param id Check Issue ID
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [CheckIssue]
31
+ describe 'check_issue_dismiss test' do
32
+ it 'should work' do
33
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
34
+ end
35
+ end
36
+
37
+ # unit tests for check_issues_list
38
+ # List check issues
39
+ # **Note:** The Checks API is still in development and might change in subsequent releases. List check issues for the given project. Results can be filtered by locale, check name, and state.
40
+ # @param project_id Project ID
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
43
+ # @option opts [Integer] :page Page number
44
+ # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
45
+ # @option opts [String] :state Filter by state of the check issue. Can be one of: &#x60;active&#x60;, &#x60;solved&#x60;, &#x60;dismissed&#x60;, &#x60;all&#x60;. Defaults to &#x60;active&#x60;.
46
+ # @option opts [Array<String>] :locale_ids Filter by one or more locale IDs.
47
+ # @option opts [Array<String>] :check_names Filter by one or more check names. Valid values are: - &#x60;translation_content_length&#x60; — the translation exceeds the maximum character limit configured for the key. - &#x60;translation_placeholder_usage&#x60; — the translation is missing placeholders present in the source, or contains unexpected ones. - &#x60;translation_glossary_usage&#x60; — the translation does not follow the glossary term translations.
48
+ # @option opts [String] :created_since Return only check issues created on or after this ISO 8601 datetime. Returns 400 if the value is not a valid date-time.
49
+ # @return [Array<CheckIssue>]
50
+ describe 'check_issues_list test' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ end
@@ -0,0 +1,79 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::MachineTranslationApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'MachineTranslationApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::MachineTranslationApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of MachineTranslationApi' do
18
+ it 'should create an instance of MachineTranslationApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::MachineTranslationApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for machine_translation_locale_provider_mappings_create
24
+ # Create a locale provider mapping
25
+ # Creates a locale-pair-specific machine translation provider override for the account. When a mapping exists for a given source/target locale pair, that provider is used instead of the account default. Only one mapping may exist per source/target locale pair; attempting to create a duplicate returns a validation error. The source and target locale codes must differ.
26
+ # @param account_id Account ID
27
+ # @param machine_translation_locale_provider_mappings_create_parameters
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [MachineTranslationLocaleProviderMapping]
31
+ describe 'machine_translation_locale_provider_mappings_create test' do
32
+ it 'should work' do
33
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
34
+ end
35
+ end
36
+
37
+ # unit tests for machine_translation_locale_provider_mappings_destroy
38
+ # Delete a locale provider mapping
39
+ # Removes the machine translation provider override for the specified source and target locale pair. The mapping is identified by locale codes supplied as query parameters rather than a path ID.
40
+ # @param account_id Account ID
41
+ # @param source_locale_code The locale code of the source language of the mapping to delete.
42
+ # @param target_locale_code The locale code of the target language of the mapping to delete.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
45
+ # @return [nil]
46
+ describe 'machine_translation_locale_provider_mappings_destroy test' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ # unit tests for machine_translation_settings_show
53
+ # Get machine translation settings
54
+ # Returns the machine translation configuration for the account, including the default translation service, current machine translation unit usage, and any locale-pair-specific provider mappings.
55
+ # @param account_id Account ID
56
+ # @param [Hash] opts the optional parameters
57
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
58
+ # @return [MachineTranslationSettings]
59
+ describe 'machine_translation_settings_show test' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ # unit tests for machine_translation_settings_update
66
+ # Update machine translation settings
67
+ # Sets the default machine translation service for the account. Requires write access to the account&#39;s machine translation settings. Passing an empty or absent value for &#x60;default_service&#x60; resets the account to its plan default (Microsoft Translate).
68
+ # @param account_id Account ID
69
+ # @param machine_translation_settings_update_parameters
70
+ # @param [Hash] opts the optional parameters
71
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
72
+ # @return [MachineTranslationSettings]
73
+ describe 'machine_translation_settings_update test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ end
@@ -50,7 +50,7 @@ describe 'MembersApi' do
50
50
 
51
51
  # unit tests for member_update
52
52
  # Update a member
53
- # Update user permissions in the account. Developers and translators need &#x60;project_ids&#x60; and &#x60;locale_ids&#x60; assigned to access them. Access token scope must include &#x60;team.manage&#x60;.
53
+ # Update user permissions in the account. Developers and translators need &#x60;project_ids&#x60; and &#x60;locale_ids&#x60; assigned to access them. To grant account-wide language access instead of access scoped to specific projects, use &#x60;default_locale_codes&#x60;. Access token scope must include &#x60;team.manage&#x60;.
54
54
  # @param account_id Account ID
55
55
  # @param id ID
56
56
  # @param member_update_parameters
@@ -61,7 +61,7 @@ describe 'ProjectsApi' do
61
61
 
62
62
  # unit tests for project_update
63
63
  # Update a project
64
- # Update an existing project.
64
+ # Update an existing project, including its review workflow, pre-translation/autotranslate rules, and machine-translation configuration (see workflow, machine_translation_enabled, and the autotranslate_* fields below).
65
65
  # @param id ID
66
66
  # @param project_update_parameters
67
67
  # @param [Hash] opts the optional parameters
@@ -85,6 +85,7 @@ describe 'SpacesApi' do
85
85
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
86
  # @option opts [Integer] :page Page number
87
87
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
88
+ # @option opts [String] :q Filter results by name. Supports the prefix-match syntax &#x60;name:&lt;value&gt;&#x60;, which returns only spaces whose names begin with &#x60;&lt;value&gt;&#x60;. Other query formats are ignored; omitting &#x60;q&#x60; returns all accessible spaces.
88
89
  # @return [Array<Space>]
89
90
  describe 'spaces_list test' do
90
91
  it 'should work' do
@@ -0,0 +1,85 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::CheckIssue
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'CheckIssue' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::CheckIssue.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of CheckIssue' do
19
+ it 'should create an instance of CheckIssue' do
20
+ expect(@instance).to be_instance_of(Phrase::CheckIssue)
21
+ end
22
+ end
23
+ describe 'test attribute "id"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "check_name"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["translation_content_length", "translation_placeholder_usage", "translation_glossary_usage"])
33
+ # validator.allowable_values.each do |value|
34
+ # expect { @instance.check_name = value }.not_to raise_error
35
+ # end
36
+ end
37
+ end
38
+
39
+ describe 'test attribute "state"' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "solved", "dismissed"])
43
+ # validator.allowable_values.each do |value|
44
+ # expect { @instance.state = value }.not_to raise_error
45
+ # end
46
+ end
47
+ end
48
+
49
+ describe 'test attribute "description"' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ describe 'test attribute "dismissed_at"' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ describe 'test attribute "solved_at"' do
62
+ it 'should work' do
63
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
64
+ end
65
+ end
66
+
67
+ describe 'test attribute "created_at"' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ describe 'test attribute "updated_at"' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ describe 'test attribute "translation"' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ end
@@ -80,6 +80,12 @@ describe 'LocaleCreateParameters' do
80
80
  end
81
81
  end
82
82
 
83
+ describe 'test attribute "unverify_on_source_changes"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
83
89
  describe 'test attribute "autotranslate"' do
84
90
  it 'should work' do
85
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,6 +86,24 @@ describe 'LocaleDetails' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "unverify_new_translations"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "unverify_updated_translations"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ describe 'test attribute "unverify_on_source_changes"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
89
107
  describe 'test attribute "created_at"' do
90
108
  it 'should work' do
91
109
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,6 +86,24 @@ describe 'Locale' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "unverify_new_translations"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "unverify_updated_translations"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ describe 'test attribute "unverify_on_source_changes"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
89
107
  describe 'test attribute "created_at"' do
90
108
  it 'should work' do
91
109
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -80,6 +80,12 @@ describe 'LocaleUpdateParameters' do
80
80
  end
81
81
  end
82
82
 
83
+ describe 'test attribute "unverify_on_source_changes"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
83
89
  describe 'test attribute "autotranslate"' do
84
90
  it 'should work' do
85
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::MachineTranslationLocaleProviderMapping
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'MachineTranslationLocaleProviderMapping' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::MachineTranslationLocaleProviderMapping.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of MachineTranslationLocaleProviderMapping' do
19
+ it 'should create an instance of MachineTranslationLocaleProviderMapping' do
20
+ expect(@instance).to be_instance_of(Phrase::MachineTranslationLocaleProviderMapping)
21
+ end
22
+ end
23
+ describe 'test attribute "source_locale_code"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "target_locale_code"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "service"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::MachineTranslationLocaleProviderMappingsCreateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'MachineTranslationLocaleProviderMappingsCreateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::MachineTranslationLocaleProviderMappingsCreateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of MachineTranslationLocaleProviderMappingsCreateParameters' do
19
+ it 'should create an instance of MachineTranslationLocaleProviderMappingsCreateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::MachineTranslationLocaleProviderMappingsCreateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "source_locale_code"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "target_locale_code"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "service"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::MachineTranslationSettings
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'MachineTranslationSettings' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::MachineTranslationSettings.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of MachineTranslationSettings' do
19
+ it 'should create an instance of MachineTranslationSettings' do
20
+ expect(@instance).to be_instance_of(Phrase::MachineTranslationSettings)
21
+ end
22
+ end
23
+ describe 'test attribute "default_service"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "machine_translation_units_used"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "machine_translation_units_total"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "locale_provider_mappings"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::MachineTranslationSettingsUpdateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'MachineTranslationSettingsUpdateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::MachineTranslationSettingsUpdateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of MachineTranslationSettingsUpdateParameters' do
19
+ it 'should create an instance of MachineTranslationSettingsUpdateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::MachineTranslationSettingsUpdateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "default_service"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ end
@@ -44,6 +44,18 @@ describe 'ProjectCreateParameters' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "tm_ids"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "term_base_ids"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
47
59
  describe 'test attribute "project_image"' do
48
60
  it 'should work' do
49
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -164,6 +176,12 @@ describe 'ProjectCreateParameters' do
164
176
  end
165
177
  end
166
178
 
179
+ describe 'test attribute "fallback_for_unverified_translations"' do
180
+ it 'should work' do
181
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
+ end
183
+ end
184
+
167
185
  describe 'test attribute "autocomplete_job_enabled"' do
168
186
  it 'should work' do
169
187
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -197,6 +215,10 @@ describe 'ProjectCreateParameters' do
197
215
  describe 'test attribute "translation_keys_sort_collation"' do
198
216
  it 'should work' do
199
217
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
218
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["general_ci", "unicode_ci"])
219
+ # validator.allowable_values.each do |value|
220
+ # expect { @instance.translation_keys_sort_collation = value }.not_to raise_error
221
+ # end
200
222
  end
201
223
  end
202
224