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 Firewall extends \Google\Collection
21{
22  protected $collection_key = 'targetTags';
23  protected $allowedType = FirewallAllowed::class;
24  protected $allowedDataType = 'array';
25  /**
26   * @var string
27   */
28  public $creationTimestamp;
29  protected $deniedType = FirewallDenied::class;
30  protected $deniedDataType = 'array';
31  /**
32   * @var string
33   */
34  public $description;
35  /**
36   * @var string[]
37   */
38  public $destinationRanges;
39  /**
40   * @var string
41   */
42  public $direction;
43  /**
44   * @var bool
45   */
46  public $disabled;
47  /**
48   * @var string
49   */
50  public $id;
51  /**
52   * @var string
53   */
54  public $kind;
55  protected $logConfigType = FirewallLogConfig::class;
56  protected $logConfigDataType = '';
57  /**
58   * @var string
59   */
60  public $name;
61  /**
62   * @var string
63   */
64  public $network;
65  /**
66   * @var int
67   */
68  public $priority;
69  /**
70   * @var string
71   */
72  public $selfLink;
73  /**
74   * @var string[]
75   */
76  public $sourceRanges;
77  /**
78   * @var string[]
79   */
80  public $sourceServiceAccounts;
81  /**
82   * @var string[]
83   */
84  public $sourceTags;
85  /**
86   * @var string[]
87   */
88  public $targetServiceAccounts;
89  /**
90   * @var string[]
91   */
92  public $targetTags;
93
94  /**
95   * @param FirewallAllowed[]
96   */
97  public function setAllowed($allowed)
98  {
99    $this->allowed = $allowed;
100  }
101  /**
102   * @return FirewallAllowed[]
103   */
104  public function getAllowed()
105  {
106    return $this->allowed;
107  }
108  /**
109   * @param string
110   */
111  public function setCreationTimestamp($creationTimestamp)
112  {
113    $this->creationTimestamp = $creationTimestamp;
114  }
115  /**
116   * @return string
117   */
118  public function getCreationTimestamp()
119  {
120    return $this->creationTimestamp;
121  }
122  /**
123   * @param FirewallDenied[]
124   */
125  public function setDenied($denied)
126  {
127    $this->denied = $denied;
128  }
129  /**
130   * @return FirewallDenied[]
131   */
132  public function getDenied()
133  {
134    return $this->denied;
135  }
136  /**
137   * @param string
138   */
139  public function setDescription($description)
140  {
141    $this->description = $description;
142  }
143  /**
144   * @return string
145   */
146  public function getDescription()
147  {
148    return $this->description;
149  }
150  /**
151   * @param string[]
152   */
153  public function setDestinationRanges($destinationRanges)
154  {
155    $this->destinationRanges = $destinationRanges;
156  }
157  /**
158   * @return string[]
159   */
160  public function getDestinationRanges()
161  {
162    return $this->destinationRanges;
163  }
164  /**
165   * @param string
166   */
167  public function setDirection($direction)
168  {
169    $this->direction = $direction;
170  }
171  /**
172   * @return string
173   */
174  public function getDirection()
175  {
176    return $this->direction;
177  }
178  /**
179   * @param bool
180   */
181  public function setDisabled($disabled)
182  {
183    $this->disabled = $disabled;
184  }
185  /**
186   * @return bool
187   */
188  public function getDisabled()
189  {
190    return $this->disabled;
191  }
192  /**
193   * @param string
194   */
195  public function setId($id)
196  {
197    $this->id = $id;
198  }
199  /**
200   * @return string
201   */
202  public function getId()
203  {
204    return $this->id;
205  }
206  /**
207   * @param string
208   */
209  public function setKind($kind)
210  {
211    $this->kind = $kind;
212  }
213  /**
214   * @return string
215   */
216  public function getKind()
217  {
218    return $this->kind;
219  }
220  /**
221   * @param FirewallLogConfig
222   */
223  public function setLogConfig(FirewallLogConfig $logConfig)
224  {
225    $this->logConfig = $logConfig;
226  }
227  /**
228   * @return FirewallLogConfig
229   */
230  public function getLogConfig()
231  {
232    return $this->logConfig;
233  }
234  /**
235   * @param string
236   */
237  public function setName($name)
238  {
239    $this->name = $name;
240  }
241  /**
242   * @return string
243   */
244  public function getName()
245  {
246    return $this->name;
247  }
248  /**
249   * @param string
250   */
251  public function setNetwork($network)
252  {
253    $this->network = $network;
254  }
255  /**
256   * @return string
257   */
258  public function getNetwork()
259  {
260    return $this->network;
261  }
262  /**
263   * @param int
264   */
265  public function setPriority($priority)
266  {
267    $this->priority = $priority;
268  }
269  /**
270   * @return int
271   */
272  public function getPriority()
273  {
274    return $this->priority;
275  }
276  /**
277   * @param string
278   */
279  public function setSelfLink($selfLink)
280  {
281    $this->selfLink = $selfLink;
282  }
283  /**
284   * @return string
285   */
286  public function getSelfLink()
287  {
288    return $this->selfLink;
289  }
290  /**
291   * @param string[]
292   */
293  public function setSourceRanges($sourceRanges)
294  {
295    $this->sourceRanges = $sourceRanges;
296  }
297  /**
298   * @return string[]
299   */
300  public function getSourceRanges()
301  {
302    return $this->sourceRanges;
303  }
304  /**
305   * @param string[]
306   */
307  public function setSourceServiceAccounts($sourceServiceAccounts)
308  {
309    $this->sourceServiceAccounts = $sourceServiceAccounts;
310  }
311  /**
312   * @return string[]
313   */
314  public function getSourceServiceAccounts()
315  {
316    return $this->sourceServiceAccounts;
317  }
318  /**
319   * @param string[]
320   */
321  public function setSourceTags($sourceTags)
322  {
323    $this->sourceTags = $sourceTags;
324  }
325  /**
326   * @return string[]
327   */
328  public function getSourceTags()
329  {
330    return $this->sourceTags;
331  }
332  /**
333   * @param string[]
334   */
335  public function setTargetServiceAccounts($targetServiceAccounts)
336  {
337    $this->targetServiceAccounts = $targetServiceAccounts;
338  }
339  /**
340   * @return string[]
341   */
342  public function getTargetServiceAccounts()
343  {
344    return $this->targetServiceAccounts;
345  }
346  /**
347   * @param string[]
348   */
349  public function setTargetTags($targetTags)
350  {
351    $this->targetTags = $targetTags;
352  }
353  /**
354   * @return string[]
355   */
356  public function getTargetTags()
357  {
358    return $this->targetTags;
359  }
360}
361
362// Adding a class alias for backwards compatibility with the previous class name.
363class_alias(Firewall::class, 'Google_Service_Compute_Firewall');
364