Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb
Overview
The response for a Match request.
Instance Attribute Summary collapse
-
#cache_id ⇒ String
The cache id.
-
#is_match ⇒ Boolean
Indicates if there is a match.
-
#matches ⇒ Array<Match>
The match details.
-
#status ⇒ Status
The evaluate status.
-
#tracking_id ⇒ String
The tracking id.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MatchResponse class as Ruby Hash.
Instance Attribute Details
#cache_id ⇒ String
Returns The cache id.
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb', line 19 def cache_id @cache_id end |
#is_match ⇒ Boolean
Returns Indicates if there is a match.
22 23 24 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb', line 22 def is_match @is_match end |
#matches ⇒ Array<Match>
Returns The match details.
25 26 27 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb', line 25 def matches @matches end |
#status ⇒ Status
Returns The evaluate status.
28 29 30 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb', line 28 def status @status end |
#tracking_id ⇒ String
Returns The tracking id.
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb', line 16 def tracking_id @tracking_id end |
Class Method Details
.mapper ⇒ Object
Mapper for MatchResponse class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MatchResponse', type: { name: 'Composite', class_name: 'MatchResponse', model_properties: { tracking_id: { client_side_validation: true, required: false, serialized_name: 'TrackingId', type: { name: 'String' } }, cache_id: { client_side_validation: true, required: false, serialized_name: 'CacheID', type: { name: 'String' } }, is_match: { client_side_validation: true, required: false, serialized_name: 'IsMatch', type: { name: 'Boolean' } }, matches: { client_side_validation: true, required: false, serialized_name: 'Matches', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MatchElementType', type: { name: 'Composite', class_name: 'Match' } } } }, status: { client_side_validation: true, required: false, serialized_name: 'Status', type: { name: 'Composite', class_name: 'Status' } } } } } end |