class Azure::CognitiveServices::ContentModerator::V1_0::Models::Email

Email Address details.

Attributes

detected[RW]

@return [String] Detected Email Address from the input text content.

index[RW]

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

sub_type[RW]

@return [String] Subtype of the detected Email Address.

text[RW]

@return [String] Email Address in the input text content.

Private Class Methods

mapper() click to toggle source

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

# File lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Email',
    type: {
      name: 'Composite',
      class_name: 'Email',
      model_properties: {
        detected: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Detected',
          type: {
            name: 'String'
          }
        },
        sub_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'SubType',
          type: {
            name: 'String'
          }
        },
        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