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
18namespace Google\Service\Compute;
19
20class 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  protected $preservedStateFromConfigType = PreservedState::class;
44  protected $preservedStateFromConfigDataType = '';
45  protected $preservedStateFromPolicyType = PreservedState::class;
46  protected $preservedStateFromPolicyDataType = '';
47  protected $versionType = ManagedInstanceVersion::class;
48  protected $versionDataType = '';
49
50  /**
51   * @param string
52   */
53  public function setCurrentAction($currentAction)
54  {
55    $this->currentAction = $currentAction;
56  }
57  /**
58   * @return string
59   */
60  public function getCurrentAction()
61  {
62    return $this->currentAction;
63  }
64  /**
65   * @param string
66   */
67  public function setId($id)
68  {
69    $this->id = $id;
70  }
71  /**
72   * @return string
73   */
74  public function getId()
75  {
76    return $this->id;
77  }
78  /**
79   * @param string
80   */
81  public function setInstance($instance)
82  {
83    $this->instance = $instance;
84  }
85  /**
86   * @return string
87   */
88  public function getInstance()
89  {
90    return $this->instance;
91  }
92  /**
93   * @param ManagedInstanceInstanceHealth[]
94   */
95  public function setInstanceHealth($instanceHealth)
96  {
97    $this->instanceHealth = $instanceHealth;
98  }
99  /**
100   * @return ManagedInstanceInstanceHealth[]
101   */
102  public function getInstanceHealth()
103  {
104    return $this->instanceHealth;
105  }
106  /**
107   * @param string
108   */
109  public function setInstanceStatus($instanceStatus)
110  {
111    $this->instanceStatus = $instanceStatus;
112  }
113  /**
114   * @return string
115   */
116  public function getInstanceStatus()
117  {
118    return $this->instanceStatus;
119  }
120  /**
121   * @param ManagedInstanceLastAttempt
122   */
123  public function setLastAttempt(ManagedInstanceLastAttempt $lastAttempt)
124  {
125    $this->lastAttempt = $lastAttempt;
126  }
127  /**
128   * @return ManagedInstanceLastAttempt
129   */
130  public function getLastAttempt()
131  {
132    return $this->lastAttempt;
133  }
134  /**
135   * @param PreservedState
136   */
137  public function setPreservedStateFromConfig(PreservedState $preservedStateFromConfig)
138  {
139    $this->preservedStateFromConfig = $preservedStateFromConfig;
140  }
141  /**
142   * @return PreservedState
143   */
144  public function getPreservedStateFromConfig()
145  {
146    return $this->preservedStateFromConfig;
147  }
148  /**
149   * @param PreservedState
150   */
151  public function setPreservedStateFromPolicy(PreservedState $preservedStateFromPolicy)
152  {
153    $this->preservedStateFromPolicy = $preservedStateFromPolicy;
154  }
155  /**
156   * @return PreservedState
157   */
158  public function getPreservedStateFromPolicy()
159  {
160    return $this->preservedStateFromPolicy;
161  }
162  /**
163   * @param ManagedInstanceVersion
164   */
165  public function setVersion(ManagedInstanceVersion $version)
166  {
167    $this->version = $version;
168  }
169  /**
170   * @return ManagedInstanceVersion
171   */
172  public function getVersion()
173  {
174    return $this->version;
175  }
176}
177
178// Adding a class alias for backwards compatibility with the previous class name.
179class_alias(ManagedInstance::class, 'Google_Service_Compute_ManagedInstance');
180