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,55 @@
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
+ # Response base
10
+ #
11
+ class ResponseBase
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["SearchAction"] = "SearchAction"
17
+ @@discriminatorMap["Suggestions"] = "Suggestions"
18
+ @@discriminatorMap["SearchResultsAnswer"] = "SearchResultsAnswer"
19
+ @@discriminatorMap["Answer"] = "Answer"
20
+ @@discriminatorMap["Thing"] = "Thing"
21
+ @@discriminatorMap["Action"] = "Action"
22
+ @@discriminatorMap["Response"] = "Response"
23
+ @@discriminatorMap["Identifiable"] = "Identifiable"
24
+ @@discriminatorMap["ErrorResponse"] = "ErrorResponse"
25
+ @@discriminatorMap["CreativeWork"] = "CreativeWork"
26
+
27
+ def initialize
28
+ @_type = "ResponseBase"
29
+ end
30
+
31
+ attr_accessor :_type
32
+
33
+
34
+ #
35
+ # Mapper for ResponseBase class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'ResponseBase',
43
+ type: {
44
+ name: 'Composite',
45
+ polymorphic_discriminator: '_type',
46
+ uber_parent: 'ResponseBase',
47
+ class_name: 'ResponseBase',
48
+ model_properties: {
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,16 @@
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 ResponseFormat
10
+ #
11
+ module ResponseFormat
12
+ Json = "Json"
13
+ JsonLd = "JsonLd"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
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 SafeSearch
10
+ #
11
+ module SafeSearch
12
+ Off = "Off"
13
+ Moderate = "Moderate"
14
+ Strict = "Strict"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,21 @@
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 ScenarioType
10
+ #
11
+ module ScenarioType
12
+ Unknown = "Unknown"
13
+ Web = "Web"
14
+ StoreApps = "StoreApps"
15
+ SearchHistory = "SearchHistory"
16
+ PersonalSearchDocuments = "PersonalSearchDocuments"
17
+ PersonalSearchTags = "PersonalSearchTags"
18
+ Custom = "Custom"
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,407 @@
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 SearchAction < Action
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "SearchAction"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String]
24
+ attr_accessor :display_text
25
+
26
+ # @return [String]
27
+ attr_accessor :query
28
+
29
+ # @return [SearchKind] Possible values include: 'WebSearch',
30
+ # 'HistorySearch', 'DocumentSearch', 'TagSearch', 'LocationSearch',
31
+ # 'CustomSearch'. Default value: 'WebSearch' .
32
+ attr_accessor :search_kind
33
+
34
+
35
+ #
36
+ # Mapper for SearchAction class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'SearchAction',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'SearchAction',
47
+ model_properties: {
48
+ _type: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: '_type',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ id: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'id',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ read_link: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'readLink',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ web_search_url: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'webSearchUrl',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ potential_action: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'potentialAction',
88
+ type: {
89
+ name: 'Sequence',
90
+ element: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'ActionElementType',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'Action'
97
+ }
98
+ }
99
+ }
100
+ },
101
+ immediate_action: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'immediateAction',
106
+ type: {
107
+ name: 'Sequence',
108
+ element: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'ActionElementType',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'Action'
115
+ }
116
+ }
117
+ }
118
+ },
119
+ preferred_clickthrough_url: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ read_only: true,
123
+ serialized_name: 'preferredClickthroughUrl',
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ },
128
+ adaptive_card: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ read_only: true,
132
+ serialized_name: 'adaptiveCard',
133
+ type: {
134
+ name: 'String'
135
+ }
136
+ },
137
+ url: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ read_only: true,
141
+ serialized_name: 'url',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ thumbnail_url: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ read_only: true,
150
+ serialized_name: 'thumbnailUrl',
151
+ type: {
152
+ name: 'String'
153
+ }
154
+ },
155
+ about: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ read_only: true,
159
+ serialized_name: 'about',
160
+ type: {
161
+ name: 'Sequence',
162
+ element: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ serialized_name: 'ThingElementType',
166
+ type: {
167
+ name: 'Composite',
168
+ class_name: 'Thing'
169
+ }
170
+ }
171
+ }
172
+ },
173
+ mentions: {
174
+ client_side_validation: true,
175
+ required: false,
176
+ read_only: true,
177
+ serialized_name: 'mentions',
178
+ type: {
179
+ name: 'Sequence',
180
+ element: {
181
+ client_side_validation: true,
182
+ required: false,
183
+ serialized_name: 'ThingElementType',
184
+ type: {
185
+ name: 'Composite',
186
+ class_name: 'Thing'
187
+ }
188
+ }
189
+ }
190
+ },
191
+ provider: {
192
+ client_side_validation: true,
193
+ required: false,
194
+ read_only: true,
195
+ serialized_name: 'provider',
196
+ type: {
197
+ name: 'Sequence',
198
+ element: {
199
+ client_side_validation: true,
200
+ required: false,
201
+ serialized_name: 'ThingElementType',
202
+ type: {
203
+ name: 'Composite',
204
+ class_name: 'Thing'
205
+ }
206
+ }
207
+ }
208
+ },
209
+ creator: {
210
+ client_side_validation: true,
211
+ required: false,
212
+ read_only: true,
213
+ serialized_name: 'creator',
214
+ type: {
215
+ name: 'Composite',
216
+ class_name: 'Thing'
217
+ }
218
+ },
219
+ text: {
220
+ client_side_validation: true,
221
+ required: false,
222
+ read_only: true,
223
+ serialized_name: 'text',
224
+ type: {
225
+ name: 'String'
226
+ }
227
+ },
228
+ discussion_url: {
229
+ client_side_validation: true,
230
+ required: false,
231
+ read_only: true,
232
+ serialized_name: 'discussionUrl',
233
+ type: {
234
+ name: 'String'
235
+ }
236
+ },
237
+ comment_count: {
238
+ client_side_validation: true,
239
+ required: false,
240
+ read_only: true,
241
+ serialized_name: 'commentCount',
242
+ type: {
243
+ name: 'Number'
244
+ }
245
+ },
246
+ main_entity: {
247
+ client_side_validation: true,
248
+ required: false,
249
+ read_only: true,
250
+ serialized_name: 'mainEntity',
251
+ type: {
252
+ name: 'Composite',
253
+ class_name: 'Thing'
254
+ }
255
+ },
256
+ head_line: {
257
+ client_side_validation: true,
258
+ required: false,
259
+ read_only: true,
260
+ serialized_name: 'headLine',
261
+ type: {
262
+ name: 'String'
263
+ }
264
+ },
265
+ copyright_holder: {
266
+ client_side_validation: true,
267
+ required: false,
268
+ read_only: true,
269
+ serialized_name: 'copyrightHolder',
270
+ type: {
271
+ name: 'Composite',
272
+ class_name: 'Thing'
273
+ }
274
+ },
275
+ copyright_year: {
276
+ client_side_validation: true,
277
+ required: false,
278
+ read_only: true,
279
+ serialized_name: 'copyrightYear',
280
+ type: {
281
+ name: 'Number'
282
+ }
283
+ },
284
+ disclaimer: {
285
+ client_side_validation: true,
286
+ required: false,
287
+ read_only: true,
288
+ serialized_name: 'disclaimer',
289
+ type: {
290
+ name: 'String'
291
+ }
292
+ },
293
+ is_accessible_for_free: {
294
+ client_side_validation: true,
295
+ required: false,
296
+ read_only: true,
297
+ serialized_name: 'isAccessibleForFree',
298
+ type: {
299
+ name: 'Boolean'
300
+ }
301
+ },
302
+ genre: {
303
+ client_side_validation: true,
304
+ required: false,
305
+ read_only: true,
306
+ serialized_name: 'genre',
307
+ type: {
308
+ name: 'Sequence',
309
+ element: {
310
+ client_side_validation: true,
311
+ required: false,
312
+ serialized_name: 'StringElementType',
313
+ type: {
314
+ name: 'String'
315
+ }
316
+ }
317
+ }
318
+ },
319
+ is_family_friendly: {
320
+ client_side_validation: true,
321
+ required: false,
322
+ read_only: true,
323
+ serialized_name: 'isFamilyFriendly',
324
+ type: {
325
+ name: 'Boolean'
326
+ }
327
+ },
328
+ result: {
329
+ client_side_validation: true,
330
+ required: false,
331
+ read_only: true,
332
+ serialized_name: 'result',
333
+ type: {
334
+ name: 'Sequence',
335
+ element: {
336
+ client_side_validation: true,
337
+ required: false,
338
+ serialized_name: 'ThingElementType',
339
+ type: {
340
+ name: 'Composite',
341
+ class_name: 'Thing'
342
+ }
343
+ }
344
+ }
345
+ },
346
+ display_name: {
347
+ client_side_validation: true,
348
+ required: false,
349
+ read_only: true,
350
+ serialized_name: 'displayName',
351
+ type: {
352
+ name: 'String'
353
+ }
354
+ },
355
+ is_top_action: {
356
+ client_side_validation: true,
357
+ required: false,
358
+ read_only: true,
359
+ serialized_name: 'isTopAction',
360
+ type: {
361
+ name: 'Boolean'
362
+ }
363
+ },
364
+ service_url: {
365
+ client_side_validation: true,
366
+ required: false,
367
+ read_only: true,
368
+ serialized_name: 'serviceUrl',
369
+ type: {
370
+ name: 'String'
371
+ }
372
+ },
373
+ display_text: {
374
+ client_side_validation: true,
375
+ required: false,
376
+ read_only: true,
377
+ serialized_name: 'displayText',
378
+ type: {
379
+ name: 'String'
380
+ }
381
+ },
382
+ query: {
383
+ client_side_validation: true,
384
+ required: false,
385
+ read_only: true,
386
+ serialized_name: 'query',
387
+ type: {
388
+ name: 'String'
389
+ }
390
+ },
391
+ search_kind: {
392
+ client_side_validation: true,
393
+ required: false,
394
+ read_only: true,
395
+ serialized_name: 'searchKind',
396
+ default_value: 'WebSearch',
397
+ type: {
398
+ name: 'String'
399
+ }
400
+ }
401
+ }
402
+ }
403
+ }
404
+ end
405
+ end
406
+ end
407
+ end