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\NetworkServices;
|
---|
19 |
|
---|
20 | class HttpRouteRouteAction extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'destinations';
|
---|
23 | protected $corsPolicyType = HttpRouteCorsPolicy::class;
|
---|
24 | protected $corsPolicyDataType = '';
|
---|
25 | protected $destinationsType = HttpRouteDestination::class;
|
---|
26 | protected $destinationsDataType = 'array';
|
---|
27 | protected $directResponseType = HttpRouteHttpDirectResponse::class;
|
---|
28 | protected $directResponseDataType = '';
|
---|
29 | protected $faultInjectionPolicyType = HttpRouteFaultInjectionPolicy::class;
|
---|
30 | protected $faultInjectionPolicyDataType = '';
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $idleTimeout;
|
---|
35 | protected $redirectType = HttpRouteRedirect::class;
|
---|
36 | protected $redirectDataType = '';
|
---|
37 | protected $requestHeaderModifierType = HttpRouteHeaderModifier::class;
|
---|
38 | protected $requestHeaderModifierDataType = '';
|
---|
39 | protected $requestMirrorPolicyType = HttpRouteRequestMirrorPolicy::class;
|
---|
40 | protected $requestMirrorPolicyDataType = '';
|
---|
41 | protected $responseHeaderModifierType = HttpRouteHeaderModifier::class;
|
---|
42 | protected $responseHeaderModifierDataType = '';
|
---|
43 | protected $retryPolicyType = HttpRouteRetryPolicy::class;
|
---|
44 | protected $retryPolicyDataType = '';
|
---|
45 | protected $statefulSessionAffinityType = HttpRouteStatefulSessionAffinityPolicy::class;
|
---|
46 | protected $statefulSessionAffinityDataType = '';
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $timeout;
|
---|
51 | protected $urlRewriteType = HttpRouteURLRewrite::class;
|
---|
52 | protected $urlRewriteDataType = '';
|
---|
53 |
|
---|
54 | /**
|
---|
55 | * @param HttpRouteCorsPolicy
|
---|
56 | */
|
---|
57 | public function setCorsPolicy(HttpRouteCorsPolicy $corsPolicy)
|
---|
58 | {
|
---|
59 | $this->corsPolicy = $corsPolicy;
|
---|
60 | }
|
---|
61 | /**
|
---|
62 | * @return HttpRouteCorsPolicy
|
---|
63 | */
|
---|
64 | public function getCorsPolicy()
|
---|
65 | {
|
---|
66 | return $this->corsPolicy;
|
---|
67 | }
|
---|
68 | /**
|
---|
69 | * @param HttpRouteDestination[]
|
---|
70 | */
|
---|
71 | public function setDestinations($destinations)
|
---|
72 | {
|
---|
73 | $this->destinations = $destinations;
|
---|
74 | }
|
---|
75 | /**
|
---|
76 | * @return HttpRouteDestination[]
|
---|
77 | */
|
---|
78 | public function getDestinations()
|
---|
79 | {
|
---|
80 | return $this->destinations;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @param HttpRouteHttpDirectResponse
|
---|
84 | */
|
---|
85 | public function setDirectResponse(HttpRouteHttpDirectResponse $directResponse)
|
---|
86 | {
|
---|
87 | $this->directResponse = $directResponse;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @return HttpRouteHttpDirectResponse
|
---|
91 | */
|
---|
92 | public function getDirectResponse()
|
---|
93 | {
|
---|
94 | return $this->directResponse;
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * @param HttpRouteFaultInjectionPolicy
|
---|
98 | */
|
---|
99 | public function setFaultInjectionPolicy(HttpRouteFaultInjectionPolicy $faultInjectionPolicy)
|
---|
100 | {
|
---|
101 | $this->faultInjectionPolicy = $faultInjectionPolicy;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @return HttpRouteFaultInjectionPolicy
|
---|
105 | */
|
---|
106 | public function getFaultInjectionPolicy()
|
---|
107 | {
|
---|
108 | return $this->faultInjectionPolicy;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @param string
|
---|
112 | */
|
---|
113 | public function setIdleTimeout($idleTimeout)
|
---|
114 | {
|
---|
115 | $this->idleTimeout = $idleTimeout;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @return string
|
---|
119 | */
|
---|
120 | public function getIdleTimeout()
|
---|
121 | {
|
---|
122 | return $this->idleTimeout;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @param HttpRouteRedirect
|
---|
126 | */
|
---|
127 | public function setRedirect(HttpRouteRedirect $redirect)
|
---|
128 | {
|
---|
129 | $this->redirect = $redirect;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @return HttpRouteRedirect
|
---|
133 | */
|
---|
134 | public function getRedirect()
|
---|
135 | {
|
---|
136 | return $this->redirect;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @param HttpRouteHeaderModifier
|
---|
140 | */
|
---|
141 | public function setRequestHeaderModifier(HttpRouteHeaderModifier $requestHeaderModifier)
|
---|
142 | {
|
---|
143 | $this->requestHeaderModifier = $requestHeaderModifier;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @return HttpRouteHeaderModifier
|
---|
147 | */
|
---|
148 | public function getRequestHeaderModifier()
|
---|
149 | {
|
---|
150 | return $this->requestHeaderModifier;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @param HttpRouteRequestMirrorPolicy
|
---|
154 | */
|
---|
155 | public function setRequestMirrorPolicy(HttpRouteRequestMirrorPolicy $requestMirrorPolicy)
|
---|
156 | {
|
---|
157 | $this->requestMirrorPolicy = $requestMirrorPolicy;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @return HttpRouteRequestMirrorPolicy
|
---|
161 | */
|
---|
162 | public function getRequestMirrorPolicy()
|
---|
163 | {
|
---|
164 | return $this->requestMirrorPolicy;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @param HttpRouteHeaderModifier
|
---|
168 | */
|
---|
169 | public function setResponseHeaderModifier(HttpRouteHeaderModifier $responseHeaderModifier)
|
---|
170 | {
|
---|
171 | $this->responseHeaderModifier = $responseHeaderModifier;
|
---|
172 | }
|
---|
173 | /**
|
---|
174 | * @return HttpRouteHeaderModifier
|
---|
175 | */
|
---|
176 | public function getResponseHeaderModifier()
|
---|
177 | {
|
---|
178 | return $this->responseHeaderModifier;
|
---|
179 | }
|
---|
180 | /**
|
---|
181 | * @param HttpRouteRetryPolicy
|
---|
182 | */
|
---|
183 | public function setRetryPolicy(HttpRouteRetryPolicy $retryPolicy)
|
---|
184 | {
|
---|
185 | $this->retryPolicy = $retryPolicy;
|
---|
186 | }
|
---|
187 | /**
|
---|
188 | * @return HttpRouteRetryPolicy
|
---|
189 | */
|
---|
190 | public function getRetryPolicy()
|
---|
191 | {
|
---|
192 | return $this->retryPolicy;
|
---|
193 | }
|
---|
194 | /**
|
---|
195 | * @param HttpRouteStatefulSessionAffinityPolicy
|
---|
196 | */
|
---|
197 | public function setStatefulSessionAffinity(HttpRouteStatefulSessionAffinityPolicy $statefulSessionAffinity)
|
---|
198 | {
|
---|
199 | $this->statefulSessionAffinity = $statefulSessionAffinity;
|
---|
200 | }
|
---|
201 | /**
|
---|
202 | * @return HttpRouteStatefulSessionAffinityPolicy
|
---|
203 | */
|
---|
204 | public function getStatefulSessionAffinity()
|
---|
205 | {
|
---|
206 | return $this->statefulSessionAffinity;
|
---|
207 | }
|
---|
208 | /**
|
---|
209 | * @param string
|
---|
210 | */
|
---|
211 | public function setTimeout($timeout)
|
---|
212 | {
|
---|
213 | $this->timeout = $timeout;
|
---|
214 | }
|
---|
215 | /**
|
---|
216 | * @return string
|
---|
217 | */
|
---|
218 | public function getTimeout()
|
---|
219 | {
|
---|
220 | return $this->timeout;
|
---|
221 | }
|
---|
222 | /**
|
---|
223 | * @param HttpRouteURLRewrite
|
---|
224 | */
|
---|
225 | public function setUrlRewrite(HttpRouteURLRewrite $urlRewrite)
|
---|
226 | {
|
---|
227 | $this->urlRewrite = $urlRewrite;
|
---|
228 | }
|
---|
229 | /**
|
---|
230 | * @return HttpRouteURLRewrite
|
---|
231 | */
|
---|
232 | public function getUrlRewrite()
|
---|
233 | {
|
---|
234 | return $this->urlRewrite;
|
---|
235 | }
|
---|
236 | }
|
---|
237 |
|
---|
238 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
239 | class_alias(HttpRouteRouteAction::class, 'Google_Service_NetworkServices_HttpRouteRouteAction');
|
---|