overtrue/qcloud-cos-client

真实环境测试 API

overtrue opened this issue · 0 comments

ServiceClient

  • $service->getBuckets();
  • $service->getBuckets('ap-guangzhou');

JobClient

  • $job->getJobs(array $query = []);
  • $job->createJob(array $body);
  • $job->describeJob(string $id);
  • $job->updateJobPriority(string $id, int $priority);
  • $job->updateJobStatus(string $id, array $query);

BucketClient

  • $bucket->putBucket(array $body);
  • $bucket->headBucket();
  • $bucket->deleteBucket();
  • $bucket->getObjects(array $query = []);
  • $bucket->getObjectVersions(array $query = []);

Versions

  • $bucket->putVersions(array $body);
  • $bucket->getVersions();

ACL

  • $bucket->putACL(array $body, array $headers = [])
  • $bucket->getACL();

CORS

  • $bucket->putCORS(array $body);
  • $bucket->getCORS();
  • $bucket->deleteCORS();

Lifecycle

  • $bucket->putLifecycle(array $body);
  • $bucket->getLifecycle();
  • $bucket->deleteLifecycle();

Policy

  • $bucket->putPolicy(array $body);
  • $bucket->getPolicy();
  • $bucket->deletePolicy();

Referer

  • $bucket->putReferer(array $body);
  • $bucket->getReferer();

Taging

  • $bucket->putTaging(array $body);
  • $bucket->getTaging();
  • $bucket->deleteTaging();

Website

  • $bucket->putWebsite(array $body);
  • $bucket->getWebsite();
  • $bucket->deleteWebsite();

Inventory

  • $bucket->putInventory(string $id, array $body)
  • $bucket->getInventory(string $id)
  • $bucket->getInventoryConfigurations(?string $nextContinuationToken = null)
  • $bucket->deleteInventory(string $id)

Versioning

  • $bucket->putVersioning(array $body);
  • $bucket->getVersioning();

Replication

  • $bucket->putReplication(array $body);
  • $bucket->getReplication();
  • $bucket->deleteReplication();

Logging

  • $bucket->putLogging(array $body);
  • $bucket->getLogging();

Accelerate

  • $bucket->putAccelerate(array $body);
  • $bucket->getAccelerate();

Encryption

  • $bucket->putEncryption(array $body);
  • $bucket->getEncryption();
  • $bucket->deleteEncryption();

ObjectClient

Object

  • $bucket->putObject(string $key, string $body, array $headers = []);
  • $bucket->copyObject(string $key, array $headers = []);
  • $bucket->getObject(string $key, array $query = [], array $headers = []);
  • $bucket->headObject(string $key, string $versionId, array $headers = []);
  • $bucket->restoreObject(string $key, string $versionId, array $body);
  • $bucket->selectObjectContents(string $key, array $body);
  • $bucket->deleteObject(string $key, string $versionId);
  • $bucket->deleteObjects(array $body);

Object ACL

  • $bucket->putObjectACL(string $key, array $body, array $headers = []);
  • $bucket->getObjectACL(string $key);

Object Tagging

  • $bucket->putObjectTagging(string $key, string $versionId, array $body);
  • $bucket->getObjectTagging(string $key, string $versionId);
  • $bucket->deleteObjectTagging(string $key, string $versionId);

Object partial upload

  • $bucket->createUploadId(string $key, array $headers = []);
  • $bucket->uploadPart(string $key, int $partNumber, string $uploadId, string $body, array $headers = []);
  • $bucket->copyPart(string $key, int $partNumber, string $uploadId, array $headers = []);
  • $bucket->markUploadAsCompleted(string $key, string $uploadId, array $body);
  • $bucket->markUploadAsAborted(string $key, string $uploadId);
  • $bucket->getUploadJobs(array $query = []);
  • $bucket->getUploadedParts(string $key, string $uploadId, array $query = []);