Skip to content

chore: remove __type and isa from shapes #1502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
101 changes: 3 additions & 98 deletions clients/client-accessanalyzer/models/index.ts

Large diffs are not rendered by default.

23 changes: 0 additions & 23 deletions clients/client-accessanalyzer/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ export const deserializeAws_restJson1CreateAnalyzerCommand = async (
}
const contents: CreateAnalyzerCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "CreateAnalyzerResponse",
arn: undefined,
};
const data: any = await parseBody(output.body, context);
Expand Down Expand Up @@ -1011,7 +1010,6 @@ export const deserializeAws_restJson1GetAnalyzedResourceCommand = async (
}
const contents: GetAnalyzedResourceCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "GetAnalyzedResourceResponse",
resource: undefined,
};
const data: any = await parseBody(output.body, context);
Expand Down Expand Up @@ -1099,7 +1097,6 @@ export const deserializeAws_restJson1GetAnalyzerCommand = async (
}
const contents: GetAnalyzerCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "GetAnalyzerResponse",
analyzer: undefined,
};
const data: any = await parseBody(output.body, context);
Expand Down Expand Up @@ -1187,7 +1184,6 @@ export const deserializeAws_restJson1GetArchiveRuleCommand = async (
}
const contents: GetArchiveRuleCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "GetArchiveRuleResponse",
archiveRule: undefined,
};
const data: any = await parseBody(output.body, context);
Expand Down Expand Up @@ -1275,7 +1271,6 @@ export const deserializeAws_restJson1GetFindingCommand = async (
}
const contents: GetFindingCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "GetFindingResponse",
finding: undefined,
};
const data: any = await parseBody(output.body, context);
Expand Down Expand Up @@ -1363,7 +1358,6 @@ export const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (
}
const contents: ListAnalyzedResourcesCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "ListAnalyzedResourcesResponse",
analyzedResources: undefined,
nextToken: undefined,
};
Expand Down Expand Up @@ -1455,7 +1449,6 @@ export const deserializeAws_restJson1ListAnalyzersCommand = async (
}
const contents: ListAnalyzersCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "ListAnalyzersResponse",
analyzers: undefined,
nextToken: undefined,
};
Expand Down Expand Up @@ -1539,7 +1532,6 @@ export const deserializeAws_restJson1ListArchiveRulesCommand = async (
}
const contents: ListArchiveRulesCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "ListArchiveRulesResponse",
archiveRules: undefined,
nextToken: undefined,
};
Expand Down Expand Up @@ -1623,7 +1615,6 @@ export const deserializeAws_restJson1ListFindingsCommand = async (
}
const contents: ListFindingsCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "ListFindingsResponse",
findings: undefined,
nextToken: undefined,
};
Expand Down Expand Up @@ -1715,7 +1706,6 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
}
const contents: ListTagsForResourceCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "ListTagsForResourceResponse",
tags: undefined,
};
const data: any = await parseBody(output.body, context);
Expand Down Expand Up @@ -1886,7 +1876,6 @@ export const deserializeAws_restJson1TagResourceCommand = async (
}
const contents: TagResourceCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "TagResourceResponse",
};
await collectBody(output.body, context);
return Promise.resolve(contents);
Expand Down Expand Up @@ -1970,7 +1959,6 @@ export const deserializeAws_restJson1UntagResourceCommand = async (
}
const contents: UntagResourceCommandOutput = {
$metadata: deserializeMetadata(output),
__type: "UntagResourceResponse",
};
await collectBody(output.body, context);
return Promise.resolve(contents);
Expand Down Expand Up @@ -2433,7 +2421,6 @@ const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext

