azure_cognitiveservices_localsearch 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_localsearch.rb +54 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_localsearch/local.rb +601 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_localsearch/local_search_client.rb +128 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/action.rb +424 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/answer.rb +131 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/creative_work.rb +392 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entities_entity_presentation_info.rb +127 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entity_scenario.rb +17 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entity_type.rb +18 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb +126 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_code.rb +20 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_response.rb +154 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_sub_code.rb +25 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb +80 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/identifiable.rb +62 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/intangible.rb +162 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/place.rb +217 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/places.rb +182 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/postal_address.rb +338 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/query_context.rb +150 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response.rb +150 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response_base.rb +60 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response_format.rb +16 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/safe_search.rb +17 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_action.rb +464 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_response.rb +190 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_results_answer.rb +172 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/structured_value.rb +162 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/thing.rb +174 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_localsearch/module_definition.rb +9 -0
  33. data/lib/azure_cognitiveservices_localsearch.rb +6 -0
  34. data/lib/module_definition.rb +7 -0
  35. data/lib/profiles/latest/localsearch_latest_profile_client.rb +38 -0
  36. data/lib/profiles/latest/localsearch_module_definition.rb +8 -0
  37. data/lib/profiles/latest/modules/localsearch_profile_module.rb +163 -0
  38. data/lib/version.rb +7 -0
  39. metadata +156 -0
