phrase 2.20.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +27 -5
  4. data/docs/CustomMetadataApi.md +339 -0
  5. data/docs/CustomMetadataDataType.md +16 -0
  6. data/docs/CustomMetadataPropertiesCreateParameters.md +25 -0
  7. data/docs/CustomMetadataPropertiesUpdateParameters.md +23 -0
  8. data/docs/CustomMetadataProperty.md +33 -0
  9. data/docs/CustomMetadataPropertyCreate422Response.md +19 -0
  10. data/docs/{InvitationCreate422ResponseErrorsInner.md → CustomMetadataPropertyCreate422ResponseErrorsInner.md} +2 -2
  11. data/docs/Error.md +17 -0
  12. data/docs/ErrorError.md +19 -0
  13. data/docs/KeyCreateParameters.md +4 -2
  14. data/docs/KeyUpdateParameters.md +4 -2
  15. data/docs/KeysApi.md +2 -2
  16. data/docs/KeysSearchParameters.md +1 -1
  17. data/docs/LocaleReport.md +43 -0
  18. data/docs/LocalesApi.md +3 -1
  19. data/docs/ProjectCreateParameters.md +1 -1
  20. data/docs/ProjectReport.md +31 -0
  21. data/docs/ProjectUpdateParameters.md +1 -1
  22. data/docs/ProjectsQualityPerformanceScore200Response.md +21 -0
  23. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md +19 -0
  24. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md +17 -0
  25. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md +21 -0
  26. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md +21 -0
  27. data/docs/ProjectsQualityPerformanceScoreRequest.md +17 -0
  28. data/docs/QualityPerformanceScoreApi.md +72 -0
  29. data/docs/ReportsApi.md +144 -0
  30. data/docs/ScreenshotUpdateParameters.md +1 -1
  31. data/docs/TranslationKeyDetails.md +3 -1
  32. data/docs/Upload.md +2 -0
  33. data/lib/phrase/api/custom_metadata_api.rb +390 -0
  34. data/lib/phrase/api/keys_api.rb +2 -2
  35. data/lib/phrase/api/locales_api.rb +3 -0
  36. data/lib/phrase/api/quality_performance_score_api.rb +84 -0
  37. data/lib/phrase/api/reports_api.rb +160 -0
  38. data/lib/phrase/models/custom_metadata_data_type.rb +30 -0
  39. data/lib/phrase/models/custom_metadata_properties_create_parameters.rb +272 -0
  40. data/lib/phrase/models/custom_metadata_properties_update_parameters.rb +231 -0
  41. data/lib/phrase/models/custom_metadata_property.rb +294 -0
  42. data/lib/phrase/models/{invitation_create422_response.rb → custom_metadata_property_create422_response.rb} +4 -4
  43. data/lib/phrase/models/{invitation_create422_response_errors_inner.rb → custom_metadata_property_create422_response_errors_inner.rb} +3 -3
  44. data/lib/phrase/models/error.rb +197 -0
  45. data/lib/phrase/models/error_error.rb +205 -0
  46. data/lib/phrase/models/key_create_parameters.rb +14 -4
  47. data/lib/phrase/models/key_update_parameters.rb +14 -4
  48. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  49. data/lib/phrase/models/locale_report.rb +313 -0
  50. data/lib/phrase/models/project_report.rb +259 -0
  51. data/lib/phrase/models/projects_quality_performance_score200_response.rb +237 -0
  52. data/lib/phrase/models/projects_quality_performance_score200_response_any_of.rb +208 -0
  53. data/lib/phrase/models/projects_quality_performance_score200_response_any_of_data.rb +198 -0
  54. data/lib/phrase/models/projects_quality_performance_score200_response_any_of_data_translations_inner.rb +217 -0
  55. data/lib/phrase/models/projects_quality_performance_score200_response_any_of_errors_inner.rb +215 -0
  56. data/lib/phrase/models/projects_quality_performance_score_request.rb +199 -0
  57. data/lib/phrase/models/translation_key_details.rb +15 -4
  58. data/lib/phrase/models/upload.rb +11 -1
  59. data/lib/phrase/version.rb +1 -1
  60. data/lib/phrase.rb +19 -2
  61. data/spec/api/custom_metadata_api_spec.rb +99 -0
  62. data/spec/api/keys_api_spec.rb +1 -1
  63. data/spec/api/quality_performance_score_api_spec.rb +37 -0
  64. data/spec/api/reports_api_spec.rb +55 -0
  65. data/spec/models/custom_metadata_data_type_spec.rb +23 -0
  66. data/spec/models/custom_metadata_properties_create_parameters_spec.rb +53 -0
  67. data/spec/models/custom_metadata_properties_update_parameters_spec.rb +47 -0
  68. data/spec/models/{invitation_create422_response_errors_inner_spec.rb → custom_metadata_property_create422_response_errors_inner_spec.rb} +6 -6
  69. data/spec/models/custom_metadata_property_create422_response_spec.rb +35 -0
  70. data/spec/models/custom_metadata_property_spec.rb +77 -0
  71. data/spec/models/{invitation_create422_response_spec.rb → error_error_spec.rb} +7 -7
  72. data/spec/models/error_spec.rb +29 -0
  73. data/spec/models/key_create_parameters_spec.rb +6 -0
  74. data/spec/models/key_update_parameters_spec.rb +6 -0
  75. data/spec/models/locale_report_spec.rb +107 -0
  76. data/spec/models/project_report_spec.rb +71 -0
  77. data/spec/models/projects_quality_performance_score200_response_any_of_data_spec.rb +29 -0
  78. data/spec/models/projects_quality_performance_score200_response_any_of_data_translations_inner_spec.rb +41 -0
  79. data/spec/models/projects_quality_performance_score200_response_any_of_errors_inner_spec.rb +41 -0
  80. data/spec/models/projects_quality_performance_score200_response_any_of_spec.rb +35 -0
  81. data/spec/models/projects_quality_performance_score200_response_spec.rb +41 -0
  82. data/spec/models/projects_quality_performance_score_request_spec.rb +29 -0
  83. data/spec/models/translation_key_details_spec.rb +6 -0
  84. data/spec/models/upload_spec.rb +6 -0
  85. metadata +285 -217
  86. data/docs/InvitationCreate422Response.md +0 -19
