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,190 @@
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 CreativeWork < Thing
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "CreativeWork"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] The URL to a thumbnail of the item.
24
+ attr_accessor :thumbnail_url
25
+
26
+ # @return [Array<Thing>] The source of the creative work.
27
+ attr_accessor :provider
28
+
29
+ # @return [String]
30
+ attr_accessor :text
31
+
32
+
33
+ #
34
+ # Mapper for CreativeWork class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'CreativeWork',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'CreativeWork',
45
+ model_properties: {
46
+ _type: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: '_type',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ id: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'id',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ contractual_rules: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'contractualRules',
68
+ type: {
69
+ name: 'Sequence',
70
+ element: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'ContractualRulesContractualRuleElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ polymorphic_discriminator: '_type',
77
+ uber_parent: 'ContractualRulesContractualRule',
78
+ class_name: 'ContractualRulesContractualRule'
79
+ }
80
+ }
81
+ }
82
+ },
83
+ web_search_url: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'webSearchUrl',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ name: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'name',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ url: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'url',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ image: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ read_only: true,
114
+ serialized_name: 'image',
115
+ type: {
116
+ name: 'Composite',
117
+ class_name: 'ImageObject'
118
+ }
119
+ },
120
+ description: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'description',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ entity_presentation_info: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'entityPresentationInfo',
134
+ type: {
135
+ name: 'Composite',
136
+ class_name: 'EntitiesEntityPresentationInfo'
137
+ }
138
+ },
139
+ bing_id: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ read_only: true,
143
+ serialized_name: 'bingId',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ },
148
+ thumbnail_url: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ read_only: true,
152
+ serialized_name: 'thumbnailUrl',
153
+ type: {
154
+ name: 'String'
155
+ }
156
+ },
157
+ provider: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ read_only: true,
161
+ serialized_name: 'provider',
162
+ type: {
163
+ name: 'Sequence',
164
+ element: {
165
+ client_side_validation: true,
166
+ required: false,
167
+ serialized_name: 'ThingElementType',
168
+ type: {
169
+ name: 'Composite',
170
+ class_name: 'Thing'
171
+ }
172
+ }
173
+ }
174
+ },
175
+ text: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ read_only: true,
179
+ serialized_name: 'text',
180
+ type: {
181
+ name: 'String'
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ end
188
+ end
189
+ end
190
+ 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 EntertainmentBusiness < LocalBusiness
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "EntertainmentBusiness"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+
24
+ #
25
+ # Mapper for EntertainmentBusiness 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: 'EntertainmentBusiness',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'EntertainmentBusiness',
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,142 @@
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 entity answer.
10
+ #
11
+ class Entities < SearchResultsAnswer
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Entities"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [EntityQueryScenario] The supported query scenario. This field
23
+ # is set to DominantEntity or DisambiguationItem. The field is set to
24
+ # DominantEntity if Bing determines that only a single entity satisfies
25
+ # the request. For example, a book, movie, person, or attraction. If
26
+ # multiple entities could satisfy the request, the field is set to
27
+ # DisambiguationItem. For example, if the request uses the generic title
28
+ # of a movie franchise, the entity's type would likely be
29
+ # DisambiguationItem. But, if the request specifies a specific title from
30
+ # the franchise, the entity's type would likely be DominantEntity.
31
+ # Possible values include: 'DominantEntity',
32
+ # 'DominantEntityWithDisambiguation', 'Disambiguation', 'List',
33
+ # 'ListWithPivot'. Default value: 'DominantEntity' .
34
+ attr_accessor :query_scenario
35
+
36
+ # @return [Array<Thing>] A list of entities.
37
+ attr_accessor :value
38
+
39
+
40
+ #
41
+ # Mapper for Entities class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'Entities',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'Entities',
52
+ model_properties: {
53
+ _type: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: '_type',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ id: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'id',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ contractual_rules: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'contractualRules',
75
+ type: {
76
+ name: 'Sequence',
77
+ element: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'ContractualRulesContractualRuleElementType',
81
+ type: {
82
+ name: 'Composite',
83
+ polymorphic_discriminator: '_type',
84
+ uber_parent: 'ContractualRulesContractualRule',
85
+ class_name: 'ContractualRulesContractualRule'
86
+ }
87
+ }
88
+ }
89
+ },
90
+ web_search_url: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'webSearchUrl',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ query_context: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'queryContext',
104
+ type: {
105
+ name: 'Composite',
106
+ class_name: 'QueryContext'
107
+ }
108
+ },
109
+ query_scenario: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'queryScenario',
114
+ default_value: 'DominantEntity',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ value: {
120
+ client_side_validation: true,
121
+ required: true,
122
+ serialized_name: 'value',
123
+ type: {
124
+ name: 'Sequence',
125
+ element: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ serialized_name: 'ThingElementType',
129
+ type: {
130
+ name: 'Composite',
131
+ class_name: 'Thing'
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ end
140
+ end
141
+ end
142
+ end