azure_cognitiveservices_localsearch 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,25 @@
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 values for ErrorSubCode
10
+ #
11
+ module ErrorSubCode
12
+ UnexpectedError = "UnexpectedError"
13
+ ResourceError = "ResourceError"
14
+ NotImplemented = "NotImplemented"
15
+ ParameterMissing = "ParameterMissing"
16
+ ParameterInvalidValue = "ParameterInvalidValue"
17
+ HttpNotAllowed = "HttpNotAllowed"
18
+ Blocked = "Blocked"
19
+ AuthorizationMissing = "AuthorizationMissing"
20
+ AuthorizationRedundancy = "AuthorizationRedundancy"
21
+ AuthorizationDisabled = "AuthorizationDisabled"
22
+ AuthorizationExpired = "AuthorizationExpired"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,80 @@
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 GeoCoordinates
13
+
14
+ include MsRestAzure
15
+
16
+ @@discriminatorMap = Hash.new
17
+
18
+ def initialize
19
+ @_type = "GeoCoordinates"
20
+ end
21
+
22
+ attr_accessor :_type
23
+
24
+ # @return [Float]
25
+ attr_accessor :latitude
26
+
27
+ # @return [Float]
28
+ attr_accessor :longitude
29
+
30
+ # @return [Float]
31
+ attr_accessor :elevation
32
+
33
+
34
+ #
35
+ # Mapper for GeoCoordinates 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: 'GeoCoordinates',
43
+ type: {
44
+ name: 'Composite',
45
+ polymorphic_discriminator: '_type',
46
+ uber_parent: 'GeoCoordinates',
47
+ class_name: 'GeoCoordinates',
48
+ model_properties: {
49
+ latitude: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: 'latitude',
53
+ type: {
54
+ name: 'Double'
55
+ }
56
+ },
57
+ longitude: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'longitude',
61
+ type: {
62
+ name: 'Double'
63
+ }
64
+ },
65
+ elevation: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'elevation',
70
+ type: {
71
+ name: 'Double'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,62 @@
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 identity of a resource.
10
+ #
11
+ class Identifiable < ResponseBase
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Identifiable"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] A String identifier.
23
+ attr_accessor :id
24
+
25
+
26
+ #
27
+ # Mapper for Identifiable class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'Identifiable',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'Identifiable',
38
+ model_properties: {
39
+ _type: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: '_type',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ 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
+ # A utility class that serves as the umbrella for a number of 'intangible'
10
+ # things such as quantities, structured values, etc.
11
+ #
12
+ class Intangible < Thing
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Intangible"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+
24
+ #
25
+ # Mapper for Intangible 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: 'Intangible',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'Intangible',
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
@@ -0,0 +1,217 @@
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 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 [GeoCoordinates]
23
+ attr_accessor :geo
24
+
25
+ # @return [GeoCoordinates]
26
+ attr_accessor :routable_point
27
+
28
+ # @return [PostalAddress] The postal address of where the entity is
29
+ # located
30
+ attr_accessor :address
31
+
32
+ # @return [String] The entity's telephone number
33
+ attr_accessor :telephone
34
+
35
+
36
+ #
37
+ # Mapper for Place 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: 'Place',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'Place',
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
+ read_link: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'readLink',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ web_search_url: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'webSearchUrl',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ potential_action: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'potentialAction',
89
+ type: {
90
+ name: 'Sequence',
91
+ element: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'ActionElementType',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'Action'
98
+ }
99
+ }
100
+ }
101
+ },
102
+ immediate_action: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'immediateAction',
107
+ type: {
108
+ name: 'Sequence',
109
+ element: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ serialized_name: 'ActionElementType',
113
+ type: {
114
+ name: 'Composite',
115
+ class_name: 'Action'
116
+ }
117
+ }
118
+ }
119
+ },
120
+ preferred_clickthrough_url: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'preferredClickthroughUrl',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ adaptive_card: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'adaptiveCard',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ name: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ read_only: true,
142
+ serialized_name: 'name',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ },
147
+ url: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ read_only: true,
151
+ serialized_name: 'url',
152
+ type: {
153
+ name: 'String'
154
+ }
155
+ },
156
+ entity_presentation_info: {
157
+ client_side_validation: true,
158
+ required: false,
159
+ read_only: true,
160
+ serialized_name: 'entityPresentationInfo',
161
+ type: {
162
+ name: 'Composite',
163
+ polymorphic_discriminator: '_type',
164
+ uber_parent: 'EntitiesEntityPresentationInfo',
165
+ class_name: 'EntitiesEntityPresentationInfo'
166
+ }
167
+ },
168
+ geo: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ read_only: true,
172
+ serialized_name: 'geo',
173
+ type: {
174
+ name: 'Composite',
175
+ polymorphic_discriminator: '_type',
176
+ uber_parent: 'GeoCoordinates',
177
+ class_name: 'GeoCoordinates'
178
+ }
179
+ },
180
+ routable_point: {
181
+ client_side_validation: true,
182
+ required: false,
183
+ read_only: true,
184
+ serialized_name: 'routablePoint',
185
+ type: {
186
+ name: 'Composite',
187
+ polymorphic_discriminator: '_type',
188
+ uber_parent: 'GeoCoordinates',
189
+ class_name: 'GeoCoordinates'
190
+ }
191
+ },
192
+ address: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ read_only: true,
196
+ serialized_name: 'address',
197
+ type: {
198
+ name: 'Composite',
199
+ class_name: 'PostalAddress'
200
+ }
201
+ },
202
+ telephone: {
203
+ client_side_validation: true,
204
+ required: false,
205
+ read_only: true,
206
+ serialized_name: 'telephone',
207
+ type: {
208
+ name: 'String'
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ end
215
+ end
216
+ end
217
+ end