@@ -0,0 +1,199 @@
1
+ require 'date'
2
+
3
+ module Phrase
4
+ class ProjectsQualityPerformanceScoreRequest
5
+ # Translation ids you want to get the quality performance score for
6
+ attr_accessor :translation_ids
7
+
8
+ # Attribute mapping from ruby-style variable name to JSON key.
9
+ def self.attribute_map
10
+ {
11
+ :'translation_ids' => :'translation_ids'
12
+ }
13
+ end
14
+
15
+ # Attribute type mapping.
16
+ def self.openapi_types
17
+ {
18
+ :'translation_ids' => :'Array<String>'
19
+ }
20
+ end
21
+
22
+ # List of attributes with nullable: true
23
+ def self.openapi_nullable
24
+ Set.new([
25
+ ])
26
+ end
27
+
28
+ # Initializes the object
29
+ # @param [Hash] attributes Model attributes in the form of hash
30
+ def initialize(attributes = {})
31
+ if (!attributes.is_a?(Hash))
32
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::ProjectsQualityPerformanceScoreRequest` initialize method"
33
+ end
34
+
35
+ # check to see if the attribute exists and convert string to symbol for hash key
36
+ attributes = attributes.each_with_object({}) { |(k, v), h|
37
+ if (!self.class.attribute_map.key?(k.to_sym))
38
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::ProjectsQualityPerformanceScoreRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
39
+ end
40
+ h[k.to_sym] = v
41
+ }
42
+
43
+ if attributes.key?(:'translation_ids')
44
+ if (value = attributes[:'translation_ids']).is_a?(Array)
45
+ self.translation_ids = value
46
+ end
47
+ end
48
+ end
49
+
50
+ # Show invalid properties with the reasons. Usually used together with valid?
51
+ # @return Array for valid properties with the reasons
52
+ def list_invalid_properties
53
+ invalid_properties = Array.new
54
+ invalid_properties
55
+ end
56
+
57
+ # Check to see if the all the properties in the model are valid
58
+ # @return true if the model is valid
59
+ def valid?
60
+ true
61
+ end
62
+
63
+ # Checks equality by comparing each attribute.
64
+ # @param [Object] Object to be compared
65
+ def ==(o)
66
+ return true if self.equal?(o)
67
+ self.class == o.class &&
68
+ translation_ids == o.translation_ids
69
+ end
70
+
71
+ # @see the `==` method
72
+ # @param [Object] Object to be compared
73
+ def eql?(o)
74
+ self == o
75
+ end
76
+
77
+ # Calculates hash code according to all attributes.
78
+ # @return [Integer] Hash code
79
+ def hash
80
+ [translation_ids].hash
81
+ end
82
+
83
+ # Builds the object from hash
84
+ # @param [Hash] attributes Model attributes in the form of hash
85
+ # @return [Object] Returns the model itself
86
+ def self.build_from_hash(attributes)
87
+ new.build_from_hash(attributes)
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.openapi_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :Time
121
+ Time.parse(value)
122
+ when :String
123
+ value.to_s
124
+ when :Integer
125
+ value.to_i
126
+ when :Float
127
+ value.to_f
128
+ when :Boolean
129
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
130
+ true
131
+ else
132
+ false
133
+ end
134
+ when :Object
135
+ # generic object (usually a Hash), return directly
136
+ value
137
+ when /\AArray<(?<inner_type>.+)>\z/
138
+ inner_type = Regexp.last_match[:inner_type]
139
+ value.map { |v| _deserialize(inner_type, v) }
140
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
141
+ k_type = Regexp.last_match[:k_type]
142
+ v_type = Regexp.last_match[:v_type]
143
+ {}.tap do |hash|
144
+ value.each do |k, v|
145
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
146
+ end
147
+ end
148
+ else # model
149
+ Phrase.const_get(type).build_from_hash(value)
150
+ end
151
+ end
152
+
153
+ # Returns the string representation of the object
154
+ # @return [String] String presentation of the object
155
+ def to_s
156
+ to_hash.to_s
157
+ end
158
+
159
+ # to_body is an alias to to_hash (backward compatibility)
160
+ # @return [Hash] Returns the object in the form of hash
161
+ def to_body
162
+ to_hash
163
+ end
164
+
165
+ # Returns the object in the form of hash
166
+ # @return [Hash] Returns the object in the form of hash
167
+ def to_hash
168
+ hash = {}
169
+ self.class.attribute_map.each_pair do |attr, param|
170
+ value = self.send(attr)
171
+ if value.nil?
172
+ is_nullable = self.class.openapi_nullable.include?(attr)
173
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
174
+ end
175
+
176
+ hash[param] = _to_hash(value)
177
+ end
178
+ hash
179
+ end
180
+
181
+ # Outputs non-array value in the form of hash
182
+ # For object, use to_hash. Otherwise, just return the value
183
+ # @param [Object] value Any valid value
184
+ # @return [Hash] Returns the value in the form of hash
185
+ def _to_hash(value)
186
+ if value.is_a?(Array)
187
+ value.compact.map { |v| _to_hash(v) }
188
+ elsif value.is_a?(Hash)
189
+ {}.tap do |hash|
190
+ value.each { |k, v| hash[k] = _to_hash(v) }
191
+ end
192
+ elsif value.respond_to? :to_hash
193
+ value.to_hash
194
+ else
195
+ value
196
+ end
197
+ end
198
+ end
199
+ end
@@ -38,6 +38,8 @@ module Phrase
38
38
 
39
39
  attr_accessor :creator
40
40
 
41
+ attr_accessor :custom_metadata
42
+
41
43
  # Attribute mapping from ruby-style variable name to JSON key.
42
44
  def self.attribute_map
43
45
  {
@@ -58,7 +60,8 @@ module Phrase
58
60
  :'xml_space_preserve' => :'xml_space_preserve',
59
61
  :'original_file' => :'original_file',
60
62
  :'format_value_type' => :'format_value_type',
61
- :'creator' => :'creator'
63
+ :'creator' => :'creator',
64
+ :'custom_metadata' => :'custom_metadata'
62
65
  }
63
66
  end
64
67
 
@@ -82,7 +85,8 @@ module Phrase
82
85
  :'xml_space_preserve' => :'Boolean',
83
86
  :'original_file' => :'String',
84
87
  :'format_value_type' => :'String',
85
- :'creator' => :'UserPreview'
88
+ :'creator' => :'UserPreview',
89
+ :'custom_metadata' => :'Hash<String, String>'
86
90
  }
87
91
  end
88
92
 
@@ -187,6 +191,12 @@ module Phrase
187
191
  if attributes.key?(:'creator')
188
192
  self.creator = attributes[:'creator']
189
193
  end
194
+
195
+ if attributes.key?(:'custom_metadata')
196
+ if (value = attributes[:'custom_metadata']).is_a?(Hash)
197
+ self.custom_metadata = value
198
+ end
199
+ end
190
200
  end
191
201
 
192
202
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -224,7 +234,8 @@ module Phrase
224
234
  xml_space_preserve == o.xml_space_preserve &&
225
235
  original_file == o.original_file &&
226
236
  format_value_type == o.format_value_type &&
227
- creator == o.creator
237
+ creator == o.creator &&
238
+ custom_metadata == o.custom_metadata
228
239
  end
229
240
 
230
241
  # @see the `==` method
@@ -236,7 +247,7 @@ module Phrase
236
247
  # Calculates hash code according to all attributes.
237
248
  # @return [Integer] Hash code
238
249
  def hash
239
- [id, name, description, name_hash, plural, tags, data_type, created_at, updated_at, name_plural, comments_count, max_characters_allowed, screenshot_url, unformatted, xml_space_preserve, original_file, format_value_type, creator].hash
250
+ [id, name, description, name_hash, plural, tags, data_type, created_at, updated_at, name_plural, comments_count, max_characters_allowed, screenshot_url, unformatted, xml_space_preserve, original_file, format_value_type, creator, custom_metadata].hash
240
251
  end
241
252
 
242
253
  # Builds the object from hash
@@ -12,6 +12,9 @@ module Phrase
12
12
 
13
13
  attr_accessor :tag
14
14
 
15
+ # The URL to the upload in Phrase Strings app.
16
+ attr_accessor :url
17
+
15
18
  attr_accessor :summary
16
19
 
17
20
  attr_accessor :created_at
@@ -26,6 +29,7 @@ module Phrase
26
29
  :'format' => :'format',
27
30
  :'state' => :'state',
28
31
  :'tag' => :'tag',
32
+ :'url' => :'url',
29
33
  :'summary' => :'summary',
30
34
  :'created_at' => :'created_at',
31
35
  :'updated_at' => :'updated_at'
@@ -40,6 +44,7 @@ module Phrase
40
44
  :'format' => :'String',
41
45
  :'state' => :'String',
42
46
  :'tag' => :'String',
47
+ :'url' => :'String',
43
48
  :'summary' => :'UploadSummary',
44
49
  :'created_at' => :'DateTime',
45
50
  :'updated_at' => :'DateTime'
@@ -87,6 +92,10 @@ module Phrase
87
92
  self.tag = attributes[:'tag']
88
93
  end
89
94
 
95
+ if attributes.key?(:'url')
96
+ self.url = attributes[:'url']
97
+ end
98
+
90
99
  if attributes.key?(:'summary')
91
100
  self.summary = attributes[:'summary']
92
101
  end
@@ -123,6 +132,7 @@ module Phrase
123
132
  format == o.format &&
124
133
  state == o.state &&
125
134
  tag == o.tag &&
135
+ url == o.url &&
126
136
  summary == o.summary &&
127
137
  created_at == o.created_at &&
128
138
  updated_at == o.updated_at
@@ -137,7 +147,7 @@ module Phrase
137
147
  # Calculates hash code according to all attributes.
138
148
  # @return [Integer] Hash code
139
149
  def hash
140
- [id, filename, format, state, tag, summary, created_at, updated_at].hash
150
+ [id, filename, format, state, tag, url, summary, created_at, updated_at].hash
141
151
  end
142
152
 
143
153
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.20.0'
2
+ VERSION = '2.22.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -36,11 +36,19 @@ require 'phrase/models/comment_reaction'
36
36
  require 'phrase/models/comment_update_parameters'
37
37
  require 'phrase/models/comments_list_parameters'
38
38
  require 'phrase/models/current_user'
39
+ require 'phrase/models/custom_metadata_data_type'
40
+ require 'phrase/models/custom_metadata_properties_create_parameters'
41
+ require 'phrase/models/custom_metadata_properties_update_parameters'
42
+ require 'phrase/models/custom_metadata_property'
43
+ require 'phrase/models/custom_metadata_property_create422_response'
44
+ require 'phrase/models/custom_metadata_property_create422_response_errors_inner'
39
45
  require 'phrase/models/distribution'
40
46
  require 'phrase/models/distribution_create_parameters'
41
47
  require 'phrase/models/distribution_preview'
42
48
  require 'phrase/models/distribution_update_parameters'
43
49
  require 'phrase/models/document'
50
+ require 'phrase/models/error'
51
+ require 'phrase/models/error_error'
44
52
  require 'phrase/models/figma_attachment'
45
53
  require 'phrase/models/figma_attachment_create_parameters'
46
54
  require 'phrase/models/figma_attachment_update_parameters'
@@ -65,8 +73,6 @@ require 'phrase/models/glossary_update_parameters'
65
73
  require 'phrase/models/icu'
66
74
  require 'phrase/models/icu_skeleton_parameters'
67
75
  require 'phrase/models/invitation'
68
- require 'phrase/models/invitation_create422_response'
69
- require 'phrase/models/invitation_create422_response_errors_inner'
70
76
  require 'phrase/models/invitation_create_parameters'
71
77
  require 'phrase/models/invitation_update_parameters'
72
78
  require 'phrase/models/invitation_update_settings_parameters'
@@ -109,6 +115,7 @@ require 'phrase/models/locale_create_parameters'
109
115
  require 'phrase/models/locale_details'
110
116
  require 'phrase/models/locale_preview'
111
117
  require 'phrase/models/locale_preview1'
118
+ require 'phrase/models/locale_report'
112
119
  require 'phrase/models/locale_statistics'
113
120
  require 'phrase/models/locale_team_preview'
114
121
  require 'phrase/models/locale_update_parameters'
@@ -134,8 +141,15 @@ require 'phrase/models/project'
134
141
  require 'phrase/models/project_create_parameters'
135
142
  require 'phrase/models/project_details'
136
143
  require 'phrase/models/project_locales'
144
+ require 'phrase/models/project_report'
137
145
  require 'phrase/models/project_short'
138
146
  require 'phrase/models/project_update_parameters'
147
+ require 'phrase/models/projects_quality_performance_score200_response'
148
+ require 'phrase/models/projects_quality_performance_score200_response_any_of'
149
+ require 'phrase/models/projects_quality_performance_score200_response_any_of_data'
150
+ require 'phrase/models/projects_quality_performance_score200_response_any_of_data_translations_inner'
151
+ require 'phrase/models/projects_quality_performance_score200_response_any_of_errors_inner'
152
+ require 'phrase/models/projects_quality_performance_score_request'
139
153
  require 'phrase/models/release'
140
154
  require 'phrase/models/release_create_parameters'
141
155
  require 'phrase/models/release_preview'
@@ -212,6 +226,7 @@ require 'phrase/api/branches_api'
212
226
  require 'phrase/api/comment_reactions_api'
213
227
  require 'phrase/api/comment_replies_api'
214
228
  require 'phrase/api/comments_api'
229
+ require 'phrase/api/custom_metadata_api'
215
230
  require 'phrase/api/distributions_api'
216
231
  require 'phrase/api/documents_api'
217
232
  require 'phrase/api/figma_attachments_api'
@@ -238,7 +253,9 @@ require 'phrase/api/orders_api'
238
253
  require 'phrase/api/organization_job_template_locales_api'
239
254
  require 'phrase/api/organization_job_templates_api'
240
255
  require 'phrase/api/projects_api'
256
+ require 'phrase/api/quality_performance_score_api'
241
257
  require 'phrase/api/releases_api'
258
+ require 'phrase/api/reports_api'
242
259
  require 'phrase/api/screenshot_markers_api'
243
260
  require 'phrase/api/screenshots_api'
244
261
  require 'phrase/api/search_api'
@@ -0,0 +1,99 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::CustomMetadataApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'CustomMetadataApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::CustomMetadataApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of CustomMetadataApi' do
18
+ it 'should create an instance of CustomMetadataApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::CustomMetadataApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for custom_metadata_properties_delete
24
+ # Destroy property
25
+ # Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above.
26
+ # @param account_id Account 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 'custom_metadata_properties_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 custom_metadata_properties_list
38
+ # List properties
39
+ # List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above.
40
+ # @param account_id Account ID
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
43
+ # @option opts [CustomMetadataDataType] :data_type Data Type of Custom Metadata Property
44
+ # @option opts [String] :project_id id of project that the properties belong to
45
+ # @option opts [Integer] :page Page number
46
+ # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
47
+ # @option opts [String] :sort Sort criteria. Can be one of: name, data_type, created_at.
48
+ # @option opts [String] :order Order direction. Can be one of: asc, desc.
49
+ # @return [Array<CustomMetadataProperty>]
50
+ describe 'custom_metadata_properties_list test' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ # unit tests for custom_metadata_property_create
57
+ # Create a property
58
+ # Create a new custom metadata property.
59
+ # @param account_id Account ID
60
+ # @param custom_metadata_properties_create_parameters
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
63
+ # @return [CustomMetadataProperty]
64
+ describe 'custom_metadata_property_create test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for custom_metadata_property_show
71
+ # Get a single property
72
+ # Get details of a single custom property.
73
+ # @param account_id Account ID
74
+ # @param id ID
75
+ # @param [Hash] opts the optional parameters
76
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
77
+ # @return [CustomMetadataProperty]
78
+ describe 'custom_metadata_property_show test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for custom_metadata_property_update
85
+ # Update a property
86
+ # Update an existing custom metadata property.
87
+ # @param account_id Account ID
88
+ # @param id ID
89
+ # @param custom_metadata_properties_update_parameters
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
92
+ # @return [CustomMetadataProperty]
93
+ describe 'custom_metadata_property_update test' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
99
+ end
@@ -134,7 +134,7 @@ describe 'KeysApi' do
134
134
  # @option opts [String] :branch specify the branch to use
135
135
  # @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
136
136
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
137
- # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
137
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name,...&lt;/code&gt; for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name,...&lt;/code&gt; to filter for keys with certain comma-seperated list of tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;uploads:upload_id,...&lt;/code&gt; to filter for keys with certain comma-seperated list of uploads&lt;/li&gt; &lt;li&gt;&lt;code&gt;job:{true|false}&lt;/code&gt; to filter for keys mentioned in an active job&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&amp;gt;&#x3D;|&amp;lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
138
138
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
139
139
  # @return [Array<TranslationKey>]
140
140
  describe 'keys_list test' do
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::QualityPerformanceScoreApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'QualityPerformanceScoreApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::QualityPerformanceScoreApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of QualityPerformanceScoreApi' do
18
+ it 'should create an instance of QualityPerformanceScoreApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::QualityPerformanceScoreApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for projects_quality_performance_score
24
+ # Get project&#39;s translations&#39; quality performance scores
25
+ # Get project&#39;s translations&#39; quality performance scores
26
+ # @param id ID
27
+ # @param projects_quality_performance_score_request
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [ProjectsQualityPerformanceScore200Response]
31
+ describe 'projects_quality_performance_score 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
+ end
@@ -0,0 +1,55 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::ReportsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'ReportsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::ReportsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of ReportsApi' do
18
+ it 'should create an instance of ReportsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::ReportsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for report_locales_list
24
+ # List Locale Reports
25
+ # List all locale reports for the given project
26
+ # @param project_id Project ID
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
29
+ # @option opts [Integer] :page Page number
30
+ # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
31
+ # @option opts [String] :locale_codes Locale Code
32
+ # @option opts [String] :tag tag
33
+ # @option opts [String] :branch specify the branch to use
34
+ # @return [Array<LocaleReport>]
35
+ describe 'report_locales_list test' 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
+ # unit tests for report_show
42
+ # Get Project Report
43
+ # Get report of a single project.
44
+ # @param project_id Project ID
45
+ # @param [Hash] opts the optional parameters
46
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
47
+ # @option opts [String] :branch specify the branch to use
48
+ # @return [ProjectReport]
49
+ describe 'report_show test' 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
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::CustomMetadataDataType
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'CustomMetadataDataType' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::CustomMetadataDataType.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of CustomMetadataDataType' do
19
+ it 'should create an instance of CustomMetadataDataType' do
20
+ expect(@instance).to be_instance_of(Phrase::CustomMetadataDataType)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,53 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::CustomMetadataPropertiesCreateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'CustomMetadataPropertiesCreateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::CustomMetadataPropertiesCreateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of CustomMetadataPropertiesCreateParameters' do
19
+ it 'should create an instance of CustomMetadataPropertiesCreateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::CustomMetadataPropertiesCreateParameters)
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 "data_type"' 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 "project_ids"' 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 "description"' 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 "value_options"' 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
+ end