phrase 2.24.0 → 2.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,120 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::RepoSyncsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'RepoSyncsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::RepoSyncsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of RepoSyncsApi' do
18
+ it 'should create an instance of RepoSyncsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::RepoSyncsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for repo_sync_activate
24
+ # Activate a Repo Sync
25
+ # Activate a deactivated Repo Sync. Active syncs can be used to import and export translations, and imports to Phrase are automatically triggered by pushes to the repository, if configured.
26
+ # @param account_id Account ID
27
+ # @param repo_sync_id Repo Sync ID
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [RepoSync]
31
+ describe 'repo_sync_activate test' do
32
+ it 'should work' do
33
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
34
+ end
35
+ end
36
+
37
+ # unit tests for repo_sync_deactivate
38
+ # Deactivate a Repo Sync
39
+ # Deactivate an active Repo Sync. Import and export can't be performed on deactivated syncs and the pushes to the repository won't trigger the import to Phrase.
40
+ # @param account_id Account ID
41
+ # @param repo_sync_id Repo Sync ID
42
+ # @param [Hash] opts the optional parameters
43
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
44
+ # @return [RepoSync]
45
+ describe 'repo_sync_deactivate test' 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
+ # unit tests for repo_sync_events
52
+ # Repository Syncs History
53
+ # Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync.
54
+ # @param account_id Account ID
55
+ # @param repo_sync_id Repo Sync ID
56
+ # @param [Hash] opts the optional parameters
57
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
58
+ # @return [Array<RepoSyncEvent>]
59
+ describe 'repo_sync_events test' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ # unit tests for repo_sync_export
66
+ # Export to code repository
67
+ # &gt; Beta: this feature will change in the future. Export translations from Phrase Strings to repository provider according to the .phrase.yml file within the code repository. *Export is done asynchronously and may take several seconds depending on the project size.*
68
+ # @param account_id Account ID
69
+ # @param repo_sync_id Repo Sync ID
70
+ # @param [Hash] opts the optional parameters
71
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
72
+ # @return [RepoSyncExport]
73
+ describe 'repo_sync_export test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ # unit tests for repo_sync_import
80
+ # Import from code repository
81
+ # &gt; Beta: this feature will change in the future. Import translations from repository provider to Phrase Strings according to the .phrase.yml file within the code repository. _Import is done asynchronously and may take several seconds depending on the project size._
82
+ # @param account_id Account ID
83
+ # @param repo_sync_id Repo Sync ID
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
+ # @return [RepoSyncImport]
87
+ describe 'repo_sync_import test' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
93
+ # unit tests for repo_sync_list
94
+ # Get Repo Syncs
95
+ # Lists all Repo Syncs from an account
96
+ # @param account_id Account ID
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
99
+ # @return [Array<RepoSync>]
100
+ describe 'repo_sync_list test' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
103
+ end
104
+ end
105
+
106
+ # unit tests for repo_sync_show
107
+ # Get a single Repo Sync
108
+ # Shows a single Repo Sync setting.
109
+ # @param account_id Account ID
110
+ # @param repo_sync_id Repo Sync ID
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
113
+ # @return [RepoSync]
114
+ describe 'repo_sync_show test' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
+ end
118
+ end
119
+
120
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncEventErrorsInner
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncEventErrorsInner' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncEventErrorsInner.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncEventErrorsInner' do
19
+ it 'should create an instance of RepoSyncEventErrorsInner' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncEventErrorsInner)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,67 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncEvent
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncEvent' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncEvent.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncEvent' do
19
+ it 'should create an instance of RepoSyncEvent' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncEvent)
21
+ end
22
+ end
23
+ describe 'test attribute "event_type"' 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', ["import", "export"])
27
+ # validator.allowable_values.each do |value|
28
+ # expect { @instance.event_type = value }.not_to raise_error
29
+ # end
30
+ end
31
+ end
32
+
33
+ describe 'test attribute "created_at"' 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 "status"' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["running", "success", "failure"])
43
+ # validator.allowable_values.each do |value|
44
+ # expect { @instance.status = value }.not_to raise_error
45
+ # end
46
+ end
47
+ end
48
+
49
+ describe 'test attribute "pull_request_url"' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ describe 'test attribute "auto_import"' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ describe 'test attribute "errors"' do
62
+ it 'should work' do
63
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
64
+ end
65
+ end
66
+
67
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncExport
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncExport' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncExport.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncExport' do
19
+ it 'should create an instance of RepoSyncExport' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncExport)
21
+ end
22
+ end
23
+ describe 'test attribute "message"' 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,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncImport
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncImport' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncImport.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncImport' do
19
+ it 'should create an instance of RepoSyncImport' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncImport)
21
+ end
22
+ end
23
+ describe 'test attribute "message"' 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,77 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSync
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSync' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSync.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSync' do
19
+ it 'should create an instance of RepoSync' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSync)
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 "project"' 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 "provider"' 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 "enabled"' 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
+ describe 'test attribute "auto_import"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "repo_name"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "created_at"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "last_import_at"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "last_export_at"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ end
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: 2.24.0
4
+ version: 2.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-10 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -285,6 +285,12 @@ files:
285
285
  - docs/ReleaseUpdateParameters.md
286
286
  - docs/ReleasesApi.md
287
287
  - docs/RepliesListParameters.md
288
+ - docs/RepoSync.md
289
+ - docs/RepoSyncEvent.md
290
+ - docs/RepoSyncEventErrorsInner.md
291
+ - docs/RepoSyncExport.md
292
+ - docs/RepoSyncImport.md
293
+ - docs/RepoSyncsApi.md
288
294
  - docs/ReportsApi.md
