Skip to content

Commit

Permalink
chore: codegen to process attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Jan 31, 2020
1 parent c3bb8dc commit e53957d
Show file tree
Hide file tree
Showing 22 changed files with 110 additions and 22 deletions.
6 changes: 5 additions & 1 deletion clients/client-auto-scaling/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9259,7 +9259,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-cloudformation/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10546,7 +10546,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-cloudfront/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12175,7 +12175,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-cloudsearch/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5581,7 +5581,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-cloudwatch/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5850,7 +5850,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-docdb/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9665,7 +9665,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-ec2/protocols/Aws_ec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71483,7 +71483,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-elastic-beanstalk/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8737,7 +8737,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8733,7 +8733,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-elastic-load-balancing/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6106,7 +6106,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-elasticache/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12140,7 +12140,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-iam/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20888,7 +20888,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-neptune/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13369,7 +13369,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-rds/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28611,7 +28611,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-redshift/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19711,7 +19711,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-route-53/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9064,7 +9064,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-s3-control/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-s3/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14288,7 +14288,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-ses/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11763,7 +11763,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-sns/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5820,7 +5820,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-sqs/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down
6 changes: 5 additions & 1 deletion clients/client-sts/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,11 @@ const collectBodyString = (
const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, { parseNodeValue: false });
const parsedObj = xmlParse(encoded, {
attributeNamePrefix: "",
ignoreAttributes: false,
parseNodeValue: false
});
return parsedObj[Object.keys(parsedObj)[0]];
}
return {};
Expand Down

0 comments on commit e53957d

Please sign in to comment.