Skip to content

Commit e67df06

Browse files
authored
Generate DeleteBucketMetadataConfiguration (#4204)
* Generate DeleteBucketMetadataConfiguration stack-info: PR: #4204, branch: peterrsongg/petesong/phase-3-pr5-rebased-2/1 * Generate ListObjects (#4205) * Generate ListObjects stack-info: PR: #4205, branch: peterrsongg/petesong/phase-3-pr5-rebased-2/2 * Generate UpdateBucketMetadataTableConfiguration (#4206) * Generate UpdateBucketMetadataTableConfiguration stack-info: PR: #4206, branch: peterrsongg/petesong/phase-3-pr5-rebased-2/3 * generate ListMultipartUploads (#4207) stack-info: PR: #4207, branch: peterrsongg/petesong/phase-3-pr5-rebased-2/4
1 parent c3b7192 commit e67df06

File tree

31 files changed

+2258
-1441
lines changed

31 files changed

+2258
-1441
lines changed

generator/ServiceClientGeneratorLib/ServiceModel.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,11 @@ public List<Operation> S3AllowListOperations
574574
new Operation(this, "DeleteBucketInventoryConfiguration", DocumentRoot[OperationsKey]["DeleteBucketInventoryConfiguration"]),
575575
new Operation(this,"PutBucketRequestPayment", DocumentRoot[OperationsKey]["PutBucketRequestPayment"]),
576576
new Operation(this, "CreateBucketMetadataConfiguration",DocumentRoot[OperationsKey]["CreateBucketMetadataConfiguration"]),
577-
new Operation(this, "GetBucketMetadataConfiguration", DocumentRoot[OperationsKey]["GetBucketMetadataConfiguration"])
578-
577+
new Operation(this, "GetBucketMetadataConfiguration", DocumentRoot[OperationsKey]["GetBucketMetadataConfiguration"]),
578+
new Operation(this, "DeleteBucketMetadataConfiguration", DocumentRoot[OperationsKey]["DeleteBucketMetadataConfiguration"]),
579+
new Operation(this, "ListObjects", DocumentRoot[OperationsKey]["ListObjects"]),
580+
new Operation(this,"UpdateBucketMetadataJournalTableConfiguration", DocumentRoot[OperationsKey]["UpdateBucketMetadataJournalTableConfiguration"]),
581+
new Operation(this, "ListMultipartUploads", DocumentRoot[OperationsKey]["ListMultipartUploads"])
579582
};
580583
}
581584
return _s3AllowListOperations.Where(operation => operation.data != null).ToList();
@@ -606,7 +609,8 @@ public List<string> S3RequestMarshallerThrowGenericExceptionList
606609
"GetObjectAcl",
607610
"PutBucketAcl",
608611
"CreateBucketMetadataConfiguration",
609-
"GetBucketMetadataConfiguration"
612+
"GetBucketMetadataConfiguration",
613+
"DeleteBucketMetadataConfiguration"
610614
};
611615
}
612616
return _s3RequestMarshallerThrowAmazonS3ExceptionList;

generator/ServiceModels/s3/s3.customizations.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,80 @@
12151215
},
12161216
{
12171217
"ExpectedBucketOwner":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]}
1218+
}
1219+
]
1220+
},
1221+
"DeleteBucketMetadataConfigurationRequest":{
1222+
"modify":[
1223+
{
1224+
"ExpectedBucketOwner":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]}
1225+
}
1226+
]
1227+
},
1228+
"ListObjectsRequest":{
1229+
"modify":[
1230+
{
1231+
"EncodingType":{"emitPropertyName":"Encoding"}
1232+
},
1233+
{
1234+
"ExpectedBucketOwner":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]}
1235+
}
1236+
]
1237+
},
1238+
"ListObjectsOutput":{
1239+
"modify":[
1240+
{
1241+
"Contents":{
1242+
"emitPropertyName":"S3Objects"
1243+
}
1244+
},
1245+
{
1246+
"S3Objects":{
1247+
"injectXmlUnmarshallCode":["ContentsCustomUnmarshall(context, response);"],
1248+
"skipContextTestExpressionUnmarshallingLogic" : true
1249+
}
1250+
},
1251+
{
1252+
"NextMarker":{"injectXmlPropertyGetter":["get { return NextMarkerCustomGetter(); }"]}
1253+
},
1254+
{
1255+
"EncodingType":{"emitPropertyName":"Encoding"}
1256+
}
1257+
]
1258+
},
1259+
"UpdateBucketMetadataJournalTableConfigurationRequest":{
1260+
"modify":[
1261+
{
1262+
"ContentMD5":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._contentMD5);"]}
1263+
},
1264+
{
1265+
"ExpectedBucketOwner":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]}
1266+
}
1267+
1268+
]
1269+
},
1270+
"ListMultipartUploadsRequest":{
1271+
"modify":[
1272+
{
1273+
"EncodingType":{"emitPropertyName":"Encoding"}
1274+
},
1275+
{
1276+
"ExpectedBucketOwner":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]}
1277+
}
1278+
]
1279+
},
1280+
"ListMultipartUploadsOutput":{
1281+
"modify":[
1282+
{
1283+
"CommonPrefixes":{
1284+
"injectXmlUnmarshallCode":["CommonPrefixesCustomUnmarshall(context, response);"],
1285+
"skipContextTestExpressionUnmarshallingLogic" : true
1286+
}
1287+
},
1288+
{
1289+
"Uploads":{"emitPropertyName":"MultipartUploads"}
1290+
1291+
12181292
}
12191293
]
12201294
}
@@ -1514,6 +1588,27 @@
15141588
"Marshaller": "StringUtils.FromString",
15151589
"Unmarshaller": "StringUnmarshaller"
15161590
}
1591+
},
1592+
"ListObjectsOutput": {
1593+
"CommonPrefixes" : {
1594+
"Type": "List<string>",
1595+
"Marshaller": "StringUtils.FromString",
1596+
"Unmarshaller" : "CommonPrefixesItemUnmarshaller"
1597+
}
1598+
},
1599+
"ListMultipartUploadsRequest":{
1600+
"CommonPrefixes" : {
1601+
"Type": "List<string>",
1602+
"Marshaller": "StringUtils.FromString",
1603+
"Unmarshaller" : "CommonPrefixesItemUnmarshaller"
1604+
}
1605+
},
1606+
"ListMultipartUploadsOutput":{
1607+
"CommonPrefixes" : {
1608+
"Type": "List<string>",
1609+
"Marshaller": "StringUtils.FromString",
1610+
"Unmarshaller" : "CommonPrefixesItemUnmarshaller"
1611+
}
15171612
}
15181613
},
15191614
"excludeMembers":{

sdk/src/Services/S3/Custom/Model/DeleteBucketMetadataConfigurationRequest.cs

Lines changed: 0 additions & 69 deletions
This file was deleted.

sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListMultipartUploadsRequestMarshaller.cs

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)