Class: Azure::CognitiveServices::ImageSearch::V1_0::Models::PivotSuggestions
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ImageSearch::V1_0::Models::PivotSuggestions
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_imagesearch/models/pivot_suggestions.rb
Overview
Defines the pivot segment.
Instance Attribute Summary collapse
-
#pivot ⇒ String
The segment from the original query to pivot on.
-
#suggestions ⇒ Array<Query>
A list of suggested queries for the pivot.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PivotSuggestions class as Ruby Hash.
Instance Attribute Details
#pivot ⇒ String
Returns The segment from the original query to pivot on.
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/pivot_suggestions.rb', line 16 def pivot @pivot end |
#suggestions ⇒ Array<Query>
Returns A list of suggested queries for the pivot.
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/pivot_suggestions.rb', line 19 def suggestions @suggestions end |
Class Method Details
.mapper ⇒ Object
Mapper for PivotSuggestions 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 55 56 57 58 59 60 61 62 63 |
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/pivot_suggestions.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PivotSuggestions', type: { name: 'Composite', class_name: 'PivotSuggestions', model_properties: { pivot: { client_side_validation: true, required: true, serialized_name: 'pivot', type: { name: 'String' } }, suggestions: { client_side_validation: true, required: true, serialized_name: 'suggestions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'QueryElementType', type: { name: 'Composite', class_name: 'Query' } } } } } } } end |