aws-sdk-simpledb 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,440 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SimpleDB
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ Attribute = Shapes::StructureShape.new(name: 'Attribute')
16
+ AttributeDoesNotExist = Shapes::StructureShape.new(name: 'AttributeDoesNotExist')
17
+ AttributeList = Shapes::ListShape.new(name: 'AttributeList', flattened: true)
18
+ AttributeNameList = Shapes::ListShape.new(name: 'AttributeNameList', flattened: true)
19
+ BatchDeleteAttributesRequest = Shapes::StructureShape.new(name: 'BatchDeleteAttributesRequest')
20
+ BatchPutAttributesRequest = Shapes::StructureShape.new(name: 'BatchPutAttributesRequest')
21
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
22
+ CreateDomainRequest = Shapes::StructureShape.new(name: 'CreateDomainRequest')
23
+ DeletableItem = Shapes::StructureShape.new(name: 'DeletableItem')
24
+ DeletableItemList = Shapes::ListShape.new(name: 'DeletableItemList', flattened: true)
25
+ DeleteAttributesRequest = Shapes::StructureShape.new(name: 'DeleteAttributesRequest')
26
+ DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
27
+ DomainMetadataRequest = Shapes::StructureShape.new(name: 'DomainMetadataRequest')
28
+ DomainMetadataResult = Shapes::StructureShape.new(name: 'DomainMetadataResult')
29
+ DomainNameList = Shapes::ListShape.new(name: 'DomainNameList', flattened: true)
30
+ DuplicateItemName = Shapes::StructureShape.new(name: 'DuplicateItemName')
31
+ Float = Shapes::FloatShape.new(name: 'Float')
32
+ GetAttributesRequest = Shapes::StructureShape.new(name: 'GetAttributesRequest')
33
+ GetAttributesResult = Shapes::StructureShape.new(name: 'GetAttributesResult')
34
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
35
+ InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
36
+ InvalidNumberPredicates = Shapes::StructureShape.new(name: 'InvalidNumberPredicates')
37
+ InvalidNumberValueTests = Shapes::StructureShape.new(name: 'InvalidNumberValueTests')
38
+ InvalidParameterValue = Shapes::StructureShape.new(name: 'InvalidParameterValue')
39
+ InvalidQueryExpression = Shapes::StructureShape.new(name: 'InvalidQueryExpression')
40
+ Item = Shapes::StructureShape.new(name: 'Item')
41
+ ItemList = Shapes::ListShape.new(name: 'ItemList', flattened: true)
42
+ ListDomainsRequest = Shapes::StructureShape.new(name: 'ListDomainsRequest')
43
+ ListDomainsResult = Shapes::StructureShape.new(name: 'ListDomainsResult')
44
+ Long = Shapes::IntegerShape.new(name: 'Long')
45
+ MissingParameter = Shapes::StructureShape.new(name: 'MissingParameter')
46
+ NoSuchDomain = Shapes::StructureShape.new(name: 'NoSuchDomain')
47
+ NumberDomainAttributesExceeded = Shapes::StructureShape.new(name: 'NumberDomainAttributesExceeded')
48
+ NumberDomainBytesExceeded = Shapes::StructureShape.new(name: 'NumberDomainBytesExceeded')
49
+ NumberDomainsExceeded = Shapes::StructureShape.new(name: 'NumberDomainsExceeded')
50
+ NumberItemAttributesExceeded = Shapes::StructureShape.new(name: 'NumberItemAttributesExceeded')
51
+ NumberSubmittedAttributesExceeded = Shapes::StructureShape.new(name: 'NumberSubmittedAttributesExceeded')
52
+ NumberSubmittedItemsExceeded = Shapes::StructureShape.new(name: 'NumberSubmittedItemsExceeded')
53
+ PutAttributesRequest = Shapes::StructureShape.new(name: 'PutAttributesRequest')
54
+ ReplaceableAttribute = Shapes::StructureShape.new(name: 'ReplaceableAttribute')
55
+ ReplaceableAttributeList = Shapes::ListShape.new(name: 'ReplaceableAttributeList', flattened: true)
56
+ ReplaceableItem = Shapes::StructureShape.new(name: 'ReplaceableItem')
57
+ ReplaceableItemList = Shapes::ListShape.new(name: 'ReplaceableItemList', flattened: true)
58
+ RequestTimeout = Shapes::StructureShape.new(name: 'RequestTimeout')
59
+ SelectRequest = Shapes::StructureShape.new(name: 'SelectRequest')
60
+ SelectResult = Shapes::StructureShape.new(name: 'SelectResult')
61
+ String = Shapes::StringShape.new(name: 'String')
62
+ TooManyRequestedAttributes = Shapes::StructureShape.new(name: 'TooManyRequestedAttributes')
63
+ UpdateCondition = Shapes::StructureShape.new(name: 'UpdateCondition')
64
+
65
+ Attribute.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
66
+ Attribute.add_member(:alternate_name_encoding, Shapes::ShapeRef.new(shape: String, location_name: "AlternateNameEncoding"))
67
+ Attribute.add_member(:value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Value"))
68
+ Attribute.add_member(:alternate_value_encoding, Shapes::ShapeRef.new(shape: String, location_name: "AlternateValueEncoding"))
69
+ Attribute.struct_class = Types::Attribute
70
+
71
+ AttributeList.member = Shapes::ShapeRef.new(shape: Attribute, location_name: "Attribute")
72
+
73
+ AttributeNameList.member = Shapes::ShapeRef.new(shape: String, location_name: "AttributeName")
74
+
75
+ BatchDeleteAttributesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
76
+ BatchDeleteAttributesRequest.add_member(:items, Shapes::ShapeRef.new(shape: DeletableItemList, required: true, location_name: "Items"))
77
+ BatchDeleteAttributesRequest.struct_class = Types::BatchDeleteAttributesRequest
78
+
79
+ BatchPutAttributesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
80
+ BatchPutAttributesRequest.add_member(:items, Shapes::ShapeRef.new(shape: ReplaceableItemList, required: true, location_name: "Items"))
81
+ BatchPutAttributesRequest.struct_class = Types::BatchPutAttributesRequest
82
+
83
+ CreateDomainRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
84
+ CreateDomainRequest.struct_class = Types::CreateDomainRequest
85
+
86
+ DeletableItem.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ItemName"))
87
+ DeletableItem.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeList, location_name: "Attributes"))
88
+ DeletableItem.struct_class = Types::DeletableItem
89
+
90
+ DeletableItemList.member = Shapes::ShapeRef.new(shape: DeletableItem, location_name: "Item")
91
+
92
+ DeleteAttributesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
93
+ DeleteAttributesRequest.add_member(:item_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ItemName"))
94
+ DeleteAttributesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeList, location_name: "Attributes"))
95
+ DeleteAttributesRequest.add_member(:expected, Shapes::ShapeRef.new(shape: UpdateCondition, location_name: "Expected"))
96
+ DeleteAttributesRequest.struct_class = Types::DeleteAttributesRequest
97
+
98
+ DeleteDomainRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
99
+ DeleteDomainRequest.struct_class = Types::DeleteDomainRequest
100
+
101
+ DomainMetadataRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
102
+ DomainMetadataRequest.struct_class = Types::DomainMetadataRequest
103
+
104
+ DomainMetadataResult.add_member(:item_count, Shapes::ShapeRef.new(shape: Integer, location_name: "ItemCount"))
105
+ DomainMetadataResult.add_member(:item_names_size_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "ItemNamesSizeBytes"))
106
+ DomainMetadataResult.add_member(:attribute_name_count, Shapes::ShapeRef.new(shape: Integer, location_name: "AttributeNameCount"))
107
+ DomainMetadataResult.add_member(:attribute_names_size_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "AttributeNamesSizeBytes"))
108
+ DomainMetadataResult.add_member(:attribute_value_count, Shapes::ShapeRef.new(shape: Integer, location_name: "AttributeValueCount"))
109
+ DomainMetadataResult.add_member(:attribute_values_size_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "AttributeValuesSizeBytes"))
110
+ DomainMetadataResult.add_member(:timestamp, Shapes::ShapeRef.new(shape: Integer, location_name: "Timestamp"))
111
+ DomainMetadataResult.struct_class = Types::DomainMetadataResult
112
+
113
+ DomainNameList.member = Shapes::ShapeRef.new(shape: String, location_name: "DomainName")
114
+
115
+ GetAttributesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
116
+ GetAttributesRequest.add_member(:item_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ItemName"))
117
+ GetAttributesRequest.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributeNames"))
118
+ GetAttributesRequest.add_member(:consistent_read, Shapes::ShapeRef.new(shape: Boolean, location_name: "ConsistentRead"))
119
+ GetAttributesRequest.struct_class = Types::GetAttributesRequest
120
+
121
+ GetAttributesResult.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeList, location_name: "Attributes"))
122
+ GetAttributesResult.struct_class = Types::GetAttributesResult
123
+
124
+ Item.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
125
+ Item.add_member(:alternate_name_encoding, Shapes::ShapeRef.new(shape: String, location_name: "AlternateNameEncoding"))
126
+ Item.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeList, required: true, location_name: "Attributes"))
127
+ Item.struct_class = Types::Item
128
+
129
+ ItemList.member = Shapes::ShapeRef.new(shape: Item, location_name: "Item")
130
+
131
+ ListDomainsRequest.add_member(:max_number_of_domains, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxNumberOfDomains"))
132
+ ListDomainsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
133
+ ListDomainsRequest.struct_class = Types::ListDomainsRequest
134
+
135
+ ListDomainsResult.add_member(:domain_names, Shapes::ShapeRef.new(shape: DomainNameList, location_name: "DomainNames"))
136
+ ListDomainsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
137
+ ListDomainsResult.struct_class = Types::ListDomainsResult
138
+
139
+ PutAttributesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DomainName"))
140
+ PutAttributesRequest.add_member(:item_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ItemName"))
141
+ PutAttributesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: ReplaceableAttributeList, required: true, location_name: "Attributes"))
142
+ PutAttributesRequest.add_member(:expected, Shapes::ShapeRef.new(shape: UpdateCondition, location_name: "Expected"))
143
+ PutAttributesRequest.struct_class = Types::PutAttributesRequest
144
+
145
+ ReplaceableAttribute.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
146
+ ReplaceableAttribute.add_member(:value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Value"))
147
+ ReplaceableAttribute.add_member(:replace, Shapes::ShapeRef.new(shape: Boolean, location_name: "Replace"))
148
+ ReplaceableAttribute.struct_class = Types::ReplaceableAttribute
149
+
150
+ ReplaceableAttributeList.member = Shapes::ShapeRef.new(shape: ReplaceableAttribute, location_name: "Attribute")
151
+
152
+ ReplaceableItem.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ItemName"))
153
+ ReplaceableItem.add_member(:attributes, Shapes::ShapeRef.new(shape: ReplaceableAttributeList, required: true, location_name: "Attributes"))
154
+ ReplaceableItem.struct_class = Types::ReplaceableItem
155
+
156
+ ReplaceableItemList.member = Shapes::ShapeRef.new(shape: ReplaceableItem, location_name: "Item")
157
+
158
+ SelectRequest.add_member(:select_expression, Shapes::ShapeRef.new(shape: String, required: true, location_name: "SelectExpression"))
159
+ SelectRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
160
+ SelectRequest.add_member(:consistent_read, Shapes::ShapeRef.new(shape: Boolean, location_name: "ConsistentRead"))
161
+ SelectRequest.struct_class = Types::SelectRequest
162
+
163
+ SelectResult.add_member(:items, Shapes::ShapeRef.new(shape: ItemList, location_name: "Items"))
164
+ SelectResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
165
+ SelectResult.struct_class = Types::SelectResult
166
+
167
+ UpdateCondition.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
168
+ UpdateCondition.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
169
+ UpdateCondition.add_member(:exists, Shapes::ShapeRef.new(shape: Boolean, location_name: "Exists"))
170
+ UpdateCondition.struct_class = Types::UpdateCondition
171
+
172
+
173
+ # @api private
174
+ API = Seahorse::Model::Api.new.tap do |api|
175
+
176
+ api.version = "2009-04-15"
177
+
178
+ api.metadata = {
179
+ "endpointPrefix" => "sdb",
180
+ "protocol" => "query",
181
+ "serviceFullName" => "Amazon SimpleDB",
182
+ "signatureVersion" => "v2",
183
+ "xmlNamespace" => "http://sdb.amazonaws.com/doc/2009-04-15/",
184
+ }
185
+
186
+ api.add_operation(:batch_delete_attributes, Seahorse::Model::Operation.new.tap do |o|
187
+ o.name = "BatchDeleteAttributes"
188
+ o.http_method = "POST"
189
+ o.http_request_uri = "/"
190
+ o.input = Shapes::ShapeRef.new(shape: BatchDeleteAttributesRequest)
191
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
192
+ end)
193
+
194
+ api.add_operation(:batch_put_attributes, Seahorse::Model::Operation.new.tap do |o|
195
+ o.name = "BatchPutAttributes"
196
+ o.http_method = "POST"
197
+ o.http_request_uri = "/"
198
+ o.input = Shapes::ShapeRef.new(shape: BatchPutAttributesRequest)
199
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
200
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateItemName, metadata: {
201
+ "error" => {"code"=>"DuplicateItemName", "httpStatusCode"=>400, "senderFault"=>true},
202
+ "exception" => true
203
+ })
204
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValue, metadata: {
205
+ "error" => {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true},
206
+ "exception" => true
207
+ })
208
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
209
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
210
+ "exception" => true
211
+ })
212
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDomain, metadata: {
213
+ "error" => {"code"=>"NoSuchDomain", "httpStatusCode"=>400, "senderFault"=>true},
214
+ "exception" => true
215
+ })
216
+ o.errors << Shapes::ShapeRef.new(shape: NumberItemAttributesExceeded, metadata: {
217
+ "error" => {"code"=>"NumberItemAttributesExceeded", "httpStatusCode"=>409, "senderFault"=>true},
218
+ "exception" => true
219
+ })
220
+ o.errors << Shapes::ShapeRef.new(shape: NumberDomainAttributesExceeded, metadata: {
221
+ "error" => {"code"=>"NumberDomainAttributesExceeded", "httpStatusCode"=>409, "senderFault"=>true},
222
+ "exception" => true
223
+ })
224
+ o.errors << Shapes::ShapeRef.new(shape: NumberDomainBytesExceeded, metadata: {
225
+ "error" => {"code"=>"NumberDomainBytesExceeded", "httpStatusCode"=>409, "senderFault"=>true},
226
+ "exception" => true
227
+ })
228
+ o.errors << Shapes::ShapeRef.new(shape: NumberSubmittedItemsExceeded, metadata: {
229
+ "error" => {"code"=>"NumberSubmittedItemsExceeded", "httpStatusCode"=>409, "senderFault"=>true},
230
+ "exception" => true
231
+ })
232
+ o.errors << Shapes::ShapeRef.new(shape: NumberSubmittedAttributesExceeded, metadata: {
233
+ "error" => {"code"=>"NumberSubmittedAttributesExceeded", "httpStatusCode"=>409, "senderFault"=>true},
234
+ "exception" => true
235
+ })
236
+ end)
237
+
238
+ api.add_operation(:create_domain, Seahorse::Model::Operation.new.tap do |o|
239
+ o.name = "CreateDomain"
240
+ o.http_method = "POST"
241
+ o.http_request_uri = "/"
242
+ o.input = Shapes::ShapeRef.new(shape: CreateDomainRequest)
243
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
244
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValue, metadata: {
245
+ "error" => {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true},
246
+ "exception" => true
247
+ })
248
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
249
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
250
+ "exception" => true
251
+ })
252
+ o.errors << Shapes::ShapeRef.new(shape: NumberDomainsExceeded, metadata: {
253
+ "error" => {"code"=>"NumberDomainsExceeded", "httpStatusCode"=>409, "senderFault"=>true},
254
+ "exception" => true
255
+ })
256
+ end)
257
+
258
+ api.add_operation(:delete_attributes, Seahorse::Model::Operation.new.tap do |o|
259
+ o.name = "DeleteAttributes"
260
+ o.http_method = "POST"
261
+ o.http_request_uri = "/"
262
+ o.input = Shapes::ShapeRef.new(shape: DeleteAttributesRequest)
263
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
264
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValue, metadata: {
265
+ "error" => {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true},
266
+ "exception" => true
267
+ })
268
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
269
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
270
+ "exception" => true
271
+ })
272
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDomain, metadata: {
273
+ "error" => {"code"=>"NoSuchDomain", "httpStatusCode"=>400, "senderFault"=>true},
274
+ "exception" => true
275
+ })
276
+ o.errors << Shapes::ShapeRef.new(shape: AttributeDoesNotExist, metadata: {
277
+ "error" => {"code"=>"AttributeDoesNotExist", "httpStatusCode"=>404, "senderFault"=>true},
278
+ "exception" => true
279
+ })
280
+ end)
281
+
282
+ api.add_operation(:delete_domain, Seahorse::Model::Operation.new.tap do |o|
283
+ o.name = "DeleteDomain"
284
+ o.http_method = "POST"
285
+ o.http_request_uri = "/"
286
+ o.input = Shapes::ShapeRef.new(shape: DeleteDomainRequest)
287
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
288
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
289
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
290
+ "exception" => true
291
+ })
292
+ end)
293
+
294
+ api.add_operation(:domain_metadata, Seahorse::Model::Operation.new.tap do |o|
295
+ o.name = "DomainMetadata"
296
+ o.http_method = "POST"
297
+ o.http_request_uri = "/"
298
+ o.input = Shapes::ShapeRef.new(shape: DomainMetadataRequest)
299
+ o.output = Shapes::ShapeRef.new(shape: DomainMetadataResult)
300
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
301
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
302
+ "exception" => true
303
+ })
304
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDomain, metadata: {
305
+ "error" => {"code"=>"NoSuchDomain", "httpStatusCode"=>400, "senderFault"=>true},
306
+ "exception" => true
307
+ })
308
+ end)
309
+
310
+ api.add_operation(:get_attributes, Seahorse::Model::Operation.new.tap do |o|
311
+ o.name = "GetAttributes"
312
+ o.http_method = "POST"
313
+ o.http_request_uri = "/"
314
+ o.input = Shapes::ShapeRef.new(shape: GetAttributesRequest)
315
+ o.output = Shapes::ShapeRef.new(shape: GetAttributesResult)
316
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValue, metadata: {
317
+ "error" => {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true},
318
+ "exception" => true
319
+ })
320
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
321
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
322
+ "exception" => true
323
+ })
324
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDomain, metadata: {
325
+ "error" => {"code"=>"NoSuchDomain", "httpStatusCode"=>400, "senderFault"=>true},
326
+ "exception" => true
327
+ })
328
+ end)
329
+
330
+ api.add_operation(:list_domains, Seahorse::Model::Operation.new.tap do |o|
331
+ o.name = "ListDomains"
332
+ o.http_method = "POST"
333
+ o.http_request_uri = "/"
334
+ o.input = Shapes::ShapeRef.new(shape: ListDomainsRequest)
335
+ o.output = Shapes::ShapeRef.new(shape: ListDomainsResult)
336
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValue, metadata: {
337
+ "error" => {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true},
338
+ "exception" => true
339
+ })
340
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken, metadata: {
341
+ "error" => {"code"=>"InvalidNextToken", "httpStatusCode"=>400, "senderFault"=>true},
342
+ "exception" => true
343
+ })
344
+ o[:pager] = Aws::Pager.new(
345
+ limit_key: "max_number_of_domains",
346
+ tokens: {
347
+ "next_token" => "next_token"
348
+ }
349
+ )
350
+ end)
351
+
352
+ api.add_operation(:put_attributes, Seahorse::Model::Operation.new.tap do |o|
353
+ o.name = "PutAttributes"
354
+ o.http_method = "POST"
355
+ o.http_request_uri = "/"
356
+ o.input = Shapes::ShapeRef.new(shape: PutAttributesRequest)
357
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
358
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValue, metadata: {
359
+ "error" => {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true},
360
+ "exception" => true
361
+ })
362
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
363
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
364
+ "exception" => true
365
+ })
366
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDomain, metadata: {
367
+ "error" => {"code"=>"NoSuchDomain", "httpStatusCode"=>400, "senderFault"=>true},
368
+ "exception" => true
369
+ })
370
+ o.errors << Shapes::ShapeRef.new(shape: NumberDomainAttributesExceeded, metadata: {
371
+ "error" => {"code"=>"NumberDomainAttributesExceeded", "httpStatusCode"=>409, "senderFault"=>true},
372
+ "exception" => true
373
+ })
374
+ o.errors << Shapes::ShapeRef.new(shape: NumberDomainBytesExceeded, metadata: {
375
+ "error" => {"code"=>"NumberDomainBytesExceeded", "httpStatusCode"=>409, "senderFault"=>true},
376
+ "exception" => true
377
+ })
378
+ o.errors << Shapes::ShapeRef.new(shape: NumberItemAttributesExceeded, metadata: {
379
+ "error" => {"code"=>"NumberItemAttributesExceeded", "httpStatusCode"=>409, "senderFault"=>true},
380
+ "exception" => true
381
+ })
382
+ o.errors << Shapes::ShapeRef.new(shape: AttributeDoesNotExist, metadata: {
383
+ "error" => {"code"=>"AttributeDoesNotExist", "httpStatusCode"=>404, "senderFault"=>true},
384
+ "exception" => true
385
+ })
386
+ end)
387
+
388
+ api.add_operation(:select, Seahorse::Model::Operation.new.tap do |o|
389
+ o.name = "Select"
390
+ o.http_method = "POST"
391
+ o.http_request_uri = "/"
392
+ o.input = Shapes::ShapeRef.new(shape: SelectRequest)
393
+ o.output = Shapes::ShapeRef.new(shape: SelectResult)
394
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValue, metadata: {
395
+ "error" => {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true},
396
+ "exception" => true
397
+ })
398
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken, metadata: {
399
+ "error" => {"code"=>"InvalidNextToken", "httpStatusCode"=>400, "senderFault"=>true},
400
+ "exception" => true
401
+ })
402
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNumberPredicates, metadata: {
403
+ "error" => {"code"=>"InvalidNumberPredicates", "httpStatusCode"=>400, "senderFault"=>true},
404
+ "exception" => true
405
+ })
406
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNumberValueTests, metadata: {
407
+ "error" => {"code"=>"InvalidNumberValueTests", "httpStatusCode"=>400, "senderFault"=>true},
408
+ "exception" => true
409
+ })
410
+ o.errors << Shapes::ShapeRef.new(shape: InvalidQueryExpression, metadata: {
411
+ "error" => {"code"=>"InvalidQueryExpression", "httpStatusCode"=>400, "senderFault"=>true},
412
+ "exception" => true
413
+ })
414
+ o.errors << Shapes::ShapeRef.new(shape: MissingParameter, metadata: {
415
+ "error" => {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true},
416
+ "exception" => true
417
+ })
418
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDomain, metadata: {
419
+ "error" => {"code"=>"NoSuchDomain", "httpStatusCode"=>400, "senderFault"=>true},
420
+ "exception" => true
421
+ })
422
+ o.errors << Shapes::ShapeRef.new(shape: RequestTimeout, metadata: {
423
+ "error" => {"code"=>"RequestTimeout", "httpStatusCode"=>408, "senderFault"=>true},
424
+ "exception" => true
425
+ })
426
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestedAttributes, metadata: {
427
+ "error" => {"code"=>"TooManyRequestedAttributes", "httpStatusCode"=>400, "senderFault"=>true},
428
+ "exception" => true
429
+ })
430
+ o[:pager] = Aws::Pager.new(
431
+ tokens: {
432
+ "next_token" => "next_token"
433
+ }
434
+ )
435
+ end)
436
+ end
437
+
438
+ end
439
+ end
440
+ end
@@ -0,0 +1,7 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SimpleDB
10
+ module Errors
11
+
12
+ extend Aws::Errors::DynamicErrors
13
+
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
+ end
23
+ end