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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch.rb +54 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/local.rb +601 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/local_search_client.rb +128 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/action.rb +424 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/answer.rb +131 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/creative_work.rb +392 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entities_entity_presentation_info.rb +127 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entity_scenario.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/entity_type.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb +126 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_code.rb +20 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_response.rb +154 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/error_sub_code.rb +25 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb +80 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/identifiable.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/intangible.rb +162 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/place.rb +217 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/places.rb +182 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/postal_address.rb +338 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/query_context.rb +150 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response.rb +150 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response_base.rb +60 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/response_format.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/safe_search.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_action.rb +464 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_response.rb +190 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/search_results_answer.rb +172 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/structured_value.rb +162 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/models/thing.rb +174 -0
- data/lib/1.0/generated/azure_cognitiveservices_localsearch/module_definition.rb +9 -0
- data/lib/azure_cognitiveservices_localsearch.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/localsearch_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/localsearch_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/localsearch_profile_module.rb +163 -0
- data/lib/version.rb +7 -0
- metadata +156 -0
@@ -0,0 +1,127 @@
|
|
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 additional information about an entity such as type hints.
|
10
|
+
#
|
11
|
+
class EntitiesEntityPresentationInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
@@discriminatorMap = Hash.new
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "Entities/EntityPresentationInfo"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
# @return [EntityScenario] The supported scenario. Possible values
|
24
|
+
# include: 'DominantEntity', 'DisambiguationItem', 'ListItem'. Default
|
25
|
+
# value: 'DominantEntity' .
|
26
|
+
attr_accessor :entity_scenario
|
27
|
+
|
28
|
+
# @return [Array<EntityType>] A list of hints that indicate the entity's
|
29
|
+
# type. The list could contain a single hint such as Movie or a list of
|
30
|
+
# hints such as Place, LocalBusiness, Restaurant. Each successive hint in
|
31
|
+
# the array narrows the entity's type.
|
32
|
+
attr_accessor :entity_type_hints
|
33
|
+
|
34
|
+
# @return [String] A display version of the entity hint. For example, if
|
35
|
+
# entityTypeHints is Artist, this field may be set to American Singer.
|
36
|
+
attr_accessor :entity_type_display_hint
|
37
|
+
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :query
|
40
|
+
|
41
|
+
# @return [Array<String>]
|
42
|
+
attr_accessor :entity_sub_type_hints
|
43
|
+
|
44
|
+
|
45
|
+
#
|
46
|
+
# Mapper for EntitiesEntityPresentationInfo class as Ruby Hash.
|
47
|
+
# This will be used for serialization/deserialization.
|
48
|
+
#
|
49
|
+
def self.mapper()
|
50
|
+
{
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'Entities/EntityPresentationInfo',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
polymorphic_discriminator: '_type',
|
57
|
+
uber_parent: 'EntitiesEntityPresentationInfo',
|
58
|
+
class_name: 'EntitiesEntityPresentationInfo',
|
59
|
+
model_properties: {
|
60
|
+
entity_scenario: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: true,
|
63
|
+
serialized_name: 'entityScenario',
|
64
|
+
default_value: 'DominantEntity',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
entity_type_hints: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'entityTypeHints',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'EntityTypeElementType',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
entity_type_display_hint: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
read_only: true,
|
90
|
+
serialized_name: 'entityTypeDisplayHint',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
query: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
read_only: true,
|
99
|
+
serialized_name: 'query',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
},
|
104
|
+
entity_sub_type_hints: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
read_only: true,
|
108
|
+
serialized_name: 'entitySubTypeHints',
|
109
|
+
type: {
|
110
|
+
name: 'Sequence',
|
111
|
+
element: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
serialized_name: 'StringElementType',
|
115
|
+
type: {
|
116
|
+
name: 'String'
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
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::LocalSearch::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,18 @@
|
|
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 EntityType
|
10
|
+
#
|
11
|
+
module EntityType
|
12
|
+
Place = "Place"
|
13
|
+
LocalBusiness = "LocalBusiness"
|
14
|
+
Restaurant = "Restaurant"
|
15
|
+
Hotel = "Hotel"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,126 @@
|
|
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 error that occurred.
|
10
|
+
#
|
11
|
+
class Error
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
@@discriminatorMap = Hash.new
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "Error"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
# @return [ErrorCode] The error code that identifies the category of
|
24
|
+
# error. Possible values include: 'None', 'ServerError',
|
25
|
+
# 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization',
|
26
|
+
# 'InsufficientAuthorization'. Default value: 'None' .
|
27
|
+
attr_accessor :code
|
28
|
+
|
29
|
+
# @return [ErrorSubCode] The error code that further helps to identify
|
30
|
+
# the error. Possible values include: 'UnexpectedError', 'ResourceError',
|
31
|
+
# 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue',
|
32
|
+
# 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing',
|
33
|
+
# 'AuthorizationRedundancy', 'AuthorizationDisabled',
|
34
|
+
# 'AuthorizationExpired'
|
35
|
+
attr_accessor :sub_code
|
36
|
+
|
37
|
+
# @return [String] A description of the error.
|
38
|
+
attr_accessor :message
|
39
|
+
|
40
|
+
# @return [String] A description that provides additional information
|
41
|
+
# about the error.
|
42
|
+
attr_accessor :more_details
|
43
|
+
|
44
|
+
# @return [String] The parameter in the request that caused the error.
|
45
|
+
attr_accessor :parameter
|
46
|
+
|
47
|
+
# @return [String] The parameter's value in the request that was not
|
48
|
+
# valid.
|
49
|
+
attr_accessor :value
|
50
|
+
|
51
|
+
|
52
|
+
#
|
53
|
+
# Mapper for Error class as Ruby Hash.
|
54
|
+
# This will be used for serialization/deserialization.
|
55
|
+
#
|
56
|
+
def self.mapper()
|
57
|
+
{
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'Error',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
polymorphic_discriminator: '_type',
|
64
|
+
uber_parent: 'Error',
|
65
|
+
class_name: 'Error',
|
66
|
+
model_properties: {
|
67
|
+
code: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: true,
|
70
|
+
serialized_name: 'code',
|
71
|
+
default_value: 'None',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
sub_code: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
read_only: true,
|
80
|
+
serialized_name: 'subCode',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
message: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: true,
|
88
|
+
serialized_name: 'message',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
more_details: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
read_only: true,
|
97
|
+
serialized_name: 'moreDetails',
|
98
|
+
type: {
|
99
|
+
name: 'String'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
parameter: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
read_only: true,
|
106
|
+
serialized_name: 'parameter',
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
value: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
read_only: true,
|
115
|
+
serialized_name: 'value',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
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::LocalSearch::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,154 @@
|
|
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
|
+
# 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
|
+
read_link: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'readLink',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
web_search_url: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
read_only: true,
|
70
|
+
serialized_name: 'webSearchUrl',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
potential_action: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
read_only: true,
|
79
|
+
serialized_name: 'potentialAction',
|
80
|
+
type: {
|
81
|
+
name: 'Sequence',
|
82
|
+
element: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'ActionElementType',
|
86
|
+
type: {
|
87
|
+
name: 'Composite',
|
88
|
+
class_name: 'Action'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
},
|
93
|
+
immediate_action: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
read_only: true,
|
97
|
+
serialized_name: 'immediateAction',
|
98
|
+
type: {
|
99
|
+
name: 'Sequence',
|
100
|
+
element: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'ActionElementType',
|
104
|
+
type: {
|
105
|
+
name: 'Composite',
|
106
|
+
class_name: 'Action'
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
},
|
111
|
+
preferred_clickthrough_url: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
read_only: true,
|
115
|
+
serialized_name: 'preferredClickthroughUrl',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
adaptive_card: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: false,
|
123
|
+
read_only: true,
|
124
|
+
serialized_name: 'adaptiveCard',
|
125
|
+
type: {
|
126
|
+
name: 'String'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
errors: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: true,
|
132
|
+
serialized_name: 'errors',
|
133
|
+
type: {
|
134
|
+
name: 'Sequence',
|
135
|
+
element: {
|
136
|
+
client_side_validation: true,
|
137
|
+
required: false,
|
138
|
+
serialized_name: 'ErrorElementType',
|
139
|
+
type: {
|
140
|
+
name: 'Composite',
|
141
|
+
polymorphic_discriminator: '_type',
|
142
|
+
uber_parent: 'Error',
|
143
|
+
class_name: 'Error'
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|