Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 106 lines (95 sloc) 2.816 kb
f29c0c1 @ogail Add deleteDeployment API
ogail authored
1 <?php
2
3 /**
4 * LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category Microsoft
18 * @package WindowsAzure\ServiceManagement\Models
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
22 * @link https://github.com/windowsazure/azure-sdk-for-php
23 */
24
25 namespace WindowsAzure\ServiceManagement\Models;
26 use WindowsAzure\Common\Internal\Validate;
27 use WindowsAzure\Common\Internal\Resources;
28
29 /**
30 * The parameters to get a deployment.
31 *
32 * @category Microsoft
33 * @package WindowsAzure\ServiceManagement\Models
34 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
35 * @copyright 2012 Microsoft Corporation
36 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
b4442c7 @SergeyRazmyslov Update release date, release notes
SergeyRazmyslov authored
37 * @version Release: 0.4.1_2015-03
f29c0c1 @ogail Add deleteDeployment API
ogail authored
38 * @link https://github.com/windowsazure/azure-sdk-for-php
39 */
40 class GetDeploymentOptions
41 {
792863e @ogail Implement upgradeDeployment API
ogail authored
42 /**
43 * @var string
44 */
f29c0c1 @ogail Add deleteDeployment API
ogail authored
45 private $_slot;
46
792863e @ogail Implement upgradeDeployment API
ogail authored
47 /**
48 * @var string
49 */
f29c0c1 @ogail Add deleteDeployment API
ogail authored
50 private $_deploymentName;
51
52
53 /**
54 * Gets the deployment slot.
55 *
56 * @return string
57 */
58 public function getSlot()
59 {
60 return $this->_slot;
61 }
62
63 /**
64 * Sets the deployment slot.
65 *
66 * @param string $slot The deployment slot name.
67 *
68 * @return none
69 */
70 public function setSlot($slot)
71 {
72 Validate::isString($slot, 'slot');
73 Validate::notNullOrEmpty($slot, 'slot');
74 Validate::isTrue(
75 DeploymentSlot::isValid($slot),
76 sprintf(Resources::INVALID_SLOT, $slot)
77 );
78
79 $this->_slot = $slot;
80 }
81
82 /**
83 * Gets the deployment name.
84 *
85 * @return string
86 */
87 public function getDeploymentName()
88 {
89 return $this->_deploymentName;
90 }
91
92 /**
93 * Sets the deployment name.
94 *
e1a8746 @ogail Fix name duplication
ogail authored
95 * @param string $deploymentName The deployment name.
f29c0c1 @ogail Add deleteDeployment API
ogail authored
96 *
97 * @return none
98 */
99 public function setDeploymentName($deploymentName)
100 {
101 Validate::isString($deploymentName, 'deploymentName');
102 Validate::notNullOrEmpty($deploymentName, 'deploymentName');
103
104 $this->_deploymentName = $deploymentName;
105 }
106 }
Something went wrong with that request. Please try again.