Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Body
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Body
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#description ⇒ String
Description of the list.
-
#metadata ⇒ BodyMetadata
Metadata of the list.
-
#name ⇒ String
Name of the list.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Body class as Ruby Hash.
Instance Attribute Details
#description ⇒ String
20 21 22 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb', line 20 def description @description end |
#metadata ⇒ BodyMetadata
23 24 25 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb', line 23 def end |
#name ⇒ String
17 18 19 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb', line 17 def name @name end |
Class Method Details
.mapper ⇒ Object
Mapper for Body class as Ruby Hash. This will be used for serialization/deserialization.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb', line 30 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'body', type: { name: 'Composite', class_name: 'Body', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'Name', type: { name: 'String' } }, description: { client_side_validation: true, required: false, serialized_name: 'Description', type: { name: 'String' } }, metadata: { client_side_validation: true, required: false, serialized_name: 'Metadata', type: { name: 'Composite', class_name: 'BodyMetadata' } } } } } end |