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 ( 3451ef...023296 )
by Ha
9s
created

Hypervisor::retrieve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
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\Compute\v2\Models;
4
5
use OpenStack\Common\Resource\Listable;
6
use OpenStack\Common\Resource\Retrievable;
7
use OpenStack\Common\Resource\OperatorResource;
8
9
/**
10
 * @property \OpenStack\Compute\v2\Api $api
11
 */
12
class Hypervisor extends OperatorResource implements
13
    Retrievable,
14
    Listable
15
{
16
    /** @var int */
17
    public $id;
18
19
    /** @var string */
20
    public $status;
21
22
    /** @var string */
23
    public $state;
24
25
    /** @var string */
26
    public $host_ip;
27
28
    /** @var int */
29
    public $free_disk_gb;
30
31
    /** @var int */
32
    public $free_ram_mb;
33
34
    /** @var string */
35
    public $hypervisor_hostname;
36
37
    /** @var string */
38
    public $hypervisor_type;
39
40
    /** @var string */
41
    public $hypervisor_version;
42
43
    /** @var int */
44
    public $local_gb;
45
46
    /** @var int */
47
    public $local_gb_used;
48
49
    /** @var int */
50
    public $memory_mb;
51
52
    /** @var int */
53
    public $memory_mb_used;
54
55
    /** @var int */
56
    public $running_vms;
57
58
    /** @var int */
59
    public $vcpus;
60
61
    /** @var int */
62
    public $vcpus_used;
63
64
    /** @var array */
65
    public $service;
66
67
    protected $resourceKey = 'hypervisor';
68
    protected $resourcesKey = 'hypervisors';
69
70
    /**
71
     * {@inheritDoc}
72
     */
73
    public function retrieve()
74
    {
75
        $response = $this->execute($this->api->getHypervisor(), ['id' => (string) $this->id]);
76
        $this->populateFromResponse($response);
77
    }
78
}
79