phrase 3.7.0 → 3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -3
- data/docs/JobCommentCreateParameters.md +3 -1
- data/docs/JobCommentUpdateParameters.md +3 -1
- data/docs/JobCommentsApi.md +6 -6
- data/docs/JobLocalesApi.md +6 -6
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/lib/phrase/api/job_comments_api.rb +6 -6
- data/lib/phrase/api/job_locales_api.rb +6 -6
- data/lib/phrase/models/job_comment_create_parameters.rb +14 -4
- data/lib/phrase/models/job_comment_update_parameters.rb +14 -4
- data/lib/phrase/version.rb +1 -1
- data/spec/api/job_comments_api_spec.rb +3 -3
- data/spec/api/job_locales_api_spec.rb +3 -3
- data/spec/models/job_comment_create_parameters_spec.rb +6 -0
- data/spec/models/job_comment_update_parameters_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bb3229e222a0064464b959c4a17aadaa56181799f685bcab3ebff3c35d43d48
|
4
|
+
data.tar.gz: 680687aa555b3edbd2b70f461c33610f26ef12cebc6b96b7f8cefa7bc60882d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 119905a86ab45fc4d2ac2174cd2a6baf0a84a3b14359cb190037b8b5dfc41281af53f847b80e28395ac21a1d5c39897830cf1dde316626804a9f37a5d0a70a43
|
7
|
+
data.tar.gz: 307f899c13fa45a9e3996f433b6f6526e4f16ba45551f202340c46d0240a0f565e7fe337ec8772588d2c55973617a77531205ac00ef3338bace47fa0fd0cd611
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.7.1](https://github.com/phrase/openapi/compare/ruby-v3.7.0...ruby-v3.7.1) (2024-12-09)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* **API:** Add missing branch parameter to job comment endpoints #STRINGS-988 ([#724](https://github.com/phrase/openapi/issues/724)) ([64d399c](https://github.com/phrase/openapi/commit/64d399ced0980ac2a48366f91110047287a0c590))
|
9
|
+
|
3
10
|
## [3.7.0](https://github.com/phrase/openapi/compare/ruby-v3.6.0...ruby-v3.7.0) (2024-12-03)
|
4
11
|
|
5
12
|
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
|
|
7
7
|
## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.7.
|
10
|
+
- Package version: 3.7.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
|
13
13
|
|
@@ -56,10 +56,10 @@ gem build phrase.gemspec
|
|
56
56
|
Then install the gem locally:
|
57
57
|
|
58
58
|
```shell
|
59
|
-
gem install ./phrase-3.7.
|
59
|
+
gem install ./phrase-3.7.1.gem
|
60
60
|
```
|
61
61
|
|
62
|
-
(for development, run `gem install --dev ./phrase-3.7.
|
62
|
+
(for development, run `gem install --dev ./phrase-3.7.1.gem` to install the development dependencies)
|
63
63
|
|
64
64
|
## Getting Started
|
65
65
|
|
@@ -5,13 +5,15 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**message** | **String** | Job comment message | [optional]
|
8
|
+
**branch** | **String** | Branch name for the job | [optional]
|
8
9
|
|
9
10
|
## Code Sample
|
10
11
|
|
11
12
|
```ruby
|
12
13
|
require 'Phrase'
|
13
14
|
|
14
|
-
instance = Phrase::JobCommentCreateParameters.new(message: Some message
|
15
|
+
instance = Phrase::JobCommentCreateParameters.new(message: Some message...,
|
16
|
+
branch: my-feature-branch)
|
15
17
|
```
|
16
18
|
|
17
19
|
|
@@ -5,13 +5,15 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**message** | **String** | Comment message | [optional]
|
8
|
+
**branch** | **String** | Branch name for the job | [optional]
|
8
9
|
|
9
10
|
## Code Sample
|
10
11
|
|
11
12
|
```ruby
|
12
13
|
require 'Phrase'
|
13
14
|
|
14
|
-
instance = Phrase::JobCommentUpdateParameters.new(message: Some message
|
15
|
+
instance = Phrase::JobCommentUpdateParameters.new(message: Some message...,
|
16
|
+
branch: my-feature-branch)
|
15
17
|
```
|
16
18
|
|
17
19
|
|
data/docs/JobCommentsApi.md
CHANGED
@@ -107,7 +107,7 @@ job_id = 'job_id_example' # String | Job ID
|
|
107
107
|
id = 'id_example' # String | ID
|
108
108
|
opts = {
|
109
109
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
110
|
-
branch: 'my-feature-branch' # String |
|
110
|
+
branch: 'my-feature-branch' # String | Branch to use
|
111
111
|
}
|
112
112
|
|
113
113
|
begin
|
@@ -127,7 +127,7 @@ Name | Type | Description | Notes
|
|
127
127
|
**job_id** | **String**| Job ID |
|
128
128
|
**id** | **String**| ID |
|
129
129
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
130
|
-
**branch** | **String**|
|
130
|
+
**branch** | **String**| Branch to use | [optional]
|
131
131
|
|
132
132
|
### Return type
|
133
133
|
|
@@ -173,7 +173,7 @@ job_id = 'job_id_example' # String | Job ID
|
|
173
173
|
id = 'id_example' # String | ID
|
174
174
|
opts = {
|
175
175
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
176
|
-
branch: 'my-feature-branch' # String |
|
176
|
+
branch: 'my-feature-branch' # String | Branch to use
|
177
177
|
}
|
178
178
|
|
179
179
|
begin
|
@@ -194,7 +194,7 @@ Name | Type | Description | Notes
|
|
194
194
|
**job_id** | **String**| Job ID |
|
195
195
|
**id** | **String**| ID |
|
196
196
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
197
|
-
**branch** | **String**|
|
197
|
+
**branch** | **String**| Branch to use | [optional]
|
198
198
|
|
199
199
|
### Return type
|
200
200
|
|
@@ -306,7 +306,7 @@ project_id = 'project_id_example' # String | Project ID
|
|
306
306
|
job_id = 'job_id_example' # String | Job ID
|
307
307
|
opts = {
|
308
308
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
309
|
-
branch: 'my-feature-branch', # String |
|
309
|
+
branch: 'my-feature-branch', # String | Branch to use
|
310
310
|
order: 'desc' # String | Order direction. Can be one of: asc, desc.
|
311
311
|
}
|
312
312
|
|
@@ -327,7 +327,7 @@ Name | Type | Description | Notes
|
|
327
327
|
**project_id** | **String**| Project ID |
|
328
328
|
**job_id** | **String**| Job ID |
|
329
329
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
330
|
-
**branch** | **String**|
|
330
|
+
**branch** | **String**| Branch to use | [optional]
|
331
331
|
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
332
332
|
|
333
333
|
### Return type
|
data/docs/JobLocalesApi.md
CHANGED
@@ -179,7 +179,7 @@ job_id = 'job_id_example' # String | Job ID
|
|
179
179
|
id = 'id_example' # String | ID
|
180
180
|
opts = {
|
181
181
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
182
|
-
branch: 'my-feature-branch' # String |
|
182
|
+
branch: 'my-feature-branch' # String | Branch to use
|
183
183
|
}
|
184
184
|
|
185
185
|
begin
|
@@ -199,7 +199,7 @@ Name | Type | Description | Notes
|
|
199
199
|
**job_id** | **String**| Job ID |
|
200
200
|
**id** | **String**| ID |
|
201
201
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
202
|
-
**branch** | **String**|
|
202
|
+
**branch** | **String**| Branch to use | [optional]
|
203
203
|
|
204
204
|
### Return type
|
205
205
|
|
@@ -312,7 +312,7 @@ job_id = 'job_id_example' # String | Job ID
|
|
312
312
|
id = 'id_example' # String | ID
|
313
313
|
opts = {
|
314
314
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
315
|
-
branch: 'my-feature-branch' # String |
|
315
|
+
branch: 'my-feature-branch' # String | Branch to use
|
316
316
|
}
|
317
317
|
|
318
318
|
begin
|
@@ -333,7 +333,7 @@ Name | Type | Description | Notes
|
|
333
333
|
**job_id** | **String**| Job ID |
|
334
334
|
**id** | **String**| ID |
|
335
335
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
336
|
-
**branch** | **String**|
|
336
|
+
**branch** | **String**| Branch to use | [optional]
|
337
337
|
|
338
338
|
### Return type
|
339
339
|
|
@@ -512,7 +512,7 @@ opts = {
|
|
512
512
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
513
513
|
page: 1, # Integer | Page number
|
514
514
|
per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
515
|
-
branch: 'my-feature-branch' # String |
|
515
|
+
branch: 'my-feature-branch' # String | Branch to use
|
516
516
|
}
|
517
517
|
|
518
518
|
begin
|
@@ -534,7 +534,7 @@ Name | Type | Description | Notes
|
|
534
534
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
535
535
|
**page** | **Integer**| Page number | [optional]
|
536
536
|
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
537
|
-
**branch** | **String**|
|
537
|
+
**branch** | **String**| Branch to use | [optional]
|
538
538
|
|
539
539
|
### Return type
|
540
540
|
|
data/docs/KeyCreateParameters.md
CHANGED
@@ -36,7 +36,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
|
|
36
36
|
data_type: number,
|
37
37
|
tags: awesome-feature,needs-proofreading,
|
38
38
|
max_characters_allowed: 140,
|
39
|
-
screenshot: [B@
|
39
|
+
screenshot: [B@11f8bff1,
|
40
40
|
remove_screenshot: null,
|
41
41
|
unformatted: null,
|
42
42
|
default_translation_content: Default translation content,
|
data/docs/KeyUpdateParameters.md
CHANGED
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
|
|
34
34
|
data_type: number,
|
35
35
|
tags: awesome-feature,needs-proofreading,
|
36
36
|
max_characters_allowed: 140,
|
37
|
-
screenshot: [B@
|
37
|
+
screenshot: [B@3fb2306,
|
38
38
|
remove_screenshot: null,
|
39
39
|
unformatted: null,
|
40
40
|
xml_space_preserve: null,
|
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
|
|
37
37
|
main_format: yml,
|
38
38
|
media: Python,
|
39
39
|
shares_translation_memory: true,
|
40
|
-
project_image: [B@
|
40
|
+
project_image: [B@3fa27158,
|
41
41
|
remove_project_image: null,
|
42
42
|
account_id: abcd1234,
|
43
43
|
point_of_contact: abcd1234,
|
@@ -38,7 +38,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
|
|
38
38
|
main_format: yml,
|
39
39
|
media: Python,
|
40
40
|
shares_translation_memory: true,
|
41
|
-
project_image: [B@
|
41
|
+
project_image: [B@4b2b2757,
|
42
42
|
remove_project_image: false,
|
43
43
|
workflow: review,
|
44
44
|
machine_translation_enabled: true,
|
@@ -94,7 +94,7 @@ module Phrase
|
|
94
94
|
# @param id [String] ID
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
96
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
97
|
-
# @option opts [String] :branch
|
97
|
+
# @option opts [String] :branch Branch to use
|
98
98
|
# @return [nil]
|
99
99
|
def job_comment_delete(project_id, job_id, id, opts = {})
|
100
100
|
data, _status_code, _headers = job_comment_delete_with_http_info(project_id, job_id, id, opts)
|
@@ -108,7 +108,7 @@ module Phrase
|
|
108
108
|
# @param id [String] ID
|
109
109
|
# @param [Hash] opts the optional parameters
|
110
110
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
111
|
-
# @option opts [String] :branch
|
111
|
+
# @option opts [String] :branch Branch to use
|
112
112
|
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
|
113
113
|
def job_comment_delete_with_http_info(project_id, job_id, id, opts = {})
|
114
114
|
if @api_client.config.debugging
|
@@ -173,7 +173,7 @@ module Phrase
|
|
173
173
|
# @param id [String] ID
|
174
174
|
# @param [Hash] opts the optional parameters
|
175
175
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
176
|
-
# @option opts [String] :branch
|
176
|
+
# @option opts [String] :branch Branch to use
|
177
177
|
# @return [JobComment]
|
178
178
|
def job_comment_show(project_id, job_id, id, opts = {})
|
179
179
|
data, _status_code, _headers = job_comment_show_with_http_info(project_id, job_id, id, opts)
|
@@ -187,7 +187,7 @@ module Phrase
|
|
187
187
|
# @param id [String] ID
|
188
188
|
# @param [Hash] opts the optional parameters
|
189
189
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
190
|
-
# @option opts [String] :branch
|
190
|
+
# @option opts [String] :branch Branch to use
|
191
191
|
# @return [Array<(Response<(JobComment)>, Integer, Hash)>] Response<(JobComment)> data, response status code and response headers
|
192
192
|
def job_comment_show_with_http_info(project_id, job_id, id, opts = {})
|
193
193
|
if @api_client.config.debugging
|
@@ -339,7 +339,7 @@ module Phrase
|
|
339
339
|
# @param job_id [String] Job ID
|
340
340
|
# @param [Hash] opts the optional parameters
|
341
341
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
342
|
-
# @option opts [String] :branch
|
342
|
+
# @option opts [String] :branch Branch to use
|
343
343
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
344
344
|
# @return [Array<JobComment>]
|
345
345
|
def job_comments_list(project_id, job_id, opts = {})
|
@@ -353,7 +353,7 @@ module Phrase
|
|
353
353
|
# @param job_id [String] Job ID
|
354
354
|
# @param [Hash] opts the optional parameters
|
355
355
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
356
|
-
# @option opts [String] :branch
|
356
|
+
# @option opts [String] :branch Branch to use
|
357
357
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
358
358
|
# @return [Array<(Response<(Array<JobComment>)>, Integer, Hash)>] Response<(Array<JobComment>)> data, response status code and response headers
|
359
359
|
def job_comments_list_with_http_info(project_id, job_id, opts = {})
|
@@ -186,7 +186,7 @@ module Phrase
|
|
186
186
|
# @param id [String] ID
|
187
187
|
# @param [Hash] opts the optional parameters
|
188
188
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
189
|
-
# @option opts [String] :branch
|
189
|
+
# @option opts [String] :branch Branch to use
|
190
190
|
# @return [nil]
|
191
191
|
def job_locale_delete(project_id, job_id, id, opts = {})
|
192
192
|
data, _status_code, _headers = job_locale_delete_with_http_info(project_id, job_id, id, opts)
|
@@ -200,7 +200,7 @@ module Phrase
|
|
200
200
|
# @param id [String] ID
|
201
201
|
# @param [Hash] opts the optional parameters
|
202
202
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
203
|
-
# @option opts [String] :branch
|
203
|
+
# @option opts [String] :branch Branch to use
|
204
204
|
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
|
205
205
|
def job_locale_delete_with_http_info(project_id, job_id, id, opts = {})
|
206
206
|
if @api_client.config.debugging
|
@@ -351,7 +351,7 @@ module Phrase
|
|
351
351
|
# @param id [String] ID
|
352
352
|
# @param [Hash] opts the optional parameters
|
353
353
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
354
|
-
# @option opts [String] :branch
|
354
|
+
# @option opts [String] :branch Branch to use
|
355
355
|
# @return [JobLocale]
|
356
356
|
def job_locale_show(project_id, job_id, id, opts = {})
|
357
357
|
data, _status_code, _headers = job_locale_show_with_http_info(project_id, job_id, id, opts)
|
@@ -365,7 +365,7 @@ module Phrase
|
|
365
365
|
# @param id [String] ID
|
366
366
|
# @param [Hash] opts the optional parameters
|
367
367
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
368
|
-
# @option opts [String] :branch
|
368
|
+
# @option opts [String] :branch Branch to use
|
369
369
|
# @return [Array<(Response<(JobLocale)>, Integer, Hash)>] Response<(JobLocale)> data, response status code and response headers
|
370
370
|
def job_locale_show_with_http_info(project_id, job_id, id, opts = {})
|
371
371
|
if @api_client.config.debugging
|
@@ -599,7 +599,7 @@ module Phrase
|
|
599
599
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
600
600
|
# @option opts [Integer] :page Page number
|
601
601
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
602
|
-
# @option opts [String] :branch
|
602
|
+
# @option opts [String] :branch Branch to use
|
603
603
|
# @return [Array<JobLocale>]
|
604
604
|
def job_locales_list(project_id, job_id, opts = {})
|
605
605
|
data, _status_code, _headers = job_locales_list_with_http_info(project_id, job_id, opts)
|
@@ -614,7 +614,7 @@ module Phrase
|
|
614
614
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
615
615
|
# @option opts [Integer] :page Page number
|
616
616
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
617
|
-
# @option opts [String] :branch
|
617
|
+
# @option opts [String] :branch Branch to use
|
618
618
|
# @return [Array<(Response<(Array<JobLocale>)>, Integer, Hash)>] Response<(Array<JobLocale>)> data, response status code and response headers
|
619
619
|
def job_locales_list_with_http_info(project_id, job_id, opts = {})
|
620
620
|
if @api_client.config.debugging
|
@@ -5,17 +5,22 @@ module Phrase
|
|
5
5
|
# Job comment message
|
6
6
|
attr_accessor :message
|
7
7
|
|
8
|
+
# Branch name for the job
|
9
|
+
attr_accessor :branch
|
10
|
+
|
8
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
9
12
|
def self.attribute_map
|
10
13
|
{
|
11
|
-
:'message' => :'message'
|
14
|
+
:'message' => :'message',
|
15
|
+
:'branch' => :'branch'
|
12
16
|
}
|
13
17
|
end
|
14
18
|
|
15
19
|
# Attribute type mapping.
|
16
20
|
def self.openapi_types
|
17
21
|
{
|
18
|
-
:'message' => :'String'
|
22
|
+
:'message' => :'String',
|
23
|
+
:'branch' => :'String'
|
19
24
|
}
|
20
25
|
end
|
21
26
|
|
@@ -43,6 +48,10 @@ module Phrase
|
|
43
48
|
if attributes.key?(:'message')
|
44
49
|
self.message = attributes[:'message']
|
45
50
|
end
|
51
|
+
|
52
|
+
if attributes.key?(:'branch')
|
53
|
+
self.branch = attributes[:'branch']
|
54
|
+
end
|
46
55
|
end
|
47
56
|
|
48
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -63,7 +72,8 @@ module Phrase
|
|
63
72
|
def ==(o)
|
64
73
|
return true if self.equal?(o)
|
65
74
|
self.class == o.class &&
|
66
|
-
message == o.message
|
75
|
+
message == o.message &&
|
76
|
+
branch == o.branch
|
67
77
|
end
|
68
78
|
|
69
79
|
# @see the `==` method
|
@@ -75,7 +85,7 @@ module Phrase
|
|
75
85
|
# Calculates hash code according to all attributes.
|
76
86
|
# @return [Integer] Hash code
|
77
87
|
def hash
|
78
|
-
[message].hash
|
88
|
+
[message, branch].hash
|
79
89
|
end
|
80
90
|
|
81
91
|
# Builds the object from hash
|
@@ -5,17 +5,22 @@ module Phrase
|
|
5
5
|
# Comment message
|
6
6
|
attr_accessor :message
|
7
7
|
|
8
|
+
# Branch name for the job
|
9
|
+
attr_accessor :branch
|
10
|
+
|
8
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
9
12
|
def self.attribute_map
|
10
13
|
{
|
11
|
-
:'message' => :'message'
|
14
|
+
:'message' => :'message',
|
15
|
+
:'branch' => :'branch'
|
12
16
|
}
|
13
17
|
end
|
14
18
|
|
15
19
|
# Attribute type mapping.
|
16
20
|
def self.openapi_types
|
17
21
|
{
|
18
|
-
:'message' => :'String'
|
22
|
+
:'message' => :'String',
|
23
|
+
:'branch' => :'String'
|
19
24
|
}
|
20
25
|
end
|
21
26
|
|
@@ -43,6 +48,10 @@ module Phrase
|
|
43
48
|
if attributes.key?(:'message')
|
44
49
|
self.message = attributes[:'message']
|
45
50
|
end
|
51
|
+
|
52
|
+
if attributes.key?(:'branch')
|
53
|
+
self.branch = attributes[:'branch']
|
54
|
+
end
|
46
55
|
end
|
47
56
|
|
48
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -63,7 +72,8 @@ module Phrase
|
|
63
72
|
def ==(o)
|
64
73
|
return true if self.equal?(o)
|
65
74
|
self.class == o.class &&
|
66
|
-
message == o.message
|
75
|
+
message == o.message &&
|
76
|
+
branch == o.branch
|
67
77
|
end
|
68
78
|
|
69
79
|
# @see the `==` method
|
@@ -75,7 +85,7 @@ module Phrase
|
|
75
85
|
# Calculates hash code according to all attributes.
|
76
86
|
# @return [Integer] Hash code
|
77
87
|
def hash
|
78
|
-
[message].hash
|
88
|
+
[message, branch].hash
|
79
89
|
end
|
80
90
|
|
81
91
|
# Builds the object from hash
|
data/lib/phrase/version.rb
CHANGED
@@ -43,7 +43,7 @@ describe 'JobCommentsApi' do
|
|
43
43
|
# @param id ID
|
44
44
|
# @param [Hash] opts the optional parameters
|
45
45
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
46
|
-
# @option opts [String] :branch
|
46
|
+
# @option opts [String] :branch Branch to use
|
47
47
|
# @return [nil]
|
48
48
|
describe 'job_comment_delete test' do
|
49
49
|
it 'should work' do
|
@@ -59,7 +59,7 @@ describe 'JobCommentsApi' do
|
|
59
59
|
# @param id ID
|
60
60
|
# @param [Hash] opts the optional parameters
|
61
61
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
62
|
-
# @option opts [String] :branch
|
62
|
+
# @option opts [String] :branch Branch to use
|
63
63
|
# @return [JobComment]
|
64
64
|
describe 'job_comment_show test' do
|
65
65
|
it 'should work' do
|
@@ -90,7 +90,7 @@ describe 'JobCommentsApi' do
|
|
90
90
|
# @param job_id Job ID
|
91
91
|
# @param [Hash] opts the optional parameters
|
92
92
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
93
|
-
# @option opts [String] :branch
|
93
|
+
# @option opts [String] :branch Branch to use
|
94
94
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
95
95
|
# @return [Array<JobComment>]
|
96
96
|
describe 'job_comments_list test' do
|
@@ -60,7 +60,7 @@ describe 'JobLocalesApi' do
|
|
60
60
|
# @param id ID
|
61
61
|
# @param [Hash] opts the optional parameters
|
62
62
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
63
|
-
# @option opts [String] :branch
|
63
|
+
# @option opts [String] :branch Branch to use
|
64
64
|
# @return [nil]
|
65
65
|
describe 'job_locale_delete test' do
|
66
66
|
it 'should work' do
|
@@ -92,7 +92,7 @@ describe 'JobLocalesApi' do
|
|
92
92
|
# @param id ID
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
95
|
-
# @option opts [String] :branch
|
95
|
+
# @option opts [String] :branch Branch to use
|
96
96
|
# @return [JobLocale]
|
97
97
|
describe 'job_locale_show test' do
|
98
98
|
it 'should work' do
|
@@ -140,7 +140,7 @@ describe 'JobLocalesApi' do
|
|
140
140
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
141
141
|
# @option opts [Integer] :page Page number
|
142
142
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
143
|
-
# @option opts [String] :branch
|
143
|
+
# @option opts [String] :branch Branch to use
|
144
144
|
# @return [Array<JobLocale>]
|
145
145
|
describe 'job_locales_list test' do
|
146
146
|
it 'should work' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phrase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phrase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|