Skip to content

chore(clients): write content-type header for missing operations #2387

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 1 commit into from
May 12, 2021
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion clients/client-api-gateway/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,9 @@ export const serializeAws_restJson1GetAccountCommand = async (
input: GetAccountCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/account";
let body: any;
body = "";
Expand Down
16 changes: 12 additions & 4 deletions clients/client-auditmanager/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ export const serializeAws_restJson1DeregisterAccountCommand = async (
input: DeregisterAccountCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/account/deregisterAccount";
let body: any;
body = "";
Expand Down Expand Up @@ -773,7 +775,9 @@ export const serializeAws_restJson1GetAccountStatusCommand = async (
input: GetAccountStatusCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/account/status";
let body: any;
body = "";
Expand Down Expand Up @@ -1211,7 +1215,9 @@ export const serializeAws_restJson1GetOrganizationAdminAccountCommand = async (
input: GetOrganizationAdminAccountCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/account/organizationAdminAccount";
let body: any;
body = "";
Expand All @@ -1231,7 +1237,9 @@ export const serializeAws_restJson1GetServicesInScopeCommand = async (
input: GetServicesInScopeCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/services";
let body: any;
body = "";
Expand Down
12 changes: 9 additions & 3 deletions clients/client-backup/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,9 @@ export const serializeAws_restJson1DescribeGlobalSettingsCommand = async (
input: DescribeGlobalSettingsCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/global-settings";
let body: any;
body = "";
Expand Down Expand Up @@ -647,7 +649,9 @@ export const serializeAws_restJson1DescribeRegionSettingsCommand = async (
input: DescribeRegionSettingsCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/account-settings";
let body: any;
body = "";
Expand Down Expand Up @@ -975,7 +979,9 @@ export const serializeAws_restJson1GetSupportedResourceTypesCommand = async (
input: GetSupportedResourceTypesCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/supported-resource-types";
let body: any;
body = "";
Expand Down
12 changes: 9 additions & 3 deletions clients/client-chime/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3688,7 +3688,9 @@ export const serializeAws_restJson1GetGlobalSettingsCommand = async (
input: GetGlobalSettingsCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/settings";
let body: any;
body = "";
Expand Down Expand Up @@ -3736,7 +3738,9 @@ export const serializeAws_restJson1GetMessagingSessionEndpointCommand = async (
input: GetMessagingSessionEndpointCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/endpoints/messaging-session";
let body: any;
body = "";
Expand Down Expand Up @@ -3819,7 +3823,9 @@ export const serializeAws_restJson1GetPhoneNumberSettingsCommand = async (
input: GetPhoneNumberSettingsCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/settings/phone-number";
let body: any;
body = "";
Expand Down
78 changes: 78 additions & 0 deletions clients/client-cloudfront/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ export const serializeAws_restXmlCreateCachePolicyCommand = async (
};
let resolvedPath = "/2020-05-31/cache-policy";
let body: any;
if (input.CachePolicyConfig !== undefined) {
body = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
}
let contents: any;
if (input.CachePolicyConfig !== undefined) {
contents = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
Expand Down Expand Up @@ -525,6 +528,12 @@ export const serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = a
};
let resolvedPath = "/2020-05-31/origin-access-identity/cloudfront";
let body: any;
if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
body = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
input.CloudFrontOriginAccessIdentityConfig,
context
);
}
let contents: any;
if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
contents = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
Expand Down Expand Up @@ -556,6 +565,9 @@ export const serializeAws_restXmlCreateDistributionCommand = async (
};
let resolvedPath = "/2020-05-31/distribution";
let body: any;
if (input.DistributionConfig !== undefined) {
body = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
}
let contents: any;
if (input.DistributionConfig !== undefined) {
contents = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
Expand Down Expand Up @@ -587,6 +599,9 @@ export const serializeAws_restXmlCreateDistributionWithTagsCommand = async (
WithTags: "",
};
let body: any;
if (input.DistributionConfigWithTags !== undefined) {
body = serializeAws_restXmlDistributionConfigWithTags(input.DistributionConfigWithTags, context);
}
let contents: any;
if (input.DistributionConfigWithTags !== undefined) {
contents = serializeAws_restXmlDistributionConfigWithTags(input.DistributionConfigWithTags, context);
Expand Down Expand Up @@ -616,6 +631,9 @@ export const serializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = async
};
let resolvedPath = "/2020-05-31/field-level-encryption";
let body: any;
if (input.FieldLevelEncryptionConfig !== undefined) {
body = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
}
let contents: any;
if (input.FieldLevelEncryptionConfig !== undefined) {
contents = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
Expand Down Expand Up @@ -644,6 +662,9 @@ export const serializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = asyn
};
let resolvedPath = "/2020-05-31/field-level-encryption-profile";
let body: any;
if (input.FieldLevelEncryptionProfileConfig !== undefined) {
body = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
}
let contents: any;
if (input.FieldLevelEncryptionProfileConfig !== undefined) {
contents = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
Expand Down Expand Up @@ -720,6 +741,9 @@ export const serializeAws_restXmlCreateInvalidationCommand = async (
throw new Error("No value provided for input HTTP label: DistributionId.");
}
let body: any;
if (input.InvalidationBatch !== undefined) {
body = serializeAws_restXmlInvalidationBatch(input.InvalidationBatch, context);
}
let contents: any;
if (input.InvalidationBatch !== undefined) {
contents = serializeAws_restXmlInvalidationBatch(input.InvalidationBatch, context);
Expand Down Expand Up @@ -748,6 +772,9 @@ export const serializeAws_restXmlCreateKeyGroupCommand = async (
};
let resolvedPath = "/2020-05-31/key-group";
let body: any;
if (input.KeyGroupConfig !== undefined) {
body = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
}
let contents: any;
if (input.KeyGroupConfig !== undefined) {
contents = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
Expand Down Expand Up @@ -785,6 +812,9 @@ export const serializeAws_restXmlCreateMonitoringSubscriptionCommand = async (
throw new Error("No value provided for input HTTP label: DistributionId.");
}
let body: any;
if (input.MonitoringSubscription !== undefined) {
body = serializeAws_restXmlMonitoringSubscription(input.MonitoringSubscription, context);
}
let contents: any;
if (input.MonitoringSubscription !== undefined) {
contents = serializeAws_restXmlMonitoringSubscription(input.MonitoringSubscription, context);
Expand Down Expand Up @@ -813,6 +843,9 @@ export const serializeAws_restXmlCreateOriginRequestPolicyCommand = async (
};
let resolvedPath = "/2020-05-31/origin-request-policy";
let body: any;
if (input.OriginRequestPolicyConfig !== undefined) {
body = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
}
let contents: any;
if (input.OriginRequestPolicyConfig !== undefined) {
contents = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
Expand Down Expand Up @@ -841,6 +874,9 @@ export const serializeAws_restXmlCreatePublicKeyCommand = async (
};
let resolvedPath = "/2020-05-31/public-key";
let body: any;
if (input.PublicKeyConfig !== undefined) {
body = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
}
let contents: any;
if (input.PublicKeyConfig !== undefined) {
contents = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
Expand Down Expand Up @@ -918,6 +954,9 @@ export const serializeAws_restXmlCreateStreamingDistributionCommand = async (
};
let resolvedPath = "/2020-05-31/streaming-distribution";
let body: any;
if (input.StreamingDistributionConfig !== undefined) {
body = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
}
let contents: any;
if (input.StreamingDistributionConfig !== undefined) {
contents = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
Expand Down Expand Up @@ -949,6 +988,9 @@ export const serializeAws_restXmlCreateStreamingDistributionWithTagsCommand = as
WithTags: "",
};
let body: any;
if (input.StreamingDistributionConfigWithTags !== undefined) {
body = serializeAws_restXmlStreamingDistributionConfigWithTags(input.StreamingDistributionConfigWithTags, context);
}
let contents: any;
if (input.StreamingDistributionConfigWithTags !== undefined) {
contents = serializeAws_restXmlStreamingDistributionConfigWithTags(
Expand Down Expand Up @@ -2542,6 +2584,9 @@ export const serializeAws_restXmlTagResourceCommand = async (
...(input.Resource !== undefined && { Resource: input.Resource }),
};
let body: any;
if (input.Tags !== undefined) {
body = serializeAws_restXmlTags(input.Tags, context);
}
let contents: any;
if (input.Tags !== undefined) {
contents = serializeAws_restXmlTags(input.Tags, context);
Expand Down Expand Up @@ -2620,6 +2665,9 @@ export const serializeAws_restXmlUntagResourceCommand = async (
...(input.Resource !== undefined && { Resource: input.Resource }),
};
let body: any;
if (input.TagKeys !== undefined) {
body = serializeAws_restXmlTagKeys(input.TagKeys, context);
}
let contents: any;
if (input.TagKeys !== undefined) {
contents = serializeAws_restXmlTagKeys(input.TagKeys, context);
Expand Down Expand Up @@ -2659,6 +2707,9 @@ export const serializeAws_restXmlUpdateCachePolicyCommand = async (
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.CachePolicyConfig !== undefined) {
body = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
}
let contents: any;
if (input.CachePolicyConfig !== undefined) {
contents = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
Expand Down Expand Up @@ -2697,6 +2748,12 @@ export const serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = a
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
body = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
input.CloudFrontOriginAccessIdentityConfig,
context
);
}
let contents: any;
if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
contents = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
Expand Down Expand Up @@ -2738,6 +2795,9 @@ export const serializeAws_restXmlUpdateDistributionCommand = async (
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.DistributionConfig !== undefined) {
body = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
}
let contents: any;
if (input.DistributionConfig !== undefined) {
contents = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
Expand Down Expand Up @@ -2776,6 +2836,9 @@ export const serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = async
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.FieldLevelEncryptionConfig !== undefined) {
body = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
}
let contents: any;
if (input.FieldLevelEncryptionConfig !== undefined) {
contents = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
Expand Down Expand Up @@ -2814,6 +2877,9 @@ export const serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = asyn
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.FieldLevelEncryptionProfileConfig !== undefined) {
body = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
}
let contents: any;
if (input.FieldLevelEncryptionProfileConfig !== undefined) {
contents = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
Expand Down Expand Up @@ -2897,6 +2963,9 @@ export const serializeAws_restXmlUpdateKeyGroupCommand = async (
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.KeyGroupConfig !== undefined) {
body = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
}
let contents: any;
if (input.KeyGroupConfig !== undefined) {
contents = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
Expand Down Expand Up @@ -2935,6 +3004,9 @@ export const serializeAws_restXmlUpdateOriginRequestPolicyCommand = async (
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.OriginRequestPolicyConfig !== undefined) {
body = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
}
let contents: any;
if (input.OriginRequestPolicyConfig !== undefined) {
contents = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
Expand Down Expand Up @@ -2973,6 +3045,9 @@ export const serializeAws_restXmlUpdatePublicKeyCommand = async (
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.PublicKeyConfig !== undefined) {
body = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
}
let contents: any;
if (input.PublicKeyConfig !== undefined) {
contents = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
Expand Down Expand Up @@ -3064,6 +3139,9 @@ export const serializeAws_restXmlUpdateStreamingDistributionCommand = async (
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
if (input.StreamingDistributionConfig !== undefined) {
body = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
}
let contents: any;
if (input.StreamingDistributionConfig !== undefined) {
contents = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
Expand Down
8 changes: 6 additions & 2 deletions clients/client-devops-guru/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ export const serializeAws_restJson1DescribeAccountHealthCommand = async (
input: DescribeAccountHealthCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/accounts/health";
let body: any;
body = "";
Expand Down Expand Up @@ -326,7 +328,9 @@ export const serializeAws_restJson1DescribeServiceIntegrationCommand = async (
input: DescribeServiceIntegrationCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/service-integrations";
let body: any;
body = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export const serializeAws_restJson1DescribeAcceleratorTypesCommand = async (
input: DescribeAcceleratorTypesCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: any = {};
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/describe-accelerator-types";
let body: any;
body = "";
Expand Down
Loading