-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathQuotas.php
66 lines (59 loc) · 1.42 KB
/
Quotas.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="RGWQuotas",
* type="object",
* @OA\Property(
* property="bucket_quota",
* type="object",
* ref="#/components/schemas/RGWQuotaMeta"
* ),
* @OA\Property(
* property="user_quota",
* type="object",
* ref="#/components/schemas/RGWQuotaMeta"
* )
* )
*/
/**
* Class Quotas
* @package MyENA\RGW\Models
*/
class Quotas extends AbstractModel
{
/** @var \MyENA\RGW\Models\QuotaMeta */
protected $bucketQuota = null;
/** @var \MyENA\RGW\Models\QuotaMeta */
protected $userQuota = null;
/**
* Quotas constructor.
* @param array $data
*/
public function __construct(array $data = [])
{
parent::__construct($data);
if (is_array($this->bucketQuota)) {
$this->bucketQuota = new QuotaMeta($this->bucketQuota);
}
if (is_array($this->userQuota)) {
$this->userQuota = new QuotaMeta($this->userQuota);
}
}
/**
* @return \MyENA\RGW\Models\QuotaMeta
*/
public function getBucketQuota(): ?QuotaMeta
{
return $this->bucketQuota;
}
/**
* @return \MyENA\RGW\Models\QuotaMeta
*/
public function getUserQuota(): ?QuotaMeta
{
return $this->userQuota;
}
}