Skip to content

Commit

Permalink
update csg doc
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Oct 29, 2018
1 parent 52729cb commit eca8124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions csp/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,6 @@ cos.deleteMultipleObject({
| Quiet | 布尔值,这个值决定了是否启动 Quiet 模式。值为 true 启动 Quiet 模式,值为 false 则启动 Verbose 模式,默认值为 false | Boolean ||
| Objects | 要删除的文件列表 | ObjectArray ||
| - Key | 对象键(Object 的名称),对象在存储桶中的唯一标识,[对象键说明](https://cloud.tencent.com/document/product/436/13324) | String ||
| - VersionId | 要删除的 Object 或 DeleteMarker 版本 ID | String |

#### 回调函数说明

Expand All @@ -1666,9 +1665,6 @@ function(err, data) { ... }
| - headers | 请求返回的头部信息 | Object |
| - Deleted | 说明本次删除的成功 Object 信息 | ObjectArray |
| - - Key | 对象键(Object 的名称),对象在存储桶中的唯一标识,[对象键说明](https://cloud.tencent.com/document/product/436/13324) | String |
| - - VersionId | 如果参数传入了 VersionId,返回也会带上 VersionId,表示刚操作的 Object 或 DeleteMarker 版本 | String |
| - - DeleteMarker | 如果开启了多版本,并且参数没有 VersionId,本次删除不会真正抹去文件内容,只新增一个 DeleteMarker 代表可见的文件已删除,枚举值:true、false | String |
| - - DeleteMarkerVersionId | 当返回的 DeleteMarker 为 true 时,返回刚新增的 DeleteMarker 的 VersionId | String |
| - Error | 说明本次删除的失败 Object 信息 | ObjectArray |
| - - Key | 对象键(Object 的名称),对象在存储桶中的唯一标识,[对象键说明](https://cloud.tencent.com/document/product/436/13324) | String |
| - - Code | 删除失败的错误码 | String |
Expand Down Expand Up @@ -1699,7 +1695,7 @@ cos.putObjectCopy({
| Bucket | Bucket 的名称。命名规则为{name}-{appid} ,此处填写的存储桶名称必须为此格式 | String ||
| Region | Bucket 所在区域。枚举值请见:[Bucket 地域信息](https://cloud.tencent.com/document/product/436/6224) | String ||
| Key | 对象键(Object 的名称),对象在存储桶中的唯一标识,[对象键说明](https://cloud.tencent.com/document/product/436/13324) | String ||
| CopySource | 源文件 URL 路径,可以通过 versionid 子资源指定历史版本 | String ||
| CopySource | 源文件 URL 路径 | String ||
| ACL | 定义 Object 的 ACL 属性。有效值:private、public-read、public-read-write;默认值:private | String ||
| GrantRead | 赋予被授权者读的权限。格式:id=" ",id=" ";<br>当需要给子账户授权时,id="qcs::cam::uin/&lt;OwnerUin>:uin/&lt;SubUin>",<br>当需要给根账户授权时,id="qcs::cam::uin/&lt;OwnerUin>:uin/&lt;OwnerUin>",<br>例如:'id="qcs::cam::uin/123:uin/123", id="qcs::cam::uin/123:uin/456"' | String ||
| GrantWrite | 赋予被授权者写的权限。格式:id=" ",id=" ";<br>当需要给子账户授权时,id="qcs::cam::uin/&lt;OwnerUin>:uin/&lt;SubUin>",<br>当需要给根账户授权时,id="qcs::cam::uin/&lt;OwnerUin>:uin/&lt;OwnerUin>",<br>例如:'id="qcs::cam::uin/123:uin/123", id="qcs::cam::uin/123:uin/456"' | String ||
Expand Down Expand Up @@ -2236,7 +2232,7 @@ cos.sliceCopyFile({
| Bucket | Bucket 的名称。命名规则为{name}-{appid} ,此处填写的存储桶名称必须为此格式 | String ||
| Region | Bucket 所在区域。枚举值请见:[Bucket 地域信息](https://cloud.tencent.com/document/product/436/6224) | String ||
| Key | 对象键(Object 的名称),对象在存储桶中的唯一标识,[对象键说明](https://cloud.tencent.com/document/product/436/13324) | String ||
| CopySource | 源文件 URL 路径,可以通过 versionid 子资源指定历史版本 | String ||
| CopySource | 源文件 URL 路径 | String ||
| ChunkSize | 分片复制时,每片的大小字节数,默认值 1048576 (1MB) | Number ||
| SliceSize | 使用分片复制的文件大小,默认值 5G | Number ||
| onProgress | 上传文件的进度回调函数,回调参数为进度对象 progressData | Function ||
Expand Down
2 changes: 1 addition & 1 deletion csp/csp.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h1>cos-js-sdk-v5</h1>
"AllowedOrigin": ["*"],
"AllowedMethod": ["GET", "POST", "PUT", "DELETE", "HEAD"],
"AllowedHeader": ["*"],
"ExposeHeader": ["ETag", "x-cos-acl", "x-cos-version-id", "x-cos-delete-marker", "x-cos-server-side-encryption"],
"ExposeHeader": ["ETag", "x-cos-acl", "x-cos-delete-marker", "x-cos-server-side-encryption"],
"MaxAgeSeconds": "5"
}]
}
Expand Down

0 comments on commit eca8124

Please sign in to comment.