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
Pull Request — master (#187)
by Chris
07:33
created

NetworkIpAvailability::retrieve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
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\OperatorResource;
6
use OpenStack\Common\Resource\HasWaiterTrait;
7
use OpenStack\Common\Resource\Listable;
8
use OpenStack\Common\Resource\Retrievable;
9
10
/**
11
 * Represents a Networking v2 Network.
12
 *
13
 * @property \OpenStack\Networking\v2\Api $api
14
 */
15
class NetworkIpAvailability extends OperatorResource implements Listable, Retrievable
16
{
17
    use HasWaiterTrait;
18
19
    /** @var string */
20
    public $id;
21
22
    /** @var string */
23
    public $networkName;
24
25
    /** @var string */
26
    public $tenantId;
27
28
    /** @var string */
29
    public $projectId;
30
31
    /** @var int */
32
    public $totalIps;
33
34
    /** @var int */
35
    public $usedIps;
36
37
    /** @var array */
38
    public $subnetIpAvailability;
39
40
    protected $aliases = [
41
        'network_id'             => 'id',
42
        'network_name'           => 'networkName',
43
        'tenant_id'              => 'tenantId',
44
        'project_id'             => 'projectId',
45
        'total_ips'              => 'totalIps',
46
        'used_ips'               => 'usedIps',
47
        'subnet_ip_availability' => 'subnetIpAvailability'
48
    ];
49
50
    protected $resourceKey = 'network_ip_availability';
51
    protected $resourcesKey = 'network_ip_availabilities';
52
53
    /**
54
     * {@inheritDoc}
55
     */
56
    public function retrieve()
57
    {
58
        $response = $this->execute($this->api->getNetworkIpAvailability(), ['id' => (string)$this->id]);
59
        $this->populateFromResponse($response);
60
    }
61
}
62