azure_cognitiveservices_entitysearch 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_entitysearch.rb +74 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/entities_operations.rb +573 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/entity_search_client.rb +127 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/airport.rb +188 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/answer.rb +89 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/answer_type.rb +16 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/civic_structure.rb +164 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_attribution.rb +76 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_contractual_rule.rb +63 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_license_attribution.rb +93 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_link_attribution.rb +104 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_media_attribution.rb +82 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_text_attribution.rb +96 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/creative_work.rb +190 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entertainment_business.rb +209 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entities.rb +142 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entities_entity_presentation_info.rb +85 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_query_scenario.rb +19 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_scenario.rb +17 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_type.rb +63 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error.rb +116 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_code.rb +20 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_response.rb +109 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_sub_code.rb +25 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/food_establishment.rb +209 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/hotel.rb +241 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/identifiable.rb +62 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/image_object.rb +229 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/intangible.rb +145 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/license.rb +180 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/local_business.rb +221 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/lodging_business.rb +209 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/media_object.rb +230 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/movie_theater.rb +221 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/organization.rb +144 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/place.rb +170 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/places.rb +119 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/postal_address.rb +285 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/query_context.rb +114 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response.rb +96 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response_base.rb +74 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response_format.rb +16 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/restaurant.rb +265 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/safe_search.rb +17 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/search_response.rb +134 -0
  48. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/search_results_answer.rb +102 -0
  49. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/structured_value.rb +145 -0
  50. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/thing.rb +167 -0
  51. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/tourist_attraction.rb +164 -0
  52. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/module_definition.rb +9 -0
  53. data/lib/azure_cognitiveservices_entitysearch.rb +6 -0
  54. data/lib/module_definition.rb +7 -0
  55. data/lib/profiles/latest/entitysearch_latest_profile_client.rb +38 -0
  56. data/lib/profiles/latest/entitysearch_module_definition.rb +8 -0
  57. data/lib/profiles/latest/modules/entitysearch_profile_module.rb +243 -0
  58. data/lib/version.rb +7 -0
  59. metadata +176 -0
