phrase 1.0.13 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49a19fc546ef52207dcf5bb6fb55be7d17952a2bf653c9ffff5be7635d3b4458
4
- data.tar.gz: 0fa6cbdbea643ec4d224630d8c64d4985e98f24c027222f752a3401c9326ec4b
3
+ metadata.gz: cd67540c8cf537659bbda11940913845ec29e70c5b2c5aae8ee6dc5e22f944f3
4
+ data.tar.gz: 179d29d173de9ba9aceeccb072555a6d5a1e504325cefd337a90e2effaf9fc3c
5
5
  SHA512:
6
- metadata.gz: 6417d48d5c4db8bdd56e5d15e82e443a30ce12709930a38e36e1e10d7ca2d1de79c68a8f603dce55d6ace04eb24828503615116337883e74a9fa343ceb971a71
7
- data.tar.gz: 1f3acb829026fc944d11b5a17b0d33fda84461f2373a170371266a13d52f2292a8ca5978a441cd65aa2d4a0136ffffb44d2d3017d8a8222bbeaeee31f71699a5
6
+ metadata.gz: c3c7e5b46629caf876d3958f14b74876910fa80ae5a6f63ea38c0803db05fb62fc2881adb8697ecce6ff585740d47cd3f16d6ce6466987f2cfec6c4637926c3e
7
+ data.tar.gz: b6d99d11907dc532ff3691c0323e3d462245db0e36e8c0953873dee741bbd15bf2735d579bd270f6bcb72d2ec09c9ce8882291fffe7bbc05c1cf2c5ac5564a8a
data/README.md CHANGED
@@ -7,7 +7,7 @@ Phrase is a translation management platform for software projects. You can colla
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: 1.0.13
10
+ - Package version: 1.0.14
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-1.0.13.gem
59
+ gem install ./phrase-1.0.14.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-1.0.13.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-1.0.14.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **branch** | **String** | specify the branch to use | [optional]
7
8
  **name** | **String** | Name of the screenshot | [optional]
8
9
  **description** | **String** | Description of the screenshot | [optional]
9
10
  **filename** | **File** | Screenshot file | [optional]
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  ```ruby
14
15
  require 'Phrase'
15
16
 
16
- instance = Phrase::ScreenshotCreateParameters.new(name: A screenshot name,
17
+ instance = Phrase::ScreenshotCreateParameters.new(branch: my-feature-branch,
18
+ name: A screenshot name,
17
19
  description: A screenshot description,
18
20
  filename: null)
19
21
  ```
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **branch** | **String** | specify the branch to use | [optional]
7
8
  **key_id** | **String** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. | [optional]
8
9
  **presentation** | **String** | Presentation details of the screenshot marker in JSON format.<br/><br/>Each Screenshot Marker is represented as a rectangular shaped highlight box with the name of the specified Key attached. You can specify the marker position on the screenshot (<code>x</code>-axis and <code>y</code>-axis in pixels) from the top left corner of the screenshot and the dimensions of the marker itself (<code>w</code> and <code>h</code> in pixels). | [optional]
9
10
 
@@ -12,7 +13,8 @@ Name | Type | Description | Notes
12
13
  ```ruby
13
14
  require 'Phrase'
14
15
 
15
- instance = Phrase::ScreenshotMarkerCreateParameters.new(key_id: abcd1234abcd1234abcd1234abcd1234,
16
+ instance = Phrase::ScreenshotMarkerCreateParameters.new(branch: my-feature-branch,
17
+ key_id: abcd1234abcd1234abcd1234abcd1234,
16
18
  presentation: { "x": 100, "y": 100, "w": 100, "h": 100 })
17
19
  ```
18
20
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **branch** | **String** | specify the branch to use | [optional]
7
8
  **key_id** | **String** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. | [optional]
