Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Review

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb

Overview

The Review object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#callback_endpointString

Returns The callback endpoint.

Returns:

  • (String)

    The callback endpoint.



43
44
45
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 43

def callback_endpoint
  @callback_endpoint
end

#contentString

Returns The content value.

Returns:

  • (String)

    The content value.



37
38
39
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 37

def content
  @content
end

#content_idString

Returns Id of the content.

Returns:

  • (String)

    Id of the content.



40
41
42
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 40

def content_id
  @content_id
end

#created_byString

Returns The reviewer name.

Returns:

  • (String)

    The reviewer name.



28
29
30
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 28

def created_by
  @created_by
end

#metadataArray<KeyValuePair>

Returns Array of KeyValue.

Returns:



31
32
33
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 31

def 
  
end

#review_idString

Returns Id of the review.

Returns:

  • (String)

    Id of the review.



16
17
18
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 16

def review_id
  @review_id
end

#reviewer_result_tagsArray<KeyValuePair>

Returns Array of KeyValue with Reviewer set Tags.

Returns:

  • (Array<KeyValuePair>)

    Array of KeyValue with Reviewer set Tags.



25
26
27
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 25

def reviewer_result_tags
  @reviewer_result_tags
end

#statusString

Returns The status string (<Pending, Complete>).

Returns:

  • (String)

    The status string (<Pending, Complete>).



22
23
24
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 22

def status
  @status
end

#sub_teamString

Returns Name of the subteam.

Returns:

  • (String)

    Name of the subteam.



19
20
21
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 19

def sub_team
  @sub_team
end

#typeString

Returns The type of content.

Returns:

  • (String)

    The type of content.



34
35
36
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 34

def type
  @type
end

Class Method Details

.mapperObject

Mapper for Review class as Ruby Hash. This will be used for serialization/deserialization.



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb', line 50

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Review',
    type: {
      name: 'Composite',
      class_name: 'Review',
      model_properties: {
        review_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReviewId',
          type: {
            name: 'String'
          }
        },
        sub_team: {
          client_side_validation: true,
          required: false,
          serialized_name: 'SubTeam',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Status',
          type: {
            name: 'String'
          }
        },
        reviewer_result_tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReviewerResultTags',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'KeyValuePairElementType',
                type: {
                  name: 'Composite',
                  class_name: 'KeyValuePair'
                }
            }
          }
        },
        created_by: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CreatedBy',
          type: {
            name: 'String'
          }
        },
        metadata: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Metadata',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'KeyValuePairElementType',
                type: {
                  name: 'Composite',
                  class_name: 'KeyValuePair'
                }
            }
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Type',
          type: {
            name: 'String'
          }
        },
        content: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Content',
          type: {
            name: 'String'
          }
        },
        content_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ContentId',
          type: {
            name: 'String'
          }
        },
        callback_endpoint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CallbackEndpoint',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end