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\Networkconnectivity;
|
---|
19 |
|
---|
20 | class PolicyBasedRoute extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'warnings';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $createTime;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $description;
|
---|
31 | protected $filterType = Filter::class;
|
---|
32 | protected $filterDataType = '';
|
---|
33 | protected $interconnectAttachmentType = InterconnectAttachment::class;
|
---|
34 | protected $interconnectAttachmentDataType = '';
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $kind;
|
---|
39 | /**
|
---|
40 | * @var string[]
|
---|
41 | */
|
---|
42 | public $labels;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $name;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $network;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $nextHopIlbIp;
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $nextHopOtherRoutes;
|
---|
59 | /**
|
---|
60 | * @var int
|
---|
61 | */
|
---|
62 | public $priority;
|
---|
63 | /**
|
---|
64 | * @var string
|
---|
65 | */
|
---|
66 | public $selfLink;
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $updateTime;
|
---|
71 | protected $virtualMachineType = VirtualMachine::class;
|
---|
72 | protected $virtualMachineDataType = '';
|
---|
73 | protected $warningsType = Warnings::class;
|
---|
74 | protected $warningsDataType = 'array';
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * @param string
|
---|
78 | */
|
---|
79 | public function setCreateTime($createTime)
|
---|
80 | {
|
---|
81 | $this->createTime = $createTime;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return string
|
---|
85 | */
|
---|
86 | public function getCreateTime()
|
---|
87 | {
|
---|
88 | return $this->createTime;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @param string
|
---|
92 | */
|
---|
93 | public function setDescription($description)
|
---|
94 | {
|
---|
95 | $this->description = $description;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @return string
|
---|
99 | */
|
---|
100 | public function getDescription()
|
---|
101 | {
|
---|
102 | return $this->description;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param Filter
|
---|
106 | */
|
---|
107 | public function setFilter(Filter $filter)
|
---|
108 | {
|
---|
109 | $this->filter = $filter;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return Filter
|
---|
113 | */
|
---|
114 | public function getFilter()
|
---|
115 | {
|
---|
116 | return $this->filter;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param InterconnectAttachment
|
---|
120 | */
|
---|
121 | public function setInterconnectAttachment(InterconnectAttachment $interconnectAttachment)
|
---|
122 | {
|
---|
123 | $this->interconnectAttachment = $interconnectAttachment;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return InterconnectAttachment
|
---|
127 | */
|
---|
128 | public function getInterconnectAttachment()
|
---|
129 | {
|
---|
130 | return $this->interconnectAttachment;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param string
|
---|
134 | */
|
---|
135 | public function setKind($kind)
|
---|
136 | {
|
---|
137 | $this->kind = $kind;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return string
|
---|
141 | */
|
---|
142 | public function getKind()
|
---|
143 | {
|
---|
144 | return $this->kind;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string[]
|
---|
148 | */
|
---|
149 | public function setLabels($labels)
|
---|
150 | {
|
---|
151 | $this->labels = $labels;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string[]
|
---|
155 | */
|
---|
156 | public function getLabels()
|
---|
157 | {
|
---|
158 | return $this->labels;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param string
|
---|
162 | */
|
---|
163 | public function setName($name)
|
---|
164 | {
|
---|
165 | $this->name = $name;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return string
|
---|
169 | */
|
---|
170 | public function getName()
|
---|
171 | {
|
---|
172 | return $this->name;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param string
|
---|
176 | */
|
---|
177 | public function setNetwork($network)
|
---|
178 | {
|
---|
179 | $this->network = $network;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return string
|
---|
183 | */
|
---|
184 | public function getNetwork()
|
---|
185 | {
|
---|
186 | return $this->network;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setNextHopIlbIp($nextHopIlbIp)
|
---|
192 | {
|
---|
193 | $this->nextHopIlbIp = $nextHopIlbIp;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getNextHopIlbIp()
|
---|
199 | {
|
---|
200 | return $this->nextHopIlbIp;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setNextHopOtherRoutes($nextHopOtherRoutes)
|
---|
206 | {
|
---|
207 | $this->nextHopOtherRoutes = $nextHopOtherRoutes;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getNextHopOtherRoutes()
|
---|
213 | {
|
---|
214 | return $this->nextHopOtherRoutes;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param int
|
---|
218 | */
|
---|
219 | public function setPriority($priority)
|
---|
220 | {
|
---|
221 | $this->priority = $priority;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return int
|
---|
225 | */
|
---|
226 | public function getPriority()
|
---|
227 | {
|
---|
228 | return $this->priority;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string
|
---|
232 | */
|
---|
233 | public function setSelfLink($selfLink)
|
---|
234 | {
|
---|
235 | $this->selfLink = $selfLink;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string
|
---|
239 | */
|
---|
240 | public function getSelfLink()
|
---|
241 | {
|
---|
242 | return $this->selfLink;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string
|
---|
246 | */
|
---|
247 | public function setUpdateTime($updateTime)
|
---|
248 | {
|
---|
249 | $this->updateTime = $updateTime;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string
|
---|
253 | */
|
---|
254 | public function getUpdateTime()
|
---|
255 | {
|
---|
256 | return $this->updateTime;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param VirtualMachine
|
---|
260 | */
|
---|
261 | public function setVirtualMachine(VirtualMachine $virtualMachine)
|
---|
262 | {
|
---|
263 | $this->virtualMachine = $virtualMachine;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return VirtualMachine
|
---|
267 | */
|
---|
268 | public function getVirtualMachine()
|
---|
269 | {
|
---|
270 | return $this->virtualMachine;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param Warnings[]
|
---|
274 | */
|
---|
275 | public function setWarnings($warnings)
|
---|
276 | {
|
---|
277 | $this->warnings = $warnings;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return Warnings[]
|
---|
281 | */
|
---|
282 | public function getWarnings()
|
---|
283 | {
|
---|
284 | return $this->warnings;
|
---|
285 | }
|
---|
286 | }
|
---|
287 |
|
---|
288 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
289 | class_alias(PolicyBasedRoute::class, 'Google_Service_Networkconnectivity_PolicyBasedRoute');
|
---|