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\CloudRun; 19 20class Probe extends \Google\Model 21{ 22 protected $execType = ExecAction::class; 23 protected $execDataType = ''; 24 /** 25 * @var int 26 */ 27 public $failureThreshold; 28 protected $httpGetType = HTTPGetAction::class; 29 protected $httpGetDataType = ''; 30 /** 31 * @var int 32 */ 33 public $initialDelaySeconds; 34 /** 35 * @var int 36 */ 37 public $periodSeconds; 38 /** 39 * @var int 40 */ 41 public $successThreshold; 42 protected $tcpSocketType = TCPSocketAction::class; 43 protected $tcpSocketDataType = ''; 44 /** 45 * @var int 46 */ 47 public $timeoutSeconds; 48 49 /** 50 * @param ExecAction 51 */ 52 public function setExec(ExecAction $exec) 53 { 54 $this->exec = $exec; 55 } 56 /** 57 * @return ExecAction 58 */ 59 public function getExec() 60 { 61 return $this->exec; 62 } 63 /** 64 * @param int 65 */ 66 public function setFailureThreshold($failureThreshold) 67 { 68 $this->failureThreshold = $failureThreshold; 69 } 70 /** 71 * @return int 72 */ 73 public function getFailureThreshold() 74 { 75 return $this->failureThreshold; 76 } 77 /** 78 * @param HTTPGetAction 79 */ 80 public function setHttpGet(HTTPGetAction $httpGet) 81 { 82 $this->httpGet = $httpGet; 83 } 84 /** 85 * @return HTTPGetAction 86 */ 87 public function getHttpGet() 88 { 89 return $this->httpGet; 90 } 91 /** 92 * @param int 93 */ 94 public function setInitialDelaySeconds($initialDelaySeconds) 95 { 96 $this->initialDelaySeconds = $initialDelaySeconds; 97 } 98 /** 99 * @return int 100 */ 101 public function getInitialDelaySeconds() 102 { 103 return $this->initialDelaySeconds; 104 } 105 /** 106 * @param int 107 */ 108 public function setPeriodSeconds($periodSeconds) 109 { 110 $this->periodSeconds = $periodSeconds; 111 } 112 /** 113 * @return int 114 */ 115 public function getPeriodSeconds() 116 { 117 return $this->periodSeconds; 118 } 119 /** 120 * @param int 121 */ 122 public function setSuccessThreshold($successThreshold) 123 { 124 $this->successThreshold = $successThreshold; 125 } 126 /** 127 * @return int 128 */ 129 public function getSuccessThreshold() 130 { 131 return $this->successThreshold; 132 } 133 /** 134 * @param TCPSocketAction 135 */ 136 public function setTcpSocket(TCPSocketAction $tcpSocket) 137 { 138 $this->tcpSocket = $tcpSocket; 139 } 140 /** 141 * @return TCPSocketAction 142 */ 143 public function getTcpSocket() 144 { 145 return $this->tcpSocket; 146 } 147 /** 148 * @param int 149 */ 150 public function setTimeoutSeconds($timeoutSeconds) 151 { 152 $this->timeoutSeconds = $timeoutSeconds; 153 } 154 /** 155 * @return int 156 */ 157 public function getTimeoutSeconds() 158 { 159 return $this->timeoutSeconds; 160 } 161} 162 163// Adding a class alias for backwards compatibility with the previous class name. 164class_alias(Probe::class, 'Google_Service_CloudRun_Probe'); 165