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