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\Monitoring;
|
---|
19 |
|
---|
20 | class HttpCheck extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'acceptedResponseStatusCodes';
|
---|
23 | protected $acceptedResponseStatusCodesType = ResponseStatusCode::class;
|
---|
24 | protected $acceptedResponseStatusCodesDataType = 'array';
|
---|
25 | protected $authInfoType = BasicAuthentication::class;
|
---|
26 | protected $authInfoDataType = '';
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $body;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $contentType;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $customContentType;
|
---|
39 | /**
|
---|
40 | * @var string[]
|
---|
41 | */
|
---|
42 | public $headers;
|
---|
43 | /**
|
---|
44 | * @var bool
|
---|
45 | */
|
---|
46 | public $maskHeaders;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $path;
|
---|
51 | protected $pingConfigType = PingConfig::class;
|
---|
52 | protected $pingConfigDataType = '';
|
---|
53 | /**
|
---|
54 | * @var int
|
---|
55 | */
|
---|
56 | public $port;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $requestMethod;
|
---|
61 | protected $serviceAgentAuthenticationType = ServiceAgentAuthentication::class;
|
---|
62 | protected $serviceAgentAuthenticationDataType = '';
|
---|
63 | /**
|
---|
64 | * @var bool
|
---|
65 | */
|
---|
66 | public $useSsl;
|
---|
67 | /**
|
---|
68 | * @var bool
|
---|
69 | */
|
---|
70 | public $validateSsl;
|
---|
71 |
|
---|
72 | /**
|
---|
73 | * @param ResponseStatusCode[]
|
---|
74 | */
|
---|
75 | public function setAcceptedResponseStatusCodes($acceptedResponseStatusCodes)
|
---|
76 | {
|
---|
77 | $this->acceptedResponseStatusCodes = $acceptedResponseStatusCodes;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @return ResponseStatusCode[]
|
---|
81 | */
|
---|
82 | public function getAcceptedResponseStatusCodes()
|
---|
83 | {
|
---|
84 | return $this->acceptedResponseStatusCodes;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @param BasicAuthentication
|
---|
88 | */
|
---|
89 | public function setAuthInfo(BasicAuthentication $authInfo)
|
---|
90 | {
|
---|
91 | $this->authInfo = $authInfo;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @return BasicAuthentication
|
---|
95 | */
|
---|
96 | public function getAuthInfo()
|
---|
97 | {
|
---|
98 | return $this->authInfo;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @param string
|
---|
102 | */
|
---|
103 | public function setBody($body)
|
---|
104 | {
|
---|
105 | $this->body = $body;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @return string
|
---|
109 | */
|
---|
110 | public function getBody()
|
---|
111 | {
|
---|
112 | return $this->body;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @param string
|
---|
116 | */
|
---|
117 | public function setContentType($contentType)
|
---|
118 | {
|
---|
119 | $this->contentType = $contentType;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @return string
|
---|
123 | */
|
---|
124 | public function getContentType()
|
---|
125 | {
|
---|
126 | return $this->contentType;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @param string
|
---|
130 | */
|
---|
131 | public function setCustomContentType($customContentType)
|
---|
132 | {
|
---|
133 | $this->customContentType = $customContentType;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @return string
|
---|
137 | */
|
---|
138 | public function getCustomContentType()
|
---|
139 | {
|
---|
140 | return $this->customContentType;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @param string[]
|
---|
144 | */
|
---|
145 | public function setHeaders($headers)
|
---|
146 | {
|
---|
147 | $this->headers = $headers;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @return string[]
|
---|
151 | */
|
---|
152 | public function getHeaders()
|
---|
153 | {
|
---|
154 | return $this->headers;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @param bool
|
---|
158 | */
|
---|
159 | public function setMaskHeaders($maskHeaders)
|
---|
160 | {
|
---|
161 | $this->maskHeaders = $maskHeaders;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @return bool
|
---|
165 | */
|
---|
166 | public function getMaskHeaders()
|
---|
167 | {
|
---|
168 | return $this->maskHeaders;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @param string
|
---|
172 | */
|
---|
173 | public function setPath($path)
|
---|
174 | {
|
---|
175 | $this->path = $path;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @return string
|
---|
179 | */
|
---|
180 | public function getPath()
|
---|
181 | {
|
---|
182 | return $this->path;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @param PingConfig
|
---|
186 | */
|
---|
187 | public function setPingConfig(PingConfig $pingConfig)
|
---|
188 | {
|
---|
189 | $this->pingConfig = $pingConfig;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @return PingConfig
|
---|
193 | */
|
---|
194 | public function getPingConfig()
|
---|
195 | {
|
---|
196 | return $this->pingConfig;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @param int
|
---|
200 | */
|
---|
201 | public function setPort($port)
|
---|
202 | {
|
---|
203 | $this->port = $port;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @return int
|
---|
207 | */
|
---|
208 | public function getPort()
|
---|
209 | {
|
---|
210 | return $this->port;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @param string
|
---|
214 | */
|
---|
215 | public function setRequestMethod($requestMethod)
|
---|
216 | {
|
---|
217 | $this->requestMethod = $requestMethod;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @return string
|
---|
221 | */
|
---|
222 | public function getRequestMethod()
|
---|
223 | {
|
---|
224 | return $this->requestMethod;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @param ServiceAgentAuthentication
|
---|
228 | */
|
---|
229 | public function setServiceAgentAuthentication(ServiceAgentAuthentication $serviceAgentAuthentication)
|
---|
230 | {
|
---|
231 | $this->serviceAgentAuthentication = $serviceAgentAuthentication;
|
---|
232 | }
|
---|
233 | /**
|
---|
234 | * @return ServiceAgentAuthentication
|
---|
235 | */
|
---|
236 | public function getServiceAgentAuthentication()
|
---|
237 | {
|
---|
238 | return $this->serviceAgentAuthentication;
|
---|
239 | }
|
---|
240 | /**
|
---|
241 | * @param bool
|
---|
242 | */
|
---|
243 | public function setUseSsl($useSsl)
|
---|
244 | {
|
---|
245 | $this->useSsl = $useSsl;
|
---|
246 | }
|
---|
247 | /**
|
---|
248 | * @return bool
|
---|
249 | */
|
---|
250 | public function getUseSsl()
|
---|
251 | {
|
---|
252 | return $this->useSsl;
|
---|
253 | }
|
---|
254 | /**
|
---|
255 | * @param bool
|
---|
256 | */
|
---|
257 | public function setValidateSsl($validateSsl)
|
---|
258 | {
|
---|
259 | $this->validateSsl = $validateSsl;
|
---|
260 | }
|
---|
261 | /**
|
---|
262 | * @return bool
|
---|
263 | */
|
---|
264 | public function getValidateSsl()
|
---|
265 | {
|
---|
266 | return $this->validateSsl;
|
---|
267 | }
|
---|
268 | }
|
---|
269 |
|
---|
270 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
271 | class_alias(HttpCheck::class, 'Google_Service_Monitoring_HttpCheck');
|
---|