phrase 1.0.6 → 1.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0ae18c480bf9502c268edcfb90d6f1bfc61d3f5aef8ecf3f9b59df23dbb0372
4
- data.tar.gz: ce97c2115637f6b9e076e113893da50b8b891ef8d852f2ab6dc0d36a030c13e3
3
+ metadata.gz: 363818b3fafb57ee99cac2370eaad0ab61a2e1e287092aec2536b48037a7b724
4
+ data.tar.gz: b856a73bc10eae5eb9f37aaff1cf4edb96d12d599e2230d3dc2a015e84259c94
5
5
  SHA512:
6
- metadata.gz: 0f32d558533184bb7c9225046bf0b287a4a406c47dedcceb4d3afe274ca053ae25f8a71e14013346c2ead90d7502c2af831e59ccc879c6f47a61b3acd677b938
7
- data.tar.gz: 84dfac536f2f7b27d4d7bce8b37686802c9cf5cdafde48c97eeb29391c721470e8d42fe627236c78e70a5222460e28666b801dc5c6532cbc5ca72b144850e24f
6
+ metadata.gz: ee376ffad0648c64a9f4eec806331afbaf9a65eaaf1577a9fc5192b93abdfcf85fff077a299c942902b983b84b70b2f46102fb27dd1fd499009dc8585dcec1b9
7
+ data.tar.gz: e9fd4bc297f45da44232563a52bc812771e58ee9fafcb0893f79ca80a9d7df0544025b4914e7b27e6413035612d2fa16a8f79eb3c2417ae2881968388129a0fd
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.6
10
+ - Package version: 1.0.7
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.6.gem
59
+ gem install ./phrase-1.0.7.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-1.0.6.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-1.0.7.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -294,7 +294,8 @@ project_id = 'project_id_example' # String | Project ID
294
294
  opts = {
295
295
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
296
296
  page: 1, # Integer | Page number
297
- per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
297
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
298
+ key_id: 'abcd1234cdef1234abcd1234cdef1234' # String | filter by key
298
299
  }
299
300
 
300
301
  begin
@@ -315,6 +316,7 @@ Name | Type | Description | Notes
315
316
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
316
317
  **page** | **Integer**| Page number | [optional]
317
318
  **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
319
+ **key_id** | **String**| filter by key | [optional]
318
320
 
319
321
  ### Return type
320
322
 
@@ -5,6 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **callback_url** | **String** | Callback URL to send requests to | [optional]
8
+ **secret** | **String** | Webhook secret used to calculate signature. If empty, the default project secret will be used. | [optional]
8
9
  **description** | **String** | Webhook description | [optional]
9
10
  **events** | **String** | List of event names to trigger the webhook (separated by comma) | [optional]
10
11
  **active** | **Boolean** | Whether webhook is active or inactive | [optional]
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
15
16
  require 'Phrase'
16
17
 
17
18
  instance = Phrase::WebhookCreateParameters.new(callback_url: http://example.com/hooks/phraseapp-notifications,
19
+ secret: secr3t,
18
20
  description: My webhook for chat notifications,
19
21
  events: locales:create,translations:update,
20
22
  active: null)
@@ -5,6 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **callback_url** | **String** | Callback URL to send requests to | [optional]
8
+ **secret** | **String** | Webhook secret used to calculate signature. If empty, the default project secret will be used. | [optional]
8
9
  **description** | **String** | Webhook description | [optional]
9
10
  **events** | **String** | List of event names to trigger the webhook (separated by comma) | [optional]
10
11
  **active** | **Boolean** | Whether webhook is active or inactive | [optional]
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
15
16
  require 'Phrase'
16
17
 
17
18
  instance = Phrase::WebhookUpdateParameters.new(callback_url: http://example.com/hooks/phraseapp-notifications,
19
+ secret: secr3t,
18
20
  description: My webhook for chat notifications,
19
21
  events: locales:create,translations:update,
20
22
  active: null)
@@ -310,6 +310,7 @@ module Phrase
310
310
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
311
311
  # @option opts [Integer] :page Page number
312
312
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
313
+ # @option opts [String] :key_id filter by key
313
314
  # @return [Array<Screenshot>]
314
315
  def screenshots_list(project_id, opts = {})
315
316
  data, _status_code, _headers = screenshots_list_with_http_info(project_id, opts)
@@ -323,6 +324,7 @@ module Phrase
323
324
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
324
325
  # @option opts [Integer] :page Page number
325
326
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
327
+ # @option opts [String] :key_id filter by key
326
328
  # @return [Array<(Response<(Array<Screenshot>)>, Integer, Hash)>] Response<(Array<Screenshot>)> data, response status code and response headers
327
329
  def screenshots_list_with_http_info(project_id, opts = {})
328
330
  if @api_client.config.debugging
@@ -339,6 +341,7 @@ module Phrase
339
341
  query_params = opts[:query_params] || {}
340
342
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
341
343
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
344
+ query_params[:'key_id'] = opts[:'key_id'] if !opts[:'key_id'].nil?
342
345
 
