<?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(
// 舍弃一个分块上传且删除已上传的分片块的方法.
'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,
'filters' => array(
'Qcloud\\Cos\\Client::explodeKey')),
'UploadId' => array(
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'uploadId'
)
)
),
// 创建存储桶(Bucket)的方法.
'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'
)
)
),
// 完成整个分块上传的方法.
'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,
'filters' => array(
'Qcloud\\Cos\\Client::explodeKey'
)
),
'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' => 'numeric'
)
)
)
),
'UploadId' => array(
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'uploadId',
)
)
),
// 初始化分块上传的方法.
'CreateMultipartUpload' => array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}{/Key*}?uploads',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMultipartUploadOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'CreateMultipartUploadRequest'
)
),
'parameters' => array(
'ACL' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-cos-acl',
),
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'CacheControl' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Cache-Control',
),
'ContentDisposition' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Disposition',
),
'ContentEncoding' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Encoding',
),
'ContentLanguage' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Language',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'Expires' => array(
'type' => array(
'object',
'string',
'integer',
),
'format' => 'date-time-http',
'location' => 'header',
),
'GrantFullControl' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-cos-grant-full-control',
),
'GrantRead' => array(
'type' => 'string

m0_72731342
- 粉丝: 4
最新资源
- 机械设计制造及其自动化-专业毕业论文撰写方法与基本要求[1](1).doc
- 基于网络技术实现信息系统集成接口智能监控管理探究(1).docx
- 本科毕业设计--基于matlab的光纤光栅耦合模理论及其谱线特性论文(1).doc
- 本科毕设论文-—基于matlab的伪随机序列性能分析(1).doc
- 试论混合学习模式在中职计算机教学中的应用(1).docx
- 高中生物备考满分冲刺专题01基因工程含解析选修(1).doc
- 大数据背景下我国财务会计向管理会计的转型探究(1).docx
- 《建筑装饰CAD》电子教案05(1).doc
- 基于单片机的数字测速仪设计(1).doc
- 电子信息技术在电力自动化系统中的应用探讨何喜玲(1).docx
- MOOC大学计算机考试题目(1).docx
- 物联网故障诊断技术(1).doc
- 互联网+产业融合背景下企业财务管理创新研究-1(1).docx
- 2023年自动化职业规划书3000范文汇总三篇(1).docx
- 安慕希移动互联网推广方案(1).pdf
- 前端年度工作述职报告优秀(二十篇)范文(1).doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


