Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Content
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Content
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/content.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#content_value ⇒ String
Content to evaluate for a job.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Content class as Ruby Hash.
Instance Attribute Details
#content_value ⇒ String
Returns Content to evaluate for a job.
17 18 19 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/content.rb', line 17 def content_value @content_value end |
Class Method Details
.mapper ⇒ Object
Mapper for Content class as Ruby Hash. This will be used for serialization/deserialization.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/content.rb', line 24 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Content', type: { name: 'Composite', class_name: 'Content', model_properties: { content_value: { client_side_validation: true, required: true, serialized_name: 'ContentValue', type: { name: 'String' } } } } } end |