phrase 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -3
  3. data/docs/Account.md +2 -0
  4. data/docs/AccountDetails.md +3 -3
  5. data/docs/AccountsApi.md +2 -2
  6. data/docs/AuthorizationsApi.md +2 -2
  7. data/docs/BlacklistedKeysApi.md +4 -2
  8. data/docs/BranchesApi.md +2 -2
  9. data/docs/CommentsApi.md +2 -2
  10. data/docs/DistributionsApi.md +2 -2
  11. data/docs/Document.md +23 -0
  12. data/docs/DocumentsApi.md +137 -0
  13. data/docs/GitHubSyncApi.md +130 -0
  14. data/docs/GitLabSyncApi.md +2 -2
  15. data/docs/GithubSyncExportParameters.md +17 -0
  16. data/docs/GithubSyncImportParameters.md +17 -0
  17. data/docs/GlossariesApi.md +2 -2
  18. data/docs/GlossaryTermsApi.md +2 -2
  19. data/docs/InlineResponse422.md +19 -0
  20. data/docs/InlineResponse422Errors.md +21 -0
  21. data/docs/InvitationsApi.md +2 -2
  22. data/docs/JobLocalesApi.md +2 -2
  23. data/docs/JobsApi.md +2 -2
  24. data/docs/KeysApi.md +4 -4
  25. data/docs/LocalesApi.md +2 -2
  26. data/docs/MembersApi.md +2 -2
  27. data/docs/OrdersApi.md +2 -2
  28. data/docs/Project.md +2 -0
  29. data/docs/ProjectDetails.md +2 -2
  30. data/docs/ProjectsApi.md +2 -2
  31. data/docs/ReleasesApi.md +2 -2
  32. data/docs/ScreenshotMarkersApi.md +2 -2
  33. data/docs/ScreenshotsApi.md +2 -2
  34. data/docs/SpacesApi.md +4 -4
  35. data/docs/StyleGuidesApi.md +2 -2
  36. data/docs/TagsApi.md +2 -2
  37. data/docs/TeamsApi.md +2 -2
  38. data/docs/TranslationsApi.md +8 -8
  39. data/docs/UploadsApi.md +2 -2
  40. data/docs/VersionsHistoryApi.md +2 -2
  41. data/docs/WebhooksApi.md +2 -2
  42. data/lib/phrase.rb +7 -0
  43. data/lib/phrase/api/accounts_api.rb +2 -2
  44. data/lib/phrase/api/authorizations_api.rb +2 -2
  45. data/lib/phrase/api/blacklisted_keys_api.rb +5 -2
  46. data/lib/phrase/api/branches_api.rb +2 -2
  47. data/lib/phrase/api/comments_api.rb +2 -2
  48. data/lib/phrase/api/distributions_api.rb +2 -2
  49. data/lib/phrase/api/documents_api.rb +152 -0
  50. data/lib/phrase/api/git_hub_sync_api.rb +146 -0
  51. data/lib/phrase/api/git_lab_sync_api.rb +2 -2
  52. data/lib/phrase/api/glossaries_api.rb +2 -2
  53. data/lib/phrase/api/glossary_terms_api.rb +2 -2
  54. data/lib/phrase/api/invitations_api.rb +2 -2
  55. data/lib/phrase/api/job_locales_api.rb +2 -2
  56. data/lib/phrase/api/jobs_api.rb +2 -2
  57. data/lib/phrase/api/keys_api.rb +4 -4
  58. data/lib/phrase/api/locales_api.rb +2 -2
  59. data/lib/phrase/api/members_api.rb +2 -2
  60. data/lib/phrase/api/orders_api.rb +2 -2
  61. data/lib/phrase/api/projects_api.rb +2 -2
  62. data/lib/phrase/api/releases_api.rb +2 -2
  63. data/lib/phrase/api/screenshot_markers_api.rb +2 -2
  64. data/lib/phrase/api/screenshots_api.rb +2 -2
  65. data/lib/phrase/api/spaces_api.rb +4 -4
  66. data/lib/phrase/api/style_guides_api.rb +2 -2
  67. data/lib/phrase/api/tags_api.rb +2 -2
  68. data/lib/phrase/api/teams_api.rb +2 -2
  69. data/lib/phrase/api/translations_api.rb +8 -8
  70. data/lib/phrase/api/uploads_api.rb +2 -2
  71. data/lib/phrase/api/versions_history_api.rb +2 -2
  72. data/lib/phrase/api/webhooks_api.rb +2 -2
  73. data/lib/phrase/models/account.rb +10 -1
  74. data/lib/phrase/models/account_details.rb +13 -13
  75. data/lib/phrase/models/document.rb +221 -0
  76. data/lib/phrase/models/github_sync_export_parameters.rb +195 -0
  77. data/lib/phrase/models/github_sync_import_parameters.rb +195 -0
  78. data/lib/phrase/models/inline_response422.rb +205 -0
  79. data/lib/phrase/models/inline_response422_errors.rb +212 -0
  80. data/lib/phrase/models/project.rb +10 -1
  81. data/lib/phrase/models/project_details.rb +10 -10
  82. data/lib/phrase/version.rb +1 -1
  83. data/spec/api/accounts_api_spec.rb +1 -1
  84. data/spec/api/authorizations_api_spec.rb +1 -1
  85. data/spec/api/blacklisted_keys_api_spec.rb +2 -1
  86. data/spec/api/branches_api_spec.rb +1 -1
  87. data/spec/api/comments_api_spec.rb +1 -1
  88. data/spec/api/distributions_api_spec.rb +1 -1
  89. data/spec/api/documents_api_spec.rb +52 -0
  90. data/spec/api/git_hub_sync_api_spec.rb +49 -0
  91. data/spec/api/git_lab_sync_api_spec.rb +1 -1
  92. data/spec/api/glossaries_api_spec.rb +1 -1
  93. data/spec/api/glossary_terms_api_spec.rb +1 -1
  94. data/spec/api/invitations_api_spec.rb +1 -1
  95. data/spec/api/job_locales_api_spec.rb +1 -1
  96. data/spec/api/jobs_api_spec.rb +1 -1
  97. data/spec/api/keys_api_spec.rb +2 -2
  98. data/spec/api/locales_api_spec.rb +1 -1
  99. data/spec/api/members_api_spec.rb +1 -1
  100. data/spec/api/orders_api_spec.rb +1 -1
  101. data/spec/api/projects_api_spec.rb +1 -1
  102. data/spec/api/releases_api_spec.rb +1 -1
  103. data/spec/api/screenshot_markers_api_spec.rb +1 -1
  104. data/spec/api/screenshots_api_spec.rb +1 -1
  105. data/spec/api/spaces_api_spec.rb +2 -2
  106. data/spec/api/style_guides_api_spec.rb +1 -1
  107. data/spec/api/tags_api_spec.rb +1 -1
  108. data/spec/api/teams_api_spec.rb +1 -1
  109. data/spec/api/translations_api_spec.rb +4 -4
  110. data/spec/api/uploads_api_spec.rb +1 -1
  111. data/spec/api/versions_history_api_spec.rb +1 -1
  112. data/spec/api/webhooks_api_spec.rb +1 -1
  113. data/spec/models/account_details_spec.rb +4 -4
  114. data/spec/models/account_spec.rb +6 -0
  115. data/spec/models/document_spec.rb +47 -0
  116. data/spec/models/github_sync_export_parameters_spec.rb +29 -0
  117. data/spec/models/github_sync_import_parameters_spec.rb +29 -0
  118. data/spec/models/inline_response422_errors_spec.rb +41 -0
  119. data/spec/models/inline_response422_spec.rb +35 -0
  120. data/spec/models/project_details_spec.rb +6 -6
  121. data/spec/models/project_spec.rb +6 -0
  122. metadata +181 -153
