public function putBucketStorageCapacity($bucket, $storageCapacity, $options = NULL)
    {
        $this->precheckCommon($bucket, NULL, $options, false);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_OBJECT] = '/';
        $options[self::OSS_SUB_RESOURCE] = 'qos';
        $options[self::OSS_CONTENT_TYPE] = 'application/xml';
        $storageCapacityConfig = new StorageCapacityConfig($storageCapacity);
        $options[self::OSS_CONTENT] = $storageCapacityConfig->serializeToXml();
        $response = $this->auth($options);
        $result = new PutSetDeleteResult($response);
        return $result->getData();
    }
public function putBucketStorageCapacity($bucket, $storageCapacity, $options = NULL)
    {
        $this->precheckCommon($bucket, NULL, $options, false);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_OBJECT] = '/';
        $options[self::OSS_SUB_RESOURCE] = 'qos';
        $options[self::OSS_CONTENT_TYPE] = 'application/xml';
        $storageCapacityConfig = new StorageCapacityConfig($storageCapacity);
        $options[self::OSS_CONTENT] = $storageCapacityConfig->serializeToXml();
        $response = $this->auth($options);
        $result = new PutSetDeleteResult($response);
        return $result->getData();
    }
public function putBucketStorageCapacity ( $ bucket , $ storageCapacity , $ options = NULL ) { $ this -> precheckCommon ( $ bucket , NULL , $ options , false ) ; $ options [ self :: OSS_BUCKET ] = $ bucket ; $ options [ self :: OSS_METHOD ] = self :: OSS_HTTP_PUT ; $ options [ self :: OSS_OBJECT ] = '/' ; $ options [ self :: OSS_SUB_RESOURCE ] = 'qos' ; $ options [ self :: OSS_CONTENT_TYPE ] = 'application/xml' ; $ storageCapacityConfig = new StorageCapacityConfig ( $ storageCapacity ) ; $ options [ self :: OSS_CONTENT ] = $ storageCapacityConfig -> serializeToXml ( ) ; $ response = $ this -> auth ( $ options ) ; $ result = new PutSetDeleteResult ( $ response ) ; return $ result -> getData ( ) ; }
Set the size of the bucket,the unit is GB
When the capacity of the bucket is bigger than the set, it's forbidden to continue writing

@param string $bucket bucket name
@param int $storageCapacity
@param array $options
@return ResponseCore
@throws null
Set the size of the bucket the unit is GB When the capacity of the bucket is bigger than the set it s forbidden to continue writing