moderation_api 1.2.1 → 1.2.2

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 (175) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +87 -0
  3. data/README.md +5 -5
  4. data/docs/AccountApi.md +5 -5
  5. data/docs/AccountGet200Response.md +2 -2
  6. data/docs/AccountGet200ResponseCurrentProject.md +2 -2
  7. data/docs/ActionsCreateRequest.md +2 -2
  8. data/docs/ActionsCreateRequestWebhooksInner.md +2 -2
  9. data/docs/ActionsDelete200Response.md +2 -2
  10. data/docs/ActionsExecute200Response.md +2 -2
  11. data/docs/ActionsExecuteDeprecatedRequest.md +2 -2
  12. data/docs/ActionsExecuteRequest.md +2 -2
  13. data/docs/ActionsGet200Response.md +2 -2
  14. data/docs/ActionsGet200ResponseWebhooksInner.md +2 -2
  15. data/docs/ActionsList200ResponseInner.md +2 -2
  16. data/docs/ActionsList200ResponseInnerPossibleValuesInner.md +2 -2
  17. data/docs/ActionsList400Response.md +2 -2
  18. data/docs/ActionsList400ResponseIssuesInner.md +2 -2
  19. data/docs/ActionsUpdateRequest.md +2 -2
  20. data/docs/ModerateApi.md +26 -26
  21. data/docs/ModerationAudioRequest.md +2 -2
  22. data/docs/ModerationImage200Response.md +2 -2
  23. data/docs/ModerationImage200ResponseLabelsInner.md +2 -2
  24. data/docs/ModerationImageRequest.md +2 -2
  25. data/docs/ModerationObject200Response.md +2 -2
  26. data/docs/ModerationObject200ResponseAllOfEntitiesInner.md +2 -2
  27. data/docs/ModerationObject200ResponseAllOfFieldsInner.md +2 -2
  28. data/docs/ModerationObject200ResponseAllOfLabelsInner.md +2 -2
  29. data/docs/ModerationObjectRequest.md +2 -2
  30. data/docs/ModerationObjectRequestValue.md +2 -2
  31. data/docs/ModerationObjectRequestValueDataValue.md +2 -2
  32. data/docs/ModerationText200Response.md +2 -2
  33. data/docs/ModerationText200ResponseAllOfAddress.md +2 -2
  34. data/docs/ModerationText200ResponseAllOfEmail.md +2 -2
  35. data/docs/ModerationText200ResponseAllOfName.md +2 -2
  36. data/docs/ModerationText200ResponseAllOfNsfw.md +2 -2
  37. data/docs/ModerationText200ResponseAllOfNsfwLabelScores.md +2 -2
  38. data/docs/ModerationText200ResponseAllOfPhone.md +2 -2
  39. data/docs/ModerationText200ResponseAllOfProfanity.md +2 -2
  40. data/docs/ModerationText200ResponseAllOfPropriety.md +2 -2
  41. data/docs/ModerationText200ResponseAllOfProprietyLabelScores.md +2 -2
  42. data/docs/ModerationText200ResponseAllOfQuality.md +2 -2
  43. data/docs/ModerationText200ResponseAllOfQualityLabelScores.md +2 -2
  44. data/docs/ModerationText200ResponseAllOfRequest.md +2 -2
  45. data/docs/ModerationText200ResponseAllOfSensitive.md +2 -2
  46. data/docs/ModerationText200ResponseAllOfSentiment.md +2 -2
  47. data/docs/ModerationText200ResponseAllOfSentimentLabelScores.md +2 -2
  48. data/docs/ModerationText200ResponseAllOfToxicity.md +2 -2
  49. data/docs/ModerationText200ResponseAllOfToxicityLabelScores.md +2 -2
  50. data/docs/ModerationText200ResponseAllOfUrl.md +2 -2
  51. data/docs/ModerationText200ResponseAllOfUsername.md +2 -2
  52. data/docs/ModerationText200ResponseAllOfWordlist.md +2 -2
  53. data/docs/ModerationText200ResponseAllOfWordlistsInner.md +2 -2
  54. data/docs/ModerationTextRequest.md +2 -2
  55. data/docs/ModerationVideo200Response.md +2 -2
  56. data/docs/ModerationVideoRequest.md +2 -2
  57. data/docs/QueueActionsApi.md +33 -33
  58. data/lib/moderation_api/api/account_api.rb +1 -1
  59. data/lib/moderation_api/api/moderate_api.rb +1 -1
  60. data/lib/moderation_api/api/queue_actions_api.rb +1 -1
  61. data/lib/moderation_api/api_client.rb +2 -2
  62. data/lib/moderation_api/api_error.rb +1 -1
  63. data/lib/moderation_api/configuration.rb +1 -1
  64. data/lib/moderation_api/models/account_get200_response.rb +4 -4
  65. data/lib/moderation_api/models/account_get200_response_current_project.rb +4 -4
  66. data/lib/moderation_api/models/actions_create_request.rb +4 -4
  67. data/lib/moderation_api/models/actions_create_request_webhooks_inner.rb +4 -4
  68. data/lib/moderation_api/models/actions_delete200_response.rb +4 -4
  69. data/lib/moderation_api/models/actions_execute200_response.rb +4 -4
  70. data/lib/moderation_api/models/actions_execute_deprecated_request.rb +4 -4
  71. data/lib/moderation_api/models/actions_execute_request.rb +4 -4
  72. data/lib/moderation_api/models/actions_get200_response.rb +4 -4
  73. data/lib/moderation_api/models/actions_get200_response_webhooks_inner.rb +4 -4
  74. data/lib/moderation_api/models/actions_list200_response_inner.rb +4 -4
  75. data/lib/moderation_api/models/actions_list200_response_inner_possible_values_inner.rb +4 -4
  76. data/lib/moderation_api/models/actions_list400_response.rb +4 -4
  77. data/lib/moderation_api/models/actions_list400_response_issues_inner.rb +4 -4
  78. data/lib/moderation_api/models/actions_update_request.rb +4 -4
  79. data/lib/moderation_api/models/moderation_audio_request.rb +4 -4
  80. data/lib/moderation_api/models/moderation_image200_response.rb +4 -4
  81. data/lib/moderation_api/models/moderation_image200_response_labels_inner.rb +4 -4
  82. data/lib/moderation_api/models/moderation_image_request.rb +4 -4
  83. data/lib/moderation_api/models/moderation_object200_response.rb +4 -4
  84. data/lib/moderation_api/models/moderation_object200_response_all_of_entities_inner.rb +4 -4
  85. data/lib/moderation_api/models/moderation_object200_response_all_of_fields_inner.rb +4 -4
  86. data/lib/moderation_api/models/moderation_object200_response_all_of_labels_inner.rb +4 -4
  87. data/lib/moderation_api/models/moderation_object_request.rb +4 -4
  88. data/lib/moderation_api/models/moderation_object_request_value.rb +4 -4
  89. data/lib/moderation_api/models/moderation_object_request_value_data_value.rb +4 -4
  90. data/lib/moderation_api/models/moderation_text200_response.rb +4 -4
  91. data/lib/moderation_api/models/moderation_text200_response_all_of_address.rb +4 -4
  92. data/lib/moderation_api/models/moderation_text200_response_all_of_email.rb +4 -4
  93. data/lib/moderation_api/models/moderation_text200_response_all_of_name.rb +4 -4
  94. data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw.rb +4 -4
  95. data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw_label_scores.rb +4 -4
  96. data/lib/moderation_api/models/moderation_text200_response_all_of_phone.rb +4 -4
  97. data/lib/moderation_api/models/moderation_text200_response_all_of_profanity.rb +4 -4
  98. data/lib/moderation_api/models/moderation_text200_response_all_of_propriety.rb +4 -4
  99. data/lib/moderation_api/models/moderation_text200_response_all_of_propriety_label_scores.rb +4 -4
  100. data/lib/moderation_api/models/moderation_text200_response_all_of_quality.rb +4 -4
  101. data/lib/moderation_api/models/moderation_text200_response_all_of_quality_label_scores.rb +4 -4
  102. data/lib/moderation_api/models/moderation_text200_response_all_of_request.rb +4 -4
  103. data/lib/moderation_api/models/moderation_text200_response_all_of_sensitive.rb +4 -4
  104. data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment.rb +4 -4
  105. data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment_label_scores.rb +4 -4
  106. data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity.rb +4 -4
  107. data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity_label_scores.rb +4 -4
  108. data/lib/moderation_api/models/moderation_text200_response_all_of_url.rb +4 -4
  109. data/lib/moderation_api/models/moderation_text200_response_all_of_username.rb +4 -4
  110. data/lib/moderation_api/models/moderation_text200_response_all_of_wordlist.rb +4 -4
  111. data/lib/moderation_api/models/moderation_text200_response_all_of_wordlists_inner.rb +4 -4
  112. data/lib/moderation_api/models/moderation_text_request.rb +4 -4
  113. data/lib/moderation_api/models/moderation_video200_response.rb +4 -4
  114. data/lib/moderation_api/models/moderation_video_request.rb +4 -4
  115. data/lib/moderation_api/version.rb +2 -2
  116. data/lib/moderation_api/webhook.rb +1 -1
  117. data/lib/moderation_api.rb +56 -56
  118. data/moderation_api-1.2.1.gem +0 -0
  119. data/moderation_api.gemspec +3 -3
  120. data/ruby_config.yaml +30 -0
  121. data/spec/api/account_api_spec.rb +3 -3
  122. data/spec/api/moderate_api_spec.rb +3 -3
  123. data/spec/api/queue_actions_api_spec.rb +3 -3
  124. data/spec/models/account_get200_response_current_project_spec.rb +4 -4
  125. data/spec/models/account_get200_response_spec.rb +4 -4
  126. data/spec/models/actions_create_request_spec.rb +4 -4
  127. data/spec/models/actions_create_request_webhooks_inner_spec.rb +4 -4
  128. data/spec/models/actions_delete200_response_spec.rb +4 -4
  129. data/spec/models/actions_execute200_response_spec.rb +4 -4
  130. data/spec/models/actions_execute_deprecated_request_spec.rb +4 -4
  131. data/spec/models/actions_execute_request_spec.rb +4 -4
  132. data/spec/models/actions_get200_response_spec.rb +4 -4
  133. data/spec/models/actions_get200_response_webhooks_inner_spec.rb +4 -4
  134. data/spec/models/actions_list200_response_inner_possible_values_inner_spec.rb +4 -4
  135. data/spec/models/actions_list200_response_inner_spec.rb +4 -4
  136. data/spec/models/actions_list400_response_issues_inner_spec.rb +4 -4
  137. data/spec/models/actions_list400_response_spec.rb +4 -4
  138. data/spec/models/actions_update_request_spec.rb +4 -4
  139. data/spec/models/moderation_audio_request_spec.rb +4 -4
  140. data/spec/models/moderation_image200_response_labels_inner_spec.rb +4 -4
  141. data/spec/models/moderation_image200_response_spec.rb +4 -4
  142. data/spec/models/moderation_image_request_spec.rb +4 -4
  143. data/spec/models/moderation_object200_response_all_of_entities_inner_spec.rb +4 -4
  144. data/spec/models/moderation_object200_response_all_of_fields_inner_spec.rb +4 -4
  145. data/spec/models/moderation_object200_response_all_of_labels_inner_spec.rb +4 -4
  146. data/spec/models/moderation_object200_response_spec.rb +4 -4
  147. data/spec/models/moderation_object_request_spec.rb +4 -4
  148. data/spec/models/moderation_object_request_value_data_value_spec.rb +4 -4
  149. data/spec/models/moderation_object_request_value_spec.rb +4 -4
  150. data/spec/models/moderation_text200_response_all_of_address_spec.rb +4 -4
  151. data/spec/models/moderation_text200_response_all_of_email_spec.rb +4 -4
  152. data/spec/models/moderation_text200_response_all_of_name_spec.rb +4 -4
  153. data/spec/models/moderation_text200_response_all_of_nsfw_label_scores_spec.rb +4 -4
  154. data/spec/models/moderation_text200_response_all_of_nsfw_spec.rb +4 -4
  155. data/spec/models/moderation_text200_response_all_of_phone_spec.rb +4 -4
  156. data/spec/models/moderation_text200_response_all_of_profanity_spec.rb +4 -4
  157. data/spec/models/moderation_text200_response_all_of_propriety_label_scores_spec.rb +4 -4
  158. data/spec/models/moderation_text200_response_all_of_propriety_spec.rb +4 -4
  159. data/spec/models/moderation_text200_response_all_of_quality_label_scores_spec.rb +4 -4
  160. data/spec/models/moderation_text200_response_all_of_quality_spec.rb +4 -4
  161. data/spec/models/moderation_text200_response_all_of_request_spec.rb +4 -4
  162. data/spec/models/moderation_text200_response_all_of_sensitive_spec.rb +4 -4
  163. data/spec/models/moderation_text200_response_all_of_sentiment_label_scores_spec.rb +4 -4
  164. data/spec/models/moderation_text200_response_all_of_sentiment_spec.rb +4 -4
  165. data/spec/models/moderation_text200_response_all_of_toxicity_label_scores_spec.rb +4 -4
  166. data/spec/models/moderation_text200_response_all_of_toxicity_spec.rb +4 -4
  167. data/spec/models/moderation_text200_response_all_of_url_spec.rb +4 -4
  168. data/spec/models/moderation_text200_response_all_of_username_spec.rb +4 -4
  169. data/spec/models/moderation_text200_response_all_of_wordlist_spec.rb +4 -4
  170. data/spec/models/moderation_text200_response_all_of_wordlists_inner_spec.rb +4 -4
  171. data/spec/models/moderation_text200_response_spec.rb +4 -4
  172. data/spec/models/moderation_text_request_spec.rb +4 -4
  173. data/spec/models/moderation_video200_response_spec.rb +4 -4
  174. data/spec/models/moderation_video_request_spec.rb +4 -4
  175. metadata +7 -4
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ActionsList200ResponseInner
18
18
  # The ID of the action.