8
9
  **presentation** | **String** | Presentation details of the screenshot marker in JSON format.<br/><br/>Each Screenshot Marker is represented as a rectangular shaped highlight box with the name of the specified Key attached. You can specify the marker position on the screenshot (<code>x</code>-axis and <code>y</code>-axis in pixels) from the top left corner of the screenshot and the dimensions of the marker itself (<code>w</code> and <code>h</code> in pixels). | [optional]
9
10
 
@@ -12,7 +13,8 @@ Name | Type | Description | Notes
12
13
  ```ruby
13
14
  require 'Phrase'
14
15
 
15
- instance = Phrase::ScreenshotMarkerUpdateParameters.new(key_id: abcd1234abcd1234abcd1234abcd1234,
16
+ instance = Phrase::ScreenshotMarkerUpdateParameters.new(branch: my-feature-branch,
17
+ key_id: abcd1234abcd1234abcd1234abcd1234,
16
18
  presentation: { "x": 100, "y": 100, "w": 100, "h": 100 })
17
19
  ```
18
20
 
@@ -105,7 +105,8 @@ api_instance = Phrase::ScreenshotMarkersApi.new
105
105
  project_id = 'project_id_example' # String | Project ID
106
106
  screenshot_id = 'screenshot_id_example' # String | Screenshot ID
107
107
  opts = {
108
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
108
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
109
+ branch: 'my-feature-branch' # String | specify the branch to use
109
110
  }
110
111
 
111
112
  begin
@@ -124,6 +125,7 @@ Name | Type | Description | Notes
124
125
  **project_id** | **String**| Project ID |
125
126
  **screenshot_id** | **String**| Screenshot ID |
126
127
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
128
+ **branch** | **String**| specify the branch to use | [optional]
127
129
 
128
130
  ### Return type
129
131
 
@@ -168,7 +170,8 @@ project_id = 'project_id_example' # String | Project ID
168
170
  screenshot_id = 'screenshot_id_example' # String | Screenshot ID
169
171
  id = 'id_example' # String | ID
170
172
  opts = {
171
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
173
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
174
+ branch: 'my-feature-branch' # String | specify the branch to use
172
175
  }
173
176
 
174
177
  begin
@@ -189,6 +192,7 @@ Name | Type | Description | Notes
189
192
  **screenshot_id** | **String**| Screenshot ID |
190
193
  **id** | **String**| ID |
191
194
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
195
+ **branch** | **String**| specify the branch to use | [optional]
192
196
 
193
197
  ### Return type
194
198
 
@@ -299,7 +303,8 @@ id = 'id_example' # String | ID
299
303
  opts = {
300
304
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
301
305
  page: 1, # Integer | Page number
302
- per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
306
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
307
+ branch: 'my-feature-branch' # String | specify the branch to use
303
308
  }
304
309
 
305
310
  begin
@@ -321,6 +326,7 @@ Name | Type | Description | Notes
321
326
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
322
327
  **page** | **Integer**| Page number | [optional]
323
328
  **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
329
+ **branch** | **String**| specify the branch to use | [optional]
324
330
 
325
331
  ### Return type
326
332
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **branch** | **String** | specify the branch to use | [optional]
7
8
  **name** | **String** | Name of the screenshot | [optional]
8
9
  **description** | **String** | Description of the screenshot | [optional]
9
10
  **filename** | **File** | Screenshot file | [optional]
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  ```ruby
14
15
  require 'Phrase'
15
16
 
16
- instance = Phrase::ScreenshotUpdateParameters.new(name: A screenshot name,
17
+ instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
18
+ name: A screenshot name,
17
19
  description: A screenshot description,
18
20
  filename: null)
19
21
  ```
@@ -103,7 +103,8 @@ api_instance = Phrase::ScreenshotsApi.new
103
103
  project_id = 'project_id_example' # String | Project ID
104
104
  id = 'id_example' # String | ID
105
105
  opts = {
106
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
106
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
107
+ branch: 'my-feature-branch' # String | specify the branch to use
107
108
  }
108
109
 
109
110
  begin
@@ -122,6 +123,7 @@ Name | Type | Description | Notes
122
123
  **project_id** | **String**| Project ID |
