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 Region extends \Google\Collection
21{
22  protected $collection_key = 'zones';
23  /**
24   * @var string
25   */
26  public $creationTimestamp;
27  protected $deprecatedType = DeprecationStatus::class;
28  protected $deprecatedDataType = '';
29  /**
30   * @var string
31   */
32  public $description;
33  /**
34   * @var string
35   */
36  public $id;
37  /**
38   * @var string
39   */
40  public $kind;
41  /**
42   * @var string
43   */
44  public $name;
45  protected $quotasType = Quota::class;
46  protected $quotasDataType = 'array';
47  /**
48   * @var string
49   */
50  public $selfLink;
51  /**
52   * @var string
53   */
54  public $status;
55  /**
56   * @var bool
57   */
58  public $supportsPzs;
59  /**
60   * @var string[]
61   */
62  public $zones;
63
64  /**
65   * @param string
66   */
67  public function setCreationTimestamp($creationTimestamp)
68  {
69    $this->creationTimestamp = $creationTimestamp;
70  }
71  /**
72   * @return string
73   */
74  public function getCreationTimestamp()
75  {
76    return $this->creationTimestamp;
77  }
78  /**
79   * @param DeprecationStatus
80   */
81  public function setDeprecated(DeprecationStatus $deprecated)
82  {
83    $this->deprecated = $deprecated;
84  }
85  /**
86   * @return DeprecationStatus
87   */
88  public function getDeprecated()
89  {
90    return $this->deprecated;
91  }
92  /**
93   * @param string
94   */
95  public function setDescription($description)
96  {
97    $this->description = $description;
98  }
99  /**
100   * @return string
101   */
102  public function getDescription()
103  {
104    return $this->description;
105  }
106  /**
107   * @param string
108   */
109  public function setId($id)
110  {
111    $this->id = $id;
112  }
113  /**
114   * @return string
115   */
116  public function getId()
117  {
118    return $this->id;
119  }
120  /**
121   * @param string
122   */
123  public function setKind($kind)
124  {
125    $this->kind = $kind;
126  }
127  /**
128   * @return string
129   */
130  public function getKind()
131  {
132    return $this->kind;
133  }
134  /**
135   * @param string
136   */
137  public function setName($name)
138  {
139    $this->name = $name;
140  }
141  /**
142   * @return string
143   */
144  public function getName()
145  {
146    return $this->name;
147  }
148  /**
149   * @param Quota[]
150   */
151  public function setQuotas($quotas)
152  {
153    $this->quotas = $quotas;
154  }
155  /**
156   * @return Quota[]
157   */
158  public function getQuotas()
159  {
160    return $this->quotas;
161  }
162  /**
163   * @param string
164   */
165  public function setSelfLink($selfLink)
166  {
167    $this->selfLink = $selfLink;
168  }
169  /**
170   * @return string
171   */
172  public function getSelfLink()
173  {
174    return $this->selfLink;
175  }
176  /**
177   * @param string
178   */
179  public function setStatus($status)
180  {
181    $this->status = $status;
182  }
183  /**
184   * @return string
185   */
186  public function getStatus()
187  {
188    return $this->status;
189  }
190  /**
191   * @param bool
192   */
193  public function setSupportsPzs($supportsPzs)
194  {
195    $this->supportsPzs = $supportsPzs;
196  }
197  /**
198   * @return bool
199   */
200  public function getSupportsPzs()
201  {
202    return $this->supportsPzs;
203  }
204  /**
205   * @param string[]
206   */
207  public function setZones($zones)
208  {
209    $this->zones = $zones;
210  }
211  /**
212   * @return string[]
213   */
214  public function getZones()
215  {
216    return $this->zones;
217  }
218}
219
220// Adding a class alias for backwards compatibility with the previous class name.
221class_alias(Region::class, 'Google_Service_Compute_Region');
222