phrase 1.0.1 → 1.0.2

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 (135) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -387
  3. data/docs/AccountsApi.md +2 -4
  4. data/docs/AuthorizationsApi.md +10 -14
  5. data/docs/BitbucketSyncApi.md +3 -6
  6. data/docs/BlacklistedKeysApi.md +10 -14
  7. data/docs/BranchesApi.md +12 -18
  8. data/docs/CommentsApi.md +13 -20
  9. data/docs/DistributionsApi.md +10 -14
  10. data/docs/FormatsApi.md +1 -2
  11. data/docs/GitLabSyncApi.md +7 -14
  12. data/docs/{GlossaryApi.md → GlossariesApi.md} +26 -30
  13. data/docs/GlossaryTermTranslationsApi.md +8 -10
  14. data/docs/GlossaryTermsApi.md +10 -14
  15. data/docs/InvitationsApi.md +11 -16
  16. data/docs/JobLocalesApi.md +12 -18
  17. data/docs/JobsApi.md +15 -24
  18. data/docs/KeysApi.md +18 -26
  19. data/docs/KeysSearchParameters.md +1 -1
  20. data/docs/KeysTagParameters.md +1 -1
  21. data/docs/KeysUntagParameters.md +1 -1
  22. data/docs/LocalesApi.md +13 -18
  23. data/docs/MembersApi.md +4 -8
  24. data/docs/OrdersApi.md +10 -14
  25. data/docs/ProjectCreateParameters.md +3 -1
  26. data/docs/ProjectsApi.md +10 -14
  27. data/docs/ReleasesApi.md +11 -16
  28. data/docs/ScreenshotMarkersApi.md +10 -14
  29. data/docs/ScreenshotsApi.md +10 -14
  30. data/docs/SpacesApi.md +13 -20
  31. data/docs/StyleGuidesApi.md +10 -14
  32. data/docs/TagsApi.md +9 -12
  33. data/docs/Team.md +29 -0
  34. data/docs/TeamCreateParameters.md +17 -0
  35. data/docs/TeamDetail.md +29 -0
  36. data/docs/TeamUpdateParameters.md +17 -0
  37. data/docs/TeamsApi.md +721 -0
  38. data/docs/TeamsProjectsCreateParameters.md +17 -0
  39. data/docs/TeamsSpacesCreateParameters.md +17 -0
  40. data/docs/TeamsUsersCreateParameters.md +17 -0
  41. data/docs/TranslationsApi.md +28 -44
  42. data/docs/TranslationsExcludeParameters.md +1 -1
  43. data/docs/TranslationsIncludeParameters.md +1 -1
  44. data/docs/TranslationsReviewParameters.md +1 -1
  45. data/docs/TranslationsSearchParameters.md +1 -1
  46. data/docs/TranslationsUnverifyParameters.md +1 -1
  47. data/docs/TranslationsVerifyParameters.md +1 -1
  48. data/docs/UploadCreateParameters.md +2 -2
  49. data/docs/UploadsApi.md +12 -10
  50. data/docs/UsersApi.md +1 -2
  51. data/docs/VersionsHistoryApi.md +2 -4
  52. data/docs/WebhooksApi.md +11 -16
  53. data/git_push.sh +2 -2
  54. data/lib/phrase.rb +9 -1
  55. data/lib/phrase/api/authorizations_api.rb +10 -8
  56. data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
  57. data/lib/phrase/api/blacklisted_keys_api.rb +10 -8
  58. data/lib/phrase/api/branches_api.rb +16 -14
  59. data/lib/phrase/api/comments_api.rb +19 -17
  60. data/lib/phrase/api/distributions_api.rb +10 -8
  61. data/lib/phrase/api/git_lab_sync_api.rb +3 -3
  62. data/lib/phrase/api/{glossary_api.rb → glossaries_api.rb} +31 -29
  63. data/lib/phrase/api/glossary_term_translations_api.rb +10 -8
  64. data/lib/phrase/api/glossary_terms_api.rb +10 -8
  65. data/lib/phrase/api/invitations_api.rb +10 -8
  66. data/lib/phrase/api/job_locales_api.rb +10 -8
  67. data/lib/phrase/api/jobs_api.rb +13 -11
  68. data/lib/phrase/api/keys_api.rb +14 -12
  69. data/lib/phrase/api/locales_api.rb +15 -13
  70. data/lib/phrase/api/members_api.rb +3 -3
  71. data/lib/phrase/api/orders_api.rb +10 -8
  72. data/lib/phrase/api/projects_api.rb +10 -8
  73. data/lib/phrase/api/releases_api.rb +10 -8
  74. data/lib/phrase/api/screenshot_markers_api.rb +10 -8
  75. data/lib/phrase/api/screenshots_api.rb +10 -8
  76. data/lib/phrase/api/spaces_api.rb +16 -14
  77. data/lib/phrase/api/style_guides_api.rb +10 -8
  78. data/lib/phrase/api/tags_api.rb +10 -8
  79. data/lib/phrase/api/teams_api.rb +840 -0
  80. data/lib/phrase/api/translations_api.rb +13 -11
  81. data/lib/phrase/api/uploads_api.rb +13 -5
  82. data/lib/phrase/api/webhooks_api.rb +13 -11
  83. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  84. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  85. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  86. data/lib/phrase/models/project_create_parameters.rb +14 -4
  87. data/lib/phrase/models/team.rb +254 -0
  88. data/lib/phrase/models/team_create_parameters.rb +195 -0
  89. data/lib/phrase/models/team_detail.rb +254 -0
  90. data/lib/phrase/models/team_update_parameters.rb +195 -0
  91. data/lib/phrase/models/teams_projects_create_parameters.rb +195 -0
  92. data/lib/phrase/models/teams_spaces_create_parameters.rb +195 -0
  93. data/lib/phrase/models/teams_users_create_parameters.rb +195 -0
  94. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  95. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  96. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  97. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  98. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  99. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  100. data/lib/phrase/models/upload_create_parameters.rb +4 -8
  101. data/lib/phrase/version.rb +1 -1
  102. data/spec/api/authorizations_api_spec.rb +1 -1
  103. data/spec/api/blacklisted_keys_api_spec.rb +1 -1
  104. data/spec/api/branches_api_spec.rb +1 -1
  105. data/spec/api/comments_api_spec.rb +1 -1
  106. data/spec/api/distributions_api_spec.rb +1 -1
  107. data/spec/api/{glossary_api_spec.rb → glossaries_api_spec.rb} +7 -7
  108. data/spec/api/glossary_term_translations_api_spec.rb +1 -1
  109. data/spec/api/glossary_terms_api_spec.rb +1 -1
  110. data/spec/api/invitations_api_spec.rb +1 -1
  111. data/spec/api/job_locales_api_spec.rb +1 -1
  112. data/spec/api/jobs_api_spec.rb +1 -1
  113. data/spec/api/keys_api_spec.rb +3 -3
  114. data/spec/api/locales_api_spec.rb +2 -2
  115. data/spec/api/orders_api_spec.rb +1 -1
  116. data/spec/api/projects_api_spec.rb +1 -1
  117. data/spec/api/releases_api_spec.rb +1 -1
  118. data/spec/api/screenshot_markers_api_spec.rb +1 -1
  119. data/spec/api/screenshots_api_spec.rb +1 -1
  120. data/spec/api/spaces_api_spec.rb +1 -1
  121. data/spec/api/style_guides_api_spec.rb +1 -1
  122. data/spec/api/tags_api_spec.rb +1 -1
  123. data/spec/api/teams_api_spec.rb +185 -0
  124. data/spec/api/translations_api_spec.rb +4 -4
  125. data/spec/api/uploads_api_spec.rb +3 -1
  126. data/spec/api/webhooks_api_spec.rb +1 -1
  127. data/spec/models/project_create_parameters_spec.rb +6 -0
  128. data/spec/models/team_create_parameters_spec.rb +29 -0
  129. data/spec/models/team_detail_spec.rb +65 -0
  130. data/spec/models/team_spec.rb +65 -0
  131. data/spec/models/team_update_parameters_spec.rb +29 -0
  132. data/spec/models/teams_projects_create_parameters_spec.rb +29 -0
  133. data/spec/models/teams_spaces_create_parameters_spec.rb +29 -0
  134. data/spec/models/teams_users_create_parameters_spec.rb +29 -0
  135. metadata +183 -151
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # q_description_placeholder
8
+ # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # q_description_placeholder
8
+ # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # q_description_placeholder
8
+ # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,7 +11,7 @@ module Phrase
11
11
  # Order direction. Can be one of: asc, desc.
