File indexing completed on 2025-03-02 05:29:49
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Service_WindowsAzure 0017 * @subpackage Management 0018 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0019 * @license http://framework.zend.com/license/new-bsd New BSD License 0020 * @version $Id$ 0021 */ 0022 0023 /** 0024 * @see Zend_Service_WindowsAzure_Management_ServiceEntityAbstract 0025 */ 0026 // require_once 'Zend/Service/WindowsAzure/Management/ServiceEntityAbstract.php'; 0027 0028 /** 0029 * @category Zend 0030 * @package Zend_Service_WindowsAzure 0031 * @subpackage Management 0032 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0033 * @license http://framework.zend.com/license/new-bsd New BSD License 0034 * 0035 * @property string $Name The name for the deployment. This name must be unique among other deployments for the specified hosted service. 0036 * @property string $DeploymentSlot The environment to which the hosted service is deployed, either staging or production. 0037 * @property string $PrivateID The unique identifier for this deployment. 0038 * @property string $Label The label for the deployment. 0039 * @property string $Url The URL for the deployment. 0040 * @property string $Configuration The configuration file (XML, represented as string). 0041 * @property string $Status The status of the deployment. Running, Suspended, RunningTransitioning, SuspendedTransitioning, Starting, Suspending, Deploying, Deleting. 0042 * @property string $UpgradeStatus Parent node for elements describing an upgrade that is currently underway. 0043 * @property string $UpgradeType The upgrade type designated for this deployment. Possible values are Auto and Manual. 0044 * @property string $CurrentUpgradeDomainState The state of the current upgrade domain. Possible values are Before and During. 0045 * @property string $CurrentUpgradeDomain An integer value that identifies the current upgrade domain. Upgrade domains are identified with a zero-based index: the first upgrade domain has an ID of 0, the second has an ID of 1, and so on. 0046 * @property string $UpgradeDomainCount An integer value that indicates the number of upgrade domains in the deployment. 0047 * @property array $RoleInstanceList The list of role instances. 0048 * @property array $RoleList The list of roles. 0049 */ 0050 class Zend_Service_WindowsAzure_Management_DeploymentInstance 0051 extends Zend_Service_WindowsAzure_Management_ServiceEntityAbstract 0052 { 0053 /** 0054 * Constructor 0055 * 0056 * @param string $name The name for the deployment. This name must be unique among other deployments for the specified hosted service. 0057 * @param string $deploymentSlot The environment to which the hosted service is deployed, either staging or production. 0058 * @param string $privateID The unique identifier for this deployment. 0059 * @param string $label The label for the deployment. 0060 * @param string $url The URL for the deployment. 0061 * @param string $configuration The configuration file (XML, represented as string). 0062 * @param string $status The status of the deployment. Running, Suspended, RunningTransitioning, SuspendedTransitioning, Starting, Suspending, Deploying, Deleting. 0063 * @param string $upgradeStatus Parent node for elements describing an upgrade that is currently underway. 0064 * @param string $upgradeType The upgrade type designated for this deployment. Possible values are Auto and Manual. 0065 * @param string $currentUpgradeDomainState The state of the current upgrade domain. Possible values are Before and During. 0066 * @param string $currentUpgradeDomain An integer value that identifies the current upgrade domain. Upgrade domains are identified with a zero-based index: the first upgrade domain has an ID of 0, the second has an ID of 1, and so on. 0067 * @param string $upgradeDomainCount An integer value that indicates the number of upgrade domains in the deployment. 0068 * @param array $roleInstanceList The list of role instances. 0069 * @param array $roleList The list of roles. 0070 */ 0071 public function __construct($name, $deploymentSlot, $privateID, $label, $url, $configuration, $status, $upgradeStatus, $upgradeType, $currentUpgradeDomainState, $currentUpgradeDomain, $upgradeDomainCount, $roleInstanceList = array(), $roleList = array()) 0072 { 0073 $this->_data = array( 0074 'name' => $name, 0075 'deploymentslot' => $deploymentSlot, 0076 'privateid' => $privateID, 0077 'label' => base64_decode($label), 0078 'url' => $url, 0079 'configuration' => base64_decode($configuration), 0080 'status' => $status, 0081 'upgradestatus' => $upgradeStatus, 0082 'upgradetype' => $upgradeType, 0083 'currentupgradedomainstate' => $currentUpgradeDomainState, 0084 'currentupgradedomain' => $currentUpgradeDomain, 0085 'upgradedomaincount' => $upgradeDomainCount, 0086 'roleinstancelist' => $roleInstanceList, 0087 'rolelist' => $roleList 0088 ); 0089 } 0090 }