PluginProbe
WP-Stateless – Google Cloud Storage / 3.2.0
WP-Stateless – Google Cloud Storage v3.2.0
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
wp-stateless / lib / Google / src / Service / Storage / StorageObject.php

StorageObject.php in WP-Stateless – Google Cloud Storage 3.2.0, at lib/Google/src/Service/Storage/StorageObject.php

598 lines 9.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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\Storage;
19
20 class 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 $id;
79 /**
80 * @var string
81 */
82 public $kind;
83 /**
84 * @var string
85 */
86 public $kmsKeyName;
87 /**
88 * @var string
89 */
90 public $md5Hash;
91 /**
92 * @var string
93 */
94 public $mediaLink;
95 /**
96 * @var string[]
97 */
98 public $metadata;
99 /**
100 * @var string
101 */
102 public $metageneration;
103 /**
104 * @var string
105 */
106 public $name;
107 protected $ownerType = StorageObjectOwner::class;
108 protected $ownerDataType = '';
109 /**
110 * @var string
111 */
112 public $retentionExpirationTime;
113 /**
114 * @var string
115 */
116 public $selfLink;
117 /**
118 * @var string
119 */
120 public $size;
121 /**
122 * @var string
123 */
124 public $storageClass;
125 /**
126 * @var bool
127 */
128 public $temporaryHold;
129 /**
130 * @var string
131 */
132 public $timeCreated;
133 /**
134 * @var string
135 */
136 public $timeDeleted;
137 /**
138 * @var string
139 */
140 public $timeStorageClassUpdated;
141 /**
142 * @var string
143 */
144 public $updated;
145
146 /**
147 * @param ObjectAccessControl[]
148 */
149 public function setAcl($acl)
150 {
151 $this->acl = $acl;
152 }
153 /**
154 * @return ObjectAccessControl[]
155 */
156 public function getAcl()
157 {
158 return $this->acl;
159 }
160 /**
161 * @param string
162 */
163 public function setBucket($bucket)
164 {
165 $this->bucket = $bucket;
166 }
167 /**
168 * @return string
169 */
170 public function getBucket()
171 {
172 return $this->bucket;
173 }
174 /**
175 * @param string
176 */
177 public function setCacheControl($cacheControl)
178 {
179 $this->cacheControl = $cacheControl;
180 }
181 /**
182 * @return string
183 */
184 public function getCacheControl()
185 {
186 return $this->cacheControl;
187 }
188 /**
189 * @param int
190 */
191 public function setComponentCount($componentCount)
192 {
193 $this->componentCount = $componentCount;
194 }
195 /**
196 * @return int
197 */
198 public function getComponentCount()
199 {
200 return $this->componentCount;
201 }
202 /**
203 * @param string
204 */
205 public function setContentDisposition($contentDisposition)
206 {
207 $this->contentDisposition = $contentDisposition;
208 }
209 /**
210 * @return string
211 */
212 public function getContentDisposition()
213 {
214 return $this->contentDisposition;
215 }
216 /**
217 * @param string
218 */
219 public function setContentEncoding($contentEncoding)
220 {
221 $this->contentEncoding = $contentEncoding;
222 }
223 /**
224 * @return string
225 */
226 public function getContentEncoding()
227 {
228 return $this->contentEncoding;
229 }
230 /**
231 * @param string
232 */
233 public function setContentLanguage($contentLanguage)
234 {
235 $this->contentLanguage = $contentLanguage;
236 }
237 /**
238 * @return string
239 */
240 public function getContentLanguage()
241 {
242 return $this->contentLanguage;
243 }
244 /**
245 * @param string
246 */
247 public function setContentType($contentType)
248 {
249 $this->contentType = $contentType;
250 }
251 /**
252 * @return string
253 */
254 public function getContentType()
255 {
256 return $this->contentType;
257 }
258 /**
259 * @param string
260 */
261 public function setCrc32c($crc32c)
262 {
263 $this->crc32c = $crc32c;
264 }
265 /**
266 * @return string
267 */
268 public function getCrc32c()
269 {
270 return $this->crc32c;
271 }
272 /**
273 * @param string
274 */
275 public function setCustomTime($customTime)
276 {
277 $this->customTime = $customTime;
278 }
279 /**
280 * @return string
281 */
282 public function getCustomTime()
283 {
284 return $this->customTime;
285 }
286 /**
287 * @param StorageObjectCustomerEncryption
288 */
289 public function setCustomerEncryption(StorageObjectCustomerEncryption $customerEncryption)
290 {
291 $this->customerEncryption = $customerEncryption;
292 }
293 /**
294 * @return StorageObjectCustomerEncryption
295 */
296 public function getCustomerEncryption()
297 {
298 return $this->customerEncryption;
299 }
300 /**
301 * @param string
302 */
303 public function setEtag($etag)
304 {
305 $this->etag = $etag;
306 }
307 /**
308 * @return string
309 */
310 public function getEtag()
311 {
312 return $this->etag;
313 }
314 /**
315 * @param bool
316 */
317 public function setEventBasedHold($eventBasedHold)
318 {
319 $this->eventBasedHold = $eventBasedHold;
320 }
321 /**
322 * @return bool
323 */
324 public function getEventBasedHold()
325 {
326 return $this->eventBasedHold;
327 }
328 /**
329 * @param string
330 */
331 public function setGeneration($generation)
332 {
333 $this->generation = $generation;
334 }
335 /**
336 * @return string
337 */
338 public function getGeneration()
339 {
340 return $this->generation;
341 }
342 /**
343 * @param string
344 */
345 public function setId($id)
346 {
347 $this->id = $id;
348 }
349 /**
350 * @return string
351 */
352 public function getId()
353 {
354 return $this->id;
355 }
356 /**
357 * @param string
358 */
359 public function setKind($kind)
360 {
361 $this->kind = $kind;
362 }
363 /**
364 * @return string
365 */
366 public function getKind()
367 {
368 return $this->kind;
369 }
370 /**
371 * @param string
372 */
373 public function setKmsKeyName($kmsKeyName)
374 {
375 $this->kmsKeyName = $kmsKeyName;
376 }
377 /**
378 * @return string
379 */
380 public function getKmsKeyName()
381 {
382 return $this->kmsKeyName;
383 }
384 /**
385 * @param string
386 */
387 public function setMd5Hash($md5Hash)
388 {
389 $this->md5Hash = $md5Hash;
390 }
391 /**
392 * @return string
393 */
394 public function getMd5Hash()
395 {
396 return $this->md5Hash;
397 }
398 /**
399 * @param string
400 */
401 public function setMediaLink($mediaLink)
402 {
403 $this->mediaLink = $mediaLink;
404 }
405 /**
406 * @return string
407 */
408 public function getMediaLink()
409 {
410 return $this->mediaLink;
411 }
412 /**
413 * @param string[]
414 */
415 public function setMetadata($metadata)
416 {
417 $this->metadata = $metadata;
418 }
419 /**
420 * @return string[]
421 */
422 public function getMetadata()
423 {
424 return $this->metadata;
425 }
426 /**
427 * @param string
428 */
429 public function setMetageneration($metageneration)
430 {
431 $this->metageneration = $metageneration;
432 }
433 /**
434 * @return string
435 */
436 public function getMetageneration()
437 {
438 return $this->metageneration;
439 }
440 /**
441 * @param string
442 */
443 public function setName($name)
444 {
445 $this->name = $name;
446 }
447 /**
448 * @return string
449 */
450 public function getName()
451 {
452 return $this->name;
453 }
454 /**
455 * @param StorageObjectOwner
456 */
457 public function setOwner(StorageObjectOwner $owner)
458 {
459 $this->owner = $owner;
460 }
461 /**
462 * @return StorageObjectOwner
463 */
464 public function getOwner()
465 {
466 return $this->owner;
467 }
468 /**
469 * @param string
470 */
471 public function setRetentionExpirationTime($retentionExpirationTime)
472 {
473 $this->retentionExpirationTime = $retentionExpirationTime;
474 }
475 /**
476 * @return string
477 */
478 public function getRetentionExpirationTime()
479 {
480 return $this->retentionExpirationTime;
481 }
482 /**
483 * @param string
484 */
485 public function setSelfLink($selfLink)
486 {
487 $this->selfLink = $selfLink;
488 }
489 /**
490 * @return string
491 */
492 public function getSelfLink()
493 {
494 return $this->selfLink;
495 }
496 /**
497 * @param string
498 */
499 public function setSize($size)
500 {
501 $this->size = $size;
502 }
503 /**
504 * @return string
505 */
506 public function getSize()
507 {
508 return $this->size;
509 }
510 /**
511 * @param string
512 */
513 public function setStorageClass($storageClass)
514 {
515 $this->storageClass = $storageClass;
516 }
517 /**
518 * @return string
519 */
520 public function getStorageClass()
521 {
522 return $this->storageClass;
523 }
524 /**
525 * @param bool
526 */
527 public function setTemporaryHold($temporaryHold)
528 {
529 $this->temporaryHold = $temporaryHold;
530 }
531 /**
532 * @return bool
533 */
534 public function getTemporaryHold()
535 {
536 return $this->temporaryHold;
537 }
538 /**
539 * @param string
540 */
541 public function setTimeCreated($timeCreated)
542 {
543 $this->timeCreated = $timeCreated;
544 }
545 /**
546 * @return string
547 */
548 public function getTimeCreated()
549 {
550 return $this->timeCreated;
551 }
552 /**
553 * @param string
554 */
555 public function setTimeDeleted($timeDeleted)
556 {
557 $this->timeDeleted = $timeDeleted;
558 }
559 /**
560 * @return string
561 */
562 public function getTimeDeleted()
563 {
564 return $this->timeDeleted;
565 }
566 /**
567 * @param string
568 */
569 public function setTimeStorageClassUpdated($timeStorageClassUpdated)
570 {
571 $this->timeStorageClassUpdated = $timeStorageClassUpdated;
572 }
573 /**
574 * @return string
575 */
576 public function getTimeStorageClassUpdated()
577 {
578 return $this->timeStorageClassUpdated;
579 }
580 /**
581 * @param string
582 */
583 public function setUpdated($updated)
584 {
585 $this->updated = $updated;
586 }
587 /**
588 * @return string
589 */
590 public function getUpdated()
591 {
592 return $this->updated;
593 }
594 }
595
596 // Adding a class alias for backwards compatibility with the previous class name.
597 class_alias(StorageObject::class, 'Google_Service_Storage_StorageObject');
598