19
19
  attr_accessor :id
@@ -121,13 +121,13 @@ module ModerationAPI
121
121
  # @param [Hash] attributes Model attributes in the form of hash
122
122
  def initialize(attributes = {})
123
123
  if (!attributes.is_a?(Hash))
124
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ActionsList200ResponseInner` initialize method"
124
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ActionsList200ResponseInner` initialize method"
125
125
  end
126
126
 
127
127
  # check to see if the attribute exists and convert string to symbol for hash key
128
128
  attributes = attributes.each_with_object({}) { |(k, v), h|
129
129
  if (!self.class.attribute_map.key?(k.to_sym))
130
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ActionsList200ResponseInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
130
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ActionsList200ResponseInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
131
131
  end
132
132
  h[k.to_sym] = v
133
133
  }
@@ -340,7 +340,7 @@ module ModerationAPI
340
340
  end
341
341
  else # model
342
342
  # models (e.g. Pet) or oneOf
343
- klass = ModerationAPI.const_get(type)
343
+ klass = ModerationApi.const_get(type)
344
344
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
345
345
  end
346
346
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ActionsList200ResponseInnerPossibleValuesInner
18
18
  # The value of the action.
19
19
  attr_accessor :value
@@ -47,13 +47,13 @@ module ModerationAPI
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ActionsList200ResponseInnerPossibleValuesInner` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ActionsList200ResponseInnerPossibleValuesInner` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ActionsList200ResponseInnerPossibleValuesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ActionsList200ResponseInnerPossibleValuesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -166,7 +166,7 @@ module ModerationAPI
166
166
  end
