当前位置: 首页>>代码示例>>PHP>>正文


PHP Utilities::getEntityId方法代码示例

本文整理汇总了PHP中WindowsAzure\Common\Internal\Utilities::getEntityId方法的典型用法代码示例。如果您正苦于以下问题:PHP Utilities::getEntityId方法的具体用法?PHP Utilities::getEntityId怎么用?PHP Utilities::getEntityId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WindowsAzure\Common\Internal\Utilities的用法示例。


在下文中一共展示了Utilities::getEntityId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Create locator
  *
  * @param WindowsAzure\MediaServices\Models\Asset|string        $asset        A
  * target asset
  *
  * @param WindowsAzure\MediaServices\Models\AccessPolicy|string $accessPolicy A
  * target access policy
  *
  * @param int                                                   $type         An
  * enumeration value that describes the type of Locator.
  */
 public function __construct($asset, $accessPolicy, $type)
 {
     $this->_assetId = Utilities::getEntityId($asset, 'WindowsAzure\\MediaServices\\Models\\Asset');
     $this->_accessPolicyId = Utilities::getEntityId($accessPolicy, 'WindowsAzure\\MediaServices\\Models\\AccessPolicy');
     $this->_type = $type;
 }
开发者ID:bitmovin,项目名称:azure-sdk-for-php,代码行数:18,代码来源:Locator.php

示例2: getKeyDeliveryUrl

 /**
  * Link AssetDeliveryPolicy to Asset
  *
  * @param Models\Asset|string      $asset      Asset to link a AssetDeliveryPolicy or
  * Asset id
  *
  * @param Models\AssetDeliveryPolicy|string $policy DeliveryPolicy to link or
  * DeliveryPolicy id
  *
  * //@return void
  */
 public function getKeyDeliveryUrl($contentKey, $contentKeyDeliveryType)
 {
     $contentKeyId = Utilities::getEntityId($contentKey, 'WindowsAzure\\MediaServices\\Models\\ContentKey');
     $contentKeyId = urlencode($contentKeyId);
     $body = json_encode(['keyDeliveryType' => $contentKeyDeliveryType]);
     $method = Resources::HTTP_POST;
     $path = "ContentKeys('{$contentKeyId}')/GetKeyDeliveryUrl";
     $headers = array(Resources::CONTENT_TYPE => Resources::JSON_CONTENT_TYPE);
     $postParams = array();
     $queryParams = array();
     $statusCode = Resources::STATUS_OK;
     $response = $this->send($method, $headers, $postParams, $queryParams, $path, $statusCode, $body);
     return simplexml_load_string($response->getBody())->__toString();
 }
开发者ID:bitmovin,项目名称:azure-sdk-for-php,代码行数:25,代码来源:MediaServicesRestProxy.php

示例3: deleteJobTemplate

 /**
  * Delete job template
  *
  * @param WindowsAzure\MediaServices\Models\JobTemplate|string $jobTemplate Job
  * template data or job template Id
  *
  * @return none
  */
 public function deleteJobTemplate($jobTemplate)
 {
     $jobTemplateId = Utilities::getEntityId($jobTemplate, 'WindowsAzure\\Mediaservices\\Models\\JobTemplate');
     $this->_deleteEntity("JobTemplates('{$jobTemplateId}')");
 }
开发者ID:mat33470,项目名称:PFA,代码行数:13,代码来源:MediaServicesRestProxy.php

示例4: sendDeleteProgramOperation

 /**
  * Delete Program.
  *
  * @param WindowsAzure\MediaServices\Models\Program|string $program Program data or program Id
  *
  * @return none
  */
 public function sendDeleteProgramOperation($program)
 {
     $programId = Utilities::getEntityId($program, 'WindowsAzure\\MediaServices\\Models\\Program');
     return $this->_sendOperation(null, "Programs('{$programId}')", Resources::HTTP_DELETE, Resources::STATUS_NO_CONTENT);
 }
开发者ID:southworkscom,项目名称:azure-sdk-for-php,代码行数:12,代码来源:MediaServicesRestProxy.php

示例5: deleteContentKey

 /**
  * Delete ContentKey
  *
  * @param Models\ContentKey|string $contentKey An ContentKey data or
  * ContentKey Id
  *
  * @return none
  */
 public function deleteContentKey($contentKey)
 {
     $contentKeyId = Utilities::getEntityId($contentKey, 'WindowsAzure\\Mediaservices\\Models\\ContentKey');
     $this->_deleteEntity("ContentKeys('{$contentKeyId}')");
 }
开发者ID:senthilkumar3282,项目名称:azure-sdk-for-php,代码行数:13,代码来源:MediaServicesRestProxy.php


注:本文中的WindowsAzure\Common\Internal\Utilities::getEntityId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。