aws-sdk-invoicing 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,372 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::Invoicing
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AccountIdList = Shapes::ListShape.new(name: 'AccountIdList')
19
+ AccountIdString = Shapes::StringShape.new(name: 'AccountIdString')
20
+ AsOfTimestamp = Shapes::TimestampShape.new(name: 'AsOfTimestamp')
21
+ BasicString = Shapes::StringShape.new(name: 'BasicString')
22
+ BatchGetInvoiceProfileRequest = Shapes::StructureShape.new(name: 'BatchGetInvoiceProfileRequest')
23
+ BatchGetInvoiceProfileResponse = Shapes::StructureShape.new(name: 'BatchGetInvoiceProfileResponse')
24
+ CreateInvoiceUnitRequest = Shapes::StructureShape.new(name: 'CreateInvoiceUnitRequest')
25
+ CreateInvoiceUnitResponse = Shapes::StructureShape.new(name: 'CreateInvoiceUnitResponse')
26
+ DeleteInvoiceUnitRequest = Shapes::StructureShape.new(name: 'DeleteInvoiceUnitRequest')
27
+ DeleteInvoiceUnitResponse = Shapes::StructureShape.new(name: 'DeleteInvoiceUnitResponse')
28
+ DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
29
+ Filters = Shapes::StructureShape.new(name: 'Filters')
30
+ GetInvoiceUnitRequest = Shapes::StructureShape.new(name: 'GetInvoiceUnitRequest')
31
+ GetInvoiceUnitResponse = Shapes::StructureShape.new(name: 'GetInvoiceUnitResponse')
32
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
33
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
34
+ InvoiceProfile = Shapes::StructureShape.new(name: 'InvoiceProfile')
35
+ InvoiceUnit = Shapes::StructureShape.new(name: 'InvoiceUnit')
36
+ InvoiceUnitArnString = Shapes::StringShape.new(name: 'InvoiceUnitArnString')
37
+ InvoiceUnitName = Shapes::StringShape.new(name: 'InvoiceUnitName')
38
+ InvoiceUnitNames = Shapes::ListShape.new(name: 'InvoiceUnitNames')
39
+ InvoiceUnitRule = Shapes::StructureShape.new(name: 'InvoiceUnitRule')
40
+ InvoiceUnits = Shapes::ListShape.new(name: 'InvoiceUnits')
41
+ LastModifiedTimestamp = Shapes::TimestampShape.new(name: 'LastModifiedTimestamp')
42
+ ListInvoiceUnitsRequest = Shapes::StructureShape.new(name: 'ListInvoiceUnitsRequest')
43
+ ListInvoiceUnitsResponse = Shapes::StructureShape.new(name: 'ListInvoiceUnitsResponse')
44
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
45
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
46
+ MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
47
+ NextTokenString = Shapes::StringShape.new(name: 'NextTokenString')
48
+ ProfileList = Shapes::ListShape.new(name: 'ProfileList')
49
+ ReceiverAddress = Shapes::StructureShape.new(name: 'ReceiverAddress')
50
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
51
+ ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
52
+ ResourceTagKey = Shapes::StringShape.new(name: 'ResourceTagKey')
53
+ ResourceTagKeyList = Shapes::ListShape.new(name: 'ResourceTagKeyList')
54
+ ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
55
+ ResourceTagValue = Shapes::StringShape.new(name: 'ResourceTagValue')
56
+ SensitiveBasicString = Shapes::StringShape.new(name: 'SensitiveBasicString')
57
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
58
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
59
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
60
+ TagrisArn = Shapes::StringShape.new(name: 'TagrisArn')
61
+ TaxInheritanceDisabledFlag = Shapes::BooleanShape.new(name: 'TaxInheritanceDisabledFlag')
62
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
63
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
64
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
65
+ UpdateInvoiceUnitRequest = Shapes::StructureShape.new(name: 'UpdateInvoiceUnitRequest')
66
+ UpdateInvoiceUnitResponse = Shapes::StructureShape.new(name: 'UpdateInvoiceUnitResponse')
67
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
68
+ ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
69
+ ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
70
+ ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
71
+
72
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, location_name: "message"))
73
+ AccessDeniedException.add_member(:resource_name, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "resourceName"))
74
+ AccessDeniedException.struct_class = Types::AccessDeniedException
75
+
76
+ AccountIdList.member = Shapes::ShapeRef.new(shape: AccountIdString)
77
+
78
+ BatchGetInvoiceProfileRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIdList, required: true, location_name: "AccountIds"))
79
+ BatchGetInvoiceProfileRequest.struct_class = Types::BatchGetInvoiceProfileRequest
80
+
81
+ BatchGetInvoiceProfileResponse.add_member(:profiles, Shapes::ShapeRef.new(shape: ProfileList, location_name: "Profiles"))
82
+ BatchGetInvoiceProfileResponse.struct_class = Types::BatchGetInvoiceProfileResponse
83
+
84
+ CreateInvoiceUnitRequest.add_member(:name, Shapes::ShapeRef.new(shape: InvoiceUnitName, required: true, location_name: "Name"))
85
+ CreateInvoiceUnitRequest.add_member(:invoice_receiver, Shapes::ShapeRef.new(shape: AccountIdString, required: true, location_name: "InvoiceReceiver"))
86
+ CreateInvoiceUnitRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
87
+ CreateInvoiceUnitRequest.add_member(:tax_inheritance_disabled, Shapes::ShapeRef.new(shape: TaxInheritanceDisabledFlag, location_name: "TaxInheritanceDisabled"))
88
+ CreateInvoiceUnitRequest.add_member(:rule, Shapes::ShapeRef.new(shape: InvoiceUnitRule, required: true, location_name: "Rule"))
89
+ CreateInvoiceUnitRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
90
+ CreateInvoiceUnitRequest.struct_class = Types::CreateInvoiceUnitRequest
91
+
92
+ CreateInvoiceUnitResponse.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "InvoiceUnitArn"))
93
+ CreateInvoiceUnitResponse.struct_class = Types::CreateInvoiceUnitResponse
94
+
95
+ DeleteInvoiceUnitRequest.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, required: true, location_name: "InvoiceUnitArn"))
96
+ DeleteInvoiceUnitRequest.struct_class = Types::DeleteInvoiceUnitRequest
97
+
98
+ DeleteInvoiceUnitResponse.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "InvoiceUnitArn"))
99
+ DeleteInvoiceUnitResponse.struct_class = Types::DeleteInvoiceUnitResponse
100
+
101
+ Filters.add_member(:names, Shapes::ShapeRef.new(shape: InvoiceUnitNames, location_name: "Names"))
102
+ Filters.add_member(:invoice_receivers, Shapes::ShapeRef.new(shape: AccountIdList, location_name: "InvoiceReceivers"))
103
+ Filters.add_member(:accounts, Shapes::ShapeRef.new(shape: AccountIdList, location_name: "Accounts"))
104
+ Filters.struct_class = Types::Filters
105
+
106
+ GetInvoiceUnitRequest.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, required: true, location_name: "InvoiceUnitArn"))
107
+ GetInvoiceUnitRequest.add_member(:as_of, Shapes::ShapeRef.new(shape: AsOfTimestamp, location_name: "AsOf"))
108
+ GetInvoiceUnitRequest.struct_class = Types::GetInvoiceUnitRequest
109
+
110
+ GetInvoiceUnitResponse.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "InvoiceUnitArn"))
111
+ GetInvoiceUnitResponse.add_member(:invoice_receiver, Shapes::ShapeRef.new(shape: AccountIdString, location_name: "InvoiceReceiver"))
112
+ GetInvoiceUnitResponse.add_member(:name, Shapes::ShapeRef.new(shape: InvoiceUnitName, location_name: "Name"))
113
+ GetInvoiceUnitResponse.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
114
+ GetInvoiceUnitResponse.add_member(:tax_inheritance_disabled, Shapes::ShapeRef.new(shape: TaxInheritanceDisabledFlag, location_name: "TaxInheritanceDisabled", metadata: {"box"=>true}))
115
+ GetInvoiceUnitResponse.add_member(:rule, Shapes::ShapeRef.new(shape: InvoiceUnitRule, location_name: "Rule"))
116
+ GetInvoiceUnitResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: LastModifiedTimestamp, location_name: "LastModified"))
117
+ GetInvoiceUnitResponse.struct_class = Types::GetInvoiceUnitResponse
118
+
119
+ InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "retryAfterSeconds"))
120
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, location_name: "message"))
121
+ InternalServerException.struct_class = Types::InternalServerException
122
+
123
+ InvoiceProfile.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdString, location_name: "AccountId"))
124
+ InvoiceProfile.add_member(:receiver_name, Shapes::ShapeRef.new(shape: BasicString, location_name: "ReceiverName"))
125
+ InvoiceProfile.add_member(:receiver_address, Shapes::ShapeRef.new(shape: ReceiverAddress, location_name: "ReceiverAddress"))
126
+ InvoiceProfile.add_member(:receiver_email, Shapes::ShapeRef.new(shape: SensitiveBasicString, location_name: "ReceiverEmail"))
127
+ InvoiceProfile.add_member(:issuer, Shapes::ShapeRef.new(shape: BasicString, location_name: "Issuer"))
128
+ InvoiceProfile.add_member(:tax_registration_number, Shapes::ShapeRef.new(shape: SensitiveBasicString, location_name: "TaxRegistrationNumber"))
129
+ InvoiceProfile.struct_class = Types::InvoiceProfile
130
+
131
+ InvoiceUnit.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "InvoiceUnitArn"))
132
+ InvoiceUnit.add_member(:invoice_receiver, Shapes::ShapeRef.new(shape: AccountIdString, location_name: "InvoiceReceiver"))
133
+ InvoiceUnit.add_member(:name, Shapes::ShapeRef.new(shape: InvoiceUnitName, location_name: "Name"))
134
+ InvoiceUnit.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
135
+ InvoiceUnit.add_member(:tax_inheritance_disabled, Shapes::ShapeRef.new(shape: TaxInheritanceDisabledFlag, location_name: "TaxInheritanceDisabled", metadata: {"box"=>true}))
136
+ InvoiceUnit.add_member(:rule, Shapes::ShapeRef.new(shape: InvoiceUnitRule, location_name: "Rule"))
137
+ InvoiceUnit.add_member(:last_modified, Shapes::ShapeRef.new(shape: LastModifiedTimestamp, location_name: "LastModified"))
138
+ InvoiceUnit.struct_class = Types::InvoiceUnit
139
+
140
+ InvoiceUnitNames.member = Shapes::ShapeRef.new(shape: InvoiceUnitName)
141
+
142
+ InvoiceUnitRule.add_member(:linked_accounts, Shapes::ShapeRef.new(shape: AccountIdList, location_name: "LinkedAccounts"))
143
+ InvoiceUnitRule.struct_class = Types::InvoiceUnitRule
144
+
145
+ InvoiceUnits.member = Shapes::ShapeRef.new(shape: InvoiceUnit)
146
+
147
+ ListInvoiceUnitsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
148
+ ListInvoiceUnitsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenString, location_name: "NextToken"))
149
+ ListInvoiceUnitsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
150
+ ListInvoiceUnitsRequest.add_member(:as_of, Shapes::ShapeRef.new(shape: AsOfTimestamp, location_name: "AsOf"))
151
+ ListInvoiceUnitsRequest.struct_class = Types::ListInvoiceUnitsRequest
152
+
153
+ ListInvoiceUnitsResponse.add_member(:invoice_units, Shapes::ShapeRef.new(shape: InvoiceUnits, location_name: "InvoiceUnits"))
154
+ ListInvoiceUnitsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenString, location_name: "NextToken"))
155
+ ListInvoiceUnitsResponse.struct_class = Types::ListInvoiceUnitsResponse
156
+
157
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TagrisArn, required: true, location_name: "ResourceArn"))
158
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
159
+
160
+ ListTagsForResourceResponse.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
161
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
162
+
163
+ ProfileList.member = Shapes::ShapeRef.new(shape: InvoiceProfile)
164
+
165
+ ReceiverAddress.add_member(:address_line_1, Shapes::ShapeRef.new(shape: BasicString, location_name: "AddressLine1"))
166
+ ReceiverAddress.add_member(:address_line_2, Shapes::ShapeRef.new(shape: BasicString, location_name: "AddressLine2"))
167
+ ReceiverAddress.add_member(:address_line_3, Shapes::ShapeRef.new(shape: BasicString, location_name: "AddressLine3"))
168
+ ReceiverAddress.add_member(:district_or_county, Shapes::ShapeRef.new(shape: BasicString, location_name: "DistrictOrCounty"))
169
+ ReceiverAddress.add_member(:city, Shapes::ShapeRef.new(shape: BasicString, location_name: "City"))
170
+ ReceiverAddress.add_member(:state_or_region, Shapes::ShapeRef.new(shape: BasicString, location_name: "StateOrRegion"))
171
+ ReceiverAddress.add_member(:country_code, Shapes::ShapeRef.new(shape: BasicString, location_name: "CountryCode"))
172
+ ReceiverAddress.add_member(:company_name, Shapes::ShapeRef.new(shape: BasicString, location_name: "CompanyName"))
173
+ ReceiverAddress.add_member(:postal_code, Shapes::ShapeRef.new(shape: BasicString, location_name: "PostalCode"))
174
+ ReceiverAddress.struct_class = Types::ReceiverAddress
175
+
176
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, location_name: "message"))
177
+ ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "resourceName"))
178
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
179
+
180
+ ResourceTag.add_member(:key, Shapes::ShapeRef.new(shape: ResourceTagKey, required: true, location_name: "Key"))
181
+ ResourceTag.add_member(:value, Shapes::ShapeRef.new(shape: ResourceTagValue, required: true, location_name: "Value"))
182
+ ResourceTag.struct_class = Types::ResourceTag
183
+
184
+ ResourceTagKeyList.member = Shapes::ShapeRef.new(shape: ResourceTagKey)
185
+
186
+ ResourceTagList.member = Shapes::ShapeRef.new(shape: ResourceTag)
187
+
188
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, required: true, location_name: "message"))
189
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
190
+
191
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TagrisArn, required: true, location_name: "ResourceArn"))
192
+ TagResourceRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, required: true, location_name: "ResourceTags"))
193
+ TagResourceRequest.struct_class = Types::TagResourceRequest
194
+
195
+ TagResourceResponse.struct_class = Types::TagResourceResponse
196
+
197
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, location_name: "message"))
198
+ ThrottlingException.struct_class = Types::ThrottlingException
199
+
200
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TagrisArn, required: true, location_name: "ResourceArn"))
201
+ UntagResourceRequest.add_member(:resource_tag_keys, Shapes::ShapeRef.new(shape: ResourceTagKeyList, required: true, location_name: "ResourceTagKeys"))
202
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
203
+
204
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
205
+
206
+ UpdateInvoiceUnitRequest.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, required: true, location_name: "InvoiceUnitArn"))
207
+ UpdateInvoiceUnitRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
208
+ UpdateInvoiceUnitRequest.add_member(:tax_inheritance_disabled, Shapes::ShapeRef.new(shape: TaxInheritanceDisabledFlag, location_name: "TaxInheritanceDisabled", metadata: {"box"=>true}))
209
+ UpdateInvoiceUnitRequest.add_member(:rule, Shapes::ShapeRef.new(shape: InvoiceUnitRule, location_name: "Rule"))
210
+ UpdateInvoiceUnitRequest.struct_class = Types::UpdateInvoiceUnitRequest
211
+
212
+ UpdateInvoiceUnitResponse.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "InvoiceUnitArn"))
213
+ UpdateInvoiceUnitResponse.struct_class = Types::UpdateInvoiceUnitResponse
214
+
215
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, location_name: "message"))
216
+ ValidationException.add_member(:resource_name, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, location_name: "resourceName"))
217
+ ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "reason"))
218
+ ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
219
+ ValidationException.struct_class = Types::ValidationException
220
+
221
+ ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: BasicString, required: true, location_name: "name"))
222
+ ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, required: true, location_name: "message"))
223
+ ValidationExceptionField.struct_class = Types::ValidationExceptionField
224
+
225
+ ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
226
+
227
+
228
+ # @api private
229
+ API = Seahorse::Model::Api.new.tap do |api|
230
+
231
+ api.version = "2024-12-01"
232
+
233
+ api.metadata = {
234
+ "apiVersion" => "2024-12-01",
235
+ "auth" => ["aws.auth#sigv4"],
236
+ "endpointPrefix" => "invoicing",
237
+ "jsonVersion" => "1.0",
238
+ "protocol" => "json",
239
+ "protocols" => ["json"],
240
+ "serviceFullName" => "AWS Invoicing",
241
+ "serviceId" => "Invoicing",
242
+ "signatureVersion" => "v4",
243
+ "signingName" => "invoicing",
244
+ "targetPrefix" => "Invoicing",
245
+ "uid" => "invoicing-2024-12-01",
246
+ }
247
+
248
+ api.add_operation(:batch_get_invoice_profile, Seahorse::Model::Operation.new.tap do |o|
249
+ o.name = "BatchGetInvoiceProfile"
250
+ o.http_method = "POST"
251
+ o.http_request_uri = "/"
252
+ o.input = Shapes::ShapeRef.new(shape: BatchGetInvoiceProfileRequest)
253
+ o.output = Shapes::ShapeRef.new(shape: BatchGetInvoiceProfileResponse)
254
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
255
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
256
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
257
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
258
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
259
+ end)
260
+
261
+ api.add_operation(:create_invoice_unit, Seahorse::Model::Operation.new.tap do |o|
262
+ o.name = "CreateInvoiceUnit"
263
+ o.http_method = "POST"
264
+ o.http_request_uri = "/"
265
+ o.input = Shapes::ShapeRef.new(shape: CreateInvoiceUnitRequest)
266
+ o.output = Shapes::ShapeRef.new(shape: CreateInvoiceUnitResponse)
267
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
268
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
269
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
270
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
271
+ end)
272
+
273
+ api.add_operation(:delete_invoice_unit, Seahorse::Model::Operation.new.tap do |o|
274
+ o.name = "DeleteInvoiceUnit"
275
+ o.http_method = "POST"
276
+ o.http_request_uri = "/"
277
+ o.input = Shapes::ShapeRef.new(shape: DeleteInvoiceUnitRequest)
278
+ o.output = Shapes::ShapeRef.new(shape: DeleteInvoiceUnitResponse)
279
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
280
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
281
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
282
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
283
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
284
+ end)
285
+
286
+ api.add_operation(:get_invoice_unit, Seahorse::Model::Operation.new.tap do |o|
287
+ o.name = "GetInvoiceUnit"
288
+ o.http_method = "POST"
289
+ o.http_request_uri = "/"
290
+ o.input = Shapes::ShapeRef.new(shape: GetInvoiceUnitRequest)
291
+ o.output = Shapes::ShapeRef.new(shape: GetInvoiceUnitResponse)
292
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
293
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
294
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
295
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
296
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
297
+ end)
298
+
299
+ api.add_operation(:list_invoice_units, Seahorse::Model::Operation.new.tap do |o|
300
+ o.name = "ListInvoiceUnits"
301
+ o.http_method = "POST"
302
+ o.http_request_uri = "/"
303
+ o.input = Shapes::ShapeRef.new(shape: ListInvoiceUnitsRequest)
304
+ o.output = Shapes::ShapeRef.new(shape: ListInvoiceUnitsResponse)
305
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
306
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
307
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
308
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
309
+ o[:pager] = Aws::Pager.new(
310
+ limit_key: "max_results",
311
+ tokens: {
312
+ "next_token" => "next_token"
313
+ }
314
+ )
315
+ end)
316
+
317
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
318
+ o.name = "ListTagsForResource"
319
+ o.http_method = "POST"
320
+ o.http_request_uri = "/"
321
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
322
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
323
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
324
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
325
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
326
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
327
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
328
+ end)
329
+
330
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
331
+ o.name = "TagResource"
332
+ o.http_method = "POST"
333
+ o.http_request_uri = "/"
334
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
335
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
336
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
337
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
338
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
339
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
340
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
341
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
342
+ end)
343
+
344
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
345
+ o.name = "UntagResource"
346
+ o.http_method = "POST"
347
+ o.http_request_uri = "/"
348
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
349
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
350
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
351
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
352
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
353
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
354
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
355
+ end)
356
+
357
+ api.add_operation(:update_invoice_unit, Seahorse::Model::Operation.new.tap do |o|
358
+ o.name = "UpdateInvoiceUnit"
359
+ o.http_method = "POST"
360
+ o.http_request_uri = "/"
361
+ o.input = Shapes::ShapeRef.new(shape: UpdateInvoiceUnitRequest)
362
+ o.output = Shapes::ShapeRef.new(shape: UpdateInvoiceUnitResponse)
363
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
364
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
365
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
366
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
367
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
368
+ end)
369
+ end
370
+
371
+ end
372
+ end
File without changes
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Invoicing
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute use_fips
14
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
15
+ #
16
+ # @return [Boolean]
17
+ #
18
+ # @!attribute endpoint
19
+ # Override the endpoint used to send this request
20
+ #
21
+ # @return [String]
22
+ #
23
+ # @!attribute region
24
+ # The AWS region used to dispatch the request.
25
+ #
26
+ # @return [String]
27
+ #
28
+ EndpointParameters = Struct.new(
29
+ :use_fips,
30
+ :endpoint,
31
+ :region,
32
+ ) do
33
+ include Aws::Structure
34
+
35
+ # @api private
36
+ class << self
37
+ PARAM_MAP = {
38
+ 'UseFIPS' => :use_fips,
39
+ 'Endpoint' => :endpoint,
40
+ 'Region' => :region,
41
+ }.freeze
42
+ end
43
+
44
+ def initialize(options = {})
45
+ self[:use_fips] = options[:use_fips]
46
+ self[:use_fips] = false if self[:use_fips].nil?
47
+ self[:endpoint] = options[:endpoint]
48
+ self[:region] = options[:region]
49
+ end
50
+
51
+ def self.create(config, options={})
52
+ new({
53
+ use_fips: config.use_fips_endpoint,
54
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
55
+ region: config.region,
56
+ }.merge(options))
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Invoicing
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ use_fips = parameters.use_fips
14
+ endpoint = parameters.endpoint
15
+ region = parameters.region
16
+ if Aws::Endpoints::Matchers.set?(endpoint)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
18
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
19
+ end
20
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
+ end
22
+ if Aws::Endpoints::Matchers.set?(region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
25
+ return Aws::Endpoints::Endpoint.new(url: "https://invoicing-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
26
+ end
27
+ return Aws::Endpoints::Endpoint.new(url: "https://invoicing.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
28
+ end
29
+ end
30
+ raise ArgumentError, "Invalid Configuration: Missing Region"
31
+ raise ArgumentError, 'No endpoint could be resolved'
32
+
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::Invoicing
12
+ # @api private
13
+ module Endpoints
14
+
15
+
16
+ def self.parameters_for_operation(context)
17
+ Aws::Invoicing::EndpointParameters.create(context.config)
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,164 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Invoicing
11
+
12
+ # When Invoicing returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Invoicing::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Invoicing errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Invoicing::Errors::ServiceError
20
+ # # rescues all Invoicing API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {InternalServerException}
32
+ # * {ResourceNotFoundException}
33
+ # * {ServiceQuotaExceededException}
34
+ # * {ThrottlingException}
35
+ # * {ValidationException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
39
+ module Errors
40
+
41
+ extend Aws::Errors::DynamicErrors
42
+
43
+ class AccessDeniedException < ServiceError
44
+
45
+ # @param [Seahorse::Client::RequestContext] context
46
+ # @param [String] message
47
+ # @param [Aws::Invoicing::Types::AccessDeniedException] data
48
+ def initialize(context, message, data = Aws::EmptyStructure.new)
49
+ super(context, message, data)
50
+ end
51
+
52
+ # @return [String]
53
+ def message
54
+ @message || @data[:message]
55
+ end
56
+
57
+ # @return [String]
58
+ def resource_name
59
+ @data[:resource_name]
60
+ end
61
+ end
62
+
63
+ class InternalServerException < ServiceError
64
+
65
+ # @param [Seahorse::Client::RequestContext] context
66
+ # @param [String] message
67
+ # @param [Aws::Invoicing::Types::InternalServerException] data
68
+ def initialize(context, message, data = Aws::EmptyStructure.new)
69
+ super(context, message, data)
70
+ end
71
+
72
+ # @return [String]
73
+ def retry_after_seconds
74
+ @data[:retry_after_seconds]
75
+ end
76
+
77
+ # @return [String]
78
+ def message
79
+ @message || @data[:message]
80
+ end
81
+ end
82
+
83
+ class ResourceNotFoundException < ServiceError
84
+
85
+ # @param [Seahorse::Client::RequestContext] context
86
+ # @param [String] message
87
+ # @param [Aws::Invoicing::Types::ResourceNotFoundException] data
88
+ def initialize(context, message, data = Aws::EmptyStructure.new)
89
+ super(context, message, data)
90
+ end
91
+
92
+ # @return [String]
93
+ def message
94
+ @message || @data[:message]
95
+ end
96
+
97
+ # @return [String]
98
+ def resource_name
99
+ @data[:resource_name]
100
+ end
101
+ end
102
+
103
+ class ServiceQuotaExceededException < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::Invoicing::Types::ServiceQuotaExceededException] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+
112
+ # @return [String]
113
+ def message
114
+ @message || @data[:message]
115
+ end
116
+ end
117
+
118
+ class ThrottlingException < ServiceError
119
+
120
+ # @param [Seahorse::Client::RequestContext] context
121
+ # @param [String] message
122
+ # @param [Aws::Invoicing::Types::ThrottlingException] data
123
+ def initialize(context, message, data = Aws::EmptyStructure.new)
124
+ super(context, message, data)
125
+ end
126
+
127
+ # @return [String]
128
+ def message
129
+ @message || @data[:message]
130
+ end
131
+ end
132
+
133
+ class ValidationException < ServiceError
134
+
135
+ # @param [Seahorse::Client::RequestContext] context
136
+ # @param [String] message
137
+ # @param [Aws::Invoicing::Types::ValidationException] data
138
+ def initialize(context, message, data = Aws::EmptyStructure.new)
139
+ super(context, message, data)
140
+ end
141
+
142
+ # @return [String]
143
+ def message
144
+ @message || @data[:message]
145
+ end
146
+
147
+ # @return [String]
148
+ def resource_name
149
+ @data[:resource_name]
150
+ end
151
+
152
+ # @return [String]
153
+ def reason
154
+ @data[:reason]
155
+ end
156
+
157
+ # @return [String]
158
+ def field_list
159
+ @data[:field_list]
160
+ end
161
+ end
162
+
163
+ end
164
+ end