123
124
  **id** | **String**| ID |
124
125
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
126
+ **branch** | **String**| specify the branch to use | [optional]
125
127
 
126
128
  ### Return type
127
129
 
@@ -165,7 +167,8 @@ api_instance = Phrase::ScreenshotsApi.new
165
167
  project_id = 'project_id_example' # String | Project ID
166
168
  id = 'id_example' # String | ID
167
169
  opts = {
168
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
170
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
171
+ branch: 'my-feature-branch' # String | specify the branch to use
169
172
  }
170
173
 
171
174
  begin
@@ -185,6 +188,7 @@ Name | Type | Description | Notes
185
188
  **project_id** | **String**| Project ID |
186
189
  **id** | **String**| ID |
187
190
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
191
+ **branch** | **String**| specify the branch to use | [optional]
188
192
 
189
193
  ### Return type
190
194
 
@@ -295,6 +299,7 @@ opts = {
295
299
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
296
300
  page: 1, # Integer | Page number
297
301
  per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
302
+ branch: 'my-feature-branch', # String | specify the branch to use
298
303
  key_id: 'abcd1234cdef1234abcd1234cdef1234' # String | filter by key
299
304
  }
300
305
 
@@ -316,6 +321,7 @@ Name | Type | Description | Notes
316
321
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
317
322
  **page** | **Integer**| Page number | [optional]
318
323
  **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
324
+ **branch** | **String**| specify the branch to use | [optional]
319
325
  **key_id** | **String**| filter by key | [optional]
320
326
 
321
327
  ### Return type
@@ -93,6 +93,7 @@ module Phrase
93
93
  # @param screenshot_id [String] Screenshot ID
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
96
+ # @option opts [String] :branch specify the branch to use
96
97
  # @return [nil]
97
98
  def screenshot_marker_delete(project_id, screenshot_id, opts = {})
98
99
  data, _status_code, _headers = screenshot_marker_delete_with_http_info(project_id, screenshot_id, opts)
@@ -105,6 +106,7 @@ module Phrase
105
106
  # @param screenshot_id [String] Screenshot ID
106
107
  # @param [Hash] opts the optional parameters
107
108
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
109
+ # @option opts [String] :branch specify the branch to use
108
110
  # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
109
111
  def screenshot_marker_delete_with_http_info(project_id, screenshot_id, opts = {})
110
112
  if @api_client.config.debugging
@@ -123,6 +125,7 @@ module Phrase
123
125
 
124
126
  # query parameters
125
127
  query_params = opts[:query_params] || {}
128
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
126
129
 
127
130
  # header parameters
128
131
  header_params = opts[:header_params] || {}
@@ -164,6 +167,7 @@ module Phrase
164
167
  # @param id [String] ID
165
168
  # @param [Hash] opts the optional parameters
166
169
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
170
+ # @option opts [String] :branch specify the branch to use
167
171
  # @return [ScreenshotMarker]
168
172
  def screenshot_marker_show(project_id, screenshot_id, id, opts = {})
169
173
  data, _status_code, _headers = screenshot_marker_show_with_http_info(project_id, screenshot_id, id, opts)
@@ -177,6 +181,7 @@ module Phrase
177
181
  # @param id [String] ID
178
182
  # @param [Hash] opts the optional parameters
179
183
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
184
+ # @option opts [String] :branch specify the branch to use
180
185
  # @return [Array<(Response<(ScreenshotMarker)>, Integer, Hash)>] Response<(ScreenshotMarker)> data, response status code and response headers
181
186
  def screenshot_marker_show_with_http_info(project_id, screenshot_id, id, opts = {})
182
187
  if @api_client.config.debugging
@@ -199,6 +204,7 @@ module Phrase
199
204
 
200
205
  # query parameters
201
206
  query_params = opts[:query_params] || {}
207
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
202
208
 
203
209
  # header parameters
204
210
  header_params = opts[:header_params] || {}
