azure_cognitiveservices_entitysearch 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,96 @@
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 response. All schemas that could be returned at the root of a
10
+ # response should inherit from this
11
+ #
12
+ class Response < Identifiable
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Response"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [Array<ContractualRulesContractualRule>] A list of rules that
24
+ # you must adhere to if you display the item.
25
+ attr_accessor :contractual_rules
26
+
27
+ # @return [String] The URL To Bing's search result for this item.
28
+ attr_accessor :web_search_url
29
+
30
+
31
+ #
32
+ # Mapper for Response class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'Response',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Response',
43
+ model_properties: {
44
+ _type: {
45
+ client_side_validation: true,
46
+ required: true,
47
+ serialized_name: '_type',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ id: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'id',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ contractual_rules: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'contractualRules',
66
+ type: {
67
+ name: 'Sequence',
68
+ element: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'ContractualRulesContractualRuleElementType',
72
+ type: {
73
+ name: 'Composite',
74
+ polymorphic_discriminator: '_type',
75
+ uber_parent: 'ContractualRulesContractualRule',
76
+ class_name: 'ContractualRulesContractualRule'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ web_search_url: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'webSearchUrl',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,74 @@
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
+ # Model object.
10
+ #
11
+ #
12
+ class ResponseBase
13
+
14
+ include MsRestAzure
15
+
16
+ @@discriminatorMap = Hash.new
17
+ @@discriminatorMap["ImageObject"] = "ImageObject"
18
+ @@discriminatorMap["Thing"] = "Thing"
19
+ @@discriminatorMap["Entities"] = "Entities"
20
+ @@discriminatorMap["Places"] = "Places"
21
+ @@discriminatorMap["SearchResponse"] = "SearchResponse"
22
+ @@discriminatorMap["Response"] = "Response"
23
+ @@discriminatorMap["SearchResultsAnswer"] = "SearchResultsAnswer"
24
+ @@discriminatorMap["Identifiable"] = "Identifiable"
25
+ @@discriminatorMap["Answer"] = "Answer"
26
+ @@discriminatorMap["ErrorResponse"] = "ErrorResponse"
27
+ @@discriminatorMap["PostalAddress"] = "PostalAddress"
28
+ @@discriminatorMap["Place"] = "Place"
29
+ @@discriminatorMap["Organization"] = "Organization"
30
+ @@discriminatorMap["CreativeWork"] = "CreativeWork"
31
+ @@discriminatorMap["Intangible"] = "Intangible"
32
+ @@discriminatorMap["MovieTheater"] = "MovieTheater"
33
+ @@discriminatorMap["MediaObject"] = "MediaObject"
34
+ @@discriminatorMap["CivicStructure"] = "CivicStructure"
35
+ @@discriminatorMap["LocalBusiness"] = "LocalBusiness"
36
+ @@discriminatorMap["TouristAttraction"] = "TouristAttraction"
37
+ @@discriminatorMap["Airport"] = "Airport"
38
+ @@discriminatorMap["License"] = "License"
39
+ @@discriminatorMap["StructuredValue"] = "StructuredValue"
40
+ @@discriminatorMap["EntertainmentBusiness"] = "EntertainmentBusiness"
41
+ @@discriminatorMap["FoodEstablishment"] = "FoodEstablishment"
42
+ @@discriminatorMap["LodgingBusiness"] = "LodgingBusiness"
43
+ @@discriminatorMap["Restaurant"] = "Restaurant"
44
+ @@discriminatorMap["Hotel"] = "Hotel"
45
+
46
+ def initialize
47
+ @_type = "ResponseBase"
48
+ end
49
+
50
+ attr_accessor :_type
51
+
52
+
53
+ #
54
+ # Mapper for ResponseBase class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'ResponseBase',
62
+ type: {
63
+ name: 'Composite',
64
+ polymorphic_discriminator: '_type',
65
+ uber_parent: 'ResponseBase',
66
+ class_name: 'ResponseBase',
67
+ model_properties: {
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ 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::EntitySearch::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,265 @@
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
+ # Model object.
10
+ #
11
+ #
12
+ class Restaurant < FoodEstablishment
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Restaurant"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [Boolean]
24
+ attr_accessor :accepts_reservations
25
+
26
+ # @return [String]
27
+ attr_accessor :reservation_url
28
+
29
+ # @return [Array<String>]
30
+ attr_accessor :serves_cuisine
31
+
32
+ # @return [String]
33
+ attr_accessor :menu_url
34
+
35
+
36
+ #
37
+ # Mapper for Restaurant class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'Restaurant',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'Restaurant',
48
+ model_properties: {
49
+ _type: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: '_type',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ id: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'id',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ contractual_rules: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'contractualRules',
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'ContractualRulesContractualRuleElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ polymorphic_discriminator: '_type',
80
+ uber_parent: 'ContractualRulesContractualRule',
81
+ class_name: 'ContractualRulesContractualRule'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ web_search_url: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'webSearchUrl',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ name: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'name',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ url: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'url',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ image: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ read_only: true,
117
+ serialized_name: 'image',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'ImageObject'
121
+ }
122
+ },
123
+ description: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ read_only: true,
127
+ serialized_name: 'description',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ entity_presentation_info: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ read_only: true,
136
+ serialized_name: 'entityPresentationInfo',
137
+ type: {
138
+ name: 'Composite',
139
+ class_name: 'EntitiesEntityPresentationInfo'
140
+ }
141
+ },
142
+ bing_id: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'bingId',
147
+ type: {
148
+ name: 'String'
149
+ }
150
+ },
151
+ address: {
152
+ client_side_validation: true,
153
+ required: false,
154
+ read_only: true,
155
+ serialized_name: 'address',
156
+ type: {
157
+ name: 'Composite',
158
+ class_name: 'PostalAddress'
159
+ }
160
+ },
161
+ telephone: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'telephone',
166
+ type: {
167
+ name: 'String'
168
+ }
169
+ },
170
+ price_range: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ read_only: true,
174
+ serialized_name: 'priceRange',
175
+ type: {
176
+ name: 'String'
177
+ }
178
+ },
179
+ panoramas: {
180
+ client_side_validation: true,
181
+ required: false,
182
+ read_only: true,
183
+ serialized_name: 'panoramas',
184
+ type: {
185
+ name: 'Sequence',
186
+ element: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ serialized_name: 'ImageObjectElementType',
190
+ type: {
191
+ name: 'Composite',
192
+ class_name: 'ImageObject'
193
+ }
194
+ }
195
+ }
196
+ },
197
+ is_permanently_closed: {
198
+ client_side_validation: true,
199
+ required: false,
200
+ read_only: true,
201
+ serialized_name: 'isPermanentlyClosed',
202
+ type: {
203
+ name: 'Boolean'
204
+ }
205
+ },
206
+ tag_line: {
207
+ client_side_validation: true,
208
+ required: false,
209
+ read_only: true,
210
+ serialized_name: 'tagLine',
211
+ type: {
212
+ name: 'String'
213
+ }
214
+ },
215
+ accepts_reservations: {
216
+ client_side_validation: true,
217
+ required: false,
218
+ read_only: true,
219
+ serialized_name: 'acceptsReservations',
220
+ type: {
221
+ name: 'Boolean'
222
+ }
223
+ },
224
+ reservation_url: {
225
+ client_side_validation: true,
226
+ required: false,
227
+ read_only: true,
228
+ serialized_name: 'reservationUrl',
229
+ type: {
230
+ name: 'String'
231
+ }
232
+ },
233
+ serves_cuisine: {
234
+ client_side_validation: true,
235
+ required: false,
236
+ read_only: true,
237
+ serialized_name: 'servesCuisine',
238
+ type: {
239
+ name: 'Sequence',
240
+ element: {
241
+ client_side_validation: true,
242
+ required: false,
243
+ serialized_name: 'StringElementType',
244
+ type: {
245
+ name: 'String'
246
+ }
247
+ }
248
+ }
249
+ },
250
+ menu_url: {
251
+ client_side_validation: true,
252
+ required: false,
253
+ read_only: true,
254
+ serialized_name: 'menuUrl',
255
+ type: {
256
+ name: 'String'
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+ end
263
+ end
264
+ end
265
+ end