12
12
  attr_accessor :order
13
13
 
14
- # q_description_placeholder
14
+ # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
15
15
  attr_accessor :q
16
16
 
17
17
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # q_description_placeholder
8
+ # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # q_description_placeholder
8
+ # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -82,8 +82,8 @@ module Phrase
82
82
  :'skip_upload_tags' => :'Boolean',
83
83
  :'skip_unverification' => :'Boolean',
84
84
  :'file_encoding' => :'String',
85
- :'locale_mapping' => :'Hash<String, String>',
86
- :'format_options' => :'Hash<String, String>',
85
+ :'locale_mapping' => :'Object',
86
+ :'format_options' => :'Object',
87
87
  :'autotranslate' => :'Boolean',
88
88
  :'mark_reviewed' => :'Boolean'
89
89
  }
@@ -155,15 +155,11 @@ module Phrase
155
155
  end
156
156
 
157
157
  if attributes.key?(:'locale_mapping')
158
- if (value = attributes[:'locale_mapping']).is_a?(Hash)
159
- self.locale_mapping = value
160
- end
158
+ self.locale_mapping = attributes[:'locale_mapping']
161
159
  end
162
160
 
163
161
  if attributes.key?(:'format_options')
164
- if (value = attributes[:'format_options']).is_a?(Hash)
165
- self.format_options = value
166
- end
162
+ self.format_options = attributes[:'format_options']
167
163
  end
