-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBucketPolicy.php
66 lines (59 loc) · 1.43 KB
/
BucketPolicy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php declare(strict_types=1);
namespace MyENA\RGW\Models;
use MyENA\RGW\AbstractModel;
use OpenApi\Annotations as OA;
/**
* @OA\Schema(
* schema="RGWBucketPolicy",
* type="object",
* @OA\Property(
* property="owner",
* type="object",
* ref="#/components/schemas/RGWBucketPolicyOwner"
* ),
* @OA\Property(
* property="acl",
* type="object",
* ref="#/components/schemas/RGWBucketPolicyACL"
* )
* )
*/
/**
* Class BucketPolicy
* @package MyENA\RGW\Models
*/
class BucketPolicy extends AbstractModel
{
/** @var \MyENA\RGW\Models\BucketPolicyOwner */
protected $owner = null;
/** @var \MyENA\RGW\Models\BucketPolicyACL */
protected $acl = null;
/**
* BucketPolicyResponse constructor.
* @param array $data
*/
public function __construct(array $data = [])
{
parent::__construct($data);
if (is_array($this->owner)) {
$this->owner = new BucketPolicyOwner($this->owner);
}
if (is_array($this->acl)) {
$this->acl = new BucketPolicyACL($this->acl);
}
}
/**
* @return \MyENA\RGW\Models\BucketPolicyOwner
*/
public function getOwner(): ?BucketPolicyOwner
{
return $this->owner;
}
/**
* @return \MyENA\RGW\Models\BucketPolicyACL
*/
public function getAcl(): ?BucketPolicyACL
{
return $this->acl;
}
}