aws-sdk-cloudsearchdomain 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudsearchdomain.rb +2 -2
- data/lib/aws-sdk-cloudsearchdomain/client.rb +713 -669
- data/lib/aws-sdk-cloudsearchdomain/client_api.rb +218 -220
- data/lib/aws-sdk-cloudsearchdomain/errors.rb +4 -13
- data/lib/aws-sdk-cloudsearchdomain/plugins/switch_to_post.rb +38 -0
- data/lib/aws-sdk-cloudsearchdomain/resource.rb +12 -14
- data/lib/aws-sdk-cloudsearchdomain/types.rb +797 -764
- metadata +3 -2
@@ -1,230 +1,228 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
# @api private
|
187
|
-
API = Seahorse::Model::Api.new.tap do |api|
|
188
|
-
|
189
|
-
api.version = "2013-01-01"
|
190
|
-
|
191
|
-
api.metadata = {
|
192
|
-
"endpointPrefix" => "cloudsearchdomain",
|
193
|
-
"jsonVersion" => "1.1",
|
194
|
-
"protocol" => "rest-json",
|
195
|
-
"serviceFullName" => "Amazon CloudSearch Domain",
|
196
|
-
"signatureVersion" => "v4",
|
197
|
-
"signingName" => "cloudsearch",
|
198
|
-
}
|
199
|
-
|
200
|
-
api.add_operation(:search, Seahorse::Model::Operation.new.tap do |o|
|
201
|
-
o.name = "Search"
|
202
|
-
o.http_method = "GET"
|
203
|
-
o.http_request_uri = "/2013-01-01/search?format=sdk&pretty=true"
|
204
|
-
o.input = Shapes::ShapeRef.new(shape: SearchRequest)
|
205
|
-
o.output = Shapes::ShapeRef.new(shape: SearchResponse)
|
206
|
-
o.errors << Shapes::ShapeRef.new(shape: SearchException)
|
207
|
-
end)
|
208
|
-
|
209
|
-
api.add_operation(:suggest, Seahorse::Model::Operation.new.tap do |o|
|
210
|
-
o.name = "Suggest"
|
211
|
-
o.http_method = "GET"
|
212
|
-
o.http_request_uri = "/2013-01-01/suggest?format=sdk&pretty=true"
|
213
|
-
o.input = Shapes::ShapeRef.new(shape: SuggestRequest)
|
214
|
-
o.output = Shapes::ShapeRef.new(shape: SuggestResponse)
|
215
|
-
o.errors << Shapes::ShapeRef.new(shape: SearchException)
|
216
|
-
end)
|
217
|
-
|
218
|
-
api.add_operation(:upload_documents, Seahorse::Model::Operation.new.tap do |o|
|
219
|
-
o.name = "UploadDocuments"
|
220
|
-
o.http_method = "POST"
|
221
|
-
o.http_request_uri = "/2013-01-01/documents/batch?format=sdk"
|
222
|
-
o.input = Shapes::ShapeRef.new(shape: UploadDocumentsRequest)
|
223
|
-
o.output = Shapes::ShapeRef.new(shape: UploadDocumentsResponse)
|
224
|
-
o.errors << Shapes::ShapeRef.new(shape: DocumentServiceException)
|
225
|
-
end)
|
226
|
-
end
|
8
|
+
module Aws::CloudSearchDomain
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
Adds = Shapes::IntegerShape.new(name: 'Adds')
|
15
|
+
Blob = Shapes::BlobShape.new(name: 'Blob')
|
16
|
+
Bucket = Shapes::StructureShape.new(name: 'Bucket')
|
17
|
+
BucketInfo = Shapes::StructureShape.new(name: 'BucketInfo')
|
18
|
+
BucketList = Shapes::ListShape.new(name: 'BucketList')
|
19
|
+
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
20
|
+
Cursor = Shapes::StringShape.new(name: 'Cursor')
|
21
|
+
Deletes = Shapes::IntegerShape.new(name: 'Deletes')
|
22
|
+
DocumentServiceException = Shapes::StructureShape.new(name: 'DocumentServiceException')
|
23
|
+
DocumentServiceWarning = Shapes::StructureShape.new(name: 'DocumentServiceWarning')
|
24
|
+
DocumentServiceWarnings = Shapes::ListShape.new(name: 'DocumentServiceWarnings')
|
25
|
+
Double = Shapes::FloatShape.new(name: 'Double')
|
26
|
+
Expr = Shapes::StringShape.new(name: 'Expr')
|
27
|
+
Exprs = Shapes::MapShape.new(name: 'Exprs')
|
28
|
+
Facet = Shapes::StringShape.new(name: 'Facet')
|
29
|
+
Facets = Shapes::MapShape.new(name: 'Facets')
|
30
|
+
FieldStats = Shapes::StructureShape.new(name: 'FieldStats')
|
31
|
+
FieldValue = Shapes::ListShape.new(name: 'FieldValue')
|
32
|
+
Fields = Shapes::MapShape.new(name: 'Fields')
|
33
|
+
FilterQuery = Shapes::StringShape.new(name: 'FilterQuery')
|
34
|
+
Highlight = Shapes::StringShape.new(name: 'Highlight')
|
35
|
+
Highlights = Shapes::MapShape.new(name: 'Highlights')
|
36
|
+
Hit = Shapes::StructureShape.new(name: 'Hit')
|
37
|
+
HitList = Shapes::ListShape.new(name: 'HitList')
|
38
|
+
Hits = Shapes::StructureShape.new(name: 'Hits')
|
39
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
40
|
+
Partial = Shapes::BooleanShape.new(name: 'Partial')
|
41
|
+
Query = Shapes::StringShape.new(name: 'Query')
|
42
|
+
QueryOptions = Shapes::StringShape.new(name: 'QueryOptions')
|
43
|
+
QueryParser = Shapes::StringShape.new(name: 'QueryParser')
|
44
|
+
Return = Shapes::StringShape.new(name: 'Return')
|
45
|
+
SearchException = Shapes::StructureShape.new(name: 'SearchException')
|
46
|
+
SearchRequest = Shapes::StructureShape.new(name: 'SearchRequest')
|
47
|
+
SearchResponse = Shapes::StructureShape.new(name: 'SearchResponse')
|
48
|
+
SearchStatus = Shapes::StructureShape.new(name: 'SearchStatus')
|
49
|
+
Size = Shapes::IntegerShape.new(name: 'Size')
|
50
|
+
Sort = Shapes::StringShape.new(name: 'Sort')
|
51
|
+
Start = Shapes::IntegerShape.new(name: 'Start')
|
52
|
+
Stat = Shapes::StringShape.new(name: 'Stat')
|
53
|
+
Stats = Shapes::MapShape.new(name: 'Stats')
|
54
|
+
String = Shapes::StringShape.new(name: 'String')
|
55
|
+
SuggestModel = Shapes::StructureShape.new(name: 'SuggestModel')
|
56
|
+
SuggestRequest = Shapes::StructureShape.new(name: 'SuggestRequest')
|
57
|
+
SuggestResponse = Shapes::StructureShape.new(name: 'SuggestResponse')
|
58
|
+
SuggestStatus = Shapes::StructureShape.new(name: 'SuggestStatus')
|
59
|
+
Suggester = Shapes::StringShape.new(name: 'Suggester')
|
60
|
+
SuggestionMatch = Shapes::StructureShape.new(name: 'SuggestionMatch')
|
61
|
+
Suggestions = Shapes::ListShape.new(name: 'Suggestions')
|
62
|
+
SuggestionsSize = Shapes::IntegerShape.new(name: 'SuggestionsSize')
|
63
|
+
UploadDocumentsRequest = Shapes::StructureShape.new(name: 'UploadDocumentsRequest')
|
64
|
+
UploadDocumentsResponse = Shapes::StructureShape.new(name: 'UploadDocumentsResponse')
|
65
|
+
|
66
|
+
Bucket.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
67
|
+
Bucket.add_member(:count, Shapes::ShapeRef.new(shape: Long, location_name: "count"))
|
68
|
+
Bucket.struct_class = Types::Bucket
|
69
|
+
|
70
|
+
BucketInfo.add_member(:buckets, Shapes::ShapeRef.new(shape: BucketList, location_name: "buckets"))
|
71
|
+
BucketInfo.struct_class = Types::BucketInfo
|
72
|
+
|
73
|
+
BucketList.member = Shapes::ShapeRef.new(shape: Bucket)
|
74
|
+
|
75
|
+
DocumentServiceWarning.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
76
|
+
DocumentServiceWarning.struct_class = Types::DocumentServiceWarning
|
77
|
+
|
78
|
+
DocumentServiceWarnings.member = Shapes::ShapeRef.new(shape: DocumentServiceWarning)
|
79
|
+
|
80
|
+
Exprs.key = Shapes::ShapeRef.new(shape: String)
|
81
|
+
Exprs.value = Shapes::ShapeRef.new(shape: String)
|
82
|
+
|
83
|
+
Facets.key = Shapes::ShapeRef.new(shape: String)
|
84
|
+
Facets.value = Shapes::ShapeRef.new(shape: BucketInfo)
|
85
|
+
|
86
|
+
FieldStats.add_member(:min, Shapes::ShapeRef.new(shape: String, location_name: "min"))
|
87
|
+
FieldStats.add_member(:max, Shapes::ShapeRef.new(shape: String, location_name: "max"))
|
88
|
+
FieldStats.add_member(:count, Shapes::ShapeRef.new(shape: Long, location_name: "count"))
|
89
|
+
FieldStats.add_member(:missing, Shapes::ShapeRef.new(shape: Long, location_name: "missing"))
|
90
|
+
FieldStats.add_member(:sum, Shapes::ShapeRef.new(shape: Double, location_name: "sum"))
|
91
|
+
FieldStats.add_member(:sum_of_squares, Shapes::ShapeRef.new(shape: Double, location_name: "sumOfSquares"))
|
92
|
+
FieldStats.add_member(:mean, Shapes::ShapeRef.new(shape: String, location_name: "mean"))
|
93
|
+
FieldStats.add_member(:stddev, Shapes::ShapeRef.new(shape: Double, location_name: "stddev"))
|
94
|
+
FieldStats.struct_class = Types::FieldStats
|
95
|
+
|
96
|
+
FieldValue.member = Shapes::ShapeRef.new(shape: String)
|
97
|
+
|
98
|
+
Fields.key = Shapes::ShapeRef.new(shape: String)
|
99
|
+
Fields.value = Shapes::ShapeRef.new(shape: FieldValue)
|
100
|
+
|
101
|
+
Highlights.key = Shapes::ShapeRef.new(shape: String)
|
102
|
+
Highlights.value = Shapes::ShapeRef.new(shape: String)
|
103
|
+
|
104
|
+
Hit.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
105
|
+
Hit.add_member(:fields, Shapes::ShapeRef.new(shape: Fields, location_name: "fields"))
|
106
|
+
Hit.add_member(:exprs, Shapes::ShapeRef.new(shape: Exprs, location_name: "exprs"))
|
107
|
+
Hit.add_member(:highlights, Shapes::ShapeRef.new(shape: Highlights, location_name: "highlights"))
|
108
|
+
Hit.struct_class = Types::Hit
|
109
|
+
|
110
|
+
HitList.member = Shapes::ShapeRef.new(shape: Hit)
|
111
|
+
|
112
|
+
Hits.add_member(:found, Shapes::ShapeRef.new(shape: Long, location_name: "found"))
|
113
|
+
Hits.add_member(:start, Shapes::ShapeRef.new(shape: Long, location_name: "start"))
|
114
|
+
Hits.add_member(:cursor, Shapes::ShapeRef.new(shape: String, location_name: "cursor"))
|
115
|
+
Hits.add_member(:hit, Shapes::ShapeRef.new(shape: HitList, location_name: "hit"))
|
116
|
+
Hits.struct_class = Types::Hits
|
117
|
+
|
118
|
+
SearchRequest.add_member(:cursor, Shapes::ShapeRef.new(shape: Cursor, location: "querystring", location_name: "cursor"))
|
119
|
+
SearchRequest.add_member(:expr, Shapes::ShapeRef.new(shape: Expr, location: "querystring", location_name: "expr"))
|
120
|
+
SearchRequest.add_member(:facet, Shapes::ShapeRef.new(shape: Facet, location: "querystring", location_name: "facet"))
|
121
|
+
SearchRequest.add_member(:filter_query, Shapes::ShapeRef.new(shape: FilterQuery, location: "querystring", location_name: "fq"))
|
122
|
+
SearchRequest.add_member(:highlight, Shapes::ShapeRef.new(shape: Highlight, location: "querystring", location_name: "highlight"))
|
123
|
+
SearchRequest.add_member(:partial, Shapes::ShapeRef.new(shape: Partial, location: "querystring", location_name: "partial"))
|
124
|
+
SearchRequest.add_member(:query, Shapes::ShapeRef.new(shape: Query, required: true, location: "querystring", location_name: "q"))
|
125
|
+
SearchRequest.add_member(:query_options, Shapes::ShapeRef.new(shape: QueryOptions, location: "querystring", location_name: "q.options"))
|
126
|
+
SearchRequest.add_member(:query_parser, Shapes::ShapeRef.new(shape: QueryParser, location: "querystring", location_name: "q.parser"))
|
127
|
+
SearchRequest.add_member(:return, Shapes::ShapeRef.new(shape: Return, location: "querystring", location_name: "return"))
|
128
|
+
SearchRequest.add_member(:size, Shapes::ShapeRef.new(shape: Size, location: "querystring", location_name: "size"))
|
129
|
+
SearchRequest.add_member(:sort, Shapes::ShapeRef.new(shape: Sort, location: "querystring", location_name: "sort"))
|
130
|
+
SearchRequest.add_member(:start, Shapes::ShapeRef.new(shape: Start, location: "querystring", location_name: "start"))
|
131
|
+
SearchRequest.add_member(:stats, Shapes::ShapeRef.new(shape: Stat, location: "querystring", location_name: "stats"))
|
132
|
+
SearchRequest.struct_class = Types::SearchRequest
|
133
|
+
|
134
|
+
SearchResponse.add_member(:status, Shapes::ShapeRef.new(shape: SearchStatus, location_name: "status"))
|
135
|
+
SearchResponse.add_member(:hits, Shapes::ShapeRef.new(shape: Hits, location_name: "hits"))
|
136
|
+
SearchResponse.add_member(:facets, Shapes::ShapeRef.new(shape: Facets, location_name: "facets"))
|
137
|
+
SearchResponse.add_member(:stats, Shapes::ShapeRef.new(shape: Stats, location_name: "stats"))
|
138
|
+
SearchResponse.struct_class = Types::SearchResponse
|
139
|
+
|
140
|
+
SearchStatus.add_member(:timems, Shapes::ShapeRef.new(shape: Long, location_name: "timems"))
|
141
|
+
SearchStatus.add_member(:rid, Shapes::ShapeRef.new(shape: String, location_name: "rid"))
|
142
|
+
SearchStatus.struct_class = Types::SearchStatus
|
143
|
+
|
144
|
+
Stats.key = Shapes::ShapeRef.new(shape: String)
|
145
|
+
Stats.value = Shapes::ShapeRef.new(shape: FieldStats)
|
146
|
+
|
147
|
+
SuggestModel.add_member(:query, Shapes::ShapeRef.new(shape: String, location_name: "query"))
|
148
|
+
SuggestModel.add_member(:found, Shapes::ShapeRef.new(shape: Long, location_name: "found"))
|
149
|
+
SuggestModel.add_member(:suggestions, Shapes::ShapeRef.new(shape: Suggestions, location_name: "suggestions"))
|
150
|
+
SuggestModel.struct_class = Types::SuggestModel
|
151
|
+
|
152
|
+
SuggestRequest.add_member(:query, Shapes::ShapeRef.new(shape: Query, required: true, location: "querystring", location_name: "q"))
|
153
|
+
SuggestRequest.add_member(:suggester, Shapes::ShapeRef.new(shape: Suggester, required: true, location: "querystring", location_name: "suggester"))
|
154
|
+
SuggestRequest.add_member(:size, Shapes::ShapeRef.new(shape: SuggestionsSize, location: "querystring", location_name: "size"))
|
155
|
+
SuggestRequest.struct_class = Types::SuggestRequest
|
156
|
+
|
157
|
+
SuggestResponse.add_member(:status, Shapes::ShapeRef.new(shape: SuggestStatus, location_name: "status"))
|
158
|
+
SuggestResponse.add_member(:suggest, Shapes::ShapeRef.new(shape: SuggestModel, location_name: "suggest"))
|
159
|
+
SuggestResponse.struct_class = Types::SuggestResponse
|
160
|
+
|
161
|
+
SuggestStatus.add_member(:timems, Shapes::ShapeRef.new(shape: Long, location_name: "timems"))
|
162
|
+
SuggestStatus.add_member(:rid, Shapes::ShapeRef.new(shape: String, location_name: "rid"))
|
163
|
+
SuggestStatus.struct_class = Types::SuggestStatus
|
164
|
+
|
165
|
+
SuggestionMatch.add_member(:suggestion, Shapes::ShapeRef.new(shape: String, location_name: "suggestion"))
|
166
|
+
SuggestionMatch.add_member(:score, Shapes::ShapeRef.new(shape: Long, location_name: "score"))
|
167
|
+
SuggestionMatch.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
168
|
+
SuggestionMatch.struct_class = Types::SuggestionMatch
|
169
|
+
|
170
|
+
Suggestions.member = Shapes::ShapeRef.new(shape: SuggestionMatch)
|
171
|
+
|
172
|
+
UploadDocumentsRequest.add_member(:documents, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "documents"))
|
173
|
+
UploadDocumentsRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location: "header", location_name: "Content-Type"))
|
174
|
+
UploadDocumentsRequest.struct_class = Types::UploadDocumentsRequest
|
175
|
+
UploadDocumentsRequest[:payload] = :documents
|
176
|
+
UploadDocumentsRequest[:payload_member] = UploadDocumentsRequest.member(:documents)
|
177
|
+
|
178
|
+
UploadDocumentsResponse.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
|
179
|
+
UploadDocumentsResponse.add_member(:adds, Shapes::ShapeRef.new(shape: Adds, location_name: "adds"))
|
180
|
+
UploadDocumentsResponse.add_member(:deletes, Shapes::ShapeRef.new(shape: Deletes, location_name: "deletes"))
|
181
|
+
UploadDocumentsResponse.add_member(:warnings, Shapes::ShapeRef.new(shape: DocumentServiceWarnings, location_name: "warnings"))
|
182
|
+
UploadDocumentsResponse.struct_class = Types::UploadDocumentsResponse
|
183
|
+
|
227
184
|
|
185
|
+
# @api private
|
186
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
187
|
+
|
188
|
+
api.version = "2013-01-01"
|
189
|
+
|
190
|
+
api.metadata = {
|
191
|
+
"endpointPrefix" => "cloudsearchdomain",
|
192
|
+
"jsonVersion" => "1.1",
|
193
|
+
"protocol" => "rest-json",
|
194
|
+
"serviceFullName" => "Amazon CloudSearch Domain",
|
195
|
+
"signatureVersion" => "v4",
|
196
|
+
"signingName" => "cloudsearch",
|
197
|
+
}
|
198
|
+
|
199
|
+
api.add_operation(:search, Seahorse::Model::Operation.new.tap do |o|
|
200
|
+
o.name = "Search"
|
201
|
+
o.http_method = "GET"
|
202
|
+
o.http_request_uri = "/2013-01-01/search?format=sdk&pretty=true"
|
203
|
+
o.input = Shapes::ShapeRef.new(shape: SearchRequest)
|
204
|
+
o.output = Shapes::ShapeRef.new(shape: SearchResponse)
|
205
|
+
o.errors << Shapes::ShapeRef.new(shape: SearchException)
|
206
|
+
end)
|
207
|
+
|
208
|
+
api.add_operation(:suggest, Seahorse::Model::Operation.new.tap do |o|
|
209
|
+
o.name = "Suggest"
|
210
|
+
o.http_method = "GET"
|
211
|
+
o.http_request_uri = "/2013-01-01/suggest?format=sdk&pretty=true"
|
212
|
+
o.input = Shapes::ShapeRef.new(shape: SuggestRequest)
|
213
|
+
o.output = Shapes::ShapeRef.new(shape: SuggestResponse)
|
214
|
+
o.errors << Shapes::ShapeRef.new(shape: SearchException)
|
215
|
+
end)
|
216
|
+
|
217
|
+
api.add_operation(:upload_documents, Seahorse::Model::Operation.new.tap do |o|
|
218
|
+
o.name = "UploadDocuments"
|
219
|
+
o.http_method = "POST"
|
220
|
+
o.http_request_uri = "/2013-01-01/documents/batch?format=sdk"
|
221
|
+
o.input = Shapes::ShapeRef.new(shape: UploadDocumentsRequest)
|
222
|
+
o.output = Shapes::ShapeRef.new(shape: UploadDocumentsResponse)
|
223
|
+
o.errors << Shapes::ShapeRef.new(shape: DocumentServiceException)
|
224
|
+
end)
|
228
225
|
end
|
226
|
+
|
229
227
|
end
|
230
228
|
end
|
@@ -1,23 +1,14 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Errors
|
8
|
+
module Aws::CloudSearchDomain
|
9
|
+
module Errors
|
11
10
|
|
12
|
-
|
11
|
+
extend Aws::Errors::DynamicErrors
|
13
12
|
|
14
|
-
# Raised when calling #load or #data on a resource class that can not be
|
15
|
-
# loaded. This can happen when:
|
16
|
-
#
|
17
|
-
# * A resource class has identifiers, but no data attributes.
|
18
|
-
# * Resource data is only available when making an API call that
|
19
|
-
# enumerates all resources of that type.
|
20
|
-
class ResourceNotLoadable < RuntimeError; end
|
21
|
-
end
|
22
13
|
end
|
23
14
|
end
|