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\ServiceConsumerManagement;
|
---|
19 |
|
---|
20 | class BackendRule extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $address;
|
---|
26 | public $deadline;
|
---|
27 | /**
|
---|
28 | * @var bool
|
---|
29 | */
|
---|
30 | public $disableAuth;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $jwtAudience;
|
---|
35 | public $minDeadline;
|
---|
36 | public $operationDeadline;
|
---|
37 | protected $overridesByRequestProtocolType = BackendRule::class;
|
---|
38 | protected $overridesByRequestProtocolDataType = 'map';
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $pathTranslation;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $protocol;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $selector;
|
---|
51 |
|
---|
52 | /**
|
---|
53 | * @param string
|
---|
54 | */
|
---|
55 | public function setAddress($address)
|
---|
56 | {
|
---|
57 | $this->address = $address;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @return string
|
---|
61 | */
|
---|
62 | public function getAddress()
|
---|
63 | {
|
---|
64 | return $this->address;
|
---|
65 | }
|
---|
66 | public function setDeadline($deadline)
|
---|
67 | {
|
---|
68 | $this->deadline = $deadline;
|
---|
69 | }
|
---|
70 | public function getDeadline()
|
---|
71 | {
|
---|
72 | return $this->deadline;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @param bool
|
---|
76 | */
|
---|
77 | public function setDisableAuth($disableAuth)
|
---|
78 | {
|
---|
79 | $this->disableAuth = $disableAuth;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @return bool
|
---|
83 | */
|
---|
84 | public function getDisableAuth()
|
---|
85 | {
|
---|
86 | return $this->disableAuth;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @param string
|
---|
90 | */
|
---|
91 | public function setJwtAudience($jwtAudience)
|
---|
92 | {
|
---|
93 | $this->jwtAudience = $jwtAudience;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @return string
|
---|
97 | */
|
---|
98 | public function getJwtAudience()
|
---|
99 | {
|
---|
100 | return $this->jwtAudience;
|
---|
101 | }
|
---|
102 | public function setMinDeadline($minDeadline)
|
---|
103 | {
|
---|
104 | $this->minDeadline = $minDeadline;
|
---|
105 | }
|
---|
106 | public function getMinDeadline()
|
---|
107 | {
|
---|
108 | return $this->minDeadline;
|
---|
109 | }
|
---|
110 | public function setOperationDeadline($operationDeadline)
|
---|
111 | {
|
---|
112 | $this->operationDeadline = $operationDeadline;
|
---|
113 | }
|
---|
114 | public function getOperationDeadline()
|
---|
115 | {
|
---|
116 | return $this->operationDeadline;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param BackendRule[]
|
---|
120 | */
|
---|
121 | public function setOverridesByRequestProtocol($overridesByRequestProtocol)
|
---|
122 | {
|
---|
123 | $this->overridesByRequestProtocol = $overridesByRequestProtocol;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return BackendRule[]
|
---|
127 | */
|
---|
128 | public function getOverridesByRequestProtocol()
|
---|
129 | {
|
---|
130 | return $this->overridesByRequestProtocol;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param string
|
---|
134 | */
|
---|
135 | public function setPathTranslation($pathTranslation)
|
---|
136 | {
|
---|
137 | $this->pathTranslation = $pathTranslation;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return string
|
---|
141 | */
|
---|
142 | public function getPathTranslation()
|
---|
143 | {
|
---|
144 | return $this->pathTranslation;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setProtocol($protocol)
|
---|
150 | {
|
---|
151 | $this->protocol = $protocol;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getProtocol()
|
---|
157 | {
|
---|
158 | return $this->protocol;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param string
|
---|
162 | */
|
---|
163 | public function setSelector($selector)
|
---|
164 | {
|
---|
165 | $this->selector = $selector;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return string
|
---|
169 | */
|
---|
170 | public function getSelector()
|
---|
171 | {
|
---|
172 | return $this->selector;
|
---|
173 | }
|
---|
174 | }
|
---|
175 |
|
---|
176 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
177 | class_alias(BackendRule::class, 'Google_Service_ServiceConsumerManagement_BackendRule');
|
---|