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,221 @@
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 LocalBusiness < Place
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "LocalBusiness"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] $$.
24
+ attr_accessor :price_range
25
+
26
+ # @return [Array<ImageObject>]
27
+ attr_accessor :panoramas
28
+
29
+ # @return [Boolean]
30
+ attr_accessor :is_permanently_closed
31
+
32
+ # @return [String]
33
+ attr_accessor :tag_line
34
+
35
+
36
+ #
37
+ # Mapper for LocalBusiness 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: 'LocalBusiness',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'LocalBusiness',
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
+ }
216
+ }
217
+ }
218
+ end
219
+ end
220
+ end
221
+ end
@@ -0,0 +1,209 @@
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 LodgingBusiness < LocalBusiness
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "LodgingBusiness"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+
24
+ #
25
+ # Mapper for LodgingBusiness class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'LodgingBusiness',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'LodgingBusiness',
36
+ model_properties: {
37
+ _type: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: '_type',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ contractual_rules: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'contractualRules',
59
+ type: {
60
+ name: 'Sequence',
61
+ element: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'ContractualRulesContractualRuleElementType',
65
+ type: {
66
+ name: 'Composite',
67
+ polymorphic_discriminator: '_type',
68
+ uber_parent: 'ContractualRulesContractualRule',
69
+ class_name: 'ContractualRulesContractualRule'
70
+ }
71
+ }
72
+ }
73
+ },
74
+ web_search_url: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'webSearchUrl',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ name: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'name',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ url: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'url',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ image: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'image',
106
+ type: {
107
+ name: 'Composite',
108
+ class_name: 'ImageObject'
109
+ }
110
+ },
111
+ description: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'description',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ entity_presentation_info: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'entityPresentationInfo',
125
+ type: {
126
+ name: 'Composite',
127
+ class_name: 'EntitiesEntityPresentationInfo'
128
+ }
129
+ },
130
+ bing_id: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ read_only: true,
134
+ serialized_name: 'bingId',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ },
139
+ address: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ read_only: true,
143
+ serialized_name: 'address',
144
+ type: {
145
+ name: 'Composite',
146
+ class_name: 'PostalAddress'
147
+ }
148
+ },
149
+ telephone: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ read_only: true,
153
+ serialized_name: 'telephone',
154
+ type: {
155
+ name: 'String'
156
+ }
157
+ },
158
+ price_range: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ read_only: true,
162
+ serialized_name: 'priceRange',
163
+ type: {
164
+ name: 'String'
165
+ }
166
+ },
167
+ panoramas: {
168
+ client_side_validation: true,
169
+ required: false,
170
+ read_only: true,
171
+ serialized_name: 'panoramas',
172
+ type: {
173
+ name: 'Sequence',
174
+ element: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ serialized_name: 'ImageObjectElementType',
178
+ type: {
179
+ name: 'Composite',
180
+ class_name: 'ImageObject'
181
+ }
182
+ }
183
+ }
184
+ },
185
+ is_permanently_closed: {
186
+ client_side_validation: true,
187
+ required: false,
188
+ read_only: true,
189
+ serialized_name: 'isPermanentlyClosed',
190
+ type: {
191
+ name: 'Boolean'
192
+ }
193
+ },
194
+ tag_line: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ read_only: true,
198
+ serialized_name: 'tagLine',
199
+ type: {
200
+ name: 'String'
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
206
+ end
207
+ end
208
+ end
209
+ end
@@ -0,0 +1,230 @@
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 MediaObject < CreativeWork
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "MediaObject"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] Original URL to retrieve the source (file) for the
24
+ # media object (e.g the source URL for the image).
25
+ attr_accessor :content_url
26
+
27
+ # @return [String] URL of the page that hosts the media object.
28
+ attr_accessor :host_page_url
29
+
30
+ # @return [Integer] The width of the source media object, in pixels.
31
+ attr_accessor :width
32
+
33
+ # @return [Integer] The height of the source media object, in pixels.
34
+ attr_accessor :height
35
+
36
+
37
+ #
38
+ # Mapper for MediaObject class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'MediaObject',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'MediaObject',
49
+ model_properties: {
50
+ _type: {
51
+ client_side_validation: true,
52
+ required: true,
53
+ serialized_name: '_type',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ id: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'id',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ contractual_rules: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'contractualRules',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'ContractualRulesContractualRuleElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ polymorphic_discriminator: '_type',
81
+ uber_parent: 'ContractualRulesContractualRule',
82
+ class_name: 'ContractualRulesContractualRule'
83
+ }
84
+ }
85
+ }
86
+ },
87
+ web_search_url: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ read_only: true,
91
+ serialized_name: 'webSearchUrl',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ name: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ read_only: true,
100
+ serialized_name: 'name',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ url: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ read_only: true,
109
+ serialized_name: 'url',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ image: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ read_only: true,
118
+ serialized_name: 'image',
119
+ type: {
120
+ name: 'Composite',
121
+ class_name: 'ImageObject'
122
+ }
123
+ },
124
+ description: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ read_only: true,
128
+ serialized_name: 'description',
129
+ type: {
130
+ name: 'String'
131
+ }
132
+ },
133
+ entity_presentation_info: {
134
+ client_side_validation: true,
135
+ required: false,
136
+ read_only: true,
137
+ serialized_name: 'entityPresentationInfo',
138
+ type: {
139
+ name: 'Composite',
140
+ class_name: 'EntitiesEntityPresentationInfo'
141
+ }
142
+ },
143
+ bing_id: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ read_only: true,
147
+ serialized_name: 'bingId',
148
+ type: {
149
+ name: 'String'
150
+ }
151
+ },
152
+ thumbnail_url: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ read_only: true,
156
+ serialized_name: 'thumbnailUrl',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ provider: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'provider',
166
+ type: {
167
+ name: 'Sequence',
168
+ element: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ serialized_name: 'ThingElementType',
172
+ type: {
173
+ name: 'Composite',
174
+ class_name: 'Thing'
175
+ }
176
+ }
177
+ }
178
+ },
179
+ text: {
180
+ client_side_validation: true,
181
+ required: false,
182
+ read_only: true,
183
+ serialized_name: 'text',
184
+ type: {
185
+ name: 'String'
186
+ }
187
+ },
188
+ content_url: {
189
+ client_side_validation: true,
190
+ required: false,
191
+ read_only: true,
192
+ serialized_name: 'contentUrl',
193
+ type: {
194
+ name: 'String'
195
+ }
196
+ },
197
+ host_page_url: {
198
+ client_side_validation: true,
199
+ required: false,
200
+ read_only: true,
201
+ serialized_name: 'hostPageUrl',
202
+ type: {
203
+ name: 'String'
204
+ }
205
+ },
206
+ width: {
207
+ client_side_validation: true,
208
+ required: false,
209
+ read_only: true,
210
+ serialized_name: 'width',
211
+ type: {
212
+ name: 'Number'
213
+ }
214
+ },
215
+ height: {
216
+ client_side_validation: true,
217
+ required: false,
218
+ read_only: true,
219
+ serialized_name: 'height',
220
+ type: {
221
+ name: 'Number'
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ end
228
+ end
229
+ end
230
+ end