168
164
 
169
165
  if attributes.key?(:'autotranslate')
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -26,7 +26,7 @@ describe 'AuthorizationsApi' do
26
26
  # @param authorization_create_parameters
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
29
- # @return [nil]
29
+ # @return [AuthorizationWithToken]
30
30
  describe 'authorization_create test' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'BlacklistedKeysApi' do
27
27
  # @param blacklisted_key_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [BlacklistedKey]
31
31
  describe 'blacklisted_key_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -41,7 +41,7 @@ describe 'BranchesApi' do
41
41
  # @param branch_create_parameters
42
42
  # @param [Hash] opts the optional parameters
43
43
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
44
- # @return [nil]
44
+ # @return [Branch]
45
45
  describe 'branch_create test' do
46
46
  it 'should work' do
47
47
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -28,7 +28,7 @@ describe 'CommentsApi' do
28
28
  # @param comment_create_parameters
29
29
  # @param [Hash] opts the optional parameters
30
30
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
- # @return [nil]
31
+ # @return [Comment]
32
32
  describe 'comment_create test' do
33
33
  it 'should work' do
34
34
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'DistributionsApi' do
27
27
  # @param distribution_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [Distribution]
31
31
  describe 'distribution_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1,22 +1,22 @@
1
1
  require 'spec_helper'
2
2
  require 'json'
3
3
 
4
- # Unit tests for Phrase::GlossaryApi
4
+ # Unit tests for Phrase::GlossariesApi
5
5
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
6
  # Please update as you see appropriate
7
- describe 'GlossaryApi' do
7
+ describe 'GlossariesApi' do
8
8
  before do
9
9
  # run before each test
10
- @api_instance = Phrase::GlossaryApi.new
10
+ @api_instance = Phrase::GlossariesApi.new
11
11
  end
12
12
 
13
13
  after do
14
14
  # run after each test
15
15
  end
16
16
 
17
- describe 'test an instance of GlossaryApi' do
18
- it 'should create an instance of GlossaryApi' do
19
- expect(@api_instance).to be_instance_of(Phrase::GlossaryApi)
17
+ describe 'test an instance of GlossariesApi' do
18
+ it 'should create an instance of GlossariesApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::GlossariesApi)
20
20
  end
21
21
  end
22
22
 
@@ -42,7 +42,7 @@ describe 'GlossaryApi' do
42
42
  # @param glossary_create_parameters
43
43
  # @param [Hash] opts the optional parameters
44
44
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
45
- # @return [nil]
45
+ # @return [Glossary]
46
46
  describe 'glossary_create test' do
47
47
  it 'should work' do
48
48
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -29,7 +29,7 @@ describe 'GlossaryTermTranslationsApi' do
29
29
  # @param glossary_term_translation_create_parameters
30
30
  # @param [Hash] opts the optional parameters
31
31
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
32
- # @return [nil]
32
+ # @return [GlossaryTermTranslation]
33
33
  describe 'glossary_term_translation_create test' do
34
34
  it 'should work' do
35
35
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -28,7 +28,7 @@ describe 'GlossaryTermsApi' do
28
28
  # @param glossary_term_create_parameters
29
29
  # @param [Hash] opts the optional parameters
