Skip to content

Commit c80cad9

Browse files
author
Phrase
committed
1 parent 62ea5e4 commit c80cad9

File tree

8 files changed

+32
-20
lines changed

8 files changed

+32
-20
lines changed

docs/JobsApi.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,8 @@ opts = {
761761
per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
762762
owned_by: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user owning job
763763
assigned_to: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user assigned to job
764-
state: 'completed' # String | filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
764+
state: 'completed', # String | filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
765+
updated_since: '2013-02-21T00:00:00.000Z' # String | filter by jobs updated since given date
765766
}
766767

767768
begin
@@ -784,7 +785,8 @@ Name | Type | Description | Notes
784785
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
785786
**owned_by** | **String**| filter by user owning job | [optional]
786787
**assigned_to** | **String**| filter by user assigned to job | [optional]
787-
**state** | **String**| filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
788+
**state** | **String**| filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
789+
**updated_since** | **String**| filter by jobs updated since given date | [optional]
788790

789791
### Return type
790792

@@ -830,10 +832,11 @@ opts = {
830832
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
831833
page: 1, # Integer | Page number
832834
per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
833-
branch: 'my-feature-branch', # String | specify the branch to use
835+
branch: 'my-feature-branch', # String | Branch to use
834836
owned_by: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user owning job
835837
assigned_to: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user assigned to job
836-
state: 'completed' # String | filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
838+
state: 'completed', # String | filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
839+
updated_since: '2013-02-21T00:00:00.000Z' # String | filter by jobs updated since given date
837840
}
838841

839842
begin
@@ -854,10 +857,11 @@ Name | Type | Description | Notes
854857
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
855858
**page** | **Integer**| Page number | [optional]
856859
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
857-
**branch** | **String**| specify the branch to use | [optional]
860+
**branch** | **String**| Branch to use | [optional]
858861
**owned_by** | **String**| filter by user owning job | [optional]
859862
**assigned_to** | **String**| filter by user assigned to job | [optional]
860-
**state** | **String**| filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
863+
**state** | **String**| filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
864+
**updated_since** | **String**| filter by jobs updated since given date | [optional]
861865

862866
### Return type
863867

