1+ <?php
2+
3+ namespace Qcloud \Cos ;
4+
5+ /**
6+ * 为 src/Qcloud/Cos/Service.php 服务,视觉上区分各方法的参数\输出描述
7+ * 原service的参数描述可不改动
8+ * Class Descriptions
9+ * @package Qcloud\Cos
10+ */
11+ class Descriptions {
12+ public static function CreateMediaTranscodeJobs () {
13+ return array (
14+ 'httpMethod ' => 'POST ' ,
15+ 'uri ' => '/{Bucket}jobs ' ,
16+ 'class ' => 'Qcloud \\Cos \\Command ' ,
17+ 'responseClass ' => 'CreateMediaTranscodeJobsOutput ' ,
18+ 'responseType ' => 'model ' ,
19+ 'data ' => array (
20+ 'xmlRoot ' => array (
21+ 'name ' => 'Request ' ,
22+ ),
23+ ),
24+ 'parameters ' => array (
25+ 'Bucket ' => array ( 'required ' => true , 'type ' => 'string ' , 'location ' => 'uri ' , ),
26+ 'Tag ' => array ( 'required ' => true , 'location ' => 'xml ' , 'type ' => 'string ' , ),
27+ 'QueueId ' => array ( 'required ' => true , 'location ' => 'xml ' , 'type ' => 'string ' , ),
28+ 'CallBack ' => array ( 'required ' => true , 'location ' => 'xml ' , 'type ' => 'string ' , ),
29+ 'Input ' => array (
30+ 'required ' => true ,
31+ 'type ' => 'object ' ,
32+ 'location ' => 'xml ' ,
33+ 'properties ' => array (
34+ 'Object ' => array ( 'required ' => true , 'type ' => 'string ' , 'location ' => 'xml ' , ),
35+ ),
36+ ),
37+ 'Operation ' => array (
38+ 'required ' => true ,
39+ 'type ' => 'object ' ,
40+ 'location ' => 'xml ' ,
41+ 'properties ' => array (
42+ 'TemplateId ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
43+ 'WatermarkTemplateId ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
44+ 'Transcode ' => array (
45+ 'type ' => 'object ' ,
46+ 'location ' => 'xml ' ,
47+ 'properties ' => array (
48+ 'Container ' => array (
49+ 'type ' => 'object ' ,
50+ 'location ' => 'xml ' ,
51+ 'properties ' => array (
52+ 'Format ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
53+ ),
54+ ),
55+ 'Video ' => array (
56+ 'type ' => 'object ' ,
57+ 'location ' => 'xml ' ,
58+ 'properties ' => array (
59+ 'Codec ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
60+ 'Width ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
61+ 'Height ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
62+ 'Fps ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
63+ 'Remove ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
64+ 'Profile ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
65+ 'Bitrate ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
66+ 'Crf ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
67+ 'Gop ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
68+ 'Preset ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
69+ 'Bufsize ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
70+ 'Maxrate ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
71+ 'HlsTsTime ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
72+ 'Pixfmt ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
73+ 'LongShortMode ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
74+ ),
75+ ),
76+ 'TimeInterval ' => array (
77+ 'type ' => 'object ' ,
78+ 'location ' => 'xml ' ,
79+ 'properties ' => array (
80+ 'Start ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
81+ 'Duration ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
82+ ),
83+ ),
84+ 'Audio ' => array (
85+ 'type ' => 'object ' ,
86+ 'location ' => 'xml ' ,
87+ 'properties ' => array (
88+ 'Codec ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
89+ 'Samplerate ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
90+ 'Bitrate ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
91+ 'Channels ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
92+ 'Remove ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
93+ 'KeepTwoTracks ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
94+ 'SwitchTrack ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
95+ 'SampleFormat ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
96+ ),
97+ ),
98+ 'TransConfig ' => array (
99+ 'type ' => 'object ' ,
100+ 'location ' => 'xml ' ,
101+ 'properties ' => array (
102+ 'AdjDarMethod ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
103+ 'IsCheckReso ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
104+ 'ResoAdjMethod ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
105+ 'IsCheckVideoBitrate ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
106+ 'VideoBitrateAdjMethod ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
107+ 'IsCheckAudioBitrate ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
108+ 'AudioBitrateAdjMethod ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
109+ 'DeleteMetadata ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
110+ 'IsHdr2Sdr ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
111+ 'HlsEncrypt ' => array (
112+ 'type ' => 'object ' ,
113+ 'location ' => 'xml ' ,
114+ 'properties ' => array (
115+ 'IsHlsEncrypt ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
116+ 'UriKey ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
117+ ),
118+ ),
119+ ),
120+ ),
121+ ),
122+ ),
123+ 'Watermark ' => array (
124+ 'type ' => 'object ' ,
125+ 'location ' => 'xml ' ,
126+ 'properties ' => array (
127+ 'Type ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
128+ 'Pos ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
129+ 'LocMode ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
130+ 'Dx ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
131+ 'Dy ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
132+ 'StartTime ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
133+ 'EndTime ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
134+ 'Image ' => array (
135+ 'type ' => 'object ' ,
136+ 'location ' => 'xml ' ,
137+ 'properties ' => array (
138+ 'Url ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
139+ 'Mode ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
140+ 'Width ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
141+ 'Height ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
142+ 'Transparency ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
143+ 'Background ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
144+ ),
145+ ),
146+ 'Text ' => array (
147+ 'type ' => 'object ' ,
148+ 'location ' => 'xml ' ,
149+ 'properties ' => array (
150+ 'FontSize ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
151+ 'FontType ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
152+ 'FontColor ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
153+ 'Transparency ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
154+ 'Text ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
155+ ),
156+ ),
157+ ),
158+ ),
159+ 'RemoveWatermark ' => array (
160+ 'type ' => 'object ' ,
161+ 'location ' => 'xml ' ,
162+ 'properties ' => array (
163+ 'Dx ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
164+ 'Dy ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
165+ 'Width ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
166+ 'Height ' => array ( 'type ' => 'string ' , 'location ' => 'xml ' , ),
167+ ),
168+ ),
169+ 'Output ' => array (
170+ 'required ' => true ,
171+ 'type ' => 'object ' ,
172+ 'location ' => 'xml ' ,
173+ 'properties ' => array (
174+ 'Region ' => array ( 'required ' => true , 'type ' => 'string ' , 'location ' => 'xml ' , ),
175+ 'Bucket ' => array ( 'required ' => true , 'type ' => 'string ' , 'location ' => 'xml ' , ),
176+ 'Object ' => array ( 'required ' => true , 'type ' => 'string ' , 'location ' => 'xml ' , ),
177+ ),
178+ ),
179+ ),
180+ ),
181+ ),
182+ );
183+ }
184+
185+ public static function CreateMediaTranscodeJobsOutput () {
186+ return array (
187+ 'type ' => 'object ' ,
188+ 'additionalProperties ' => true ,
189+ 'properties ' => array (
190+ 'Body ' => array (
191+ 'type ' => 'string ' ,
192+ 'instanceOf ' => 'GuzzleHttp \\Psr7 \\Stream ' ,
193+ 'location ' => 'body ' ,
194+ ),
195+ 'RequestId ' => array (
196+ 'type ' => 'string ' ,
197+ 'location ' => 'header ' ,
198+ 'sentAs ' => 'x-ci-request-id ' ,
199+ ),
200+ 'ContentType ' => array (
201+ 'type ' => 'string ' ,
202+ 'location ' => 'header ' ,
203+ 'sentAs ' => 'Content-Type ' ,
204+ ),
205+ 'ContentLength ' => array (
206+ 'type ' => 'numeric ' ,
207+ 'minimum ' => 0 ,
208+ 'location ' => 'header ' ,
209+ 'sentAs ' => 'Content-Length ' ,
210+ ),
211+ ),
212+ );
213+ }
214+ }
0 commit comments