@@ -323,6 +329,7 @@ module Phrase
323
329
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
324
330
  # @option opts [Integer] :page Page number
325
331
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
332
+ # @option opts [String] :branch specify the branch to use
326
333
  # @return [Array<ScreenshotMarker>]
327
334
  def screenshot_markers_list(project_id, id, opts = {})
328
335
  data, _status_code, _headers = screenshot_markers_list_with_http_info(project_id, id, opts)
@@ -337,6 +344,7 @@ module Phrase
337
344
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
338
345
  # @option opts [Integer] :page Page number
339
346
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
347
+ # @option opts [String] :branch specify the branch to use
340
348
  # @return [Array<(Response<(Array<ScreenshotMarker>)>, Integer, Hash)>] Response<(Array<ScreenshotMarker>)> data, response status code and response headers
341
349
  def screenshot_markers_list_with_http_info(project_id, id, opts = {})
342
350
  if @api_client.config.debugging
@@ -357,6 +365,7 @@ module Phrase
357
365
  query_params = opts[:query_params] || {}
358
366
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
359
367
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
368
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
360
369
 
361
370
  # header parameters
362
371
  header_params = opts[:header_params] || {}
@@ -87,6 +87,7 @@ module Phrase
87
87
  # @param id [String] ID
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
90
+ # @option opts [String] :branch specify the branch to use
90
91
  # @return [nil]
91
92
  def screenshot_delete(project_id, id, opts = {})
92
93
  data, _status_code, _headers = screenshot_delete_with_http_info(project_id, id, opts)
@@ -99,6 +100,7 @@ module Phrase
99
100
  # @param id [String] ID
100
101
  # @param [Hash] opts the optional parameters
101
102
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
103
+ # @option opts [String] :branch specify the branch to use
102
104
  # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
103
105
  def screenshot_delete_with_http_info(project_id, id, opts = {})
104
106
  if @api_client.config.debugging
@@ -117,6 +119,7 @@ module Phrase
117
119
 
118
120
  # query parameters
119
121
  query_params = opts[:query_params] || {}
122
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
120
123
 
121
124
  # header parameters
122
125
  header_params = opts[:header_params] || {}
@@ -157,6 +160,7 @@ module Phrase
157
160
  # @param id [String] ID
158
161
  # @param [Hash] opts the optional parameters
159
162
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
163
+ # @option opts [String] :branch specify the branch to use
160
164
  # @return [Screenshot]
161
165
  def screenshot_show(project_id, id, opts = {})
162
166
  data, _status_code, _headers = screenshot_show_with_http_info(project_id, id, opts)
@@ -169,6 +173,7 @@ module Phrase
169
173
  # @param id [String] ID
170
174
  # @param [Hash] opts the optional parameters
171
175
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
176
+ # @option opts [String] :branch specify the branch to use
172
177
  # @return [Array<(Response<(Screenshot)>, Integer, Hash)>] Response<(Screenshot)> data, response status code and response headers
173
178
  def screenshot_show_with_http_info(project_id, id, opts = {})
174
179
  if @api_client.config.debugging
@@ -187,6 +192,7 @@ module Phrase
187
192
 
188
193
  # query parameters
189
194
  query_params = opts[:query_params] || {}
195
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
190
196
 
191
197
  # header parameters
192
198
  header_params = opts[:header_params] || {}
@@ -310,6 +316,7 @@ module Phrase
310
316
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
311
317
  # @option opts [Integer] :page Page number
312
318
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
319
+ # @option opts [String] :branch specify the branch to use
313
320
  # @option opts [String] :key_id filter by key
314
321
  # @return [Array<Screenshot>]
315
322
  def screenshots_list(project_id, opts = {})
@@ -324,6 +331,7 @@ module Phrase
324
331
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
325
332
  # @option opts [Integer] :page Page number
326
333
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
334
+ # @option opts [String] :branch specify the branch to use
327
335
  # @option opts [String] :key_id filter by key
