Class: Azure::CognitiveServices::LuisAuthoring::V2_0::Models::FeatureInfoObject

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb

Overview

The base class Features-related response objects inherit from.

Direct Known Subclasses

PatternFeatureInfo, PhraseListFeatureInfo

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idInteger

Returns A six-digit ID used for Features.

Returns:

  • (Integer)

    A six-digit ID used for Features.



16
17
18
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb', line 16

def id
  @id
end

#is_activeBoolean

Returns Indicates if the feature is enabled.

Returns:

  • (Boolean)

    Indicates if the feature is enabled.



22
23
24
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb', line 22

def is_active
  @is_active
end

#nameString

Returns The name of the Feature.

Returns:

  • (String)

    The name of the Feature.



19
20
21
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb', line 19

def name
  @name
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FeatureInfoObject',
    type: {
      name: 'Composite',
      class_name: 'FeatureInfoObject',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'Number'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        is_active: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isActive',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end