const deserializeAws_restJson1AnalyzedResource = (output: any, context: __SerdeContext): AnalyzedResource => {
return {
__type: "AnalyzedResource",
actions:
output.actions !== undefined && output.actions !== null
? deserializeAws_restJson1ActionList(output.actions, context)
Expand Down Expand Up @@ -2469,7 +2456,6 @@ const deserializeAws_restJson1AnalyzedResourceSummary = (
context: __SerdeContext
): AnalyzedResourceSummary => {
return {
__type: "AnalyzedResourceSummary",
resourceArn: output.resourceArn !== undefined && output.resourceArn !== null ? output.resourceArn : undefined,
resourceOwnerAccount:
output.resourceOwnerAccount !== undefined && output.resourceOwnerAccount !== null
Expand All @@ -2485,7 +2471,6 @@ const deserializeAws_restJson1AnalyzersList = (output: any, context: __SerdeCont

const deserializeAws_restJson1AnalyzerSummary = (output: any, context: __SerdeContext): AnalyzerSummary => {
return {
__type: "AnalyzerSummary",
arn: output.arn !== undefined && output.arn !== null ? output.arn : undefined,
createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
lastResourceAnalyzed:
Expand Down Expand Up @@ -2516,7 +2501,6 @@ const deserializeAws_restJson1ArchiveRulesList = (output: any, context: __SerdeC

const deserializeAws_restJson1ArchiveRuleSummary = (output: any, context: __SerdeContext): ArchiveRuleSummary => {
return {
__type: "ArchiveRuleSummary",
createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
filter:
output.filter !== undefined && output.filter !== null
Expand All @@ -2539,7 +2523,6 @@ const deserializeAws_restJson1ConditionKeyMap = (output: any, context: __SerdeCo

const deserializeAws_restJson1Criterion = (output: any, context: __SerdeContext): Criterion => {
return {
__type: "Criterion",
contains:
output.contains !== undefined && output.contains !== null
? deserializeAws_restJson1ValueList(output.contains, context)
Expand Down Expand Up @@ -2569,7 +2552,6 @@ const deserializeAws_restJson1FilterCriteriaMap = (

const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): Finding => {
return {
__type: "Finding",
action:
output.action !== undefined && output.action !== null
? deserializeAws_restJson1ActionList(output.action, context)
Expand Down Expand Up @@ -2608,7 +2590,6 @@ const deserializeAws_restJson1FindingsList = (output: any, context: __SerdeConte

const deserializeAws_restJson1FindingSource = (output: any, context: __SerdeContext): FindingSource => {
return {
__type: "FindingSource",
detail:
output.detail !== undefined && output.detail !== null
? deserializeAws_restJson1FindingSourceDetail(output.detail, context)
Expand All @@ -2619,7 +2600,6 @@ const deserializeAws_restJson1FindingSource = (output: any, context: __SerdeCont

const deserializeAws_restJson1FindingSourceDetail = (output: any, context: __SerdeContext): FindingSourceDetail => {
return {
__type: "FindingSourceDetail",
accessPointArn:
output.accessPointArn !== undefined && output.accessPointArn !== null ? output.accessPointArn : undefined,
} as any;
Expand All @@ -2631,7 +2611,6 @@ const deserializeAws_restJson1FindingSourceList = (output: any, context: __Serde

const deserializeAws_restJson1FindingSummary = (output: any, context: __SerdeContext): FindingSummary => {
return {
__type: "FindingSummary",
action:
output.action !== undefined && output.action !== null
? deserializeAws_restJson1ActionList(output.action, context)
Expand Down Expand Up @@ -2680,7 +2659,6 @@ const deserializeAws_restJson1SharedViaList = (output: any, context: __SerdeCont

const deserializeAws_restJson1StatusReason = (output: any, context: __SerdeContext): StatusReason => {
return {
__type: "StatusReason",
code: output.code !== undefined && output.code !== null ? output.code : undefined,
} as any;
};
Expand All @@ -2700,7 +2678,6 @@ const deserializeAws_restJson1ValidationExceptionField = (
context: __SerdeContext
): ValidationExceptionField => {
return {
__type: "ValidationExceptionField",
message: output.message !== undefined && output.message !== null ? output.message : undefined,
name: output.name !== undefined && output.name !== null ? output.name : undefined,
} as any;
Expand Down
Loading