source: vendor/google/apiclient-services/src/Compute/HttpRouteRule.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 3.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 HttpRouteRule extends \Google\Collection
21{
22 protected $collection_key = 'matchRules';
23 protected $customErrorResponsePolicyType = CustomErrorResponsePolicy::class;
24 protected $customErrorResponsePolicyDataType = '';
25 /**
26 * @var string
27 */
28 public $description;
29 protected $headerActionType = HttpHeaderAction::class;
30 protected $headerActionDataType = '';
31 protected $matchRulesType = HttpRouteRuleMatch::class;
32 protected $matchRulesDataType = 'array';
33 /**
34 * @var int
35 */
36 public $priority;
37 protected $routeActionType = HttpRouteAction::class;
38 protected $routeActionDataType = '';
39 /**
40 * @var string
41 */
42 public $service;
43 protected $urlRedirectType = HttpRedirectAction::class;
44 protected $urlRedirectDataType = '';
45
46 /**
47 * @param CustomErrorResponsePolicy
48 */
49 public function setCustomErrorResponsePolicy(CustomErrorResponsePolicy $customErrorResponsePolicy)
50 {
51 $this->customErrorResponsePolicy = $customErrorResponsePolicy;
52 }
53 /**
54 * @return CustomErrorResponsePolicy
55 */
56 public function getCustomErrorResponsePolicy()
57 {
58 return $this->customErrorResponsePolicy;
59 }
60 /**
61 * @param string
62 */
63 public function setDescription($description)
64 {
65 $this->description = $description;
66 }
67 /**
68 * @return string
69 */
70 public function getDescription()
71 {
72 return $this->description;
73 }
74 /**
75 * @param HttpHeaderAction
76 */
77 public function setHeaderAction(HttpHeaderAction $headerAction)
78 {
79 $this->headerAction = $headerAction;
80 }
81 /**
82 * @return HttpHeaderAction
83 */
84 public function getHeaderAction()
85 {
86 return $this->headerAction;
87 }
88 /**
89 * @param HttpRouteRuleMatch[]
90 */
91 public function setMatchRules($matchRules)
92 {
93 $this->matchRules = $matchRules;
94 }
95 /**
96 * @return HttpRouteRuleMatch[]
97 */
98 public function getMatchRules()
99 {
100 return $this->matchRules;
101 }
102 /**
103 * @param int
104 */
105 public function setPriority($priority)
106 {
107 $this->priority = $priority;
108 }
109 /**
110 * @return int
111 */
112 public function getPriority()
113 {
114 return $this->priority;
115 }
116 /**
117 * @param HttpRouteAction
118 */
119 public function setRouteAction(HttpRouteAction $routeAction)
120 {
121 $this->routeAction = $routeAction;
122 }
123 /**
124 * @return HttpRouteAction
125 */
126 public function getRouteAction()
127 {
128 return $this->routeAction;
129 }
130 /**
131 * @param string
132 */
133 public function setService($service)
134 {
135 $this->service = $service;
136 }
137 /**
138 * @return string
139 */
140 public function getService()
141 {
142 return $this->service;
143 }
144 /**
145 * @param HttpRedirectAction
146 */
147 public function setUrlRedirect(HttpRedirectAction $urlRedirect)
148 {
149 $this->urlRedirect = $urlRedirect;
150 }
151 /**
152 * @return HttpRedirectAction
153 */
154 public function getUrlRedirect()
155 {
156 return $this->urlRedirect;
157 }
158}
159
160// Adding a class alias for backwards compatibility with the previous class name.
161class_alias(HttpRouteRule::class, 'Google_Service_Compute_HttpRouteRule');
Note: See TracBrowser for help on using the repository browser.