phrase 2.23.0 → 2.24.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.
@@ -0,0 +1,83 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::LinkedKeysApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'LinkedKeysApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::LinkedKeysApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of LinkedKeysApi' do
18
+ it 'should create an instance of LinkedKeysApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::LinkedKeysApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for key_links_batch_destroy
24
+ # Batch unlink child keys from a parent key
25
+ # Unlinks multiple child keys from a given parent key in a single operation.
26
+ # @param project_id Project ID
27
+ # @param id Parent Translation Key ID
28
+ # @param key_links_batch_destroy_parameters
29
+ # @param [Hash] opts the optional parameters
30
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
+ # @option opts [Boolean] :unlink_parent Whether to unlink the parent key as well and unmark it as linked-key.
32
+ # @return [nil]
33
+ describe 'key_links_batch_destroy test' 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
+ # unit tests for key_links_create
40
+ # Link child keys to a parent key
41
+ # Creates links between a given parent key and one or more child keys.
42
+ # @param project_id Project ID
43
+ # @param id Parent Translation Key ID
44
+ # @param key_links_create_parameters
45
+ # @param [Hash] opts the optional parameters
46
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
47
+ # @return [KeyLink]
48
+ describe 'key_links_create test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for key_links_destroy
55
+ # Unlink a child key from a parent key
56
+ # Unlinks a single child key from a given parent key.
57
+ # @param project_id Project ID
58
+ # @param id Parent Translation Key ID
59
+ # @param child_key_id The ID of the child key to unlink.
60
+ # @param [Hash] opts the optional parameters
61
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
62
+ # @return [nil]
63
+ describe 'key_links_destroy test' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
+ # unit tests for key_links_index
70
+ # Retrieve all child keys linked to a specific parent key
71
+ # Returns detailed information about a parent key, including its linked child keys.
72
+ # @param project_id Project ID
73
+ # @param id Parent Translation Key ID
74
+ # @param [Hash] opts the optional parameters
75
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
76
+ # @return [KeyLink]
77
+ describe 'key_links_index test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ end
@@ -0,0 +1,65 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::KeyLink
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'KeyLink' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::KeyLink.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of KeyLink' do
19
+ it 'should create an instance of KeyLink' do
20
+ expect(@instance).to be_instance_of(Phrase::KeyLink)
21
+ end
22
+ end
23
+ describe 'test attribute "created_at"' 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 "updated_at"' 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 "created_by"' 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 "updated_by"' 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 "account"' 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 "parent"' 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 "children"' 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
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::KeyLinksBatchDestroyParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'KeyLinksBatchDestroyParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::KeyLinksBatchDestroyParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of KeyLinksBatchDestroyParameters' do
19
+ it 'should create an instance of KeyLinksBatchDestroyParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::KeyLinksBatchDestroyParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "child_key_ids"' 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::KeyLinksCreateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'KeyLinksCreateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::KeyLinksCreateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of KeyLinksCreateParameters' do
19
+ it 'should create an instance of KeyLinksCreateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::KeyLinksCreateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "child_key_ids"' 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::KeyLinksIndex400Response
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'KeyLinksIndex400Response' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::KeyLinksIndex400Response.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of KeyLinksIndex400Response' do
19
+ it 'should create an instance of KeyLinksIndex400Response' do
20
+ expect(@instance).to be_instance_of(Phrase::KeyLinksIndex400Response)
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