azure_cognitiveservices_entitysearch 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,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::EntitySearch::V1_0
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class EntitySearchClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials1
|
19
|
+
|
20
|
+
# @return Subscription credentials which uniquely identify client
|
21
|
+
# subscription.
|
22
|
+
attr_accessor :credentials
|
23
|
+
|
24
|
+
# @return [String] Gets or sets the preferred language for the response.
|
25
|
+
attr_accessor :accept_language
|
26
|
+
|
27
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
28
|
+
# Running Operations. Default value is 30.
|
29
|
+
attr_accessor :long_running_operation_retry_timeout
|
30
|
+
|
31
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
32
|
+
# is generated and included in each request. Default is true.
|
33
|
+
attr_accessor :generate_client_request_id
|
34
|
+
|
35
|
+
# @return [EntitiesOperations] entities_operations
|
36
|
+
attr_reader :entities_operations
|
37
|
+
|
38
|
+
#
|
39
|
+
# Creates initializes a new instance of the EntitySearchClient class.
|
40
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
41
|
+
# @param base_url [String] the base URI of the service.
|
42
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
43
|
+
#
|
44
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
45
|
+
super(credentials, options)
|
46
|
+
@base_url = base_url || 'https://api.cognitive.microsoft.com/bing/v7.0'
|
47
|
+
|
48
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
49
|
+
@credentials = credentials
|
50
|
+
|
51
|
+
@entities_operations = EntitiesOperations.new(self)
|
52
|
+
@accept_language = 'en-US'
|
53
|
+
@long_running_operation_retry_timeout = 30
|
54
|
+
@generate_client_request_id = true
|
55
|
+
add_telemetry
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Makes a request and returns the body of the response.
|
60
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
61
|
+
# @param path [String] the path, relative to {base_url}.
|
62
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
63
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
64
|
+
# Example:
|
65
|
+
#
|
66
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
67
|
+
# path = "/path"
|
68
|
+
# options = {
|
69
|
+
# body: request_content,
|
70
|
+
# query_params: {'api-version' => '2016-02-01'}
|
71
|
+
# }
|
72
|
+
# result = @client.make_request(:put, path, options)
|
73
|
+
#
|
74
|
+
def make_request(method, path, options = {})
|
75
|
+
result = make_request_with_http_info(method, path, options)
|
76
|
+
result.body unless result.nil?
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
# Makes a request and returns the operation response.
|
81
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
82
|
+
# @param path [String] the path, relative to {base_url}.
|
83
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
84
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
85
|
+
#
|
86
|
+
def make_request_with_http_info(method, path, options = {})
|
87
|
+
result = make_request_async(method, path, options).value!
|
88
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
89
|
+
result
|
90
|
+
end
|
91
|
+
|
92
|
+
#
|
93
|
+
# Makes a request asynchronously.
|
94
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
95
|
+
# @param path [String] the path, relative to {base_url}.
|
96
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
97
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
98
|
+
#
|
99
|
+
def make_request_async(method, path, options = {})
|
100
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
101
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
102
|
+
|
103
|
+
request_url = options[:base_url] || @base_url
|
104
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
105
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
106
|
+
end
|
107
|
+
|
108
|
+
request_headers = @request_headers
|
109
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
110
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
111
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
112
|
+
|
113
|
+
super(request_url, method, path, options)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
private
|
118
|
+
#
|
119
|
+
# Adds telemetry information.
|
120
|
+
#
|
121
|
+
def add_telemetry
|
122
|
+
sdk_information = 'azure_cognitiveservices_entitysearch'
|
123
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
124
|
+
add_user_agent_information(sdk_information)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
@@ -0,0 +1,188 @@
|
|
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 Airport < CivicStructure
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "Airport"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :iata_code
|
25
|
+
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :icao_code
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for Airport class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'Airport',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'Airport',
|
42
|
+
model_properties: {
|
43
|
+
_type: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: '_type',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
id: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'id',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
contractual_rules: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'contractualRules',
|
65
|
+
type: {
|
66
|
+
name: 'Sequence',
|
67
|
+
element: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'ContractualRulesContractualRuleElementType',
|
71
|
+
type: {
|
72
|
+
name: 'Composite',
|
73
|
+
polymorphic_discriminator: '_type',
|
74
|
+
uber_parent: 'ContractualRulesContractualRule',
|
75
|
+
class_name: 'ContractualRulesContractualRule'
|
76
|
+
}
|
77
|
+
}
|
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
|
+
name: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
read_only: true,
|
93
|
+
serialized_name: 'name',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
url: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
read_only: true,
|
102
|
+
serialized_name: 'url',
|
103
|
+
type: {
|
104
|
+
name: 'String'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
image: {
|
108
|
+
client_side_validation: true,
|
109
|
+
required: false,
|
110
|
+
read_only: true,
|
111
|
+
serialized_name: 'image',
|
112
|
+
type: {
|
113
|
+
name: 'Composite',
|
114
|
+
class_name: 'ImageObject'
|
115
|
+
}
|
116
|
+
},
|
117
|
+
description: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
read_only: true,
|
121
|
+
serialized_name: 'description',
|
122
|
+
type: {
|
123
|
+
name: 'String'
|
124
|
+
}
|
125
|
+
},
|
126
|
+
entity_presentation_info: {
|
127
|
+
client_side_validation: true,
|
128
|
+
required: false,
|
129
|
+
read_only: true,
|
130
|
+
serialized_name: 'entityPresentationInfo',
|
131
|
+
type: {
|
132
|
+
name: 'Composite',
|
133
|
+
class_name: 'EntitiesEntityPresentationInfo'
|
134
|
+
}
|
135
|
+
},
|
136
|
+
bing_id: {
|
137
|
+
client_side_validation: true,
|
138
|
+
required: false,
|
139
|
+
read_only: true,
|
140
|
+
serialized_name: 'bingId',
|
141
|
+
type: {
|
142
|
+
name: 'String'
|
143
|
+
}
|
144
|
+
},
|
145
|
+
address: {
|
146
|
+
client_side_validation: true,
|
147
|
+
required: false,
|
148
|
+
read_only: true,
|
149
|
+
serialized_name: 'address',
|
150
|
+
type: {
|
151
|
+
name: 'Composite',
|
152
|
+
class_name: 'PostalAddress'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
telephone: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
read_only: true,
|
159
|
+
serialized_name: 'telephone',
|
160
|
+
type: {
|
161
|
+
name: 'String'
|
162
|
+
}
|
163
|
+
},
|
164
|
+
iata_code: {
|
165
|
+
client_side_validation: true,
|
166
|
+
required: false,
|
167
|
+
read_only: true,
|
168
|
+
serialized_name: 'iataCode',
|
169
|
+
type: {
|
170
|
+
name: 'String'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
icao_code: {
|
174
|
+
client_side_validation: true,
|
175
|
+
required: false,
|
176
|
+
read_only: true,
|
177
|
+
serialized_name: 'icaoCode',
|
178
|
+
type: {
|
179
|
+
name: 'String'
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
@@ -0,0 +1,89 @@
|
|
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 Answer < Response
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "Answer"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for Answer 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: 'Answer',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'Answer',
|
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
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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 AnswerType
|
10
|
+
#
|
11
|
+
module AnswerType
|
12
|
+
Entities = "Entities"
|
13
|
+
Places = "Places"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -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 CivicStructure < Place
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "CivicStructure"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for CivicStructure 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: 'CivicStructure',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'CivicStructure',
|
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
|