phrase 2.23.0 → 2.25.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +23 -3
  4. data/docs/KeyCreateParameters.md +1 -1
  5. data/docs/KeyLink.md +29 -0
  6. data/docs/KeyLinksBatchDestroyParameters.md +17 -0
  7. data/docs/KeyLinksCreateParameters.md +17 -0
  8. data/docs/KeyLinksIndex400Response.md +17 -0
  9. data/docs/KeyUpdateParameters.md +1 -1
  10. data/docs/LinkedKeysApi.md +270 -0
  11. data/docs/ProjectCreateParameters.md +1 -1
  12. data/docs/ProjectUpdateParameters.md +1 -1
  13. data/docs/RepoSync.md +33 -0
  14. data/docs/RepoSyncEvent.md +27 -0
  15. data/docs/RepoSyncEventErrorsInner.md +16 -0
  16. data/docs/RepoSyncExport.md +17 -0
  17. data/docs/RepoSyncImport.md +17 -0
  18. data/docs/RepoSyncsApi.md +454 -0
  19. data/docs/ScreenshotUpdateParameters.md +1 -1
  20. data/lib/phrase/api/linked_keys_api.rb +323 -0
  21. data/lib/phrase/api/repo_syncs_api.rb +508 -0
  22. data/lib/phrase/models/key_link.rb +290 -0
  23. data/lib/phrase/models/key_links_batch_destroy_parameters.rb +204 -0
  24. data/lib/phrase/models/key_links_create_parameters.rb +204 -0
  25. data/lib/phrase/models/key_links_index400_response.rb +196 -0
  26. data/lib/phrase/models/repo_sync.rb +268 -0
  27. data/lib/phrase/models/repo_sync_event.rb +292 -0
  28. data/lib/phrase/models/repo_sync_event_errors_inner.rb +207 -0
  29. data/lib/phrase/models/repo_sync_export.rb +196 -0
  30. data/lib/phrase/models/repo_sync_import.rb +196 -0
  31. data/lib/phrase/version.rb +1 -1
  32. data/lib/phrase.rb +11 -0
  33. data/spec/api/linked_keys_api_spec.rb +83 -0
  34. data/spec/api/repo_syncs_api_spec.rb +120 -0
  35. data/spec/models/key_link_spec.rb +65 -0
  36. data/spec/models/key_links_batch_destroy_parameters_spec.rb +29 -0
  37. data/spec/models/key_links_create_parameters_spec.rb +29 -0
  38. data/spec/models/key_links_index400_response_spec.rb +29 -0
  39. data/spec/models/repo_sync_event_errors_inner_spec.rb +23 -0
  40. data/spec/models/repo_sync_event_spec.rb +67 -0
  41. data/spec/models/repo_sync_export_spec.rb +29 -0
  42. data/spec/models/repo_sync_import_spec.rb +29 -0
  43. data/spec/models/repo_sync_spec.rb +77 -0
  44. metadata +267 -223