30
30
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
- # @return [nil]
31
+ # @return [GlossaryTerm]
32
32
  describe 'glossary_term_create test' do
33
33
  it 'should work' do
34
34
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'InvitationsApi' do
27
27
  # @param invitation_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [Invitation]
31
31
  describe 'invitation_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -108,7 +108,7 @@ describe 'JobLocalesApi' do
108
108
  # @param job_locales_create_parameters
109
109
  # @param [Hash] opts the optional parameters
110
110
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
111
- # @return [nil]
111
+ # @return [JobLocale]
112
112
  describe 'job_locales_create test' do
113
113
  it 'should work' do
114
114
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -42,7 +42,7 @@ describe 'JobsApi' do
42
42
  # @param job_create_parameters
43
43
  # @param [Hash] opts the optional parameters
44
44
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
45
- # @return [nil]
45
+ # @return [JobDetails]
46
46
  describe 'job_create test' do
47
47
  it 'should work' do
48
48
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'KeysApi' do
27
27
  # @param key_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [TranslationKeyDetails]
31
31
  describe 'key_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,7 +86,7 @@ describe 'KeysApi' do
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
88
88
  # @option opts [String] :branch specify the branch to use
89
- # @option opts [String] :q q_description_placeholder
89
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - whitespaces need to be prefixed with a backspace (\\\&quot;\\\\\\\&quot;)&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
90
90
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
91
91
  # @return [AffectedResources]
92
92
  describe 'keys_delete test' do
@@ -106,7 +106,7 @@ describe 'KeysApi' do
106
106
  # @option opts [String] :branch specify the branch to use
107
107
  # @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
108
108
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
109
- # @option opts [String] :q q_description_placeholder
109
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - whitespaces need to be prefixed with a backspace (\\\&quot;\\\\\\\&quot;)&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
110
110
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
111
111
  # @return [Array<TranslationKey>]
112
112
  describe 'keys_list test' do
@@ -27,7 +27,7 @@ describe 'LocalesApi' do
27
27
  # @param locale_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [LocaleDetails]
31
31
  describe 'locale_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -64,7 +64,7 @@ describe 'LocalesApi' do
64
64
  # @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
65
65
  # @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
66
66
  # @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
67
- # @option opts [Hash<String, String>] :format_options Additional formatting and render options. See the &lt;a href&#x3D;\&quot;https://help.phrase.com/help/supported-platforms-and-formats\&quot;&gt;format guide&lt;/a&gt; for a list of options available for each format. Specify format options like this: &lt;code&gt;...&amp;format_options[foo]&#x3D;bar&lt;/code&gt;
67
+ # @option opts [Object] :format_options Additional formatting and render options. See the &lt;a href&#x3D;\&quot;https://help.phrase.com/help/supported-platforms-and-formats\&quot;&gt;format guide&lt;/a&gt; for a list of options available for each format. Specify format options like this: &lt;code&gt;...&amp;format_options[foo]&#x3D;bar&lt;/code&gt;
68
68
  # @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \&quot;UTF-8\&quot;, \&quot;UTF-16\&quot; and \&quot;ISO-8859-1\&quot;.
69
69
  # @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with &lt;code&gt;include_unverified_translations&lt;/code&gt;.
70
70
  # @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
@@ -42,7 +42,7 @@ describe 'OrdersApi' do
42
42
  # @param order_create_parameters
43
43
  # @param [Hash] opts the optional parameters
44
44
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
45
- # @return [nil]
45
+ # @return [TranslationOrder]
46
46
  describe 'order_create test' do
47
47
  it 'should work' do
48
48
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -26,7 +26,7 @@ describe 'ProjectsApi' do
26
26
  # @param project_create_parameters
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
29
- # @return [nil]
29
+ # @return [ProjectDetails]
30
30
  describe 'project_create test' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -28,7 +28,7 @@ describe 'ReleasesApi' do
28
28
  # @param release_create_parameters
29
29
  # @param [Hash] opts the optional parameters
30
30
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
- # @return [nil]
31
+ # @return [Release]
32
32
  describe 'release_create test' do
33
33
  it 'should work' do
34
34
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -28,7 +28,7 @@ describe 'ScreenshotMarkersApi' do
28
28
  # @param screenshot_marker_create_parameters
29
29
  # @param [Hash] opts the optional parameters
30
30
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
- # @return [nil]
31
+ # @return [ScreenshotMarker]
32
32
  describe 'screenshot_marker_create test' do
33
33
  it 'should work' do