343
346
  # header parameters
344
347
  header_params = opts[:header_params] || {}
@@ -5,6 +5,9 @@ module Phrase
5
5
  # Callback URL to send requests to
6
6
  attr_accessor :callback_url
7
7
 
8
+ # Webhook secret used to calculate signature. If empty, the default project secret will be used.
9
+ attr_accessor :secret
10
+
8
11
  # Webhook description
9
12
  attr_accessor :description
10
13
 
@@ -18,6 +21,7 @@ module Phrase
18
21
  def self.attribute_map
19
22
  {
20
23
  :'callback_url' => :'callback_url',
24
+ :'secret' => :'secret',
21
25
  :'description' => :'description',
22
26
  :'events' => :'events',
23
27
  :'active' => :'active'
@@ -28,6 +32,7 @@ module Phrase
28
32
  def self.openapi_types
29
33
  {
30
34
  :'callback_url' => :'String',
35
+ :'secret' => :'String',
31
36
  :'description' => :'String',
32
37
  :'events' => :'String',
33
38
  :'active' => :'Boolean'
@@ -59,6 +64,10 @@ module Phrase
59
64
  self.callback_url = attributes[:'callback_url']
60
65
  end
61
66
 
67
+ if attributes.key?(:'secret')
68
+ self.secret = attributes[:'secret']
69
+ end
70
+
62
71
  if attributes.key?(:'description')
63
72
  self.description = attributes[:'description']
64
73
  end
@@ -91,6 +100,7 @@ module Phrase
91
100
  return true if self.equal?(o)
92
101
  self.class == o.class &&
93
102
  callback_url == o.callback_url &&
103
+ secret == o.secret &&
94
104
  description == o.description &&
95
105
  events == o.events &&
96
106
  active == o.active
@@ -105,7 +115,7 @@ module Phrase
105
115
  # Calculates hash code according to all attributes.
106
116
  # @return [Integer] Hash code
107
117
  def hash
108
- [callback_url, description, events, active].hash
118
+ [callback_url, secret, description, events, active].hash
109
119
  end
110
120
 
111
121
  # Builds the object from hash
@@ -5,6 +5,9 @@ module Phrase
5
5
  # Callback URL to send requests to
6
6
  attr_accessor :callback_url
7
7
 
8
+ # Webhook secret used to calculate signature. If empty, the default project secret will be used.
9
+ attr_accessor :secret
10
+
8
11
  # Webhook description
9
12
  attr_accessor :description
10
13
 
@@ -18,6 +21,7 @@ module Phrase
18
21
  def self.attribute_map
19
22
  {
20
23
  :'callback_url' => :'callback_url',
24
+ :'secret' => :'secret',
21
25
  :'description' => :'description',
22
26
  :'events' => :'events',
23
27
  :'active' => :'active'
@@ -28,6 +32,7 @@ module Phrase
28
32
  def self.openapi_types
29
33
  {
30
34
  :'callback_url' => :'String',
35
+ :'secret' => :'String',
31
36
  :'description' => :'String',
32
37
  :'events' => :'String',
33
38
  :'active' => :'Boolean'
@@ -59,6 +64,10 @@ module Phrase
59
64
  self.callback_url = attributes[:'callback_url']
60
65
  end
61
66
 
67
+ if attributes.key?(:'secret')
68
+ self.secret = attributes[:'secret']
69
+ end
70
+
62
71
  if attributes.key?(:'description')
63
72
  self.description = attributes[:'description']
64
73
  end
@@ -91,6 +100,7 @@ module Phrase
91
100
  return true if self.equal?(o)
92
101
  self.class == o.class &&
93
102
  callback_url == o.callback_url &&
103
+ secret == o.secret &&
94
104
  description == o.description &&
95
105
  events == o.events &&
96
106
  active == o.active
@@ -105,7 +115,7 @@ module Phrase
105
115
  # Calculates hash code according to all attributes.
106
116
  # @return [Integer] Hash code
107
117
  def hash
108
- [callback_url, description, events, active].hash
118
+ [callback_url, secret, description, events, active].hash
109
119
  end
110
120
 
111
121
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
@@ -85,6 +85,7 @@ describe 'ScreenshotsApi' do
85
85
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
86
  # @option opts [Integer] :page Page number
87
87
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
88
+ # @option opts [String] :key_id filter by key
88
89
  # @return [Array<Screenshot>]
89
90
  describe 'screenshots_list test' do
90
91
  it 'should work' do
@@ -26,6 +26,12 @@ describe 'WebhookCreateParameters' do
26
26
  end
27
27
  end
28
28
 
29
+ describe 'test attribute "secret"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
29
35
  describe 'test attribute "description"' do
30
36
  it 'should work' do
31
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -26,6 +26,12 @@ describe 'WebhookUpdateParameters' do
26
26
  end
27
27
  end
28
28
 
29
+ describe 'test attribute "secret"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
29
35
  describe 'test attribute "description"' do
30
36
  it 'should work' do
31
37
  # 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.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus