Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#cache_idString

Returns The cache id.

Returns:

  • (String)

    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_matchBoolean

Returns Indicates if there is a match.

Returns:

  • (Boolean)

    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

#matchesArray<Match>

Returns The match details.

Returns:

  • (Array<Match>)

    The match details.



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

def matches
  @matches
end

#statusStatus

Returns The evaluate status.

Returns:

  • (Status)

    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_idString

Returns The tracking id.

Returns:

  • (String)

    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

.mapperObject

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