source: vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2Probe.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 3.1 KB
Line 
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 GoogleCloudRunV2Probe extends \Google\Model
21{
22 /**
23 * @var int
24 */
25 public $failureThreshold;
26 protected $grpcType = GoogleCloudRunV2GRPCAction::class;
27 protected $grpcDataType = '';
28 protected $httpGetType = GoogleCloudRunV2HTTPGetAction::class;
29 protected $httpGetDataType = '';
30 /**
31 * @var int
32 */
33 public $initialDelaySeconds;
34 /**
35 * @var int
36 */
37 public $periodSeconds;
38 protected $tcpSocketType = GoogleCloudRunV2TCPSocketAction::class;
39 protected $tcpSocketDataType = '';
40 /**
41 * @var int
42 */
43 public $timeoutSeconds;
44
45 /**
46 * @param int
47 */
48 public function setFailureThreshold($failureThreshold)
49 {
50 $this->failureThreshold = $failureThreshold;
51 }
52 /**
53 * @return int
54 */
55 public function getFailureThreshold()
56 {
57 return $this->failureThreshold;
58 }
59 /**
60 * @param GoogleCloudRunV2GRPCAction
61 */
62 public function setGrpc(GoogleCloudRunV2GRPCAction $grpc)
63 {
64 $this->grpc = $grpc;
65 }
66 /**
67 * @return GoogleCloudRunV2GRPCAction
68 */
69 public function getGrpc()
70 {
71 return $this->grpc;
72 }
73 /**
74 * @param GoogleCloudRunV2HTTPGetAction
75 */
76 public function setHttpGet(GoogleCloudRunV2HTTPGetAction $httpGet)
77 {
78 $this->httpGet = $httpGet;
79 }
80 /**
81 * @return GoogleCloudRunV2HTTPGetAction
82 */
83 public function getHttpGet()
84 {
85 return $this->httpGet;
86 }
87 /**
88 * @param int
89 */
90 public function setInitialDelaySeconds($initialDelaySeconds)
91 {
92 $this->initialDelaySeconds = $initialDelaySeconds;
93 }
94 /**
95 * @return int
96 */
97 public function getInitialDelaySeconds()
98 {
99 return $this->initialDelaySeconds;
100 }
101 /**
102 * @param int
103 */
104 public function setPeriodSeconds($periodSeconds)
105 {
106 $this->periodSeconds = $periodSeconds;
107 }
108 /**
109 * @return int
110 */
111 public function getPeriodSeconds()
112 {
113 return $this->periodSeconds;
114 }
115 /**
116 * @param GoogleCloudRunV2TCPSocketAction
117 */
118 public function setTcpSocket(GoogleCloudRunV2TCPSocketAction $tcpSocket)
119 {
120 $this->tcpSocket = $tcpSocket;
121 }
122 /**
123 * @return GoogleCloudRunV2TCPSocketAction
124 */
125 public function getTcpSocket()
126 {
127 return $this->tcpSocket;
128 }
129 /**
130 * @param int
131 */
132 public function setTimeoutSeconds($timeoutSeconds)
133 {
134 $this->timeoutSeconds = $timeoutSeconds;
135 }
136 /**
137 * @return int
138 */
139 public function getTimeoutSeconds()
140 {
141 return $this->timeoutSeconds;
142 }
143}
144
145// Adding a class alias for backwards compatibility with the previous class name.
146class_alias(GoogleCloudRunV2Probe::class, 'Google_Service_CloudRun_GoogleCloudRunV2Probe');
Note: See TracBrowser for help on using the repository browser.