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\ArtifactRegistry;
|
---|
19 |
|
---|
20 | class Repository extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $cleanupPoliciesType = CleanupPolicy::class;
|
---|
23 | protected $cleanupPoliciesDataType = 'map';
|
---|
24 | /**
|
---|
25 | * @var bool
|
---|
26 | */
|
---|
27 | public $cleanupPolicyDryRun;
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $createTime;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $description;
|
---|
36 | /**
|
---|
37 | * @var bool
|
---|
38 | */
|
---|
39 | public $disallowUnspecifiedMode;
|
---|
40 | protected $dockerConfigType = DockerRepositoryConfig::class;
|
---|
41 | protected $dockerConfigDataType = '';
|
---|
42 | /**
|
---|
43 | * @var string
|
---|
44 | */
|
---|
45 | public $format;
|
---|
46 | /**
|
---|
47 | * @var string
|
---|
48 | */
|
---|
49 | public $kmsKeyName;
|
---|
50 | /**
|
---|
51 | * @var string[]
|
---|
52 | */
|
---|
53 | public $labels;
|
---|
54 | protected $mavenConfigType = MavenRepositoryConfig::class;
|
---|
55 | protected $mavenConfigDataType = '';
|
---|
56 | /**
|
---|
57 | * @var string
|
---|
58 | */
|
---|
59 | public $mode;
|
---|
60 | /**
|
---|
61 | * @var string
|
---|
62 | */
|
---|
63 | public $name;
|
---|
64 | protected $remoteRepositoryConfigType = RemoteRepositoryConfig::class;
|
---|
65 | protected $remoteRepositoryConfigDataType = '';
|
---|
66 | /**
|
---|
67 | * @var bool
|
---|
68 | */
|
---|
69 | public $satisfiesPzi;
|
---|
70 | /**
|
---|
71 | * @var bool
|
---|
72 | */
|
---|
73 | public $satisfiesPzs;
|
---|
74 | /**
|
---|
75 | * @var string
|
---|
76 | */
|
---|
77 | public $sizeBytes;
|
---|
78 | /**
|
---|
79 | * @var string
|
---|
80 | */
|
---|
81 | public $updateTime;
|
---|
82 | protected $virtualRepositoryConfigType = VirtualRepositoryConfig::class;
|
---|
83 | protected $virtualRepositoryConfigDataType = '';
|
---|
84 | protected $vulnerabilityScanningConfigType = VulnerabilityScanningConfig::class;
|
---|
85 | protected $vulnerabilityScanningConfigDataType = '';
|
---|
86 |
|
---|
87 | /**
|
---|
88 | * @param CleanupPolicy[]
|
---|
89 | */
|
---|
90 | public function setCleanupPolicies($cleanupPolicies)
|
---|
91 | {
|
---|
92 | $this->cleanupPolicies = $cleanupPolicies;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @return CleanupPolicy[]
|
---|
96 | */
|
---|
97 | public function getCleanupPolicies()
|
---|
98 | {
|
---|
99 | return $this->cleanupPolicies;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @param bool
|
---|
103 | */
|
---|
104 | public function setCleanupPolicyDryRun($cleanupPolicyDryRun)
|
---|
105 | {
|
---|
106 | $this->cleanupPolicyDryRun = $cleanupPolicyDryRun;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @return bool
|
---|
110 | */
|
---|
111 | public function getCleanupPolicyDryRun()
|
---|
112 | {
|
---|
113 | return $this->cleanupPolicyDryRun;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @param string
|
---|
117 | */
|
---|
118 | public function setCreateTime($createTime)
|
---|
119 | {
|
---|
120 | $this->createTime = $createTime;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @return string
|
---|
124 | */
|
---|
125 | public function getCreateTime()
|
---|
126 | {
|
---|
127 | return $this->createTime;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @param string
|
---|
131 | */
|
---|
132 | public function setDescription($description)
|
---|
133 | {
|
---|
134 | $this->description = $description;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @return string
|
---|
138 | */
|
---|
139 | public function getDescription()
|
---|
140 | {
|
---|
141 | return $this->description;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @param bool
|
---|
145 | */
|
---|
146 | public function setDisallowUnspecifiedMode($disallowUnspecifiedMode)
|
---|
147 | {
|
---|
148 | $this->disallowUnspecifiedMode = $disallowUnspecifiedMode;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @return bool
|
---|
152 | */
|
---|
153 | public function getDisallowUnspecifiedMode()
|
---|
154 | {
|
---|
155 | return $this->disallowUnspecifiedMode;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * @param DockerRepositoryConfig
|
---|
159 | */
|
---|
160 | public function setDockerConfig(DockerRepositoryConfig $dockerConfig)
|
---|
161 | {
|
---|
162 | $this->dockerConfig = $dockerConfig;
|
---|
163 | }
|
---|
164 | /**
|
---|
165 | * @return DockerRepositoryConfig
|
---|
166 | */
|
---|
167 | public function getDockerConfig()
|
---|
168 | {
|
---|
169 | return $this->dockerConfig;
|
---|
170 | }
|
---|
171 | /**
|
---|
172 | * @param string
|
---|
173 | */
|
---|
174 | public function setFormat($format)
|
---|
175 | {
|
---|
176 | $this->format = $format;
|
---|
177 | }
|
---|
178 | /**
|
---|
179 | * @return string
|
---|
180 | */
|
---|
181 | public function getFormat()
|
---|
182 | {
|
---|
183 | return $this->format;
|
---|
184 | }
|
---|
185 | /**
|
---|
186 | * @param string
|
---|
187 | */
|
---|
188 | public function setKmsKeyName($kmsKeyName)
|
---|
189 | {
|
---|
190 | $this->kmsKeyName = $kmsKeyName;
|
---|
191 | }
|
---|
192 | /**
|
---|
193 | * @return string
|
---|
194 | */
|
---|
195 | public function getKmsKeyName()
|
---|
196 | {
|
---|
197 | return $this->kmsKeyName;
|
---|
198 | }
|
---|
199 | /**
|
---|
200 | * @param string[]
|
---|
201 | */
|
---|
202 | public function setLabels($labels)
|
---|
203 | {
|
---|
204 | $this->labels = $labels;
|
---|
205 | }
|
---|
206 | /**
|
---|
207 | * @return string[]
|
---|
208 | */
|
---|
209 | public function getLabels()
|
---|
210 | {
|
---|
211 | return $this->labels;
|
---|
212 | }
|
---|
213 | /**
|
---|
214 | * @param MavenRepositoryConfig
|
---|
215 | */
|
---|
216 | public function setMavenConfig(MavenRepositoryConfig $mavenConfig)
|
---|
217 | {
|
---|
218 | $this->mavenConfig = $mavenConfig;
|
---|
219 | }
|
---|
220 | /**
|
---|
221 | * @return MavenRepositoryConfig
|
---|
222 | */
|
---|
223 | public function getMavenConfig()
|
---|
224 | {
|
---|
225 | return $this->mavenConfig;
|
---|
226 | }
|
---|
227 | /**
|
---|
228 | * @param string
|
---|
229 | */
|
---|
230 | public function setMode($mode)
|
---|
231 | {
|
---|
232 | $this->mode = $mode;
|
---|
233 | }
|
---|
234 | /**
|
---|
235 | * @return string
|
---|
236 | */
|
---|
237 | public function getMode()
|
---|
238 | {
|
---|
239 | return $this->mode;
|
---|
240 | }
|
---|
241 | /**
|
---|
242 | * @param string
|
---|
243 | */
|
---|
244 | public function setName($name)
|
---|
245 | {
|
---|
246 | $this->name = $name;
|
---|
247 | }
|
---|
248 | /**
|
---|
249 | * @return string
|
---|
250 | */
|
---|
251 | public function getName()
|
---|
252 | {
|
---|
253 | return $this->name;
|
---|
254 | }
|
---|
255 | /**
|
---|
256 | * @param RemoteRepositoryConfig
|
---|
257 | */
|
---|
258 | public function setRemoteRepositoryConfig(RemoteRepositoryConfig $remoteRepositoryConfig)
|
---|
259 | {
|
---|
260 | $this->remoteRepositoryConfig = $remoteRepositoryConfig;
|
---|
261 | }
|
---|
262 | /**
|
---|
263 | * @return RemoteRepositoryConfig
|
---|
264 | */
|
---|
265 | public function getRemoteRepositoryConfig()
|
---|
266 | {
|
---|
267 | return $this->remoteRepositoryConfig;
|
---|
268 | }
|
---|
269 | /**
|
---|
270 | * @param bool
|
---|
271 | */
|
---|
272 | public function setSatisfiesPzi($satisfiesPzi)
|
---|
273 | {
|
---|
274 | $this->satisfiesPzi = $satisfiesPzi;
|
---|
275 | }
|
---|
276 | /**
|
---|
277 | * @return bool
|
---|
278 | */
|
---|
279 | public function getSatisfiesPzi()
|
---|
280 | {
|
---|
281 | return $this->satisfiesPzi;
|
---|
282 | }
|
---|
283 | /**
|
---|
284 | * @param bool
|
---|
285 | */
|
---|
286 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
287 | {
|
---|
288 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
289 | }
|
---|
290 | /**
|
---|
291 | * @return bool
|
---|
292 | */
|
---|
293 | public function getSatisfiesPzs()
|
---|
294 | {
|
---|
295 | return $this->satisfiesPzs;
|
---|
296 | }
|
---|
297 | /**
|
---|
298 | * @param string
|
---|
299 | */
|
---|
300 | public function setSizeBytes($sizeBytes)
|
---|
301 | {
|
---|
302 | $this->sizeBytes = $sizeBytes;
|
---|
303 | }
|
---|
304 | /**
|
---|
305 | * @return string
|
---|
306 | */
|
---|
307 | public function getSizeBytes()
|
---|
308 | {
|
---|
309 | return $this->sizeBytes;
|
---|
310 | }
|
---|
311 | /**
|
---|
312 | * @param string
|
---|
313 | */
|
---|
314 | public function setUpdateTime($updateTime)
|
---|
315 | {
|
---|
316 | $this->updateTime = $updateTime;
|
---|
317 | }
|
---|
318 | /**
|
---|
319 | * @return string
|
---|
320 | */
|
---|
321 | public function getUpdateTime()
|
---|
322 | {
|
---|
323 | return $this->updateTime;
|
---|
324 | }
|
---|
325 | /**
|
---|
326 | * @param VirtualRepositoryConfig
|
---|
327 | */
|
---|
328 | public function setVirtualRepositoryConfig(VirtualRepositoryConfig $virtualRepositoryConfig)
|
---|
329 | {
|
---|
330 | $this->virtualRepositoryConfig = $virtualRepositoryConfig;
|
---|
331 | }
|
---|
332 | /**
|
---|
333 | * @return VirtualRepositoryConfig
|
---|
334 | */
|
---|
335 | public function getVirtualRepositoryConfig()
|
---|
336 | {
|
---|
337 | return $this->virtualRepositoryConfig;
|
---|
338 | }
|
---|
339 | /**
|
---|
340 | * @param VulnerabilityScanningConfig
|
---|
341 | */
|
---|
342 | public function setVulnerabilityScanningConfig(VulnerabilityScanningConfig $vulnerabilityScanningConfig)
|
---|
343 | {
|
---|
344 | $this->vulnerabilityScanningConfig = $vulnerabilityScanningConfig;
|
---|
345 | }
|
---|
346 | /**
|
---|
347 | * @return VulnerabilityScanningConfig
|
---|
348 | */
|
---|
349 | public function getVulnerabilityScanningConfig()
|
---|
350 | {
|
---|
351 | return $this->vulnerabilityScanningConfig;
|
---|
352 | }
|
---|
353 | }
|
---|
354 |
|
---|
355 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
356 | class_alias(Repository::class, 'Google_Service_ArtifactRegistry_Repository');
|
---|