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,182 @@
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 a local entity answer.
10
+ #
11
+ class Places < SearchResultsAnswer
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Places"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Array<Thing>] A list of local entities, such as restaurants or
23
+ # hotels.
24
+ attr_accessor :value
25
+
26
+
27
+ #
28
+ # Mapper for Places 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: 'Places',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Places',
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
+ total_estimated_matches: {
142
+ client_side_validation: true,
143
+ required: false,
144
+ read_only: true,
145
+ serialized_name: 'totalEstimatedMatches',
146
+ type: {
147
+ name: 'Number'
148
+ }
149
+ },
150
+ is_family_friendly: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ read_only: true,
154
+ serialized_name: 'isFamilyFriendly',
155
+ type: {
156
+ name: 'Boolean'
157
+ }
158
+ },
159
+ value: {
160
+ client_side_validation: true,
161
+ required: true,
162
+ serialized_name: 'value',
163
+ type: {
164
+ name: 'Sequence',
165
+ element: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ serialized_name: 'ThingElementType',
169
+ type: {
170
+ name: 'Composite',
171
+ class_name: 'Thing'
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ end
180
+ end
181
+ end
182
+ end
@@ -0,0 +1,338 @@
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 a postal address.
10
+ #
11
+ class PostalAddress < StructuredValue
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "PostalAddress"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String]
23
+ attr_accessor :street_address
24
+
25
+ # @return [String] The city where the street address is located. For
26
+ # example, Seattle.
27
+ attr_accessor :address_locality
28
+
29
+ # @return [String]
30
+ attr_accessor :address_subregion
31
+
32
+ # @return [String] The state or province code where the street address is
33
+ # located. This could be the two-letter code. For example, WA, or the
34
+ # full name , Washington.
35
+ attr_accessor :address_region
36
+
37
+ # @return [String] The zip code or postal code where the street address
38
+ # is located. For example, 98052.
39
+ attr_accessor :postal_code
40
+
41
+ # @return [String]
42
+ attr_accessor :post_office_box_number
43
+
44
+ # @return [String] The country/region where the street address is
45
+ # located. This could be the two-letter ISO code. For example, US, or the
46
+ # full name, United States.
47
+ attr_accessor :address_country
48
+
49
+ # @return [String] The two letter ISO code of this country. For example,
50
+ # US.
51
+ attr_accessor :country_iso
52
+
53
+ # @return [String] The neighborhood where the street address is located.
54
+ # For example, Westlake.
55
+ attr_accessor :neighborhood
56
+
57
+ # @return [String] Region Abbreviation. For example, WA.
58
+ attr_accessor :address_region_abbreviation
59
+
60
+ # @return [String] The complete address. For example, 2100 Westlake Ave
61
+ # N, Bellevue, WA 98052.
62
+ attr_accessor :text
63
+
64
+ # @return [String]
65
+ attr_accessor :house_number
66
+
67
+ # @return [String]
68
+ attr_accessor :street_name
69
+
70
+ # @return [String]
71
+ attr_accessor :formatting_rule_id
72
+
73
+
74
+ #
75
+ # Mapper for PostalAddress class as Ruby Hash.
76
+ # This will be used for serialization/deserialization.
77
+ #
78
+ def self.mapper()
79
+ {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'PostalAddress',
83
+ type: {
84
+ name: 'Composite',
85
+ class_name: 'PostalAddress',
86
+ model_properties: {
87
+ _type: {
88
+ client_side_validation: true,
89
+ required: true,
90
+ serialized_name: '_type',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ id: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'id',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ read_link: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'readLink',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ web_search_url: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ read_only: true,
117
+ serialized_name: 'webSearchUrl',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ potential_action: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ read_only: true,
126
+ serialized_name: 'potentialAction',
127
+ type: {
128
+ name: 'Sequence',
129
+ element: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ serialized_name: 'ActionElementType',
133
+ type: {
134
+ name: 'Composite',
135
+ class_name: 'Action'
136
+ }
137
+ }
138
+ }
139
+ },
140
+ immediate_action: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ read_only: true,
144
+ serialized_name: 'immediateAction',
145
+ type: {
146
+ name: 'Sequence',
147
+ element: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ serialized_name: 'ActionElementType',
151
+ type: {
152
+ name: 'Composite',
153
+ class_name: 'Action'
154
+ }
155
+ }
156
+ }
157
+ },
158
+ preferred_clickthrough_url: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ read_only: true,
162
+ serialized_name: 'preferredClickthroughUrl',
163
+ type: {
164
+ name: 'String'
165
+ }
166
+ },
167
+ adaptive_card: {
168
+ client_side_validation: true,
169
+ required: false,
170
+ read_only: true,
171
+ serialized_name: 'adaptiveCard',
172
+ type: {
173
+ name: 'String'
174
+ }
175
+ },
176
+ name: {
177
+ client_side_validation: true,
178
+ required: false,
179
+ read_only: true,
180
+ serialized_name: 'name',
181
+ type: {
182
+ name: 'String'
183
+ }
184
+ },
185
+ url: {
186
+ client_side_validation: true,
187
+ required: false,
188
+ read_only: true,
189
+ serialized_name: 'url',
190
+ type: {
191
+ name: 'String'
192
+ }
193
+ },
194
+ entity_presentation_info: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ read_only: true,
198
+ serialized_name: 'entityPresentationInfo',
199
+ type: {
200
+ name: 'Composite',
201
+ polymorphic_discriminator: '_type',
202
+ uber_parent: 'EntitiesEntityPresentationInfo',
203
+ class_name: 'EntitiesEntityPresentationInfo'
204
+ }
205
+ },
206
+ street_address: {
207
+ client_side_validation: true,
208
+ required: false,
209
+ read_only: true,
210
+ serialized_name: 'streetAddress',
211
+ type: {
212
+ name: 'String'
213
+ }
214
+ },
215
+ address_locality: {
216
+ client_side_validation: true,
217
+ required: false,
218
+ read_only: true,
219
+ serialized_name: 'addressLocality',
220
+ type: {
221
+ name: 'String'
222
+ }
223
+ },
224
+ address_subregion: {
225
+ client_side_validation: true,
226
+ required: false,
227
+ read_only: true,
228
+ serialized_name: 'addressSubregion',
229
+ type: {
230
+ name: 'String'
231
+ }
232
+ },
233
+ address_region: {
234
+ client_side_validation: true,
235
+ required: false,
236
+ read_only: true,
237
+ serialized_name: 'addressRegion',
238
+ type: {
239
+ name: 'String'
240
+ }
241
+ },
242
+ postal_code: {
243
+ client_side_validation: true,
244
+ required: false,
245
+ read_only: true,
246
+ serialized_name: 'postalCode',
247
+ type: {
248
+ name: 'String'
249
+ }
250
+ },
251
+ post_office_box_number: {
252
+ client_side_validation: true,
253
+ required: false,
254
+ read_only: true,
255
+ serialized_name: 'postOfficeBoxNumber',
256
+ type: {
257
+ name: 'String'
258
+ }
259
+ },
260
+ address_country: {
261
+ client_side_validation: true,
262
+ required: false,
263
+ read_only: true,
264
+ serialized_name: 'addressCountry',
265
+ type: {
266
+ name: 'String'
267
+ }
268
+ },
269
+ country_iso: {
270
+ client_side_validation: true,
271
+ required: false,
272
+ read_only: true,
273
+ serialized_name: 'countryIso',
274
+ type: {
275
+ name: 'String'
276
+ }
277
+ },
278
+ neighborhood: {
279
+ client_side_validation: true,
280
+ required: false,
281
+ read_only: true,
282
+ serialized_name: 'neighborhood',
283
+ type: {
284
+ name: 'String'
285
+ }
286
+ },
287
+ address_region_abbreviation: {
288
+ client_side_validation: true,
289
+ required: false,
290
+ read_only: true,
291
+ serialized_name: 'addressRegionAbbreviation',
292
+ type: {
293
+ name: 'String'
294
+ }
295
+ },
296
+ text: {
297
+ client_side_validation: true,
298
+ required: false,
299
+ read_only: true,
300
+ serialized_name: 'text',
301
+ type: {
302
+ name: 'String'
303
+ }
304
+ },
305
+ house_number: {
306
+ client_side_validation: true,
307
+ required: false,
308
+ read_only: true,
309
+ serialized_name: 'houseNumber',
310
+ type: {
311
+ name: 'String'
312
+ }
313
+ },
314
+ street_name: {
315
+ client_side_validation: true,
316
+ required: false,
317
+ read_only: true,
318
+ serialized_name: 'streetName',
319
+ type: {
320
+ name: 'String'
321
+ }
322
+ },
323
+ formatting_rule_id: {
324
+ client_side_validation: true,
325
+ required: false,
326
+ read_only: true,
327
+ serialized_name: 'formattingRuleId',
328
+ type: {
329
+ name: 'String'
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }
335
+ end
336
+ end
337
+ end
338
+ end