@@ -986,7 +986,8 @@ export class TypedClient {
986986 await this . makeRequestAsyncOmit ( { method, bucketName, query } , '' , [ 200 , 204 ] , '' )
987987 }
988988
989- setBucketReplication ( bucketName : string , replicationConfig : ReplicationConfigOpts , callback : NoResultCallback ) : void
989+ setBucketReplication ( bucketName : string , replicationConfig : ReplicationConfigOpts ) : void
990+ async setBucketReplication ( bucketName : string , replicationConfig : ReplicationConfigOpts ) : Promise < void >
990991 async setBucketReplication ( bucketName : string , replicationConfig : ReplicationConfigOpts ) {
991992 if ( ! isValidBucketName ( bucketName ) ) {
992993 throw new errors . InvalidBucketNameError ( 'Invalid bucket name: ' + bucketName )
@@ -1020,7 +1021,8 @@ export class TypedClient {
10201021 await this . makeRequestAsyncOmit ( { method, bucketName, query, headers } , payload )
10211022 }
10221023
1023- getBucketReplication ( bucketName : string , callback : ResultCallback < ReplicationConfig > ) : void
1024+ getBucketReplication ( bucketName : string ) : void
1025+ async getBucketReplication ( bucketName : string ) : Promise < ReplicationConfig >
10241026 async getBucketReplication ( bucketName : string ) {
10251027 if ( ! isValidBucketName ( bucketName ) ) {
10261028 throw new errors . InvalidBucketNameError ( 'Invalid bucket name: ' + bucketName )
@@ -1071,12 +1073,7 @@ export class TypedClient {
10711073 return parseObjectLegalHoldConfig ( strRes )
10721074 }
10731075
1074- setObjectLegalHold (
1075- bucketName : string ,
1076- objectName : string ,
1077- setOpts ?: PutObjectLegalHoldOptions ,
1078- callback ?: NoResultCallback ,
1079- ) : void
1076+ setObjectLegalHold ( bucketName : string , objectName : string , setOpts ?: PutObjectLegalHoldOptions ) : void
10801077 async setObjectLegalHold (
10811078 bucketName : string ,
10821079 objectName : string ,
0 commit comments