class Azure::CognitiveServices::VisualSearch::V1_0::Models::PropertiesItem

Defines an item.

Attributes

_type[RW]
text[RW]

@return [String] Text representation of an item.

Private Class Methods

mapper() click to toggle source

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

# File lib/1.0/generated/azure_cognitiveservices_visualsearch/models/properties_item.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Properties/Item',
    type: {
      name: 'Composite',
      polymorphic_discriminator: '_type',
      uber_parent: 'PropertiesItem',
      class_name: 'PropertiesItem',
      model_properties: {
        text: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'text',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/1.0/generated/azure_cognitiveservices_visualsearch/models/properties_item.rb, line 19
def initialize
  @_type = "Properties/Item"
end