Skip to content

Commit 06b7c38

Browse files
author
Phrase
committed
Deploying from phrase/openapi@9e584b6c
1 parent 499d2dd commit 06b7c38

28 files changed

+528
-54
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build phrase.gemspec
11-
- gem install ./phrase-2.8.6.gem
11+
- gem install ./phrase-2.8.7.gem

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
77
## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

99
- API version: 2.0.0
10-
- Package version: 2.8.6
10+
- Package version: 2.8.7
1111
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
1212
For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
1313

@@ -56,10 +56,10 @@ gem build phrase.gemspec
5656
Then install the gem locally:
5757

5858
```shell
59-
gem install ./phrase-2.8.6.gem
59+
gem install ./phrase-2.8.7.gem
6060
```
6161

62-
(for development, run `gem install --dev ./phrase-2.8.6.gem` to install the development dependencies)
62+
(for development, run `gem install --dev ./phrase-2.8.7.gem` to install the development dependencies)
6363

6464
## Getting Started
6565

@@ -444,7 +444,6 @@ Class | Method | HTTP request | Description
444444
- [Phrase::JobTemplateLocalesCreateParameters](docs/JobTemplateLocalesCreateParameters.md)
445445
- [Phrase::JobTemplatePreview](docs/JobTemplatePreview.md)
446446
- [Phrase::JobTemplateUpdateParameters](docs/JobTemplateUpdateParameters.md)
447-
- [Phrase::JobTemplateUserPreview](docs/JobTemplateUserPreview.md)
448447
- [Phrase::JobUpdateParameters](docs/JobUpdateParameters.md)
449448
- [Phrase::KeyCreateParameters](docs/KeyCreateParameters.md)
450449
- [Phrase::KeyPreview](docs/KeyPreview.md)
@@ -461,7 +460,9 @@ Class | Method | HTTP request | Description
461460
- [Phrase::LocalePreview](docs/LocalePreview.md)
462461
- [Phrase::LocalePreview1](docs/LocalePreview1.md)
463462
- [Phrase::LocaleStatistics](docs/LocaleStatistics.md)
463+
- [Phrase::LocaleTeamPreview](docs/LocaleTeamPreview.md)
464464
- [Phrase::LocaleUpdateParameters](docs/LocaleUpdateParameters.md)
465+
- [Phrase::LocaleUserPreview](docs/LocaleUserPreview.md)
465466
- [Phrase::Member](docs/Member.md)
466467
- [Phrase::MemberProjectDetail](docs/MemberProjectDetail.md)
467468
- [Phrase::MemberProjectDetailProjectRoles](docs/MemberProjectDetailProjectRoles.md)

docs/JobLocale.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Name | Type | Description | Notes
77
**id** | **String** | | [optional]
88
**job** | [**JobPreview**](JobPreview.md) | | [optional]
99
**locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
10-
**users** | [**Array<UserPreview>**](UserPreview.md) | | [optional]
10+
**users** | [**Array<LocaleUserPreview>**](LocaleUserPreview.md) | | [optional]
11+
**teams** | [**Array<LocaleTeamPreview>**](LocaleTeamPreview.md) | | [optional]
1112
**completed** | **Boolean** | | [optional]
1213
**translation_completed_at** | **DateTime** | | [optional]
1314
**review_completed_at** | **DateTime** | | [optional]
@@ -21,6 +22,7 @@ instance = Phrase::JobLocale.new(id: null,
2122
job: null,
2223
locale: null,
2324
users: null,
25+
teams: null,
2426
completed: null,
2527
translation_completed_at: null,
2628
review_completed_at: null)

docs/JobLocaleUpdateParameters.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
88
**locale_id** | **String** | locale id | [optional]
99
**user_ids** | **Array<String>** | Array of user ids to be assigned to the job locale | [optional]
1010
**reviewer_ids** | **Array<String>** | Array of reviewer ids to be assigned to the job locale as reviewers | [optional]
11+
**translator_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as translators | [optional]
12+
**reviewer_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as reviewers | [optional]
1113

