|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Service_WindowsAzure |
|
17 * @subpackage Management |
|
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id$ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * @see Zend_Service_WindowsAzure_Management_ServiceEntityAbstract |
|
25 */ |
|
26 require_once 'Zend/Service/WindowsAzure/Management/ServiceEntityAbstract.php'; |
|
27 |
|
28 /** |
|
29 * @category Zend |
|
30 * @package Zend_Service_WindowsAzure |
|
31 * @subpackage Management |
|
32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
|
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
34 * |
|
35 * @property string $Name The name for the deployment. This name must be unique among other deployments for the specified hosted service. |
|
36 * @property string $DeploymentSlot The environment to which the hosted service is deployed, either staging or production. |
|
37 * @property string $PrivateID The unique identifier for this deployment. |
|
38 * @property string $Label The label for the deployment. |
|
39 * @property string $Url The URL for the deployment. |
|
40 * @property string $Configuration The configuration file (XML, represented as string). |
|
41 * @property string $Status The status of the deployment. Running, Suspended, RunningTransitioning, SuspendedTransitioning, Starting, Suspending, Deploying, Deleting. |
|
42 * @property string $UpgradeStatus Parent node for elements describing an upgrade that is currently underway. |
|
43 * @property string $UpgradeType The upgrade type designated for this deployment. Possible values are Auto and Manual. |
|
44 * @property string $CurrentUpgradeDomainState The state of the current upgrade domain. Possible values are Before and During. |
|
45 * @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. |
|
46 * @property string $UpgradeDomainCount An integer value that indicates the number of upgrade domains in the deployment. |
|
47 * @property array $RoleInstanceList The list of role instances. |
|
48 * @property array $RoleList The list of roles. |
|
49 */ |
|
50 class Zend_Service_WindowsAzure_Management_DeploymentInstance |
|
51 extends Zend_Service_WindowsAzure_Management_ServiceEntityAbstract |
|
52 { |
|
53 /** |
|
54 * Constructor |
|
55 * |
|
56 * @param string $name The name for the deployment. This name must be unique among other deployments for the specified hosted service. |
|
57 * @param string $deploymentSlot The environment to which the hosted service is deployed, either staging or production. |
|
58 * @param string $privateID The unique identifier for this deployment. |
|
59 * @param string $label The label for the deployment. |
|
60 * @param string $url The URL for the deployment. |
|
61 * @param string $configuration The configuration file (XML, represented as string). |
|
62 * @param string $status The status of the deployment. Running, Suspended, RunningTransitioning, SuspendedTransitioning, Starting, Suspending, Deploying, Deleting. |
|
63 * @param string $upgradeStatus Parent node for elements describing an upgrade that is currently underway. |
|
64 * @param string $upgradeType The upgrade type designated for this deployment. Possible values are Auto and Manual. |
|
65 * @param string $currentUpgradeDomainState The state of the current upgrade domain. Possible values are Before and During. |
|
66 * @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. |
|
67 * @param string $upgradeDomainCount An integer value that indicates the number of upgrade domains in the deployment. |
|
68 * @param array $roleInstanceList The list of role instances. |
|
69 * @param array $roleList The list of roles. |
|
70 */ |
|
71 public function __construct($name, $deploymentSlot, $privateID, $label, $url, $configuration, $status, $upgradeStatus, $upgradeType, $currentUpgradeDomainState, $currentUpgradeDomain, $upgradeDomainCount, $roleInstanceList = array(), $roleList = array()) |
|
72 { |
|
73 $this->_data = array( |
|
74 'name' => $name, |
|
75 'deploymentslot' => $deploymentSlot, |
|
76 'privateid' => $privateID, |
|
77 'label' => base64_decode($label), |
|
78 'url' => $url, |
|
79 'configuration' => base64_decode($configuration), |
|
80 'status' => $status, |
|
81 'upgradestatus' => $upgradeStatus, |
|
82 'upgradetype' => $upgradeType, |
|
83 'currentupgradedomainstate' => $currentUpgradeDomainState, |
|
84 'currentupgradedomain' => $currentUpgradeDomain, |
|
85 'upgradedomaincount' => $upgradeDomainCount, |
|
86 'roleinstancelist' => $roleInstanceList, |
|
87 'rolelist' => $roleList |
|
88 ); |
|
89 } |
|
90 } |