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.
@@ -1,230 +1,228 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
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 CloudSearchDomain
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- Adds = Shapes::IntegerShape.new(name: 'Adds')
16
- Blob = Shapes::BlobShape.new(name: 'Blob')
17
- Bucket = Shapes::StructureShape.new(name: 'Bucket')
18
- BucketInfo = Shapes::StructureShape.new(name: 'BucketInfo')
19
- BucketList = Shapes::ListShape.new(name: 'BucketList')
20
- ContentType = Shapes::StringShape.new(name: 'ContentType')
21
- Cursor = Shapes::StringShape.new(name: 'Cursor')
22
- Deletes = Shapes::IntegerShape.new(name: 'Deletes')
23
- DocumentServiceException = Shapes::StructureShape.new(name: 'DocumentServiceException')
24
- DocumentServiceWarning = Shapes::StructureShape.new(name: 'DocumentServiceWarning')
25
- DocumentServiceWarnings = Shapes::ListShape.new(name: 'DocumentServiceWarnings')
26
- Double = Shapes::FloatShape.new(name: 'Double')
27
- Expr = Shapes::StringShape.new(name: 'Expr')
28
- Exprs = Shapes::MapShape.new(name: 'Exprs')
29
- Facet = Shapes::StringShape.new(name: 'Facet')
30
- Facets = Shapes::MapShape.new(name: 'Facets')
31
- FieldStats = Shapes::StructureShape.new(name: 'FieldStats')
32
- FieldValue = Shapes::ListShape.new(name: 'FieldValue')
33
- Fields = Shapes::MapShape.new(name: 'Fields')
34
- FilterQuery = Shapes::StringShape.new(name: 'FilterQuery')
35
- Highlight = Shapes::StringShape.new(name: 'Highlight')
36
- Highlights = Shapes::MapShape.new(name: 'Highlights')
37
- Hit = Shapes::StructureShape.new(name: 'Hit')
38
- HitList = Shapes::ListShape.new(name: 'HitList')
39
- Hits = Shapes::StructureShape.new(name: 'Hits')
40
- Long = Shapes::IntegerShape.new(name: 'Long')
41
- Partial = Shapes::BooleanShape.new(name: 'Partial')
42
- Query = Shapes::StringShape.new(name: 'Query')
43
- QueryOptions = Shapes::StringShape.new(name: 'QueryOptions')
44
- QueryParser = Shapes::StringShape.new(name: 'QueryParser')
45
- Return = Shapes::StringShape.new(name: 'Return')
46
- SearchException = Shapes::StructureShape.new(name: 'SearchException')
47
- SearchRequest = Shapes::StructureShape.new(name: 'SearchRequest')
48
- SearchResponse = Shapes::StructureShape.new(name: 'SearchResponse')
49
- SearchStatus = Shapes::StructureShape.new(name: 'SearchStatus')
50
- Size = Shapes::IntegerShape.new(name: 'Size')
51
- Sort = Shapes::StringShape.new(name: 'Sort')
52
- Start = Shapes::IntegerShape.new(name: 'Start')
53
- Stat = Shapes::StringShape.new(name: 'Stat')
54
- Stats = Shapes::MapShape.new(name: 'Stats')
55
- String = Shapes::StringShape.new(name: 'String')
56
- SuggestModel = Shapes::StructureShape.new(name: 'SuggestModel')
57
- SuggestRequest = Shapes::StructureShape.new(name: 'SuggestRequest')
58
- SuggestResponse = Shapes::StructureShape.new(name: 'SuggestResponse')
59
- SuggestStatus = Shapes::StructureShape.new(name: 'SuggestStatus')
60
- Suggester = Shapes::StringShape.new(name: 'Suggester')
61
- SuggestionMatch = Shapes::StructureShape.new(name: 'SuggestionMatch')
62
- Suggestions = Shapes::ListShape.new(name: 'Suggestions')
63
- SuggestionsSize = Shapes::IntegerShape.new(name: 'SuggestionsSize')
64
- UploadDocumentsRequest = Shapes::StructureShape.new(name: 'UploadDocumentsRequest')
65
- UploadDocumentsResponse = Shapes::StructureShape.new(name: 'UploadDocumentsResponse')
66
-
67
- Bucket.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
68
- Bucket.add_member(:count, Shapes::ShapeRef.new(shape: Long, location_name: "count"))
69
- Bucket.struct_class = Types::Bucket
70
-
71
- BucketInfo.add_member(:buckets, Shapes::ShapeRef.new(shape: BucketList, location_name: "buckets"))
72
- BucketInfo.struct_class = Types::BucketInfo
73
-
74
- BucketList.member = Shapes::ShapeRef.new(shape: Bucket)
75
-
76
- DocumentServiceWarning.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
77
- DocumentServiceWarning.struct_class = Types::DocumentServiceWarning
78
-
79
- DocumentServiceWarnings.member = Shapes::ShapeRef.new(shape: DocumentServiceWarning)
80
-
81
- Exprs.key = Shapes::ShapeRef.new(shape: String)
82
- Exprs.value = Shapes::ShapeRef.new(shape: String)
83
-
84
- Facets.key = Shapes::ShapeRef.new(shape: String)
85
- Facets.value = Shapes::ShapeRef.new(shape: BucketInfo)
86
-
87
- FieldStats.add_member(:min, Shapes::ShapeRef.new(shape: String, location_name: "min"))
88
- FieldStats.add_member(:max, Shapes::ShapeRef.new(shape: String, location_name: "max"))
89
- FieldStats.add_member(:count, Shapes::ShapeRef.new(shape: Long, location_name: "count"))
90
- FieldStats.add_member(:missing, Shapes::ShapeRef.new(shape: Long, location_name: "missing"))
91
- FieldStats.add_member(:sum, Shapes::ShapeRef.new(shape: Double, location_name: "sum"))
92
- FieldStats.add_member(:sum_of_squares, Shapes::ShapeRef.new(shape: Double, location_name: "sumOfSquares"))
93
- FieldStats.add_member(:mean, Shapes::ShapeRef.new(shape: String, location_name: "mean"))
94
- FieldStats.add_member(:stddev, Shapes::ShapeRef.new(shape: Double, location_name: "stddev"))
95
- FieldStats.struct_class = Types::FieldStats
96
-
97
- FieldValue.member = Shapes::ShapeRef.new(shape: String)
98
-
99
- Fields.key = Shapes::ShapeRef.new(shape: String)
100
- Fields.value = Shapes::ShapeRef.new(shape: FieldValue)
101
-
102
- Highlights.key = Shapes::ShapeRef.new(shape: String)
103
- Highlights.value = Shapes::ShapeRef.new(shape: String)
104
-
105
- Hit.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
106
- Hit.add_member(:fields, Shapes::ShapeRef.new(shape: Fields, location_name: "fields"))
107
- Hit.add_member(:exprs, Shapes::ShapeRef.new(shape: Exprs, location_name: "exprs"))
108
- Hit.add_member(:highlights, Shapes::ShapeRef.new(shape: Highlights, location_name: "highlights"))
109
- Hit.struct_class = Types::Hit
110
-
111
- HitList.member = Shapes::ShapeRef.new(shape: Hit)
112
-
113
- Hits.add_member(:found, Shapes::ShapeRef.new(shape: Long, location_name: "found"))
114
- Hits.add_member(:start, Shapes::ShapeRef.new(shape: Long, location_name: "start"))
115
- Hits.add_member(:cursor, Shapes::ShapeRef.new(shape: String, location_name: "cursor"))
116
- Hits.add_member(:hit, Shapes::ShapeRef.new(shape: HitList, location_name: "hit"))
117
- Hits.struct_class = Types::Hits
118
-
119
- SearchRequest.add_member(:cursor, Shapes::ShapeRef.new(shape: Cursor, location: "querystring", location_name: "cursor"))
120
- SearchRequest.add_member(:expr, Shapes::ShapeRef.new(shape: Expr, location: "querystring", location_name: "expr"))
121
- SearchRequest.add_member(:facet, Shapes::ShapeRef.new(shape: Facet, location: "querystring", location_name: "facet"))
122
- SearchRequest.add_member(:filter_query, Shapes::ShapeRef.new(shape: FilterQuery, location: "querystring", location_name: "fq"))
123
- SearchRequest.add_member(:highlight, Shapes::ShapeRef.new(shape: Highlight, location: "querystring", location_name: "highlight"))
124
- SearchRequest.add_member(:partial, Shapes::ShapeRef.new(shape: Partial, location: "querystring", location_name: "partial"))
125
- SearchRequest.add_member(:query, Shapes::ShapeRef.new(shape: Query, required: true, location: "querystring", location_name: "q"))
126
- SearchRequest.add_member(:query_options, Shapes::ShapeRef.new(shape: QueryOptions, location: "querystring", location_name: "q.options"))
127
- SearchRequest.add_member(:query_parser, Shapes::ShapeRef.new(shape: QueryParser, location: "querystring", location_name: "q.parser"))
128
- SearchRequest.add_member(:return, Shapes::ShapeRef.new(shape: Return, location: "querystring", location_name: "return"))
129
- SearchRequest.add_member(:size, Shapes::ShapeRef.new(shape: Size, location: "querystring", location_name: "size"))
130
- SearchRequest.add_member(:sort, Shapes::ShapeRef.new(shape: Sort, location: "querystring", location_name: "sort"))
131
- SearchRequest.add_member(:start, Shapes::ShapeRef.new(shape: Start, location: "querystring", location_name: "start"))
132
- SearchRequest.add_member(:stats, Shapes::ShapeRef.new(shape: Stat, location: "querystring", location_name: "stats"))
133
- SearchRequest.struct_class = Types::SearchRequest
134
-
135
- SearchResponse.add_member(:status, Shapes::ShapeRef.new(shape: SearchStatus, location_name: "status"))
136
- SearchResponse.add_member(:hits, Shapes::ShapeRef.new(shape: Hits, location_name: "hits"))
137
- SearchResponse.add_member(:facets, Shapes::ShapeRef.new(shape: Facets, location_name: "facets"))
138
- SearchResponse.add_member(:stats, Shapes::ShapeRef.new(shape: Stats, location_name: "stats"))
139
- SearchResponse.struct_class = Types::SearchResponse
140
-
141
- SearchStatus.add_member(:timems, Shapes::ShapeRef.new(shape: Long, location_name: "timems"))
142
- SearchStatus.add_member(:rid, Shapes::ShapeRef.new(shape: String, location_name: "rid"))
143
- SearchStatus.struct_class = Types::SearchStatus
144
-
145
- Stats.key = Shapes::ShapeRef.new(shape: String)
146
- Stats.value = Shapes::ShapeRef.new(shape: FieldStats)
147
-
148
- SuggestModel.add_member(:query, Shapes::ShapeRef.new(shape: String, location_name: "query"))
149
- SuggestModel.add_member(:found, Shapes::ShapeRef.new(shape: Long, location_name: "found"))
150
- SuggestModel.add_member(:suggestions, Shapes::ShapeRef.new(shape: Suggestions, location_name: "suggestions"))
151
- SuggestModel.struct_class = Types::SuggestModel
152
-
153
- SuggestRequest.add_member(:query, Shapes::ShapeRef.new(shape: Query, required: true, location: "querystring", location_name: "q"))
154
- SuggestRequest.add_member(:suggester, Shapes::ShapeRef.new(shape: Suggester, required: true, location: "querystring", location_name: "suggester"))
155
- SuggestRequest.add_member(:size, Shapes::ShapeRef.new(shape: SuggestionsSize, location: "querystring", location_name: "size"))
156
- SuggestRequest.struct_class = Types::SuggestRequest
157
-
158
- SuggestResponse.add_member(:status, Shapes::ShapeRef.new(shape: SuggestStatus, location_name: "status"))
159
- SuggestResponse.add_member(:suggest, Shapes::ShapeRef.new(shape: SuggestModel, location_name: "suggest"))
160
- SuggestResponse.struct_class = Types::SuggestResponse
161
-
162
- SuggestStatus.add_member(:timems, Shapes::ShapeRef.new(shape: Long, location_name: "timems"))
163
- SuggestStatus.add_member(:rid, Shapes::ShapeRef.new(shape: String, location_name: "rid"))
164
- SuggestStatus.struct_class = Types::SuggestStatus
165
-
166
- SuggestionMatch.add_member(:suggestion, Shapes::ShapeRef.new(shape: String, location_name: "suggestion"))
167
- SuggestionMatch.add_member(:score, Shapes::ShapeRef.new(shape: Long, location_name: "score"))
168
- SuggestionMatch.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
169
- SuggestionMatch.struct_class = Types::SuggestionMatch
170
-
171
- Suggestions.member = Shapes::ShapeRef.new(shape: SuggestionMatch)
172
-
173
- UploadDocumentsRequest.add_member(:documents, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "documents"))
174
- UploadDocumentsRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location: "header", location_name: "Content-Type"))
175
- UploadDocumentsRequest.struct_class = Types::UploadDocumentsRequest
176
- UploadDocumentsRequest[:payload] = :documents
177
- UploadDocumentsRequest[:payload_member] = UploadDocumentsRequest.member(:documents)
178
-
179
- UploadDocumentsResponse.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
180
- UploadDocumentsResponse.add_member(:adds, Shapes::ShapeRef.new(shape: Adds, location_name: "adds"))
181
- UploadDocumentsResponse.add_member(:deletes, Shapes::ShapeRef.new(shape: Deletes, location_name: "deletes"))
182
- UploadDocumentsResponse.add_member(:warnings, Shapes::ShapeRef.new(shape: DocumentServiceWarnings, location_name: "warnings"))
183
- UploadDocumentsResponse.struct_class = Types::UploadDocumentsResponse
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 info on making contributions:
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 CloudSearchDomain
10
- module Errors
8
+ module Aws::CloudSearchDomain
9
+ module Errors
11
10
 
12
- extend Aws::Errors::DynamicErrors
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