azure_cognitiveservices_autosuggest 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_autosuggest.rb +46 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/autosuggest_client.rb +700 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/action.rb +380 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/answer.rb +131 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/creative_work.rb +371 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/error.rb +109 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/error_code.rb +20 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/error_response.rb +154 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/identifiable.rb +62 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/query_context.rb +136 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/response.rb +150 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/response_base.rb +55 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/response_format.rb +16 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/safe_search.rb +17 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/scenario_type.rb +21 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/search_action.rb +407 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/search_kind.rb +20 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/search_results_answer.rb +146 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/suggestions.rb +166 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/suggestions_suggestion_group.rb +80 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/models/thing.rb +144 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_autosuggest/module_definition.rb +9 -0
  25. data/lib/azure_cognitiveservices_autosuggest.rb +6 -0
  26. data/lib/module_definition.rb +7 -0
  27. data/lib/profiles/latest/autosuggest_latest_profile_client.rb +38 -0
  28. data/lib/profiles/latest/autosuggest_module_definition.rb +8 -0
  29. data/lib/profiles/latest/modules/autosuggest_profile_module.rb +133 -0
  30. data/lib/version.rb +7 -0
  31. metadata +148 -0
@@ -0,0 +1,20 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Autosuggest::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for SearchKind
10
+ #
11
+ module SearchKind
12
+ WebSearch = "WebSearch"
13
+ HistorySearch = "HistorySearch"
14
+ DocumentSearch = "DocumentSearch"
15
+ TagSearch = "TagSearch"
16
+ LocationSearch = "LocationSearch"
17
+ CustomSearch = "CustomSearch"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,146 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Autosuggest::V1_0
7
+ module Models
8
+ #
9
+ # Defines a search result answer.
10
+ #
11
+ class SearchResultsAnswer < Answer
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "SearchResultsAnswer"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [QueryContext]
23
+ attr_accessor :query_context
24
+
25
+
26
+ #
27
+ # Mapper for SearchResultsAnswer class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'SearchResultsAnswer',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'SearchResultsAnswer',
38
+ model_properties: {
39
+ _type: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: '_type',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ read_link: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'readLink',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ web_search_url: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'webSearchUrl',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ potential_action: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'potentialAction',
79
+ type: {
80
+ name: 'Sequence',
81
+ element: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'ActionElementType',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'Action'
88
+ }
89
+ }
90
+ }
91
+ },
92
+ immediate_action: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'immediateAction',
97
+ type: {
98
+ name: 'Sequence',
99
+ element: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'ActionElementType',
103
+ type: {
104
+ name: 'Composite',
105
+ class_name: 'Action'
106
+ }
107
+ }
108
+ }
109
+ },
110
+ preferred_clickthrough_url: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ read_only: true,
114
+ serialized_name: 'preferredClickthroughUrl',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ adaptive_card: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ read_only: true,
123
+ serialized_name: 'adaptiveCard',
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ },
128
+ query_context: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ read_only: true,
132
+ serialized_name: 'queryContext',
133
+ type: {
134
+ name: 'Composite',
135
+ polymorphic_discriminator: '_type',
136
+ uber_parent: 'QueryContext',
137
+ class_name: 'QueryContext'
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,166 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Autosuggest::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class Suggestions < SearchResultsAnswer
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Suggestions"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [Array<SuggestionsSuggestionGroup>]
24
+ attr_accessor :suggestion_groups
25
+
26
+
27
+ #
28
+ # Mapper for Suggestions class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'Suggestions',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Suggestions',
39
+ model_properties: {
40
+ _type: {
41
+ client_side_validation: true,
42
+ required: true,
43
+ serialized_name: '_type',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'id',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ read_link: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'readLink',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ web_search_url: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'webSearchUrl',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ potential_action: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'potentialAction',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'ActionElementType',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'Action'
89
+ }
90
+ }
91
+ }
92
+ },
93
+ immediate_action: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'immediateAction',
98
+ type: {
99
+ name: 'Sequence',
100
+ element: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ serialized_name: 'ActionElementType',
104
+ type: {
105
+ name: 'Composite',
106
+ class_name: 'Action'
107
+ }
108
+ }
109
+ }
110
+ },
111
+ preferred_clickthrough_url: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'preferredClickthroughUrl',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ adaptive_card: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'adaptiveCard',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ query_context: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'queryContext',
134
+ type: {
135
+ name: 'Composite',
136
+ polymorphic_discriminator: '_type',
137
+ uber_parent: 'QueryContext',
138
+ class_name: 'QueryContext'
139
+ }
140
+ },
141
+ suggestion_groups: {
142
+ client_side_validation: true,
143
+ required: true,
144
+ serialized_name: 'suggestionGroups',
145
+ type: {
146
+ name: 'Sequence',
147
+ element: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ serialized_name: 'SuggestionsSuggestionGroupElementType',
151
+ type: {
152
+ name: 'Composite',
153
+ polymorphic_discriminator: '_type',
154
+ uber_parent: 'SuggestionsSuggestionGroup',
155
+ class_name: 'SuggestionsSuggestionGroup'
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ }
163
+ end
164
+ end
165
+ end
166
+ end
@@ -0,0 +1,80 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Autosuggest::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class SuggestionsSuggestionGroup
13
+
14
+ include MsRestAzure
15
+
16
+ @@discriminatorMap = Hash.new
17
+
18
+ def initialize
19
+ @_type = "Suggestions/SuggestionGroup"
20
+ end
21
+
22
+ attr_accessor :_type
23
+
24
+ # @return [ScenarioType] Possible values include: 'Unknown', 'Web',
25
+ # 'StoreApps', 'SearchHistory', 'PersonalSearchDocuments',
26
+ # 'PersonalSearchTags', 'Custom'. Default value: 'Unknown' .
27
+ attr_accessor :name
28
+
29
+ # @return [Array<SearchAction>]
30
+ attr_accessor :search_suggestions
31
+
32
+
33
+ #
34
+ # Mapper for SuggestionsSuggestionGroup class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'Suggestions/SuggestionGroup',
42
+ type: {
43
+ name: 'Composite',
44
+ polymorphic_discriminator: '_type',
45
+ uber_parent: 'SuggestionsSuggestionGroup',
46
+ class_name: 'SuggestionsSuggestionGroup',
47
+ model_properties: {
48
+ name: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: 'name',
52
+ default_value: 'Unknown',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ search_suggestions: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'searchSuggestions',
61
+ type: {
62
+ name: 'Sequence',
63
+ element: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'SearchActionElementType',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'SearchAction'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,144 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Autosuggest::V1_0
7
+ module Models
8
+ #
9
+ # Defines a thing.
10
+ #
11
+ class Thing < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Thing"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The URL to get more information about the thing
23
+ # represented by this object.
24
+ attr_accessor :url
25
+
26
+
27
+ #
28
+ # Mapper for Thing class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'Thing',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Thing',
39
+ model_properties: {
40
+ _type: {
41
+ client_side_validation: true,
42
+ required: true,
43
+ serialized_name: '_type',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'id',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ read_link: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'readLink',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ web_search_url: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'webSearchUrl',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ potential_action: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'potentialAction',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'ActionElementType',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'Action'
89
+ }
90
+ }
91
+ }
92
+ },
93
+ immediate_action: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'immediateAction',
98
+ type: {
99
+ name: 'Sequence',
100
+ element: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ serialized_name: 'ActionElementType',
104
+ type: {
105
+ name: 'Composite',
106
+ class_name: 'Action'
107
+ }
108
+ }
109
+ }
110
+ },
111
+ preferred_clickthrough_url: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'preferredClickthroughUrl',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ adaptive_card: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'adaptiveCard',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ url: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'url',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ end
142
+ end
143
+ end
144
+ end