@@ -0,0 +1,212 @@
1
+ require 'date'
2
+
3
+ module Phrase
4
+ class InlineResponse422Errors
5
+ attr_accessor :resource
6
+
7
+ attr_accessor :field
8
+
9
+ attr_accessor :message
10
+
11
+ # Attribute mapping from ruby-style variable name to JSON key.
12
+ def self.attribute_map
13
+ {
14
+ :'resource' => :'resource',
15
+ :'field' => :'field',
16
+ :'message' => :'message'
17
+ }
18
+ end
19
+
20
+ # Attribute type mapping.
21
+ def self.openapi_types
22
+ {
23
+ :'resource' => :'String',
24
+ :'field' => :'String',
25
+ :'message' => :'String'
26
+ }
27
+ end
28
+
29
+ # List of attributes with nullable: true
30
+ def self.openapi_nullable
31
+ Set.new([
32
+ ])
33
+ end
34
+
35
+ # Initializes the object
36
+ # @param [Hash] attributes Model attributes in the form of hash
37
+ def initialize(attributes = {})
38
+ if (!attributes.is_a?(Hash))
39
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::InlineResponse422Errors` initialize method"
40
+ end
41
+
42
+ # check to see if the attribute exists and convert string to symbol for hash key
43
+ attributes = attributes.each_with_object({}) { |(k, v), h|
44
+ if (!self.class.attribute_map.key?(k.to_sym))
45
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::InlineResponse422Errors`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
46
+ end
47
+ h[k.to_sym] = v
48
+ }
49
+
50
+ if attributes.key?(:'resource')
51
+ self.resource = attributes[:'resource']
52
+ end
53
+
54
+ if attributes.key?(:'field')
55
+ self.field = attributes[:'field']
56
+ end
57
+
58
+ if attributes.key?(:'message')
59
+ self.message = attributes[:'message']
60
+ end
61
+ end
62
+
63
+ # Show invalid properties with the reasons. Usually used together with valid?
64
+ # @return Array for valid properties with the reasons
65
+ def list_invalid_properties
66
+ invalid_properties = Array.new
67
+ invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ resource == o.resource &&
82
+ field == o.field &&
83
+ message == o.message
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [resource, field, message].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.openapi_types.each_pair do |key, type|
111
+ if type =~ /\AArray<(.*)>/i
112
+ # check to ensure the input is an array given that the attribute
113
+ # is documented as an array but the input is not
114
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :DateTime
132
+ DateTime.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ Phrase.const_get(type).build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end
211
+ end
212
+ end
@@ -6,6 +6,8 @@ module Phrase
6
6
 
