<?php
namespace Qcloud\Cos;
/**
* 为 src/Qcloud/Cos/Service.php 服务,视觉上区分各方法的参数\输出描述
* 原service的参数描述可不改动
* Class Descriptions
* @package Qcloud\Cos
*/
class Descriptions {
/**
* 视频转码
* @return array
*/
public static function CreateMediaTranscodeJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaTranscodeJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Tag' => array('location' => 'xml', 'type' => 'string', ),
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'WatermarkTemplateId' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'name' => 'WatermarkTemplateId',
'type' => 'string',
'location' => 'xml',
'sentAs' => 'WatermarkTemplateId',
),
),
'Transcode' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TimeInterval' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TransConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsEncrypt' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
'Watermark' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'name' => 'Watermark',
'type' => 'object',
'sentAs' => 'Watermark',
'properties' => array(
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Image' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Background' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Text' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Text' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
)
),
'RemoveWatermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaTranscodeJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'name' => 'Operation',
'type' => 'object',
'sentAs' => 'Operation',
'properties' => array(
'Tag' => array('location' => 'xml', 'type' => 'string', ),
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoProcess' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'ColorEnhance' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
'Contrast' => array( 'type' => 'string', 'location' => 'xml', ),
'Correction' => array( 'type' => 'string', 'location' => 'xml', ),
'Saturation' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'MsSharpen' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'VideoMontage' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Animation' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ),
'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ),
'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ),
'Quality' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TimeInterval' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Snapshot' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
'Count' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'VoiceSeparate' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'AudioMode' => array( 'type' => 'string', 'location' => 'xml', ),
'AudioConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Segment' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'SDRtoHDR' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HdrMode' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'SuperResolution' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Resolution' => array( 'type' => 'string', 'location' => 'xml', ),
'EnableScaleUp' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'WatermarkTemplateId' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'name' => 'WatermarkTemplateId',
'type' => 'string',
'location' => 'xml',
'sentAs' => 'WatermarkTemplateId',
),
),
'Transcode' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TimeInterval' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TransConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsEncrypt' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
'Watermark' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'name' => 'Watermark',
'type' => 'object',
'sentAs' => 'Watermark',
'properties' => array(
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Image' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Background' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Text' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Text' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
)
),
'RemoveWatermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
'AuObject' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
'SpriteObject' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
);
}
public static function CreateMediaJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function DescribeMediaJob() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}jobs/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DescribeMediaJobOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function DescribeMediaJobOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function DescribeMediaJobs() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DescribeMediaJobsOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Tag' => array(
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'tag',
),
'QueueId' => array(
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'queueId',
),
'OrderByTime' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'orderByTime',
),
'NextToken' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'nextToken',
),
'Size' => array(
'type' => 'integer',
'location' => 'query',
'sentAs' => 'size',
),
'States' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'states',
),
'StartCreationTime' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'startCreationTime',
),
'EndCreationTime' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'endCreationTime',
),
),
);
}
public static function DescribeMediaJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaSnapshotJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaSnapshotJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Snapshot' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
'Count' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaSnapshotJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaConcatJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaConcatJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' =>false, 'type' => 'string', 'location' => 'xml', ), // 拼接任务Input可以为空,完全用数组内的元素拼接
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'ConcatTemplate' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Index' => array( 'type' => 'string', 'location' => 'xml', ),
'DirectConcat' => array( 'type' => 'string', 'location' => 'xml', ),
'ConcatFragments' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'name' => 'ConcatFragment',
'type' => 'object',
'sentAs' => 'ConcatFragment',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
// 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), 拼接接口不需要Mode参数
),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
),
);
}
public static function CreateMediaConcatJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function DetectAudio() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}audio/auditing',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectAudioOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Input' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Url' => array(
'type' => 'string',
'location' => 'xml',
),
'Object' => array(
'type' => 'string',
'location' => 'xml',
),
'DataId' => array(
'type' => 'string',
'location' => 'xml',
),
'UserInfo' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
'Room' => array( 'type' => 'string', 'location' => 'xml', ),
'IP' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Conf' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'DetectType' => array(
'type' => 'string',
'location' => 'xml',
),
'Callback' => array(
'type' => 'string',
'location' => 'xml',
),
'BizType' => array(
'type' => 'string',
'location' => 'xml',
),
'CallbackVersion' => array(
'type' => 'string',
'location' => 'xml',
),
),
),
),
);
}
public static function DetectAudioOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function GetDetectAudioResult() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}audio/auditing/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDetectAudioResultOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function GetDetectAudioResultOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'string', 'location' => 'xml', ),
'Message' => array( 'type' => 'string', 'location' => 'xml', ),
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
'AudioText' => array( 'type' => 'string', 'location' => 'xml', ),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Section' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Text' => array( 'type' => 'string', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'OffsetTime' => array( 'type' => 'integer', 'location' => 'xml', ),
'Duration' => array( 'type' => 'integer', 'location' => 'xml', ),
'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
'UserInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
'AppId' => array( 'type' => 'string', 'location' => 'xml',),
'Room' => array( 'type' => 'string', 'location' => 'xml',),
'IP' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
),
);
}
public static function GetDetectTextResult() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}text/auditing/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDetectTextResultOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function GetDetectTextResultOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'string', 'location' => 'xml', ),
'Message' => array( 'type' => 'string', 'location' => 'xml', ),
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
'Content' => array( 'type' => 'string', 'location' => 'xml', ),
'SectionCount' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
'IllegalInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
'AbuseInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
'Section' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'properties' => array(
'StartByte' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'IllegalInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'AbuseInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
'UserInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
'AppId' => array( 'type' => 'string', 'location' => 'xml',),
'Room' => array( 'type' => 'string', 'location' => 'xml',),
'IP' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
),
);
}
public static function DetectVideo() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}video/auditing',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectVideoOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Input' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'UserInfo' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
'Room' => array( 'type' => 'string', 'location' => 'xml', ),
'IP' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Conf' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
'CallbackVersion' => array( 'type' => 'string', 'location' => 'xml', ),
'DetectContent' => array( 'type' => 'integer', 'location' => 'xml', ),
'Snapshot' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Count' => array( 'type' => 'string', 'location' => 'xml', ),
'TimeInterval' => array( 'type' => 'numeric', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function DetectVideoOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function GetDetectVideoResult() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}video/auditing/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDetectVideoResultOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function GetDetectVideoResultOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array('type' => 'string', 'location' => 'xml',),
'Message' => array('type' => 'string', 'location' => 'xml',),
'DataId' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
'CreationTime' => array('type' => 'string', 'location' => 'xml',),
'Object' => array('type' => 'string', 'location' => 'xml',),
'Url' => array('type' => 'string', 'location' => 'xml',),
'SnapshotCount' => array('type' => 'string', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Result' => array('type' => 'integer', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Count' => array('type' => 'integer', 'location' => 'xml',),
)
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Count' => array('type' => 'integer', 'location' => 'xml',),
)
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Count' => array('type' => 'integer', 'location' => 'xml',),
)
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Count' => array('type' => 'integer', 'location' => 'xml',),
)
),
'TeenagerInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Count' => array('type' => 'integer', 'location' => 'xml',),
)
),
'Snapshot' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'properties' => array(
'Url' => array('type' => 'string', 'location' => 'xml',),
'SnapshotTime' => array('type' => 'integer', 'location' => 'xml',),
'Text' => array('type' => 'string', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Result' => array('type' => 'integer', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
)
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
)
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
)
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
)
),
'TeenagerInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
)
),
)
),
),
)
),
)
),
),
'AudioSection' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'properties' => array(
'Url' => array('type' => 'string', 'location' => 'xml',),
'Text' => array('type' => 'string', 'location' => 'xml',),
'OffsetTime' => array('type' => 'integer', 'location' => 'xml',),
'Duration' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Result' => array('type' => 'integer', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
)
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
)
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
)
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
)
),
'TeenagerInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',),
),
)
),
),
),
),
'UserInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
'AppId' => array( 'type' => 'string', 'location' => 'xml',),
'Room' => array( 'type' => 'string', 'location' => 'xml',),
'IP' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
),
),
)
),
'NonExistJobIds' => array('type' => 'string', 'location' => 'xml',)
),
);
}
public static function DetectDocument() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}document/auditing',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectDocumentOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Input' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'UserInfo' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
'Room' => array( 'type' => 'string', 'location' => 'xml', ),
'IP' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Conf' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function DetectDocumentOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function GetDetectDocumentResult() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}document/auditing/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDetectDocumentResultOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function GetDetectDocumentResultOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array('type' => 'string', 'location' => 'xml',),
'Message' => array('type' => 'string', 'location' => 'xml',),
'DataId' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'CreationTime' => array('type' => 'string', 'location' => 'xml',),
'Object' => array('type' => 'string', 'location' => 'xml',),
'Url' => array('type' => 'string', 'location' => 'xml',),
'PageCount' => array('type' => 'integer', 'location' => 'xml',),
'Labels' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
),
),
'PageSegment' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Results' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array('type' => 'string', 'location' => 'xml',),
'Text' => array('type' => 'string', 'location' => 'xml',),
'PageNumber' => array('type' => 'integer', 'location' => 'xml',),
'SheetNumber' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',)
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',)
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',)
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array('type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array('type' => 'string', 'location' => 'xml',)
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array('type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array('type' => 'numeric', 'location' => 'xml',),
'Y' => array('type' => 'numeric', 'location' => 'xml',),
'Height' => array('type' => 'numeric', 'location' => 'xml',),
'Width' => array('type' => 'numeric', 'location' => 'xml',),
'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
),
),
),
),
),
'UserInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
'AppId' => array( 'type' => 'string', 'location' => 'xml',),
'Room' => array( 'type' => 'string', 'location' => 'xml',),
'IP' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
),
);
}
public static function CreateDocProcessJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}doc_jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateDocProcessJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Tag' => array(
'required' => true,
'type' => 'string',
'location' => 'xml',
),
'QueueId' => array(
'required' => true,
'type' => 'string',
'location' => 'xml',
),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array(
'type' => 'string','required' => true,'location' => 'xml',
),
'Bucket' => array(
'type' => 'string','required' => true,'location' => 'xml',
),
'Object' => array(
'type' => 'string','required' => true,'location' => 'xml',
),
),
),
'DocProcess' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'SrcType' => array(
'type' => 'string',
),
'TgtType' => array(
'type' => 'string',
),
'SheetId' => array(
'type' => 'integer',
),
'StartPage' => array(
'type' => 'integer',
),
'EndPage' => array(
'type' => 'integer',
),
'ImageParams' => array(
'type' => 'string',
),
'DocPassword' => array(
'type' => 'string',
),
'Comments' => array(
'type' => 'integer',
),
'PaperDirection' => array(
'type' => 'integer',
),
'Quality' => array(
'type' => 'integer',
),
'Zoom' => array(
'type' => 'integer',
),
),
),
),
),
),
);
}
public static function CreateDocProcessJobsOutput()
{
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id',),
'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'EndTime' => array('type' => 'string', 'location' => 'xml',),
'StartTime' => array('type' => 'string', 'location' => 'xml',),
'Code' => array('type' => 'string', 'location' => 'xml',),
'Message' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'Tag' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
'CreationTime' => array('type' => 'string', 'location' => 'xml',),
'QueueId' => array('type' => 'string', 'location' => 'xml',),
'Input' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array('type' => 'string', 'location' => 'xml',),
),
),
'Operation' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array(
'type' => 'string','location' => 'xml',
),
'Bucket' => array(
'type' => 'string','location' => 'xml',
),
'Object' => array(
'type' => 'string','location' => 'xml',
),
),
),
'DocProcess' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'SrcType' => array(
'type' => 'string',
),
'TgtType' => array(
'type' => 'string',
),
'SheetId' => array(
'type' => 'integer',
),
'StartPage' => array(
'type' => 'integer',
),
'EndPage' => array(
'type' => 'integer',
),
'ImageParams' => array(
'type' => 'string',
),
'DocPassword' => array(
'type' => 'string',
),
'Comments' => array(
'type' => 'integer',
),
'PaperDirection' => array(
'type' => 'integer',
),
'Quality' => array(
'type' => 'integer',
),
'Zoom' => array(
'type' => 'integer',
),
),
),
),
),
),
),
),
);
}
public static function DescribeDocProcessQueues() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}docqueue',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DescribeDocProcessQueuesOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'queueIds' => array(
'type' => 'string',
'location' => 'xml',
),
'state' => array(
'type' => 'string',
'location' => 'xml',
),
'pageNumber' => array(
'type' => 'string',
'location' => 'query',
),
'pageSize' => array(
'type' => 'string',
'location' => 'query',
),
),
);
}
public static function DescribeDocProcessQueuesOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array('type' => 'string', 'location' => 'xml',),
'TotalCount' => array('type' => 'integer', 'location' => 'xml',),
'PageNumber' => array('type' => 'integer', 'location' => 'xml',),
'PageSize' => array('type' => 'integer', 'location' => 'xml',),
'QueueList' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'State' => array('type' => 'string', 'location' => 'xml',),
'Name' => array('type' => 'string', 'location' => 'xml',),
'MaxSize' => array('type' => 'integer', 'location' => 'xml',),
'MaxConcurrent' => array('type' => 'integer', 'location' => 'xml',),
'CreateTime' => array('type' => 'string', 'location' => 'xml',),
'UpdateTime' => array('type' => 'string', 'location' => 'xml',),
'BucketId' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'QueueId' => array('type' => 'string', 'location' => 'xml',),
'NotifyConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array('type' => 'string', 'location' => 'xml',),
'Event' => array('type' => 'string', 'location' => 'xml',),
'Type' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
),
),
),
),
),
);
}
public static function DescribeDocProcessJob() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}doc_jobs/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DescribeDocProcessJobOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function DescribeDocProcessJobOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array(
'type' => 'string',
),
'Message' => array(
'type' => 'string',
),
'JobId' => array(
'type' => 'string',
),
'State' => array(
'type' => 'string',
),
'CreationTime' => array(
'type' => 'string',
),
'QueueId' => array(
'type' => 'string',
),
'Tag' => array(
'type' => 'string',
),
'EndTime' => array(
'type' => 'string',
),
'Input' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array(
'type' => 'string',
),
),
),
'Operation' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'properties' => array(
'DocProcess' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'SrcType' => array(
'type' => 'string',
),
'TgtType' => array(
'type' => 'string',
),
'SheetId' => array(
'type' => 'integer',
),
'StartPage' => array(
'type' => 'integer',
),
'EndPage' => array(
'type' => 'integer',
),
'ImageParams' => array(
'type' => 'string',
),
'DocPassword' => array(
'type' => 'string',
),
'Comments' => array(
'type' => 'integer',
),
'PaperDirection' => array(
'type' => 'integer',
),
'Quality' => array(
'type' => 'integer',
),
'Zoom' => array(
'type' => 'integer',
),
),
),
'DocProcessResult' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'PageInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'PageNo' => array(
'type' => 'integer',
),
'TgtUri' => array(
'type' => 'string',
),
'PicIndex' => array(
'type' => 'integer',
),
'PicNum' => array(
'type' => 'integer',
),
'X-SheetPics' => array(
'type' => 'integer',
),
),
),
'SuccPageCount' => array(
'type' => 'integer',
),
'FailPageCount' => array(
'type' => 'integer',
),
'TaskId' => array(
'type' => 'string',
),
'TgtType' => array(
'type' => 'string',
),
'TotalPageCount' => array(
'type' => 'integer',
),
'TotalSheetCount' => array(
'type' => 'integer',
),
),
),
'Output' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Bucket' => array(
'type' => 'string',
),
'Object' => array(
'type' => 'string',
),
'Region' => array(
'type' => 'string',
),
),
),
),
),
),
),
),
),
);
}
public static function GetDescribeDocProcessJobs() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}doc_jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDescribeDocProcessJobsOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Tag' => array(
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'tag',
),
'QueueId' => array(
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'queueId',
),
'OrderByTime' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'orderByTime',
),
'NextToken' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'nextToken',
),
'Size' => array(
'type' => 'integer',
'location' => 'query',
'sentAs' => 'size',
),
'States' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'states',
),
'StartCreationTime' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'startCreationTime',
),
'EndCreationTime' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'endCreationTime',
),
),
);
}
public static function GetDescribeDocProcessJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id',),
'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
'NextToken' => array('type' => 'string','location' => 'xml',),
'JobsDetail' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'type' => 'object',
'properties' => array(
'Code' => array('type' => 'string', 'location' => 'xml',),
'Message' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'Tag' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
'CreationTime' => array('type' => 'string', 'location' => 'xml',),
'QueueId' => array('type' => 'string', 'location' => 'xml',),
'Input' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array('type' => 'string', 'location' => 'xml',),
),
),
'Operation' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array(
'type' => 'string','location' => 'xml',
),
'Bucket' => array(
'type' => 'string','location' => 'xml',
),
'Object' => array(
'type' => 'string','location' => 'xml',
),
),
),
'DocProcess' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'SrcType' => array(
'type' => 'string',
),
'TgtType' => array(
'type' => 'string',
),
'SheetId' => array(
'type' => 'integer',
),
'StartPage' => array(
'type' => 'integer',
),
'EndPage' => array(
'type' => 'integer',
),
'ImageParams' => array(
'type' => 'string',
),
'DocPassword' => array(
'type' => 'string',
),
'Comments' => array(
'type' => 'integer',
),
'PaperDirection' => array(
'type' => 'integer',
),
'Quality' => array(
'type' => 'integer',
),
'Zoom' => array(
'type' => 'integer',
),
),
),
),
),
),
),
),
),
);
}
public static function DetectImage() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectImageOutput',
'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'
)
),
'ci-process' => array(
'required' => true,
'type' => 'string',
'location' => 'query'
),
'DetectType' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'detect-type'
),
'DetectUrl' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'detect-url'
),
'Interval' => array(
'type' => 'integer',
'location' => 'query',
'sentAs' => 'interval'
),
'MaxFrames' => array(
'type' => 'integer',
'location' => 'query',
'sentAs' => 'max-frames'
),
'BizType' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'biz-type'
),
'LargeImageDetect' => array(
'type' => 'integer',
'location' => 'query',
'sentAs' => 'large-image-detect'
),
'DataId' => array(
'type' => 'string',
'location' => 'query',
'sentAs' => 'dataid'
),
),
);
}
public static function DetectImageOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
'Result' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'CompressionResult' => array('type' => 'integer', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Text' => array('type' => 'string', 'location' => 'xml',),
'DataId' => array('type' => 'string', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TerroristInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TeenagerInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
)
);
}
public static function DetectImages() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}image/auditing',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectImagesOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Inputs' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'name' => 'Input',
'type' => 'object',
'location' => 'xml',
'sentAs' => 'Input',
'properties' => array(
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Interval' => array( 'type' => 'integer', 'location' => 'xml', ),
'MaxFrames' => array( 'type' => 'integer', 'location' => 'xml', ),
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'LargeImageDetect' => array( 'type' => 'integer', 'location' => 'xml', ),
'UserInfo' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
'Room' => array( 'type' => 'string', 'location' => 'xml', ),
'IP' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
'Conf' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function DetectImagesOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
'JobsDetail' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'string', 'location' => 'xml',),
'Message' => array( 'type' => 'string', 'location' => 'xml',),
'JobId' => array( 'type' => 'string', 'location' => 'xml',),
'DataId' => array( 'type' => 'string', 'location' => 'xml',),
'CompressionResult' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Result' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Object' => array( 'type' => 'string', 'location' => 'xml',),
'Url' => array( 'type' => 'string', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TeenagerInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array( 'type' => 'integer', 'location' => 'xml',),
'Msg' => array( 'type' => 'string', 'location' => 'xml',),
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
'Score' => array( 'type' => 'integer', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Category' => array( 'type' => 'string', 'location' => 'xml',),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'UserInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
'AppId' => array( 'type' => 'string', 'location' => 'xml',),
'Room' => array( 'type' => 'string', 'location' => 'xml',),
'IP' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
),
)
);
}
public static function DetectVirus() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}virus/detect',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectVirusOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Input' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Conf' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function DetectVirusOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function GetDetectVirusResult() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}virus/detect/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDetectVirusResultOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function GetDetectVirusResultOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array('type' => 'string', 'location' => 'xml',),
'Message' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
'CreationTime' => array('type' => 'string', 'location' => 'xml',),
'Object' => array('type' => 'string', 'location' => 'xml',),
'Url' => array('type' => 'string', 'location' => 'xml',),
'Suggestion' => array('type' => 'string', 'location' => 'xml',),
'DetectDetail' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Result' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'FileName' => array( 'type' => 'string', 'location' => 'xml', ),
'VirusName' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
),
),
),
);
}
public static function GetDetectImageResult() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}image/auditing/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDetectImageResultOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function GetDetectImageResultOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array('type' => 'string', 'location' => 'xml',),
'Message' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
'CreationTime' => array('type' => 'string', 'location' => 'xml',),
'Object' => array('type' => 'string', 'location' => 'xml',),
'Url' => array('type' => 'string', 'location' => 'xml',),
'CompressionResult' => array('type' => 'integer', 'location' => 'xml',),
'Text' => array('type' => 'string', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'Result' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TeenagerInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
'Label' => array( 'type' => 'string', 'location' => 'xml', ),
'Category' => array( 'type' => 'string', 'location' => 'xml', ),
'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'UserInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
'AppId' => array( 'type' => 'string', 'location' => 'xml',),
'Room' => array( 'type' => 'string', 'location' => 'xml',),
'IP' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
),
);
}
public static function CreateMediaVoiceSeparateJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaVoiceSeparateJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'VoiceSeparate' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'AudioMode' => array( 'type' => 'string', 'location' => 'xml', ),
'AudioConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array('type' => 'string', 'location' => 'xml', ),
'Bucket' => array('type' => 'string', 'location' => 'xml', ),
'Object' => array('type' => 'string', 'location' => 'xml', ),
'AuObject' => array('type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaVoiceSeparateJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function DescribeMediaVoiceSeparateJob() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}jobs/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DescribeMediaVoiceSeparateJobOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function DescribeMediaVoiceSeparateJobOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function DetectWebpage() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}webpage/auditing',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectWebpageOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Input' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'UserInfo' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
'Room' => array( 'type' => 'string', 'location' => 'xml', ),
'IP' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Conf' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
'ReturnHighlightHtml' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function DetectWebpageOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function GetDetectWebpageResult() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}webpage/auditing/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetDetectWebpageResultOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function GetDetectWebpageResultOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Code' => array('type' => 'string', 'location' => 'xml',),
'Message' => array('type' => 'string', 'location' => 'xml',),
'DataId' => array('type' => 'string', 'location' => 'xml',),
'JobId' => array('type' => 'string', 'location' => 'xml',),
'State' => array('type' => 'string', 'location' => 'xml',),
'CreationTime' => array('type' => 'string', 'location' => 'xml',),
'Url' => array('type' => 'string', 'location' => 'xml',),
'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
'Label' => array('type' => 'string', 'location' => 'xml',),
'PageCount' => array('type' => 'integer', 'location' => 'xml',),
'HighlightHtml' => array('type' => 'string', 'location' => 'xml',),
'Labels' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
),
),
),
),
'ImageResults' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Results' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml',),
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Suggestion' => array( 'type' => 'integer', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Category' => array('type' => 'string', 'location' => 'xml',),
'SubLabel' => array('type' => 'string', 'location' => 'xml',),
'OcrResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Keywords' => array(
'type' => 'array',
'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml',),
),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
'ObjectResults' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Location' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'X' => array( 'type' => 'numeric', 'location' => 'xml',),
'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
),
),
),
),
),
),
),
),
),
),
),
),
'TextResults' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Results' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Text' => array( 'type' => 'string', 'location' => 'xml',),
'Label' => array( 'type' => 'string', 'location' => 'xml',),
'Suggestion' => array( 'type' => 'integer', 'location' => 'xml',),
'PornInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array('type' => 'string', 'location' => 'xml',),
),
),
'AdsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array('type' => 'string', 'location' => 'xml',),
),
),
'PoliticsInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array('type' => 'string', 'location' => 'xml',),
),
),
'TerrorismInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
'Score' => array('type' => 'integer', 'location' => 'xml',),
'Keywords' => array('type' => 'string', 'location' => 'xml',),
),
),
),
),
),
),
),
'UserInfo' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
'AppId' => array( 'type' => 'string', 'location' => 'xml',),
'Room' => array( 'type' => 'string', 'location' => 'xml',),
'IP' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
),
);
}
public static function DescribeMediaBuckets() {
return array(
'httpMethod' => 'GET',
'uri' => '/mediabucket',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DescribeMediaBucketsOutput',
'responseType' => 'model',
'parameters' => array(
'Regions' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'regions' ),
'BucketNames' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketNames' ),
'BucketName' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketName' ),
'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ),
'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ),
),
);
}
public static function DescribeMediaBucketsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ),
'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ),
'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ),
'MediaBucketList' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'BucketId' => array( 'type' => 'string', 'location' => 'xml',),
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'Region' => array( 'type' => 'string', 'location' => 'xml',),
'CreateTime' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
);
}
public static function GetPrivateM3U8() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'GetPrivateM3U8Output',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'ci-process' => array(
'required' => true,
'type' => 'string',
'location' => 'query'
),
'expires' => array(
'required' => true,
'type' => 'string',
'location' => 'query'
)
),
);
}
public static function GetPrivateM3U8Output() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-cos-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function DescribeMediaQueues() {
return array(
'httpMethod' => 'GET',
'uri' => '/{Bucket}queue',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DescribeMediaQueuesOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'QueueIds' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'queueIds' ),
'State' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'state' ),
'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ),
'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ),
),
);
}
public static function DescribeMediaQueuesOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ),
'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ),
'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ),
'QueueList' => array(
'type' => 'array', 'location' => 'xml',
'items' => array(
'type' => 'object', 'location' => 'xml',
'properties' => array(
'QueueId' => array( 'type' => 'string', 'location' => 'xml',),
'Name' => array( 'type' => 'string', 'location' => 'xml',),
'State' => array( 'type' => 'string', 'location' => 'xml',),
'MaxSize' => array( 'type' => 'integer', 'location' => 'xml',),
'MaxConcurrent' => array( 'type' => 'integer', 'location' => 'xml',),
'UpdateTime' => array( 'type' => 'string', 'location' => 'xml',),
'CreateTime' => array( 'type' => 'string', 'location' => 'xml',),
'NotifyConfig' => array(
'type' => 'object', 'location' => 'xml',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml',),
'State' => array( 'type' => 'string', 'location' => 'xml',),
'Type' => array( 'type' => 'string', 'location' => 'xml',),
'Event' => array( 'type' => 'string', 'location' => 'xml',),
),
),
),
),
),
'NonExistPIDs' => array(
'type' => 'array', 'location' => 'xml',
'items' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
);
}
public static function UpdateMediaQueue() {
return array(
'httpMethod' => 'PUT',
'uri' => '/{Bucket}queue/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'UpdateMediaQueueOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueID' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'State' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'NotifyConfig' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
'Event' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function UpdateMediaQueueOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaSmartCoverJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaSmartCoverJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaSmartCoverJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaVideoProcessJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaVideoProcessJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoProcess' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'ColorEnhance' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
'Contrast' => array( 'type' => 'string', 'location' => 'xml', ),
'Correction' => array( 'type' => 'string', 'location' => 'xml', ),
'Saturation' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'MsSharpen' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Transcode' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
'Name' => array( 'type' => 'string', 'location' => 'xml', ),
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TimeInterval' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TransConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsEncrypt' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
'Watermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Image' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Background' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Text' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Text' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaVideoProcessJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaVideoMontageJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaVideoMontageJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoMontage' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaVideoMontageJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaAnimationJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaAnimationJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'Animation' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ),
'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ),
'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ),
'Quality' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TimeInterval' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaAnimationJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaPicProcessJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}pic_jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaPicProcessJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'PicProcess' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsPicInfo' => array( 'type' => 'string', 'location' => 'xml', ),
'ProcessRule' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaPicProcessJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaSegmentJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaSegmentJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Segment' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsEncrypt' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaSegmentJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaVideoTagJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaVideoTagJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'VideoTag' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Scenario' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaVideoTagJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaSuperResolutionJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaSuperResolutionJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'SuperResolution' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Resolution' => array( 'type' => 'string', 'location' => 'xml', ),
'EnableScaleUp' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Transcode' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
'Name' => array( 'type' => 'string', 'location' => 'xml', ),
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TimeInterval' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TransConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsEncrypt' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
'Watermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Image' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Background' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Text' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Text' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'DigitalWatermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Message' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Version' => array( 'type' => 'string', 'location' => 'xml', ),
'IgnoreError' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaSuperResolutionJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaSDRtoHDRJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaSDRtoHDRJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
'SDRtoHDR' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'HdrMode' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Transcode' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
'Name' => array( 'type' => 'string', 'location' => 'xml', ),
'Container' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Format' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Video' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TimeInterval' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Start' => array( 'type' => 'string', 'location' => 'xml', ),
'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Audio' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'TransConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
'HlsEncrypt' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
'Watermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
'Image' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
'Width' => array( 'type' => 'string', 'location' => 'xml', ),
'Height' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Background' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Text' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
'Text' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaSDRtoHDRJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaDigitalWatermarkJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaDigitalWatermarkJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DigitalWatermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Message' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Version' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Output' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaDigitalWatermarkJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function CreateMediaExtractDigitalWatermarkJobs() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}jobs',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CreateMediaExtractDigitalWatermarkJobsOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
'Input' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
),
),
'Operation' => array(
'required' => true,
'type' => 'object',
'location' => 'xml',
'properties' => array(
'ExtractDigitalWatermark' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Version' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
);
}
public static function CreateMediaExtractDigitalWatermarkJobsOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Body' => array(
'type' => 'string',
'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
'location' => 'body',
),
'RequestId' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'x-ci-request-id',
),
'ContentType' => array(
'type' => 'string',
'location' => 'header',
'sentAs' => 'Content-Type',
),
'ContentLength' => array(
'type' => 'numeric',
'minimum'=> 0,
'location' => 'header',
'sentAs' => 'Content-Length',
),
),
);
}
public static function DetectLiveVideo() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}video/auditing',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'DetectLiveVideoOutput',
'responseType' => 'model',
'data' => array(
'xmlRoot' => array(
'name' => 'Request',
),
),
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
'Input' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'UserInfo' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
'Room' => array( 'type' => 'string', 'location' => 'xml', ),
'IP' => array( 'type' => 'string', 'location' => 'xml', ),
'Type' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
'Conf' => array(
'location' => 'xml',
'type' => 'object',
'properties' => array(
'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
'CallbackType' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
),
);
}
public static function DetectLiveVideoOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
public static function CancelLiveVideoAuditing() {
return array(
'httpMethod' => 'POST',
'uri' => '/{Bucket}video/cancel_auditing/{/Key*}',
'class' => 'Qcloud\\Cos\\Command',
'responseClass' => 'CancelLiveVideoAuditingOutput',
'responseType' => 'model',
'parameters' => array(
'Bucket' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
'Key' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
),
),
);
}
public static function CancelLiveVideoAuditingOutput() {
return array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
'JobsDetail' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
}