Skip to content

Commit

Permalink
chore: Updated codegen (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins authored May 17, 2024
1 parent 8b27a7f commit cf2f666
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 114 deletions.
42 changes: 18 additions & 24 deletions Sources/Services/AWSAPIGateway/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5122,8 +5122,8 @@ extension GetApiKeysOutput {
let reader = responseReader
var value = GetApiKeysOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.ApiKey.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = try reader["position"].readIfPresent()
value.warnings = try reader["warnings"].readListIfPresent(memberReadingClosure: Swift.String.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
return value
}
}
Expand Down Expand Up @@ -5341,7 +5341,7 @@ extension GetAuthorizersOutput {
let reader = responseReader
var value = GetAuthorizersOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Authorizer.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -5520,7 +5520,7 @@ extension GetBasePathMappingsOutput {
let reader = responseReader
var value = GetBasePathMappingsOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.BasePathMapping.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -5698,7 +5698,7 @@ extension GetClientCertificatesOutput {
let reader = responseReader
var value = GetClientCertificatesOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.ClientCertificate.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -5901,7 +5901,7 @@ extension GetDeploymentsOutput {
let reader = responseReader
var value = GetDeploymentsOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Deployment.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -6113,7 +6113,7 @@ extension GetDocumentationPartsOutput {
let reader = responseReader
var value = GetDocumentationPartsOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.DocumentationPart.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -6291,7 +6291,7 @@ extension GetDocumentationVersionsOutput {
let reader = responseReader
var value = GetDocumentationVersionsOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.DocumentationVersion.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -6524,7 +6524,7 @@ extension GetDomainNamesOutput {
let reader = responseReader
var value = GetDomainNamesOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.DomainName.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -6642,9 +6642,6 @@ public struct GetExportInput {
extension GetExportOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetExportOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetExportOutput()
if let contentDispositionHeaderValue = httpResponse.headers.value(for: "Content-Disposition") {
value.contentDisposition = contentDispositionHeaderValue
Expand Down Expand Up @@ -6854,7 +6851,7 @@ extension GetGatewayResponsesOutput {
let reader = responseReader
var value = GetGatewayResponsesOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.GatewayResponse.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -7625,7 +7622,7 @@ extension GetModelsOutput {
let reader = responseReader
var value = GetModelsOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Model.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -7809,7 +7806,7 @@ extension GetRequestValidatorsOutput {
let reader = responseReader
var value = GetRequestValidatorsOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.RequestValidator.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -8025,7 +8022,7 @@ extension GetResourcesOutput {
let reader = responseReader
var value = GetResourcesOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Resource.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -8243,7 +8240,7 @@ extension GetRestApisOutput {
let reader = responseReader
var value = GetRestApisOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.RestApi.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -8346,9 +8343,6 @@ public struct GetSdkInput {
extension GetSdkOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetSdkOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetSdkOutput()
if let contentDispositionHeaderValue = httpResponse.headers.value(for: "Content-Disposition") {
value.contentDisposition = contentDispositionHeaderValue
Expand Down Expand Up @@ -8988,9 +8982,9 @@ extension GetUsageOutput {
var value = GetUsageOutput()
value.endDate = try reader["endDate"].readIfPresent()
value.items = try reader["values"].readMapIfPresent(valueReadingClosure: listReadingClosure(memberReadingClosure: listReadingClosure(memberReadingClosure: Swift.Int.read(from:), memberNodeInfo: "member", isFlattened: false), memberNodeInfo: "member", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false)
value.position = try reader["position"].readIfPresent()
value.startDate = try reader["startDate"].readIfPresent()
value.usagePlanId = try reader["usagePlanId"].readIfPresent()
value.position = nil
return value
}
}
Expand Down Expand Up @@ -9218,7 +9212,7 @@ extension GetUsagePlanKeysOutput {
let reader = responseReader
var value = GetUsagePlanKeysOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.UsagePlanKey.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -9390,7 +9384,7 @@ extension GetUsagePlansOutput {
let reader = responseReader
var value = GetUsagePlansOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.UsagePlan.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -9573,7 +9567,7 @@ extension GetVpcLinksOutput {
let reader = responseReader
var value = GetVpcLinksOutput()
value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.VpcLink.read(from:), memberNodeInfo: "member", isFlattened: false)
value.position = nil
value.position = try reader["position"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -15208,9 +15202,9 @@ extension UpdateUsageOutput {
var value = UpdateUsageOutput()
value.endDate = try reader["endDate"].readIfPresent()
value.items = try reader["values"].readMapIfPresent(valueReadingClosure: listReadingClosure(memberReadingClosure: listReadingClosure(memberReadingClosure: Swift.Int.read(from:), memberNodeInfo: "member", isFlattened: false), memberNodeInfo: "member", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false)
value.position = try reader["position"].readIfPresent()
value.startDate = try reader["startDate"].readIfPresent()
value.usagePlanId = try reader["usagePlanId"].readIfPresent()
value.position = nil
return value
}
}
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSApiGatewayV2/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3678,9 +3678,6 @@ public struct ExportApiInput {
extension ExportApiOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> ExportApiOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = ExportApiOutput()
switch httpResponse.body {
case .data(let data):
Expand Down
9 changes: 0 additions & 9 deletions Sources/Services/AWSAppConfig/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1323,9 +1323,6 @@ extension CreateHostedConfigurationVersionOutput: Swift.CustomDebugStringConvert
extension CreateHostedConfigurationVersionOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> CreateHostedConfigurationVersionOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = CreateHostedConfigurationVersionOutput()
if let applicationIdHeaderValue = httpResponse.headers.value(for: "Application-Id") {
value.applicationId = applicationIdHeaderValue
Expand Down Expand Up @@ -2418,9 +2415,6 @@ extension GetConfigurationOutput: Swift.CustomDebugStringConvertible {
extension GetConfigurationOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetConfigurationOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetConfigurationOutput()
if let configurationVersionHeaderValue = httpResponse.headers.value(for: "Configuration-Version") {
value.configurationVersion = configurationVersionHeaderValue
Expand Down Expand Up @@ -3215,9 +3209,6 @@ extension GetHostedConfigurationVersionOutput: Swift.CustomDebugStringConvertibl
extension GetHostedConfigurationVersionOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetHostedConfigurationVersionOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetHostedConfigurationVersionOutput()
if let applicationIdHeaderValue = httpResponse.headers.value(for: "Application-Id") {
value.applicationId = applicationIdHeaderValue
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSAppConfigData/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ extension GetLatestConfigurationOutput: Swift.CustomDebugStringConvertible {
extension GetLatestConfigurationOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetLatestConfigurationOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetLatestConfigurationOutput()
if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") {
value.contentType = contentTypeHeaderValue
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSAppSync/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4899,9 +4899,6 @@ public struct GetIntrospectionSchemaInput {
extension GetIntrospectionSchemaOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetIntrospectionSchemaOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetIntrospectionSchemaOutput()
switch httpResponse.body {
case .data(let data):
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSBedrockRuntime/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ extension InvokeModelOutput: Swift.CustomDebugStringConvertible {
extension InvokeModelOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> InvokeModelOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = InvokeModelOutput()
if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") {
value.contentType = contentTypeHeaderValue
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSCloudFront/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8746,9 +8746,6 @@ extension GetFunctionOutput: Swift.CustomDebugStringConvertible {
extension GetFunctionOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetFunctionOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyXML.Reader.from(data: data)
let reader = responseReader
var value = GetFunctionOutput()
if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") {
value.contentType = contentTypeHeaderValue
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSCodeGuruProfiler/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1506,9 +1506,6 @@ public struct GetProfileInput {
extension GetProfileOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetProfileOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetProfileOutput()
if let contentEncodingHeaderValue = httpResponse.headers.value(for: "Content-Encoding") {
value.contentEncoding = contentEncodingHeaderValue
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSDataExchange/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5554,9 +5554,6 @@ public struct SendApiAssetInput {
extension SendApiAssetOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> SendApiAssetOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = SendApiAssetOutput()
let keysForResponseHeaders = httpResponse.headers.dictionary.keys
if (!keysForResponseHeaders.isEmpty) {
Expand Down
9 changes: 0 additions & 9 deletions Sources/Services/AWSIoTDataPlane/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ public struct DeleteThingShadowInput {
extension DeleteThingShadowOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> DeleteThingShadowOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = DeleteThingShadowOutput()
switch httpResponse.body {
case .data(let data):
Expand Down Expand Up @@ -268,9 +265,6 @@ public struct GetThingShadowInput {
extension GetThingShadowOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetThingShadowOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetThingShadowOutput()
switch httpResponse.body {
case .data(let data):
Expand Down Expand Up @@ -1124,9 +1118,6 @@ public struct UpdateThingShadowInput {
extension UpdateThingShadowOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> UpdateThingShadowOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = UpdateThingShadowOutput()
switch httpResponse.body {
case .data(let data):
Expand Down
6 changes: 0 additions & 6 deletions Sources/Services/AWSIoTWireless/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5369,9 +5369,6 @@ public struct GetPositionEstimateInput {
extension GetPositionEstimateOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetPositionEstimateOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetPositionEstimateOutput()
switch httpResponse.body {
case .data(let data):
Expand Down Expand Up @@ -5767,9 +5764,6 @@ public struct GetResourcePositionInput {
extension GetResourcePositionOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetResourcePositionOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = GetResourcePositionOutput()
switch httpResponse.body {
case .data(let data):
Expand Down
3 changes: 0 additions & 3 deletions Sources/Services/AWSLambda/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6683,9 +6683,6 @@ extension InvokeOutput: Swift.CustomDebugStringConvertible {
extension InvokeOutput {

static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> InvokeOutput {
let data = try await httpResponse.data()
let responseReader = try SmithyJSON.Reader.from(data: data)
let reader = responseReader
var value = InvokeOutput()
if let executedVersionHeaderValue = httpResponse.headers.value(for: "X-Amz-Executed-Version") {
value.executedVersion = executedVersionHeaderValue
Expand Down
Loading

0 comments on commit cf2f666

Please sign in to comment.