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