moderation_api 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +144 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +74 -0
- data/docs/AccountGet200Response.md +26 -0
- data/docs/AccountGet200ResponseCurrentProject.md +20 -0
- data/docs/ActionsCreateRequest.md +36 -0
- data/docs/ActionsCreateRequestWebhooksInner.md +24 -0
- data/docs/ActionsDelete200Response.md +20 -0
- data/docs/ActionsExecute200Response.md +22 -0
- data/docs/ActionsExecuteDeprecatedRequest.md +22 -0
- data/docs/ActionsExecuteRequest.md +24 -0
- data/docs/ActionsGet200Response.md +40 -0
- data/docs/ActionsGet200ResponseWebhooksInner.md +26 -0
- data/docs/ActionsList200ResponseInner.md +38 -0
- data/docs/ActionsList200ResponseInnerPossibleValuesInner.md +18 -0
- data/docs/ActionsList400Response.md +22 -0
- data/docs/ActionsList400ResponseIssuesInner.md +18 -0
- data/docs/ActionsUpdateRequest.md +36 -0
- data/docs/ModerateApi.md +357 -0
- data/docs/ModerationAudioRequest.md +28 -0
- data/docs/ModerationImage200Response.md +28 -0
- data/docs/ModerationImage200ResponseLabelsInner.md +20 -0
- data/docs/ModerationImageRequest.md +28 -0
- data/docs/ModerationObject200Response.md +36 -0
- data/docs/ModerationObject200ResponseAllOfEntitiesInner.md +22 -0
- data/docs/ModerationObject200ResponseAllOfFieldsInner.md +22 -0
- data/docs/ModerationObject200ResponseAllOfLabelsInner.md +22 -0
- data/docs/ModerationObjectRequest.md +28 -0
- data/docs/ModerationObjectRequestValue.md +20 -0
- data/docs/ModerationObjectRequestValueDataValue.md +22 -0
- data/docs/ModerationText200Response.md +64 -0
- data/docs/ModerationText200ResponseAllOfAddress.md +28 -0
- data/docs/ModerationText200ResponseAllOfEmail.md +28 -0
- data/docs/ModerationText200ResponseAllOfName.md +28 -0
- data/docs/ModerationText200ResponseAllOfNsfw.md +26 -0
- data/docs/ModerationText200ResponseAllOfNsfwLabelScores.md +22 -0
- data/docs/ModerationText200ResponseAllOfPhone.md +28 -0
- data/docs/ModerationText200ResponseAllOfProfanity.md +28 -0
- data/docs/ModerationText200ResponseAllOfPropriety.md +26 -0
- data/docs/ModerationText200ResponseAllOfProprietyLabelScores.md +22 -0
- data/docs/ModerationText200ResponseAllOfQuality.md +26 -0
- data/docs/ModerationText200ResponseAllOfQualityLabelScores.md +24 -0
- data/docs/ModerationText200ResponseAllOfRequest.md +20 -0
- data/docs/ModerationText200ResponseAllOfSensitive.md +28 -0
- data/docs/ModerationText200ResponseAllOfSentiment.md +26 -0
- data/docs/ModerationText200ResponseAllOfSentimentLabelScores.md +22 -0
- data/docs/ModerationText200ResponseAllOfToxicity.md +26 -0
- data/docs/ModerationText200ResponseAllOfToxicityLabelScores.md +30 -0
- data/docs/ModerationText200ResponseAllOfUrl.md +28 -0
- data/docs/ModerationText200ResponseAllOfUsername.md +28 -0
- data/docs/ModerationText200ResponseAllOfWordlist.md +28 -0
- data/docs/ModerationText200ResponseAllOfWordlistsInner.md +36 -0
- data/docs/ModerationTextRequest.md +28 -0
- data/docs/ModerationVideo200Response.md +24 -0
- data/docs/ModerationVideoRequest.md +28 -0
- data/docs/QueueActionsApi.md +503 -0
- data/git_push.sh +57 -0
- data/lib/moderation_api/api/account_api.rb +79 -0
- data/lib/moderation_api/api/moderate_api.rb +362 -0
- data/lib/moderation_api/api/queue_actions_api.rb +492 -0
- data/lib/moderation_api/api_client.rb +437 -0
- data/lib/moderation_api/api_error.rb +58 -0
- data/lib/moderation_api/configuration.rb +392 -0
- data/lib/moderation_api/models/account_get200_response.rb +278 -0
- data/lib/moderation_api/models/account_get200_response_current_project.rb +237 -0
- data/lib/moderation_api/models/actions_create_request.rb +374 -0
- data/lib/moderation_api/models/actions_create_request_webhooks_inner.rb +260 -0
- data/lib/moderation_api/models/actions_delete200_response.rb +239 -0
- data/lib/moderation_api/models/actions_execute200_response.rb +258 -0
- data/lib/moderation_api/models/actions_execute_deprecated_request.rb +244 -0
- data/lib/moderation_api/models/actions_execute_request.rb +261 -0
- data/lib/moderation_api/models/actions_get200_response.rb +408 -0
- data/lib/moderation_api/models/actions_get200_response_webhooks_inner.rb +278 -0
- data/lib/moderation_api/models/actions_list200_response_inner.rb +396 -0
- data/lib/moderation_api/models/actions_list200_response_inner_possible_values_inner.rb +222 -0
- data/lib/moderation_api/models/actions_list400_response.rb +248 -0
- data/lib/moderation_api/models/actions_list400_response_issues_inner.rb +221 -0
- data/lib/moderation_api/models/actions_update_request.rb +367 -0
- data/lib/moderation_api/models/moderation_audio_request.rb +302 -0
- data/lib/moderation_api/models/moderation_image200_response.rb +296 -0
- data/lib/moderation_api/models/moderation_image200_response_labels_inner.rb +301 -0
- data/lib/moderation_api/models/moderation_image_request.rb +302 -0
- data/lib/moderation_api/models/moderation_object200_response.rb +368 -0
- data/lib/moderation_api/models/moderation_object200_response_all_of_entities_inner.rb +251 -0
- data/lib/moderation_api/models/moderation_object200_response_all_of_fields_inner.rb +258 -0
- data/lib/moderation_api/models/moderation_object200_response_all_of_labels_inner.rb +284 -0
- data/lib/moderation_api/models/moderation_object_request.rb +301 -0
- data/lib/moderation_api/models/moderation_object_request_value.rb +275 -0
- data/lib/moderation_api/models/moderation_object_request_value_data_value.rb +285 -0
- data/lib/moderation_api/models/moderation_text200_response.rb +488 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_address.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_email.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_name.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw_label_scores.rb +235 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_phone.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_profanity.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_propriety.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_propriety_label_scores.rb +235 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_quality.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_quality_label_scores.rb +245 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_request.rb +240 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_sensitive.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment_label_scores.rb +235 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity.rb +262 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity_label_scores.rb +275 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_url.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_username.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_wordlist.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_wordlists_inner.rb +377 -0
- data/lib/moderation_api/models/moderation_text_request.rb +330 -0
- data/lib/moderation_api/models/moderation_video200_response.rb +265 -0
- data/lib/moderation_api/models/moderation_video_request.rb +302 -0
- data/lib/moderation_api/version.rb +15 -0
- data/lib/moderation_api.rb +93 -0
- data/moderation_api.gemspec +45 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/moderate_api_spec.rb +95 -0
- data/spec/api/queue_actions_api_spec.rb +121 -0
- data/spec/models/account_get200_response_current_project_spec.rb +42 -0
- data/spec/models/account_get200_response_spec.rb +60 -0
- data/spec/models/actions_create_request_spec.rb +98 -0
- data/spec/models/actions_create_request_webhooks_inner_spec.rb +54 -0
- data/spec/models/actions_delete200_response_spec.rb +42 -0
- data/spec/models/actions_execute200_response_spec.rb +48 -0
- data/spec/models/actions_execute_deprecated_request_spec.rb +48 -0
- data/spec/models/actions_execute_request_spec.rb +54 -0
- data/spec/models/actions_get200_response_spec.rb +110 -0
- data/spec/models/actions_get200_response_webhooks_inner_spec.rb +60 -0
- data/spec/models/actions_list200_response_inner_possible_values_inner_spec.rb +36 -0
- data/spec/models/actions_list200_response_inner_spec.rb +104 -0
- data/spec/models/actions_list400_response_issues_inner_spec.rb +36 -0
- data/spec/models/actions_list400_response_spec.rb +48 -0
- data/spec/models/actions_update_request_spec.rb +98 -0
- data/spec/models/moderation_audio_request_spec.rb +66 -0
- data/spec/models/moderation_image200_response_labels_inner_spec.rb +46 -0
- data/spec/models/moderation_image200_response_spec.rb +66 -0
- data/spec/models/moderation_image_request_spec.rb +66 -0
- data/spec/models/moderation_object200_response_all_of_entities_inner_spec.rb +48 -0
- data/spec/models/moderation_object200_response_all_of_fields_inner_spec.rb +48 -0
- data/spec/models/moderation_object200_response_all_of_labels_inner_spec.rb +48 -0
- data/spec/models/moderation_object200_response_spec.rb +90 -0
- data/spec/models/moderation_object_request_spec.rb +66 -0
- data/spec/models/moderation_object_request_value_data_value_spec.rb +52 -0
- data/spec/models/moderation_object_request_value_spec.rb +46 -0
- data/spec/models/moderation_text200_response_all_of_address_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_email_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_name_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_nsfw_label_scores_spec.rb +48 -0
- data/spec/models/moderation_text200_response_all_of_nsfw_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_phone_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_profanity_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_propriety_label_scores_spec.rb +48 -0
- data/spec/models/moderation_text200_response_all_of_propriety_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_quality_label_scores_spec.rb +54 -0
- data/spec/models/moderation_text200_response_all_of_quality_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_request_spec.rb +42 -0
- data/spec/models/moderation_text200_response_all_of_sensitive_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_sentiment_label_scores_spec.rb +48 -0
- data/spec/models/moderation_text200_response_all_of_sentiment_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_toxicity_label_scores_spec.rb +72 -0
- data/spec/models/moderation_text200_response_all_of_toxicity_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_url_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_username_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_wordlist_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_wordlists_inner_spec.rb +94 -0
- data/spec/models/moderation_text200_response_spec.rb +174 -0
- data/spec/models/moderation_text_request_spec.rb +66 -0
- data/spec/models/moderation_video200_response_spec.rb +54 -0
- data/spec/models/moderation_video_request_spec.rb +66 -0
- data/spec/spec_helper.rb +111 -0
- metadata +340 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationImage200ResponseLabelsInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationImage200ResponseLabelsInner do
|
21
|
+
let(:instance) { ModerationAPI::ModerationImage200ResponseLabelsInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationImage200ResponseLabelsInner' do
|
24
|
+
it 'should create an instance of ModerationImage200ResponseLabelsInner' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationImage200ResponseLabelsInner)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "label"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["nudity", "suggestive", "gore", "hate", "violence", "weapon", "smoking", "drugs", "alcohol", "text", "unknown_default_open_api"])
|
34
|
+
# validator.allowable_values.each do |value|
|
35
|
+
# expect { instance.label = value }.not_to raise_error
|
36
|
+
# end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "score"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationImage200Response
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationImage200Response do
|
21
|
+
let(:instance) { ModerationAPI::ModerationImage200Response.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationImage200Response' do
|
24
|
+
it 'should create an instance of ModerationImage200Response' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationImage200Response)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "status"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "request"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "flagged"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "labels"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "content_id"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "texts"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationImageRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationImageRequest do
|
21
|
+
let(:instance) { ModerationAPI::ModerationImageRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationImageRequest' do
|
24
|
+
it 'should create an instance of ModerationImageRequest' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationImageRequest)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "url"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "content_id"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "do_not_store"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "author_id"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "context_id"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "metadata"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationObject200ResponseAllOfEntitiesInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationObject200ResponseAllOfEntitiesInner do
|
21
|
+
let(:instance) { ModerationAPI::ModerationObject200ResponseAllOfEntitiesInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationObject200ResponseAllOfEntitiesInner' do
|
24
|
+
it 'should create an instance of ModerationObject200ResponseAllOfEntitiesInner' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationObject200ResponseAllOfEntitiesInner)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "model"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "matches"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "score"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationObject200ResponseAllOfFieldsInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationObject200ResponseAllOfFieldsInner do
|
21
|
+
let(:instance) { ModerationAPI::ModerationObject200ResponseAllOfFieldsInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationObject200ResponseAllOfFieldsInner' do
|
24
|
+
it 'should create an instance of ModerationObject200ResponseAllOfFieldsInner' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationObject200ResponseAllOfFieldsInner)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "key"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "flagged"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "flagged_by"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationObject200ResponseAllOfLabelsInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationObject200ResponseAllOfLabelsInner do
|
21
|
+
let(:instance) { ModerationAPI::ModerationObject200ResponseAllOfLabelsInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationObject200ResponseAllOfLabelsInner' do
|
24
|
+
it 'should create an instance of ModerationObject200ResponseAllOfLabelsInner' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationObject200ResponseAllOfLabelsInner)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "label"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "model"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "score"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationObject200Response
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationObject200Response do
|
21
|
+
let(:instance) { ModerationAPI::ModerationObject200Response.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationObject200Response' do
|
24
|
+
it 'should create an instance of ModerationObject200Response' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationObject200Response)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "status"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "request"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "flagged"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "unicode_spoofing"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "data_found"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "labels"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "entities"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "fields"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "content_id"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "wordlists"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationObjectRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationObjectRequest do
|
21
|
+
let(:instance) { ModerationAPI::ModerationObjectRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationObjectRequest' do
|
24
|
+
it 'should create an instance of ModerationObjectRequest' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationObjectRequest)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "value"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "content_id"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "do_not_store"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "author_id"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "context_id"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "metadata"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationObjectRequestValueDataValue
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationObjectRequestValueDataValue do
|
21
|
+
let(:instance) { ModerationAPI::ModerationObjectRequestValueDataValue.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationObjectRequestValueDataValue' do
|
24
|
+
it 'should create an instance of ModerationObjectRequestValueDataValue' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationObjectRequestValueDataValue)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "type"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text", "image", "video", "audio", "unknown_default_open_api"])
|
34
|
+
# validator.allowable_values.each do |value|
|
35
|
+
# expect { instance.type = value }.not_to raise_error
|
36
|
+
# end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "value"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "model_ids"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationObjectRequestValue
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationObjectRequestValue do
|
21
|
+
let(:instance) { ModerationAPI::ModerationObjectRequestValue.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationObjectRequestValue' do
|
24
|
+
it 'should create an instance of ModerationObjectRequestValue' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationObjectRequestValue)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "type"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["profile", "event", "product", "object", "unknown_default_open_api"])
|
34
|
+
# validator.allowable_values.each do |value|
|
35
|
+
# expect { instance.type = value }.not_to raise_error
|
36
|
+
# end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "data"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
=begin
|
2
|
+
#Moderation API
|
3
|
+
|
4
|
+
#API for automated content moderation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for ModerationAPI::ModerationText200ResponseAllOfAddress
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe ModerationAPI::ModerationText200ResponseAllOfAddress do
|
21
|
+
let(:instance) { ModerationAPI::ModerationText200ResponseAllOfAddress.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ModerationText200ResponseAllOfAddress' do
|
24
|
+
it 'should create an instance of ModerationText200ResponseAllOfAddress' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(ModerationAPI::ModerationText200ResponseAllOfAddress)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "mode"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["NORMAL", "SUSPICIOUS", "PARANOID", "unknown_default_open_api"])
|
34
|
+
# validator.allowable_values.each do |value|
|
35
|
+
# expect { instance.mode = value }.not_to raise_error
|
36
|
+
# end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "found"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "matches"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "components"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "error"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "warning"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|