328
336
  # @return [Array<(Response<(Array<Screenshot>)>, Integer, Hash)>] Response<(Array<Screenshot>)> data, response status code and response headers
329
337
  def screenshots_list_with_http_info(project_id, opts = {})
@@ -341,6 +349,7 @@ module Phrase
341
349
  query_params = opts[:query_params] || {}
342
350
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
343
351
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
352
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
344
353
  query_params[:'key_id'] = opts[:'key_id'] if !opts[:'key_id'].nil?
345
354
 
346
355
  # header parameters
@@ -2,6 +2,9 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class ScreenshotCreateParameters
5
+ # specify the branch to use
6
+ attr_accessor :branch
7
+
5
8
  # Name of the screenshot
6
9
  attr_accessor :name
7
10
 
@@ -14,6 +17,7 @@ module Phrase
14
17
  # Attribute mapping from ruby-style variable name to JSON key.
15
18
  def self.attribute_map
16
19
  {
20
+ :'branch' => :'branch',
17
21
  :'name' => :'name',
18
22
  :'description' => :'description',
19
23
  :'filename' => :'filename'
@@ -23,6 +27,7 @@ module Phrase
23
27
  # Attribute type mapping.
24
28
  def self.openapi_types
25
29
  {
30
+ :'branch' => :'String',
26
31
  :'name' => :'String',
27
32
  :'description' => :'String',
28
33
  :'filename' => :'File'
@@ -50,6 +55,10 @@ module Phrase
50
55
  h[k.to_sym] = v
51
56
  }
52
57
 
58
+ if attributes.key?(:'branch')
59
+ self.branch = attributes[:'branch']
60
+ end
61
+
53
62
  if attributes.key?(:'name')
54
63
  self.name = attributes[:'name']
55
64
  end
@@ -81,6 +90,7 @@ module Phrase
81
90
  def ==(o)
82
91
  return true if self.equal?(o)
83
92
  self.class == o.class &&
93
+ branch == o.branch &&
84
94
  name == o.name &&
85
95
  description == o.description &&
86
96
  filename == o.filename
@@ -95,7 +105,7 @@ module Phrase
95
105
  # Calculates hash code according to all attributes.
96
106
  # @return [Integer] Hash code
97
107
  def hash
98
- [name, description, filename].hash
108
+ [branch, name, description, filename].hash
99
109
  end
100
110
 
101
111
  # Builds the object from hash
@@ -2,6 +2,9 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class ScreenshotMarkerCreateParameters
5
+ # specify the branch to use
6
+ attr_accessor :branch
7
+
5
8
  # Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project.
6
9
  attr_accessor :key_id
7
10
 
@@ -11,6 +14,7 @@ module Phrase
11
14
  # Attribute mapping from ruby-style variable name to JSON key.
12
15
  def self.attribute_map
13
16
  {
17
+ :'branch' => :'branch',
14
18
  :'key_id' => :'key_id',
15
19
  :'presentation' => :'presentation'
16
20
  }
@@ -19,6 +23,7 @@ module Phrase
19
23
  # Attribute type mapping.
20
24
  def self.openapi_types
21
25
  {
26
+ :'branch' => :'String',
22
27
  :'key_id' => :'String',
23
28
  :'presentation' => :'String'
24
29
  }
@@ -45,6 +50,10 @@ module Phrase
45
50
  h[k.to_sym] = v
46
51
  }
47
52
 
53
+ if attributes.key?(:'branch')
54
+ self.branch = attributes[:'branch']
55
+ end
56
+
48
57
  if attributes.key?(:'key_id')
49
58
  self.key_id = attributes[:'key_id']
50
59
  end
@@ -72,6 +81,7 @@ module Phrase
72
81
  def ==(o)
73
82
  return true if self.equal?(o)
74
83
  self.class == o.class &&
84
+ branch == o.branch &&
75
85
  key_id == o.key_id &&
76
86
  presentation == o.presentation
77
87
  end