1214
## Code Sample
1315

@@ -17,7 +19,9 @@ require 'Phrase'
1719
instance = Phrase::JobLocaleUpdateParameters.new(branch: my-feature-branch,
1820
locale_id: abcd1234cdef1234abcd1234cdef1234,
1921
user_ids: ["abcd1234cdef1234abcd1234cdef1234"],
20-
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"])
22+
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"],
23+
translator_team_ids: ["abcd1234cdef1234abcd1234cdef1234"],
24+
reviewer_team_ids: ["abcd1234cdef1234abcd1234cdef1234"])
2125
```
2226

2327

docs/JobLocalesCreateParameters.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**branch** | **String** | specify the branch to use | [optional]
8-
**locale_id** | **String** | locale id | [optional]
8+
**locale_id** | **String** | locale id |
99
**user_ids** | **Array<String>** | Array of user ids to be assigned to the job locale as translators | [optional]
1010
**reviewer_ids** | **Array<String>** | Array of reviewer ids to be assigned to the job locale as reviewers | [optional]
11+
**translator_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as translators | [optional]
12+
**reviewer_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as reviewers | [optional]
1113

1214
## Code Sample
1315

@@ -17,7 +19,9 @@ require 'Phrase'
1719
instance = Phrase::JobLocalesCreateParameters.new(branch: my-feature-branch,
1820
locale_id: abcd1234cdef1234abcd1234cdef1234,
1921
user_ids: ["abcd1234cdef1234abcd1234cdef1234"],
20-
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"])
22+
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"],
23+
translator_team_ids: ["abcd1234cdef1234abcd1234cdef1234"],
24+
reviewer_team_ids: ["abcd1234cdef1234abcd1234cdef1234"])
2125
```
2226

2327

docs/JobTemplateLocaleUpdateParameters.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**branch** | **String** | specify the branch to use | [optional]
8-
**locale_id** | **String** | locale id |
8+
**locale_id** | **String** | locale id | [optional]
99
**user_ids** | **Array<String>** | Array of user ids to be assigned to the job template locale | [optional]
1010
**reviewer_ids** | **Array<String>** | Array of reviewer ids to be assigned to the job template locale | [optional]
11+
**translator_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as translators | [optional]
12+
**reviewer_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as reviewers | [optional]
1113

1214
## Code Sample
1315

@@ -17,7 +19,9 @@ require 'Phrase'
1719
instance = Phrase::JobTemplateLocaleUpdateParameters.new(branch: my-feature-branch,
1820
locale_id: abcd1234cdef1234abcd1234cdef1234,
1921
user_ids: ["abcd1234cdef1234abcd1234cdef1234"],
20-
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"])
22+
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"],
23+
translator_team_ids: ["abcd1234cdef1234abcd1234cdef1234"],
24+
reviewer_team_ids: ["abcd1234cdef1234abcd1234cdef1234"])
2125
```
2226

2327

docs/JobTemplateLocales.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Name | Type | Description | Notes
77
**id** | **String** | | [optional]
88
**job_template** | [**JobTemplatePreview**](JobTemplatePreview.md) | | [optional]
99
**locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
10-
**users** | [**Array<JobTemplateUserPreview>**](JobTemplateUserPreview.md) | | [optional]
10+
**users** | [**Array<Items>**](Items.md) | | [optional]
11+
**teams** | [**Array<Items>**](Items.md) | | [optional]
1112

1213
## Code Sample
1314

@@ -17,7 +18,8 @@ require 'Phrase'
1718
instance = Phrase::JobTemplateLocales.new(id: null,
1819
job_template: null,
1920
locale: null,
20-
users: null)
21+
users: null,
22+
teams: null)
2123
```
2224

2325