34
34
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'ScreenshotsApi' do
27
27
  # @param screenshot_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [Screenshot]
31
31
  describe 'screenshot_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'SpacesApi' do
27
27
  # @param space_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [Space]
31
31
  describe 'space_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'StyleGuidesApi' do
27
27
  # @param styleguide_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [StyleguideDetails]
31
31
  describe 'styleguide_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'TagsApi' do
27
27
  # @param tag_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [nil]
30
+ # @return [TagWithStats]
31
31
  describe 'tag_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,185 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::TeamsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'TeamsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::TeamsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of TeamsApi' do
18
+ it 'should create an instance of TeamsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::TeamsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for team_create
24
+ # Create a Team
25
+ # Create a new Team.
26
+ # @param account_id Account ID
27
+ # @param team_create_parameters
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [TeamDetail]
31
+ describe 'team_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 team_delete
38
+ # Delete Team
39
+ # Delete the specified Team.
40
+ # @param account_id Account ID
41
+ # @param id ID
42
+ # @param [Hash] opts the optional parameters
43
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
44
+ # @return [nil]
45
+ describe 'team_delete test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ # unit tests for team_show
52
+ # Get Team
53
+ # Show the specified Team.
54
+ # @param account_id Account ID
55
+ # @param id ID
56
+ # @param [Hash] opts the optional parameters
57
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
58
+ # @return [TeamDetail]
59
+ describe 'team_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 team_update
66
+ # Update Team
67
+ # Update the specified Team.
68
+ # @param account_id Account ID
69
+ # @param id ID
70
+ # @param team_update_parameters
71
+ # @param [Hash] opts the optional parameters
72
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
73
+ # @return [TeamDetail]
74
+ describe 'team_update test' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
80
+ # unit tests for teams_list
81
+ # List Teams
82
+ # List all Teams for the given account.
83
+ # @param account_id Account ID
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
+ # @option opts [Integer] :page Page number
87
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
88
+ # @return [Array<Team>]
89
+ describe 'teams_list test' 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
+ # unit tests for teams_projects_create
96
+ # Add Project
97
+ # Adds an existing project to the team.
98
+ # @param account_id Account ID
99
+ # @param team_id Team ID
100
+ # @param teams_projects_create_parameters
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
103
+ # @return [nil]
104
+ describe 'teams_projects_create test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
+ end
108
+ end
109
+
110
+ # unit tests for teams_projects_delete
111
+ # Remove Project
112
+ # Removes a specified project from the specified team.
113
+ # @param account_id Account ID
114
+ # @param team_id Team ID
115
+ # @param id ID
116
+ # @param [Hash] opts the optional parameters
117
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
118
+ # @return [nil]
119
+ describe 'teams_projects_delete test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ # unit tests for teams_spaces_create
126
+ # Add Space
127
+ # Adds an existing space to the team.
128
+ # @param account_id Account ID
129
+ # @param team_id Team ID
130
+ # @param teams_spaces_create_parameters
131
+ # @param [Hash] opts the optional parameters
132
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
133
+ # @return [nil]
134
+ describe 'teams_spaces_create test' do
135
+ it 'should work' do
136
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
137
+ end
138
+ end
139
+
140
+ # unit tests for teams_spaces_delete
141
+ # Remove Space
142
+ # Removes a specified space from the specified team.
143
+ # @param account_id Account ID
144
+ # @param team_id Team ID
145
+ # @param id ID
146
+ # @param [Hash] opts the optional parameters
147
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
148
+ # @return [nil]
149
+ describe 'teams_spaces_delete test' do
150
+ it 'should work' do
151
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
152
+ end
153
+ end
154
+
155
+ # unit tests for teams_users_create
156
+ # Add User
157
+ # Adds an existing user to the team.
158
+ # @param account_id Account ID
159
+ # @param team_id Team ID
160
+ # @param teams_users_create_parameters
161
+ # @param [Hash] opts the optional parameters
162
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
163
+ # @return [nil]
164
+ describe 'teams_users_create test' do
165
+ it 'should work' do
166
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
167
+ end
168
+ end
169
+
170
+ # unit tests for teams_users_delete
171
+ # Remove User
172
+ # Removes a specified user from the specified team.
173
+ # @param account_id Account ID
174
+ # @param team_id Team ID
175
+ # @param id ID
176
+ # @param [Hash] opts the optional parameters
177
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
178
+ # @return [nil]
179
+ describe 'teams_users_delete test' 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
+
185
+ end