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,17 @@
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 SafeSearch
10
+ #
11
+ module SafeSearch
12
+ Off = "Off"
13
+ Moderate = "Moderate"
14
+ Strict = "Strict"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,134 @@
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 top-level object that the response includes when the request
10
+ # succeeds.
11
+ #
12
+ class SearchResponse < Response
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "SearchResponse"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [QueryContext] An object that contains the query string that
24
+ # Bing used for the request. This object contains the query string as
25
+ # entered by the user. It may also contain an altered query string that
26
+ # Bing used for the query if the query string contained a spelling
27
+ # mistake.
28
+ attr_accessor :query_context
29
+
30
+ # @return [Entities] A list of entities that are relevant to the search
31
+ # query.
32
+ attr_accessor :entities
33
+
34
+ # @return [Places] A list of local entities such as restaurants or hotels
35
+ # that are relevant to the query.
36
+ attr_accessor :places
37
+
38
+
39
+ #
40
+ # Mapper for SearchResponse class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'SearchResponse',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'SearchResponse',
51
+ model_properties: {
52
+ _type: {
53
+ client_side_validation: true,
54
+ required: true,
55
+ serialized_name: '_type',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ id: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'id',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ contractual_rules: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'contractualRules',
74
+ type: {
75
+ name: 'Sequence',
76
+ element: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'ContractualRulesContractualRuleElementType',
80
+ type: {
81
+ name: 'Composite',
82
+ polymorphic_discriminator: '_type',
83
+ uber_parent: 'ContractualRulesContractualRule',
84
+ class_name: 'ContractualRulesContractualRule'
85
+ }
86
+ }
87
+ }
88
+ },
89
+ web_search_url: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'webSearchUrl',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ },
98
+ query_context: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ read_only: true,
102
+ serialized_name: 'queryContext',
103
+ type: {
104
+ name: 'Composite',
105
+ class_name: 'QueryContext'
106
+ }
107
+ },
108
+ entities: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'entities',
113
+ type: {
114
+ name: 'Composite',
115
+ class_name: 'Entities'
116
+ }
117
+ },
118
+ places: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'places',
123
+ type: {
124
+ name: 'Composite',
125
+ class_name: 'Places'
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,102 @@
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 SearchResultsAnswer < Answer
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "SearchResultsAnswer"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [QueryContext]
24
+ attr_accessor :query_context
25
+
26
+
27
+ #
28
+ # Mapper for SearchResultsAnswer 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: 'SearchResultsAnswer',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'SearchResultsAnswer',
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
+ }
97
+ }
98
+ }
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,145 @@
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 StructuredValue < Intangible
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "StructuredValue"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+
24
+ #
25
+ # Mapper for StructuredValue 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: 'StructuredValue',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'StructuredValue',
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
+ }
140
+ }
141
+ }
142
+ end
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,167 @@
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 Thing < Response
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Thing"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] The name of the thing represented by this object.
24
+ attr_accessor :name
25
+
26
+ # @return [String] The URL to get more information about the thing
27
+ # represented by this object.
28
+ attr_accessor :url
29
+
30
+ # @return [ImageObject]
31
+ attr_accessor :image
32
+
33
+ # @return [String] A short description of the item.
34
+ attr_accessor :description
35
+
36
+ # @return [EntitiesEntityPresentationInfo] Additional information about
37
+ # the entity such as hints that you can use to determine the entity's
38
+ # type. To determine the entity's type, use the entityScenario and
39
+ # entityTypeHint fields.
40
+ attr_accessor :entity_presentation_info
41
+
42
+ # @return [String] An ID that uniquely identifies this item.
43
+ attr_accessor :bing_id
44
+
45
+
46
+ #
47
+ # Mapper for Thing class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'Thing',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'Thing',
58
+ model_properties: {
59
+ _type: {
60
+ client_side_validation: true,
61
+ required: true,
62
+ serialized_name: '_type',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ id: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'id',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ contractual_rules: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'contractualRules',
81
+ type: {
82
+ name: 'Sequence',
83
+ element: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'ContractualRulesContractualRuleElementType',
87
+ type: {
88
+ name: 'Composite',
89
+ polymorphic_discriminator: '_type',
90
+ uber_parent: 'ContractualRulesContractualRule',
91
+ class_name: 'ContractualRulesContractualRule'
92
+ }
93
+ }
94
+ }
95
+ },
96
+ web_search_url: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ read_only: true,
100
+ serialized_name: 'webSearchUrl',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ name: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ read_only: true,
109
+ serialized_name: 'name',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ url: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ read_only: true,
118
+ serialized_name: 'url',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ image: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ read_only: true,
127
+ serialized_name: 'image',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'ImageObject'
131
+ }
132
+ },
133
+ description: {
134
+ client_side_validation: true,
135
+ required: false,
136
+ read_only: true,
137
+ serialized_name: 'description',
138
+ type: {
139
+ name: 'String'
140
+ }
141
+ },
142
+ entity_presentation_info: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'entityPresentationInfo',
147
+ type: {
148
+ name: 'Composite',
149
+ class_name: 'EntitiesEntityPresentationInfo'
150
+ }
151
+ },
152
+ bing_id: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ read_only: true,
156
+ serialized_name: 'bingId',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ end
165
+ end
166
+ end
167
+ end