167
167
  else # model
168
168
  # models (e.g. Pet) or oneOf
169
- klass = ModerationAPI.const_get(type)
169
+ klass = ModerationApi.const_get(type)
170
170
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
171
171
  end
172
172
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ActionsList400Response
18
18
  attr_accessor :message
19
19
 
@@ -54,13 +54,13 @@ module ModerationAPI
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ActionsList400Response` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ActionsList400Response` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ActionsList400Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ActionsList400Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -192,7 +192,7 @@ module ModerationAPI
192
192
  end
193
193
  else # model
194
194
  # models (e.g. Pet) or oneOf
195
- klass = ModerationAPI.const_get(type)
195
+ klass = ModerationApi.const_get(type)
196
196
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
197
197
  end
198
198
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ActionsList400ResponseIssuesInner
18
18
  attr_accessor :message
19
19
 
@@ -46,13 +46,13 @@ module ModerationAPI
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ActionsList400ResponseIssuesInner` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ActionsList400ResponseIssuesInner` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ActionsList400ResponseIssuesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ActionsList400ResponseIssuesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
@@ -165,7 +165,7 @@ module ModerationAPI
165
165
  end
166
166
  else # model
167
167
  # models (e.g. Pet) or oneOf
168
- klass = ModerationAPI.const_get(type)
168
+ klass = ModerationApi.const_get(type)
169
169
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
170
  end
