Class: Azure::CognitiveServices::ImageSearch::V1_0::Models::PropertiesItem

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

Overview

Defines an item.

Direct Known Subclasses

Rating

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePropertiesItem

Returns a new instance of PropertiesItem.



19
20
21
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/properties_item.rb', line 19

def initialize
  @_type = "Properties/Item"
end

Instance Attribute Details

#_typeObject

Returns the value of attribute _type.



23
24
25
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/properties_item.rb', line 23

def _type
  @_type
end

#textString

Returns Text representation of an item.

Returns:

  • (String)

    Text representation of an item.



26
27
28
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/properties_item.rb', line 26

def text
  @text
end

Class Method Details

.mapperObject

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



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/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