@@ -85,7 +95,7 @@ module Phrase
85
95
  # Calculates hash code according to all attributes.
86
96
  # @return [Integer] Hash code
87
97
  def hash
88
- [key_id, presentation].hash
98
+ [branch, key_id, presentation].hash
89
99
  end
90
100
 
91
101
  # Builds the object from hash
@@ -2,6 +2,9 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class ScreenshotMarkerUpdateParameters
5
+ # specify the branch to use
6
+ attr_accessor :branch
7
+
5
8
  # Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project.
6
9
  attr_accessor :key_id
7
10
 
@@ -11,6 +14,7 @@ module Phrase
11
14
  # Attribute mapping from ruby-style variable name to JSON key.
12
15
  def self.attribute_map
13
16
  {
17
+ :'branch' => :'branch',
14
18
  :'key_id' => :'key_id',
15
19
  :'presentation' => :'presentation'
16
20
  }
@@ -19,6 +23,7 @@ module Phrase
19
23
  # Attribute type mapping.
20
24
  def self.openapi_types
21
25
  {
26
+ :'branch' => :'String',
22
27
  :'key_id' => :'String',
23
28
  :'presentation' => :'String'
24
29
  }
@@ -45,6 +50,10 @@ module Phrase
45
50
  h[k.to_sym] = v
46
51
  }
47
52
 
53
+ if attributes.key?(:'branch')
54
+ self.branch = attributes[:'branch']
55
+ end
56
+
48
57
  if attributes.key?(:'key_id')
49
58
  self.key_id = attributes[:'key_id']
50
59
  end
@@ -72,6 +81,7 @@ module Phrase
72
81
  def ==(o)
73
82
  return true if self.equal?(o)
74
83
  self.class == o.class &&
84
+ branch == o.branch &&
75
85
  key_id == o.key_id &&
76
86
  presentation == o.presentation
77
87
  end
@@ -85,7 +95,7 @@ module Phrase
85
95
  # Calculates hash code according to all attributes.
86
96
  # @return [Integer] Hash code
87
97
  def hash
88
- [key_id, presentation].hash
98
+ [branch, key_id, presentation].hash
89
99
  end
90
100
 
91
101
  # Builds the object from hash
@@ -2,6 +2,9 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class ScreenshotUpdateParameters
5
+ # specify the branch to use
6
+ attr_accessor :branch
7
+
5
8
  # Name of the screenshot
6
9
  attr_accessor :name
7
10
 
@@ -14,6 +17,7 @@ module Phrase
14
17
  # Attribute mapping from ruby-style variable name to JSON key.
15
18
  def self.attribute_map