171
171
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ActionsUpdateRequest
18
18
  # User defined key of the action.
19
19
  attr_accessor :key
@@ -116,13 +116,13 @@ module ModerationAPI
116
116
  # @param [Hash] attributes Model attributes in the form of hash
117
117
  def initialize(attributes = {})
118
118
  if (!attributes.is_a?(Hash))
119
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ActionsUpdateRequest` initialize method"
119
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ActionsUpdateRequest` initialize method"
120
120
  end
121
121
 
122
122
  # check to see if the attribute exists and convert string to symbol for hash key
123
123
  attributes = attributes.each_with_object({}) { |(k, v), h|
124
124
  if (!self.class.attribute_map.key?(k.to_sym))
125
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ActionsUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
125
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ActionsUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
126
126
  end
127
127
  h[k.to_sym] = v
128
128
  }
@@ -311,7 +311,7 @@ module ModerationAPI
311
311
  end
312
312
  else # model
313
313
  # models (e.g. Pet) or oneOf
314
- klass = ModerationAPI.const_get(type)
314
+ klass = ModerationApi.const_get(type)
315
315
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
316
316
  end
317
317
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationAudioRequest
18
18
  # The URL of the audio you want to analyze.
19
19
  attr_accessor :url
@@ -72,13 +72,13 @@ module ModerationAPI
72
72
  # @param [Hash] attributes Model attributes in the form of hash