@@ -0,0 +1,196 @@
1
+ require 'date'
2
+
3
+ module Phrase
4
+ class RepoSyncImport
5
+ attr_accessor :message
6
+
7
+ # Attribute mapping from ruby-style variable name to JSON key.
8
+ def self.attribute_map
9
+ {
10
+ :'message' => :'message'
11
+ }
12
+ end
13
+
14
+ # Attribute type mapping.
15
+ def self.openapi_types
16
+ {
17
+ :'message' => :'String'
18
+ }
19
+ end
20
+
21
+ # List of attributes with nullable: true
22
+ def self.openapi_nullable
23
+ Set.new([
24
+ ])
25
+ end
26
+
27
+ # Initializes the object
28
+ # @param [Hash] attributes Model attributes in the form of hash
29
+ def initialize(attributes = {})
30
+ if (!attributes.is_a?(Hash))
31
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::RepoSyncImport` initialize method"
32
+ end
33
+
34
+ # check to see if the attribute exists and convert string to symbol for hash key
35
+ attributes = attributes.each_with_object({}) { |(k, v), h|
36
+ if (!self.class.attribute_map.key?(k.to_sym))
37
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::RepoSyncImport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
38
+ end
39
+ h[k.to_sym] = v
40
+ }
41
+
42
+ if attributes.key?(:'message')
43
+ self.message = attributes[:'message']
44
+ end
45
+ end
46
+
47
+ # Show invalid properties with the reasons. Usually used together with valid?
48
+ # @return Array for valid properties with the reasons
49
+ def list_invalid_properties
50
+ invalid_properties = Array.new
51
+ invalid_properties
52
+ end
53
+
54
+ # Check to see if the all the properties in the model are valid
55
+ # @return true if the model is valid
56
+ def valid?
57
+ true
58
+ end
59
+
60
+ # Checks equality by comparing each attribute.
61
+ # @param [Object] Object to be compared
62
+ def ==(o)
63
+ return true if self.equal?(o)
64
+ self.class == o.class &&
65
+ message == o.message
66
+ end
67
+
68
+ # @see the `==` method
69
+ # @param [Object] Object to be compared
70
+ def eql?(o)
71
+ self == o
72
+ end
73
+
74
+ # Calculates hash code according to all attributes.
75
+ # @return [Integer] Hash code
76
+ def hash
77
+ [message].hash
78
+ end
79
+
80
+ # Builds the object from hash
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ # @return [Object] Returns the model itself
83
+ def self.build_from_hash(attributes)
84
+ new.build_from_hash(attributes)
85
+ end
86
+
87
+ # Builds the object from hash
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ # @return [Object] Returns the model itself
90
+ def build_from_hash(attributes)
91
+ return nil unless attributes.is_a?(Hash)
92
+ self.class.openapi_types.each_pair do |key, type|
93
+ if type =~ /\AArray<(.*)>/i
94
+ # check to ensure the input is an array given that the attribute
95
+ # is documented as an array but the input is not
96
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
97
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
98
+ end
99
+ elsif !attributes[self.class.attribute_map[key]].nil?
100
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
101
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
102
+ end
103
+
104
+ self
105
+ end
106
+
107
+ # Deserializes the data based on type
108
+ # @param string type Data type
109
+ # @param string value Value to be deserialized
110
+ # @return [Object] Deserialized data
111
+ def _deserialize(type, value)
112
+ case type.to_sym
113
+ when :DateTime
114
+ DateTime.parse(value)
115
+ when :Date
116
+ Date.parse(value)
117
+ when :Time
118
+ Time.parse(value)
119
+ when :String
120
+ value.to_s
121
+ when :Integer
122
+ value.to_i
123
+ when :Float
124
+ value.to_f
125
+ when :Boolean
126
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
127
+ true
128
+ else
129
+ false
130
+ end
131
+ when :Object
132
+ # generic object (usually a Hash), return directly
133
+ value
134
+ when /\AArray<(?<inner_type>.+)>\z/
135
+ inner_type = Regexp.last_match[:inner_type]
136
+ value.map { |v| _deserialize(inner_type, v) }
137
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
138
+ k_type = Regexp.last_match[:k_type]
139
+ v_type = Regexp.last_match[:v_type]
140
+ {}.tap do |hash|
141
+ value.each do |k, v|
142
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
143
+ end
144
+ end
145
+ else # model
146
+ Phrase.const_get(type).build_from_hash(value)
147
+ end
148
+ end
149
+
150
+ # Returns the string representation of the object
151
+ # @return [String] String presentation of the object
152
+ def to_s
153
+ to_hash.to_s
154
+ end
155
+
156
+ # to_body is an alias to to_hash (backward compatibility)
157
+ # @return [Hash] Returns the object in the form of hash
158
+ def to_body
159
+ to_hash
160
+ end
161
+
162
+ # Returns the object in the form of hash
163
+ # @return [Hash] Returns the object in the form of hash
164
+ def to_hash
165
+ hash = {}
166
+ self.class.attribute_map.each_pair do |attr, param|
167
+ value = self.send(attr)
168
+ if value.nil?
169
+ is_nullable = self.class.openapi_nullable.include?(attr)
170
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
171
+ end
172
+
173
+ hash[param] = _to_hash(value)
174
+ end
175
+ hash
176
+ end
177
+
178
+ # Outputs non-array value in the form of hash
179
+ # For object, use to_hash. Otherwise, just return the value
180
+ # @param [Object] value Any valid value
181
+ # @return [Hash] Returns the value in the form of hash
182
+ def _to_hash(value)
183
+ if value.is_a?(Array)
184
+ value.compact.map { |v| _to_hash(v) }
185
+ elsif value.is_a?(Hash)
186
+ {}.tap do |hash|
187
+ value.each { |k, v| hash[k] = _to_hash(v) }
188
+ end
189
+ elsif value.respond_to? :to_hash
190
+ value.to_hash
191
+ else
192
+ value
193
+ end
194
+ end
195
+ end
196
+ end
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.23.0'
2
+ VERSION = '2.25.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -103,6 +103,10 @@ require 'phrase/models/job_template_preview'
103
103
  require 'phrase/models/job_template_update_parameters'
104
104
  require 'phrase/models/job_update_parameters'
105
105
  require 'phrase/models/key_create_parameters'
106
+ require 'phrase/models/key_link'
107
+ require 'phrase/models/key_links_batch_destroy_parameters'
108
+ require 'phrase/models/key_links_create_parameters'
109
+ require 'phrase/models/key_links_index400_response'
106
110
  require 'phrase/models/key_preview'
107
111
  require 'phrase/models/key_update_parameters'
108
112
  require 'phrase/models/keys_exclude_parameters'
@@ -155,6 +159,11 @@ require 'phrase/models/release_create_parameters'
155
159
  require 'phrase/models/release_preview'
156
160
  require 'phrase/models/release_update_parameters'
157
161
  require 'phrase/models/replies_list_parameters'
162
+ require 'phrase/models/repo_sync'
163
+ require 'phrase/models/repo_sync_event'
164
+ require 'phrase/models/repo_sync_event_errors_inner'
165
+ require 'phrase/models/repo_sync_export'
166
+ require 'phrase/models/repo_sync_import'
158
167
  require 'phrase/models/screenshot'
159
168
  require 'phrase/models/screenshot_marker'
160
169
  require 'phrase/models/screenshot_marker_create_parameters'
@@ -245,6 +254,7 @@ require 'phrase/api/job_templates_api'
245
254
  require 'phrase/api/jobs_api'
246
255
  require 'phrase/api/keys_api'
247
256
  require 'phrase/api/keys_figma_attachments_api'
257
+ require 'phrase/api/linked_keys_api'
248
258
  require 'phrase/api/locales_api'
249
259
  require 'phrase/api/members_api'
250
260
  require 'phrase/api/notification_groups_api'
@@ -255,6 +265,7 @@ require 'phrase/api/organization_job_templates_api'
255
265
  require 'phrase/api/projects_api'
256
266
  require 'phrase/api/quality_performance_score_api'
257
267
  require 'phrase/api/releases_api'
268
+ require 'phrase/api/repo_syncs_api'
258
269
  require 'phrase/api/reports_api'
259
270
  require 'phrase/api/screenshot_markers_api'
260
271
  require 'phrase/api/screenshots_api'
@@ -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,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&#39;t be performed on deactivated syncs and the pushes to the repository won&#39;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,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
@@ -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