16
19
  {
20
+ :'branch' => :'branch',
17
21
  :'name' => :'name',
18
22
  :'description' => :'description',
19
23
  :'filename' => :'filename'
@@ -23,6 +27,7 @@ module Phrase
23
27
  # Attribute type mapping.
24
28
  def self.openapi_types
25
29
  {
30
+ :'branch' => :'String',
26
31
  :'name' => :'String',
27
32
  :'description' => :'String',
28
33
  :'filename' => :'File'
@@ -50,6 +55,10 @@ module Phrase
50
55
  h[k.to_sym] = v
51
56
  }
52
57
 
58
+ if attributes.key?(:'branch')
59
+ self.branch = attributes[:'branch']
60
+ end
61
+
53
62
  if attributes.key?(:'name')
54
63
  self.name = attributes[:'name']
55
64
  end
@@ -81,6 +90,7 @@ module Phrase
81
90
  def ==(o)
82
91
  return true if self.equal?(o)
83
92
  self.class == o.class &&
93
+ branch == o.branch &&
84
94
  name == o.name &&
85
95
  description == o.description &&
86
96
  filename == o.filename
@@ -95,7 +105,7 @@ module Phrase
95
105
  # Calculates hash code according to all attributes.
96
106
  # @return [Integer] Hash code
97
107
  def hash
98
- [name, description, filename].hash
108
+ [branch, name, description, filename].hash
99
109
  end
100
110
 
101
111
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '1.0.13'
2
+ VERSION = '1.0.14'
3
3
  end
@@ -42,6 +42,7 @@ describe 'ScreenshotMarkersApi' do
42
42
  # @param screenshot_id Screenshot ID
43
43
  # @param [Hash] opts the optional parameters
44
44
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
45
+ # @option opts [String] :branch specify the branch to use
45
46
  # @return [nil]
46
47
  describe 'screenshot_marker_delete test' do
47
48
  it 'should work' do
@@ -57,6 +58,7 @@ describe 'ScreenshotMarkersApi' do
57
58
  # @param id ID
58
59
  # @param [Hash] opts the optional parameters
59
60
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
61
+ # @option opts [String] :branch specify the branch to use
60
62
  # @return [ScreenshotMarker]
61
63
  describe 'screenshot_marker_show test' do
62
64
  it 'should work' do
@@ -88,6 +90,7 @@ describe 'ScreenshotMarkersApi' do
88
90
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
89
91
  # @option opts [Integer] :page Page number
90
92
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
93
+ # @option opts [String] :branch specify the branch to use
91
94
  # @return [Array<ScreenshotMarker>]
92
95
  describe 'screenshot_markers_list test' do
93
96
  it 'should work' do
@@ -41,6 +41,7 @@ describe 'ScreenshotsApi' do
41
41
  # @param id ID
42
42
  # @param [Hash] opts the optional parameters
43
43
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
44
+ # @option opts [String] :branch specify the branch to use
44
45
  # @return [nil]
45
46
  describe 'screenshot_delete test' do
46
47
  it 'should work' do
@@ -55,6 +56,7 @@ describe 'ScreenshotsApi' do
55
56
  # @param id ID
56
57
  # @param [Hash] opts the optional parameters
57
58
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
59
+ # @option opts [String] :branch specify the branch to use
58
60
  # @return [Screenshot]
59
61
  describe 'screenshot_show test' do
60
62
  it 'should work' do
@@ -85,6 +87,7 @@ describe 'ScreenshotsApi' do
85
87
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
88
  # @option opts [Integer] :page Page number
87
89
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
90
+ # @option opts [String] :branch specify the branch to use
88
91
  # @option opts [String] :key_id filter by key
89
92
  # @return [Array<Screenshot>]
90
93
  describe 'screenshots_list test' do
@@ -20,6 +20,12 @@ describe 'ScreenshotCreateParameters' do
20
20
  expect(@instance).to be_instance_of(Phrase::ScreenshotCreateParameters)
21
21
  end
22
22
  end
23
+ describe 'test attribute "branch"' 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
+
23
29
  describe 'test attribute "name"' do
24
30
  it 'should work' do
25
31
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -20,6 +20,12 @@ describe 'ScreenshotMarkerCreateParameters' do
20
20
  expect(@instance).to be_instance_of(Phrase::ScreenshotMarkerCreateParameters)
21
21
  end
22
22
  end
23
+ describe 'test attribute "branch"' 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
+
23
29
  describe 'test attribute "key_id"' do
24
30
  it 'should work' do
25
31
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -20,6 +20,12 @@ describe 'ScreenshotMarkerUpdateParameters' do
20
20
  expect(@instance).to be_instance_of(Phrase::ScreenshotMarkerUpdateParameters)
21
21
  end
22
22
  end
23
+ describe 'test attribute "branch"' 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
+
23
29
  describe 'test attribute "key_id"' do
24
30
  it 'should work' do
25
31
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -20,6 +20,12 @@ describe 'ScreenshotUpdateParameters' do
20
20
  expect(@instance).to be_instance_of(Phrase::ScreenshotUpdateParameters)
21
21
  end
22
22
  end
23
+ describe 'test attribute "branch"' 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
+
23
29
  describe 'test attribute "name"' do
24
30
  it 'should work' do
25
31
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-13 00:00:00.000000000 Z
11
+ date: 2021-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus