source: vendor/google/apiclient-services/src/Storage/Bucket.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 12.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\Storage;
19
20class Bucket extends \Google\Collection
21{
22 protected $collection_key = 'defaultObjectAcl';
23 protected $aclType = BucketAccessControl::class;
24 protected $aclDataType = 'array';
25 protected $autoclassType = BucketAutoclass::class;
26 protected $autoclassDataType = '';
27 protected $billingType = BucketBilling::class;
28 protected $billingDataType = '';
29 protected $corsType = BucketCors::class;
30 protected $corsDataType = 'array';
31 protected $customPlacementConfigType = BucketCustomPlacementConfig::class;
32 protected $customPlacementConfigDataType = '';
33 /**
34 * @var bool
35 */
36 public $defaultEventBasedHold;
37 protected $defaultObjectAclType = ObjectAccessControl::class;
38 protected $defaultObjectAclDataType = 'array';
39 protected $encryptionType = BucketEncryption::class;
40 protected $encryptionDataType = '';
41 /**
42 * @var string
43 */
44 public $etag;
45 /**
46 * @var string
47 */
48 public $generation;
49 /**
50 * @var string
51 */
52 public $hardDeleteTime;
53 protected $hierarchicalNamespaceType = BucketHierarchicalNamespace::class;
54 protected $hierarchicalNamespaceDataType = '';
55 protected $iamConfigurationType = BucketIamConfiguration::class;
56 protected $iamConfigurationDataType = '';
57 /**
58 * @var string
59 */
60 public $id;
61 protected $ipFilterType = BucketIpFilter::class;
62 protected $ipFilterDataType = '';
63 /**
64 * @var string
65 */
66 public $kind;
67 /**
68 * @var string[]
69 */
70 public $labels;
71 protected $lifecycleType = BucketLifecycle::class;
72 protected $lifecycleDataType = '';
73 /**
74 * @var string
75 */
76 public $location;
77 /**
78 * @var string
79 */
80 public $locationType;
81 protected $loggingType = BucketLogging::class;
82 protected $loggingDataType = '';
83 /**
84 * @var string
85 */
86 public $metageneration;
87 /**
88 * @var string
89 */
90 public $name;
91 protected $objectRetentionType = BucketObjectRetention::class;
92 protected $objectRetentionDataType = '';
93 protected $ownerType = BucketOwner::class;
94 protected $ownerDataType = '';
95 /**
96 * @var string
97 */
98 public $projectNumber;
99 protected $retentionPolicyType = BucketRetentionPolicy::class;
100 protected $retentionPolicyDataType = '';
101 /**
102 * @var string
103 */
104 public $rpo;
105 /**
106 * @var bool
107 */
108 public $satisfiesPZI;
109 /**
110 * @var bool
111 */
112 public $satisfiesPZS;
113 /**
114 * @var string
115 */
116 public $selfLink;
117 protected $softDeletePolicyType = BucketSoftDeletePolicy::class;
118 protected $softDeletePolicyDataType = '';
119 /**
120 * @var string
121 */
122 public $softDeleteTime;
123 /**
124 * @var string
125 */
126 public $storageClass;
127 /**
128 * @var string
129 */
130 public $timeCreated;
131 /**
132 * @var string
133 */
134 public $updated;
135 protected $versioningType = BucketVersioning::class;
136 protected $versioningDataType = '';
137 protected $websiteType = BucketWebsite::class;
138 protected $websiteDataType = '';
139
140 /**
141 * @param BucketAccessControl[]
142 */
143 public function setAcl($acl)
144 {
145 $this->acl = $acl;
146 }
147 /**
148 * @return BucketAccessControl[]
149 */
150 public function getAcl()
151 {
152 return $this->acl;
153 }
154 /**
155 * @param BucketAutoclass
156 */
157 public function setAutoclass(BucketAutoclass $autoclass)
158 {
159 $this->autoclass = $autoclass;
160 }
161 /**
162 * @return BucketAutoclass
163 */
164 public function getAutoclass()
165 {
166 return $this->autoclass;
167 }
168 /**
169 * @param BucketBilling
170 */
171 public function setBilling(BucketBilling $billing)
172 {
173 $this->billing = $billing;
174 }
175 /**
176 * @return BucketBilling
177 */
178 public function getBilling()
179 {
180 return $this->billing;
181 }
182 /**
183 * @param BucketCors[]
184 */
185 public function setCors($cors)
186 {
187 $this->cors = $cors;
188 }
189 /**
190 * @return BucketCors[]
191 */
192 public function getCors()
193 {
194 return $this->cors;
195 }
196 /**
197 * @param BucketCustomPlacementConfig
198 */
199 public function setCustomPlacementConfig(BucketCustomPlacementConfig $customPlacementConfig)
200 {
201 $this->customPlacementConfig = $customPlacementConfig;
202 }
203 /**
204 * @return BucketCustomPlacementConfig
205 */
206 public function getCustomPlacementConfig()
207 {
208 return $this->customPlacementConfig;
209 }
210 /**
211 * @param bool
212 */
213 public function setDefaultEventBasedHold($defaultEventBasedHold)
214 {
215 $this->defaultEventBasedHold = $defaultEventBasedHold;
216 }
217 /**
218 * @return bool
219 */
220 public function getDefaultEventBasedHold()
221 {
222 return $this->defaultEventBasedHold;
223 }
224 /**
225 * @param ObjectAccessControl[]
226 */
227 public function setDefaultObjectAcl($defaultObjectAcl)
228 {
229 $this->defaultObjectAcl = $defaultObjectAcl;
230 }
231 /**
232 * @return ObjectAccessControl[]
233 */
234 public function getDefaultObjectAcl()
235 {
236 return $this->defaultObjectAcl;
237 }
238 /**
239 * @param BucketEncryption
240 */
241 public function setEncryption(BucketEncryption $encryption)
242 {
243 $this->encryption = $encryption;
244 }
245 /**
246 * @return BucketEncryption
247 */
248 public function getEncryption()
249 {
250 return $this->encryption;
251 }
252 /**
253 * @param string
254 */
255 public function setEtag($etag)
256 {
257 $this->etag = $etag;
258 }
259 /**
260 * @return string
261 */
262 public function getEtag()
263 {
264 return $this->etag;
265 }
266 /**
267 * @param string
268 */
269 public function setGeneration($generation)
270 {
271 $this->generation = $generation;
272 }
273 /**
274 * @return string
275 */
276 public function getGeneration()
277 {
278 return $this->generation;
279 }
280 /**
281 * @param string
282 */
283 public function setHardDeleteTime($hardDeleteTime)
284 {
285 $this->hardDeleteTime = $hardDeleteTime;
286 }
287 /**
288 * @return string
289 */
290 public function getHardDeleteTime()
291 {
292 return $this->hardDeleteTime;
293 }
294 /**
295 * @param BucketHierarchicalNamespace
296 */
297 public function setHierarchicalNamespace(BucketHierarchicalNamespace $hierarchicalNamespace)
298 {
299 $this->hierarchicalNamespace = $hierarchicalNamespace;
300 }
301 /**
302 * @return BucketHierarchicalNamespace
303 */
304 public function getHierarchicalNamespace()
305 {
306 return $this->hierarchicalNamespace;
307 }
308 /**
309 * @param BucketIamConfiguration
310 */
311 public function setIamConfiguration(BucketIamConfiguration $iamConfiguration)
312 {
313 $this->iamConfiguration = $iamConfiguration;
314 }
315 /**
316 * @return BucketIamConfiguration
317 */
318 public function getIamConfiguration()
319 {
320 return $this->iamConfiguration;
321 }
322 /**
323 * @param string
324 */
325 public function setId($id)
326 {
327 $this->id = $id;
328 }
329 /**
330 * @return string
331 */
332 public function getId()
333 {
334 return $this->id;
335 }
336 /**
337 * @param BucketIpFilter
338 */
339 public function setIpFilter(BucketIpFilter $ipFilter)
340 {
341 $this->ipFilter = $ipFilter;
342 }
343 /**
344 * @return BucketIpFilter
345 */
346 public function getIpFilter()
347 {
348 return $this->ipFilter;
349 }
350 /**
351 * @param string
352 */
353 public function setKind($kind)
354 {
355 $this->kind = $kind;
356 }
357 /**
358 * @return string
359 */
360 public function getKind()
361 {
362 return $this->kind;
363 }
364 /**
365 * @param string[]
366 */
367 public function setLabels($labels)
368 {
369 $this->labels = $labels;
370 }
371 /**
372 * @return string[]
373 */
374 public function getLabels()
375 {
376 return $this->labels;
377 }
378 /**
379 * @param BucketLifecycle
380 */
381 public function setLifecycle(BucketLifecycle $lifecycle)
382 {
383 $this->lifecycle = $lifecycle;
384 }
385 /**
386 * @return BucketLifecycle
387 */
388 public function getLifecycle()
389 {
390 return $this->lifecycle;
391 }
392 /**
393 * @param string
394 */
395 public function setLocation($location)
396 {
397 $this->location = $location;
398 }
399 /**
400 * @return string
401 */
402 public function getLocation()
403 {
404 return $this->location;
405 }
406 /**
407 * @param string
408 */
409 public function setLocationType($locationType)
410 {
411 $this->locationType = $locationType;
412 }
413 /**
414 * @return string
415 */
416 public function getLocationType()
417 {
418 return $this->locationType;
419 }
420 /**
421 * @param BucketLogging
422 */
423 public function setLogging(BucketLogging $logging)
424 {
425 $this->logging = $logging;
426 }
427 /**
428 * @return BucketLogging
429 */
430 public function getLogging()
431 {
432 return $this->logging;
433 }
434 /**
435 * @param string
436 */
437 public function setMetageneration($metageneration)
438 {
439 $this->metageneration = $metageneration;
440 }
441 /**
442 * @return string
443 */
444 public function getMetageneration()
445 {
446 return $this->metageneration;
447 }
448 /**
449 * @param string
450 */
451 public function setName($name)
452 {
453 $this->name = $name;
454 }
455 /**
456 * @return string
457 */
458 public function getName()
459 {
460 return $this->name;
461 }
462 /**
463 * @param BucketObjectRetention
464 */
465 public function setObjectRetention(BucketObjectRetention $objectRetention)
466 {
467 $this->objectRetention = $objectRetention;
468 }
469 /**
470 * @return BucketObjectRetention
471 */
472 public function getObjectRetention()
473 {
474 return $this->objectRetention;
475 }
476 /**
477 * @param BucketOwner
478 */
479 public function setOwner(BucketOwner $owner)
480 {
481 $this->owner = $owner;
482 }
483 /**
484 * @return BucketOwner
485 */
486 public function getOwner()
487 {
488 return $this->owner;
489 }
490 /**
491 * @param string
492 */
493 public function setProjectNumber($projectNumber)
494 {
495 $this->projectNumber = $projectNumber;
496 }
497 /**
498 * @return string
499 */
500 public function getProjectNumber()
501 {
502 return $this->projectNumber;
503 }
504 /**
505 * @param BucketRetentionPolicy
506 */
507 public function setRetentionPolicy(BucketRetentionPolicy $retentionPolicy)
508 {
509 $this->retentionPolicy = $retentionPolicy;
510 }
511 /**
512 * @return BucketRetentionPolicy
513 */
514 public function getRetentionPolicy()
515 {
516 return $this->retentionPolicy;
517 }
518 /**
519 * @param string
520 */
521 public function setRpo($rpo)
522 {
523 $this->rpo = $rpo;
524 }
525 /**
526 * @return string
527 */
528 public function getRpo()
529 {
530 return $this->rpo;
531 }
532 /**
533 * @param bool
534 */
535 public function setSatisfiesPZI($satisfiesPZI)
536 {
537 $this->satisfiesPZI = $satisfiesPZI;
538 }
539 /**
540 * @return bool
541 */
542 public function getSatisfiesPZI()
543 {
544 return $this->satisfiesPZI;
545 }
546 /**
547 * @param bool
548 */
549 public function setSatisfiesPZS($satisfiesPZS)
550 {
551 $this->satisfiesPZS = $satisfiesPZS;
552 }
553 /**
554 * @return bool
555 */
556 public function getSatisfiesPZS()
557 {
558 return $this->satisfiesPZS;
559 }
560 /**
561 * @param string
562 */
563 public function setSelfLink($selfLink)
564 {
565 $this->selfLink = $selfLink;
566 }
567 /**
568 * @return string
569 */
570 public function getSelfLink()
571 {
572 return $this->selfLink;
573 }
574 /**
575 * @param BucketSoftDeletePolicy
576 */
577 public function setSoftDeletePolicy(BucketSoftDeletePolicy $softDeletePolicy)
578 {
579 $this->softDeletePolicy = $softDeletePolicy;
580 }
581 /**
582 * @return BucketSoftDeletePolicy
583 */
584 public function getSoftDeletePolicy()
585 {
586 return $this->softDeletePolicy;
587 }
588 /**
589 * @param string
590 */
591 public function setSoftDeleteTime($softDeleteTime)
592 {
593 $this->softDeleteTime = $softDeleteTime;
594 }
595 /**
596 * @return string
597 */
598 public function getSoftDeleteTime()
599 {
600 return $this->softDeleteTime;
601 }
602 /**
603 * @param string
604 */
605 public function setStorageClass($storageClass)
606 {
607 $this->storageClass = $storageClass;
608 }
609 /**
610 * @return string
611 */
612 public function getStorageClass()
613 {
614 return $this->storageClass;
615 }
616 /**
617 * @param string
618 */
619 public function setTimeCreated($timeCreated)
620 {
621 $this->timeCreated = $timeCreated;
622 }
623 /**
624 * @return string
625 */
626 public function getTimeCreated()
627 {
628 return $this->timeCreated;
629 }
630 /**
631 * @param string
632 */
633 public function setUpdated($updated)
634 {
635 $this->updated = $updated;
636 }
637 /**
638 * @return string
639 */
640 public function getUpdated()
641 {
642 return $this->updated;
643 }
644 /**
645 * @param BucketVersioning
646 */
647 public function setVersioning(BucketVersioning $versioning)
648 {
649 $this->versioning = $versioning;
650 }
651 /**
652 * @return BucketVersioning
653 */
654 public function getVersioning()
655 {
656 return $this->versioning;
657 }
658 /**
659 * @param BucketWebsite
660 */
661 public function setWebsite(BucketWebsite $website)
662 {
663 $this->website = $website;
664 }
665 /**
666 * @return BucketWebsite
667 */
668 public function getWebsite()
669 {
670 return $this->website;
671 }
672}
673
674// Adding a class alias for backwards compatibility with the previous class name.
675class_alias(Bucket::class, 'Google_Service_Storage_Bucket');
Note: See TracBrowser for help on using the repository browser.