289
295
  - docs/Screenshot.md
290
296
  - docs/ScreenshotMarker.md
@@ -401,6 +407,7 @@ files:
401
407
  - lib/phrase/api/projects_api.rb
402
408
  - lib/phrase/api/quality_performance_score_api.rb
403
409
  - lib/phrase/api/releases_api.rb
410
+ - lib/phrase/api/repo_syncs_api.rb
404
411
  - lib/phrase/api/reports_api.rb
405
412
  - lib/phrase/api/screenshot_markers_api.rb
406
413
  - lib/phrase/api/screenshots_api.rb
@@ -570,6 +577,11 @@ files:
570
577
  - lib/phrase/models/release_preview.rb
571
578
  - lib/phrase/models/release_update_parameters.rb
572
579
  - lib/phrase/models/replies_list_parameters.rb
580
+ - lib/phrase/models/repo_sync.rb
581
+ - lib/phrase/models/repo_sync_event.rb
582
+ - lib/phrase/models/repo_sync_event_errors_inner.rb
583
+ - lib/phrase/models/repo_sync_export.rb
584
+ - lib/phrase/models/repo_sync_import.rb
573
585
  - lib/phrase/models/screenshot.rb
574
586
  - lib/phrase/models/screenshot_marker.rb
575
587
  - lib/phrase/models/screenshot_marker_create_parameters.rb
@@ -672,6 +684,7 @@ files:
672
684
  - spec/api/projects_api_spec.rb
673
685
  - spec/api/quality_performance_score_api_spec.rb
674
686
  - spec/api/releases_api_spec.rb
687
+ - spec/api/repo_syncs_api_spec.rb
675
688
  - spec/api/reports_api_spec.rb
676
689
  - spec/api/screenshot_markers_api_spec.rb
677
690
  - spec/api/screenshots_api_spec.rb
@@ -840,6 +853,11 @@ files:
840
853
  - spec/models/release_spec.rb
841
854
  - spec/models/release_update_parameters_spec.rb
842
855
  - spec/models/replies_list_parameters_spec.rb
856
+ - spec/models/repo_sync_event_errors_inner_spec.rb
857
+ - spec/models/repo_sync_event_spec.rb
858
+ - spec/models/repo_sync_export_spec.rb
859
+ - spec/models/repo_sync_import_spec.rb
860
+ - spec/models/repo_sync_spec.rb
843
861
  - spec/models/screenshot_marker_create_parameters_spec.rb
844
862
  - spec/models/screenshot_marker_spec.rb
845
863
  - spec/models/screenshot_marker_update_parameters_spec.rb
@@ -965,6 +983,7 @@ test_files:
965
983
  - spec/api/blacklisted_keys_api_spec.rb
966
984
  - spec/api/branches_api_spec.rb
967
985
  - spec/api/comment_replies_api_spec.rb
986
+ - spec/api/repo_syncs_api_spec.rb
968
987
  - spec/api/orders_api_spec.rb
969
988
  - spec/api/distributions_api_spec.rb
970
989
  - spec/api/git_hub_sync_api_spec.rb
@@ -988,6 +1007,7 @@ test_files:
988
1007
  - spec/configuration_spec.rb
989
1008
  - spec/models/translation_key_spec.rb
990
1009
  - spec/models/figma_attachment_create_parameters_spec.rb
1010
+ - spec/models/repo_sync_import_spec.rb
991
1011
  - spec/models/styleguide_create_parameters_spec.rb
992
1012
  - spec/models/job_template_create_parameters_spec.rb
993
1013
  - spec/models/job_template_locale_update_parameters_spec.rb
@@ -1037,6 +1057,7 @@ test_files:
1037
1057
  - spec/models/job_comment_spec.rb
1038
1058
  - spec/models/order_create_parameters_spec.rb
1039
1059
  - spec/models/project_update_parameters_spec.rb
1060
+ - spec/models/repo_sync_event_spec.rb
1040
1061
  - spec/models/organization_job_template_create_parameters_spec.rb
1041
1062
  - spec/models/organization_job_template_update_parameters_spec.rb
1042
1063
  - spec/models/upload_spec.rb
@@ -1077,10 +1098,12 @@ test_files:
1077
1098
  - spec/models/tag_with_stats_spec.rb
1078
1099
  - spec/models/key_links_create_parameters_spec.rb
1079
1100
  - spec/models/screenshot_marker_update_parameters_spec.rb
1101
+ - spec/models/repo_sync_event_errors_inner_spec.rb
1080
1102
  - spec/models/key_preview_spec.rb
1081
1103
  - spec/models/gitlab_sync_history_spec.rb
1082
1104
  - spec/models/comments_list_parameters_spec.rb
1083
1105
  - spec/models/space1_spec.rb
1106
+ - spec/models/repo_sync_export_spec.rb
1084
1107
  - spec/models/notification_group_detail_spec.rb
1085
1108
  - spec/models/glossary_term_create_parameters_spec.rb
1086
1109
  - spec/models/locale_report_spec.rb
@@ -1130,6 +1153,7 @@ test_files:
1130
1153
  - spec/models/glossary_spec.rb
1131
1154
  - spec/models/locale_preview1_spec.rb
1132
1155
  - spec/models/job_locales_create_parameters_spec.rb
1156
+ - spec/models/repo_sync_spec.rb
1133
1157
  - spec/models/spaces_projects_create_parameters_spec.rb
1134
1158
  - spec/models/variable_create_parameters_spec.rb
1135
1159
  - spec/models/team_create_parameters_spec.rb