TargetHttpProxy.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. namespace Google\Service\Compute;
  18. class TargetHttpProxy extends \Google\Model
  19. {
  20. /**
  21. * Output only. [Output Only] Creation timestamp inRFC3339 text format.
  22. *
  23. * @var string
  24. */
  25. public $creationTimestamp;
  26. /**
  27. * An optional description of this resource. Provide this property when you
  28. * create the resource.
  29. *
  30. * @var string
  31. */
  32. public $description;
  33. /**
  34. * Fingerprint of this resource. A hash of the contents stored in this object.
  35. * This field is used in optimistic locking. This field will be ignored when
  36. * inserting a TargetHttpProxy. An up-to-date fingerprint must be provided in
  37. * order to patch/update the TargetHttpProxy; otherwise, the request will fail
  38. * with error 412 conditionNotMet. To see the latest fingerprint, make a get()
  39. * request to retrieve the TargetHttpProxy.
  40. *
  41. * @var string
  42. */
  43. public $fingerprint;
  44. /**
  45. * Specifies how long to keep a connection open, after completing a response,
  46. * while there is no matching traffic (in seconds). If an HTTP keep-alive is
  47. * not specified, a default value (610 seconds) will be used.
  48. *
  49. * For global external Application Load Balancers, the minimum allowed value
  50. * is 5 seconds and the maximum allowed value is 1200 seconds.
  51. *
  52. * For classic Application Load Balancers, this option is not supported.
  53. *
  54. * @var int
  55. */
  56. public $httpKeepAliveTimeoutSec;
  57. /**
  58. * [Output Only] The unique identifier for the resource. This identifier is
  59. * defined by the server.
  60. *
  61. * @var string
  62. */
  63. public $id;
  64. /**
  65. * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy
  66. * for target HTTP proxies.
  67. *
  68. * @var string
  69. */
  70. public $kind;
  71. /**
  72. * Name of the resource. Provided by the client when the resource is created.
  73. * The name must be 1-63 characters long, and comply withRFC1035.
  74. * Specifically, the name must be 1-63 characters long and match the regular
  75. * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
  76. * must be a lowercase letter, and all following characters must be a dash,
  77. * lowercase letter, or digit, except the last character, which cannot be a
  78. * dash.
  79. *
  80. * @var string
  81. */
  82. public $name;
  83. /**
  84. * This field only applies when the forwarding rule that references this
  85. * target proxy has a loadBalancingScheme set toINTERNAL_SELF_MANAGED.
  86. *
  87. * When this field is set to true, Envoy proxies set up inbound traffic
  88. * interception and bind to the IP address and port specified in the
  89. * forwarding rule. This is generally useful when using Traffic Director to
  90. * configure Envoy as a gateway or middle proxy (in other words, not a sidecar
  91. * proxy). The Envoy proxy listens for inbound requests and handles requests
  92. * when it receives them.
  93. *
  94. * The default is false.
  95. *
  96. * @var bool
  97. */
  98. public $proxyBind;
  99. /**
  100. * Output only. [Output Only] URL of the region where the regional Target HTTP
  101. * Proxy resides. This field is not applicable to global Target HTTP Proxies.
  102. *
  103. * @var string
  104. */
  105. public $region;
  106. /**
  107. * [Output Only] Server-defined URL for the resource.
  108. *
  109. * @var string
  110. */
  111. public $selfLink;
  112. /**
  113. * URL to the UrlMap resource that defines the mapping from URL to the
  114. * BackendService.
  115. *
  116. * @var string
  117. */
  118. public $urlMap;
  119. /**
  120. * Output only. [Output Only] Creation timestamp inRFC3339 text format.
  121. *
  122. * @param string $creationTimestamp
  123. */
  124. public function setCreationTimestamp($creationTimestamp)
  125. {
  126. $this->creationTimestamp = $creationTimestamp;
  127. }
  128. /**
  129. * @return string
  130. */
  131. public function getCreationTimestamp()
  132. {
  133. return $this->creationTimestamp;
  134. }
  135. /**
  136. * An optional description of this resource. Provide this property when you
  137. * create the resource.
  138. *
  139. * @param string $description
  140. */
  141. public function setDescription($description)
  142. {
  143. $this->description = $description;
  144. }
  145. /**
  146. * @return string
  147. */
  148. public function getDescription()
  149. {
  150. return $this->description;
  151. }
  152. /**
  153. * Fingerprint of this resource. A hash of the contents stored in this object.
  154. * This field is used in optimistic locking. This field will be ignored when
  155. * inserting a TargetHttpProxy. An up-to-date fingerprint must be provided in
  156. * order to patch/update the TargetHttpProxy; otherwise, the request will fail
  157. * with error 412 conditionNotMet. To see the latest fingerprint, make a get()
  158. * request to retrieve the TargetHttpProxy.
  159. *
  160. * @param string $fingerprint
  161. */
  162. public function setFingerprint($fingerprint)
  163. {
  164. $this->fingerprint = $fingerprint;
  165. }
  166. /**
  167. * @return string
  168. */
  169. public function getFingerprint()
  170. {
  171. return $this->fingerprint;
  172. }
  173. /**
  174. * Specifies how long to keep a connection open, after completing a response,
  175. * while there is no matching traffic (in seconds). If an HTTP keep-alive is
  176. * not specified, a default value (610 seconds) will be used.
  177. *
  178. * For global external Application Load Balancers, the minimum allowed value
  179. * is 5 seconds and the maximum allowed value is 1200 seconds.
  180. *
  181. * For classic Application Load Balancers, this option is not supported.
  182. *
  183. * @param int $httpKeepAliveTimeoutSec
  184. */
  185. public function setHttpKeepAliveTimeoutSec($httpKeepAliveTimeoutSec)
  186. {
  187. $this->httpKeepAliveTimeoutSec = $httpKeepAliveTimeoutSec;
  188. }
  189. /**
  190. * @return int
  191. */
  192. public function getHttpKeepAliveTimeoutSec()
  193. {
  194. return $this->httpKeepAliveTimeoutSec;
  195. }
  196. /**
  197. * [Output Only] The unique identifier for the resource. This identifier is
  198. * defined by the server.
  199. *
  200. * @param string $id
  201. */
  202. public function setId($id)
  203. {
  204. $this->id = $id;
  205. }
  206. /**
  207. * @return string
  208. */
  209. public function getId()
  210. {
  211. return $this->id;
  212. }
  213. /**
  214. * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy
  215. * for target HTTP proxies.
  216. *
  217. * @param string $kind
  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. * Name of the resource. Provided by the client when the resource is created.
  232. * The name must be 1-63 characters long, and comply withRFC1035.
  233. * Specifically, the name must be 1-63 characters long and match the regular
  234. * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
  235. * must be a lowercase letter, and all following characters must be a dash,
  236. * lowercase letter, or digit, except the last character, which cannot be a
  237. * dash.
  238. *
  239. * @param string $name
  240. */
  241. public function setName($name)
  242. {
  243. $this->name = $name;
  244. }
  245. /**
  246. * @return string
  247. */
  248. public function getName()
  249. {
  250. return $this->name;
  251. }
  252. /**
  253. * This field only applies when the forwarding rule that references this
  254. * target proxy has a loadBalancingScheme set toINTERNAL_SELF_MANAGED.
  255. *
  256. * When this field is set to true, Envoy proxies set up inbound traffic
  257. * interception and bind to the IP address and port specified in the
  258. * forwarding rule. This is generally useful when using Traffic Director to
  259. * configure Envoy as a gateway or middle proxy (in other words, not a sidecar
  260. * proxy). The Envoy proxy listens for inbound requests and handles requests
  261. * when it receives them.
  262. *
  263. * The default is false.
  264. *
  265. * @param bool $proxyBind
  266. */
  267. public function setProxyBind($proxyBind)
  268. {
  269. $this->proxyBind = $proxyBind;
  270. }
  271. /**
  272. * @return bool
  273. */
  274. public function getProxyBind()
  275. {
  276. return $this->proxyBind;
  277. }
  278. /**
  279. * Output only. [Output Only] URL of the region where the regional Target HTTP
  280. * Proxy resides. This field is not applicable to global Target HTTP Proxies.
  281. *
  282. * @param string $region
  283. */
  284. public function setRegion($region)
  285. {
  286. $this->region = $region;
  287. }
  288. /**
  289. * @return string
  290. */
  291. public function getRegion()
  292. {
  293. return $this->region;
  294. }
  295. /**
  296. * [Output Only] Server-defined URL for the resource.
  297. *
  298. * @param string $selfLink
  299. */
  300. public function setSelfLink($selfLink)
  301. {
  302. $this->selfLink = $selfLink;
  303. }
  304. /**
  305. * @return string
  306. */
  307. public function getSelfLink()
  308. {
  309. return $this->selfLink;
  310. }
  311. /**
  312. * URL to the UrlMap resource that defines the mapping from URL to the
  313. * BackendService.
  314. *
  315. * @param string $urlMap
  316. */
  317. public function setUrlMap($urlMap)
  318. {
  319. $this->urlMap = $urlMap;
  320. }
  321. /**
  322. * @return string
  323. */
  324. public function getUrlMap()
  325. {
  326. return $this->urlMap;
  327. }
  328. }
  329. // Adding a class alias for backwards compatibility with the previous class name.
  330. class_alias(TargetHttpProxy::class, 'Google_Service_Compute_TargetHttpProxy');