docs/JobTemplateLocalesCreateParameters.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
88
**locale_id** | **String** | locale id |
99
**user_ids** | **Array<String>** | Array of user ids to be assigned to the job template locale | [optional]
1010
**reviewer_ids** | **Array<String>** | Array of reviewer ids to be assigned to the job template locale | [optional]
11+
**translator_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as translators | [optional]
12+
**reviewer_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as reviewers | [optional]
1113

1214
## Code Sample
1315

@@ -17,7 +19,9 @@ require 'Phrase'
1719
instance = Phrase::JobTemplateLocalesCreateParameters.new(branch: my-feature-branch,
1820
locale_id: abcd1234cdef1234abcd1234cdef1234,
1921
user_ids: ["abcd1234cdef1234abcd1234cdef1234"],
20-
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"])
22+
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"],
23+
translator_team_ids: ["abcd1234cdef1234abcd1234cdef1234"],
24+
reviewer_team_ids: ["abcd1234cdef1234abcd1234cdef1234"])
2125
```
2226

2327

docs/LocaleTeamPreview.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Phrase::LocaleTeamPreview
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **String** | | [optional]
8+
**name** | **String** | | [optional]
9+
**role** | **String** | | [optional]
10+
11+
## Code Sample
12+
13+
```ruby
14+
require 'Phrase'
15+
16+
instance = Phrase::LocaleTeamPreview.new(id: null,
17+
name: null,
18+
role: null)
19+
```
20+
21+

docs/JobTemplateUserPreview.md docs/LocaleUserPreview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Phrase::JobTemplateUserPreview
1+
# Phrase::LocaleUserPreview
22

33
## Properties
44

@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
```ruby
1515
require 'Phrase'
1616

