class Azure::CognitiveServices::ContentModerator::V1_0::Models::SSN

Detected SSN details.

Attributes

index[RW]

@return [Integer] Index(Location) of the SSN in the input text content.

text[RW]

@return [String] Detected SSN in the input text content.

Private Class Methods

mapper() click to toggle source

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

# File lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ssn.rb, line 26
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SSN',
    type: {
      name: 'Composite',
      class_name: 'SSN',
      model_properties: {
        text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Text',
          type: {
            name: 'String'
          }
        },
        index: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Index',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end