Class: Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PatternRule
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PatternRule
- Includes:
- MsRestAzure
- Defined in:
- lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule.rb
Overview
Pattern
Instance Attribute Summary collapse
-
#intent ⇒ String
The intent’s name where the pattern belongs to.
-
#pattern ⇒ String
The pattern text.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PatternRule class as Ruby Hash.
Instance Attribute Details
#intent ⇒ String
Returns The intent’s name where the pattern belongs to.
19 20 21 |
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule.rb', line 19 def intent @intent end |
#pattern ⇒ String
Returns The pattern text.
16 17 18 |
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule.rb', line 16 def pattern @pattern end |
Class Method Details
.mapper ⇒ Object
Mapper for PatternRule class as Ruby Hash. This will be used for serialization/deserialization.
26 27 28 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 |
# File 'lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PatternRule', type: { name: 'Composite', class_name: 'PatternRule', model_properties: { pattern: { client_side_validation: true, required: false, serialized_name: 'pattern', type: { name: 'String' } }, intent: { client_side_validation: true, required: false, serialized_name: 'intent', type: { name: 'String' } } } } } end |