azure_cognitiveservices_localsearch 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_localsearch.rb +54 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_localsearch/local.rb +601 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_localsearch/local_search_client.rb +128 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/action.rb +424 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/answer.rb +131 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/creative_work.rb +392 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entities_entity_presentation_info.rb +127 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entity_scenario.rb +17 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entity_type.rb +18 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb +126 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_code.rb +20 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_response.rb +154 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_sub_code.rb +25 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb +80 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/identifiable.rb +62 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/intangible.rb +162 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/place.rb +217 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/places.rb +182 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/postal_address.rb +338 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/query_context.rb +150 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response.rb +150 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response_base.rb +60 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response_format.rb +16 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/safe_search.rb +17 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_action.rb +464 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_response.rb +190 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_results_answer.rb +172 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/structured_value.rb +162 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/thing.rb +174 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_localsearch/module_definition.rb +9 -0
  33. data/lib/azure_cognitiveservices_localsearch.rb +6 -0
  34. data/lib/module_definition.rb +7 -0
  35. data/lib/profiles/latest/localsearch_latest_profile_client.rb +38 -0
  36. data/lib/profiles/latest/localsearch_module_definition.rb +8 -0
  37. data/lib/profiles/latest/modules/localsearch_profile_module.rb +163 -0
  38. data/lib/version.rb +7 -0
  39. metadata +156 -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::LocalSearch::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 [Places] A list of local entities such as restaurants or hotels
31
+ # that are relevant to the query.
32
+ attr_accessor :places
33
+
34
+ # @return [SearchResultsAnswer]
35
+ attr_accessor :lottery
36
+
37
+ # @return [Float]
38
+ attr_accessor :search_results_confidence_score
39
+
40
+
41
+ #
42
+ # Mapper for SearchResponse class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'SearchResponse',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'SearchResponse',
53
+ model_properties: {
54
+ _type: {
55
+ client_side_validation: true,
56
+ required: true,
57
+ serialized_name: '_type',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ id: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'id',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ read_link: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'readLink',
76
+ type: {
77
+ name: 'String'
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
+ potential_action: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'potentialAction',
94
+ type: {
95
+ name: 'Sequence',
96
+ element: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'ActionElementType',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'Action'
103
+ }
104
+ }
105
+ }
106
+ },
107
+ immediate_action: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ read_only: true,
111
+ serialized_name: 'immediateAction',
112
+ type: {
113
+ name: 'Sequence',
114
+ element: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'ActionElementType',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'Action'
121
+ }
122
+ }
123
+ }
124
+ },
125
+ preferred_clickthrough_url: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ read_only: true,
129
+ serialized_name: 'preferredClickthroughUrl',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ },
134
+ adaptive_card: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ read_only: true,
138
+ serialized_name: 'adaptiveCard',
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ },
143
+ query_context: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ read_only: true,
147
+ serialized_name: 'queryContext',
148
+ type: {
149
+ name: 'Composite',
150
+ polymorphic_discriminator: '_type',
151
+ uber_parent: 'QueryContext',
152
+ class_name: 'QueryContext'
153
+ }
154
+ },
155
+ places: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ read_only: true,
159
+ serialized_name: 'places',
160
+ type: {
161
+ name: 'Composite',
162
+ class_name: 'Places'
163
+ }
164
+ },
165
+ lottery: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ read_only: true,
169
+ serialized_name: 'lottery',
170
+ type: {
171
+ name: 'Composite',
172
+ class_name: 'SearchResultsAnswer'
173
+ }
174
+ },
175
+ search_results_confidence_score: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ read_only: true,
179
+ serialized_name: 'searchResultsConfidenceScore',
180
+ type: {
181
+ name: 'Double'
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ end
188
+ end
189
+ end
190
+ end
@@ -0,0 +1,172 @@
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::LocalSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a search result answer.
10
+ #
11
+ class SearchResultsAnswer < Answer
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "SearchResultsAnswer"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [QueryContext]
23
+ attr_accessor :query_context
24
+
25
+ # @return [Integer] The estimated number of webpages that are relevant to
26
+ # the query. Use this number along with the count and offset query
27
+ # parameters to page the results.
28
+ attr_accessor :total_estimated_matches
29
+
30
+ # @return [Boolean]
31
+ attr_accessor :is_family_friendly
32
+
33
+
34
+ #
35
+ # Mapper for SearchResultsAnswer class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'SearchResultsAnswer',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'SearchResultsAnswer',
46
+ model_properties: {
47
+ _type: {
48
+ client_side_validation: true,
49
+ required: true,
50
+ serialized_name: '_type',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ id: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'id',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ read_link: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'readLink',
69
+ type: {
70
+ name: 'String'
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
+ potential_action: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ read_only: true,
86
+ serialized_name: 'potentialAction',
87
+ type: {
88
+ name: 'Sequence',
89
+ element: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'ActionElementType',
93
+ type: {
94
+ name: 'Composite',
95
+ class_name: 'Action'
96
+ }
97
+ }
98
+ }
99
+ },
100
+ immediate_action: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'immediateAction',
105
+ type: {
106
+ name: 'Sequence',
107
+ element: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'ActionElementType',
111
+ type: {
112
+ name: 'Composite',
113
+ class_name: 'Action'
114
+ }
115
+ }
116
+ }
117
+ },
118
+ preferred_clickthrough_url: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'preferredClickthroughUrl',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
127
+ adaptive_card: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ read_only: true,
131
+ serialized_name: 'adaptiveCard',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ query_context: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ read_only: true,
140
+ serialized_name: 'queryContext',
141
+ type: {
142
+ name: 'Composite',
143
+ polymorphic_discriminator: '_type',
144
+ uber_parent: 'QueryContext',
145
+ class_name: 'QueryContext'
146
+ }
147
+ },
148
+ total_estimated_matches: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ read_only: true,
152
+ serialized_name: 'totalEstimatedMatches',
153
+ type: {
154
+ name: 'Number'
155
+ }
156
+ },
157
+ is_family_friendly: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ read_only: true,
161
+ serialized_name: 'isFamilyFriendly',
162
+ type: {
163
+ name: 'Boolean'
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ end
170
+ end
171
+ end
172
+ end
@@ -0,0 +1,162 @@
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::LocalSearch::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
+ read_link: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'readLink',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ web_search_url: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'webSearchUrl',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ potential_action: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'potentialAction',
77
+ type: {
78
+ name: 'Sequence',
79
+ element: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'ActionElementType',
83
+ type: {
84
+ name: 'Composite',
85
+ class_name: 'Action'
86
+ }
87
+ }
88
+ }
89
+ },
90
+ immediate_action: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'immediateAction',
95
+ type: {
96
+ name: 'Sequence',
97
+ element: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'ActionElementType',
101
+ type: {
102
+ name: 'Composite',
103
+ class_name: 'Action'
104
+ }
105
+ }
106
+ }
107
+ },
108
+ preferred_clickthrough_url: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'preferredClickthroughUrl',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ adaptive_card: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'adaptiveCard',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ name: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: 'name',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ url: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ read_only: true,
139
+ serialized_name: 'url',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ },
144
+ entity_presentation_info: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ read_only: true,
148
+ serialized_name: 'entityPresentationInfo',
149
+ type: {
150
+ name: 'Composite',
151
+ polymorphic_discriminator: '_type',
152
+ uber_parent: 'EntitiesEntityPresentationInfo',
153
+ class_name: 'EntitiesEntityPresentationInfo'
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ end
160
+ end
161
+ end
162
+ end