azure_cognitiveservices_entitysearch 0.16.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 (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,85 @@
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 additional information about an entity such as type hints.
10
+ #
11
+ class EntitiesEntityPresentationInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [EntityScenario] The supported scenario. Possible values
16
+ # include: 'DominantEntity', 'DisambiguationItem', 'ListItem'. Default
17
+ # value: 'DominantEntity' .
18
+ attr_accessor :entity_scenario
19
+
20
+ # @return [Array<EntityType>] A list of hints that indicate the entity's
21
+ # type. The list could contain a single hint such as Movie or a list of
22
+ # hints such as Place, LocalBusiness, Restaurant. Each successive hint in
23
+ # the array narrows the entity's type.
24
+ attr_accessor :entity_type_hints
25
+
26
+ # @return [String] A display version of the entity hint. For example, if
27
+ # entityTypeHints is Artist, this field may be set to American Singer.
28
+ attr_accessor :entity_type_display_hint
29
+
30
+
31
+ #
32
+ # Mapper for EntitiesEntityPresentationInfo class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'Entities/EntityPresentationInfo',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'EntitiesEntityPresentationInfo',
43
+ model_properties: {
44
+ entity_scenario: {
45
+ client_side_validation: true,
46
+ required: true,
47
+ serialized_name: 'entityScenario',
48
+ default_value: 'DominantEntity',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ entity_type_hints: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'entityTypeHints',
58
+ type: {
59
+ name: 'Sequence',
60
+ element: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'EntityTypeElementType',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ }
68
+ }
69
+ },
70
+ entity_type_display_hint: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'entityTypeDisplayHint',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,19 @@
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 EntityQueryScenario
10
+ #
11
+ module EntityQueryScenario
12
+ DominantEntity = "DominantEntity"
13
+ DominantEntityWithDisambiguation = "DominantEntityWithDisambiguation"
14
+ Disambiguation = "Disambiguation"
15
+ List = "List"
16
+ ListWithPivot = "ListWithPivot"
17
+ end
18
+ end
19
+ end
@@ -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 EntityScenario
10
+ #
11
+ module EntityScenario
12
+ DominantEntity = "DominantEntity"
13
+ DisambiguationItem = "DisambiguationItem"
14
+ ListItem = "ListItem"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,63 @@
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 EntityType
10
+ #
11
+ module EntityType
12
+ Generic = "Generic"
13
+ Person = "Person"
14
+ Place = "Place"
15
+ Media = "Media"
16
+ Organization = "Organization"
17
+ LocalBusiness = "LocalBusiness"
18
+ Restaurant = "Restaurant"
19
+ Hotel = "Hotel"
20
+ TouristAttraction = "TouristAttraction"
21
+ Travel = "Travel"
22
+ City = "City"
23
+ Country = "Country"
24
+ Attraction = "Attraction"
25
+ House = "House"
26
+ State = "State"
27
+ RadioStation = "RadioStation"
28
+ StreetAddress = "StreetAddress"
29
+ Neighborhood = "Neighborhood"
30
+ Locality = "Locality"
31
+ PostalCode = "PostalCode"
32
+ Region = "Region"
33
+ SubRegion = "SubRegion"
34
+ MinorRegion = "MinorRegion"
35
+ Continent = "Continent"
36
+ PointOfInterest = "PointOfInterest"
37
+ Other = "Other"
38
+ Movie = "Movie"
39
+ Book = "Book"
40
+ TelevisionShow = "TelevisionShow"
41
+ TelevisionSeason = "TelevisionSeason"
42
+ VideoGame = "VideoGame"
43
+ MusicAlbum = "MusicAlbum"
44
+ MusicRecording = "MusicRecording"
45
+ MusicGroup = "MusicGroup"
46
+ Composition = "Composition"
47
+ TheaterPlay = "TheaterPlay"
48
+ Event = "Event"
49
+ Actor = "Actor"
50
+ Artist = "Artist"
51
+ Attorney = "Attorney"
52
+ Speciality = "Speciality"
53
+ CollegeOrUniversity = "CollegeOrUniversity"
54
+ School = "School"
55
+ Food = "Food"
56
+ Drug = "Drug"
57
+ Animal = "Animal"
58
+ SportsTeam = "SportsTeam"
59
+ Product = "Product"
60
+ Car = "Car"
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,116 @@
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 error that occurred.
10
+ #
11
+ class Error
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ErrorCode] The error code that identifies the category of
16
+ # error. Possible values include: 'None', 'ServerError',
17
+ # 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization',
18
+ # 'InsufficientAuthorization'. Default value: 'None' .
19
+ attr_accessor :code
20
+
21
+ # @return [ErrorSubCode] The error code that further helps to identify
22
+ # the error. Possible values include: 'UnexpectedError', 'ResourceError',
23
+ # 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue',
24
+ # 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing',
25
+ # 'AuthorizationRedundancy', 'AuthorizationDisabled',
26
+ # 'AuthorizationExpired'
27
+ attr_accessor :sub_code
28
+
29
+ # @return [String] A description of the error.
30
+ attr_accessor :message
31
+
32
+ # @return [String] A description that provides additional information
33
+ # about the error.
34
+ attr_accessor :more_details
35
+
36
+ # @return [String] The parameter in the request that caused the error.
37
+ attr_accessor :parameter
38
+
39
+ # @return [String] The parameter's value in the request that was not
40
+ # valid.
41
+ attr_accessor :value
42
+
43
+
44
+ #
45
+ # Mapper for Error class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Error',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Error',
56
+ model_properties: {
57
+ code: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'code',
61
+ default_value: 'None',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ sub_code: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'subCode',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ message: {
76
+ client_side_validation: true,
77
+ required: true,
78
+ serialized_name: 'message',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ more_details: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'moreDetails',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ parameter: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'parameter',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ value: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'value',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,20 @@
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 ErrorCode
10
+ #
11
+ module ErrorCode
12
+ None = "None"
13
+ ServerError = "ServerError"
14
+ InvalidRequest = "InvalidRequest"
15
+ RateLimitExceeded = "RateLimitExceeded"
16
+ InvalidAuthorization = "InvalidAuthorization"
17
+ InsufficientAuthorization = "InsufficientAuthorization"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,109 @@
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
+ # The top-level response that represents a failed request.
10
+ #
11
+ class ErrorResponse < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ErrorResponse"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Array<Error>] A list of errors that describe the reasons why
23
+ # the request failed.
24
+ attr_accessor :errors
25
+
26
+
27
+ #
28
+ # Mapper for ErrorResponse 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: 'ErrorResponse',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorResponse',
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
+ errors: {
87
+ client_side_validation: true,
88
+ required: true,
89
+ serialized_name: 'errors',
90
+ type: {
91
+ name: 'Sequence',
92
+ element: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ serialized_name: 'ErrorElementType',
96
+ type: {
97
+ name: 'Composite',
98
+ class_name: 'Error'
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ end
107
+ end
108
+ end
109
+ end
@@ -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::EntitySearch::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