@@ -1114,35 +1114,35 @@ def bucket_structure_from_dict(cls, bucket_dict) -> Type[BUCKET_STRUCTURE_CLASS]
11141114 :rtype: BucketStructure
11151115
11161116 """
1117- type_ = bucket_dict .get ('bucketType' , cls . NOT_SET )
1118- bucket_name = bucket_dict .get ('bucketName' , cls . NOT_SET )
1119- bucket_id = bucket_dict .get ('bucketId' , cls . NOT_SET )
1120- bucket_info = bucket_dict .get ('bucketInfo' , cls . NOT_SET )
1121- cors_rules = bucket_dict .get ('corsRules' , cls . NOT_SET )
1122- lifecycle_rules = bucket_dict .get ('lifecycleRules' , cls . NOT_SET )
1123- revision = bucket_dict .get ('revision' , cls . NOT_SET )
1124- options = set (bucket_dict ['options' ]) if 'options' in bucket_dict else cls . NOT_SET
1125- account_id = bucket_dict .get ('accountId' , cls . NOT_SET )
1117+ type_ = bucket_dict .get ('bucketType' , NOT_SET )
1118+ bucket_name = bucket_dict .get ('bucketName' , NOT_SET )
1119+ bucket_id = bucket_dict .get ('bucketId' , NOT_SET )
1120+ bucket_info = bucket_dict .get ('bucketInfo' , NOT_SET )
1121+ cors_rules = bucket_dict .get ('corsRules' , NOT_SET )
1122+ lifecycle_rules = bucket_dict .get ('lifecycleRules' , NOT_SET )
1123+ revision = bucket_dict .get ('revision' , NOT_SET )
1124+ options = set (bucket_dict ['options' ]) if 'options' in bucket_dict else NOT_SET
1125+ account_id = bucket_dict .get ('accountId' , NOT_SET )
11261126
11271127 # The existence of these complex settings is checked below, instead of inside of their respective factory
11281128 # classes, because those would either break or return objects indistinguishable from objects representing
11291129 # insufficient permission to read set values.
11301130 default_server_side_encryption = (
11311131 EncryptionSettingFactory .from_bucket_dict (bucket_dict )
1132- if EncryptionSettingFactory .TOP_LEVEL_KEY in bucket_dict else cls . NOT_SET
1132+ if EncryptionSettingFactory .TOP_LEVEL_KEY in bucket_dict else NOT_SET
11331133 )
11341134 replication = (
11351135 ReplicationConfigurationFactory .from_bucket_dict (bucket_dict ).value
1136- if ReplicationConfigurationFactory .TOP_LEVEL_KEY in bucket_dict else cls . NOT_SET
1136+ if ReplicationConfigurationFactory .TOP_LEVEL_KEY in bucket_dict else NOT_SET
11371137 )
11381138
11391139 if FileLockConfiguration .TOP_LEVEL_KEY in bucket_dict :
11401140 file_lock_configuration = FileLockConfiguration .from_bucket_dict (bucket_dict )
11411141 default_retention = file_lock_configuration .default_retention
11421142 is_file_lock_enabled = file_lock_configuration .is_file_lock_enabled
11431143 else :
1144- default_retention = cls . NOT_SET
1145- is_file_lock_enabled = cls . NOT_SET
1144+ default_retention = NOT_SET
1145+ is_file_lock_enabled = NOT_SET
11461146
11471147 return cls .BUCKET_STRUCTURE_CLASS (
11481148 bucket_id ,
0 commit comments