GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 4c0d0e...aaa3ca )
by Jamie
10s
created

Quota::retrieve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace OpenStack\Networking\v2\Models;
4
5
use OpenStack\Common\Resource\Deletable;
6
use OpenStack\Common\Resource\OperatorResource;
7
use OpenStack\Common\Resource\Retrievable;
8
use OpenStack\Common\Resource\Updateable;
9
use OpenStack\Networking\v2\Api;
10
11
/**
12
 * Represents a Neutron v2 Quota
13
 *
14
 * @property Api $api
15
 */
16
class Quota extends OperatorResource implements Retrievable, Updateable, Deletable
17
{
18
    /**
19
     * @var int
20
     */
21
    public $subnet;
22
23
    /**
24
     * @var int
25
     */
26
    public $network;
27
28
    /**
29
     * @var int
30
     */
31
    public $floatingip;
32
33
    /**
34
     * @var string
35
     */
36
    public $tenantId;
37
38
    /**
39
     * @var int
40
     */
41
    public $subnetpool;
42
43
    /**
44
     * @var int
45
     */
46
    public $securityGroupRule;
47
48
    /**
49
     * @var int
50
     */
51
    public $securityGroup;
52
53
    /**
54
     * @var int
55
     */
56
    public $router;
57
58
    /**
59
     * @var int
60
     */
61
    public $rbacPolicy;
62
63
    /**
64
     * @var int
65
     */
66
    public $port;
67
68
    protected $resourcesKey = 'quotas';
69
    protected $resourceKey = 'quota';
70
71
    protected $aliases = [
72
        'tenant_id'           => 'tenantId',
73
        'security_group_rule' => 'securityGroupRule',
74
        'security_group'      => 'securityGroup',
75
        'rbac_policy'         => 'rbacPolicy',
76
    ];
77
78
    /**
79
     * {@inheritDoc}
80
     */
81
    public function retrieve()
82
    {
83
        $response = $this->execute($this->api->getQuota(), ['tenantId' => (string)$this->tenantId]);
84
        $this->populateFromResponse($response);
85
    }
86
87
    /**
88
     * {@inheritDoc}
89
     */
90
    public function update()
91
    {
92
        $response = $this->executeWithState($this->api->putQuota());
93
        $this->populateFromResponse($response);
94
    }
95
96
    /**
97
     * {@inheritDoc}
98
     */
99
    public function delete()
100
    {
101
        $this->executeWithState($this->api->deleteQuota());
102
    }
103
}
104