73
73
  def initialize(attributes = {})
74
74
  if (!attributes.is_a?(Hash))
75
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationAudioRequest` initialize method"
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationAudioRequest` initialize method"
76
76
  end
77
77
 
78
78
  # check to see if the attribute exists and convert string to symbol for hash key
79
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
80
80
  if (!self.class.attribute_map.key?(k.to_sym))
81
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationAudioRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationAudioRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
82
  end
83
83
  h[k.to_sym] = v
84
84
  }
@@ -246,7 +246,7 @@ module ModerationAPI
246
246
  end
247
247
  else # model
248
248
  # models (e.g. Pet) or oneOf
249
- klass = ModerationAPI.const_get(type)
249
+ klass = ModerationApi.const_get(type)
250
250
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
251
251
  end
252
252
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationImage200Response
18
18
  # Success if the request was successful
19
19
  attr_accessor :status
@@ -71,13 +71,13 @@ module ModerationAPI
71
71
  # @param [Hash] attributes Model attributes in the form of hash
72
72
  def initialize(attributes = {})
73
73
  if (!attributes.is_a?(Hash))
74
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationImage200Response` initialize method"
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationImage200Response` initialize method"
75
75
  end
76
76
 
77
77
  # check to see if the attribute exists and convert string to symbol for hash key