@@ -0,0 +1,119 @@
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::EntitySearch::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
+ contractual_rules: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'contractualRules',
62
+ type: {
63
+ name: 'Sequence',
64
+ element: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'ContractualRulesContractualRuleElementType',
68
+ type: {
69
+ name: 'Composite',
70
+ polymorphic_discriminator: '_type',
71
+ uber_parent: 'ContractualRulesContractualRule',
72
+ class_name: 'ContractualRulesContractualRule'
73
+ }
74
+ }
75
+ }
76
+ },
77
+ web_search_url: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'webSearchUrl',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ query_context: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'queryContext',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'QueryContext'
94
+ }
95
+ },
96
+ value: {
97
+ client_side_validation: true,
98
+ required: true,
99
+ serialized_name: 'value',
100
+ type: {
101
+ name: 'Sequence',
102
+ element: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'ThingElementType',
106
+ type: {
107
+ name: 'Composite',
108
+ class_name: 'Thing'
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ end
117
+ end
118
+ end
119
+ end
@@ -0,0 +1,285 @@
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::EntitySearch::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 countr. 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
+
65
+ #
66
+ # Mapper for PostalAddress class as Ruby Hash.
67
+ # This will be used for serialization/deserialization.
68
+ #
69
+ def self.mapper()
70
+ {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'PostalAddress',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'PostalAddress',
77
+ model_properties: {
78
+ _type: {
79
+ client_side_validation: true,
80
+ required: true,
81
+ serialized_name: '_type',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ id: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'id',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ contractual_rules: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'contractualRules',
100
+ type: {
101
+ name: 'Sequence',
102
+ element: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'ContractualRulesContractualRuleElementType',
106
+ type: {
107
+ name: 'Composite',
108
+ polymorphic_discriminator: '_type',
109
+ uber_parent: 'ContractualRulesContractualRule',
110
+ class_name: 'ContractualRulesContractualRule'
111
+ }
112
+ }
113
+ }
114
+ },
115
+ web_search_url: {
116
+ client_side_validation: true,
117
+ required: false,
118
+ read_only: true,
119
+ serialized_name: 'webSearchUrl',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ },
124
+ name: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ read_only: true,
128
+ serialized_name: 'name',
129
+ type: {
130
+ name: 'String'
131
+ }
132
+ },
133
+ url: {
134
+ client_side_validation: true,
135
+ required: false,
136
+ read_only: true,
137
+ serialized_name: 'url',
138
+ type: {
139
+ name: 'String'
140
+ }
141
+ },
142
+ image: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'image',
147
+ type: {
148
+ name: 'Composite',
149
+ class_name: 'ImageObject'
150
+ }
151
+ },
152
+ description: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ read_only: true,
156
+ serialized_name: 'description',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ entity_presentation_info: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'entityPresentationInfo',
166
+ type: {
167
+ name: 'Composite',
168
+ class_name: 'EntitiesEntityPresentationInfo'
169
+ }
170
+ },
171
+ bing_id: {
172
+ client_side_validation: true,
173
+ required: false,
174
+ read_only: true,
175
+ serialized_name: 'bingId',
176
+ type: {
177
+ name: 'String'
178
+ }
179
+ },
180
+ street_address: {
181
+ client_side_validation: true,
182
+ required: false,
183
+ read_only: true,
184
+ serialized_name: 'streetAddress',
185
+ type: {
186
+ name: 'String'
187
+ }
188
+ },
189
+ address_locality: {
190
+ client_side_validation: true,
191
+ required: false,
192
+ read_only: true,
193
+ serialized_name: 'addressLocality',
194
+ type: {
195
+ name: 'String'
196
+ }
197
+ },
198
+ address_subregion: {
199
+ client_side_validation: true,
200
+ required: false,
201
+ read_only: true,
202
+ serialized_name: 'addressSubregion',
203
+ type: {
204
+ name: 'String'
205
+ }
206
+ },
207
+ address_region: {
208
+ client_side_validation: true,
209
+ required: false,
210
+ read_only: true,
211
+ serialized_name: 'addressRegion',
212
+ type: {
213
+ name: 'String'
214
+ }
215
+ },
216
+ postal_code: {
217
+ client_side_validation: true,
218
+ required: false,
219
+ read_only: true,
220
+ serialized_name: 'postalCode',
221
+ type: {
222
+ name: 'String'
223
+ }
224
+ },
225
+ post_office_box_number: {
226
+ client_side_validation: true,
227
+ required: false,
228
+ read_only: true,
229
+ serialized_name: 'postOfficeBoxNumber',
230
+ type: {
231
+ name: 'String'
232
+ }
233
+ },
234
+ address_country: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ read_only: true,
238
+ serialized_name: 'addressCountry',
239
+ type: {
240
+ name: 'String'
241
+ }
242
+ },
243
+ country_iso: {
244
+ client_side_validation: true,
245
+ required: false,
246
+ read_only: true,
247
+ serialized_name: 'countryIso',
248
+ type: {
249
+ name: 'String'
250
+ }
251
+ },
252
+ neighborhood: {
253
+ client_side_validation: true,
254
+ required: false,
255
+ read_only: true,
256
+ serialized_name: 'neighborhood',
257
+ type: {
258
+ name: 'String'
259
+ }
260
+ },
261
+ address_region_abbreviation: {
262
+ client_side_validation: true,
263
+ required: false,
264
+ read_only: true,
265
+ serialized_name: 'addressRegionAbbreviation',
266
+ type: {
267
+ name: 'String'
268
+ }
269
+ },
270
+ text: {
271
+ client_side_validation: true,
272
+ required: false,
273
+ read_only: true,
274
+ serialized_name: 'text',
275
+ type: {
276
+ name: 'String'
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ end
283
+ end
284
+ end
285
+ end
@@ -0,0 +1,114 @@
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::EntitySearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines the query context that Bing used for the request.
10
+ #
11
+ class QueryContext
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The query string as specified in the request.
16
+ attr_accessor :original_query
17
+
18
+ # @return [String] The query string used by Bing to perform the query.
19
+ # Bing uses the altered query string if the original query string
20
+ # contained spelling mistakes. For example, if the query string is
21
+ # "saling downwind", the altered query string will be "sailing downwind".
22
+ # This field is included only if the original query string contains a
23
+ # spelling mistake.
24
+ attr_accessor :altered_query
25
+
26
+ # @return [String] The query string to use to force Bing to use the
27
+ # original string. For example, if the query string is "saling downwind",
28
+ # the override query string will be "+saling downwind". Remember to
29
+ # encode the query string which results in "%2Bsaling+downwind". This
30
+ # field is included only if the original query string contains a spelling
31
+ # mistake.
32
+ attr_accessor :alteration_override_query
33
+
34
+ # @return [Boolean] A Boolean value that indicates whether the specified
35
+ # query has adult intent. The value is true if the query has adult
36
+ # intent; otherwise, false.
37
+ attr_accessor :adult_intent
38
+
39
+ # @return [Boolean] A Boolean value that indicates whether Bing requires
40
+ # the user's location to provide accurate results. If you specified the
41
+ # user's location by using the X-MSEdge-ClientIP and X-Search-Location
42
+ # headers, you can ignore this field. For location aware queries, such as
43
+ # "today's weather" or "restaurants near me" that need the user's
44
+ # location to provide accurate results, this field is set to true. For
45
+ # location aware queries that include the location (for example, "Seattle
46
+ # weather"), this field is set to false. This field is also set to false
47
+ # for queries that are not location aware, such as "best sellers".
48
+ attr_accessor :ask_user_for_location
49
+
50
+
51
+ #
52
+ # Mapper for QueryContext class as Ruby Hash.
53
+ # This will be used for serialization/deserialization.
54
+ #
55
+ def self.mapper()
56
+ {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'QueryContext',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'QueryContext',
63
+ model_properties: {
64
+ original_query: {
65
+ client_side_validation: true,
66
+ required: true,
67
+ serialized_name: 'originalQuery',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ altered_query: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'alteredQuery',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ alteration_override_query: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'alterationOverrideQuery',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ adult_intent: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'adultIntent',
95
+ type: {
96
+ name: 'Boolean'
97
+ }
98
+ },
99
+ ask_user_for_location: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'askUserForLocation',
104
+ type: {
105
+ name: 'Boolean'
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ end
112
+ end
113
+ end
114
+ end