phrase 4.34.0 → 4.36.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +14 -3
  4. data/docs/Note.md +25 -0
  5. data/docs/ProjectDetails.md +3 -1
  6. data/docs/ProjectNoteUpdateParameters.md +19 -0
  7. data/docs/ProjectNotesApi.md +203 -0
  8. data/docs/RepoSync.md +7 -1
  9. data/docs/RepoSyncCreateParameters.md +7 -1
  10. data/docs/RepoSyncCreateParametersExportSchedule.md +27 -0
  11. data/docs/RepoSyncExportSchedule.md +23 -0
  12. data/docs/RepoSyncUpdateParameters.md +23 -0
  13. data/docs/RepoSyncUpdateParametersExportSchedule.md +27 -0
  14. data/docs/RepoSyncsApi.md +66 -0
  15. data/docs/UserShort.md +23 -0
  16. data/lib/phrase/api/project_notes_api.rb +223 -0
  17. data/lib/phrase/api/repo_syncs_api.rb +80 -0
  18. data/lib/phrase/models/note.rb +225 -0
  19. data/lib/phrase/models/project_details.rb +13 -4
  20. data/lib/phrase/models/project_note_update_parameters.rb +202 -0
  21. data/lib/phrase/models/repo_sync.rb +58 -5
  22. data/lib/phrase/models/repo_sync_create_parameters.rb +35 -4
  23. data/lib/phrase/models/repo_sync_create_parameters_export_schedule.rb +281 -0
  24. data/lib/phrase/models/repo_sync_export_schedule.rb +263 -0
  25. data/lib/phrase/models/repo_sync_update_parameters.rb +250 -0
  26. data/lib/phrase/models/repo_sync_update_parameters_export_schedule.rb +276 -0
  27. data/lib/phrase/models/user_short.rb +223 -0
  28. data/lib/phrase/version.rb +1 -1
  29. data/lib/phrase.rb +8 -0
  30. data/spec/api/project_notes_api_spec.rb +66 -0
  31. data/spec/api/repo_syncs_api_spec.rb +15 -0
  32. data/spec/models/note_spec.rb +47 -0
  33. data/spec/models/project_details_spec.rb +6 -0
  34. data/spec/models/project_note_update_parameters_spec.rb +29 -0
  35. data/spec/models/repo_sync_create_parameters_export_schedule_spec.rb +63 -0
  36. data/spec/models/repo_sync_create_parameters_spec.rb +22 -0
  37. data/spec/models/repo_sync_export_schedule_spec.rb +51 -0
  38. data/spec/models/repo_sync_spec.rb +22 -0
  39. data/spec/models/repo_sync_update_parameters_export_schedule_spec.rb +63 -0
  40. data/spec/models/repo_sync_update_parameters_spec.rb +51 -0
  41. data/spec/models/user_short_spec.rb +47 -0
  42. metadata +300 -268
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::ProjectNoteUpdateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'ProjectNoteUpdateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::ProjectNoteUpdateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of ProjectNoteUpdateParameters' do
19
+ it 'should create an instance of ProjectNoteUpdateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::ProjectNoteUpdateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "body"' 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
+ end
@@ -0,0 +1,63 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncCreateParametersExportSchedule
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncCreateParametersExportSchedule' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncCreateParametersExportSchedule.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncCreateParametersExportSchedule' do
19
+ it 'should create an instance of RepoSyncCreateParametersExportSchedule' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncCreateParametersExportSchedule)
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
@@ -88,4 +88,26 @@ describe 'RepoSyncCreateParameters' do
88
88
  end
89
89
  end
90
90
 
91
+ describe 'test attribute "owner_id"' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
97
+ describe 'test attribute "export_triggers"' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["schedule", "branch_merged", "job_completed"])
101
+ # validator.allowable_values.each do |value|
102
+ # expect { @instance.export_triggers = value }.not_to raise_error
103
+ # end
104
+ end
105
+ end
106
+
107
+ describe 'test attribute "export_schedule"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
91
113
  end
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncExportSchedule
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncExportSchedule' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncExportSchedule.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncExportSchedule' do
19
+ it 'should create an instance of RepoSyncExportSchedule' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncExportSchedule)
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 "cron_schedule"' 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 "next_run_at"' 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
@@ -86,4 +86,26 @@ describe 'RepoSync' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "owner"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "export_triggers"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["schedule", "branch_merged", "job_completed"])
99
+ # validator.allowable_values.each do |value|
100
+ # expect { @instance.export_triggers = value }.not_to raise_error
101
+ # end
102
+ end
103
+ end
104
+
105
+ describe 'test attribute "export_schedule"' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
89
111
  end
@@ -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
@@ -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