source: vendor/google/apiclient-services/src/Compute/HealthCheck.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 7.0 KB
Line 
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 HealthCheck extends \Google\Collection
21{
22 protected $collection_key = 'sourceRegions';
23 /**
24 * @var int
25 */
26 public $checkIntervalSec;
27 /**
28 * @var string
29 */
30 public $creationTimestamp;
31 /**
32 * @var string
33 */
34 public $description;
35 protected $grpcHealthCheckType = GRPCHealthCheck::class;
36 protected $grpcHealthCheckDataType = '';
37 /**
38 * @var int
39 */
40 public $healthyThreshold;
41 protected $http2HealthCheckType = HTTP2HealthCheck::class;
42 protected $http2HealthCheckDataType = '';
43 protected $httpHealthCheckType = HTTPHealthCheck::class;
44 protected $httpHealthCheckDataType = '';
45 protected $httpsHealthCheckType = HTTPSHealthCheck::class;
46 protected $httpsHealthCheckDataType = '';
47 /**
48 * @var string
49 */
50 public $id;
51 /**
52 * @var string
53 */
54 public $kind;
55 protected $logConfigType = HealthCheckLogConfig::class;
56 protected $logConfigDataType = '';
57 /**
58 * @var string
59 */
60 public $name;
61 /**
62 * @var string
63 */
64 public $region;
65 /**
66 * @var string
67 */
68 public $selfLink;
69 /**
70 * @var string[]
71 */
72 public $sourceRegions;
73 protected $sslHealthCheckType = SSLHealthCheck::class;
74 protected $sslHealthCheckDataType = '';
75 protected $tcpHealthCheckType = TCPHealthCheck::class;
76 protected $tcpHealthCheckDataType = '';
77 /**
78 * @var int
79 */
80 public $timeoutSec;
81 /**
82 * @var string
83 */
84 public $type;
85 /**
86 * @var int
87 */
88 public $unhealthyThreshold;
89
90 /**
91 * @param int
92 */
93 public function setCheckIntervalSec($checkIntervalSec)
94 {
95 $this->checkIntervalSec = $checkIntervalSec;
96 }
97 /**
98 * @return int
99 */
100 public function getCheckIntervalSec()
101 {
102 return $this->checkIntervalSec;
103 }
104 /**
105 * @param string
106 */
107 public function setCreationTimestamp($creationTimestamp)
108 {
109 $this->creationTimestamp = $creationTimestamp;
110 }
111 /**
112 * @return string
113 */
114 public function getCreationTimestamp()
115 {
116 return $this->creationTimestamp;
117 }
118 /**
119 * @param string
120 */
121 public function setDescription($description)
122 {
123 $this->description = $description;
124 }
125 /**
126 * @return string
127 */
128 public function getDescription()
129 {
130 return $this->description;
131 }
132 /**
133 * @param GRPCHealthCheck
134 */
135 public function setGrpcHealthCheck(GRPCHealthCheck $grpcHealthCheck)
136 {
137 $this->grpcHealthCheck = $grpcHealthCheck;
138 }
139 /**
140 * @return GRPCHealthCheck
141 */
142 public function getGrpcHealthCheck()
143 {
144 return $this->grpcHealthCheck;
145 }
146 /**
147 * @param int
148 */
149 public function setHealthyThreshold($healthyThreshold)
150 {
151 $this->healthyThreshold = $healthyThreshold;
152 }
153 /**
154 * @return int
155 */
156 public function getHealthyThreshold()
157 {
158 return $this->healthyThreshold;
159 }
160 /**
161 * @param HTTP2HealthCheck
162 */
163 public function setHttp2HealthCheck(HTTP2HealthCheck $http2HealthCheck)
164 {
165 $this->http2HealthCheck = $http2HealthCheck;
166 }
167 /**
168 * @return HTTP2HealthCheck
169 */
170 public function getHttp2HealthCheck()
171 {
172 return $this->http2HealthCheck;
173 }
174 /**
175 * @param HTTPHealthCheck
176 */
177 public function setHttpHealthCheck(HTTPHealthCheck $httpHealthCheck)
178 {
179 $this->httpHealthCheck = $httpHealthCheck;
180 }
181 /**
182 * @return HTTPHealthCheck
183 */
184 public function getHttpHealthCheck()
185 {
186 return $this->httpHealthCheck;
187 }
188 /**
189 * @param HTTPSHealthCheck
190 */
191 public function setHttpsHealthCheck(HTTPSHealthCheck $httpsHealthCheck)
192 {
193 $this->httpsHealthCheck = $httpsHealthCheck;
194 }
195 /**
196 * @return HTTPSHealthCheck
197 */
198 public function getHttpsHealthCheck()
199 {
200 return $this->httpsHealthCheck;
201 }
202 /**
203 * @param string
204 */
205 public function setId($id)
206 {
207 $this->id = $id;
208 }
209 /**
210 * @return string
211 */
212 public function getId()
213 {
214 return $this->id;
215 }
216 /**
217 * @param string
218 */
219 public function setKind($kind)
220 {
221 $this->kind = $kind;
222 }
223 /**
224 * @return string
225 */
226 public function getKind()
227 {
228 return $this->kind;
229 }
230 /**
231 * @param HealthCheckLogConfig
232 */
233 public function setLogConfig(HealthCheckLogConfig $logConfig)
234 {
235 $this->logConfig = $logConfig;
236 }
237 /**
238 * @return HealthCheckLogConfig
239 */
240 public function getLogConfig()
241 {
242 return $this->logConfig;
243 }
244 /**
245 * @param string
246 */
247 public function setName($name)
248 {
249 $this->name = $name;
250 }
251 /**
252 * @return string
253 */
254 public function getName()
255 {
256 return $this->name;
257 }
258 /**
259 * @param string
260 */
261 public function setRegion($region)
262 {
263 $this->region = $region;
264 }
265 /**
266 * @return string
267 */
268 public function getRegion()
269 {
270 return $this->region;
271 }
272 /**
273 * @param string
274 */
275 public function setSelfLink($selfLink)
276 {
277 $this->selfLink = $selfLink;
278 }
279 /**
280 * @return string
281 */
282 public function getSelfLink()
283 {
284 return $this->selfLink;
285 }
286 /**
287 * @param string[]
288 */
289 public function setSourceRegions($sourceRegions)
290 {
291 $this->sourceRegions = $sourceRegions;
292 }
293 /**
294 * @return string[]
295 */
296 public function getSourceRegions()
297 {
298 return $this->sourceRegions;
299 }
300 /**
301 * @param SSLHealthCheck
302 */
303 public function setSslHealthCheck(SSLHealthCheck $sslHealthCheck)
304 {
305 $this->sslHealthCheck = $sslHealthCheck;
306 }
307 /**
308 * @return SSLHealthCheck
309 */
310 public function getSslHealthCheck()
311 {
312 return $this->sslHealthCheck;
313 }
314 /**
315 * @param TCPHealthCheck
316 */
317 public function setTcpHealthCheck(TCPHealthCheck $tcpHealthCheck)
318 {
319 $this->tcpHealthCheck = $tcpHealthCheck;
320 }
321 /**
322 * @return TCPHealthCheck
323 */
324 public function getTcpHealthCheck()
325 {
326 return $this->tcpHealthCheck;
327 }
328 /**
329 * @param int
330 */
331 public function setTimeoutSec($timeoutSec)
332 {
333 $this->timeoutSec = $timeoutSec;
334 }
335 /**
336 * @return int
337 */
338 public function getTimeoutSec()
339 {
340 return $this->timeoutSec;
341 }
342 /**
343 * @param string
344 */
345 public function setType($type)
346 {
347 $this->type = $type;
348 }
349 /**
350 * @return string
351 */
352 public function getType()
353 {
354 return $this->type;
355 }
356 /**
357 * @param int
358 */
359 public function setUnhealthyThreshold($unhealthyThreshold)
360 {
361 $this->unhealthyThreshold = $unhealthyThreshold;
362 }
363 /**
364 * @return int
365 */
366 public function getUnhealthyThreshold()
367 {
368 return $this->unhealthyThreshold;
369 }
370}
371
372// Adding a class alias for backwards compatibility with the previous class name.
373class_alias(HealthCheck::class, 'Google_Service_Compute_HealthCheck');
Note: See TracBrowser for help on using the repository browser.