Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Match

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

Overview

The match details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#labelString

Returns The label.

Returns:

  • (String)

    The label.



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

def label
  @label
end

#match_idInteger

Returns The match id.

Returns:

  • (Integer)

    The match id.



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

def match_id
  @match_id
end

#scoreFloat

Returns Confidence score of the image match.

Returns:

  • (Float)

    Confidence score of the image match.



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

def score
  @score
end

#sourceString

Returns The source.

Returns:

  • (String)

    The source.



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

def source
  @source
end

#tagsArray<Integer>

Returns The tags for match details.

Returns:

  • (Array<Integer>)

    The tags for match details.



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

def tags
  @tags
end

Class Method Details

.mapperObject

Mapper for Match 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
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Match',
    type: {
      name: 'Composite',
      class_name: 'Match',
      model_properties: {
        score: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Score',
          type: {
            name: 'Double'
          }
        },
        match_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MatchId',
          type: {
            name: 'Number'
          }
        },
        source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Source',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Tags',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'NumberElementType',
                type: {
                  name: 'Number'
                }
            }
          }
        },
        label: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Label',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end