source: vendor/google/apiclient-services/src/Compute/Backend.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 4.6 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\Compute;
19
20class Backend extends \Google\Model
21{
22 /**
23 * @var string
24 */
25 public $balancingMode;
26 /**
27 * @var float
28 */
29 public $capacityScaler;
30 /**
31 * @var string
32 */
33 public $description;
34 /**
35 * @var bool
36 */
37 public $failover;
38 /**
39 * @var string
40 */
41 public $group;
42 /**
43 * @var int
44 */
45 public $maxConnections;
46 /**
47 * @var int
48 */
49 public $maxConnectionsPerEndpoint;
50 /**
51 * @var int
52 */
53 public $maxConnectionsPerInstance;
54 /**
55 * @var int
56 */
57 public $maxRate;
58 /**
59 * @var float
60 */
61 public $maxRatePerEndpoint;
62 /**
63 * @var float
64 */
65 public $maxRatePerInstance;
66 /**
67 * @var float
68 */
69 public $maxUtilization;
70 /**
71 * @var string
72 */
73 public $preference;
74
75 /**
76 * @param string
77 */
78 public function setBalancingMode($balancingMode)
79 {
80 $this->balancingMode = $balancingMode;
81 }
82 /**
83 * @return string
84 */
85 public function getBalancingMode()
86 {
87 return $this->balancingMode;
88 }
89 /**
90 * @param float
91 */
92 public function setCapacityScaler($capacityScaler)
93 {
94 $this->capacityScaler = $capacityScaler;
95 }
96 /**
97 * @return float
98 */
99 public function getCapacityScaler()
100 {
101 return $this->capacityScaler;
102 }
103 /**
104 * @param string
105 */
106 public function setDescription($description)
107 {
108 $this->description = $description;
109 }
110 /**
111 * @return string
112 */
113 public function getDescription()
114 {
115 return $this->description;
116 }
117 /**
118 * @param bool
119 */
120 public function setFailover($failover)
121 {
122 $this->failover = $failover;
123 }
124 /**
125 * @return bool
126 */
127 public function getFailover()
128 {
129 return $this->failover;
130 }
131 /**
132 * @param string
133 */
134 public function setGroup($group)
135 {
136 $this->group = $group;
137 }
138 /**
139 * @return string
140 */
141 public function getGroup()
142 {
143 return $this->group;
144 }
145 /**
146 * @param int
147 */
148 public function setMaxConnections($maxConnections)
149 {
150 $this->maxConnections = $maxConnections;
151 }
152 /**
153 * @return int
154 */
155 public function getMaxConnections()
156 {
157 return $this->maxConnections;
158 }
159 /**
160 * @param int
161 */
162 public function setMaxConnectionsPerEndpoint($maxConnectionsPerEndpoint)
163 {
164 $this->maxConnectionsPerEndpoint = $maxConnectionsPerEndpoint;
165 }
166 /**
167 * @return int
168 */
169 public function getMaxConnectionsPerEndpoint()
170 {
171 return $this->maxConnectionsPerEndpoint;
172 }
173 /**
174 * @param int
175 */
176 public function setMaxConnectionsPerInstance($maxConnectionsPerInstance)
177 {
178 $this->maxConnectionsPerInstance = $maxConnectionsPerInstance;
179 }
180 /**
181 * @return int
182 */
183 public function getMaxConnectionsPerInstance()
184 {
185 return $this->maxConnectionsPerInstance;
186 }
187 /**
188 * @param int
189 */
190 public function setMaxRate($maxRate)
191 {
192 $this->maxRate = $maxRate;
193 }
194 /**
195 * @return int
196 */
197 public function getMaxRate()
198 {
199 return $this->maxRate;
200 }
201 /**
202 * @param float
203 */
204 public function setMaxRatePerEndpoint($maxRatePerEndpoint)
205 {
206 $this->maxRatePerEndpoint = $maxRatePerEndpoint;
207 }
208 /**
209 * @return float
210 */
211 public function getMaxRatePerEndpoint()
212 {
213 return $this->maxRatePerEndpoint;
214 }
215 /**
216 * @param float
217 */
218 public function setMaxRatePerInstance($maxRatePerInstance)
219 {
220 $this->maxRatePerInstance = $maxRatePerInstance;
221 }
222 /**
223 * @return float
224 */
225 public function getMaxRatePerInstance()
226 {
227 return $this->maxRatePerInstance;
228 }
229 /**
230 * @param float
231 */
232 public function setMaxUtilization($maxUtilization)
233 {
234 $this->maxUtilization = $maxUtilization;
235 }
236 /**
237 * @return float
238 */
239 public function getMaxUtilization()
240 {
241 return $this->maxUtilization;
242 }
243 /**
244 * @param string
245 */
246 public function setPreference($preference)
247 {
248 $this->preference = $preference;
249 }
250 /**
251 * @return string
252 */
253 public function getPreference()
254 {
255 return $this->preference;
256 }
257}
258
259// Adding a class alias for backwards compatibility with the previous class name.
260class_alias(Backend::class, 'Google_Service_Compute_Backend');
Note: See TracBrowser for help on using the repository browser.