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\Monitoring; 19 20class HttpCheck extends \Google\Model 21{ 22 protected $authInfoType = BasicAuthentication::class; 23 protected $authInfoDataType = ''; 24 /** 25 * @var string 26 */ 27 public $body; 28 /** 29 * @var string 30 */ 31 public $contentType; 32 /** 33 * @var string[] 34 */ 35 public $headers; 36 /** 37 * @var bool 38 */ 39 public $maskHeaders; 40 /** 41 * @var string 42 */ 43 public $path; 44 /** 45 * @var int 46 */ 47 public $port; 48 /** 49 * @var string 50 */ 51 public $requestMethod; 52 /** 53 * @var bool 54 */ 55 public $useSsl; 56 /** 57 * @var bool 58 */ 59 public $validateSsl; 60 61 /** 62 * @param BasicAuthentication 63 */ 64 public function setAuthInfo(BasicAuthentication $authInfo) 65 { 66 $this->authInfo = $authInfo; 67 } 68 /** 69 * @return BasicAuthentication 70 */ 71 public function getAuthInfo() 72 { 73 return $this->authInfo; 74 } 75 /** 76 * @param string 77 */ 78 public function setBody($body) 79 { 80 $this->body = $body; 81 } 82 /** 83 * @return string 84 */ 85 public function getBody() 86 { 87 return $this->body; 88 } 89 /** 90 * @param string 91 */ 92 public function setContentType($contentType) 93 { 94 $this->contentType = $contentType; 95 } 96 /** 97 * @return string 98 */ 99 public function getContentType() 100 { 101 return $this->contentType; 102 } 103 /** 104 * @param string[] 105 */ 106 public function setHeaders($headers) 107 { 108 $this->headers = $headers; 109 } 110 /** 111 * @return string[] 112 */ 113 public function getHeaders() 114 { 115 return $this->headers; 116 } 117 /** 118 * @param bool 119 */ 120 public function setMaskHeaders($maskHeaders) 121 { 122 $this->maskHeaders = $maskHeaders; 123 } 124 /** 125 * @return bool 126 */ 127 public function getMaskHeaders() 128 { 129 return $this->maskHeaders; 130 } 131 /** 132 * @param string 133 */ 134 public function setPath($path) 135 { 136 $this->path = $path; 137 } 138 /** 139 * @return string 140 */ 141 public function getPath() 142 { 143 return $this->path; 144 } 145 /** 146 * @param int 147 */ 148 public function setPort($port) 149 { 150 $this->port = $port; 151 } 152 /** 153 * @return int 154 */ 155 public function getPort() 156 { 157 return $this->port; 158 } 159 /** 160 * @param string 161 */ 162 public function setRequestMethod($requestMethod) 163 { 164 $this->requestMethod = $requestMethod; 165 } 166 /** 167 * @return string 168 */ 169 public function getRequestMethod() 170 { 171 return $this->requestMethod; 172 } 173 /** 174 * @param bool 175 */ 176 public function setUseSsl($useSsl) 177 { 178 $this->useSsl = $useSsl; 179 } 180 /** 181 * @return bool 182 */ 183 public function getUseSsl() 184 { 185 return $this->useSsl; 186 } 187 /** 188 * @param bool 189 */ 190 public function setValidateSsl($validateSsl) 191 { 192 $this->validateSsl = $validateSsl; 193 } 194 /** 195 * @return bool 196 */ 197 public function getValidateSsl() 198 { 199 return $this->validateSsl; 200 } 201} 202 203// Adding a class alias for backwards compatibility with the previous class name. 204class_alias(HttpCheck::class, 'Google_Service_Monitoring_HttpCheck'); 205