class Azure::CognitiveServices::ContentModerator::V1_0::Models::IPA

IP Address details.

Attributes

index[RW]

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

sub_type[RW]

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

text[RW]

@return [String] Detected IP Address.

Private Class Methods

mapper() click to toggle source

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

# File lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ipa.rb, line 30
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IPA',
    type: {
      name: 'Composite',
      class_name: 'IPA',
      model_properties: {
        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