docs/KeyCreateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
3636
data_type: number,
3737
tags: awesome-feature,needs-proofreading,
3838
max_characters_allowed: 140,
39-
screenshot: [B@26664caa,
39+
screenshot: [B@168b28ef,
4040
remove_screenshot: null,
4141
unformatted: null,
4242
default_translation_content: Default translation content,

docs/KeyUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
3434
data_type: number,
3535
tags: awesome-feature,needs-proofreading,
3636
max_characters_allowed: 140,
37-
screenshot: [B@6b3eb57,
37+
screenshot: [B@e8fabad,
3838
remove_screenshot: null,
3939
unformatted: null,
4040
xml_space_preserve: null,

docs/ProjectCreateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
3737
main_format: yml,
3838
media: Python,
3939
shares_translation_memory: true,
40-
project_image: [B@e8fabad,
40+
project_image: [B@536d655f,
4141
remove_project_image: null,
4242
account_id: abcd1234,
4343
point_of_contact: abcd1234,

docs/ProjectUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
3939
main_format: yml,
4040
media: Python,
4141
shares_translation_memory: true,
42-
project_image: [B@13866e67,
42+
project_image: [B@3bf47d1e,
4343
remove_project_image: false,
4444
workflow: review,
4545
machine_translation_enabled: true,

docs/ScreenshotUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require 'Phrase'
1717
instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
1818
name: A screenshot name,
1919
description: A screenshot description,
20-
filename: [B@5547476c)
20+
filename: [B@2ef4e7f3)
2121
```
2222

2323

lib/phrase/api/jobs_api.rb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,8 @@ def job_update_with_http_info(project_id, id, job_update_parameters, opts = {})
862862
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
863863
# @option opts [String] :owned_by filter by user owning job
864864
# @option opts [String] :assigned_to filter by user assigned to job
865-
# @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
865+
# @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
866+
# @option opts [String] :updated_since filter by jobs updated since given date
866867
# @return [Array<Job>]
867868
def jobs_by_account(account_id, opts = {})
868869
data, _status_code, _headers = jobs_by_account_with_http_info(account_id, opts)
@@ -878,7 +879,8 @@ def jobs_by_account(account_id, opts = {})
878879
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
879880
# @option opts [String] :owned_by filter by user owning job
880881
# @option opts [String] :assigned_to filter by user assigned to job
881-
# @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
882+
# @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
883+
# @option opts [String] :updated_since filter by jobs updated since given date
882884
# @return [Array<(Response<(Array<Job>)>, Integer, Hash)>] Response<(Array<Job>)> data, response status code and response headers
883885
def jobs_by_account_with_http_info(account_id, opts = {})
884886
if @api_client.config.debugging
@@ -898,6 +900,7 @@ def jobs_by_account_with_http_info(account_id, opts = {})
898900
query_params[:'owned_by'] = opts[:'owned_by'] if !opts[:'owned_by'].nil?
899901
query_params[:'assigned_to'] = opts[:'assigned_to'] if !opts[:'assigned_to'].nil?
900902
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
903+
query_params[:'updated_since'] = opts[:'updated_since'] if !opts[:'updated_since'].nil?
901904

902905
# header parameters
903906
header_params = opts[:header_params] || {}
@@ -941,10 +944,11 @@ def jobs_by_account_with_http_info(account_id, opts = {})
941944
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
942945
# @option opts [Integer] :page Page number
943946
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
944-
# @option opts [String] :branch specify the branch to use
947+
# @option opts [String] :branch Branch to use
945948
# @option opts [String] :owned_by filter by user owning job
946949
# @option opts [String] :assigned_to filter by user assigned to job
947-
# @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
950+
# @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
951+
# @option opts [String] :updated_since filter by jobs updated since given date
948952
# @return [Array<Job>]
949953
def jobs_list(project_id, opts = {})
950954
data, _status_code, _headers = jobs_list_with_http_info(project_id, opts)
@@ -958,10 +962,11 @@ def jobs_list(project_id, opts = {})
958962
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
959963
# @option opts [Integer] :page Page number
960964
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
961-
# @option opts [String] :branch specify the branch to use
965+
# @option opts [String] :branch Branch to use
962966
# @option opts [String] :owned_by filter by user owning job
963967
# @option opts [String] :assigned_to filter by user assigned to job
964-
# @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
968+
# @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
969+
# @option opts [String] :updated_since filter by jobs updated since given date
965970
# @return [Array<(Response<(Array<Job>)>, Integer, Hash)>] Response<(Array<Job>)> data, response status code and response headers
966971
def jobs_list_with_http_info(project_id, opts = {})
967972
if @api_client.config.debugging
@@ -982,6 +987,7 @@ def jobs_list_with_http_info(project_id, opts = {})
982987
query_params[:'owned_by'] = opts[:'owned_by'] if !opts[:'owned_by'].nil?
983988
query_params[:'assigned_to'] = opts[:'assigned_to'] if !opts[:'assigned_to'].nil?
984989
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
990+
query_params[:'updated_since'] = opts[:'updated_since'] if !opts[:'updated_since'].nil?
985991

986992
# header parameters
987993
header_params = opts[:header_params] || {}

spec/api/jobs_api_spec.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@
194194
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
195195
# @option opts [String] :owned_by filter by user owning job
196196
# @option opts [String] :assigned_to filter by user assigned to job
197-
# @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
197+
# @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
198+
# @option opts [String] :updated_since filter by jobs updated since given date
198199
# @return [Array<Job>]
199200
describe 'jobs_by_account test' do
200201
it 'should work' do
@@ -210,10 +211,11 @@
210211
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
211212
# @option opts [Integer] :page Page number
212213
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
213-
# @option opts [String] :branch specify the branch to use
214+
# @option opts [String] :branch Branch to use
214215
# @option opts [String] :owned_by filter by user owning job
215216
# @option opts [String] :assigned_to filter by user assigned to job
216-
# @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
217+
# @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
218+
# @option opts [String] :updated_since filter by jobs updated since given date
217219
# @return [Array<Job>]
218220
describe 'jobs_list test' do
219221
it 'should work' do

0 commit comments

Comments
 (0)