78
78
  attributes = attributes.each_with_object({}) { |(k, v), h|
79
79
  if (!self.class.attribute_map.key?(k.to_sym))
80
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationImage200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationImage200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
81
  end
82
82
  h[k.to_sym] = v
83
83
  }
@@ -240,7 +240,7 @@ module ModerationAPI
240
240
  end
241
241
  else # model
242
242
  # models (e.g. Pet) or oneOf
243
- klass = ModerationAPI.const_get(type)
243
+ klass = ModerationApi.const_get(type)
244
244
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
245
245
  end
246
246
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationImage200ResponseLabelsInner
18
18
  # The label of the model
19
19
  attr_accessor :label
@@ -74,13 +74,13 @@ module ModerationAPI
74
74
  # @param [Hash] attributes Model attributes in the form of hash
75
75
  def initialize(attributes = {})
76
76
  if (!attributes.is_a?(Hash))
77
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationImage200ResponseLabelsInner` initialize method"
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationImage200ResponseLabelsInner` initialize method"
78
78
  end
79
79
 
80
80
  # check to see if the attribute exists and convert string to symbol for hash key
81
81
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
82
  if (!self.class.attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationImage200ResponseLabelsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationImage200ResponseLabelsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
84
  end
85
85
  h[k.to_sym] = v
86
86
  }
@@ -245,7 +245,7 @@ module ModerationAPI
245
245
  end
246
246
  else # model
247
247
  # models (e.g. Pet) or oneOf
248
- klass = ModerationAPI.const_get(type)
248
+ klass = ModerationApi.const_get(type)
249
249
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
250
250
  end
251
251
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationImageRequest
18
18
  # The URL of the image you want to analyze.
19
19
  attr_accessor :url
@@ -72,13 +72,13 @@ module ModerationAPI
72
72
  # @param [Hash] attributes Model attributes in the form of hash
73
73
  def initialize(attributes = {})
74
74
  if (!attributes.is_a?(Hash))
75
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationImageRequest` initialize method"
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationImageRequest` initialize method"
76
76
  end
77
77
 
78
78
  # check to see if the attribute exists and convert string to symbol for hash key
79
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
80
80
  if (!self.class.attribute_map.key?(k.to_sym))
81
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationImageRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationImageRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
82
  end
83
83
  h[k.to_sym] = v
84
84
  }
@@ -246,7 +246,7 @@ module ModerationAPI
246
246
  end
247
247
  else # model
248
248
  # models (e.g. Pet) or oneOf
249
- klass = ModerationAPI.const_get(type)
249
+ klass = ModerationApi.const_get(type)
250
250
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
251
251
  end
252
252
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationObject200Response
18
18
  # Success if the request was successful
19
19
  attr_accessor :status
@@ -91,13 +91,13 @@ module ModerationAPI
91
91
  # @param [Hash] attributes Model attributes in the form of hash
92
92
  def initialize(attributes = {})
93
93
  if (!attributes.is_a?(Hash))
94
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationObject200Response` initialize method"
94
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationObject200Response` initialize method"
95
95
  end
96
96
 
97
97
  # check to see if the attribute exists and convert string to symbol for hash key
98
98
  attributes = attributes.each_with_object({}) { |(k, v), h|
99
99
  if (!self.class.attribute_map.key?(k.to_sym))
100
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationObject200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
100
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationObject200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
101
101
  end
102
102
  h[k.to_sym] = v
103
103
  }
@@ -312,7 +312,7 @@ module ModerationAPI
312
312
  end
313
313
  else # model
314
314
  # models (e.g. Pet) or oneOf
315
- klass = ModerationAPI.const_get(type)
315
+ klass = ModerationApi.const_get(type)
316
316
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
317
317
  end
