Skip to content

Commit 2b579a0

Browse files
authored
generate deletebucketmetricsconfiguration (#4104)
* Generate PutBucketMetricsConfiguration and generate check to see if required query string params are set. Remove visitor pattern and move custom logic for putlifecycleconfiguration marshaller to custom partial method * Generate ListBucketMetricsConfiguration * generate getbucketmetricsconfiguration * fix failing unit test for abortmultipartupload * fix failing unit test for abortmultipartupload * generate deletebucketmetricsconfiguration * update stringIsNullEmpty for string isSet methods * fix IsSet for string properties
1 parent e3b0f7b commit 2b579a0

File tree

10 files changed

+390
-228
lines changed

10 files changed

+390
-228
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"services": [
3+
{
4+
"serviceName": "S3",
5+
"type": "patch",
6+
"changeLogMessages": [
7+
"generate DeleteBucketMetricsConfiguration"
8+
]
9+
}
10+
]
11+
}

generator/ServiceClientGeneratorLib/ServiceModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ public List<Operation> S3AllowListOperations
566566
//new Operation(this, "PutBucketIntelligentTieringConfiguration", DocumentRoot[OperationsKey]["PutBucketIntelligentTieringConfiguration"]),
567567
//new Operation(this, "PutBucketInventoryConfiguration", DocumentRoot[OperationsKey]["PutBucketInventoryConfiguration"]),
568568
new Operation(this, "PutBucketMetricsConfiguration", DocumentRoot[OperationsKey]["PutBucketMetricsConfiguration"]),
569-
// new Operation(this, "DeleteBucketMetricsConfiguration", DocumentRoot[OperationsKey]["DeleteBucketMetricsConfiguration"]),
569+
new Operation(this, "DeleteBucketMetricsConfiguration", DocumentRoot[OperationsKey]["DeleteBucketMetricsConfiguration"]),
570570
//new Operation(this, "DeleteBucketAnalyticsConfiguration", DocumentRoot[OperationsKey]["DeleteBucketAnalyticsConfiguration"]),
571571
//new Operation(this, "DeleteBucketIntelligentTieringConfiguration", DocumentRoot[OperationsKey]["DeleteBucketIntelligentTieringConfiguration"]),
572572
//new Operation(this, "DeleteBucketInventoryConfiguration", DocumentRoot[OperationsKey]["DeleteBucketInventoryConfiguration"]),

generator/ServiceModels/s3/s3.customizations.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,19 @@
858858
"ExpectedBucketOwner" :{"injectXmlIsSet" :["return !string.IsNullOrEmpty(this._expectedBucketOwner);"]}
859859
}
860860
]
861+
},
862+
"DeleteBucketMetricsConfigurationRequest":{
863+
"modify":[
864+
{
865+
"Id":{"emitPropertyName": "MetricsId"}
866+
},
867+
{
868+
"ExpectedBucketOwner" :{"injectXmlIsSet":["return !string.IsNullOrEmpty(this._expectedBucketOwner);"]}
869+
},
870+
{
871+
"MetricsId":{"injectXmlIsSet":["return !string.IsNullOrEmpty(this._metricsId);"]}
872+
}
873+
]
861874
}
862875
},
863876
"operationModifiers": {

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

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

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

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

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

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

0 commit comments

Comments
 (0)