source: vendor/google/apiclient-services/src/Storage/StorageObject.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 11.4 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 StorageObject extends \Google\Collection
21{
22 protected $collection_key = 'acl';
23 protected $aclType = ObjectAccessControl::class;
24 protected $aclDataType = 'array';
25 /**
26 * @var string
27 */
28 public $bucket;
29 /**
30 * @var string
31 */
32 public $cacheControl;
33 /**
34 * @var int
35 */
36 public $componentCount;
37 /**
38 * @var string
39 */
40 public $contentDisposition;
41 /**
42 * @var string
43 */
44 public $contentEncoding;
45 /**
46 * @var string
47 */
48 public $contentLanguage;
49 /**
50 * @var string
51 */
52 public $contentType;
53 /**
54 * @var string
55 */
56 public $crc32c;
57 /**
58 * @var string
59 */
60 public $customTime;
61 protected $customerEncryptionType = StorageObjectCustomerEncryption::class;
62 protected $customerEncryptionDataType = '';
63 /**
64 * @var string
65 */
66 public $etag;
67 /**
68 * @var bool
69 */
70 public $eventBasedHold;
71 /**
72 * @var string
73 */
74 public $generation;
75 /**
76 * @var string
77 */
78 public $hardDeleteTime;
79 /**
80 * @var string
81 */
82 public $id;
83 /**
84 * @var string
85 */
86 public $kind;
87 /**
88 * @var string
89 */
90 public $kmsKeyName;
91 /**
92 * @var string
93 */
94 public $md5Hash;
95 /**
96 * @var string
97 */
98 public $mediaLink;
99 /**
100 * @var string[]
101 */
102 public $metadata;
103 /**
104 * @var string
105 */
106 public $metageneration;
107 /**
108 * @var string
109 */
110 public $name;
111 protected $ownerType = StorageObjectOwner::class;
112 protected $ownerDataType = '';
113 /**
114 * @var string
115 */
116 public $restoreToken;
117 protected $retentionType = StorageObjectRetention::class;
118 protected $retentionDataType = '';
119 /**
120 * @var string
121 */
122 public $retentionExpirationTime;
123 /**
124 * @var string
125 */
126 public $selfLink;
127 /**
128 * @var string
129 */
130 public $size;
131 /**
132 * @var string
133 */
134 public $softDeleteTime;
135 /**
136 * @var string
137 */
138 public $storageClass;
139 /**
140 * @var bool
141 */
142 public $temporaryHold;
143 /**
144 * @var string
145 */
146 public $timeCreated;
147 /**
148 * @var string
149 */
150 public $timeDeleted;
151 /**
152 * @var string
153 */
154 public $timeFinalized;
155 /**
156 * @var string
157 */
158 public $timeStorageClassUpdated;
159 /**
160 * @var string
161 */
162 public $updated;
163
164 /**
165 * @param ObjectAccessControl[]
166 */
167 public function setAcl($acl)
168 {
169 $this->acl = $acl;
170 }
171 /**
172 * @return ObjectAccessControl[]
173 */
174 public function getAcl()
175 {
176 return $this->acl;
177 }
178 /**
179 * @param string
180 */
181 public function setBucket($bucket)
182 {
183 $this->bucket = $bucket;
184 }
185 /**
186 * @return string
187 */
188 public function getBucket()
189 {
190 return $this->bucket;
191 }
192 /**
193 * @param string
194 */
195 public function setCacheControl($cacheControl)
196 {
197 $this->cacheControl = $cacheControl;
198 }
199 /**
200 * @return string
201 */
202 public function getCacheControl()
203 {
204 return $this->cacheControl;
205 }
206 /**
207 * @param int
208 */
209 public function setComponentCount($componentCount)
210 {
211 $this->componentCount = $componentCount;
212 }
213 /**
214 * @return int
215 */
216 public function getComponentCount()
217 {
218 return $this->componentCount;
219 }
220 /**
221 * @param string
222 */
223 public function setContentDisposition($contentDisposition)
224 {
225 $this->contentDisposition = $contentDisposition;
226 }
227 /**
228 * @return string
229 */
230 public function getContentDisposition()
231 {
232 return $this->contentDisposition;
233 }
234 /**
235 * @param string
236 */
237 public function setContentEncoding($contentEncoding)
238 {
239 $this->contentEncoding = $contentEncoding;
240 }
241 /**
242 * @return string
243 */
244 public function getContentEncoding()
245 {
246 return $this->contentEncoding;
247 }
248 /**
249 * @param string
250 */
251 public function setContentLanguage($contentLanguage)
252 {
253 $this->contentLanguage = $contentLanguage;
254 }
255 /**
256 * @return string
257 */
258 public function getContentLanguage()
259 {
260 return $this->contentLanguage;
261 }
262 /**
263 * @param string
264 */
265 public function setContentType($contentType)
266 {
267 $this->contentType = $contentType;
268 }
269 /**
270 * @return string
271 */
272 public function getContentType()
273 {
274 return $this->contentType;
275 }
276 /**
277 * @param string
278 */
279 public function setCrc32c($crc32c)
280 {
281 $this->crc32c = $crc32c;
282 }
283 /**
284 * @return string
285 */
286 public function getCrc32c()
287 {
288 return $this->crc32c;
289 }
290 /**
291 * @param string
292 */
293 public function setCustomTime($customTime)
294 {
295 $this->customTime = $customTime;
296 }
297 /**
298 * @return string
299 */
300 public function getCustomTime()
301 {
302 return $this->customTime;
303 }
304 /**
305 * @param StorageObjectCustomerEncryption
306 */
307 public function setCustomerEncryption(StorageObjectCustomerEncryption $customerEncryption)
308 {
309 $this->customerEncryption = $customerEncryption;
310 }
311 /**
312 * @return StorageObjectCustomerEncryption
313 */
314 public function getCustomerEncryption()
315 {
316 return $this->customerEncryption;
317 }
318 /**
319 * @param string
320 */
321 public function setEtag($etag)
322 {
323 $this->etag = $etag;
324 }
325 /**
326 * @return string
327 */
328 public function getEtag()
329 {
330 return $this->etag;
331 }
332 /**
333 * @param bool
334 */
335 public function setEventBasedHold($eventBasedHold)
336 {
337 $this->eventBasedHold = $eventBasedHold;
338 }
339 /**
340 * @return bool
341 */
342 public function getEventBasedHold()
343 {
344 return $this->eventBasedHold;
345 }
346 /**
347 * @param string
348 */
349 public function setGeneration($generation)
350 {
351 $this->generation = $generation;
352 }
353 /**
354 * @return string
355 */
356 public function getGeneration()
357 {
358 return $this->generation;
359 }
360 /**
361 * @param string
362 */
363 public function setHardDeleteTime($hardDeleteTime)
364 {
365 $this->hardDeleteTime = $hardDeleteTime;
366 }
367 /**
368 * @return string
369 */
370 public function getHardDeleteTime()
371 {
372 return $this->hardDeleteTime;
373 }
374 /**
375 * @param string
376 */
377 public function setId($id)
378 {
379 $this->id = $id;
380 }
381 /**
382 * @return string
383 */
384 public function getId()
385 {
386 return $this->id;
387 }
388 /**
389 * @param string
390 */
391 public function setKind($kind)
392 {
393 $this->kind = $kind;
394 }
395 /**
396 * @return string
397 */
398 public function getKind()
399 {
400 return $this->kind;
401 }
402 /**
403 * @param string
404 */
405 public function setKmsKeyName($kmsKeyName)
406 {
407 $this->kmsKeyName = $kmsKeyName;
408 }
409 /**
410 * @return string
411 */
412 public function getKmsKeyName()
413 {
414 return $this->kmsKeyName;
415 }
416 /**
417 * @param string
418 */
419 public function setMd5Hash($md5Hash)
420 {
421 $this->md5Hash = $md5Hash;
422 }
423 /**
424 * @return string
425 */
426 public function getMd5Hash()
427 {
428 return $this->md5Hash;
429 }
430 /**
431 * @param string
432 */
433 public function setMediaLink($mediaLink)
434 {
435 $this->mediaLink = $mediaLink;
436 }
437 /**
438 * @return string
439 */
440 public function getMediaLink()
441 {
442 return $this->mediaLink;
443 }
444 /**
445 * @param string[]
446 */
447 public function setMetadata($metadata)
448 {
449 $this->metadata = $metadata;
450 }
451 /**
452 * @return string[]
453 */
454 public function getMetadata()
455 {
456 return $this->metadata;
457 }
458 /**
459 * @param string
460 */
461 public function setMetageneration($metageneration)
462 {
463 $this->metageneration = $metageneration;
464 }
465 /**
466 * @return string
467 */
468 public function getMetageneration()
469 {
470 return $this->metageneration;
471 }
472 /**
473 * @param string
474 */
475 public function setName($name)
476 {
477 $this->name = $name;
478 }
479 /**
480 * @return string
481 */
482 public function getName()
483 {
484 return $this->name;
485 }
486 /**
487 * @param StorageObjectOwner
488 */
489 public function setOwner(StorageObjectOwner $owner)
490 {
491 $this->owner = $owner;
492 }
493 /**
494 * @return StorageObjectOwner
495 */
496 public function getOwner()
497 {
498 return $this->owner;
499 }
500 /**
501 * @param string
502 */
503 public function setRestoreToken($restoreToken)
504 {
505 $this->restoreToken = $restoreToken;
506 }
507 /**
508 * @return string
509 */
510 public function getRestoreToken()
511 {
512 return $this->restoreToken;
513 }
514 /**
515 * @param StorageObjectRetention
516 */
517 public function setRetention(StorageObjectRetention $retention)
518 {
519 $this->retention = $retention;
520 }
521 /**
522 * @return StorageObjectRetention
523 */
524 public function getRetention()
525 {
526 return $this->retention;
527 }
528 /**
529 * @param string
530 */
531 public function setRetentionExpirationTime($retentionExpirationTime)
532 {
533 $this->retentionExpirationTime = $retentionExpirationTime;
534 }
535 /**
536 * @return string
537 */
538 public function getRetentionExpirationTime()
539 {
540 return $this->retentionExpirationTime;
541 }
542 /**
543 * @param string
544 */
545 public function setSelfLink($selfLink)
546 {
547 $this->selfLink = $selfLink;
548 }
549 /**
550 * @return string
551 */
552 public function getSelfLink()
553 {
554 return $this->selfLink;
555 }
556 /**
557 * @param string
558 */
559 public function setSize($size)
560 {
561 $this->size = $size;
562 }
563 /**
564 * @return string
565 */
566 public function getSize()
567 {
568 return $this->size;
569 }
570 /**
571 * @param string
572 */
573 public function setSoftDeleteTime($softDeleteTime)
574 {
575 $this->softDeleteTime = $softDeleteTime;
576 }
577 /**
578 * @return string
579 */
580 public function getSoftDeleteTime()
581 {
582 return $this->softDeleteTime;
583 }
584 /**
585 * @param string
586 */
587 public function setStorageClass($storageClass)
588 {
589 $this->storageClass = $storageClass;
590 }
591 /**
592 * @return string
593 */
594 public function getStorageClass()
595 {
596 return $this->storageClass;
597 }
598 /**
599 * @param bool
600 */
601 public function setTemporaryHold($temporaryHold)
602 {
603 $this->temporaryHold = $temporaryHold;
604 }
605 /**
606 * @return bool
607 */
608 public function getTemporaryHold()
609 {
610 return $this->temporaryHold;
611 }
612 /**
613 * @param string
614 */
615 public function setTimeCreated($timeCreated)
616 {
617 $this->timeCreated = $timeCreated;
618 }
619 /**
620 * @return string
621 */
622 public function getTimeCreated()
623 {
624 return $this->timeCreated;
625 }
626 /**
627 * @param string
628 */
629 public function setTimeDeleted($timeDeleted)
630 {
631 $this->timeDeleted = $timeDeleted;
632 }
633 /**
634 * @return string
635 */
636 public function getTimeDeleted()
637 {
638 return $this->timeDeleted;
639 }
640 /**
641 * @param string
642 */
643 public function setTimeFinalized($timeFinalized)
644 {
645 $this->timeFinalized = $timeFinalized;
646 }
647 /**
648 * @return string
649 */
650 public function getTimeFinalized()
651 {
652 return $this->timeFinalized;
653 }
654 /**
655 * @param string
656 */
657 public function setTimeStorageClassUpdated($timeStorageClassUpdated)
658 {
659 $this->timeStorageClassUpdated = $timeStorageClassUpdated;
660 }
661 /**
662 * @return string
663 */
664 public function getTimeStorageClassUpdated()
665 {
666 return $this->timeStorageClassUpdated;
667 }
668 /**
669 * @param string
670 */
671 public function setUpdated($updated)
672 {
673 $this->updated = $updated;
674 }
675 /**
676 * @return string
677 */
678 public function getUpdated()
679 {
680 return $this->updated;
681 }
682}
683
684// Adding a class alias for backwards compatibility with the previous class name.
685class_alias(StorageObject::class, 'Google_Service_Storage_StorageObject');
Note: See TracBrowser for help on using the repository browser.