318
318
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationObject200ResponseAllOfEntitiesInner
18
18
  # The model that found the entity
19
19
  attr_accessor :model
@@ -57,13 +57,13 @@ module ModerationAPI
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationObject200ResponseAllOfEntitiesInner` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationObject200ResponseAllOfEntitiesInner` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
65
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationObject200ResponseAllOfEntitiesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationObject200ResponseAllOfEntitiesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -195,7 +195,7 @@ module ModerationAPI
195
195
  end
196
196
  else # model
197
197
  # models (e.g. Pet) or oneOf
198
- klass = ModerationAPI.const_get(type)
198
+ klass = ModerationApi.const_get(type)
199
199
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
200
200
  end
201
201
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationObject200ResponseAllOfFieldsInner
18
18
  # The key of the field
19
19
  attr_accessor :key
@@ -57,13 +57,13 @@ module ModerationAPI
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationObject200ResponseAllOfFieldsInner` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationObject200ResponseAllOfFieldsInner` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
65
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationObject200ResponseAllOfFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationObject200ResponseAllOfFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -202,7 +202,7 @@ module ModerationAPI
202
202
  end
203
203
  else # model
204
204
  # models (e.g. Pet) or oneOf
205
- klass = ModerationAPI.const_get(type)
205
+ klass = ModerationApi.const_get(type)
206
206
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
207
207
  end
208
208
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationObject200ResponseAllOfLabelsInner
18
18
  # The label of the model
19
19
  attr_accessor :label
@@ -57,13 +57,13 @@ module ModerationAPI
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationObject200ResponseAllOfLabelsInner` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationObject200ResponseAllOfLabelsInner` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
65
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationObject200ResponseAllOfLabelsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationObject200ResponseAllOfLabelsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -228,7 +228,7 @@ module ModerationAPI
228
228
  end
229
229
  else # model
230
230
  # models (e.g. Pet) or oneOf
231
- klass = ModerationAPI.const_get(type)
231
+ klass = ModerationApi.const_get(type)
232
232
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
233
233
  end
234
234
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationObjectRequest
18
18
  attr_accessor :value
19
19
 
@@ -71,13 +71,13 @@ module ModerationAPI
71
71
  # @param [Hash] attributes Model attributes in the form of hash
72
72
  def initialize(attributes = {})
73
73
  if (!attributes.is_a?(Hash))
74
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationObjectRequest` initialize method"
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationObjectRequest` initialize method"
75
75
  end
76
76
 
77
77
  # check to see if the attribute exists and convert string to symbol for hash key
78
78
  attributes = attributes.each_with_object({}) { |(k, v), h|
79
79
  if (!self.class.attribute_map.key?(k.to_sym))
80
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationObjectRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationObjectRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
81
  end
82
82
  h[k.to_sym] = v
83
83
  }
@@ -245,7 +245,7 @@ module ModerationAPI
245
245
  end
246
246
  else # model
247
247
  # models (e.g. Pet) or oneOf
248
- klass = ModerationAPI.const_get(type)
248
+ klass = ModerationApi.const_get(type)
249
249
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
250
250
  end
251
251
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  # The object you want to analyze.
18
18
  class ModerationObjectRequestValue
19
19
  # The type of the object you want to analyze.
@@ -74,13 +74,13 @@ module ModerationAPI
74
74
  # @param [Hash] attributes Model attributes in the form of hash
75
75
  def initialize(attributes = {})
76
76
  if (!attributes.is_a?(Hash))
77
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationObjectRequestValue` initialize method"
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationObjectRequestValue` initialize method"
78
78
  end
79
79
 
80
80
  # check to see if the attribute exists and convert string to symbol for hash key
81
81
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
82
  if (!self.class.attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationObjectRequestValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationObjectRequestValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
84
  end
85
85
  h[k.to_sym] = v
86
86
  }
@@ -219,7 +219,7 @@ module ModerationAPI
219
219
  end
220
220
  else # model
