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,371 @@
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
+ # The most generic kind of creative work, including books, movies,
10
+ # photographs, software programs, etc.
11
+ #
12
+ class CreativeWork < Thing
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "CreativeWork"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] The URL to a thumbnail of the item.
24
+ attr_accessor :thumbnail_url
25
+
26
+ # @return [Array<Thing>] For internal use only.
27
+ attr_accessor :about
28
+
29
+ # @return [Array<Thing>] For internal use only.
30
+ attr_accessor :mentions
31
+
32
+ # @return [Array<Thing>] The source of the creative work.
33
+ attr_accessor :provider
34
+
35
+ # @return [Thing]
36
+ attr_accessor :creator
37
+
38
+ # @return [String] Text content of this creative work
39
+ attr_accessor :text
40
+
41
+ # @return [String]
42
+ attr_accessor :discussion_url
43
+
44
+ # @return [Integer]
45
+ attr_accessor :comment_count
46
+
47
+ # @return [Thing]
48
+ attr_accessor :main_entity
49
+
50
+ # @return [String]
51
+ attr_accessor :head_line
52
+
53
+ # @return [Thing]
54
+ attr_accessor :copyright_holder
55
+
56
+ # @return [Integer]
57
+ attr_accessor :copyright_year
58
+
59
+ # @return [String]
60
+ attr_accessor :disclaimer
61
+
62
+ # @return [Boolean]
63
+ attr_accessor :is_accessible_for_free
64
+
65
+ # @return [Array<String>]
66
+ attr_accessor :genre
67
+
68
+ # @return [Boolean]
69
+ attr_accessor :is_family_friendly
70
+
71
+
72
+ #
73
+ # Mapper for CreativeWork class as Ruby Hash.
74
+ # This will be used for serialization/deserialization.
75
+ #
76
+ def self.mapper()
77
+ {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'CreativeWork',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'CreativeWork',
84
+ model_properties: {
85
+ _type: {
86
+ client_side_validation: true,
87
+ required: true,
88
+ serialized_name: '_type',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ id: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'id',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ read_link: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'readLink',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ web_search_url: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'webSearchUrl',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ potential_action: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'potentialAction',
125
+ type: {
126
+ name: 'Sequence',
127
+ element: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ serialized_name: 'ActionElementType',
131
+ type: {
132
+ name: 'Composite',
133
+ class_name: 'Action'
134
+ }
135
+ }
136
+ }
137
+ },
138
+ immediate_action: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ read_only: true,
142
+ serialized_name: 'immediateAction',
143
+ type: {
144
+ name: 'Sequence',
145
+ element: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'ActionElementType',
149
+ type: {
150
+ name: 'Composite',
151
+ class_name: 'Action'
152
+ }
153
+ }
154
+ }
155
+ },
156
+ preferred_clickthrough_url: {
157
+ client_side_validation: true,
158
+ required: false,
159
+ read_only: true,
160
+ serialized_name: 'preferredClickthroughUrl',
161
+ type: {
162
+ name: 'String'
163
+ }
164
+ },
165
+ adaptive_card: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ read_only: true,
169
+ serialized_name: 'adaptiveCard',
170
+ type: {
171
+ name: 'String'
172
+ }
173
+ },
174
+ url: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ read_only: true,
178
+ serialized_name: 'url',
179
+ type: {
180
+ name: 'String'
181
+ }
182
+ },
183
+ thumbnail_url: {
184
+ client_side_validation: true,
185
+ required: false,
186
+ read_only: true,
187
+ serialized_name: 'thumbnailUrl',
188
+ type: {
189
+ name: 'String'
190
+ }
191
+ },
192
+ about: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ read_only: true,
196
+ serialized_name: 'about',
197
+ type: {
198
+ name: 'Sequence',
199
+ element: {
200
+ client_side_validation: true,
201
+ required: false,
202
+ serialized_name: 'ThingElementType',
203
+ type: {
204
+ name: 'Composite',
205
+ class_name: 'Thing'
206
+ }
207
+ }
208
+ }
209
+ },
210
+ mentions: {
211
+ client_side_validation: true,
212
+ required: false,
213
+ read_only: true,
214
+ serialized_name: 'mentions',
215
+ type: {
216
+ name: 'Sequence',
217
+ element: {
218
+ client_side_validation: true,
219
+ required: false,
220
+ serialized_name: 'ThingElementType',
221
+ type: {
222
+ name: 'Composite',
223
+ class_name: 'Thing'
224
+ }
225
+ }
226
+ }
227
+ },
228
+ provider: {
229
+ client_side_validation: true,
230
+ required: false,
231
+ read_only: true,
232
+ serialized_name: 'provider',
233
+ type: {
234
+ name: 'Sequence',
235
+ element: {
236
+ client_side_validation: true,
237
+ required: false,
238
+ serialized_name: 'ThingElementType',
239
+ type: {
240
+ name: 'Composite',
241
+ class_name: 'Thing'
242
+ }
243
+ }
244
+ }
245
+ },
246
+ creator: {
247
+ client_side_validation: true,
248
+ required: false,
249
+ read_only: true,
250
+ serialized_name: 'creator',
251
+ type: {
252
+ name: 'Composite',
253
+ class_name: 'Thing'
254
+ }
255
+ },
256
+ text: {
257
+ client_side_validation: true,
258
+ required: false,
259
+ read_only: true,
260
+ serialized_name: 'text',
261
+ type: {
262
+ name: 'String'
263
+ }
264
+ },
265
+ discussion_url: {
266
+ client_side_validation: true,
267
+ required: false,
268
+ read_only: true,
269
+ serialized_name: 'discussionUrl',
270
+ type: {
271
+ name: 'String'
272
+ }
273
+ },
274
+ comment_count: {
275
+ client_side_validation: true,
276
+ required: false,
277
+ read_only: true,
278
+ serialized_name: 'commentCount',
279
+ type: {
280
+ name: 'Number'
281
+ }
282
+ },
283
+ main_entity: {
284
+ client_side_validation: true,
285
+ required: false,
286
+ read_only: true,
287
+ serialized_name: 'mainEntity',
288
+ type: {
289
+ name: 'Composite',
290
+ class_name: 'Thing'
291
+ }
292
+ },
293
+ head_line: {
294
+ client_side_validation: true,
295
+ required: false,
296
+ read_only: true,
297
+ serialized_name: 'headLine',
298
+ type: {
299
+ name: 'String'
300
+ }
301
+ },
302
+ copyright_holder: {
303
+ client_side_validation: true,
304
+ required: false,
305
+ read_only: true,
306
+ serialized_name: 'copyrightHolder',
307
+ type: {
308
+ name: 'Composite',
309
+ class_name: 'Thing'
310
+ }
311
+ },
312
+ copyright_year: {
313
+ client_side_validation: true,
314
+ required: false,
315
+ read_only: true,
316
+ serialized_name: 'copyrightYear',
317
+ type: {
318
+ name: 'Number'
319
+ }
320
+ },
321
+ disclaimer: {
322
+ client_side_validation: true,
323
+ required: false,
324
+ read_only: true,
325
+ serialized_name: 'disclaimer',
326
+ type: {
327
+ name: 'String'
328
+ }
329
+ },
330
+ is_accessible_for_free: {
331
+ client_side_validation: true,
332
+ required: false,
333
+ read_only: true,
334
+ serialized_name: 'isAccessibleForFree',
335
+ type: {
336
+ name: 'Boolean'
337
+ }
338
+ },
339
+ genre: {
340
+ client_side_validation: true,
341
+ required: false,
342
+ read_only: true,
343
+ serialized_name: 'genre',
344
+ type: {
345
+ name: 'Sequence',
346
+ element: {
347
+ client_side_validation: true,
348
+ required: false,
349
+ serialized_name: 'StringElementType',
350
+ type: {
351
+ name: 'String'
352
+ }
353
+ }
354
+ }
355
+ },
356
+ is_family_friendly: {
357
+ client_side_validation: true,
358
+ required: false,
359
+ read_only: true,
360
+ serialized_name: 'isFamilyFriendly',
361
+ type: {
362
+ name: 'Boolean'
363
+ }
364
+ }
365
+ }
366
+ }
367
+ }
368
+ end
369
+ end
370
+ end
371
+ end
@@ -0,0 +1,109 @@
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 the error that occurred.
10
+ #
11
+ class Error
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+
17
+ def initialize
18
+ @_type = "Error"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [ErrorCode] The error code that identifies the category of
24
+ # error. Possible values include: 'None', 'ServerError',
25
+ # 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization',
26
+ # 'InsufficientAuthorization'. Default value: 'None' .
27
+ attr_accessor :code
28
+
29
+ # @return [String] A description of the error.
30
+ attr_accessor :message
31
+
32
+ # @return [String] A description that provides additional information
33
+ # about the error.
34
+ attr_accessor :more_details
35
+
36
+ # @return [String] The parameter in the request that caused the error.
37
+ attr_accessor :parameter
38
+
39
+ # @return [String] The parameter's value in the request that was not
40
+ # valid.
41
+ attr_accessor :value
42
+
43
+
44
+ #
45
+ # Mapper for Error class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Error',
53
+ type: {
54
+ name: 'Composite',
55
+ polymorphic_discriminator: '_type',
56
+ uber_parent: 'Error',
57
+ class_name: 'Error',
58
+ model_properties: {
59
+ code: {
60
+ client_side_validation: true,
61
+ required: true,
62
+ serialized_name: 'code',
63
+ default_value: 'None',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ message: {
69
+ client_side_validation: true,
70
+ required: true,
71
+ serialized_name: 'message',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ more_details: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'moreDetails',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ parameter: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'parameter',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ value: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'value',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ end
107
+ end
108
+ end
109
+ end