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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch.rb +74 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/entities_operations.rb +573 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/entity_search_client.rb +127 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/airport.rb +188 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/answer.rb +89 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/answer_type.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/civic_structure.rb +164 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_attribution.rb +76 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_contractual_rule.rb +63 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_license_attribution.rb +93 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_link_attribution.rb +104 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_media_attribution.rb +82 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_text_attribution.rb +96 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/creative_work.rb +190 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entertainment_business.rb +209 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entities.rb +142 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entities_entity_presentation_info.rb +85 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_query_scenario.rb +19 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_scenario.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_type.rb +63 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error.rb +116 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_code.rb +20 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_response.rb +109 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_sub_code.rb +25 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/food_establishment.rb +209 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/hotel.rb +241 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/identifiable.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/image_object.rb +229 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/intangible.rb +145 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/license.rb +180 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/local_business.rb +221 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/lodging_business.rb +209 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/media_object.rb +230 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/movie_theater.rb +221 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/organization.rb +144 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/place.rb +170 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/places.rb +119 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/postal_address.rb +285 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/query_context.rb +114 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response.rb +96 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response_base.rb +74 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response_format.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/restaurant.rb +265 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/safe_search.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/search_response.rb +134 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/search_results_answer.rb +102 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/structured_value.rb +145 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/thing.rb +167 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/tourist_attraction.rb +164 -0
- data/lib/1.0/generated/azure_cognitiveservices_entitysearch/module_definition.rb +9 -0
- data/lib/azure_cognitiveservices_entitysearch.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/entitysearch_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/entitysearch_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/entitysearch_profile_module.rb +243 -0
- data/lib/version.rb +7 -0
- metadata +176 -0
|
@@ -0,0 +1,164 @@
|
|
|
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 TouristAttraction < Place
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def initialize
|
|
18
|
+
@_type = "TouristAttraction"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
attr_accessor :_type
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
# Mapper for TouristAttraction 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: 'TouristAttraction',
|
|
33
|
+
type: {
|
|
34
|
+
name: 'Composite',
|
|
35
|
+
class_name: 'TouristAttraction',
|
|
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
|
+
address: {
|
|
140
|
+
client_side_validation: true,
|
|
141
|
+
required: false,
|
|
142
|
+
read_only: true,
|
|
143
|
+
serialized_name: 'address',
|
|
144
|
+
type: {
|
|
145
|
+
name: 'Composite',
|
|
146
|
+
class_name: 'PostalAddress'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
telephone: {
|
|
150
|
+
client_side_validation: true,
|
|
151
|
+
required: false,
|
|
152
|
+
read_only: true,
|
|
153
|
+
serialized_name: 'telephone',
|
|
154
|
+
type: {
|
|
155
|
+
name: 'String'
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
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 end
|
|
7
|
+
module Azure::CognitiveServices end
|
|
8
|
+
module Azure::CognitiveServices::EntitySearch end
|
|
9
|
+
module Azure::CognitiveServices::EntitySearch::V1_0 end
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
require '1.0/generated/azure_cognitiveservices_entitysearch'
|
|
6
|
+
require 'profiles/latest/entitysearch_latest_profile_client'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
module Azure end
|
|
6
|
+
module Azure::CognitiveServices end
|
|
7
|
+
module Azure::CognitiveServices::EntitySearch end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
require 'profiles/latest/entitysearch_module_definition'
|
|
6
|
+
require 'profiles/latest/modules/entitysearch_profile_module'
|
|
7
|
+
|
|
8
|
+
module Azure::EntitySearch::Profiles::Latest
|
|
9
|
+
#
|
|
10
|
+
# Client class for the Latest profile SDK.
|
|
11
|
+
#
|
|
12
|
+
class Client < EntitySearchDataClass
|
|
13
|
+
include MsRestAzure::Common::Configurable
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
# Initializes a new instance of the Client class.
|
|
17
|
+
# @param options [Hash] hash of client options.
|
|
18
|
+
# options = {
|
|
19
|
+
# tenant_id: 'YOUR TENANT ID',
|
|
20
|
+
# client_id: 'YOUR CLIENT ID',
|
|
21
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
|
22
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
|
23
|
+
# credentials: credentials,
|
|
24
|
+
# active_directory_settings: active_directory_settings,
|
|
25
|
+
# base_url: 'YOUR BASE URL',
|
|
26
|
+
# options: options
|
|
27
|
+
# }
|
|
28
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
|
29
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
|
30
|
+
#
|
|
31
|
+
# Also, base_url, active_directory_settings & options are optional.
|
|
32
|
+
#
|
|
33
|
+
def initialize(options = {})
|
|
34
|
+
super(options)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
module Azure end
|
|
6
|
+
module Azure::EntitySearch end
|
|
7
|
+
module Azure::EntitySearch::Profiles end
|
|
8
|
+
module Azure::EntitySearch::Profiles::Latest end
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
require 'azure_cognitiveservices_entitysearch'
|
|
6
|
+
|
|
7
|
+
module Azure::EntitySearch::Profiles::Latest
|
|
8
|
+
EntitiesOperations = Azure::CognitiveServices::EntitySearch::V1_0::EntitiesOperations
|
|
9
|
+
|
|
10
|
+
module Models
|
|
11
|
+
ResponseBase = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase
|
|
12
|
+
QueryContext = Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext
|
|
13
|
+
ContractualRulesContractualRule = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesContractualRule
|
|
14
|
+
EntitiesEntityPresentationInfo = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntitiesEntityPresentationInfo
|
|
15
|
+
Error = Azure::CognitiveServices::EntitySearch::V1_0::Models::Error
|
|
16
|
+
ImageObject = Azure::CognitiveServices::EntitySearch::V1_0::Models::ImageObject
|
|
17
|
+
Response = Azure::CognitiveServices::EntitySearch::V1_0::Models::Response
|
|
18
|
+
Thing = Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing
|
|
19
|
+
SearchResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse
|
|
20
|
+
Answer = Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer
|
|
21
|
+
SearchResultsAnswer = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer
|
|
22
|
+
Entities = Azure::CognitiveServices::EntitySearch::V1_0::Models::Entities
|
|
23
|
+
Places = Azure::CognitiveServices::EntitySearch::V1_0::Models::Places
|
|
24
|
+
Identifiable = Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable
|
|
25
|
+
ErrorResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse
|
|
26
|
+
PostalAddress = Azure::CognitiveServices::EntitySearch::V1_0::Models::PostalAddress
|
|
27
|
+
Place = Azure::CognitiveServices::EntitySearch::V1_0::Models::Place
|
|
28
|
+
Organization = Azure::CognitiveServices::EntitySearch::V1_0::Models::Organization
|
|
29
|
+
CreativeWork = Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork
|
|
30
|
+
Intangible = Azure::CognitiveServices::EntitySearch::V1_0::Models::Intangible
|
|
31
|
+
ContractualRulesAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution
|
|
32
|
+
MediaObject = Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject
|
|
33
|
+
CivicStructure = Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure
|
|
34
|
+
LocalBusiness = Azure::CognitiveServices::EntitySearch::V1_0::Models::LocalBusiness
|
|
35
|
+
TouristAttraction = Azure::CognitiveServices::EntitySearch::V1_0::Models::TouristAttraction
|
|
36
|
+
Airport = Azure::CognitiveServices::EntitySearch::V1_0::Models::Airport
|
|
37
|
+
License = Azure::CognitiveServices::EntitySearch::V1_0::Models::License
|
|
38
|
+
StructuredValue = Azure::CognitiveServices::EntitySearch::V1_0::Models::StructuredValue
|
|
39
|
+
EntertainmentBusiness = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntertainmentBusiness
|
|
40
|
+
MovieTheater = Azure::CognitiveServices::EntitySearch::V1_0::Models::MovieTheater
|
|
41
|
+
ContractualRulesLicenseAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesLicenseAttribution
|
|
42
|
+
ContractualRulesLinkAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesLinkAttribution
|
|
43
|
+
ContractualRulesMediaAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesMediaAttribution
|
|
44
|
+
ContractualRulesTextAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesTextAttribution
|
|
45
|
+
FoodEstablishment = Azure::CognitiveServices::EntitySearch::V1_0::Models::FoodEstablishment
|
|
46
|
+
LodgingBusiness = Azure::CognitiveServices::EntitySearch::V1_0::Models::LodgingBusiness
|
|
47
|
+
Restaurant = Azure::CognitiveServices::EntitySearch::V1_0::Models::Restaurant
|
|
48
|
+
Hotel = Azure::CognitiveServices::EntitySearch::V1_0::Models::Hotel
|
|
49
|
+
EntityQueryScenario = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityQueryScenario
|
|
50
|
+
EntityScenario = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityScenario
|
|
51
|
+
EntityType = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType
|
|
52
|
+
ErrorCode = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode
|
|
53
|
+
ErrorSubCode = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode
|
|
54
|
+
AnswerType = Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType
|
|
55
|
+
ResponseFormat = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat
|
|
56
|
+
SafeSearch = Azure::CognitiveServices::EntitySearch::V1_0::Models::SafeSearch
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
#
|
|
60
|
+
# EntitySearchDataClass
|
|
61
|
+
#
|
|
62
|
+
class EntitySearchDataClass
|
|
63
|
+
attr_reader :entities_operations, :configurable, :base_url, :options, :model_classes
|
|
64
|
+
|
|
65
|
+
def initialize(options = {})
|
|
66
|
+
if options.is_a?(Hash) && options.length == 0
|
|
67
|
+
@options = setup_default_options
|
|
68
|
+
else
|
|
69
|
+
@options = options
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
reset!(options)
|
|
73
|
+
|
|
74
|
+
@configurable = self
|
|
75
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
|
76
|
+
@options = options[:options].nil? ? nil:options[:options]
|
|
77
|
+
|
|
78
|
+
@client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.new(configurable.credentials, base_url, options)
|
|
79
|
+
if(@client_0.respond_to?(:subscription_id))
|
|
80
|
+
@client_0.subscription_id = configurable.subscription_id
|
|
81
|
+
end
|
|
82
|
+
add_telemetry(@client_0)
|
|
83
|
+
@entities_operations = @client_0.entities_operations
|
|
84
|
+
|
|
85
|
+
@model_classes = ModelClasses.new
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def add_telemetry(client)
|
|
89
|
+
profile_information = 'Profiles/Latest/EntitySearch'
|
|
90
|
+
client.add_user_agent_information(profile_information)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def method_missing(method, *args)
|
|
94
|
+
if @client_0.respond_to?method
|
|
95
|
+
@client_0.send(method, *args)
|
|
96
|
+
else
|
|
97
|
+
super
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class ModelClasses
|
|
104
|
+
def response_base
|
|
105
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase
|
|
106
|
+
end
|
|
107
|
+
def query_context
|
|
108
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext
|
|
109
|
+
end
|
|
110
|
+
def contractual_rules_contractual_rule
|
|
111
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesContractualRule
|
|
112
|
+
end
|
|
113
|
+
def entities_entity_presentation_info
|
|
114
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::EntitiesEntityPresentationInfo
|
|
115
|
+
end
|
|
116
|
+
def error
|
|
117
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Error
|
|
118
|
+
end
|
|
119
|
+
def image_object
|
|
120
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ImageObject
|
|
121
|
+
end
|
|
122
|
+
def response
|
|
123
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Response
|
|
124
|
+
end
|
|
125
|
+
def thing
|
|
126
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing
|
|
127
|
+
end
|
|
128
|
+
def search_response
|
|
129
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse
|
|
130
|
+
end
|
|
131
|
+
def answer
|
|
132
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer
|
|
133
|
+
end
|
|
134
|
+
def search_results_answer
|
|
135
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer
|
|
136
|
+
end
|
|
137
|
+
def entities
|
|
138
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Entities
|
|
139
|
+
end
|
|
140
|
+
def places
|
|
141
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Places
|
|
142
|
+
end
|
|
143
|
+
def identifiable
|
|
144
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable
|
|
145
|
+
end
|
|
146
|
+
def error_response
|
|
147
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse
|
|
148
|
+
end
|
|
149
|
+
def postal_address
|
|
150
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::PostalAddress
|
|
151
|
+
end
|
|
152
|
+
def place
|
|
153
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Place
|
|
154
|
+
end
|
|
155
|
+
def organization
|
|
156
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Organization
|
|
157
|
+
end
|
|
158
|
+
def creative_work
|
|
159
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork
|
|
160
|
+
end
|
|
161
|
+
def intangible
|
|
162
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Intangible
|
|
163
|
+
end
|
|
164
|
+
def contractual_rules_attribution
|
|
165
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution
|
|
166
|
+
end
|
|
167
|
+
def media_object
|
|
168
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject
|
|
169
|
+
end
|
|
170
|
+
def civic_structure
|
|
171
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure
|
|
172
|
+
end
|
|
173
|
+
def local_business
|
|
174
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::LocalBusiness
|
|
175
|
+
end
|
|
176
|
+
def tourist_attraction
|
|
177
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::TouristAttraction
|
|
178
|
+
end
|
|
179
|
+
def airport
|
|
180
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Airport
|
|
181
|
+
end
|
|
182
|
+
def license
|
|
183
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::License
|
|
184
|
+
end
|
|
185
|
+
def structured_value
|
|
186
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::StructuredValue
|
|
187
|
+
end
|
|
188
|
+
def entertainment_business
|
|
189
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::EntertainmentBusiness
|
|
190
|
+
end
|
|
191
|
+
def movie_theater
|
|
192
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::MovieTheater
|
|
193
|
+
end
|
|
194
|
+
def contractual_rules_license_attribution
|
|
195
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesLicenseAttribution
|
|
196
|
+
end
|
|
197
|
+
def contractual_rules_link_attribution
|
|
198
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesLinkAttribution
|
|
199
|
+
end
|
|
200
|
+
def contractual_rules_media_attribution
|
|
201
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesMediaAttribution
|
|
202
|
+
end
|
|
203
|
+
def contractual_rules_text_attribution
|
|
204
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesTextAttribution
|
|
205
|
+
end
|
|
206
|
+
def food_establishment
|
|
207
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::FoodEstablishment
|
|
208
|
+
end
|
|
209
|
+
def lodging_business
|
|
210
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::LodgingBusiness
|
|
211
|
+
end
|
|
212
|
+
def restaurant
|
|
213
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Restaurant
|
|
214
|
+
end
|
|
215
|
+
def hotel
|
|
216
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::Hotel
|
|
217
|
+
end
|
|
218
|
+
def entity_query_scenario
|
|
219
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityQueryScenario
|
|
220
|
+
end
|
|
221
|
+
def entity_scenario
|
|
222
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityScenario
|
|
223
|
+
end
|
|
224
|
+
def entity_type
|
|
225
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType
|
|
226
|
+
end
|
|
227
|
+
def error_code
|
|
228
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode
|
|
229
|
+
end
|
|
230
|
+
def error_sub_code
|
|
231
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode
|
|
232
|
+
end
|
|
233
|
+
def answer_type
|
|
234
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType
|
|
235
|
+
end
|
|
236
|
+
def response_format
|
|
237
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat
|
|
238
|
+
end
|
|
239
|
+
def safe_search
|
|
240
|
+
Azure::CognitiveServices::EntitySearch::V1_0::Models::SafeSearch
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|