1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Compute;
|
---|
19 |
|
---|
20 | class ManagedInstance extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'instanceHealth';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $currentAction;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $id;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $instance;
|
---|
35 | protected $instanceHealthType = ManagedInstanceInstanceHealth::class;
|
---|
36 | protected $instanceHealthDataType = 'array';
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $instanceStatus;
|
---|
41 | protected $lastAttemptType = ManagedInstanceLastAttempt::class;
|
---|
42 | protected $lastAttemptDataType = '';
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $name;
|
---|
47 | protected $preservedStateFromConfigType = PreservedState::class;
|
---|
48 | protected $preservedStateFromConfigDataType = '';
|
---|
49 | protected $preservedStateFromPolicyType = PreservedState::class;
|
---|
50 | protected $preservedStateFromPolicyDataType = '';
|
---|
51 | protected $propertiesFromFlexibilityPolicyType = ManagedInstancePropertiesFromFlexibilityPolicy::class;
|
---|
52 | protected $propertiesFromFlexibilityPolicyDataType = '';
|
---|
53 | protected $versionType = ManagedInstanceVersion::class;
|
---|
54 | protected $versionDataType = '';
|
---|
55 |
|
---|
56 | /**
|
---|
57 | * @param string
|
---|
58 | */
|
---|
59 | public function setCurrentAction($currentAction)
|
---|
60 | {
|
---|
61 | $this->currentAction = $currentAction;
|
---|
62 | }
|
---|
63 | /**
|
---|
64 | * @return string
|
---|
65 | */
|
---|
66 | public function getCurrentAction()
|
---|
67 | {
|
---|
68 | return $this->currentAction;
|
---|
69 | }
|
---|
70 | /**
|
---|
71 | * @param string
|
---|
72 | */
|
---|
73 | public function setId($id)
|
---|
74 | {
|
---|
75 | $this->id = $id;
|
---|
76 | }
|
---|
77 | /**
|
---|
78 | * @return string
|
---|
79 | */
|
---|
80 | public function getId()
|
---|
81 | {
|
---|
82 | return $this->id;
|
---|
83 | }
|
---|
84 | /**
|
---|
85 | * @param string
|
---|
86 | */
|
---|
87 | public function setInstance($instance)
|
---|
88 | {
|
---|
89 | $this->instance = $instance;
|
---|
90 | }
|
---|
91 | /**
|
---|
92 | * @return string
|
---|
93 | */
|
---|
94 | public function getInstance()
|
---|
95 | {
|
---|
96 | return $this->instance;
|
---|
97 | }
|
---|
98 | /**
|
---|
99 | * @param ManagedInstanceInstanceHealth[]
|
---|
100 | */
|
---|
101 | public function setInstanceHealth($instanceHealth)
|
---|
102 | {
|
---|
103 | $this->instanceHealth = $instanceHealth;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return ManagedInstanceInstanceHealth[]
|
---|
107 | */
|
---|
108 | public function getInstanceHealth()
|
---|
109 | {
|
---|
110 | return $this->instanceHealth;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param string
|
---|
114 | */
|
---|
115 | public function setInstanceStatus($instanceStatus)
|
---|
116 | {
|
---|
117 | $this->instanceStatus = $instanceStatus;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return string
|
---|
121 | */
|
---|
122 | public function getInstanceStatus()
|
---|
123 | {
|
---|
124 | return $this->instanceStatus;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param ManagedInstanceLastAttempt
|
---|
128 | */
|
---|
129 | public function setLastAttempt(ManagedInstanceLastAttempt $lastAttempt)
|
---|
130 | {
|
---|
131 | $this->lastAttempt = $lastAttempt;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return ManagedInstanceLastAttempt
|
---|
135 | */
|
---|
136 | public function getLastAttempt()
|
---|
137 | {
|
---|
138 | return $this->lastAttempt;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param string
|
---|
142 | */
|
---|
143 | public function setName($name)
|
---|
144 | {
|
---|
145 | $this->name = $name;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return string
|
---|
149 | */
|
---|
150 | public function getName()
|
---|
151 | {
|
---|
152 | return $this->name;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param PreservedState
|
---|
156 | */
|
---|
157 | public function setPreservedStateFromConfig(PreservedState $preservedStateFromConfig)
|
---|
158 | {
|
---|
159 | $this->preservedStateFromConfig = $preservedStateFromConfig;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return PreservedState
|
---|
163 | */
|
---|
164 | public function getPreservedStateFromConfig()
|
---|
165 | {
|
---|
166 | return $this->preservedStateFromConfig;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param PreservedState
|
---|
170 | */
|
---|
171 | public function setPreservedStateFromPolicy(PreservedState $preservedStateFromPolicy)
|
---|
172 | {
|
---|
173 | $this->preservedStateFromPolicy = $preservedStateFromPolicy;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return PreservedState
|
---|
177 | */
|
---|
178 | public function getPreservedStateFromPolicy()
|
---|
179 | {
|
---|
180 | return $this->preservedStateFromPolicy;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param ManagedInstancePropertiesFromFlexibilityPolicy
|
---|
184 | */
|
---|
185 | public function setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy $propertiesFromFlexibilityPolicy)
|
---|
186 | {
|
---|
187 | $this->propertiesFromFlexibilityPolicy = $propertiesFromFlexibilityPolicy;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return ManagedInstancePropertiesFromFlexibilityPolicy
|
---|
191 | */
|
---|
192 | public function getPropertiesFromFlexibilityPolicy()
|
---|
193 | {
|
---|
194 | return $this->propertiesFromFlexibilityPolicy;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param ManagedInstanceVersion
|
---|
198 | */
|
---|
199 | public function setVersion(ManagedInstanceVersion $version)
|
---|
200 | {
|
---|
201 | $this->version = $version;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return ManagedInstanceVersion
|
---|
205 | */
|
---|
206 | public function getVersion()
|
---|
207 | {
|
---|
208 | return $this->version;
|
---|
209 | }
|
---|
210 | }
|
---|
211 |
|
---|
212 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
213 | class_alias(ManagedInstance::class, 'Google_Service_Compute_ManagedInstance');
|
---|