<?php
namespace Qcloud\Cos;
// http://guzzle3.readthedocs.io/webservice-client/guzzle-service-descriptions.html
class Service {
public static function getService() {
return array(
'name' => 'Cos Service',
'apiVersion' => 'V5',
'description' => 'Cos V5 API Service',
'operations' => array(
/**
舍弃一个分块上传且删除已上传的分片块的方法.
COS 支持舍弃一个分块上传且删除已上传的分片块. 注意,已上传但是未终止的分片块会占用存储空间进 而产生存储费用.因此,建议及时完成分块上传 或者舍弃分块上传.
关于分块上传的具体描述,请查看 https://cloud.tencent.com/document/product/436/14112.
关于舍弃一个分块上传且删除已上传的分片块接口的描述,请查看 https://cloud.tencent.com/document/product/436/7740.
cos php SDK 中舍弃一个分块上传且删除已上传的分片块请求的方法具体步骤如下:
1. 初始化客户端cosClient,填入存储桶名,和一些额外需要的参数,如授权的具体信息等。
2. 调用 AbortMultipfartUpload 接口发出请求。
3. 接收该接口的返回数据,若没有抛出异常,则操作成功。
*/
'AbortMultipartUpload' => array(
'httpMethod' => 'DELETE',
'uri' => '/{Bucket}{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'AbortMultipartUploadOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri'),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
'minLength' => 1),
'UploadId' => array(
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'uploadId')),
'errorResponses' => array(
array(
'reason' => 'The specified multipart upload does not exist.',
'class' => 'NoSuchUploadException'))),
/**
创建存储桶(Bucket)的方法.
在开始使用 COS 时,需要在指定的账号下先创建一个 Bucket 以便于对象的使用和管理. 并指定 Bucket 所属的地域.创建 Bucket 的用户默认成为 Bucket 的持有者.若创建 Bucket 时没有指定访问权限,则默认 为私有读写(private)权限.
可用地域,可以查看https://cloud.tencent.com/document/product/436/6224.
关于创建 Bucket 描述,请查看 https://cloud.tencent.com/document/product/436/14106.
关于创建存储桶(Bucket)接口的具体 描述,请查看 https://cloud.tencent.com/document/product/436/7738.
cos php SDK 中创建 Bucket的方法具体步骤如下:
1. 初始化客户端cosClient,填入存储桶名,和一些额外需要的参数,如授权的具体信息等。
2. 调用 CreateBucket 接口发出请求。
3. 接收该接口的返回数据,若没有抛出异常,则创建成功。
示例:
$result = $cosClient->createBucket(array('Bucket' => 'testbucket-1252448703'));
*/
'CreateBucket' => array(
'httpMethod' => 'PUT',
'uri' => '/{Bucket}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateBucketOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'CreateBucketConfiguration')),
'parameters' => array(
'ACL' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-cos-acl'),
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri')),
'errorResponses' => array(
array(
'reason' => 'The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.',
'class' => 'BucketAlreadyExistsException'))),
/**
完成整个分块上传的方法.
当使用分块上传(uploadPart(UploadPartRequest))完对象的所有块以后,必须调用该 completeMultiUpload(CompleteMultiUploadRequest) 或者 completeMultiUploadAsync(CompleteMultiUploadRequest, CosXmlResultListener) 来完成整个文件的分块上传.且在该请求的 Body 中需要给出每一个块的 PartNumber 和 ETag,用来校验块的准 确性.
分块上传适合于在弱网络或高带宽环境下上传较大的对象.SDK 支持自行切分对象并分别调用uploadPart(UploadPartRequest)上传各 个分块.
关于分块上传的描述,请查看 https://cloud.tencent.com/document/product/436/14112.
关于完成整个分片上传接口的描述,请查看 https://cloud.tencent.com/document/product/436/7742.
1. 初始化客户端cosClient,填入存储桶名,和一些额外需要的参数,如授权的具体信息等。
2. 调用 CompleteMultipartUpload 接口发出请求。
3. 接收该接口的返回数据,若没有抛出异常,则操作成功。
*/
'CompleteMultipartUpload' => array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CompleteMultipartUploadOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'CompleteMultipartUpload')),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri'),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
'minLength' => 1),
'Parts' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true),
'items' => array(
'name' => 'CompletedPart',
'type' => 'object',
'sentAs' => 'Part',
'properties' => array(
'ETag' => array(
'type' => 'string'),
'PartNumber' => array(
'type' => 'num
没有合适的资源?快使用搜索试试~ 我知道了~
橘猫去水印小程序1.0.5版本完整包.zip
共1840个文件
php:1299个
vue:101个
js:79个
3 下载量 29 浏览量
2024-01-15
15:06:06
上传
评论
收藏 13.08MB ZIP 举报
温馨提示
橘猫去水印小程序1.0.5版本完整包.zip
资源推荐
资源详情
资源评论
收起资源包目录
橘猫去水印小程序1.0.5版本完整包.zip (1840个子文件)
amazeui.min.css 310KB
iconfont.css 79KB
icon.css 70KB
main.css 63KB
app.css 54KB
app.css 29KB
diy.css 19KB
umeditor.css 18KB
layer.css 16KB
fullcalendar.min.css 15KB
umeditor.min.css 14KB
amazeui.datatables.min.css 9KB
fullcalendar.print.css 5KB
layer.css 5KB
style.css 5KB
style.css 4KB
goods.css 4KB
image.css 3KB
video.css 3KB
animation.css 3KB
homepage.css 2KB
emotion.css 2KB
formula.css 838B
prettify.css 594B
phpunit.xml.dist 2KB
phpunit.xml.dist 893B
phpunit.xml.dist 881B
phpunit.xml.dist 552B
build.properties.dist 391B
fontawesome-webfont.eot 75KB
hiddeninput.exe 9KB
wface.gif 49KB
jxface2.gif 40KB
yface.gif 28KB
bface.gif 27KB
icons.gif 20KB
tface.gif 19KB
fface.gif 18KB
cface.gif 8KB
loading-0.gif 6KB
loading-2.gif 2KB
videologo.gif 2KB
ok.gif 866B
loading-1.gif 701B
spacer.gif 43B
0.gif 43B
.gitignore 368B
.gitignore 130B
.gitignore 68B
.gitignore 39B
.gitignore 34B
.gitignore 28B
.gitignore 22B
.gitignore 13B
.gitignore 13B
.gitignore 13B
.gitignore 13B
.gitignore 13B
.htaccess 13B
formula.html 7KB
map.html 6KB
index.html 5KB
index.html 672B
nav_links.html 316B
leftbar.html 0B
favicon.ico 318B
plugins-list.rst.inc 289B
login_bg.jpg 607KB
login_bg.jpg 607KB
login_bg.jpg 239KB
login_bg1.jpg 38KB
example.jpg 21KB
center_focus.jpg 12KB
none_focus.jpg 11KB
left_focus.jpg 11KB
right_focus.jpg 11KB
banner_02.jpg 7KB
banner_01.jpg 7KB
02.jpg 6KB
04.jpg 6KB
01.jpg 6KB
03.jpg 5KB
02.jpg 5KB
01.jpg 4KB
04.jpg 4KB
03.jpg 4KB
echarts.min.js 527KB
umeditor.js 379KB
amazeui.min.js 206KB
webuploader.html5only.js 195KB
umeditor.min.js 136KB
jstree.min.js 124KB
area.js 122KB
vue.min.js 84KB
jquery.min.js 82KB
diy.js 37KB
async-validator.js 34KB
weCropper.js 32KB
app.js 28KB
layer.js 22KB
共 1840 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
白如意i
- 粉丝: 6730
- 资源: 3230
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功