221
221
  # models (e.g. Pet) or oneOf
222
- klass = ModerationAPI.const_get(type)
222
+ klass = ModerationApi.const_get(type)
223
223
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
224
224
  end
225
225
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationObjectRequestValueDataValue
18
18
  # The type of content (e.g., \"text\", \"image\", \"video\")
19
19
  attr_accessor :type
@@ -79,13 +79,13 @@ module ModerationAPI
79
79
  # @param [Hash] attributes Model attributes in the form of hash
80
80
  def initialize(attributes = {})
81
81
  if (!attributes.is_a?(Hash))
82
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationObjectRequestValueDataValue` initialize method"
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationObjectRequestValueDataValue` initialize method"
83
83
  end
84
84
 
85
85
  # check to see if the attribute exists and convert string to symbol for hash key
86
86
  attributes = attributes.each_with_object({}) { |(k, v), h|
87
87
  if (!self.class.attribute_map.key?(k.to_sym))
88
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationObjectRequestValueDataValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationObjectRequestValueDataValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
89
89
  end
90
90
  h[k.to_sym] = v
91
91
  }
@@ -229,7 +229,7 @@ module ModerationAPI
229
229
  end
230
230
  else # model
231
231
  # models (e.g. Pet) or oneOf
232
- klass = ModerationAPI.const_get(type)
232
+ klass = ModerationApi.const_get(type)
233
233
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
234
234
  end
235
235
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  class ModerationText200Response
18
18
  # Success if the request was successful
19
19
  attr_accessor :status
@@ -147,13 +147,13 @@ module ModerationAPI
147
147
  # @param [Hash] attributes Model attributes in the form of hash
148
148
  def initialize(attributes = {})
149
149
  if (!attributes.is_a?(Hash))
150
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationText200Response` initialize method"
150
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationText200Response` initialize method"
151
151
  end
152
152
 
153
153
  # check to see if the attribute exists and convert string to symbol for hash key
154
154
  attributes = attributes.each_with_object({}) { |(k, v), h|
155
155
  if (!self.class.attribute_map.key?(k.to_sym))
156
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationText200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
156
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationText200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
157
157
  end
158
158
  h[k.to_sym] = v
159
159
  }
@@ -432,7 +432,7 @@ module ModerationAPI
432
432
  end
433
433
  else # model
434
434
  # models (e.g. Pet) or oneOf
435
- klass = ModerationAPI.const_get(type)
435
+ klass = ModerationApi.const_get(type)
436
436
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
437
437
  end
438
438
  end
@@ -13,7 +13,7 @@ Generator version: 7.10.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module ModerationAPI
16
+ module ModerationApi
17
17
  # The address entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/address
18
18
  class ModerationText200ResponseAllOfAddress
19
19
  # The detection mode.
@@ -96,13 +96,13 @@ module ModerationAPI
96
96
  # @param [Hash] attributes Model attributes in the form of hash
97
97
  def initialize(attributes = {})
98
98
  if (!attributes.is_a?(Hash))
99
- fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationAPI::ModerationText200ResponseAllOfAddress` initialize method"
99
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ModerationApi::ModerationText200ResponseAllOfAddress` initialize method"
100
100
  end
101
101
 
102
102
  # check to see if the attribute exists and convert string to symbol for hash key
103
103
  attributes = attributes.each_with_object({}) { |(k, v), h|
104
104
  if (!self.class.attribute_map.key?(k.to_sym))
105
- fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationAPI::ModerationText200ResponseAllOfAddress`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
105
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ModerationApi::ModerationText200ResponseAllOfAddress`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
106
106
  end
107
107
  h[k.to_sym] = v
108
108
  }
@@ -247,7 +247,7 @@ module ModerationAPI
247
247
  end
248
248
  else # model
249
249
  # models (e.g. Pet) or oneOf
250
- klass = ModerationAPI.const_get(type)
250
+ klass = ModerationApi.const_get(type)
251
251
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
252
252
  end
253
253
  end