17-
instance = Phrase::JobTemplateUserPreview.new(id: null,
17+
instance = Phrase::LocaleUserPreview.new(id: null,
1818
username: null,
1919
name: null,
2020
role: null)

lib/phrase.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
require 'phrase/models/job_template_locales_create_parameters'
9494
require 'phrase/models/job_template_preview'
9595
require 'phrase/models/job_template_update_parameters'
96-
require 'phrase/models/job_template_user_preview'
9796
require 'phrase/models/job_update_parameters'
9897
require 'phrase/models/key_create_parameters'
9998
require 'phrase/models/key_preview'
@@ -110,7 +109,9 @@
110109
require 'phrase/models/locale_preview'
111110
require 'phrase/models/locale_preview1'
112111
require 'phrase/models/locale_statistics'
112+
require 'phrase/models/locale_team_preview'
113113
require 'phrase/models/locale_update_parameters'
114+
require 'phrase/models/locale_user_preview'
114115
require 'phrase/models/member'
115116
require 'phrase/models/member_project_detail'
116117
require 'phrase/models/member_project_detail_project_roles'

lib/phrase/models/job_locale.rb

+13-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class JobLocale
1010

1111
attr_accessor :users
1212

13+
attr_accessor :teams
14+
1315
attr_accessor :completed
1416

1517
attr_accessor :translation_completed_at
@@ -23,6 +25,7 @@ def self.attribute_map
2325
:'job' => :'job',
2426
:'locale' => :'locale',
2527
:'users' => :'users',
28+
:'teams' => :'teams',
2629
:'completed' => :'completed',
2730
:'translation_completed_at' => :'translation_completed_at',
2831
:'review_completed_at' => :'review_completed_at'
@@ -35,7 +38,8 @@ def self.openapi_types
3538
:'id' => :'String',
3639
:'job' => :'JobPreview',
3740
:'locale' => :'LocalePreview',
38-
:'users' => :'Array<UserPreview>',
41+
:'users' => :'Array<LocaleUserPreview>',
42+
:'teams' => :'Array<LocaleTeamPreview>',
3943
:'completed' => :'Boolean',
4044
:'translation_completed_at' => :'DateTime',
4145
:'review_completed_at' => :'DateTime'
@@ -81,6 +85,12 @@ def initialize(attributes = {})
8185
end
8286
end
8387

88+
if attributes.key?(:'teams')
89+
if (value = attributes[:'teams']).is_a?(Array)
90+
self.teams = value
91+
end
92+
end
93+
8494
if attributes.key?(:'completed')
8595
self.completed = attributes[:'completed']
8696
end
@@ -116,6 +126,7 @@ def ==(o)
116126
job == o.job &&
117127
locale == o.locale &&
118128
users == o.users &&
129+
teams == o.teams &&
119130
completed == o.completed &&
120131
translation_completed_at == o.translation_completed_at &&
121132
review_completed_at == o.review_completed_at
@@ -130,7 +141,7 @@ def eql?(o)
130141
# Calculates hash code according to all attributes.
131142
# @return [Integer] Hash code
132143
def hash
133-
[id, job, locale, users, completed, translation_completed_at, review_completed_at].hash
144+
[id, job, locale, users, teams, completed, translation_completed_at, review_completed_at].hash
134145
end
135146

136147
# Builds the object from hash

lib/phrase/models/job_locale_update_parameters.rb

+28-4
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,21 @@ class JobLocaleUpdateParameters
1414
# Array of reviewer ids to be assigned to the job locale as reviewers
1515
attr_accessor :reviewer_ids
1616

17+
# Array of team ids to be assigned to the job locale as translators
18+
attr_accessor :translator_team_ids
19+
20+
# Array of team ids to be assigned to the job locale as reviewers
21+
attr_accessor :reviewer_team_ids
22+
1723
# Attribute mapping from ruby-style variable name to JSON key.
1824
def self.attribute_map
1925
{
2026
:'branch' => :'branch',
2127
:'locale_id' => :'locale_id',
2228
:'user_ids' => :'user_ids',
23-
:'reviewer_ids' => :'reviewer_ids'
29+
:'reviewer_ids' => :'reviewer_ids',
30+
:'translator_team_ids' => :'translator_team_ids',
31+
:'reviewer_team_ids' => :'reviewer_team_ids'
2432
}
2533
end
2634

@@ -30,7 +38,9 @@ def self.openapi_types
3038
:'branch' => :'String',
3139
:'locale_id' => :'String',
3240
:'user_ids' => :'Array<String>',
33-
:'reviewer_ids' => :'Array<String>'
41+
:'reviewer_ids' => :'Array<String>',
42+
:'translator_team_ids' => :'Array<String>',
43+
:'reviewer_team_ids' => :'Array<String>'
3444
}
3545
end
3646

@@ -74,6 +84,18 @@ def initialize(attributes = {})
7484
self.reviewer_ids = value
7585
end
7686
end
87+
88+
if attributes.key?(:'translator_team_ids')
89+
if (value = attributes[:'translator_team_ids']).is_a?(Array)
90+
self.translator_team_ids = value
91+
end
92+
end
93+
94+
if attributes.key?(:'reviewer_team_ids')
95+
if (value = attributes[:'reviewer_team_ids']).is_a?(Array)
96+
self.reviewer_team_ids = value
97+
end
98+
end
7799
end
78100

79101
# Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +119,9 @@ def ==(o)
97119
branch == o.branch &&
98120
locale_id == o.locale_id &&
99121
user_ids == o.user_ids &&
100-
reviewer_ids == o.reviewer_ids
122+
reviewer_ids == o.reviewer_ids &&
123+
translator_team_ids == o.translator_team_ids &&
124+
reviewer_team_ids == o.reviewer_team_ids
101125
end
102126

103127
# @see the `==` method
@@ -109,7 +133,7 @@ def eql?(o)
109133
# Calculates hash code according to all attributes.
110134
# @return [Integer] Hash code
111135
def hash
112-
[branch, locale_id, user_ids, reviewer_ids].hash
136+
[branch, locale_id, user_ids, reviewer_ids, translator_team_ids, reviewer_team_ids].hash
113137
end
114138

115139
# Builds the object from hash

0 commit comments

Comments
 (0)