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\Dataform;
|
---|
19 |
|
---|
20 | class Relation extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tags';
|
---|
23 | /**
|
---|
24 | * @var string[]
|
---|
25 | */
|
---|
26 | public $additionalOptions;
|
---|
27 | /**
|
---|
28 | * @var string[]
|
---|
29 | */
|
---|
30 | public $clusterExpressions;
|
---|
31 | protected $dependencyTargetsType = Target::class;
|
---|
32 | protected $dependencyTargetsDataType = 'array';
|
---|
33 | /**
|
---|
34 | * @var bool
|
---|
35 | */
|
---|
36 | public $disabled;
|
---|
37 | protected $incrementalTableConfigType = IncrementalTableConfig::class;
|
---|
38 | protected $incrementalTableConfigDataType = '';
|
---|
39 | /**
|
---|
40 | * @var int
|
---|
41 | */
|
---|
42 | public $partitionExpirationDays;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $partitionExpression;
|
---|
47 | /**
|
---|
48 | * @var string[]
|
---|
49 | */
|
---|
50 | public $postOperations;
|
---|
51 | /**
|
---|
52 | * @var string[]
|
---|
53 | */
|
---|
54 | public $preOperations;
|
---|
55 | protected $relationDescriptorType = RelationDescriptor::class;
|
---|
56 | protected $relationDescriptorDataType = '';
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $relationType;
|
---|
61 | /**
|
---|
62 | * @var bool
|
---|
63 | */
|
---|
64 | public $requirePartitionFilter;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $selectQuery;
|
---|
69 | /**
|
---|
70 | * @var string[]
|
---|
71 | */
|
---|
72 | public $tags;
|
---|
73 |
|
---|
74 | /**
|
---|
75 | * @param string[]
|
---|
76 | */
|
---|
77 | public function setAdditionalOptions($additionalOptions)
|
---|
78 | {
|
---|
79 | $this->additionalOptions = $additionalOptions;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @return string[]
|
---|
83 | */
|
---|
84 | public function getAdditionalOptions()
|
---|
85 | {
|
---|
86 | return $this->additionalOptions;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @param string[]
|
---|
90 | */
|
---|
91 | public function setClusterExpressions($clusterExpressions)
|
---|
92 | {
|
---|
93 | $this->clusterExpressions = $clusterExpressions;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @return string[]
|
---|
97 | */
|
---|
98 | public function getClusterExpressions()
|
---|
99 | {
|
---|
100 | return $this->clusterExpressions;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @param Target[]
|
---|
104 | */
|
---|
105 | public function setDependencyTargets($dependencyTargets)
|
---|
106 | {
|
---|
107 | $this->dependencyTargets = $dependencyTargets;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @return Target[]
|
---|
111 | */
|
---|
112 | public function getDependencyTargets()
|
---|
113 | {
|
---|
114 | return $this->dependencyTargets;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @param bool
|
---|
118 | */
|
---|
119 | public function setDisabled($disabled)
|
---|
120 | {
|
---|
121 | $this->disabled = $disabled;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @return bool
|
---|
125 | */
|
---|
126 | public function getDisabled()
|
---|
127 | {
|
---|
128 | return $this->disabled;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @param IncrementalTableConfig
|
---|
132 | */
|
---|
133 | public function setIncrementalTableConfig(IncrementalTableConfig $incrementalTableConfig)
|
---|
134 | {
|
---|
135 | $this->incrementalTableConfig = $incrementalTableConfig;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @return IncrementalTableConfig
|
---|
139 | */
|
---|
140 | public function getIncrementalTableConfig()
|
---|
141 | {
|
---|
142 | return $this->incrementalTableConfig;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @param int
|
---|
146 | */
|
---|
147 | public function setPartitionExpirationDays($partitionExpirationDays)
|
---|
148 | {
|
---|
149 | $this->partitionExpirationDays = $partitionExpirationDays;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @return int
|
---|
153 | */
|
---|
154 | public function getPartitionExpirationDays()
|
---|
155 | {
|
---|
156 | return $this->partitionExpirationDays;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @param string
|
---|
160 | */
|
---|
161 | public function setPartitionExpression($partitionExpression)
|
---|
162 | {
|
---|
163 | $this->partitionExpression = $partitionExpression;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @return string
|
---|
167 | */
|
---|
168 | public function getPartitionExpression()
|
---|
169 | {
|
---|
170 | return $this->partitionExpression;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @param string[]
|
---|
174 | */
|
---|
175 | public function setPostOperations($postOperations)
|
---|
176 | {
|
---|
177 | $this->postOperations = $postOperations;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @return string[]
|
---|
181 | */
|
---|
182 | public function getPostOperations()
|
---|
183 | {
|
---|
184 | return $this->postOperations;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @param string[]
|
---|
188 | */
|
---|
189 | public function setPreOperations($preOperations)
|
---|
190 | {
|
---|
191 | $this->preOperations = $preOperations;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @return string[]
|
---|
195 | */
|
---|
196 | public function getPreOperations()
|
---|
197 | {
|
---|
198 | return $this->preOperations;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @param RelationDescriptor
|
---|
202 | */
|
---|
203 | public function setRelationDescriptor(RelationDescriptor $relationDescriptor)
|
---|
204 | {
|
---|
205 | $this->relationDescriptor = $relationDescriptor;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @return RelationDescriptor
|
---|
209 | */
|
---|
210 | public function getRelationDescriptor()
|
---|
211 | {
|
---|
212 | return $this->relationDescriptor;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @param string
|
---|
216 | */
|
---|
217 | public function setRelationType($relationType)
|
---|
218 | {
|
---|
219 | $this->relationType = $relationType;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @return string
|
---|
223 | */
|
---|
224 | public function getRelationType()
|
---|
225 | {
|
---|
226 | return $this->relationType;
|
---|
227 | }
|
---|
228 | /**
|
---|
229 | * @param bool
|
---|
230 | */
|
---|
231 | public function setRequirePartitionFilter($requirePartitionFilter)
|
---|
232 | {
|
---|
233 | $this->requirePartitionFilter = $requirePartitionFilter;
|
---|
234 | }
|
---|
235 | /**
|
---|
236 | * @return bool
|
---|
237 | */
|
---|
238 | public function getRequirePartitionFilter()
|
---|
239 | {
|
---|
240 | return $this->requirePartitionFilter;
|
---|
241 | }
|
---|
242 | /**
|
---|
243 | * @param string
|
---|
244 | */
|
---|
245 | public function setSelectQuery($selectQuery)
|
---|
246 | {
|
---|
247 | $this->selectQuery = $selectQuery;
|
---|
248 | }
|
---|
249 | /**
|
---|
250 | * @return string
|
---|
251 | */
|
---|
252 | public function getSelectQuery()
|
---|
253 | {
|
---|
254 | return $this->selectQuery;
|
---|
255 | }
|
---|
256 | /**
|
---|
257 | * @param string[]
|
---|
258 | */
|
---|
259 | public function setTags($tags)
|
---|
260 | {
|
---|
261 | $this->tags = $tags;
|
---|
262 | }
|
---|
263 | /**
|
---|
264 | * @return string[]
|
---|
265 | */
|
---|
266 | public function getTags()
|
---|
267 | {
|
---|
268 | return $this->tags;
|
---|
269 | }
|
---|
270 | }
|
---|
271 |
|
---|
272 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
273 | class_alias(Relation::class, 'Google_Service_Dataform_Relation');
|
---|