7
7
  attr_accessor :name
8
8
 
9
+ attr_accessor :slug
10
+
9
11
  attr_accessor :main_format
10
12
 
11
13
  attr_accessor :project_image_url
@@ -21,6 +23,7 @@ module Phrase
21
23
  {
22
24
  :'id' => :'id',
23
25
  :'name' => :'name',
26
+ :'slug' => :'slug',
24
27
  :'main_format' => :'main_format',
25
28
  :'project_image_url' => :'project_image_url',
26
29
  :'account' => :'account',
@@ -34,6 +37,7 @@ module Phrase
34
37
  {
35
38
  :'id' => :'String',
36
39
  :'name' => :'String',
40
+ :'slug' => :'String',
37
41
  :'main_format' => :'String',
38
42
  :'project_image_url' => :'String',
39
43
  :'account' => :'Account',
@@ -71,6 +75,10 @@ module Phrase
71
75
  self.name = attributes[:'name']
72
76
  end
73
77
 
78
+ if attributes.key?(:'slug')
79
+ self.slug = attributes[:'slug']
80
+ end
81
+
74
82
  if attributes.key?(:'main_format')
75
83
  self.main_format = attributes[:'main_format']
76
84
  end
@@ -112,6 +120,7 @@ module Phrase
112
120
  self.class == o.class &&
113
121
  id == o.id &&
114
122
  name == o.name &&
123
+ slug == o.slug &&
115
124
  main_format == o.main_format &&
116
125
  project_image_url == o.project_image_url &&
117
126
  account == o.account &&
@@ -128,7 +137,7 @@ module Phrase
128
137
  # Calculates hash code according to all attributes.
129
138
  # @return [Integer] Hash code
130
139
  def hash
131
- [id, name, main_format, project_image_url, account, created_at, updated_at].hash
140
+ [id, name, slug, main_format, project_image_url, account, created_at, updated_at].hash
132
141
  end
133
142
 
134
143
  # Builds the object from hash
@@ -6,6 +6,8 @@ module Phrase
6
6
 
7
7
  attr_accessor :name
8
8
 
9
+ attr_accessor :slug
10
+
9
11
  attr_accessor :main_format
10
12
 
11
13
  attr_accessor :project_image_url
@@ -16,8 +18,6 @@ module Phrase
16
18
 
17
19
  attr_accessor :updated_at
18
20
 
19
- attr_accessor :slug
20
-
21
21
  attr_accessor :shares_translation_memory
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -25,12 +25,12 @@ module Phrase
25
25
  {
26
26
  :'id' => :'id',
27
27
  :'name' => :'name',
28
+ :'slug' => :'slug',
28
29
  :'main_format' => :'main_format',
29
30
  :'project_image_url' => :'project_image_url',
30
31
  :'account' => :'account',
31
32
  :'created_at' => :'created_at',
32
33
  :'updated_at' => :'updated_at',
33
- :'slug' => :'slug',
34
34
  :'shares_translation_memory' => :'shares_translation_memory'
35
35
  }
36
36
  end
@@ -40,12 +40,12 @@ module Phrase
40
40
  {
41
41
  :'id' => :'String',
42
42
  :'name' => :'String',
43
+ :'slug' => :'String',
43
44
  :'main_format' => :'String',
44
45
  :'project_image_url' => :'String',
45
46
  :'account' => :'Account',
46
47
  :'created_at' => :'DateTime',
47
48
  :'updated_at' => :'DateTime',
48
- :'slug' => :'String',
49
49
  :'shares_translation_memory' => :'Boolean'
50
50
  }
51
51
  end
@@ -87,6 +87,10 @@ module Phrase
87
87
  self.name = attributes[:'name']
88
88
  end
89
89
 
90
+ if attributes.key?(:'slug')
91
+ self.slug = attributes[:'slug']
92
+ end
93
+
90
94
  if attributes.key?(:'main_format')
91
95
  self.main_format = attributes[:'main_format']
92
96
  end
@@ -107,10 +111,6 @@ module Phrase
107
111
  self.updated_at = attributes[:'updated_at']
108
112
  end
109
113
 
110
- if attributes.key?(:'slug')
111
- self.slug = attributes[:'slug']
112
- end
113
-
114
114
  if attributes.key?(:'shares_translation_memory')
115
115
  self.shares_translation_memory = attributes[:'shares_translation_memory']
116
116
  end
@@ -136,12 +136,12 @@ module Phrase
136
136
  self.class == o.class &&
137
137
  id == o.id &&
138
138
  name == o.name &&
139
+ slug == o.slug &&
139
140
  main_format == o.main_format &&
140
141
  project_image_url == o.project_image_url &&
141
142
  account == o.account &&
142
143
  created_at == o.created_at &&
143
144
  updated_at == o.updated_at &&
144
- slug == o.slug &&
145
145
  shares_translation_memory == o.shares_translation_memory
146
146
  end
147
147
 
@@ -154,7 +154,7 @@ module Phrase
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [id, name, main_format, project_image_url, account, created_at, updated_at, slug, shares_translation_memory].hash
157
+ [id, name, slug, main_format, project_image_url, account, created_at, updated_at, shares_translation_memory].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
@@ -39,7 +39,7 @@ describe 'AccountsApi' do
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
41
41
  # @option opts [Integer] :page Page number
42
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
42
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
43
43
  # @return [Array<Account>]
44
44
  describe 'accounts_list test' do
45
45
  it 'should work' do
@@ -79,7 +79,7 @@ describe 'AuthorizationsApi' do
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
81
81
  # @option opts [Integer] :page Page number
82
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
82
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
83
83
  # @return [Array<Authorization>]
84
84
  describe 'authorizations_list test' do
85
85
  it 'should work' do
@@ -84,7 +84,8 @@ describe 'BlacklistedKeysApi' do
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
86
  # @option opts [Integer] :page Page number
87
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
87
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
88
+ # @option opts [String] :branch specify the branch to use
88
89
  # @return [Array<BlacklistedKey>]
89
90
  describe 'blacklisted_keys_list test' do
90
91
  it 'should work' do
@@ -113,7 +113,7 @@ describe 'BranchesApi' do
113
113
  # @param [Hash] opts the optional parameters
114
114
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
115
115
  # @option opts [Integer] :page Page number
116
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
116
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
117
117
  # @return [Array<Branch>]
118
118
  describe 'branches_list test' do
119
119
  it 'should work' do
@@ -139,7 +139,7 @@ describe 'CommentsApi' do
139
139
  # @param [Hash] opts the optional parameters
140
140
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
141
141
  # @option opts [Integer] :page Page number
142
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
142
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
143
143
  # @option opts [String] :branch specify the branch to use
144
144
  # @return [Array<Comment>]
145
145
  describe 'comments_list test' do
@@ -84,7 +84,7 @@ describe 'DistributionsApi' do
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
86
  # @option opts [Integer] :page Page number
87
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
87
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
88
88
  # @return [Array<DistributionPreview>]
89
89
  describe 'distributions_list test' do
90
90
  it 'should work' do
@@ -0,0 +1,52 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::DocumentsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'DocumentsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::DocumentsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of DocumentsApi' do
18
+ it 'should create an instance of DocumentsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::DocumentsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for document_delete
24
+ # Delete document
25
+ # Delete an existing document.
26
+ # @param project_id Project ID
27
+ # @param id ID
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [nil]
31
+ describe 'document_delete 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 documents_list
38
+ # List documents
39
+ # List all documents the current user has access to.
40
+ # @param project_id Project ID
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
43
+ # @option opts [Integer] :page Page number
44
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
45
+ # @return [Array<Document>]
46
+ describe 'documents_list test' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end