src/MediaServices/MediaServicesRestProxy.php
public function createIngestManifestAsset(
        IngestManifestAsset $ingestManifestAsset, Asset $asset)
    {
        $href = urlencode($asset->getId());

        $atomLink = new AtomLink();
        $atomLink->setHref($this->getUri()."Assets('{$href}')");
        $atomLink->setType(Resources::ATOM_ENTRY_CONTENT_TYPE);
        $atomLink->setTitle('Asset');
        $atomLink->setRel(Resources::MEDIA_SERVICES_ASSET_REL);

        return IngestManifestAsset::createFromOptions(
            $this->_createEntity(
                $ingestManifestAsset,
                'IngestManifestAssets',
                [$atomLink]
            )
        );
    }
public function createIngestManifestAsset(
        IngestManifestAsset $ingestManifestAsset, Asset $asset)
    {
        $href = urlencode($asset->getId());

        $atomLink = new AtomLink();
        $atomLink->setHref($this->getUri()."Assets('{$href}')");
        $atomLink->setType(Resources::ATOM_ENTRY_CONTENT_TYPE);
        $atomLink->setTitle('Asset');
        $atomLink->setRel(Resources::MEDIA_SERVICES_ASSET_REL);

        return IngestManifestAsset::createFromOptions(
            $this->_createEntity(
                $ingestManifestAsset,
                'IngestManifestAssets',
                [$atomLink]
            )
        );
    }
public function createIngestManifestAsset ( IngestManifestAsset $ ingestManifestAsset , Asset $ asset ) { $ href = urlencode ( $ asset -> getId ( ) ) ; $ atomLink = new AtomLink ( ) ; $ atomLink -> setHref ( $ this -> getUri ( ) . "Assets('{$href}')" ) ; $ atomLink -> setType ( Resources :: ATOM_ENTRY_CONTENT_TYPE ) ; $ atomLink -> setTitle ( 'Asset' ) ; $ atomLink -> setRel ( Resources :: MEDIA_SERVICES_ASSET_REL ) ; return IngestManifestAsset :: createFromOptions ( $ this -> _createEntity ( $ ingestManifestAsset , 'IngestManifestAssets' , [ $ atomLink ] ) ) ; }
Create new IngestManifestAsset.

@param IngestManifestAsset $ingestManifestAsset An IngestManifestAsset data
@param Asset               $asset               An Asset data to be linked with IngestManifestAsset

@return IngestManifestAsset
Create new IngestManifestAsset .