src/MediaServices/MediaServicesRestProxy.php
public function getAccessPolicy($accessPolicy)
    {
        $accessPolicyId = Utilities::getEntityId(
            $accessPolicy,
            'WindowsAzure\MediaServices\Models\AccessPolicy'
        );

        return AccessPolicy::createFromOptions(
            $this->_getEntity("AccessPolicies('{$accessPolicyId}')")
        );
    }
public function getAccessPolicy($accessPolicy)
    {
        $accessPolicyId = Utilities::getEntityId(
            $accessPolicy,
            'WindowsAzure\MediaServices\Models\AccessPolicy'
        );

        return AccessPolicy::createFromOptions(
            $this->_getEntity("AccessPolicies('{$accessPolicyId}')")
        );
    }
public function getAccessPolicy ( $ accessPolicy ) { $ accessPolicyId = Utilities :: getEntityId ( $ accessPolicy , 'WindowsAzure\MediaServices\Models\AccessPolicy' ) ; return AccessPolicy :: createFromOptions ( $ this -> _getEntity ( "AccessPolicies('{$accessPolicyId}')" ) ) ; }
Get AccessPolicy.

@param AccessPolicy|string $accessPolicy AccessPolicy data or AccessPolicy Id

@return AccessPolicy
Get AccessPolicy .