phrase 4.33.0 → 4.35.0

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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +11 -3
  4. data/docs/KeysApi.md +6 -2
  5. data/docs/RepoSync.md +7 -1
  6. data/docs/RepoSyncCreateParameters.md +7 -1
  7. data/docs/RepoSyncCreateParametersExportSchedule.md +27 -0
  8. data/docs/RepoSyncExportSchedule.md +23 -0
  9. data/docs/RepoSyncUpdateParameters.md +23 -0
  10. data/docs/RepoSyncUpdateParametersExportSchedule.md +27 -0
  11. data/docs/RepoSyncsApi.md +66 -0
  12. data/docs/TranslationKey.md +3 -1
  13. data/docs/TranslationKeyDetails.md +2 -0
  14. data/docs/TranslationKeyLinkedKey.md +21 -0
  15. data/docs/TranslationKeyLinkedKeyParent.md +19 -0
  16. data/docs/UserShort.md +23 -0
  17. data/lib/phrase/api/keys_api.rb +6 -0
  18. data/lib/phrase/api/repo_syncs_api.rb +80 -0
  19. data/lib/phrase/models/repo_sync.rb +58 -5
  20. data/lib/phrase/models/repo_sync_create_parameters.rb +35 -4
  21. data/lib/phrase/models/repo_sync_create_parameters_export_schedule.rb +281 -0
  22. data/lib/phrase/models/repo_sync_export_schedule.rb +263 -0
  23. data/lib/phrase/models/repo_sync_update_parameters.rb +250 -0
  24. data/lib/phrase/models/repo_sync_update_parameters_export_schedule.rb +276 -0
  25. data/lib/phrase/models/translation_key.rb +14 -4
  26. data/lib/phrase/models/translation_key_details.rb +11 -1
  27. data/lib/phrase/models/translation_key_linked_key.rb +253 -0
  28. data/lib/phrase/models/translation_key_linked_key_parent.rb +208 -0
  29. data/lib/phrase/models/user_short.rb +223 -0
  30. data/lib/phrase/version.rb +1 -1
  31. data/lib/phrase.rb +7 -0
  32. data/spec/api/keys_api_spec.rb +2 -0
  33. data/spec/api/repo_syncs_api_spec.rb +15 -0
  34. data/spec/models/repo_sync_create_parameters_export_schedule_spec.rb +63 -0
  35. data/spec/models/repo_sync_create_parameters_spec.rb +22 -0
  36. data/spec/models/repo_sync_export_schedule_spec.rb +51 -0
  37. data/spec/models/repo_sync_spec.rb +22 -0
  38. data/spec/models/repo_sync_update_parameters_export_schedule_spec.rb +63 -0
  39. data/spec/models/repo_sync_update_parameters_spec.rb +51 -0
  40. data/spec/models/translation_key_details_spec.rb +6 -0
  41. data/spec/models/translation_key_linked_key_parent_spec.rb +35 -0
  42. data/spec/models/translation_key_linked_key_spec.rb +45 -0
  43. data/spec/models/translation_key_spec.rb +6 -0
  44. data/spec/models/user_short_spec.rb +47 -0
  45. metadata +295 -267
@@ -0,0 +1,63 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncUpdateParametersExportSchedule
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncUpdateParametersExportSchedule' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncUpdateParametersExportSchedule.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncUpdateParametersExportSchedule' do
19
+ it 'should create an instance of RepoSyncUpdateParametersExportSchedule' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncUpdateParametersExportSchedule)
21
+ end
22
+ end
23
+ describe 'test attribute "frequency"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["hour", "day", "week", "month", "cron"])
27
+ # validator.allowable_values.each do |value|
28
+ # expect { @instance.frequency = value }.not_to raise_error
29
+ # end
30
+ end
31
+ end
32
+
33
+ describe 'test attribute "time"' do
34
+ it 'should work' do
35
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
36
+ end
37
+ end
38
+
39
+ describe 'test attribute "time_zone"' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "days_of_week"' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ describe 'test attribute "day_of_month"' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ describe 'test attribute "cron_schedule"' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
63
+ end
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncUpdateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncUpdateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncUpdateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncUpdateParameters' do
19
+ it 'should create an instance of RepoSyncUpdateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncUpdateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "name"' 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
+
29
+ describe 'test attribute "owner_id"' 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
+
35
+ describe 'test attribute "export_triggers"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["schedule", "branch_merged", "job_completed"])
39
+ # validator.allowable_values.each do |value|
40
+ # expect { @instance.export_triggers = value }.not_to raise_error
41
+ # end
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "export_schedule"' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ end
@@ -80,6 +80,12 @@ describe 'TranslationKeyDetails' do
80
80
  end
81
81
  end
82
82
 
83
+ describe 'test attribute "linked_key"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
83
89
  describe 'test attribute "name_plural"' do
84
90
  it 'should work' do
85
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::TranslationKeyLinkedKeyParent
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'TranslationKeyLinkedKeyParent' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::TranslationKeyLinkedKeyParent.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of TranslationKeyLinkedKeyParent' do
19
+ it 'should create an instance of TranslationKeyLinkedKeyParent' do
20
+ expect(@instance).to be_instance_of(Phrase::TranslationKeyLinkedKeyParent)
21
+ end
22
+ end
23
+ describe 'test attribute "id"' 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
+
29
+ describe 'test attribute "name"' 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
+
35
+ end
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::TranslationKeyLinkedKey
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'TranslationKeyLinkedKey' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::TranslationKeyLinkedKey.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of TranslationKeyLinkedKey' do
19
+ it 'should create an instance of TranslationKeyLinkedKey' do
20
+ expect(@instance).to be_instance_of(Phrase::TranslationKeyLinkedKey)
21
+ end
22
+ end
23
+ describe 'test attribute "role"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["parent", "child"])
27
+ # validator.allowable_values.each do |value|
28
+ # expect { @instance.role = value }.not_to raise_error
29
+ # end
30
+ end
31
+ end
32
+
33
+ describe 'test attribute "parent"' do
34
+ it 'should work' do
35
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
36
+ end
37
+ end
38
+
39
+ describe 'test attribute "children_count"' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ end
@@ -80,4 +80,10 @@ describe 'TranslationKey' do
80
80
  end
81
81
  end
82
82
 
83
+ describe 'test attribute "linked_key"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
83
89
  end
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::UserShort
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'UserShort' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::UserShort.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of UserShort' do
19
+ it 'should create an instance of UserShort' do
20
+ expect(@instance).to be_instance_of(Phrase::UserShort)
21
+ end
22
+ end
23
+ describe 'test attribute "id"' 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
+
29
+ describe 'test attribute "username"' 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
+
35
+ describe 'test attribute "name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "gravatar_uid"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end