@@ -0,0 +1,131 @@
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::LocalSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines an answer.
10
+ #
11
+ class Answer < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Answer"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+
23
+ #
24
+ # Mapper for Answer class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'Answer',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'Answer',
35
+ model_properties: {
36
+ _type: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: '_type',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ read_link: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'readLink',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ web_search_url: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'webSearchUrl',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ potential_action: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'potentialAction',
76
+ type: {
77
+ name: 'Sequence',
78
+ element: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'ActionElementType',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'Action'
85
+ }
86
+ }
87
+ }
88
+ },
89
+ immediate_action: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'immediateAction',
94
+ type: {
95
+ name: 'Sequence',
96
+ element: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'ActionElementType',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'Action'
103
+ }
104
+ }
105
+ }
106
+ },
107
+ preferred_clickthrough_url: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ read_only: true,
111
+ serialized_name: 'preferredClickthroughUrl',
112
+ type: {
113
+ name: 'String'
114
+ }
115
+ },
116
+ adaptive_card: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ read_only: true,
120
+ serialized_name: 'adaptiveCard',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ end
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,392 @@
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::LocalSearch::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
+ name: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ read_only: true,
178
+ serialized_name: 'name',
179
+ type: {
180
+ name: 'String'
181
+ }
182
+ },
183
+ url: {
184
+ client_side_validation: true,
185
+ required: false,
186
+ read_only: true,
187
+ serialized_name: 'url',
188
+ type: {
189
+ name: 'String'
190
+ }
191
+ },
192
+ entity_presentation_info: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ read_only: true,
196
+ serialized_name: 'entityPresentationInfo',
197
+ type: {
198
+ name: 'Composite',
199
+ polymorphic_discriminator: '_type',
200
+ uber_parent: 'EntitiesEntityPresentationInfo',
201
+ class_name: 'EntitiesEntityPresentationInfo'
202
+ }
203
+ },
204
+ thumbnail_url: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ read_only: true,
208
+ serialized_name: 'thumbnailUrl',
209
+ type: {
210
+ name: 'String'
211
+ }
212
+ },
213
+ about: {
214
+ client_side_validation: true,
215
+ required: false,
216
+ read_only: true,
217
+ serialized_name: 'about',
218
+ type: {
219
+ name: 'Sequence',
220
+ element: {
221
+ client_side_validation: true,
222
+ required: false,
223
+ serialized_name: 'ThingElementType',
224
+ type: {
225
+ name: 'Composite',
226
+ class_name: 'Thing'
227
+ }
228
+ }
229
+ }
230
+ },
231
+ mentions: {
232
+ client_side_validation: true,
233
+ required: false,
234
+ read_only: true,
235
+ serialized_name: 'mentions',
236
+ type: {
237
+ name: 'Sequence',
238
+ element: {
239
+ client_side_validation: true,
240
+ required: false,
241
+ serialized_name: 'ThingElementType',
242
+ type: {
243
+ name: 'Composite',
244
+ class_name: 'Thing'
245
+ }
246
+ }
247
+ }
248
+ },
249
+ provider: {
250
+ client_side_validation: true,
251
+ required: false,
252
+ read_only: true,
253
+ serialized_name: 'provider',
254
+ type: {
255
+ name: 'Sequence',
256
+ element: {
257
+ client_side_validation: true,
258
+ required: false,
259
+ serialized_name: 'ThingElementType',
260
+ type: {
261
+ name: 'Composite',
262
+ class_name: 'Thing'
263
+ }
264
+ }
265
+ }
266
+ },
267
+ creator: {
268
+ client_side_validation: true,
269
+ required: false,
270
+ read_only: true,
271
+ serialized_name: 'creator',
272
+ type: {
273
+ name: 'Composite',
274
+ class_name: 'Thing'
275
+ }
276
+ },
277
+ text: {
278
+ client_side_validation: true,
279
+ required: false,
280
+ read_only: true,
281
+ serialized_name: 'text',
282
+ type: {
283
+ name: 'String'
284
+ }
285
+ },
286
+ discussion_url: {
287
+ client_side_validation: true,
288
+ required: false,
289
+ read_only: true,
290
+ serialized_name: 'discussionUrl',
291
+ type: {
292
+ name: 'String'
293
+ }
294
+ },
295
+ comment_count: {
296
+ client_side_validation: true,
297
+ required: false,
298
+ read_only: true,
299
+ serialized_name: 'commentCount',
300
+ type: {
301
+ name: 'Number'
302
+ }
303
+ },
304
+ main_entity: {
305
+ client_side_validation: true,
306
+ required: false,
307
+ read_only: true,
308
+ serialized_name: 'mainEntity',
309
+ type: {
310
+ name: 'Composite',
311
+ class_name: 'Thing'
312
+ }
313
+ },
314
+ head_line: {
315
+ client_side_validation: true,
316
+ required: false,
317
+ read_only: true,
318
+ serialized_name: 'headLine',
319
+ type: {
320
+ name: 'String'
321
+ }
322
+ },
323
+ copyright_holder: {
324
+ client_side_validation: true,
325
+ required: false,
326
+ read_only: true,
327
+ serialized_name: 'copyrightHolder',
328
+ type: {
329
+ name: 'Composite',
330
+ class_name: 'Thing'
331
+ }
332
+ },
333
+ copyright_year: {
334
+ client_side_validation: true,
335
+ required: false,
336
+ read_only: true,
337
+ serialized_name: 'copyrightYear',
338
+ type: {
339
+ name: 'Number'
340
+ }
341
+ },
342
+ disclaimer: {
343
+ client_side_validation: true,
344
+ required: false,
345
+ read_only: true,
346
+ serialized_name: 'disclaimer',
347
+ type: {
348
+ name: 'String'
349
+ }
350
+ },
351
+ is_accessible_for_free: {
352
+ client_side_validation: true,
353
+ required: false,
354
+ read_only: true,
355
+ serialized_name: 'isAccessibleForFree',
356
+ type: {
357
+ name: 'Boolean'
358
+ }
359
+ },
360
+ genre: {
361
+ client_side_validation: true,
362
+ required: false,
363
+ read_only: true,
364
+ serialized_name: 'genre',
365
+ type: {
366
+ name: 'Sequence',
367
+ element: {
368
+ client_side_validation: true,
369
+ required: false,
370
+ serialized_name: 'StringElementType',
371
+ type: {
372
+ name: 'String'
373
+ }
374
+ }
375
+ }
376
+ },
377
+ is_family_friendly: {
378
+ client_side_validation: true,
379
+ required: false,
380
+ read_only: true,
381
+ serialized_name: 'isFamilyFriendly',
382
+ type: {
383
+ name: 'Boolean'
384
+ }
385
+ }
386
+ }
387
+ }
388
+ }
389
+ end
390
+ end
391
+ end
392
+ end