public function getModelVersionById($modelId, $versionId)
    {
        $modelResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl(sprintf('models/%s/versions/%s', $modelId, $versionId))
        );

        if (isset($modelResult['model_version'])) {
            $modelVersion = new ModelVersion($modelResult['model_version']);
        } else {
            throw new \Exception('Model Versions Not Found');
        }

        return $modelVersion;
    }
public function getModelVersionById($modelId, $versionId)
    {
        $modelResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl(sprintf('models/%s/versions/%s', $modelId, $versionId))
        );

        if (isset($modelResult['model_version'])) {
            $modelVersion = new ModelVersion($modelResult['model_version']);
        } else {
            throw new \Exception('Model Versions Not Found');
        }

        return $modelVersion;
    }
public function getModelVersionById ( $ modelId , $ versionId ) { $ modelResult = $ this -> getRequest ( ) -> request ( 'GET' , $ this -> getRequestUrl ( sprintf ( 'models/%s/versions/%s' , $ modelId , $ versionId ) ) ) ; if ( isset ( $ modelResult [ 'model_version' ] ) ) { $ modelVersion = new ModelVersion ( $ modelResult [ 'model_version' ] ) ; } else { throw new \ Exception ( 'Model Versions Not Found' ) ; } return $ modelVersion ; }
Gets Model Version By Id

@param string $modelId
@param string $versionId

@return ModelVersion

@throws \Exception
Gets Model Version By Id