src/BaiduBce/Services/Media/MediaClient.php
public function createSimpleJob(
        $pipelineName,
        $sourceKey,
        $targetKey,
        $presetName,
        $options = array()
    ) {

        if (empty($pipelineName)) {
            throw new BceClientException("The parameter pipelineName " 
                ."should NOT be null or empty string");
        }

        if (empty($sourceKey)) {
            throw new BceClientException("The parameter sourceKey " 
                ."should NOT be null or empty string");
        }

        if (empty($targetKey)) {
            throw new BceClientException("The parameter targetKey " 
                ."should NOT be null or empty string");
        }

        if (empty($presetName)) {
            throw new BceClientException("The parameter presetName " 
                ."should NOT be null or empty string");
        }

        return $this->createJob(
            $pipelineName,
            array(
                'sourceKey' => $sourceKey,
            ),
            array(
                'targetKey' => $targetKey,
                'presetName' => $presetName,
            ),
            $options
        );
    }
public function createSimpleJob(
        $pipelineName,
        $sourceKey,
        $targetKey,
        $presetName,
        $options = array()
    ) {

        if (empty($pipelineName)) {
            throw new BceClientException("The parameter pipelineName " 
                ."should NOT be null or empty string");
        }

        if (empty($sourceKey)) {
            throw new BceClientException("The parameter sourceKey " 
                ."should NOT be null or empty string");
        }

        if (empty($targetKey)) {
            throw new BceClientException("The parameter targetKey " 
                ."should NOT be null or empty string");
        }

        if (empty($presetName)) {
            throw new BceClientException("The parameter presetName " 
                ."should NOT be null or empty string");
        }

        return $this->createJob(
            $pipelineName,
            array(
                'sourceKey' => $sourceKey,
            ),
            array(
                'targetKey' => $targetKey,
                'presetName' => $presetName,
            ),
            $options
        );
    }
public function createSimpleJob ( $ pipelineName , $ sourceKey , $ targetKey , $ presetName , $ options = array ( ) ) { if ( empty ( $ pipelineName ) ) { throw new BceClientException ( "The parameter pipelineName " . "should NOT be null or empty string" ) ; } if ( empty ( $ sourceKey ) ) { throw new BceClientException ( "The parameter sourceKey " . "should NOT be null or empty string" ) ; } if ( empty ( $ targetKey ) ) { throw new BceClientException ( "The parameter targetKey " . "should NOT be null or empty string" ) ; } if ( empty ( $ presetName ) ) { throw new BceClientException ( "The parameter presetName " . "should NOT be null or empty string" ) ; } return $ this -> createJob ( $ pipelineName , array ( 'sourceKey' => $ sourceKey , ) , array ( 'targetKey' => $ targetKey , 'presetName' => $ presetName , ) , $ options ) ; }
Create a job, a simpler api
@param string $pipelineName The pipeline name
@param string $sourceKey The source media object's key
@param string $targetKey The target media object's key
which will be generated
@param string $presetName The preset name this job use
@param array $options Supported options:
{
config: The optional bce configuration, which will overwrite the
default client configuration that was passed in constructor.
}
@return mixed
@throws BceClientException
Create a job a simpler api