diff --git a/composer.json b/composer.json index 91100cf..4badd54 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "corsinvest/cv4pve-api-php", "description": "Corsinvest Proxmox VE Client API PHP", - "version": "8.1.0", + "version": "8.1.1", "keywords": [ "Proxmox", "Proxmox VE", diff --git a/src/PveClient.php b/src/PveClient.php index 68ce577..59eb351 100644 --- a/src/PveClient.php +++ b/src/PveClient.php @@ -17,7 +17,8 @@ * * Proxmox VE Client */ - class PveClient extends PveClientBase { + class PveClient extends PveClientBase + { /** * @ignore @@ -29,7 +30,8 @@ class PveClient extends PveClientBase { * @param string $hostname Host Proxmox VE * @param int $port Port connection default 8006 */ - function __construct($hostname, $port = 8006) { + function __construct($hostname, $port = 8006) + { parent::__construct($hostname, $port); $this->client = $this; } @@ -40,7 +42,8 @@ function __construct($hostname, $port = 8006) { * @param string $name name * @param array $values values */ - public function addIndexedParameter(&$params, $name, $values) { + public function addIndexedParameter(&$params, $name, $values) + { if ($values == null) { return; } @@ -53,86 +56,81 @@ public function addIndexedParameter(&$params, $name, $values) { * @ignore */ private $cluster; - /** * Get Cluster * @return PVECluster */ - public function getCluster() { + public function getCluster() + { return $this->cluster ?: ($this->cluster = new PVECluster($this->client)); } - /** * @ignore */ private $nodes; - /** * Get Nodes * @return PVENodes */ - public function getNodes() { + public function getNodes() + { return $this->nodes ?: ($this->nodes = new PVENodes($this->client)); } - /** * @ignore */ private $storage; - /** * Get Storage * @return PVEStorage */ - public function getStorage() { + public function getStorage() + { return $this->storage ?: ($this->storage = new PVEStorage($this->client)); } - /** * @ignore */ private $access; - /** * Get Access * @return PVEAccess */ - public function getAccess() { + public function getAccess() + { return $this->access ?: ($this->access = new PVEAccess($this->client)); } - /** * @ignore */ private $pools; - /** * Get Pools * @return PVEPools */ - public function getPools() { + public function getPools() + { return $this->pools ?: ($this->pools = new PVEPools($this->client)); } - /** * @ignore */ private $version; - /** * Get Version * @return PVEVersion */ - public function getVersion() { + public function getVersion() + { return $this->version ?: ($this->version = new PVEVersion($this->client)); } } - /** * Class PVECluster - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECluster { + class PVECluster + { /** * @ignore @@ -142,7 +140,8 @@ class PVECluster { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -150,263 +149,248 @@ function __construct($client) { * @ignore */ private $replication; - /** * Get ClusterReplication * @return PVEClusterReplication */ - public function getReplication() { + public function getReplication() + { return $this->replication ?: ($this->replication = new PVEClusterReplication($this->client)); } - /** * @ignore */ private $metrics; - /** * Get ClusterMetrics * @return PVEClusterMetrics */ - public function getMetrics() { + public function getMetrics() + { return $this->metrics ?: ($this->metrics = new PVEClusterMetrics($this->client)); } - /** * @ignore */ private $notifications; - /** * Get ClusterNotifications * @return PVEClusterNotifications */ - public function getNotifications() { + public function getNotifications() + { return $this->notifications ?: ($this->notifications = new PVEClusterNotifications($this->client)); } - /** * @ignore */ private $config; - /** * Get ClusterConfig * @return PVEClusterConfig */ - public function getConfig() { + public function getConfig() + { return $this->config ?: ($this->config = new PVEClusterConfig($this->client)); } - /** * @ignore */ private $firewall; - /** * Get ClusterFirewall * @return PVEClusterFirewall */ - public function getFirewall() { + public function getFirewall() + { return $this->firewall ?: ($this->firewall = new PVEClusterFirewall($this->client)); } - /** * @ignore */ private $backup; - /** * Get ClusterBackup * @return PVEClusterBackup */ - public function getBackup() { + public function getBackup() + { return $this->backup ?: ($this->backup = new PVEClusterBackup($this->client)); } - /** * @ignore */ private $backupInfo; - /** * Get ClusterBackupInfo * @return PVEClusterBackupInfo */ - public function getBackupInfo() { + public function getBackupInfo() + { return $this->backupInfo ?: ($this->backupInfo = new PVEClusterBackupInfo($this->client)); } - /** * @ignore */ private $ha; - /** * Get ClusterHa * @return PVEClusterHa */ - public function getHa() { + public function getHa() + { return $this->ha ?: ($this->ha = new PVEClusterHa($this->client)); } - /** * @ignore */ private $acme; - /** * Get ClusterAcme * @return PVEClusterAcme */ - public function getAcme() { + public function getAcme() + { return $this->acme ?: ($this->acme = new PVEClusterAcme($this->client)); } - /** * @ignore */ private $ceph; - /** * Get ClusterCeph * @return PVEClusterCeph */ - public function getCeph() { + public function getCeph() + { return $this->ceph ?: ($this->ceph = new PVEClusterCeph($this->client)); } - /** * @ignore */ private $jobs; - /** * Get ClusterJobs * @return PVEClusterJobs */ - public function getJobs() { + public function getJobs() + { return $this->jobs ?: ($this->jobs = new PVEClusterJobs($this->client)); } - /** * @ignore */ private $mapping; - /** * Get ClusterMapping * @return PVEClusterMapping */ - public function getMapping() { + public function getMapping() + { return $this->mapping ?: ($this->mapping = new PVEClusterMapping($this->client)); } - /** * @ignore */ private $sdn; - /** * Get ClusterSdn * @return PVEClusterSdn */ - public function getSdn() { + public function getSdn() + { return $this->sdn ?: ($this->sdn = new PVEClusterSdn($this->client)); } - /** * @ignore */ private $log; - /** * Get ClusterLog * @return PVEClusterLog */ - public function getLog() { + public function getLog() + { return $this->log ?: ($this->log = new PVEClusterLog($this->client)); } - /** * @ignore */ private $resources; - /** * Get ClusterResources * @return PVEClusterResources */ - public function getResources() { + public function getResources() + { return $this->resources ?: ($this->resources = new PVEClusterResources($this->client)); } - /** * @ignore */ private $tasks; - /** * Get ClusterTasks * @return PVEClusterTasks */ - public function getTasks() { + public function getTasks() + { return $this->tasks ?: ($this->tasks = new PVEClusterTasks($this->client)); } - /** * @ignore */ private $options; - /** * Get ClusterOptions * @return PVEClusterOptions */ - public function getOptions() { + public function getOptions() + { return $this->options ?: ($this->options = new PVEClusterOptions($this->client)); } - /** * @ignore */ private $status; - /** * Get ClusterStatus * @return PVEClusterStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEClusterStatus($this->client)); } - /** * @ignore */ private $nextid; - /** * Get ClusterNextid * @return PVEClusterNextid */ - public function getNextid() { + public function getNextid() + { return $this->nextid ?: ($this->nextid = new PVEClusterNextid($this->client)); } + /** * Cluster index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster"); } } - /** * Class PVEClusterReplication - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterReplication { + class PVEClusterReplication + { /** * @ignore @@ -416,16 +400,19 @@ class PVEClusterReplication { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemReplicationClusterId * @param id * @return PVEItemReplicationClusterId */ - public function get($id) { + public function get($id) + { return new PVEItemReplicationClusterId($this->client, $id); } @@ -433,10 +420,11 @@ public function get($id) { * List replication jobs. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/replication"); } - /** * Create a new replication job * @param string $id Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'. @@ -452,8 +440,11 @@ public function index() { * @param string $source For internal use, to detect if the guest was stolen. * @return Result */ - public function create($id, $target, $type, $comment = null, $disable = null, $rate = null, $remove_job = null, $schedule = null, $source = null) { - $params = ['id' => $id, + + public function create($id, $target, $type, $comment = null, $disable = null, $rate = null, $remove_job = null, $schedule = null, $source = null) + { + $params = [ + 'id' => $id, 'target' => $target, 'type' => $type, 'comment' => $comment, @@ -461,22 +452,22 @@ public function create($id, $target, $type, $comment = null, $disable = null, $r 'rate' => $rate, 'remove_job' => $remove_job, 'schedule' => $schedule, - 'source' => $source]; + 'source' => $source + ]; return $this->client->create("/cluster/replication", $params); } } - /** * Class PVEItemReplicationClusterId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemReplicationClusterId { + class PVEItemReplicationClusterId + { /** * @ignore */ private $id; - /** * @ignore */ @@ -485,31 +476,38 @@ class PVEItemReplicationClusterId { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } + + /** * Mark replication job for removal. * @param bool $force Will remove the jobconfig entry, but will not cleanup. * @param bool $keep Keep replicated data at target (do not remove). * @return Result */ - public function delete($force = null, $keep = null) { - $params = ['force' => $force, - 'keep' => $keep]; + + public function delete($force = null, $keep = null) + { + $params = [ + 'force' => $force, + 'keep' => $keep + ]; return $this->client->delete("/cluster/replication/{$this->id}", $params); } - /** * Read replication job configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/cluster/replication/{$this->id}"); } - /** * Update replication job configuration. * @param string $comment Description. @@ -523,24 +521,29 @@ public function read() { * @param string $source For internal use, to detect if the guest was stolen. * @return Result */ - public function update($comment = null, $delete = null, $digest = null, $disable = null, $rate = null, $remove_job = null, $schedule = null, $source = null) { - $params = ['comment' => $comment, + + public function update($comment = null, $delete = null, $digest = null, $disable = null, $rate = null, $remove_job = null, $schedule = null, $source = null) + { + $params = [ + 'comment' => $comment, 'delete' => $delete, 'digest' => $digest, 'disable' => $disable, 'rate' => $rate, 'remove_job' => $remove_job, 'schedule' => $schedule, - 'source' => $source]; + 'source' => $source + ]; return $this->client->set("/cluster/replication/{$this->id}", $params); } } /** * Class PVEClusterMetrics - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterMetrics { + class PVEClusterMetrics + { /** * @ignore @@ -550,7 +553,8 @@ class PVEClusterMetrics { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -558,29 +562,32 @@ function __construct($client) { * @ignore */ private $server; - /** * Get MetricsClusterServer * @return PVEMetricsClusterServer */ - public function getServer() { + public function getServer() + { return $this->server ?: ($this->server = new PVEMetricsClusterServer($this->client)); } + /** * Metrics index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/metrics"); } } - /** * Class PVEMetricsClusterServer - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEMetricsClusterServer { + class PVEMetricsClusterServer + { /** * @ignore @@ -590,16 +597,19 @@ class PVEMetricsClusterServer { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemServerMetricsClusterId * @param id * @return PVEItemServerMetricsClusterId */ - public function get($id) { + public function get($id) + { return new PVEItemServerMetricsClusterId($this->client, $id); } @@ -607,22 +617,23 @@ public function get($id) { * List configured metric servers. * @return Result */ - public function serverIndex() { + + public function serverIndex() + { return $this->client->get("/cluster/metrics/server"); } } - /** * Class PVEItemServerMetricsClusterId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemServerMetricsClusterId { + class PVEItemServerMetricsClusterId + { /** * @ignore */ private $id; - /** * @ignore */ @@ -631,27 +642,32 @@ class PVEItemServerMetricsClusterId { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } + + /** * Remove Metric server. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/metrics/server/{$this->id}"); } - /** * Read metric server configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/cluster/metrics/server/{$this->id}"); } - /** * Create a new external metric server config * @param int $port server network port @@ -661,7 +677,7 @@ public function read() { * @param string $api_path_prefix An API path prefix inserted between '<host>:<port>/' and '/api2/'. Can be useful if the InfluxDB service runs behind a reverse proxy. * @param string $bucket The InfluxDB bucket/db. Only necessary when using the http v2 api. * @param bool $disable Flag to disable the plugin. - * @param string $influxdbproto + * @param string $influxdbproto * Enum: udp,http,https * @param int $max_body_size InfluxDB max-body-size in bytes. Requests are batched up to this size. * @param int $mtu MTU for metrics transmission over UDP @@ -674,8 +690,11 @@ public function read() { * @param bool $verify_certificate Set to 0 to disable certificate verification for https endpoints. * @return Result */ - public function create($port, $server, $type, $api_path_prefix = null, $bucket = null, $disable = null, $influxdbproto = null, $max_body_size = null, $mtu = null, $organization = null, $path = null, $proto = null, $timeout = null, $token = null, $verify_certificate = null) { - $params = ['port' => $port, + + public function create($port, $server, $type, $api_path_prefix = null, $bucket = null, $disable = null, $influxdbproto = null, $max_body_size = null, $mtu = null, $organization = null, $path = null, $proto = null, $timeout = null, $token = null, $verify_certificate = null) + { + $params = [ + 'port' => $port, 'server' => $server, 'type' => $type, 'api-path-prefix' => $api_path_prefix, @@ -689,10 +708,10 @@ public function create($port, $server, $type, $api_path_prefix = null, $bucket = 'proto' => $proto, 'timeout' => $timeout, 'token' => $token, - 'verify-certificate' => $verify_certificate]; + 'verify-certificate' => $verify_certificate + ]; return $this->client->create("/cluster/metrics/server/{$this->id}", $params); } - /** * Update metric server configuration. * @param int $port server network port @@ -702,7 +721,7 @@ public function create($port, $server, $type, $api_path_prefix = null, $bucket = * @param string $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param bool $disable Flag to disable the plugin. - * @param string $influxdbproto + * @param string $influxdbproto * Enum: udp,http,https * @param int $max_body_size InfluxDB max-body-size in bytes. Requests are batched up to this size. * @param int $mtu MTU for metrics transmission over UDP @@ -715,8 +734,11 @@ public function create($port, $server, $type, $api_path_prefix = null, $bucket = * @param bool $verify_certificate Set to 0 to disable certificate verification for https endpoints. * @return Result */ - public function update($port, $server, $api_path_prefix = null, $bucket = null, $delete = null, $digest = null, $disable = null, $influxdbproto = null, $max_body_size = null, $mtu = null, $organization = null, $path = null, $proto = null, $timeout = null, $token = null, $verify_certificate = null) { - $params = ['port' => $port, + + public function update($port, $server, $api_path_prefix = null, $bucket = null, $delete = null, $digest = null, $disable = null, $influxdbproto = null, $max_body_size = null, $mtu = null, $organization = null, $path = null, $proto = null, $timeout = null, $token = null, $verify_certificate = null) + { + $params = [ + 'port' => $port, 'server' => $server, 'api-path-prefix' => $api_path_prefix, 'bucket' => $bucket, @@ -731,16 +753,18 @@ public function update($port, $server, $api_path_prefix = null, $bucket = null, 'proto' => $proto, 'timeout' => $timeout, 'token' => $token, - 'verify-certificate' => $verify_certificate]; + 'verify-certificate' => $verify_certificate + ]; return $this->client->set("/cluster/metrics/server/{$this->id}", $params); } } /** * Class PVEClusterNotifications - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterNotifications { + class PVEClusterNotifications + { /** * @ignore @@ -750,7 +774,8 @@ class PVEClusterNotifications { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -758,55 +783,56 @@ function __construct($client) { * @ignore */ private $endpoints; - /** * Get NotificationsClusterEndpoints * @return PVENotificationsClusterEndpoints */ - public function getEndpoints() { + public function getEndpoints() + { return $this->endpoints ?: ($this->endpoints = new PVENotificationsClusterEndpoints($this->client)); } - /** * @ignore */ private $targets; - /** * Get NotificationsClusterTargets * @return PVENotificationsClusterTargets */ - public function getTargets() { + public function getTargets() + { return $this->targets ?: ($this->targets = new PVENotificationsClusterTargets($this->client)); } - /** * @ignore */ private $matchers; - /** * Get NotificationsClusterMatchers * @return PVENotificationsClusterMatchers */ - public function getMatchers() { + public function getMatchers() + { return $this->matchers ?: ($this->matchers = new PVENotificationsClusterMatchers($this->client)); } + /** * Index for notification-related API endpoints. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/notifications"); } } - /** * Class PVENotificationsClusterEndpoints - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENotificationsClusterEndpoints { + class PVENotificationsClusterEndpoints + { /** * @ignore @@ -816,7 +842,8 @@ class PVENotificationsClusterEndpoints { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -824,55 +851,56 @@ function __construct($client) { * @ignore */ private $sendmail; - /** * Get EndpointsNotificationsClusterSendmail * @return PVEEndpointsNotificationsClusterSendmail */ - public function getSendmail() { + public function getSendmail() + { return $this->sendmail ?: ($this->sendmail = new PVEEndpointsNotificationsClusterSendmail($this->client)); } - /** * @ignore */ private $gotify; - /** * Get EndpointsNotificationsClusterGotify * @return PVEEndpointsNotificationsClusterGotify */ - public function getGotify() { + public function getGotify() + { return $this->gotify ?: ($this->gotify = new PVEEndpointsNotificationsClusterGotify($this->client)); } - /** * @ignore */ private $smtp; - /** * Get EndpointsNotificationsClusterSmtp * @return PVEEndpointsNotificationsClusterSmtp */ - public function getSmtp() { + public function getSmtp() + { return $this->smtp ?: ($this->smtp = new PVEEndpointsNotificationsClusterSmtp($this->client)); } + /** * Index for all available endpoint types. * @return Result */ - public function endpointsIndex() { + + public function endpointsIndex() + { return $this->client->get("/cluster/notifications/endpoints"); } } - /** * Class PVEEndpointsNotificationsClusterSendmail - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEEndpointsNotificationsClusterSendmail { + class PVEEndpointsNotificationsClusterSendmail + { /** * @ignore @@ -882,16 +910,19 @@ class PVEEndpointsNotificationsClusterSendmail { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemSendmailEndpointsNotificationsClusterName * @param name * @return PVEItemSendmailEndpointsNotificationsClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemSendmailEndpointsNotificationsClusterName($this->client, $name); } @@ -899,10 +930,11 @@ public function get($name) { * Returns a list of all sendmail endpoints * @return Result */ - public function getSendmailEndpoints() { + + public function getSendmailEndpoints() + { return $this->client->get("/cluster/notifications/endpoints/sendmail"); } - /** * Create a new sendmail endpoint * @param string $name The name of the endpoint. @@ -910,33 +942,36 @@ public function getSendmailEndpoints() { * @param string $comment Comment * @param bool $disable Disable this target * @param string $from_address `From` address for the mail - * @param string $mailto List of email recipients - * @param string $mailto_user List of users + * @param array $mailto List of email recipients + * @param array $mailto_user List of users * @return Result */ - public function createSendmailEndpoint($name, $author = null, $comment = null, $disable = null, $from_address = null, $mailto = null, $mailto_user = null) { - $params = ['name' => $name, + + public function createSendmailEndpoint($name, $author = null, $comment = null, $disable = null, $from_address = null, $mailto = null, $mailto_user = null) + { + $params = [ + 'name' => $name, 'author' => $author, 'comment' => $comment, 'disable' => $disable, 'from-address' => $from_address, 'mailto' => $mailto, - 'mailto-user' => $mailto_user]; + 'mailto-user' => $mailto_user + ]; return $this->client->create("/cluster/notifications/endpoints/sendmail", $params); } } - /** * Class PVEItemSendmailEndpointsNotificationsClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemSendmailEndpointsNotificationsClusterName { + class PVEItemSendmailEndpointsNotificationsClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -945,57 +980,67 @@ class PVEItemSendmailEndpointsNotificationsClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + + /** * Remove sendmail endpoint * @return Result */ - public function deleteSendmailEndpoint() { + + public function deleteSendmailEndpoint() + { return $this->client->delete("/cluster/notifications/endpoints/sendmail/{$this->name}"); } - /** * Return a specific sendmail endpoint * @return Result */ - public function getSendmailEndpoint() { + + public function getSendmailEndpoint() + { return $this->client->get("/cluster/notifications/endpoints/sendmail/{$this->name}"); } - /** * Update existing sendmail endpoint * @param string $author Author of the mail * @param string $comment Comment - * @param string $delete A list of settings you want to delete. + * @param array $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param bool $disable Disable this target * @param string $from_address `From` address for the mail - * @param string $mailto List of email recipients - * @param string $mailto_user List of users + * @param array $mailto List of email recipients + * @param array $mailto_user List of users * @return Result */ - public function updateSendmailEndpoint($author = null, $comment = null, $delete = null, $digest = null, $disable = null, $from_address = null, $mailto = null, $mailto_user = null) { - $params = ['author' => $author, + + public function updateSendmailEndpoint($author = null, $comment = null, $delete = null, $digest = null, $disable = null, $from_address = null, $mailto = null, $mailto_user = null) + { + $params = [ + 'author' => $author, 'comment' => $comment, 'delete' => $delete, 'digest' => $digest, 'disable' => $disable, 'from-address' => $from_address, 'mailto' => $mailto, - 'mailto-user' => $mailto_user]; + 'mailto-user' => $mailto_user + ]; return $this->client->set("/cluster/notifications/endpoints/sendmail/{$this->name}", $params); } } /** * Class PVEEndpointsNotificationsClusterGotify - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEEndpointsNotificationsClusterGotify { + class PVEEndpointsNotificationsClusterGotify + { /** * @ignore @@ -1005,16 +1050,19 @@ class PVEEndpointsNotificationsClusterGotify { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemGotifyEndpointsNotificationsClusterName * @param name * @return PVEItemGotifyEndpointsNotificationsClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemGotifyEndpointsNotificationsClusterName($this->client, $name); } @@ -1022,10 +1070,11 @@ public function get($name) { * Returns a list of all gotify endpoints * @return Result */ - public function getGotifyEndpoints() { + + public function getGotifyEndpoints() + { return $this->client->get("/cluster/notifications/endpoints/gotify"); } - /** * Create a new gotify endpoint * @param string $name The name of the endpoint. @@ -1035,27 +1084,30 @@ public function getGotifyEndpoints() { * @param bool $disable Disable this target * @return Result */ - public function createGotifyEndpoint($name, $server, $token, $comment = null, $disable = null) { - $params = ['name' => $name, + + public function createGotifyEndpoint($name, $server, $token, $comment = null, $disable = null) + { + $params = [ + 'name' => $name, 'server' => $server, 'token' => $token, 'comment' => $comment, - 'disable' => $disable]; + 'disable' => $disable + ]; return $this->client->create("/cluster/notifications/endpoints/gotify", $params); } } - /** * Class PVEItemGotifyEndpointsNotificationsClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemGotifyEndpointsNotificationsClusterName { + class PVEItemGotifyEndpointsNotificationsClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -1064,53 +1116,63 @@ class PVEItemGotifyEndpointsNotificationsClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + + /** * Remove gotify endpoint * @return Result */ - public function deleteGotifyEndpoint() { + + public function deleteGotifyEndpoint() + { return $this->client->delete("/cluster/notifications/endpoints/gotify/{$this->name}"); } - /** * Return a specific gotify endpoint * @return Result */ - public function getGotifyEndpoint() { + + public function getGotifyEndpoint() + { return $this->client->get("/cluster/notifications/endpoints/gotify/{$this->name}"); } - /** * Update existing gotify endpoint * @param string $comment Comment - * @param string $delete A list of settings you want to delete. + * @param array $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param bool $disable Disable this target * @param string $server Server URL * @param string $token Secret token * @return Result */ - public function updateGotifyEndpoint($comment = null, $delete = null, $digest = null, $disable = null, $server = null, $token = null) { - $params = ['comment' => $comment, + + public function updateGotifyEndpoint($comment = null, $delete = null, $digest = null, $disable = null, $server = null, $token = null) + { + $params = [ + 'comment' => $comment, 'delete' => $delete, 'digest' => $digest, 'disable' => $disable, 'server' => $server, - 'token' => $token]; + 'token' => $token + ]; return $this->client->set("/cluster/notifications/endpoints/gotify/{$this->name}", $params); } } /** * Class PVEEndpointsNotificationsClusterSmtp - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEEndpointsNotificationsClusterSmtp { + class PVEEndpointsNotificationsClusterSmtp + { /** * @ignore @@ -1120,16 +1182,19 @@ class PVEEndpointsNotificationsClusterSmtp { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemSmtpEndpointsNotificationsClusterName * @param name * @return PVEItemSmtpEndpointsNotificationsClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemSmtpEndpointsNotificationsClusterName($this->client, $name); } @@ -1137,10 +1202,11 @@ public function get($name) { * Returns a list of all smtp endpoints * @return Result */ - public function getSmtpEndpoints() { + + public function getSmtpEndpoints() + { return $this->client->get("/cluster/notifications/endpoints/smtp"); } - /** * Create a new smtp endpoint * @param string $from_address `From` address for the mail @@ -1149,8 +1215,8 @@ public function getSmtpEndpoints() { * @param string $author Author of the mail. Defaults to 'Proxmox VE'. * @param string $comment Comment * @param bool $disable Disable this target - * @param string $mailto List of email recipients - * @param string $mailto_user List of users + * @param array $mailto List of email recipients + * @param array $mailto_user List of users * @param string $mode Determine which encryption method shall be used for the connection. * Enum: insecure,starttls,tls * @param string $password Password for SMTP authentication @@ -1158,8 +1224,11 @@ public function getSmtpEndpoints() { * @param string $username Username for SMTP authentication * @return Result */ - public function createSmtpEndpoint($from_address, $name, $server, $author = null, $comment = null, $disable = null, $mailto = null, $mailto_user = null, $mode = null, $password = null, $port = null, $username = null) { - $params = ['from-address' => $from_address, + + public function createSmtpEndpoint($from_address, $name, $server, $author = null, $comment = null, $disable = null, $mailto = null, $mailto_user = null, $mode = null, $password = null, $port = null, $username = null) + { + $params = [ + 'from-address' => $from_address, 'name' => $name, 'server' => $server, 'author' => $author, @@ -1170,22 +1239,22 @@ public function createSmtpEndpoint($from_address, $name, $server, $author = null 'mode' => $mode, 'password' => $password, 'port' => $port, - 'username' => $username]; + 'username' => $username + ]; return $this->client->create("/cluster/notifications/endpoints/smtp", $params); } } - /** * Class PVEItemSmtpEndpointsNotificationsClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemSmtpEndpointsNotificationsClusterName { + class PVEItemSmtpEndpointsNotificationsClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -1194,37 +1263,42 @@ class PVEItemSmtpEndpointsNotificationsClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + + /** * Remove smtp endpoint * @return Result */ - public function deleteSmtpEndpoint() { + + public function deleteSmtpEndpoint() + { return $this->client->delete("/cluster/notifications/endpoints/smtp/{$this->name}"); } - /** * Return a specific smtp endpoint * @return Result */ - public function getSmtpEndpoint() { + + public function getSmtpEndpoint() + { return $this->client->get("/cluster/notifications/endpoints/smtp/{$this->name}"); } - /** * Update existing smtp endpoint * @param string $author Author of the mail. Defaults to 'Proxmox VE'. * @param string $comment Comment - * @param string $delete A list of settings you want to delete. + * @param array $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param bool $disable Disable this target * @param string $from_address `From` address for the mail - * @param string $mailto List of email recipients - * @param string $mailto_user List of users + * @param array $mailto List of email recipients + * @param array $mailto_user List of users * @param string $mode Determine which encryption method shall be used for the connection. * Enum: insecure,starttls,tls * @param string $password Password for SMTP authentication @@ -1233,8 +1307,11 @@ public function getSmtpEndpoint() { * @param string $username Username for SMTP authentication * @return Result */ - public function updateSmtpEndpoint($author = null, $comment = null, $delete = null, $digest = null, $disable = null, $from_address = null, $mailto = null, $mailto_user = null, $mode = null, $password = null, $port = null, $server = null, $username = null) { - $params = ['author' => $author, + + public function updateSmtpEndpoint($author = null, $comment = null, $delete = null, $digest = null, $disable = null, $from_address = null, $mailto = null, $mailto_user = null, $mode = null, $password = null, $port = null, $server = null, $username = null) + { + $params = [ + 'author' => $author, 'comment' => $comment, 'delete' => $delete, 'digest' => $digest, @@ -1246,16 +1323,18 @@ public function updateSmtpEndpoint($author = null, $comment = null, $delete = nu 'password' => $password, 'port' => $port, 'server' => $server, - 'username' => $username]; + 'username' => $username + ]; return $this->client->set("/cluster/notifications/endpoints/smtp/{$this->name}", $params); } } /** * Class PVENotificationsClusterTargets - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENotificationsClusterTargets { + class PVENotificationsClusterTargets + { /** * @ignore @@ -1265,16 +1344,19 @@ class PVENotificationsClusterTargets { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemTargetsNotificationsClusterName * @param name * @return PVEItemTargetsNotificationsClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemTargetsNotificationsClusterName($this->client, $name); } @@ -1282,22 +1364,23 @@ public function get($name) { * Returns a list of all entities that can be used as notification targets. * @return Result */ - public function getAllTargets() { + + public function getAllTargets() + { return $this->client->get("/cluster/notifications/targets"); } } - /** * Class PVEItemTargetsNotificationsClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemTargetsNotificationsClusterName { + class PVEItemTargetsNotificationsClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -1306,7 +1389,8 @@ class PVEItemTargetsNotificationsClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } @@ -1315,27 +1399,26 @@ function __construct($client, $name) { * @ignore */ private $test; - /** * Get NameTargetsNotificationsClusterTest * @return PVENameTargetsNotificationsClusterTest */ - public function getTest() { + public function getTest() + { return $this->test ?: ($this->test = new PVENameTargetsNotificationsClusterTest($this->client, $this->name)); } } - /** * Class PVENameTargetsNotificationsClusterTest - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENameTargetsNotificationsClusterTest { + class PVENameTargetsNotificationsClusterTest + { /** * @ignore */ private $name; - /** * @ignore */ @@ -1344,25 +1427,31 @@ class PVENameTargetsNotificationsClusterTest { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + + /** * Send a test notification to a provided target. * @return Result */ - public function testTarget() { + + public function testTarget() + { return $this->client->create("/cluster/notifications/targets/{$this->name}/test"); } } /** * Class PVENotificationsClusterMatchers - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENotificationsClusterMatchers { + class PVENotificationsClusterMatchers + { /** * @ignore @@ -1372,16 +1461,19 @@ class PVENotificationsClusterMatchers { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemMatchersNotificationsClusterName * @param name * @return PVEItemMatchersNotificationsClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemMatchersNotificationsClusterName($this->client, $name); } @@ -1389,26 +1481,30 @@ public function get($name) { * Returns a list of all matchers * @return Result */ - public function getMatchers() { + + public function getMatchers() + { return $this->client->get("/cluster/notifications/matchers"); } - /** * Create a new matcher * @param string $name Name of the matcher. * @param string $comment Comment * @param bool $disable Disable this matcher * @param bool $invert_match Invert match of the whole matcher - * @param string $match_calendar Match notification timestamp - * @param string $match_field Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> - * @param string $match_severity Notification severities to match + * @param array $match_calendar Match notification timestamp + * @param array $match_field Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> + * @param array $match_severity Notification severities to match * @param string $mode Choose between 'all' and 'any' for when multiple properties are specified * Enum: all,any - * @param string $target Targets to notify on match + * @param array $target Targets to notify on match * @return Result */ - public function createMatcher($name, $comment = null, $disable = null, $invert_match = null, $match_calendar = null, $match_field = null, $match_severity = null, $mode = null, $target = null) { - $params = ['name' => $name, + + public function createMatcher($name, $comment = null, $disable = null, $invert_match = null, $match_calendar = null, $match_field = null, $match_severity = null, $mode = null, $target = null) + { + $params = [ + 'name' => $name, 'comment' => $comment, 'disable' => $disable, 'invert-match' => $invert_match, @@ -1416,22 +1512,22 @@ public function createMatcher($name, $comment = null, $disable = null, $invert_m 'match-field' => $match_field, 'match-severity' => $match_severity, 'mode' => $mode, - 'target' => $target]; + 'target' => $target + ]; return $this->client->create("/cluster/notifications/matchers", $params); } } - /** * Class PVEItemMatchersNotificationsClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemMatchersNotificationsClusterName { + class PVEItemMatchersNotificationsClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -1440,44 +1536,52 @@ class PVEItemMatchersNotificationsClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + + /** * Remove matcher * @return Result */ - public function deleteMatcher() { + + public function deleteMatcher() + { return $this->client->delete("/cluster/notifications/matchers/{$this->name}"); } - /** * Return a specific matcher * @return Result */ - public function getMatcher() { + + public function getMatcher() + { return $this->client->get("/cluster/notifications/matchers/{$this->name}"); } - /** * Update existing matcher * @param string $comment Comment - * @param string $delete A list of settings you want to delete. + * @param array $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param bool $disable Disable this matcher * @param bool $invert_match Invert match of the whole matcher - * @param string $match_calendar Match notification timestamp - * @param string $match_field Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> - * @param string $match_severity Notification severities to match + * @param array $match_calendar Match notification timestamp + * @param array $match_field Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> + * @param array $match_severity Notification severities to match * @param string $mode Choose between 'all' and 'any' for when multiple properties are specified * Enum: all,any - * @param string $target Targets to notify on match + * @param array $target Targets to notify on match * @return Result */ - public function updateMatcher($comment = null, $delete = null, $digest = null, $disable = null, $invert_match = null, $match_calendar = null, $match_field = null, $match_severity = null, $mode = null, $target = null) { - $params = ['comment' => $comment, + + public function updateMatcher($comment = null, $delete = null, $digest = null, $disable = null, $invert_match = null, $match_calendar = null, $match_field = null, $match_severity = null, $mode = null, $target = null) + { + $params = [ + 'comment' => $comment, 'delete' => $delete, 'digest' => $digest, 'disable' => $disable, @@ -1486,16 +1590,18 @@ public function updateMatcher($comment = null, $delete = null, $digest = null, $ 'match-field' => $match_field, 'match-severity' => $match_severity, 'mode' => $mode, - 'target' => $target]; + 'target' => $target + ]; return $this->client->set("/cluster/notifications/matchers/{$this->name}", $params); } } /** * Class PVEClusterConfig - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterConfig { + class PVEClusterConfig + { /** * @ignore @@ -1505,7 +1611,8 @@ class PVEClusterConfig { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -1513,75 +1620,73 @@ function __construct($client) { * @ignore */ private $apiversion; - /** * Get ConfigClusterApiversion * @return PVEConfigClusterApiversion */ - public function getApiversion() { + public function getApiversion() + { return $this->apiversion ?: ($this->apiversion = new PVEConfigClusterApiversion($this->client)); } - /** * @ignore */ private $nodes; - /** * Get ConfigClusterNodes * @return PVEConfigClusterNodes */ - public function getNodes() { + public function getNodes() + { return $this->nodes ?: ($this->nodes = new PVEConfigClusterNodes($this->client)); } - /** * @ignore */ private $join; - /** * Get ConfigClusterJoin * @return PVEConfigClusterJoin */ - public function getJoin() { + public function getJoin() + { return $this->join ?: ($this->join = new PVEConfigClusterJoin($this->client)); } - /** * @ignore */ private $totem; - /** * Get ConfigClusterTotem * @return PVEConfigClusterTotem */ - public function getTotem() { + public function getTotem() + { return $this->totem ?: ($this->totem = new PVEConfigClusterTotem($this->client)); } - /** * @ignore */ private $qdevice; - /** * Get ConfigClusterQdevice * @return PVEConfigClusterQdevice */ - public function getQdevice() { + public function getQdevice() + { return $this->qdevice ?: ($this->qdevice = new PVEConfigClusterQdevice($this->client)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/config"); } - /** * Generate new cluster configuration. If no links given, default to local IP address as link0. * @param string $clustername The name of the cluster. @@ -1590,20 +1695,24 @@ public function index() { * @param int $votes Number of votes for this node. * @return Result */ - public function create($clustername, $linkN = null, $nodeid = null, $votes = null) { - $params = ['clustername' => $clustername, + + public function create($clustername, $linkN = null, $nodeid = null, $votes = null) + { + $params = [ + 'clustername' => $clustername, 'nodeid' => $nodeid, - 'votes' => $votes]; + 'votes' => $votes + ]; $this->client->addIndexedParameter($params, 'link', $linkN); return $this->client->create("/cluster/config", $params); } } - /** * Class PVEConfigClusterApiversion - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEConfigClusterApiversion { + class PVEConfigClusterApiversion + { /** * @ignore @@ -1613,24 +1722,30 @@ class PVEConfigClusterApiversion { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Return the version of the cluster join API available on this node. * @return Result */ - public function joinApiVersion() { + + public function joinApiVersion() + { return $this->client->get("/cluster/config/apiversion"); } } /** * Class PVEConfigClusterNodes - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEConfigClusterNodes { + class PVEConfigClusterNodes + { /** * @ignore @@ -1640,16 +1755,19 @@ class PVEConfigClusterNodes { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemNodesConfigClusterNode * @param node * @return PVEItemNodesConfigClusterNode */ - public function get($node) { + public function get($node) + { return new PVEItemNodesConfigClusterNode($this->client, $node); } @@ -1657,22 +1775,23 @@ public function get($node) { * Corosync node list. * @return Result */ - public function nodes() { + + public function nodes() + { return $this->client->get("/cluster/config/nodes"); } } - /** * Class PVEItemNodesConfigClusterNode - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemNodesConfigClusterNode { + class PVEItemNodesConfigClusterNode + { /** * @ignore */ private $node; - /** * @ignore */ @@ -1681,19 +1800,23 @@ class PVEItemNodesConfigClusterNode { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Removes a node from the cluster configuration. * @return Result */ - public function delnode() { + + public function delnode() + { return $this->client->delete("/cluster/config/nodes/{$this->node}"); } - /** * Adds a node to the cluster configuration. This call is for internal use. * @param int $apiversion The JOIN_API_VERSION of the new node. @@ -1704,12 +1827,16 @@ public function delnode() { * @param int $votes Number of votes for this node * @return Result */ - public function addnode($apiversion = null, $force = null, $linkN = null, $new_node_ip = null, $nodeid = null, $votes = null) { - $params = ['apiversion' => $apiversion, + + public function addnode($apiversion = null, $force = null, $linkN = null, $new_node_ip = null, $nodeid = null, $votes = null) + { + $params = [ + 'apiversion' => $apiversion, 'force' => $force, 'new_node_ip' => $new_node_ip, 'nodeid' => $nodeid, - 'votes' => $votes]; + 'votes' => $votes + ]; $this->client->addIndexedParameter($params, 'link', $linkN); return $this->client->create("/cluster/config/nodes/{$this->node}", $params); } @@ -1717,9 +1844,10 @@ public function addnode($apiversion = null, $force = null, $linkN = null, $new_n /** * Class PVEConfigClusterJoin - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEConfigClusterJoin { + class PVEConfigClusterJoin + { /** * @ignore @@ -1729,20 +1857,24 @@ class PVEConfigClusterJoin { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get information needed to join this cluster over the connected node. - * @param string $node The node for which the joinee gets the nodeinfo. + * @param string $node The node for which the joinee gets the nodeinfo. * @return Result */ - public function joinInfo($node = null) { + + public function joinInfo($node = null) + { $params = ['node' => $node]; return $this->client->get("/cluster/config/join", $params); } - /** * Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). * @param string $fingerprint Certificate SHA 256 fingerprint. @@ -1754,13 +1886,17 @@ public function joinInfo($node = null) { * @param int $votes Number of votes for this node * @return Result */ - public function join($fingerprint, $hostname, $password, $force = null, $linkN = null, $nodeid = null, $votes = null) { - $params = ['fingerprint' => $fingerprint, + + public function join($fingerprint, $hostname, $password, $force = null, $linkN = null, $nodeid = null, $votes = null) + { + $params = [ + 'fingerprint' => $fingerprint, 'hostname' => $hostname, 'password' => $password, 'force' => $force, 'nodeid' => $nodeid, - 'votes' => $votes]; + 'votes' => $votes + ]; $this->client->addIndexedParameter($params, 'link', $linkN); return $this->client->create("/cluster/config/join", $params); } @@ -1768,9 +1904,10 @@ public function join($fingerprint, $hostname, $password, $force = null, $linkN = /** * Class PVEConfigClusterTotem - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEConfigClusterTotem { + class PVEConfigClusterTotem + { /** * @ignore @@ -1780,24 +1917,30 @@ class PVEConfigClusterTotem { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get corosync totem protocol settings. * @return Result */ - public function totem() { + + public function totem() + { return $this->client->get("/cluster/config/totem"); } } /** * Class PVEConfigClusterQdevice - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEConfigClusterQdevice { + class PVEConfigClusterQdevice + { /** * @ignore @@ -1807,24 +1950,30 @@ class PVEConfigClusterQdevice { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get QDevice status * @return Result */ - public function status() { + + public function status() + { return $this->client->get("/cluster/config/qdevice"); } } /** * Class PVEClusterFirewall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterFirewall { + class PVEClusterFirewall + { /** * @ignore @@ -1834,7 +1983,8 @@ class PVEClusterFirewall { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -1842,107 +1992,104 @@ function __construct($client) { * @ignore */ private $groups; - /** * Get FirewallClusterGroups * @return PVEFirewallClusterGroups */ - public function getGroups() { + public function getGroups() + { return $this->groups ?: ($this->groups = new PVEFirewallClusterGroups($this->client)); } - /** * @ignore */ private $rules; - /** * Get FirewallClusterRules * @return PVEFirewallClusterRules */ - public function getRules() { + public function getRules() + { return $this->rules ?: ($this->rules = new PVEFirewallClusterRules($this->client)); } - /** * @ignore */ private $ipset; - /** * Get FirewallClusterIpset * @return PVEFirewallClusterIpset */ - public function getIpset() { + public function getIpset() + { return $this->ipset ?: ($this->ipset = new PVEFirewallClusterIpset($this->client)); } - /** * @ignore */ private $aliases; - /** * Get FirewallClusterAliases * @return PVEFirewallClusterAliases */ - public function getAliases() { + public function getAliases() + { return $this->aliases ?: ($this->aliases = new PVEFirewallClusterAliases($this->client)); } - /** * @ignore */ private $options; - /** * Get FirewallClusterOptions * @return PVEFirewallClusterOptions */ - public function getOptions() { + public function getOptions() + { return $this->options ?: ($this->options = new PVEFirewallClusterOptions($this->client)); } - /** * @ignore */ private $macros; - /** * Get FirewallClusterMacros * @return PVEFirewallClusterMacros */ - public function getMacros() { + public function getMacros() + { return $this->macros ?: ($this->macros = new PVEFirewallClusterMacros($this->client)); } - /** * @ignore */ private $refs; - /** * Get FirewallClusterRefs * @return PVEFirewallClusterRefs */ - public function getRefs() { + public function getRefs() + { return $this->refs ?: ($this->refs = new PVEFirewallClusterRefs($this->client)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/firewall"); } } - /** * Class PVEFirewallClusterGroups - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallClusterGroups { + class PVEFirewallClusterGroups + { /** * @ignore @@ -1952,16 +2099,19 @@ class PVEFirewallClusterGroups { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemGroupsFirewallClusterGroup * @param group * @return PVEItemGroupsFirewallClusterGroup */ - public function get($group) { + public function get($group) + { return new PVEItemGroupsFirewallClusterGroup($this->client, $group); } @@ -1969,38 +2119,42 @@ public function get($group) { * List security groups. * @return Result */ - public function listSecurityGroups() { + + public function listSecurityGroups() + { return $this->client->get("/cluster/firewall/groups"); } - /** * Create new security group. * @param string $group Security Group name. - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $rename Rename/update an existing security group. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing group. * @return Result */ - public function createSecurityGroup($group, $comment = null, $digest = null, $rename = null) { - $params = ['group' => $group, + + public function createSecurityGroup($group, $comment = null, $digest = null, $rename = null) + { + $params = [ + 'group' => $group, 'comment' => $comment, 'digest' => $digest, - 'rename' => $rename]; + 'rename' => $rename + ]; return $this->client->create("/cluster/firewall/groups", $params); } } - /** * Class PVEItemGroupsFirewallClusterGroup - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemGroupsFirewallClusterGroup { + class PVEItemGroupsFirewallClusterGroup + { /** * @ignore */ private $group; - /** * @ignore */ @@ -2009,17 +2163,20 @@ class PVEItemGroupsFirewallClusterGroup { /** * @ignore */ - function __construct($client, $group) { + function __construct($client, $group) + { $this->client = $client; $this->group = $group; } + /** * Get ItemGroupGroupsFirewallClusterPos * @param pos * @return PVEItemGroupGroupsFirewallClusterPos */ - public function get($pos) { + public function get($pos) + { return new PVEItemGroupGroupsFirewallClusterPos($this->client, $this->group, $pos); } @@ -2027,18 +2184,20 @@ public function get($pos) { * Delete security group. * @return Result */ - public function deleteSecurityGroup() { + + public function deleteSecurityGroup() + { return $this->client->delete("/cluster/firewall/groups/{$this->group}"); } - /** * List rules. * @return Result */ - public function getRules() { + + public function getRules() + { return $this->client->get("/cluster/firewall/groups/{$this->group}"); } - /** * Create new rule. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -2060,8 +2219,11 @@ public function getRules() { * @param string $sport Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\d+:\d+', for example '80:85', and you can use comma separated list to match several ports or ranges. * @return Result */ - public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) { - $params = ['action' => $action, + + public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) + { + $params = [ + 'action' => $action, 'type' => $type, 'comment' => $comment, 'dest' => $dest, @@ -2075,16 +2237,17 @@ public function createRule($action, $type, $comment = null, $dest = null, $diges 'pos' => $pos, 'proto' => $proto, 'source' => $source, - 'sport' => $sport]; + 'sport' => $sport + ]; return $this->client->create("/cluster/firewall/groups/{$this->group}", $params); } } - /** * Class PVEItemGroupGroupsFirewallClusterPos - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemGroupGroupsFirewallClusterPos { + class PVEItemGroupGroupsFirewallClusterPos + { /** * @ignore @@ -2095,7 +2258,6 @@ class PVEItemGroupGroupsFirewallClusterPos { * @ignore */ private $pos; - /** * @ignore */ @@ -2104,30 +2266,35 @@ class PVEItemGroupGroupsFirewallClusterPos { /** * @ignore */ - function __construct($client, $group, $pos) { + function __construct($client, $group, $pos) + { $this->client = $client; $this->group = $group; $this->pos = $pos; } + + /** * Delete rule. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function deleteRule($digest = null) { + + public function deleteRule($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/cluster/firewall/groups/{$this->group}/{$this->pos}", $params); } - /** * Get single rule data. * @return Result */ - public function getRule() { + + public function getRule() + { return $this->client->get("/cluster/firewall/groups/{$this->group}/{$this->pos}"); } - /** * Modify rule data. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -2150,8 +2317,11 @@ public function getRule() { * Enum: in,out,group * @return Result */ - public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) { - $params = ['action' => $action, + + public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) + { + $params = [ + 'action' => $action, 'comment' => $comment, 'delete' => $delete, 'dest' => $dest, @@ -2166,16 +2336,18 @@ public function updateRule($action = null, $comment = null, $delete = null, $des 'proto' => $proto, 'source' => $source, 'sport' => $sport, - 'type' => $type]; + 'type' => $type + ]; return $this->client->set("/cluster/firewall/groups/{$this->group}/{$this->pos}", $params); } } /** * Class PVEFirewallClusterRules - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallClusterRules { + class PVEFirewallClusterRules + { /** * @ignore @@ -2185,16 +2357,19 @@ class PVEFirewallClusterRules { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemRulesFirewallClusterPos * @param pos * @return PVEItemRulesFirewallClusterPos */ - public function get($pos) { + public function get($pos) + { return new PVEItemRulesFirewallClusterPos($this->client, $pos); } @@ -2202,10 +2377,11 @@ public function get($pos) { * List rules. * @return Result */ - public function getRules() { + + public function getRules() + { return $this->client->get("/cluster/firewall/rules"); } - /** * Create new rule. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -2227,8 +2403,11 @@ public function getRules() { * @param string $sport Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\d+:\d+', for example '80:85', and you can use comma separated list to match several ports or ranges. * @return Result */ - public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) { - $params = ['action' => $action, + + public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) + { + $params = [ + 'action' => $action, 'type' => $type, 'comment' => $comment, 'dest' => $dest, @@ -2242,22 +2421,22 @@ public function createRule($action, $type, $comment = null, $dest = null, $diges 'pos' => $pos, 'proto' => $proto, 'source' => $source, - 'sport' => $sport]; + 'sport' => $sport + ]; return $this->client->create("/cluster/firewall/rules", $params); } } - /** * Class PVEItemRulesFirewallClusterPos - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemRulesFirewallClusterPos { + class PVEItemRulesFirewallClusterPos + { /** * @ignore */ private $pos; - /** * @ignore */ @@ -2266,29 +2445,34 @@ class PVEItemRulesFirewallClusterPos { /** * @ignore */ - function __construct($client, $pos) { + function __construct($client, $pos) + { $this->client = $client; $this->pos = $pos; } + + /** * Delete rule. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function deleteRule($digest = null) { + + public function deleteRule($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/cluster/firewall/rules/{$this->pos}", $params); } - /** * Get single rule data. * @return Result */ - public function getRule() { + + public function getRule() + { return $this->client->get("/cluster/firewall/rules/{$this->pos}"); } - /** * Modify rule data. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -2311,8 +2495,11 @@ public function getRule() { * Enum: in,out,group * @return Result */ - public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) { - $params = ['action' => $action, + + public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) + { + $params = [ + 'action' => $action, 'comment' => $comment, 'delete' => $delete, 'dest' => $dest, @@ -2327,16 +2514,18 @@ public function updateRule($action = null, $comment = null, $delete = null, $des 'proto' => $proto, 'source' => $source, 'sport' => $sport, - 'type' => $type]; + 'type' => $type + ]; return $this->client->set("/cluster/firewall/rules/{$this->pos}", $params); } } /** * Class PVEFirewallClusterIpset - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallClusterIpset { + class PVEFirewallClusterIpset + { /** * @ignore @@ -2346,16 +2535,19 @@ class PVEFirewallClusterIpset { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemIpsetFirewallClusterName * @param name * @return PVEItemIpsetFirewallClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemIpsetFirewallClusterName($this->client, $name); } @@ -2363,38 +2555,42 @@ public function get($name) { * List IPSets * @return Result */ - public function ipsetIndex() { + + public function ipsetIndex() + { return $this->client->get("/cluster/firewall/ipset"); } - /** * Create new IPSet * @param string $name IP set name. - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $rename Rename an existing IPSet. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing IPSet. * @return Result */ - public function createIpset($name, $comment = null, $digest = null, $rename = null) { - $params = ['name' => $name, + + public function createIpset($name, $comment = null, $digest = null, $rename = null) + { + $params = [ + 'name' => $name, 'comment' => $comment, 'digest' => $digest, - 'rename' => $rename]; + 'rename' => $rename + ]; return $this->client->create("/cluster/firewall/ipset", $params); } } - /** * Class PVEItemIpsetFirewallClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemIpsetFirewallClusterName { + class PVEItemIpsetFirewallClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -2403,17 +2599,20 @@ class PVEItemIpsetFirewallClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + /** * Get ItemNameIpsetFirewallClusterCidr * @param cidr * @return PVEItemNameIpsetFirewallClusterCidr */ - public function get($cidr) { + public function get($cidr) + { return new PVEItemNameIpsetFirewallClusterCidr($this->client, $this->name, $cidr); } @@ -2422,39 +2621,45 @@ public function get($cidr) { * @param bool $force Delete all members of the IPSet, if there are any. * @return Result */ - public function deleteIpset($force = null) { + + public function deleteIpset($force = null) + { $params = ['force' => $force]; return $this->client->delete("/cluster/firewall/ipset/{$this->name}", $params); } - /** * List IPSet content * @return Result */ - public function getIpset() { + + public function getIpset() + { return $this->client->get("/cluster/firewall/ipset/{$this->name}"); } - /** * Add IP or Network to IPSet. * @param string $cidr Network/IP specification in CIDR format. - * @param string $comment - * @param bool $nomatch + * @param string $comment + * @param bool $nomatch * @return Result */ - public function createIp($cidr, $comment = null, $nomatch = null) { - $params = ['cidr' => $cidr, + + public function createIp($cidr, $comment = null, $nomatch = null) + { + $params = [ + 'cidr' => $cidr, 'comment' => $comment, - 'nomatch' => $nomatch]; + 'nomatch' => $nomatch + ]; return $this->client->create("/cluster/firewall/ipset/{$this->name}", $params); } } - /** * Class PVEItemNameIpsetFirewallClusterCidr - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemNameIpsetFirewallClusterCidr { + class PVEItemNameIpsetFirewallClusterCidr + { /** * @ignore @@ -2465,7 +2670,6 @@ class PVEItemNameIpsetFirewallClusterCidr { * @ignore */ private $cidr; - /** * @ignore */ @@ -2474,50 +2678,60 @@ class PVEItemNameIpsetFirewallClusterCidr { /** * @ignore */ - function __construct($client, $name, $cidr) { + function __construct($client, $name, $cidr) + { $this->client = $client; $this->name = $name; $this->cidr = $cidr; } + + /** * Remove IP or Network from IPSet. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function removeIp($digest = null) { + + public function removeIp($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/cluster/firewall/ipset/{$this->name}/{$this->cidr}", $params); } - /** * Read IP or Network settings from IPSet. * @return Result */ - public function readIp() { + + public function readIp() + { return $this->client->get("/cluster/firewall/ipset/{$this->name}/{$this->cidr}"); } - /** * Update IP or Network settings - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. - * @param bool $nomatch + * @param bool $nomatch * @return Result */ - public function updateIp($comment = null, $digest = null, $nomatch = null) { - $params = ['comment' => $comment, + + public function updateIp($comment = null, $digest = null, $nomatch = null) + { + $params = [ + 'comment' => $comment, 'digest' => $digest, - 'nomatch' => $nomatch]; + 'nomatch' => $nomatch + ]; return $this->client->set("/cluster/firewall/ipset/{$this->name}/{$this->cidr}", $params); } } /** * Class PVEFirewallClusterAliases - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallClusterAliases { + class PVEFirewallClusterAliases + { /** * @ignore @@ -2527,16 +2741,19 @@ class PVEFirewallClusterAliases { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemAliasesFirewallClusterName * @param name * @return PVEItemAliasesFirewallClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemAliasesFirewallClusterName($this->client, $name); } @@ -2544,36 +2761,40 @@ public function get($name) { * List aliases * @return Result */ - public function getAliases() { + + public function getAliases() + { return $this->client->get("/cluster/firewall/aliases"); } - /** * Create IP or Network Alias. * @param string $cidr Network/IP specification in CIDR format. * @param string $name Alias name. - * @param string $comment + * @param string $comment * @return Result */ - public function createAlias($cidr, $name, $comment = null) { - $params = ['cidr' => $cidr, + + public function createAlias($cidr, $name, $comment = null) + { + $params = [ + 'cidr' => $cidr, 'name' => $name, - 'comment' => $comment]; + 'comment' => $comment + ]; return $this->client->create("/cluster/firewall/aliases", $params); } } - /** * Class PVEItemAliasesFirewallClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemAliasesFirewallClusterName { + class PVEItemAliasesFirewallClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -2582,51 +2803,61 @@ class PVEItemAliasesFirewallClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + + /** * Remove IP or Network alias. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function removeAlias($digest = null) { + + public function removeAlias($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/cluster/firewall/aliases/{$this->name}", $params); } - /** * Read alias. * @return Result */ - public function readAlias() { + + public function readAlias() + { return $this->client->get("/cluster/firewall/aliases/{$this->name}"); } - /** * Update IP or Network alias. * @param string $cidr Network/IP specification in CIDR format. - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $rename Rename an existing alias. * @return Result */ - public function updateAlias($cidr, $comment = null, $digest = null, $rename = null) { - $params = ['cidr' => $cidr, + + public function updateAlias($cidr, $comment = null, $digest = null, $rename = null) + { + $params = [ + 'cidr' => $cidr, 'comment' => $comment, 'digest' => $digest, - 'rename' => $rename]; + 'rename' => $rename + ]; return $this->client->set("/cluster/firewall/aliases/{$this->name}", $params); } } /** * Class PVEFirewallClusterOptions - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallClusterOptions { + class PVEFirewallClusterOptions + { /** * @ignore @@ -2636,18 +2867,22 @@ class PVEFirewallClusterOptions { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get Firewall options. * @return Result */ - public function getOptions() { + + public function getOptions() + { return $this->client->get("/cluster/firewall/options"); } - /** * Set Firewall options. * @param string $delete A list of settings you want to delete. @@ -2661,23 +2896,28 @@ public function getOptions() { * Enum: ACCEPT,REJECT,DROP * @return Result */ - public function setOptions($delete = null, $digest = null, $ebtables = null, $enable = null, $log_ratelimit = null, $policy_in = null, $policy_out = null) { - $params = ['delete' => $delete, + + public function setOptions($delete = null, $digest = null, $ebtables = null, $enable = null, $log_ratelimit = null, $policy_in = null, $policy_out = null) + { + $params = [ + 'delete' => $delete, 'digest' => $digest, 'ebtables' => $ebtables, 'enable' => $enable, 'log_ratelimit' => $log_ratelimit, 'policy_in' => $policy_in, - 'policy_out' => $policy_out]; + 'policy_out' => $policy_out + ]; return $this->client->set("/cluster/firewall/options", $params); } } /** * Class PVEFirewallClusterMacros - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallClusterMacros { + class PVEFirewallClusterMacros + { /** * @ignore @@ -2687,24 +2927,30 @@ class PVEFirewallClusterMacros { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * List available macros * @return Result */ - public function getMacros() { + + public function getMacros() + { return $this->client->get("/cluster/firewall/macros"); } } /** * Class PVEFirewallClusterRefs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallClusterRefs { + class PVEFirewallClusterRefs + { /** * @ignore @@ -2714,17 +2960,22 @@ class PVEFirewallClusterRefs { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Lists possible IPSet/Alias reference which are allowed in source/dest properties. * @param string $type Only list references of specified type. * Enum: alias,ipset * @return Result */ - public function refs($type = null) { + + public function refs($type = null) + { $params = ['type' => $type]; return $this->client->get("/cluster/firewall/refs", $params); } @@ -2732,9 +2983,10 @@ public function refs($type = null) { /** * Class PVEClusterBackup - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterBackup { + class PVEClusterBackup + { /** * @ignore @@ -2744,16 +2996,19 @@ class PVEClusterBackup { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemBackupClusterId * @param id * @return PVEItemBackupClusterId */ - public function get($id) { + public function get($id) + { return new PVEItemBackupClusterId($this->client, $id); } @@ -2761,10 +3016,11 @@ public function get($id) { * List vzdump backup schedule. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/backup"); } - /** * Create new vzdump backup job. * @param bool $all Backup all known guest systems on this host. @@ -2776,7 +3032,7 @@ public function index() { * @param string $dumpdir Store resulting files to specified directory. * @param bool $enabled Enable or disable the job. * @param string $exclude Exclude specified guest systems (assumes --all) - * @param string $exclude_path Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. + * @param array $exclude_path Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. * @param string $id Job ID (will be autogenerated). * @param int $ionice Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value. * @param int $lockwait Maximal time to wait for the global lock (minutes). @@ -2811,8 +3067,11 @@ public function index() { * @param int $zstd Zstd threads. N=0 uses half of the available cores, N>0 uses N as thread count. * @return Result */ - public function createJob($all = null, $bwlimit = null, $comment = null, $compress = null, $dow = null, $dumpdir = null, $enabled = null, $exclude = null, $exclude_path = null, $id = null, $ionice = null, $lockwait = null, $mailnotification = null, $mailto = null, $maxfiles = null, $mode = null, $node = null, $notes_template = null, $notification_policy = null, $notification_target = null, $performance = null, $pigz = null, $pool = null, $protected = null, $prune_backups = null, $quiet = null, $remove = null, $repeat_missed = null, $schedule = null, $script = null, $starttime = null, $stdexcludes = null, $stop = null, $stopwait = null, $storage = null, $tmpdir = null, $vmid = null, $zstd = null) { - $params = ['all' => $all, + + public function createJob($all = null, $bwlimit = null, $comment = null, $compress = null, $dow = null, $dumpdir = null, $enabled = null, $exclude = null, $exclude_path = null, $id = null, $ionice = null, $lockwait = null, $mailnotification = null, $mailto = null, $maxfiles = null, $mode = null, $node = null, $notes_template = null, $notification_policy = null, $notification_target = null, $performance = null, $pigz = null, $pool = null, $protected = null, $prune_backups = null, $quiet = null, $remove = null, $repeat_missed = null, $schedule = null, $script = null, $starttime = null, $stdexcludes = null, $stop = null, $stopwait = null, $storage = null, $tmpdir = null, $vmid = null, $zstd = null) + { + $params = [ + 'all' => $all, 'bwlimit' => $bwlimit, 'comment' => $comment, 'compress' => $compress, @@ -2849,22 +3108,22 @@ public function createJob($all = null, $bwlimit = null, $comment = null, $compre 'storage' => $storage, 'tmpdir' => $tmpdir, 'vmid' => $vmid, - 'zstd' => $zstd]; + 'zstd' => $zstd + ]; return $this->client->create("/cluster/backup", $params); } } - /** * Class PVEItemBackupClusterId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemBackupClusterId { + class PVEItemBackupClusterId + { /** * @ignore */ private $id; - /** * @ignore */ @@ -2873,7 +3132,8 @@ class PVEItemBackupClusterId { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } @@ -2882,31 +3142,34 @@ function __construct($client, $id) { * @ignore */ private $includedVolumes; - /** * Get IdBackupClusterIncludedVolumes * @return PVEIdBackupClusterIncludedVolumes */ - public function getIncludedVolumes() { + public function getIncludedVolumes() + { return $this->includedVolumes ?: ($this->includedVolumes = new PVEIdBackupClusterIncludedVolumes($this->client, $this->id)); } + /** * Delete vzdump backup job definition. * @return Result */ - public function deleteJob() { + + public function deleteJob() + { return $this->client->delete("/cluster/backup/{$this->id}"); } - /** * Read vzdump backup job definition. * @return Result */ - public function readJob() { + + public function readJob() + { return $this->client->get("/cluster/backup/{$this->id}"); } - /** * Update vzdump backup job definition. * @param bool $all Backup all known guest systems on this host. @@ -2919,7 +3182,7 @@ public function readJob() { * @param string $dumpdir Store resulting files to specified directory. * @param bool $enabled Enable or disable the job. * @param string $exclude Exclude specified guest systems (assumes --all) - * @param string $exclude_path Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. + * @param array $exclude_path Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. * @param int $ionice Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value. * @param int $lockwait Maximal time to wait for the global lock (minutes). * @param string $mailnotification Deprecated: use 'notification-policy' instead. @@ -2953,8 +3216,11 @@ public function readJob() { * @param int $zstd Zstd threads. N=0 uses half of the available cores, N>0 uses N as thread count. * @return Result */ - public function updateJob($all = null, $bwlimit = null, $comment = null, $compress = null, $delete = null, $dow = null, $dumpdir = null, $enabled = null, $exclude = null, $exclude_path = null, $ionice = null, $lockwait = null, $mailnotification = null, $mailto = null, $maxfiles = null, $mode = null, $node = null, $notes_template = null, $notification_policy = null, $notification_target = null, $performance = null, $pigz = null, $pool = null, $protected = null, $prune_backups = null, $quiet = null, $remove = null, $repeat_missed = null, $schedule = null, $script = null, $starttime = null, $stdexcludes = null, $stop = null, $stopwait = null, $storage = null, $tmpdir = null, $vmid = null, $zstd = null) { - $params = ['all' => $all, + + public function updateJob($all = null, $bwlimit = null, $comment = null, $compress = null, $delete = null, $dow = null, $dumpdir = null, $enabled = null, $exclude = null, $exclude_path = null, $ionice = null, $lockwait = null, $mailnotification = null, $mailto = null, $maxfiles = null, $mode = null, $node = null, $notes_template = null, $notification_policy = null, $notification_target = null, $performance = null, $pigz = null, $pool = null, $protected = null, $prune_backups = null, $quiet = null, $remove = null, $repeat_missed = null, $schedule = null, $script = null, $starttime = null, $stdexcludes = null, $stop = null, $stopwait = null, $storage = null, $tmpdir = null, $vmid = null, $zstd = null) + { + $params = [ + 'all' => $all, 'bwlimit' => $bwlimit, 'comment' => $comment, 'compress' => $compress, @@ -2991,22 +3257,22 @@ public function updateJob($all = null, $bwlimit = null, $comment = null, $compre 'storage' => $storage, 'tmpdir' => $tmpdir, 'vmid' => $vmid, - 'zstd' => $zstd]; + 'zstd' => $zstd + ]; return $this->client->set("/cluster/backup/{$this->id}", $params); } } - /** * Class PVEIdBackupClusterIncludedVolumes - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEIdBackupClusterIncludedVolumes { + class PVEIdBackupClusterIncludedVolumes + { /** * @ignore */ private $id; - /** * @ignore */ @@ -3015,25 +3281,31 @@ class PVEIdBackupClusterIncludedVolumes { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } + + /** * Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. * @return Result */ - public function getVolumeBackupIncluded() { + + public function getVolumeBackupIncluded() + { return $this->client->get("/cluster/backup/{$this->id}/included_volumes"); } } /** * Class PVEClusterBackupInfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterBackupInfo { + class PVEClusterBackupInfo + { /** * @ignore @@ -3043,7 +3315,8 @@ class PVEClusterBackupInfo { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -3051,29 +3324,32 @@ function __construct($client) { * @ignore */ private $notBackedUp; - /** * Get BackupInfoClusterNotBackedUp * @return PVEBackupInfoClusterNotBackedUp */ - public function getNotBackedUp() { + public function getNotBackedUp() + { return $this->notBackedUp ?: ($this->notBackedUp = new PVEBackupInfoClusterNotBackedUp($this->client)); } + /** * Index for backup info related endpoints * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/backup-info"); } } - /** * Class PVEBackupInfoClusterNotBackedUp - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEBackupInfoClusterNotBackedUp { + class PVEBackupInfoClusterNotBackedUp + { /** * @ignore @@ -3083,24 +3359,30 @@ class PVEBackupInfoClusterNotBackedUp { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Shows all guests which are not covered by any backup job. * @return Result */ - public function getGuestsNotInBackup() { + + public function getGuestsNotInBackup() + { return $this->client->get("/cluster/backup-info/not-backed-up"); } } /** * Class PVEClusterHa - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterHa { + class PVEClusterHa + { /** * @ignore @@ -3110,7 +3392,8 @@ class PVEClusterHa { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -3118,55 +3401,56 @@ function __construct($client) { * @ignore */ private $resources; - /** * Get HaClusterResources * @return PVEHaClusterResources */ - public function getResources() { + public function getResources() + { return $this->resources ?: ($this->resources = new PVEHaClusterResources($this->client)); } - /** * @ignore */ private $groups; - /** * Get HaClusterGroups * @return PVEHaClusterGroups */ - public function getGroups() { + public function getGroups() + { return $this->groups ?: ($this->groups = new PVEHaClusterGroups($this->client)); } - /** * @ignore */ private $status; - /** * Get HaClusterStatus * @return PVEHaClusterStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEHaClusterStatus($this->client)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/ha"); } } - /** * Class PVEHaClusterResources - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEHaClusterResources { + class PVEHaClusterResources + { /** * @ignore @@ -3176,16 +3460,19 @@ class PVEHaClusterResources { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemResourcesHaClusterSid * @param sid * @return PVEItemResourcesHaClusterSid */ - public function get($sid) { + public function get($sid) + { return new PVEItemResourcesHaClusterSid($this->client, $sid); } @@ -3195,11 +3482,12 @@ public function get($sid) { * Enum: ct,vm * @return Result */ - public function index($type = null) { + + public function index($type = null) + { $params = ['type' => $type]; return $this->client->get("/cluster/ha/resources", $params); } - /** * Create a new HA resource. * @param string $sid HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100). @@ -3213,29 +3501,32 @@ public function index($type = null) { * Enum: ct,vm * @return Result */ - public function create($sid, $comment = null, $group = null, $max_relocate = null, $max_restart = null, $state = null, $type = null) { - $params = ['sid' => $sid, + + public function create($sid, $comment = null, $group = null, $max_relocate = null, $max_restart = null, $state = null, $type = null) + { + $params = [ + 'sid' => $sid, 'comment' => $comment, 'group' => $group, 'max_relocate' => $max_relocate, 'max_restart' => $max_restart, 'state' => $state, - 'type' => $type]; + 'type' => $type + ]; return $this->client->create("/cluster/ha/resources", $params); } } - /** * Class PVEItemResourcesHaClusterSid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemResourcesHaClusterSid { + class PVEItemResourcesHaClusterSid + { /** * @ignore */ private $sid; - /** * @ignore */ @@ -3244,7 +3535,8 @@ class PVEItemResourcesHaClusterSid { /** * @ignore */ - function __construct($client, $sid) { + function __construct($client, $sid) + { $this->client = $client; $this->sid = $sid; } @@ -3253,44 +3545,46 @@ function __construct($client, $sid) { * @ignore */ private $migrate; - /** * Get SidResourcesHaClusterMigrate * @return PVESidResourcesHaClusterMigrate */ - public function getMigrate() { + public function getMigrate() + { return $this->migrate ?: ($this->migrate = new PVESidResourcesHaClusterMigrate($this->client, $this->sid)); } - /** * @ignore */ private $relocate; - /** * Get SidResourcesHaClusterRelocate * @return PVESidResourcesHaClusterRelocate */ - public function getRelocate() { + public function getRelocate() + { return $this->relocate ?: ($this->relocate = new PVESidResourcesHaClusterRelocate($this->client, $this->sid)); } + /** * Delete resource configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/ha/resources/{$this->sid}"); } - /** * Read resource configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/cluster/ha/resources/{$this->sid}"); } - /** * Update resource configuration. * @param string $comment Description. @@ -3303,29 +3597,32 @@ public function read() { * Enum: started,stopped,enabled,disabled,ignored * @return Result */ - public function update($comment = null, $delete = null, $digest = null, $group = null, $max_relocate = null, $max_restart = null, $state = null) { - $params = ['comment' => $comment, + + public function update($comment = null, $delete = null, $digest = null, $group = null, $max_relocate = null, $max_restart = null, $state = null) + { + $params = [ + 'comment' => $comment, 'delete' => $delete, 'digest' => $digest, 'group' => $group, 'max_relocate' => $max_relocate, 'max_restart' => $max_restart, - 'state' => $state]; + 'state' => $state + ]; return $this->client->set("/cluster/ha/resources/{$this->sid}", $params); } } - /** * Class PVESidResourcesHaClusterMigrate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESidResourcesHaClusterMigrate { + class PVESidResourcesHaClusterMigrate + { /** * @ignore */ private $sid; - /** * @ignore */ @@ -3334,17 +3631,22 @@ class PVESidResourcesHaClusterMigrate { /** * @ignore */ - function __construct($client, $sid) { + function __construct($client, $sid) + { $this->client = $client; $this->sid = $sid; } + + /** * Request resource migration (online) to another node. * @param string $node Target node. * @return Result */ - public function migrate($node) { + + public function migrate($node) + { $params = ['node' => $node]; return $this->client->create("/cluster/ha/resources/{$this->sid}/migrate", $params); } @@ -3352,15 +3654,15 @@ public function migrate($node) { /** * Class PVESidResourcesHaClusterRelocate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESidResourcesHaClusterRelocate { + class PVESidResourcesHaClusterRelocate + { /** * @ignore */ private $sid; - /** * @ignore */ @@ -3369,17 +3671,22 @@ class PVESidResourcesHaClusterRelocate { /** * @ignore */ - function __construct($client, $sid) { + function __construct($client, $sid) + { $this->client = $client; $this->sid = $sid; } + + /** * Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. * @param string $node Target node. * @return Result */ - public function relocate($node) { + + public function relocate($node) + { $params = ['node' => $node]; return $this->client->create("/cluster/ha/resources/{$this->sid}/relocate", $params); } @@ -3387,9 +3694,10 @@ public function relocate($node) { /** * Class PVEHaClusterGroups - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEHaClusterGroups { + class PVEHaClusterGroups + { /** * @ignore @@ -3399,16 +3707,19 @@ class PVEHaClusterGroups { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemGroupsHaClusterGroup * @param group * @return PVEItemGroupsHaClusterGroup */ - public function get($group) { + public function get($group) + { return new PVEItemGroupsHaClusterGroup($this->client, $group); } @@ -3416,10 +3727,11 @@ public function get($group) { * Get HA groups. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/ha/groups"); } - /** * Create a new HA group. * @param string $group The HA group identifier. @@ -3431,28 +3743,31 @@ public function index() { * Enum: group * @return Result */ - public function create($group, $nodes, $comment = null, $nofailback = null, $restricted = null, $type = null) { - $params = ['group' => $group, + + public function create($group, $nodes, $comment = null, $nofailback = null, $restricted = null, $type = null) + { + $params = [ + 'group' => $group, 'nodes' => $nodes, 'comment' => $comment, 'nofailback' => $nofailback, 'restricted' => $restricted, - 'type' => $type]; + 'type' => $type + ]; return $this->client->create("/cluster/ha/groups", $params); } } - /** * Class PVEItemGroupsHaClusterGroup - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemGroupsHaClusterGroup { + class PVEItemGroupsHaClusterGroup + { /** * @ignore */ private $group; - /** * @ignore */ @@ -3461,27 +3776,32 @@ class PVEItemGroupsHaClusterGroup { /** * @ignore */ - function __construct($client, $group) { + function __construct($client, $group) + { $this->client = $client; $this->group = $group; } + + /** * Delete ha group configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/ha/groups/{$this->group}"); } - /** * Read ha group configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/cluster/ha/groups/{$this->group}"); } - /** * Update ha group configuration. * @param string $comment Description. @@ -3492,22 +3812,27 @@ public function read() { * @param bool $restricted Resources bound to restricted groups may only run on nodes defined by the group. * @return Result */ - public function update($comment = null, $delete = null, $digest = null, $nodes = null, $nofailback = null, $restricted = null) { - $params = ['comment' => $comment, + + public function update($comment = null, $delete = null, $digest = null, $nodes = null, $nofailback = null, $restricted = null) + { + $params = [ + 'comment' => $comment, 'delete' => $delete, 'digest' => $digest, 'nodes' => $nodes, 'nofailback' => $nofailback, - 'restricted' => $restricted]; + 'restricted' => $restricted + ]; return $this->client->set("/cluster/ha/groups/{$this->group}", $params); } } /** * Class PVEHaClusterStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEHaClusterStatus { + class PVEHaClusterStatus + { /** * @ignore @@ -3517,7 +3842,8 @@ class PVEHaClusterStatus { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -3525,42 +3851,44 @@ function __construct($client) { * @ignore */ private $current; - /** * Get StatusHaClusterCurrent * @return PVEStatusHaClusterCurrent */ - public function getCurrent() { + public function getCurrent() + { return $this->current ?: ($this->current = new PVEStatusHaClusterCurrent($this->client)); } - /** * @ignore */ private $managerStatus; - /** * Get StatusHaClusterManagerStatus * @return PVEStatusHaClusterManagerStatus */ - public function getManagerStatus() { + public function getManagerStatus() + { return $this->managerStatus ?: ($this->managerStatus = new PVEStatusHaClusterManagerStatus($this->client)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/ha/status"); } } - /** * Class PVEStatusHaClusterCurrent - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusHaClusterCurrent { + class PVEStatusHaClusterCurrent + { /** * @ignore @@ -3570,24 +3898,30 @@ class PVEStatusHaClusterCurrent { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get HA manger status. * @return Result */ - public function status() { + + public function status() + { return $this->client->get("/cluster/ha/status/current"); } } /** * Class PVEStatusHaClusterManagerStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusHaClusterManagerStatus { + class PVEStatusHaClusterManagerStatus + { /** * @ignore @@ -3597,24 +3931,30 @@ class PVEStatusHaClusterManagerStatus { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get full HA manger status, including LRM status. * @return Result */ - public function managerStatus() { + + public function managerStatus() + { return $this->client->get("/cluster/ha/status/manager_status"); } } /** * Class PVEClusterAcme - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterAcme { + class PVEClusterAcme + { /** * @ignore @@ -3624,7 +3964,8 @@ class PVEClusterAcme { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -3632,94 +3973,92 @@ function __construct($client) { * @ignore */ private $plugins; - /** * Get AcmeClusterPlugins * @return PVEAcmeClusterPlugins */ - public function getPlugins() { + public function getPlugins() + { return $this->plugins ?: ($this->plugins = new PVEAcmeClusterPlugins($this->client)); } - /** * @ignore */ private $account; - /** * Get AcmeClusterAccount * @return PVEAcmeClusterAccount */ - public function getAccount() { + public function getAccount() + { return $this->account ?: ($this->account = new PVEAcmeClusterAccount($this->client)); } - /** * @ignore */ private $tos; - /** * Get AcmeClusterTos * @return PVEAcmeClusterTos */ - public function getTos() { + public function getTos() + { return $this->tos ?: ($this->tos = new PVEAcmeClusterTos($this->client)); } - /** * @ignore */ private $meta; - /** * Get AcmeClusterMeta * @return PVEAcmeClusterMeta */ - public function getMeta() { + public function getMeta() + { return $this->meta ?: ($this->meta = new PVEAcmeClusterMeta($this->client)); } - /** * @ignore */ private $directories; - /** * Get AcmeClusterDirectories * @return PVEAcmeClusterDirectories */ - public function getDirectories() { + public function getDirectories() + { return $this->directories ?: ($this->directories = new PVEAcmeClusterDirectories($this->client)); } - /** * @ignore */ private $challengeSchema; - /** * Get AcmeClusterChallengeSchema * @return PVEAcmeClusterChallengeSchema */ - public function getChallengeSchema() { + public function getChallengeSchema() + { return $this->challengeSchema ?: ($this->challengeSchema = new PVEAcmeClusterChallengeSchema($this->client)); } + /** * ACMEAccount index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/acme"); } } - /** * Class PVEAcmeClusterPlugins - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAcmeClusterPlugins { + class PVEAcmeClusterPlugins + { /** * @ignore @@ -3729,16 +4068,19 @@ class PVEAcmeClusterPlugins { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemPluginsAcmeClusterId * @param id * @return PVEItemPluginsAcmeClusterId */ - public function get($id) { + public function get($id) + { return new PVEItemPluginsAcmeClusterId($this->client, $id); } @@ -3748,11 +4090,12 @@ public function get($id) { * Enum: dns,standalone * @return Result */ - public function index($type = null) { + + public function index($type = null) + { $params = ['type' => $type]; return $this->client->get("/cluster/acme/plugins", $params); } - /** * Add ACME plugin configuration. * @param string $id ACME Plugin ID name @@ -3766,29 +4109,32 @@ public function index($type = null) { * @param int $validation_delay Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records. * @return Result */ - public function addPlugin($id, $type, $api = null, $data = null, $disable = null, $nodes = null, $validation_delay = null) { - $params = ['id' => $id, + + public function addPlugin($id, $type, $api = null, $data = null, $disable = null, $nodes = null, $validation_delay = null) + { + $params = [ + 'id' => $id, 'type' => $type, 'api' => $api, 'data' => $data, 'disable' => $disable, 'nodes' => $nodes, - 'validation-delay' => $validation_delay]; + 'validation-delay' => $validation_delay + ]; return $this->client->create("/cluster/acme/plugins", $params); } } - /** * Class PVEItemPluginsAcmeClusterId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemPluginsAcmeClusterId { + class PVEItemPluginsAcmeClusterId + { /** * @ignore */ private $id; - /** * @ignore */ @@ -3797,27 +4143,32 @@ class PVEItemPluginsAcmeClusterId { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } + + /** * Delete ACME plugin configuration. * @return Result */ - public function deletePlugin() { + + public function deletePlugin() + { return $this->client->delete("/cluster/acme/plugins/{$this->id}"); } - /** * Get ACME plugin configuration. * @return Result */ - public function getPluginConfig() { + + public function getPluginConfig() + { return $this->client->get("/cluster/acme/plugins/{$this->id}"); } - /** * Update ACME plugin configuration. * @param string $api API plugin name @@ -3830,23 +4181,28 @@ public function getPluginConfig() { * @param int $validation_delay Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records. * @return Result */ - public function updatePlugin($api = null, $data = null, $delete = null, $digest = null, $disable = null, $nodes = null, $validation_delay = null) { - $params = ['api' => $api, + + public function updatePlugin($api = null, $data = null, $delete = null, $digest = null, $disable = null, $nodes = null, $validation_delay = null) + { + $params = [ + 'api' => $api, 'data' => $data, 'delete' => $delete, 'digest' => $digest, 'disable' => $disable, 'nodes' => $nodes, - 'validation-delay' => $validation_delay]; + 'validation-delay' => $validation_delay + ]; return $this->client->set("/cluster/acme/plugins/{$this->id}", $params); } } /** * Class PVEAcmeClusterAccount - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAcmeClusterAccount { + class PVEAcmeClusterAccount + { /** * @ignore @@ -3856,16 +4212,19 @@ class PVEAcmeClusterAccount { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemAccountAcmeClusterName * @param name * @return PVEItemAccountAcmeClusterName */ - public function get($name) { + public function get($name) + { return new PVEItemAccountAcmeClusterName($this->client, $name); } @@ -3873,10 +4232,11 @@ public function get($name) { * ACMEAccount index. * @return Result */ - public function accountIndex() { + + public function accountIndex() + { return $this->client->get("/cluster/acme/account"); } - /** * Register a new ACME account with CA. * @param string $contact Contact email addresses. @@ -3887,28 +4247,31 @@ public function accountIndex() { * @param string $tos_url URL of CA TermsOfService - setting this indicates agreement. * @return Result */ - public function registerAccount($contact, $directory = null, $eab_hmac_key = null, $eab_kid = null, $name = null, $tos_url = null) { - $params = ['contact' => $contact, + + public function registerAccount($contact, $directory = null, $eab_hmac_key = null, $eab_kid = null, $name = null, $tos_url = null) + { + $params = [ + 'contact' => $contact, 'directory' => $directory, 'eab-hmac-key' => $eab_hmac_key, 'eab-kid' => $eab_kid, 'name' => $name, - 'tos_url' => $tos_url]; + 'tos_url' => $tos_url + ]; return $this->client->create("/cluster/acme/account", $params); } } - /** * Class PVEItemAccountAcmeClusterName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemAccountAcmeClusterName { + class PVEItemAccountAcmeClusterName + { /** * @ignore */ private $name; - /** * @ignore */ @@ -3917,33 +4280,40 @@ class PVEItemAccountAcmeClusterName { /** * @ignore */ - function __construct($client, $name) { + function __construct($client, $name) + { $this->client = $client; $this->name = $name; } + + /** * Deactivate existing ACME account at CA. * @return Result */ - public function deactivateAccount() { + + public function deactivateAccount() + { return $this->client->delete("/cluster/acme/account/{$this->name}"); } - /** * Return existing ACME account information. * @return Result */ - public function getAccount() { + + public function getAccount() + { return $this->client->get("/cluster/acme/account/{$this->name}"); } - /** * Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. * @param string $contact Contact email addresses. * @return Result */ - public function updateAccount($contact = null) { + + public function updateAccount($contact = null) + { $params = ['contact' => $contact]; return $this->client->set("/cluster/acme/account/{$this->name}", $params); } @@ -3951,9 +4321,10 @@ public function updateAccount($contact = null) { /** * Class PVEAcmeClusterTos - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAcmeClusterTos { + class PVEAcmeClusterTos + { /** * @ignore @@ -3963,16 +4334,21 @@ class PVEAcmeClusterTos { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. * @param string $directory URL of ACME CA directory endpoint. * @return Result */ - public function getTos($directory = null) { + + public function getTos($directory = null) + { $params = ['directory' => $directory]; return $this->client->get("/cluster/acme/tos", $params); } @@ -3980,9 +4356,10 @@ public function getTos($directory = null) { /** * Class PVEAcmeClusterMeta - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAcmeClusterMeta { + class PVEAcmeClusterMeta + { /** * @ignore @@ -3992,16 +4369,21 @@ class PVEAcmeClusterMeta { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Retrieve ACME Directory Meta Information * @param string $directory URL of ACME CA directory endpoint. * @return Result */ - public function getMeta($directory = null) { + + public function getMeta($directory = null) + { $params = ['directory' => $directory]; return $this->client->get("/cluster/acme/meta", $params); } @@ -4009,9 +4391,10 @@ public function getMeta($directory = null) { /** * Class PVEAcmeClusterDirectories - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAcmeClusterDirectories { + class PVEAcmeClusterDirectories + { /** * @ignore @@ -4021,24 +4404,30 @@ class PVEAcmeClusterDirectories { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get named known ACME directory endpoints. * @return Result */ - public function getDirectories() { + + public function getDirectories() + { return $this->client->get("/cluster/acme/directories"); } } /** * Class PVEAcmeClusterChallengeSchema - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAcmeClusterChallengeSchema { + class PVEAcmeClusterChallengeSchema + { /** * @ignore @@ -4048,24 +4437,30 @@ class PVEAcmeClusterChallengeSchema { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get schema of ACME challenge types. * @return Result */ - public function challengeschema() { + + public function challengeschema() + { return $this->client->get("/cluster/acme/challenge-schema"); } } /** * Class PVEClusterCeph - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterCeph { + class PVEClusterCeph + { /** * @ignore @@ -4075,7 +4470,8 @@ class PVEClusterCeph { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -4083,55 +4479,56 @@ function __construct($client) { * @ignore */ private $metadata; - /** * Get CephClusterMetadata * @return PVECephClusterMetadata */ - public function getMetadata() { + public function getMetadata() + { return $this->metadata ?: ($this->metadata = new PVECephClusterMetadata($this->client)); } - /** * @ignore */ private $status; - /** * Get CephClusterStatus * @return PVECephClusterStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVECephClusterStatus($this->client)); } - /** * @ignore */ private $flags; - /** * Get CephClusterFlags * @return PVECephClusterFlags */ - public function getFlags() { + public function getFlags() + { return $this->flags ?: ($this->flags = new PVECephClusterFlags($this->client)); } + /** * Cluster ceph index. * @return Result */ - public function cephindex() { + + public function cephindex() + { return $this->client->get("/cluster/ceph"); } } - /** * Class PVECephClusterMetadata - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephClusterMetadata { + class PVECephClusterMetadata + { /** * @ignore @@ -4141,17 +4538,22 @@ class PVECephClusterMetadata { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get ceph metadata. - * @param string $scope + * @param string $scope * Enum: all,versions * @return Result */ - public function metadata($scope = null) { + + public function metadata($scope = null) + { $params = ['scope' => $scope]; return $this->client->get("/cluster/ceph/metadata", $params); } @@ -4159,9 +4561,10 @@ public function metadata($scope = null) { /** * Class PVECephClusterStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephClusterStatus { + class PVECephClusterStatus + { /** * @ignore @@ -4171,24 +4574,30 @@ class PVECephClusterStatus { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get ceph status. * @return Result */ - public function status() { + + public function status() + { return $this->client->get("/cluster/ceph/status"); } } /** * Class PVECephClusterFlags - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephClusterFlags { + class PVECephClusterFlags + { /** * @ignore @@ -4198,16 +4607,19 @@ class PVECephClusterFlags { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemFlagsCephClusterFlag * @param flag * @return PVEItemFlagsCephClusterFlag */ - public function get($flag) { + public function get($flag) + { return new PVEItemFlagsCephClusterFlag($this->client, $flag); } @@ -4215,10 +4627,11 @@ public function get($flag) { * get the status of all ceph flags * @return Result */ - public function getAllFlags() { + + public function getAllFlags() + { return $this->client->get("/cluster/ceph/flags"); } - /** * Set/Unset multiple ceph flags at once. * @param bool $nobackfill Backfilling of PGs is suspended. @@ -4234,8 +4647,11 @@ public function getAllFlags() { * @param bool $pause Pauses read and writes. * @return Result */ - public function setFlags($nobackfill = null, $nodeep_scrub = null, $nodown = null, $noin = null, $noout = null, $norebalance = null, $norecover = null, $noscrub = null, $notieragent = null, $noup = null, $pause = null) { - $params = ['nobackfill' => $nobackfill, + + public function setFlags($nobackfill = null, $nodeep_scrub = null, $nodown = null, $noin = null, $noout = null, $norebalance = null, $norecover = null, $noscrub = null, $notieragent = null, $noup = null, $pause = null) + { + $params = [ + 'nobackfill' => $nobackfill, 'nodeep-scrub' => $nodeep_scrub, 'nodown' => $nodown, 'noin' => $noin, @@ -4245,22 +4661,22 @@ public function setFlags($nobackfill = null, $nodeep_scrub = null, $nodown = nul 'noscrub' => $noscrub, 'notieragent' => $notieragent, 'noup' => $noup, - 'pause' => $pause]; + 'pause' => $pause + ]; return $this->client->set("/cluster/ceph/flags", $params); } } - /** * Class PVEItemFlagsCephClusterFlag - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemFlagsCephClusterFlag { + class PVEItemFlagsCephClusterFlag + { /** * @ignore */ private $flag; - /** * @ignore */ @@ -4269,25 +4685,31 @@ class PVEItemFlagsCephClusterFlag { /** * @ignore */ - function __construct($client, $flag) { + function __construct($client, $flag) + { $this->client = $client; $this->flag = $flag; } + + /** * Get the status of a specific ceph flag. * @return Result */ - public function getFlag() { + + public function getFlag() + { return $this->client->get("/cluster/ceph/flags/{$this->flag}"); } - /** * Set or clear (unset) a specific ceph flag * @param bool $value The new value of the flag * @return Result */ - public function updateFlag($value) { + + public function updateFlag($value) + { $params = ['value' => $value]; return $this->client->set("/cluster/ceph/flags/{$this->flag}", $params); } @@ -4295,9 +4717,10 @@ public function updateFlag($value) { /** * Class PVEClusterJobs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterJobs { + class PVEClusterJobs + { /** * @ignore @@ -4307,7 +4730,8 @@ class PVEClusterJobs { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -4315,42 +4739,44 @@ function __construct($client) { * @ignore */ private $realmSync; - /** * Get JobsClusterRealmSync * @return PVEJobsClusterRealmSync */ - public function getRealmSync() { + public function getRealmSync() + { return $this->realmSync ?: ($this->realmSync = new PVEJobsClusterRealmSync($this->client)); } - /** * @ignore */ private $scheduleAnalyze; - /** * Get JobsClusterScheduleAnalyze * @return PVEJobsClusterScheduleAnalyze */ - public function getScheduleAnalyze() { + public function getScheduleAnalyze() + { return $this->scheduleAnalyze ?: ($this->scheduleAnalyze = new PVEJobsClusterScheduleAnalyze($this->client)); } + /** * Index for jobs related endpoints. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/jobs"); } } - /** * Class PVEJobsClusterRealmSync - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEJobsClusterRealmSync { + class PVEJobsClusterRealmSync + { /** * @ignore @@ -4360,16 +4786,19 @@ class PVEJobsClusterRealmSync { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemRealmSyncJobsClusterId * @param id * @return PVEItemRealmSyncJobsClusterId */ - public function get($id) { + public function get($id) + { return new PVEItemRealmSyncJobsClusterId($this->client, $id); } @@ -4377,22 +4806,23 @@ public function get($id) { * List configured realm-sync-jobs. * @return Result */ - public function syncjobIndex() { + + public function syncjobIndex() + { return $this->client->get("/cluster/jobs/realm-sync"); } } - /** * Class PVEItemRealmSyncJobsClusterId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemRealmSyncJobsClusterId { + class PVEItemRealmSyncJobsClusterId + { /** * @ignore */ private $id; - /** * @ignore */ @@ -4401,27 +4831,32 @@ class PVEItemRealmSyncJobsClusterId { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } + + /** * Delete realm-sync job definition. * @return Result */ - public function deleteJob() { + + public function deleteJob() + { return $this->client->delete("/cluster/jobs/realm-sync/{$this->id}"); } - /** * Read realm-sync job definition. * @return Result */ - public function readJob() { + + public function readJob() + { return $this->client->get("/cluster/jobs/realm-sync/{$this->id}"); } - /** * Create new realm-sync job. * @param string $schedule Backup schedule. The format is a subset of `systemd` calendar events. @@ -4434,17 +4869,20 @@ public function readJob() { * Enum: users,groups,both * @return Result */ - public function createJob($schedule, $comment = null, $enable_new = null, $enabled = null, $realm = null, $remove_vanished = null, $scope = null) { - $params = ['schedule' => $schedule, + + public function createJob($schedule, $comment = null, $enable_new = null, $enabled = null, $realm = null, $remove_vanished = null, $scope = null) + { + $params = [ + 'schedule' => $schedule, 'comment' => $comment, 'enable-new' => $enable_new, 'enabled' => $enabled, 'realm' => $realm, 'remove-vanished' => $remove_vanished, - 'scope' => $scope]; + 'scope' => $scope + ]; return $this->client->create("/cluster/jobs/realm-sync/{$this->id}", $params); } - /** * Update realm-sync job definition. * @param string $schedule Backup schedule. The format is a subset of `systemd` calendar events. @@ -4457,23 +4895,28 @@ public function createJob($schedule, $comment = null, $enable_new = null, $enabl * Enum: users,groups,both * @return Result */ - public function updateJob($schedule, $comment = null, $delete = null, $enable_new = null, $enabled = null, $remove_vanished = null, $scope = null) { - $params = ['schedule' => $schedule, + + public function updateJob($schedule, $comment = null, $delete = null, $enable_new = null, $enabled = null, $remove_vanished = null, $scope = null) + { + $params = [ + 'schedule' => $schedule, 'comment' => $comment, 'delete' => $delete, 'enable-new' => $enable_new, 'enabled' => $enabled, 'remove-vanished' => $remove_vanished, - 'scope' => $scope]; + 'scope' => $scope + ]; return $this->client->set("/cluster/jobs/realm-sync/{$this->id}", $params); } } /** * Class PVEJobsClusterScheduleAnalyze - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEJobsClusterScheduleAnalyze { + class PVEJobsClusterScheduleAnalyze + { /** * @ignore @@ -4483,10 +4926,13 @@ class PVEJobsClusterScheduleAnalyze { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Returns a list of future schedule runtimes. * @param string $schedule Job schedule. The format is a subset of `systemd` calendar events. @@ -4494,19 +4940,24 @@ function __construct($client) { * @param int $starttime UNIX timestamp to start the calculation from. Defaults to the current time. * @return Result */ - public function scheduleAnalyze($schedule, $iterations = null, $starttime = null) { - $params = ['schedule' => $schedule, + + public function scheduleAnalyze($schedule, $iterations = null, $starttime = null) + { + $params = [ + 'schedule' => $schedule, 'iterations' => $iterations, - 'starttime' => $starttime]; + 'starttime' => $starttime + ]; return $this->client->get("/cluster/jobs/schedule-analyze", $params); } } /** * Class PVEClusterMapping - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterMapping { + class PVEClusterMapping + { /** * @ignore @@ -4516,7 +4967,8 @@ class PVEClusterMapping { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -4524,42 +4976,44 @@ function __construct($client) { * @ignore */ private $pci; - /** * Get MappingClusterPci * @return PVEMappingClusterPci */ - public function getPci() { + public function getPci() + { return $this->pci ?: ($this->pci = new PVEMappingClusterPci($this->client)); } - /** * @ignore */ private $usb; - /** * Get MappingClusterUsb * @return PVEMappingClusterUsb */ - public function getUsb() { + public function getUsb() + { return $this->usb ?: ($this->usb = new PVEMappingClusterUsb($this->client)); } + /** * List resource types. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/mapping"); } } - /** * Class PVEMappingClusterPci - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEMappingClusterPci { + class PVEMappingClusterPci + { /** * @ignore @@ -4569,16 +5023,19 @@ class PVEMappingClusterPci { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemPciMappingClusterId * @param id * @return PVEItemPciMappingClusterId */ - public function get($id) { + public function get($id) + { return new PVEItemPciMappingClusterId($this->client, $id); } @@ -4587,39 +5044,43 @@ public function get($id) { * @param string $check_node If given, checks the configurations on the given node for correctness, and adds relevant diagnostics for the devices to the response. * @return Result */ - public function index($check_node = null) { + + public function index($check_node = null) + { $params = ['check-node' => $check_node]; return $this->client->get("/cluster/mapping/pci", $params); } - /** * Create a new hardware mapping. * @param string $id The ID of the logical PCI mapping. - * @param string $map A list of maps for the cluster nodes. + * @param array $map A list of maps for the cluster nodes. * @param string $description Description of the logical PCI device. - * @param bool $mdev + * @param bool $mdev * @return Result */ - public function create($id, $map, $description = null, $mdev = null) { - $params = ['id' => $id, + + public function create($id, $map, $description = null, $mdev = null) + { + $params = [ + 'id' => $id, 'map' => $map, 'description' => $description, - 'mdev' => $mdev]; + 'mdev' => $mdev + ]; return $this->client->create("/cluster/mapping/pci", $params); } } - /** * Class PVEItemPciMappingClusterId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemPciMappingClusterId { + class PVEItemPciMappingClusterId + { /** * @ignore */ private $id; - /** * @ignore */ @@ -4628,51 +5089,61 @@ class PVEItemPciMappingClusterId { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } + + /** * Remove Hardware Mapping. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/mapping/pci/{$this->id}"); } - /** * Get PCI Mapping. * @return Result */ - public function get() { + + public function get() + { return $this->client->get("/cluster/mapping/pci/{$this->id}"); } - /** * Update a hardware mapping. * @param string $delete A list of settings you want to delete. * @param string $description Description of the logical PCI device. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. - * @param string $map A list of maps for the cluster nodes. - * @param bool $mdev + * @param array $map A list of maps for the cluster nodes. + * @param bool $mdev * @return Result */ - public function update($delete = null, $description = null, $digest = null, $map = null, $mdev = null) { - $params = ['delete' => $delete, + + public function update($delete = null, $description = null, $digest = null, $map = null, $mdev = null) + { + $params = [ + 'delete' => $delete, 'description' => $description, 'digest' => $digest, 'map' => $map, - 'mdev' => $mdev]; + 'mdev' => $mdev + ]; return $this->client->set("/cluster/mapping/pci/{$this->id}", $params); } } /** * Class PVEMappingClusterUsb - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEMappingClusterUsb { + class PVEMappingClusterUsb + { /** * @ignore @@ -4682,16 +5153,19 @@ class PVEMappingClusterUsb { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemUsbMappingClusterId * @param id * @return PVEItemUsbMappingClusterId */ - public function get($id) { + public function get($id) + { return new PVEItemUsbMappingClusterId($this->client, $id); } @@ -4700,37 +5174,41 @@ public function get($id) { * @param string $check_node If given, checks the configurations on the given node for correctness, and adds relevant errors to the devices. * @return Result */ - public function index($check_node = null) { + + public function index($check_node = null) + { $params = ['check-node' => $check_node]; return $this->client->get("/cluster/mapping/usb", $params); } - /** * Create a new hardware mapping. * @param string $id The ID of the logical USB mapping. - * @param string $map A list of maps for the cluster nodes. + * @param array $map A list of maps for the cluster nodes. * @param string $description Description of the logical USB device. * @return Result */ - public function create($id, $map, $description = null) { - $params = ['id' => $id, + + public function create($id, $map, $description = null) + { + $params = [ + 'id' => $id, 'map' => $map, - 'description' => $description]; + 'description' => $description + ]; return $this->client->create("/cluster/mapping/usb", $params); } } - /** * Class PVEItemUsbMappingClusterId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemUsbMappingClusterId { + class PVEItemUsbMappingClusterId + { /** * @ignore */ private $id; - /** * @ignore */ @@ -4739,49 +5217,59 @@ class PVEItemUsbMappingClusterId { /** * @ignore */ - function __construct($client, $id) { + function __construct($client, $id) + { $this->client = $client; $this->id = $id; } + + /** * Remove Hardware Mapping. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/mapping/usb/{$this->id}"); } - /** * Get USB Mapping. * @return Result */ - public function get() { + + public function get() + { return $this->client->get("/cluster/mapping/usb/{$this->id}"); } - /** * Update a hardware mapping. - * @param string $map A list of maps for the cluster nodes. + * @param array $map A list of maps for the cluster nodes. * @param string $delete A list of settings you want to delete. * @param string $description Description of the logical USB device. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function update($map, $delete = null, $description = null, $digest = null) { - $params = ['map' => $map, + + public function update($map, $delete = null, $description = null, $digest = null) + { + $params = [ + 'map' => $map, 'delete' => $delete, 'description' => $description, - 'digest' => $digest]; + 'digest' => $digest + ]; return $this->client->set("/cluster/mapping/usb/{$this->id}", $params); } } /** * Class PVEClusterSdn - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterSdn { + class PVEClusterSdn + { /** * @ignore @@ -4791,7 +5279,8 @@ class PVEClusterSdn { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -4799,89 +5288,89 @@ function __construct($client) { * @ignore */ private $vnets; - /** * Get SdnClusterVnets * @return PVESdnClusterVnets */ - public function getVnets() { + public function getVnets() + { return $this->vnets ?: ($this->vnets = new PVESdnClusterVnets($this->client)); } - /** * @ignore */ private $zones; - /** * Get SdnClusterZones * @return PVESdnClusterZones */ - public function getZones() { + public function getZones() + { return $this->zones ?: ($this->zones = new PVESdnClusterZones($this->client)); } - /** * @ignore */ private $controllers; - /** * Get SdnClusterControllers * @return PVESdnClusterControllers */ - public function getControllers() { + public function getControllers() + { return $this->controllers ?: ($this->controllers = new PVESdnClusterControllers($this->client)); } - /** * @ignore */ private $ipams; - /** * Get SdnClusterIpams * @return PVESdnClusterIpams */ - public function getIpams() { + public function getIpams() + { return $this->ipams ?: ($this->ipams = new PVESdnClusterIpams($this->client)); } - /** * @ignore */ private $dns; - /** * Get SdnClusterDns * @return PVESdnClusterDns */ - public function getDns() { + public function getDns() + { return $this->dns ?: ($this->dns = new PVESdnClusterDns($this->client)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/cluster/sdn"); } - /** * Apply sdn controller changes && reload. * @return Result */ - public function reload() { + + public function reload() + { return $this->client->set("/cluster/sdn"); } } - /** * Class PVESdnClusterVnets - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESdnClusterVnets { + class PVESdnClusterVnets + { /** * @ignore @@ -4891,16 +5380,19 @@ class PVESdnClusterVnets { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemVnetsSdnClusterVnet * @param vnet * @return PVEItemVnetsSdnClusterVnet */ - public function get($vnet) { + public function get($vnet) + { return new PVEItemVnetsSdnClusterVnet($this->client, $vnet); } @@ -4910,12 +5402,15 @@ public function get($vnet) { * @param bool $running Display running config. * @return Result */ - public function index($pending = null, $running = null) { - $params = ['pending' => $pending, - 'running' => $running]; + + public function index($pending = null, $running = null) + { + $params = [ + 'pending' => $pending, + 'running' => $running + ]; return $this->client->get("/cluster/sdn/vnets", $params); } - /** * Create a new sdn vnet object. * @param string $vnet The SDN vnet object identifier. @@ -4927,28 +5422,31 @@ public function index($pending = null, $running = null) { * @param bool $vlanaware Allow vm VLANs to pass through this vnet. * @return Result */ - public function create($vnet, $zone, $alias = null, $tag = null, $type = null, $vlanaware = null) { - $params = ['vnet' => $vnet, + + public function create($vnet, $zone, $alias = null, $tag = null, $type = null, $vlanaware = null) + { + $params = [ + 'vnet' => $vnet, 'zone' => $zone, 'alias' => $alias, 'tag' => $tag, 'type' => $type, - 'vlanaware' => $vlanaware]; + 'vlanaware' => $vlanaware + ]; return $this->client->create("/cluster/sdn/vnets", $params); } } - /** * Class PVEItemVnetsSdnClusterVnet - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemVnetsSdnClusterVnet { + class PVEItemVnetsSdnClusterVnet + { /** * @ignore */ private $vnet; - /** * @ignore */ @@ -4957,7 +5455,8 @@ class PVEItemVnetsSdnClusterVnet { /** * @ignore */ - function __construct($client, $vnet) { + function __construct($client, $vnet) + { $this->client = $client; $this->vnet = $vnet; } @@ -4966,48 +5465,52 @@ function __construct($client, $vnet) { * @ignore */ private $subnets; - /** * Get VnetVnetsSdnClusterSubnets * @return PVEVnetVnetsSdnClusterSubnets */ - public function getSubnets() { + public function getSubnets() + { return $this->subnets ?: ($this->subnets = new PVEVnetVnetsSdnClusterSubnets($this->client, $this->vnet)); } - /** * @ignore */ private $ips; - /** * Get VnetVnetsSdnClusterIps * @return PVEVnetVnetsSdnClusterIps */ - public function getIps() { + public function getIps() + { return $this->ips ?: ($this->ips = new PVEVnetVnetsSdnClusterIps($this->client, $this->vnet)); } + /** * Delete sdn vnet object configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/sdn/vnets/{$this->vnet}"); } - /** * Read sdn vnet configuration. * @param bool $pending Display pending config. * @param bool $running Display running config. * @return Result */ - public function read($pending = null, $running = null) { - $params = ['pending' => $pending, - 'running' => $running]; + + public function read($pending = null, $running = null) + { + $params = [ + 'pending' => $pending, + 'running' => $running + ]; return $this->client->get("/cluster/sdn/vnets/{$this->vnet}", $params); } - /** * Update sdn vnet object configuration. * @param string $alias alias name of the vnet @@ -5018,28 +5521,31 @@ public function read($pending = null, $running = null) { * @param string $zone zone id * @return Result */ - public function update($alias = null, $delete = null, $digest = null, $tag = null, $vlanaware = null, $zone = null) { - $params = ['alias' => $alias, + + public function update($alias = null, $delete = null, $digest = null, $tag = null, $vlanaware = null, $zone = null) + { + $params = [ + 'alias' => $alias, 'delete' => $delete, 'digest' => $digest, 'tag' => $tag, 'vlanaware' => $vlanaware, - 'zone' => $zone]; + 'zone' => $zone + ]; return $this->client->set("/cluster/sdn/vnets/{$this->vnet}", $params); } } - /** * Class PVEVnetVnetsSdnClusterSubnets - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVnetVnetsSdnClusterSubnets { + class PVEVnetVnetsSdnClusterSubnets + { /** * @ignore */ private $vnet; - /** * @ignore */ @@ -5048,17 +5554,20 @@ class PVEVnetVnetsSdnClusterSubnets { /** * @ignore */ - function __construct($client, $vnet) { + function __construct($client, $vnet) + { $this->client = $client; $this->vnet = $vnet; } + /** * Get ItemSubnetsVnetVnetsSdnClusterSubnet * @param subnet * @return PVEItemSubnetsVnetVnetsSdnClusterSubnet */ - public function get($subnet) { + public function get($subnet) + { return new PVEItemSubnetsVnetVnetsSdnClusterSubnet($this->client, $this->vnet, $subnet); } @@ -5068,41 +5577,48 @@ public function get($subnet) { * @param bool $running Display running config. * @return Result */ - public function index($pending = null, $running = null) { - $params = ['pending' => $pending, - 'running' => $running]; + + public function index($pending = null, $running = null) + { + $params = [ + 'pending' => $pending, + 'running' => $running + ]; return $this->client->get("/cluster/sdn/vnets/{$this->vnet}/subnets", $params); } - /** * Create a new sdn subnet object. * @param string $subnet The SDN subnet object identifier. - * @param string $type + * @param string $type * Enum: subnet * @param string $dhcp_dns_server IP address for the DNS server - * @param string $dhcp_range A list of DHCP ranges for this subnet + * @param array $dhcp_range A list of DHCP ranges for this subnet * @param string $dnszoneprefix dns domain zone prefix ex: 'adm' -> <hostname>.adm.mydomain.com * @param string $gateway Subnet Gateway: Will be assign on vnet for layer3 zones * @param bool $snat enable masquerade for this subnet if pve-firewall * @return Result */ - public function create($subnet, $type, $dhcp_dns_server = null, $dhcp_range = null, $dnszoneprefix = null, $gateway = null, $snat = null) { - $params = ['subnet' => $subnet, + + public function create($subnet, $type, $dhcp_dns_server = null, $dhcp_range = null, $dnszoneprefix = null, $gateway = null, $snat = null) + { + $params = [ + 'subnet' => $subnet, 'type' => $type, 'dhcp-dns-server' => $dhcp_dns_server, 'dhcp-range' => $dhcp_range, 'dnszoneprefix' => $dnszoneprefix, 'gateway' => $gateway, - 'snat' => $snat]; + 'snat' => $snat + ]; return $this->client->create("/cluster/sdn/vnets/{$this->vnet}/subnets", $params); } } - /** * Class PVEItemSubnetsVnetVnetsSdnClusterSubnet - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemSubnetsVnetVnetsSdnClusterSubnet { + class PVEItemSubnetsVnetVnetsSdnClusterSubnet + { /** * @ignore @@ -5113,7 +5629,6 @@ class PVEItemSubnetsVnetVnetsSdnClusterSubnet { * @ignore */ private $subnet; - /** * @ignore */ @@ -5122,66 +5637,77 @@ class PVEItemSubnetsVnetVnetsSdnClusterSubnet { /** * @ignore */ - function __construct($client, $vnet, $subnet) { + function __construct($client, $vnet, $subnet) + { $this->client = $client; $this->vnet = $vnet; $this->subnet = $subnet; } + + /** * Delete sdn subnet object configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/sdn/vnets/{$this->vnet}/subnets/{$this->subnet}"); } - /** * Read sdn subnet configuration. * @param bool $pending Display pending config. * @param bool $running Display running config. * @return Result */ - public function read($pending = null, $running = null) { - $params = ['pending' => $pending, - 'running' => $running]; + + public function read($pending = null, $running = null) + { + $params = [ + 'pending' => $pending, + 'running' => $running + ]; return $this->client->get("/cluster/sdn/vnets/{$this->vnet}/subnets/{$this->subnet}", $params); } - /** * Update sdn subnet object configuration. * @param string $delete A list of settings you want to delete. * @param string $dhcp_dns_server IP address for the DNS server - * @param string $dhcp_range A list of DHCP ranges for this subnet + * @param array $dhcp_range A list of DHCP ranges for this subnet * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $dnszoneprefix dns domain zone prefix ex: 'adm' -> <hostname>.adm.mydomain.com * @param string $gateway Subnet Gateway: Will be assign on vnet for layer3 zones * @param bool $snat enable masquerade for this subnet if pve-firewall * @return Result */ - public function update($delete = null, $dhcp_dns_server = null, $dhcp_range = null, $digest = null, $dnszoneprefix = null, $gateway = null, $snat = null) { - $params = ['delete' => $delete, + + public function update($delete = null, $dhcp_dns_server = null, $dhcp_range = null, $digest = null, $dnszoneprefix = null, $gateway = null, $snat = null) + { + $params = [ + 'delete' => $delete, 'dhcp-dns-server' => $dhcp_dns_server, 'dhcp-range' => $dhcp_range, 'digest' => $digest, 'dnszoneprefix' => $dnszoneprefix, 'gateway' => $gateway, - 'snat' => $snat]; + 'snat' => $snat + ]; return $this->client->set("/cluster/sdn/vnets/{$this->vnet}/subnets/{$this->subnet}", $params); } } /** * Class PVEVnetVnetsSdnClusterIps - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVnetVnetsSdnClusterIps { + class PVEVnetVnetsSdnClusterIps + { /** * @ignore */ private $vnet; - /** * @ignore */ @@ -5190,11 +5716,14 @@ class PVEVnetVnetsSdnClusterIps { /** * @ignore */ - function __construct($client, $vnet) { + function __construct($client, $vnet) + { $this->client = $client; $this->vnet = $vnet; } + + /** * Delete IP Mappings in a VNet * @param string $ip The IP address to delete @@ -5202,13 +5731,16 @@ function __construct($client, $vnet) { * @param string $mac Unicast MAC address. * @return Result */ - public function ipdelete($ip, $zone, $mac = null) { - $params = ['ip' => $ip, + + public function ipdelete($ip, $zone, $mac = null) + { + $params = [ + 'ip' => $ip, 'zone' => $zone, - 'mac' => $mac]; + 'mac' => $mac + ]; return $this->client->delete("/cluster/sdn/vnets/{$this->vnet}/ips", $params); } - /** * Create IP Mapping in a VNet * @param string $ip The IP address to associate with the given MAC address @@ -5216,13 +5748,16 @@ public function ipdelete($ip, $zone, $mac = null) { * @param string $mac Unicast MAC address. * @return Result */ - public function ipcreate($ip, $zone, $mac = null) { - $params = ['ip' => $ip, + + public function ipcreate($ip, $zone, $mac = null) + { + $params = [ + 'ip' => $ip, 'zone' => $zone, - 'mac' => $mac]; + 'mac' => $mac + ]; return $this->client->create("/cluster/sdn/vnets/{$this->vnet}/ips", $params); } - /** * Update IP Mapping in a VNet * @param string $ip The IP address to associate with the given MAC address @@ -5231,20 +5766,25 @@ public function ipcreate($ip, $zone, $mac = null) { * @param int $vmid The (unique) ID of the VM. * @return Result */ - public function ipupdate($ip, $zone, $mac = null, $vmid = null) { - $params = ['ip' => $ip, + + public function ipupdate($ip, $zone, $mac = null, $vmid = null) + { + $params = [ + 'ip' => $ip, 'zone' => $zone, 'mac' => $mac, - 'vmid' => $vmid]; + 'vmid' => $vmid + ]; return $this->client->set("/cluster/sdn/vnets/{$this->vnet}/ips", $params); } } /** * Class PVESdnClusterZones - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESdnClusterZones { + class PVESdnClusterZones + { /** * @ignore @@ -5254,16 +5794,19 @@ class PVESdnClusterZones { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemZonesSdnClusterZone * @param zone * @return PVEItemZonesSdnClusterZone */ - public function get($zone) { + public function get($zone) + { return new PVEItemZonesSdnClusterZone($this->client, $zone); } @@ -5275,20 +5818,23 @@ public function get($zone) { * Enum: evpn,faucet,qinq,simple,vlan,vxlan * @return Result */ - public function index($pending = null, $running = null, $type = null) { - $params = ['pending' => $pending, + + public function index($pending = null, $running = null, $type = null) + { + $params = [ + 'pending' => $pending, 'running' => $running, - 'type' => $type]; + 'type' => $type + ]; return $this->client->get("/cluster/sdn/zones", $params); } - /** * Create a new sdn zone object. * @param string $type Plugin type. * Enum: evpn,faucet,qinq,simple,vlan,vxlan * @param string $zone The SDN zone object identifier. * @param bool $advertise_subnets Advertise evpn subnets if you have silent hosts - * @param string $bridge + * @param string $bridge * @param bool $bridge_disable_mac_learning Disable auto mac learning. * @param string $controller Frr router name * @param string $dhcp Type of the DHCP backend for this zone @@ -5308,14 +5854,17 @@ public function index($pending = null, $running = null, $type = null) { * @param string $reversedns reverse dns api server * @param string $rt_import Route-Target import * @param int $tag Service-VLAN Tag - * @param string $vlan_protocol + * @param string $vlan_protocol * Enum: 802.1q,802.1ad * @param int $vrf_vxlan l3vni. * @param int $vxlan_port Vxlan tunnel udp port (default 4789). * @return Result */ - public function create($type, $zone, $advertise_subnets = null, $bridge = null, $bridge_disable_mac_learning = null, $controller = null, $dhcp = null, $disable_arp_nd_suppression = null, $dns = null, $dnszone = null, $dp_id = null, $exitnodes = null, $exitnodes_local_routing = null, $exitnodes_primary = null, $ipam = null, $mac = null, $mtu = null, $nodes = null, $peers = null, $reversedns = null, $rt_import = null, $tag = null, $vlan_protocol = null, $vrf_vxlan = null, $vxlan_port = null) { - $params = ['type' => $type, + + public function create($type, $zone, $advertise_subnets = null, $bridge = null, $bridge_disable_mac_learning = null, $controller = null, $dhcp = null, $disable_arp_nd_suppression = null, $dns = null, $dnszone = null, $dp_id = null, $exitnodes = null, $exitnodes_local_routing = null, $exitnodes_primary = null, $ipam = null, $mac = null, $mtu = null, $nodes = null, $peers = null, $reversedns = null, $rt_import = null, $tag = null, $vlan_protocol = null, $vrf_vxlan = null, $vxlan_port = null) + { + $params = [ + 'type' => $type, 'zone' => $zone, 'advertise-subnets' => $advertise_subnets, 'bridge' => $bridge, @@ -5339,22 +5888,22 @@ public function create($type, $zone, $advertise_subnets = null, $bridge = null, 'tag' => $tag, 'vlan-protocol' => $vlan_protocol, 'vrf-vxlan' => $vrf_vxlan, - 'vxlan-port' => $vxlan_port]; + 'vxlan-port' => $vxlan_port + ]; return $this->client->create("/cluster/sdn/zones", $params); } } - /** * Class PVEItemZonesSdnClusterZone - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemZonesSdnClusterZone { + class PVEItemZonesSdnClusterZone + { /** * @ignore */ private $zone; - /** * @ignore */ @@ -5363,35 +5912,42 @@ class PVEItemZonesSdnClusterZone { /** * @ignore */ - function __construct($client, $zone) { + function __construct($client, $zone) + { $this->client = $client; $this->zone = $zone; } + + /** * Delete sdn zone object configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/sdn/zones/{$this->zone}"); } - /** * Read sdn zone configuration. * @param bool $pending Display pending config. * @param bool $running Display running config. * @return Result */ - public function read($pending = null, $running = null) { - $params = ['pending' => $pending, - 'running' => $running]; + + public function read($pending = null, $running = null) + { + $params = [ + 'pending' => $pending, + 'running' => $running + ]; return $this->client->get("/cluster/sdn/zones/{$this->zone}", $params); } - /** * Update sdn zone object configuration. * @param bool $advertise_subnets Advertise evpn subnets if you have silent hosts - * @param string $bridge + * @param string $bridge * @param bool $bridge_disable_mac_learning Disable auto mac learning. * @param string $controller Frr router name * @param string $delete A list of settings you want to delete. @@ -5413,14 +5969,17 @@ public function read($pending = null, $running = null) { * @param string $reversedns reverse dns api server * @param string $rt_import Route-Target import * @param int $tag Service-VLAN Tag - * @param string $vlan_protocol + * @param string $vlan_protocol * Enum: 802.1q,802.1ad * @param int $vrf_vxlan l3vni. * @param int $vxlan_port Vxlan tunnel udp port (default 4789). * @return Result */ - public function update($advertise_subnets = null, $bridge = null, $bridge_disable_mac_learning = null, $controller = null, $delete = null, $dhcp = null, $digest = null, $disable_arp_nd_suppression = null, $dns = null, $dnszone = null, $dp_id = null, $exitnodes = null, $exitnodes_local_routing = null, $exitnodes_primary = null, $ipam = null, $mac = null, $mtu = null, $nodes = null, $peers = null, $reversedns = null, $rt_import = null, $tag = null, $vlan_protocol = null, $vrf_vxlan = null, $vxlan_port = null) { - $params = ['advertise-subnets' => $advertise_subnets, + + public function update($advertise_subnets = null, $bridge = null, $bridge_disable_mac_learning = null, $controller = null, $delete = null, $dhcp = null, $digest = null, $disable_arp_nd_suppression = null, $dns = null, $dnszone = null, $dp_id = null, $exitnodes = null, $exitnodes_local_routing = null, $exitnodes_primary = null, $ipam = null, $mac = null, $mtu = null, $nodes = null, $peers = null, $reversedns = null, $rt_import = null, $tag = null, $vlan_protocol = null, $vrf_vxlan = null, $vxlan_port = null) + { + $params = [ + 'advertise-subnets' => $advertise_subnets, 'bridge' => $bridge, 'bridge-disable-mac-learning' => $bridge_disable_mac_learning, 'controller' => $controller, @@ -5444,16 +6003,18 @@ public function update($advertise_subnets = null, $bridge = null, $bridge_disabl 'tag' => $tag, 'vlan-protocol' => $vlan_protocol, 'vrf-vxlan' => $vrf_vxlan, - 'vxlan-port' => $vxlan_port]; + 'vxlan-port' => $vxlan_port + ]; return $this->client->set("/cluster/sdn/zones/{$this->zone}", $params); } } /** * Class PVESdnClusterControllers - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESdnClusterControllers { + class PVESdnClusterControllers + { /** * @ignore @@ -5463,16 +6024,19 @@ class PVESdnClusterControllers { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemControllersSdnClusterController * @param controller * @return PVEItemControllersSdnClusterController */ - public function get($controller) { + public function get($controller) + { return new PVEItemControllersSdnClusterController($this->client, $controller); } @@ -5484,22 +6048,25 @@ public function get($controller) { * Enum: bgp,evpn,faucet,isis * @return Result */ - public function index($pending = null, $running = null, $type = null) { - $params = ['pending' => $pending, + + public function index($pending = null, $running = null, $type = null) + { + $params = [ + 'pending' => $pending, 'running' => $running, - 'type' => $type]; + 'type' => $type + ]; return $this->client->get("/cluster/sdn/controllers", $params); } - /** * Create a new sdn controller object. * @param string $controller The SDN controller object identifier. * @param string $type Plugin type. * Enum: bgp,evpn,faucet,isis * @param int $asn autonomous system number - * @param bool $bgp_multipath_as_path_relax + * @param bool $bgp_multipath_as_path_relax * @param bool $ebgp Enable ebgp. (remote-as external) - * @param int $ebgp_multihop + * @param int $ebgp_multihop * @param string $isis_domain ISIS domain. * @param string $isis_ifaces ISIS interface. * @param string $isis_net ISIS network entity title. @@ -5508,8 +6075,11 @@ public function index($pending = null, $running = null, $type = null) { * @param string $peers peers address list. * @return Result */ - public function create($controller, $type, $asn = null, $bgp_multipath_as_path_relax = null, $ebgp = null, $ebgp_multihop = null, $isis_domain = null, $isis_ifaces = null, $isis_net = null, $loopback = null, $node = null, $peers = null) { - $params = ['controller' => $controller, + + public function create($controller, $type, $asn = null, $bgp_multipath_as_path_relax = null, $ebgp = null, $ebgp_multihop = null, $isis_domain = null, $isis_ifaces = null, $isis_net = null, $loopback = null, $node = null, $peers = null) + { + $params = [ + 'controller' => $controller, 'type' => $type, 'asn' => $asn, 'bgp-multipath-as-path-relax' => $bgp_multipath_as_path_relax, @@ -5520,22 +6090,22 @@ public function create($controller, $type, $asn = null, $bgp_multipath_as_path_r 'isis-net' => $isis_net, 'loopback' => $loopback, 'node' => $node, - 'peers' => $peers]; + 'peers' => $peers + ]; return $this->client->create("/cluster/sdn/controllers", $params); } } - /** * Class PVEItemControllersSdnClusterController - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemControllersSdnClusterController { + class PVEItemControllersSdnClusterController + { /** * @ignore */ private $controller; - /** * @ignore */ @@ -5544,39 +6114,46 @@ class PVEItemControllersSdnClusterController { /** * @ignore */ - function __construct($client, $controller) { + function __construct($client, $controller) + { $this->client = $client; $this->controller = $controller; } + + /** * Delete sdn controller object configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/sdn/controllers/{$this->controller}"); } - /** * Read sdn controller configuration. * @param bool $pending Display pending config. * @param bool $running Display running config. * @return Result */ - public function read($pending = null, $running = null) { - $params = ['pending' => $pending, - 'running' => $running]; + + public function read($pending = null, $running = null) + { + $params = [ + 'pending' => $pending, + 'running' => $running + ]; return $this->client->get("/cluster/sdn/controllers/{$this->controller}", $params); } - /** * Update sdn controller object configuration. * @param int $asn autonomous system number - * @param bool $bgp_multipath_as_path_relax + * @param bool $bgp_multipath_as_path_relax * @param string $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param bool $ebgp Enable ebgp. (remote-as external) - * @param int $ebgp_multihop + * @param int $ebgp_multihop * @param string $isis_domain ISIS domain. * @param string $isis_ifaces ISIS interface. * @param string $isis_net ISIS network entity title. @@ -5585,8 +6162,11 @@ public function read($pending = null, $running = null) { * @param string $peers peers address list. * @return Result */ - public function update($asn = null, $bgp_multipath_as_path_relax = null, $delete = null, $digest = null, $ebgp = null, $ebgp_multihop = null, $isis_domain = null, $isis_ifaces = null, $isis_net = null, $loopback = null, $node = null, $peers = null) { - $params = ['asn' => $asn, + + public function update($asn = null, $bgp_multipath_as_path_relax = null, $delete = null, $digest = null, $ebgp = null, $ebgp_multihop = null, $isis_domain = null, $isis_ifaces = null, $isis_net = null, $loopback = null, $node = null, $peers = null) + { + $params = [ + 'asn' => $asn, 'bgp-multipath-as-path-relax' => $bgp_multipath_as_path_relax, 'delete' => $delete, 'digest' => $digest, @@ -5597,16 +6177,18 @@ public function update($asn = null, $bgp_multipath_as_path_relax = null, $delete 'isis-net' => $isis_net, 'loopback' => $loopback, 'node' => $node, - 'peers' => $peers]; + 'peers' => $peers + ]; return $this->client->set("/cluster/sdn/controllers/{$this->controller}", $params); } } /** * Class PVESdnClusterIpams - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESdnClusterIpams { + class PVESdnClusterIpams + { /** * @ignore @@ -5616,16 +6198,19 @@ class PVESdnClusterIpams { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemIpamsSdnClusterIpam * @param ipam * @return PVEItemIpamsSdnClusterIpam */ - public function get($ipam) { + public function get($ipam) + { return new PVEItemIpamsSdnClusterIpam($this->client, $ipam); } @@ -5635,42 +6220,46 @@ public function get($ipam) { * Enum: netbox,phpipam,pve * @return Result */ - public function index($type = null) { + + public function index($type = null) + { $params = ['type' => $type]; return $this->client->get("/cluster/sdn/ipams", $params); } - /** * Create a new sdn ipam object. * @param string $ipam The SDN ipam object identifier. * @param string $type Plugin type. * Enum: netbox,phpipam,pve - * @param int $section - * @param string $token - * @param string $url + * @param int $section + * @param string $token + * @param string $url * @return Result */ - public function create($ipam, $type, $section = null, $token = null, $url = null) { - $params = ['ipam' => $ipam, + + public function create($ipam, $type, $section = null, $token = null, $url = null) + { + $params = [ + 'ipam' => $ipam, 'type' => $type, 'section' => $section, 'token' => $token, - 'url' => $url]; + 'url' => $url + ]; return $this->client->create("/cluster/sdn/ipams", $params); } } - /** * Class PVEItemIpamsSdnClusterIpam - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemIpamsSdnClusterIpam { + class PVEItemIpamsSdnClusterIpam + { /** * @ignore */ private $ipam; - /** * @ignore */ @@ -5679,7 +6268,8 @@ class PVEItemIpamsSdnClusterIpam { /** * @ignore */ - function __construct($client, $ipam) { + function __construct($client, $ipam) + { $this->client = $client; $this->ipam = $ipam; } @@ -5688,61 +6278,67 @@ function __construct($client, $ipam) { * @ignore */ private $status; - /** * Get IpamIpamsSdnClusterStatus * @return PVEIpamIpamsSdnClusterStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEIpamIpamsSdnClusterStatus($this->client, $this->ipam)); } + /** * Delete sdn ipam object configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/sdn/ipams/{$this->ipam}"); } - /** * Read sdn ipam configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/cluster/sdn/ipams/{$this->ipam}"); } - /** * Update sdn ipam object configuration. * @param string $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. - * @param int $section - * @param string $token - * @param string $url + * @param int $section + * @param string $token + * @param string $url * @return Result */ - public function update($delete = null, $digest = null, $section = null, $token = null, $url = null) { - $params = ['delete' => $delete, + + public function update($delete = null, $digest = null, $section = null, $token = null, $url = null) + { + $params = [ + 'delete' => $delete, 'digest' => $digest, 'section' => $section, 'token' => $token, - 'url' => $url]; + 'url' => $url + ]; return $this->client->set("/cluster/sdn/ipams/{$this->ipam}", $params); } } - /** * Class PVEIpamIpamsSdnClusterStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEIpamIpamsSdnClusterStatus { + class PVEIpamIpamsSdnClusterStatus + { /** * @ignore */ private $ipam; - /** * @ignore */ @@ -5751,25 +6347,31 @@ class PVEIpamIpamsSdnClusterStatus { /** * @ignore */ - function __construct($client, $ipam) { + function __construct($client, $ipam) + { $this->client = $client; $this->ipam = $ipam; } + + /** * List PVE IPAM Entries * @return Result */ - public function ipamindex() { + + public function ipamindex() + { return $this->client->get("/cluster/sdn/ipams/{$this->ipam}/status"); } } /** * Class PVESdnClusterDns - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESdnClusterDns { + class PVESdnClusterDns + { /** * @ignore @@ -5779,16 +6381,19 @@ class PVESdnClusterDns { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemDnsSdnClusterDns * @param dns * @return PVEItemDnsSdnClusterDns */ - public function get($dns) { + public function get($dns) + { return new PVEItemDnsSdnClusterDns($this->client, $dns); } @@ -5798,46 +6403,50 @@ public function get($dns) { * Enum: powerdns * @return Result */ - public function index($type = null) { + + public function index($type = null) + { $params = ['type' => $type]; return $this->client->get("/cluster/sdn/dns", $params); } - /** * Create a new sdn dns object. * @param string $dns The SDN dns object identifier. - * @param string $key + * @param string $key * @param string $type Plugin type. * Enum: powerdns - * @param string $url - * @param int $reversemaskv6 - * @param int $reversev6mask - * @param int $ttl + * @param string $url + * @param int $reversemaskv6 + * @param int $reversev6mask + * @param int $ttl * @return Result */ - public function create($dns, $key, $type, $url, $reversemaskv6 = null, $reversev6mask = null, $ttl = null) { - $params = ['dns' => $dns, + + public function create($dns, $key, $type, $url, $reversemaskv6 = null, $reversev6mask = null, $ttl = null) + { + $params = [ + 'dns' => $dns, 'key' => $key, 'type' => $type, 'url' => $url, 'reversemaskv6' => $reversemaskv6, 'reversev6mask' => $reversev6mask, - 'ttl' => $ttl]; + 'ttl' => $ttl + ]; return $this->client->create("/cluster/sdn/dns", $params); } } - /** * Class PVEItemDnsSdnClusterDns - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemDnsSdnClusterDns { + class PVEItemDnsSdnClusterDns + { /** * @ignore */ private $dns; - /** * @ignore */ @@ -5846,53 +6455,63 @@ class PVEItemDnsSdnClusterDns { /** * @ignore */ - function __construct($client, $dns) { + function __construct($client, $dns) + { $this->client = $client; $this->dns = $dns; } + + /** * Delete sdn dns object configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/cluster/sdn/dns/{$this->dns}"); } - /** * Read sdn dns configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/cluster/sdn/dns/{$this->dns}"); } - /** * Update sdn dns object configuration. * @param string $delete A list of settings you want to delete. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. - * @param string $key - * @param int $reversemaskv6 - * @param int $ttl - * @param string $url + * @param string $key + * @param int $reversemaskv6 + * @param int $ttl + * @param string $url * @return Result */ - public function update($delete = null, $digest = null, $key = null, $reversemaskv6 = null, $ttl = null, $url = null) { - $params = ['delete' => $delete, + + public function update($delete = null, $digest = null, $key = null, $reversemaskv6 = null, $ttl = null, $url = null) + { + $params = [ + 'delete' => $delete, 'digest' => $digest, 'key' => $key, 'reversemaskv6' => $reversemaskv6, 'ttl' => $ttl, - 'url' => $url]; + 'url' => $url + ]; return $this->client->set("/cluster/sdn/dns/{$this->dns}", $params); } } /** * Class PVEClusterLog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterLog { + class PVEClusterLog + { /** * @ignore @@ -5902,16 +6521,21 @@ class PVEClusterLog { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Read cluster log * @param int $max Maximum number of entries. * @return Result */ - public function log($max = null) { + + public function log($max = null) + { $params = ['max' => $max]; return $this->client->get("/cluster/log", $params); } @@ -5919,9 +6543,10 @@ public function log($max = null) { /** * Class PVEClusterResources - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterResources { + class PVEClusterResources + { /** * @ignore @@ -5931,17 +6556,22 @@ class PVEClusterResources { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Resources index (cluster wide). - * @param string $type + * @param string $type * Enum: vm,storage,node,sdn * @return Result */ - public function resources($type = null) { + + public function resources($type = null) + { $params = ['type' => $type]; return $this->client->get("/cluster/resources", $params); } @@ -5949,9 +6579,10 @@ public function resources($type = null) { /** * Class PVEClusterTasks - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterTasks { + class PVEClusterTasks + { /** * @ignore @@ -5961,24 +6592,30 @@ class PVEClusterTasks { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * List recent tasks (cluster wide). * @return Result */ - public function tasks() { + + public function tasks() + { return $this->client->get("/cluster/tasks"); } } /** * Class PVEClusterOptions - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterOptions { + class PVEClusterOptions + { /** * @ignore @@ -5988,18 +6625,22 @@ class PVEClusterOptions { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. * @return Result */ - public function getOptions() { + + public function getOptions() + { return $this->client->get("/cluster/options"); } - /** * Set datacenter options. * @param string $bwlimit Set I/O bandwidth limit for various operations (in KiB/s). @@ -6030,8 +6671,11 @@ public function getOptions() { * @param string $webauthn webauthn configuration * @return Result */ - public function setOptions($bwlimit = null, $console = null, $crs = null, $delete = null, $description = null, $email_from = null, $fencing = null, $ha = null, $http_proxy = null, $keyboard = null, $language = null, $mac_prefix = null, $max_workers = null, $migration = null, $migration_unsecure = null, $next_id = null, $notify = null, $registered_tags = null, $tag_style = null, $u2f = null, $user_tag_access = null, $webauthn = null) { - $params = ['bwlimit' => $bwlimit, + + public function setOptions($bwlimit = null, $console = null, $crs = null, $delete = null, $description = null, $email_from = null, $fencing = null, $ha = null, $http_proxy = null, $keyboard = null, $language = null, $mac_prefix = null, $max_workers = null, $migration = null, $migration_unsecure = null, $next_id = null, $notify = null, $registered_tags = null, $tag_style = null, $u2f = null, $user_tag_access = null, $webauthn = null) + { + $params = [ + 'bwlimit' => $bwlimit, 'console' => $console, 'crs' => $crs, 'delete' => $delete, @@ -6052,16 +6696,18 @@ public function setOptions($bwlimit = null, $console = null, $crs = null, $delet 'tag-style' => $tag_style, 'u2f' => $u2f, 'user-tag-access' => $user_tag_access, - 'webauthn' => $webauthn]; + 'webauthn' => $webauthn + ]; return $this->client->set("/cluster/options", $params); } } /** * Class PVEClusterStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterStatus { + class PVEClusterStatus + { /** * @ignore @@ -6071,24 +6717,30 @@ class PVEClusterStatus { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get cluster status information. * @return Result */ - public function getStatus() { + + public function getStatus() + { return $this->client->get("/cluster/status"); } } /** * Class PVEClusterNextid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEClusterNextid { + class PVEClusterNextid + { /** * @ignore @@ -6098,16 +6750,21 @@ class PVEClusterNextid { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get next free VMID. Pass a VMID to assert that its free (at time of check). * @param int $vmid The (unique) ID of the VM. * @return Result */ - public function nextid($vmid = null) { + + public function nextid($vmid = null) + { $params = ['vmid' => $vmid]; return $this->client->get("/cluster/nextid", $params); } @@ -6115,9 +6772,10 @@ public function nextid($vmid = null) { /** * Class PVENodes - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodes { + class PVENodes + { /** * @ignore @@ -6127,16 +6785,19 @@ class PVENodes { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemNodesNode * @param node * @return PVEItemNodesNode */ - public function get($node) { + public function get($node) + { return new PVEItemNodesNode($this->client, $node); } @@ -6144,22 +6805,23 @@ public function get($node) { * Cluster node index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes"); } } - /** * Class PVEItemNodesNode - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemNodesNode { + class PVEItemNodesNode + { /** * @ignore */ private $node; - /** * @ignore */ @@ -6168,7 +6830,8 @@ class PVEItemNodesNode { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -6177,568 +6840,529 @@ function __construct($client, $node) { * @ignore */ private $qemu; - /** * Get NodeNodesQemu * @return PVENodeNodesQemu */ - public function getQemu() { + public function getQemu() + { return $this->qemu ?: ($this->qemu = new PVENodeNodesQemu($this->client, $this->node)); } - /** * @ignore */ private $lxc; - /** * Get NodeNodesLxc * @return PVENodeNodesLxc */ - public function getLxc() { + public function getLxc() + { return $this->lxc ?: ($this->lxc = new PVENodeNodesLxc($this->client, $this->node)); } - /** * @ignore */ private $ceph; - /** * Get NodeNodesCeph * @return PVENodeNodesCeph */ - public function getCeph() { + public function getCeph() + { return $this->ceph ?: ($this->ceph = new PVENodeNodesCeph($this->client, $this->node)); } - /** * @ignore */ private $vzdump; - /** * Get NodeNodesVzdump * @return PVENodeNodesVzdump */ - public function getVzdump() { + public function getVzdump() + { return $this->vzdump ?: ($this->vzdump = new PVENodeNodesVzdump($this->client, $this->node)); } - /** * @ignore */ private $services; - /** * Get NodeNodesServices * @return PVENodeNodesServices */ - public function getServices() { + public function getServices() + { return $this->services ?: ($this->services = new PVENodeNodesServices($this->client, $this->node)); } - /** * @ignore */ private $subscription; - /** * Get NodeNodesSubscription * @return PVENodeNodesSubscription */ - public function getSubscription() { + public function getSubscription() + { return $this->subscription ?: ($this->subscription = new PVENodeNodesSubscription($this->client, $this->node)); } - /** * @ignore */ private $network; - /** * Get NodeNodesNetwork * @return PVENodeNodesNetwork */ - public function getNetwork() { + public function getNetwork() + { return $this->network ?: ($this->network = new PVENodeNodesNetwork($this->client, $this->node)); } - /** * @ignore */ private $tasks; - /** * Get NodeNodesTasks * @return PVENodeNodesTasks */ - public function getTasks() { + public function getTasks() + { return $this->tasks ?: ($this->tasks = new PVENodeNodesTasks($this->client, $this->node)); } - /** * @ignore */ private $scan; - /** * Get NodeNodesScan * @return PVENodeNodesScan */ - public function getScan() { + public function getScan() + { return $this->scan ?: ($this->scan = new PVENodeNodesScan($this->client, $this->node)); } - /** * @ignore */ private $hardware; - /** * Get NodeNodesHardware * @return PVENodeNodesHardware */ - public function getHardware() { + public function getHardware() + { return $this->hardware ?: ($this->hardware = new PVENodeNodesHardware($this->client, $this->node)); } - /** * @ignore */ private $capabilities; - /** * Get NodeNodesCapabilities * @return PVENodeNodesCapabilities */ - public function getCapabilities() { + public function getCapabilities() + { return $this->capabilities ?: ($this->capabilities = new PVENodeNodesCapabilities($this->client, $this->node)); } - /** * @ignore */ private $storage; - /** * Get NodeNodesStorage * @return PVENodeNodesStorage */ - public function getStorage() { + public function getStorage() + { return $this->storage ?: ($this->storage = new PVENodeNodesStorage($this->client, $this->node)); } - /** * @ignore */ private $disks; - /** * Get NodeNodesDisks * @return PVENodeNodesDisks */ - public function getDisks() { + public function getDisks() + { return $this->disks ?: ($this->disks = new PVENodeNodesDisks($this->client, $this->node)); } - /** * @ignore */ private $apt; - /** * Get NodeNodesApt * @return PVENodeNodesApt */ - public function getApt() { + public function getApt() + { return $this->apt ?: ($this->apt = new PVENodeNodesApt($this->client, $this->node)); } - /** * @ignore */ private $firewall; - /** * Get NodeNodesFirewall * @return PVENodeNodesFirewall */ - public function getFirewall() { + public function getFirewall() + { return $this->firewall ?: ($this->firewall = new PVENodeNodesFirewall($this->client, $this->node)); } - /** * @ignore */ private $replication; - /** * Get NodeNodesReplication * @return PVENodeNodesReplication */ - public function getReplication() { + public function getReplication() + { return $this->replication ?: ($this->replication = new PVENodeNodesReplication($this->client, $this->node)); } - /** * @ignore */ private $certificates; - /** * Get NodeNodesCertificates * @return PVENodeNodesCertificates */ - public function getCertificates() { + public function getCertificates() + { return $this->certificates ?: ($this->certificates = new PVENodeNodesCertificates($this->client, $this->node)); } - /** * @ignore */ private $config; - /** * Get NodeNodesConfig * @return PVENodeNodesConfig */ - public function getConfig() { + public function getConfig() + { return $this->config ?: ($this->config = new PVENodeNodesConfig($this->client, $this->node)); } - /** * @ignore */ private $sdn; - /** * Get NodeNodesSdn * @return PVENodeNodesSdn */ - public function getSdn() { + public function getSdn() + { return $this->sdn ?: ($this->sdn = new PVENodeNodesSdn($this->client, $this->node)); } - /** * @ignore */ private $version; - /** * Get NodeNodesVersion * @return PVENodeNodesVersion */ - public function getVersion() { + public function getVersion() + { return $this->version ?: ($this->version = new PVENodeNodesVersion($this->client, $this->node)); } - /** * @ignore */ private $status; - /** * Get NodeNodesStatus * @return PVENodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVENodeNodesStatus($this->client, $this->node)); } - /** * @ignore */ private $netstat; - /** * Get NodeNodesNetstat * @return PVENodeNodesNetstat */ - public function getNetstat() { + public function getNetstat() + { return $this->netstat ?: ($this->netstat = new PVENodeNodesNetstat($this->client, $this->node)); } - /** * @ignore */ private $execute; - /** * Get NodeNodesExecute * @return PVENodeNodesExecute */ - public function getExecute() { + public function getExecute() + { return $this->execute ?: ($this->execute = new PVENodeNodesExecute($this->client, $this->node)); } - /** * @ignore */ private $wakeonlan; - /** * Get NodeNodesWakeonlan * @return PVENodeNodesWakeonlan */ - public function getWakeonlan() { + public function getWakeonlan() + { return $this->wakeonlan ?: ($this->wakeonlan = new PVENodeNodesWakeonlan($this->client, $this->node)); } - /** * @ignore */ private $rrd; - /** * Get NodeNodesRrd * @return PVENodeNodesRrd */ - public function getRrd() { + public function getRrd() + { return $this->rrd ?: ($this->rrd = new PVENodeNodesRrd($this->client, $this->node)); } - /** * @ignore */ private $rrddata; - /** * Get NodeNodesRrddata * @return PVENodeNodesRrddata */ - public function getRrddata() { + public function getRrddata() + { return $this->rrddata ?: ($this->rrddata = new PVENodeNodesRrddata($this->client, $this->node)); } - /** * @ignore */ private $syslog; - /** * Get NodeNodesSyslog * @return PVENodeNodesSyslog */ - public function getSyslog() { + public function getSyslog() + { return $this->syslog ?: ($this->syslog = new PVENodeNodesSyslog($this->client, $this->node)); } - /** * @ignore */ private $journal; - /** * Get NodeNodesJournal * @return PVENodeNodesJournal */ - public function getJournal() { + public function getJournal() + { return $this->journal ?: ($this->journal = new PVENodeNodesJournal($this->client, $this->node)); } - /** * @ignore */ private $vncshell; - /** * Get NodeNodesVncshell * @return PVENodeNodesVncshell */ - public function getVncshell() { + public function getVncshell() + { return $this->vncshell ?: ($this->vncshell = new PVENodeNodesVncshell($this->client, $this->node)); } - /** * @ignore */ private $termproxy; - /** * Get NodeNodesTermproxy * @return PVENodeNodesTermproxy */ - public function getTermproxy() { + public function getTermproxy() + { return $this->termproxy ?: ($this->termproxy = new PVENodeNodesTermproxy($this->client, $this->node)); } - /** * @ignore */ private $vncwebsocket; - /** * Get NodeNodesVncwebsocket * @return PVENodeNodesVncwebsocket */ - public function getVncwebsocket() { + public function getVncwebsocket() + { return $this->vncwebsocket ?: ($this->vncwebsocket = new PVENodeNodesVncwebsocket($this->client, $this->node)); } - /** * @ignore */ private $spiceshell; - /** * Get NodeNodesSpiceshell * @return PVENodeNodesSpiceshell */ - public function getSpiceshell() { + public function getSpiceshell() + { return $this->spiceshell ?: ($this->spiceshell = new PVENodeNodesSpiceshell($this->client, $this->node)); } - /** * @ignore */ private $dns; - /** * Get NodeNodesDns * @return PVENodeNodesDns */ - public function getDns() { + public function getDns() + { return $this->dns ?: ($this->dns = new PVENodeNodesDns($this->client, $this->node)); } - /** * @ignore */ private $time; - /** * Get NodeNodesTime * @return PVENodeNodesTime */ - public function getTime() { + public function getTime() + { return $this->time ?: ($this->time = new PVENodeNodesTime($this->client, $this->node)); } - /** * @ignore */ private $aplinfo; - /** * Get NodeNodesAplinfo * @return PVENodeNodesAplinfo */ - public function getAplinfo() { + public function getAplinfo() + { return $this->aplinfo ?: ($this->aplinfo = new PVENodeNodesAplinfo($this->client, $this->node)); } - /** * @ignore */ private $queryUrlMetadata; - /** * Get NodeNodesQueryUrlMetadata * @return PVENodeNodesQueryUrlMetadata */ - public function getQueryUrlMetadata() { + public function getQueryUrlMetadata() + { return $this->queryUrlMetadata ?: ($this->queryUrlMetadata = new PVENodeNodesQueryUrlMetadata($this->client, $this->node)); } - /** * @ignore */ private $report; - /** * Get NodeNodesReport * @return PVENodeNodesReport */ - public function getReport() { + public function getReport() + { return $this->report ?: ($this->report = new PVENodeNodesReport($this->client, $this->node)); } - /** * @ignore */ private $startall; - /** * Get NodeNodesStartall * @return PVENodeNodesStartall */ - public function getStartall() { + public function getStartall() + { return $this->startall ?: ($this->startall = new PVENodeNodesStartall($this->client, $this->node)); } - /** * @ignore */ private $stopall; - /** * Get NodeNodesStopall * @return PVENodeNodesStopall */ - public function getStopall() { + public function getStopall() + { return $this->stopall ?: ($this->stopall = new PVENodeNodesStopall($this->client, $this->node)); } - /** * @ignore */ private $suspendall; - /** * Get NodeNodesSuspendall * @return PVENodeNodesSuspendall */ - public function getSuspendall() { + public function getSuspendall() + { return $this->suspendall ?: ($this->suspendall = new PVENodeNodesSuspendall($this->client, $this->node)); } - /** * @ignore */ private $migrateall; - /** * Get NodeNodesMigrateall * @return PVENodeNodesMigrateall */ - public function getMigrateall() { + public function getMigrateall() + { return $this->migrateall ?: ($this->migrateall = new PVENodeNodesMigrateall($this->client, $this->node)); } - /** * @ignore */ private $hosts; - /** * Get NodeNodesHosts * @return PVENodeNodesHosts */ - public function getHosts() { + public function getHosts() + { return $this->hosts ?: ($this->hosts = new PVENodeNodesHosts($this->client, $this->node)); } + /** * Node index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}"); } } - /** * Class PVENodeNodesQemu - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesQemu { + class PVENodeNodesQemu + { /** * @ignore */ private $node; - /** * @ignore */ @@ -6747,17 +7371,20 @@ class PVENodeNodesQemu { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemQemuNodeNodesVmid * @param vmid * @return PVEItemQemuNodeNodesVmid */ - public function get($vmid) { + public function get($vmid) + { return new PVEItemQemuNodeNodesVmid($this->client, $this->node, $vmid); } @@ -6766,11 +7393,12 @@ public function get($vmid) { * @param bool $full Determine the full status of active VMs. * @return Result */ - public function vmlist($full = null) { + + public function vmlist($full = null) + { $params = ['full' => $full]; return $this->client->get("/nodes/{$this->node}/qemu", $params); } - /** * Create or restore a virtual machine. * @param int $vmid The (unique) ID of the VM. @@ -6810,7 +7438,7 @@ public function vmlist($full = null) { * @param string $hugepages Enable/disable hugepages memory. * Enum: any,2,1024 * @param array $ideN Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. - * @param array $ipconfigN cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + * @param array $ipconfigN cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. * @param string $ivshmem Inter-VM shared memory. Useful for direct communication between VMs, or to the host. * @param bool $keephugepages Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts. * @param string $keyboard Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS. @@ -6869,8 +7497,11 @@ public function vmlist($full = null) { * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function createVm($vmid, $acpi = null, $affinity = null, $agent = null, $arch = null, $archive = null, $args = null, $audio0 = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $bwlimit = null, $cdrom = null, $cicustom = null, $cipassword = null, $citype = null, $ciupgrade = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $description = null, $efidisk0 = null, $force = null, $freeze = null, $hookscript = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $ivshmem = null, $keephugepages = null, $keyboard = null, $kvm = null, $live_restore = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $pool = null, $protection = null, $reboot = null, $rng0 = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $smbios1 = null, $smp = null, $sockets = null, $spice_enhancements = null, $sshkeys = null, $start = null, $startdate = null, $startup = null, $storage = null, $tablet = null, $tags = null, $tdf = null, $template = null, $tpmstate0 = null, $unique = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { - $params = ['vmid' => $vmid, + + public function createVm($vmid, $acpi = null, $affinity = null, $agent = null, $arch = null, $archive = null, $args = null, $audio0 = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $bwlimit = null, $cdrom = null, $cicustom = null, $cipassword = null, $citype = null, $ciupgrade = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $description = null, $efidisk0 = null, $force = null, $freeze = null, $hookscript = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $ivshmem = null, $keephugepages = null, $keyboard = null, $kvm = null, $live_restore = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $pool = null, $protection = null, $reboot = null, $rng0 = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $smbios1 = null, $smp = null, $sockets = null, $spice_enhancements = null, $sshkeys = null, $start = null, $startdate = null, $startup = null, $storage = null, $tablet = null, $tags = null, $tdf = null, $template = null, $tpmstate0 = null, $unique = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) + { + $params = [ + 'vmid' => $vmid, 'acpi' => $acpi, 'affinity' => $affinity, 'agent' => $agent, @@ -6943,7 +7574,8 @@ public function createVm($vmid, $acpi = null, $affinity = null, $agent = null, $ 'vga' => $vga, 'vmgenid' => $vmgenid, 'vmstatestorage' => $vmstatestorage, - 'watchdog' => $watchdog]; + 'watchdog' => $watchdog + ]; $this->client->addIndexedParameter($params, 'hostpci', $hostpciN); $this->client->addIndexedParameter($params, 'ide', $ideN); $this->client->addIndexedParameter($params, 'ipconfig', $ipconfigN); @@ -6959,12 +7591,12 @@ public function createVm($vmid, $acpi = null, $affinity = null, $agent = null, $ return $this->client->create("/nodes/{$this->node}/qemu", $params); } } - /** * Class PVEItemQemuNodeNodesVmid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemQemuNodeNodesVmid { + class PVEItemQemuNodeNodesVmid + { /** * @ignore @@ -6975,7 +7607,6 @@ class PVEItemQemuNodeNodesVmid { * @ignore */ private $vmid; - /** * @ignore */ @@ -6984,7 +7615,8 @@ class PVEItemQemuNodeNodesVmid { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -6994,327 +7626,304 @@ function __construct($client, $node, $vmid) { * @ignore */ private $firewall; - /** * Get VmidQemuNodeNodesFirewall * @return PVEVmidQemuNodeNodesFirewall */ - public function getFirewall() { + public function getFirewall() + { return $this->firewall ?: ($this->firewall = new PVEVmidQemuNodeNodesFirewall($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $agent; - /** * Get VmidQemuNodeNodesAgent * @return PVEVmidQemuNodeNodesAgent */ - public function getAgent() { + public function getAgent() + { return $this->agent ?: ($this->agent = new PVEVmidQemuNodeNodesAgent($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $rrd; - /** * Get VmidQemuNodeNodesRrd * @return PVEVmidQemuNodeNodesRrd */ - public function getRrd() { + public function getRrd() + { return $this->rrd ?: ($this->rrd = new PVEVmidQemuNodeNodesRrd($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $rrddata; - /** * Get VmidQemuNodeNodesRrddata * @return PVEVmidQemuNodeNodesRrddata */ - public function getRrddata() { + public function getRrddata() + { return $this->rrddata ?: ($this->rrddata = new PVEVmidQemuNodeNodesRrddata($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $config; - /** * Get VmidQemuNodeNodesConfig * @return PVEVmidQemuNodeNodesConfig */ - public function getConfig() { + public function getConfig() + { return $this->config ?: ($this->config = new PVEVmidQemuNodeNodesConfig($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $pending; - /** * Get VmidQemuNodeNodesPending * @return PVEVmidQemuNodeNodesPending */ - public function getPending() { + public function getPending() + { return $this->pending ?: ($this->pending = new PVEVmidQemuNodeNodesPending($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $cloudinit; - /** * Get VmidQemuNodeNodesCloudinit * @return PVEVmidQemuNodeNodesCloudinit */ - public function getCloudinit() { + public function getCloudinit() + { return $this->cloudinit ?: ($this->cloudinit = new PVEVmidQemuNodeNodesCloudinit($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $unlink; - /** * Get VmidQemuNodeNodesUnlink * @return PVEVmidQemuNodeNodesUnlink */ - public function getUnlink() { + public function getUnlink() + { return $this->unlink ?: ($this->unlink = new PVEVmidQemuNodeNodesUnlink($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $vncproxy; - /** * Get VmidQemuNodeNodesVncproxy * @return PVEVmidQemuNodeNodesVncproxy */ - public function getVncproxy() { + public function getVncproxy() + { return $this->vncproxy ?: ($this->vncproxy = new PVEVmidQemuNodeNodesVncproxy($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $termproxy; - /** * Get VmidQemuNodeNodesTermproxy * @return PVEVmidQemuNodeNodesTermproxy */ - public function getTermproxy() { + public function getTermproxy() + { return $this->termproxy ?: ($this->termproxy = new PVEVmidQemuNodeNodesTermproxy($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $vncwebsocket; - /** * Get VmidQemuNodeNodesVncwebsocket * @return PVEVmidQemuNodeNodesVncwebsocket */ - public function getVncwebsocket() { + public function getVncwebsocket() + { return $this->vncwebsocket ?: ($this->vncwebsocket = new PVEVmidQemuNodeNodesVncwebsocket($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $spiceproxy; - /** * Get VmidQemuNodeNodesSpiceproxy * @return PVEVmidQemuNodeNodesSpiceproxy */ - public function getSpiceproxy() { + public function getSpiceproxy() + { return $this->spiceproxy ?: ($this->spiceproxy = new PVEVmidQemuNodeNodesSpiceproxy($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $status; - /** * Get VmidQemuNodeNodesStatus * @return PVEVmidQemuNodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEVmidQemuNodeNodesStatus($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $sendkey; - /** * Get VmidQemuNodeNodesSendkey * @return PVEVmidQemuNodeNodesSendkey */ - public function getSendkey() { + public function getSendkey() + { return $this->sendkey ?: ($this->sendkey = new PVEVmidQemuNodeNodesSendkey($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $feature; - /** * Get VmidQemuNodeNodesFeature * @return PVEVmidQemuNodeNodesFeature */ - public function getFeature() { + public function getFeature() + { return $this->feature ?: ($this->feature = new PVEVmidQemuNodeNodesFeature($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $clone; - /** * Get VmidQemuNodeNodesClone * @return PVEVmidQemuNodeNodesClone */ - public function getClone() { + public function getClone() + { return $this->clone ?: ($this->clone = new PVEVmidQemuNodeNodesClone($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $moveDisk; - /** * Get VmidQemuNodeNodesMoveDisk * @return PVEVmidQemuNodeNodesMoveDisk */ - public function getMoveDisk() { + public function getMoveDisk() + { return $this->moveDisk ?: ($this->moveDisk = new PVEVmidQemuNodeNodesMoveDisk($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $migrate; - /** * Get VmidQemuNodeNodesMigrate * @return PVEVmidQemuNodeNodesMigrate */ - public function getMigrate() { + public function getMigrate() + { return $this->migrate ?: ($this->migrate = new PVEVmidQemuNodeNodesMigrate($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $remoteMigrate; - /** * Get VmidQemuNodeNodesRemoteMigrate * @return PVEVmidQemuNodeNodesRemoteMigrate */ - public function getRemoteMigrate() { + public function getRemoteMigrate() + { return $this->remoteMigrate ?: ($this->remoteMigrate = new PVEVmidQemuNodeNodesRemoteMigrate($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $monitor; - /** * Get VmidQemuNodeNodesMonitor * @return PVEVmidQemuNodeNodesMonitor */ - public function getMonitor() { + public function getMonitor() + { return $this->monitor ?: ($this->monitor = new PVEVmidQemuNodeNodesMonitor($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $resize; - /** * Get VmidQemuNodeNodesResize * @return PVEVmidQemuNodeNodesResize */ - public function getResize() { + public function getResize() + { return $this->resize ?: ($this->resize = new PVEVmidQemuNodeNodesResize($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $snapshot; - /** * Get VmidQemuNodeNodesSnapshot * @return PVEVmidQemuNodeNodesSnapshot */ - public function getSnapshot() { + public function getSnapshot() + { return $this->snapshot ?: ($this->snapshot = new PVEVmidQemuNodeNodesSnapshot($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $template; - /** * Get VmidQemuNodeNodesTemplate * @return PVEVmidQemuNodeNodesTemplate */ - public function getTemplate() { + public function getTemplate() + { return $this->template ?: ($this->template = new PVEVmidQemuNodeNodesTemplate($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $mtunnel; - /** * Get VmidQemuNodeNodesMtunnel * @return PVEVmidQemuNodeNodesMtunnel */ - public function getMtunnel() { + public function getMtunnel() + { return $this->mtunnel ?: ($this->mtunnel = new PVEVmidQemuNodeNodesMtunnel($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $mtunnelwebsocket; - /** * Get VmidQemuNodeNodesMtunnelwebsocket * @return PVEVmidQemuNodeNodesMtunnelwebsocket */ - public function getMtunnelwebsocket() { + public function getMtunnelwebsocket() + { return $this->mtunnelwebsocket ?: ($this->mtunnelwebsocket = new PVEVmidQemuNodeNodesMtunnelwebsocket($this->client, $this->node, $this->vmid)); } + /** * Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules * @param bool $destroy_unreferenced_disks If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages. @@ -7322,27 +7931,32 @@ public function getMtunnelwebsocket() { * @param bool $skiplock Ignore locks - only root is allowed to use this option. * @return Result */ - public function destroyVm($destroy_unreferenced_disks = null, $purge = null, $skiplock = null) { - $params = ['destroy-unreferenced-disks' => $destroy_unreferenced_disks, + + public function destroyVm($destroy_unreferenced_disks = null, $purge = null, $skiplock = null) + { + $params = [ + 'destroy-unreferenced-disks' => $destroy_unreferenced_disks, 'purge' => $purge, - 'skiplock' => $skiplock]; + 'skiplock' => $skiplock + ]; return $this->client->delete("/nodes/{$this->node}/qemu/{$this->vmid}", $params); } - /** * Directory index * @return Result */ - public function vmdiridx() { + + public function vmdiridx() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}"); } } - /** * Class PVEVmidQemuNodeNodesFirewall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesFirewall { + class PVEVmidQemuNodeNodesFirewall + { /** * @ignore @@ -7353,7 +7967,6 @@ class PVEVmidQemuNodeNodesFirewall { * @ignore */ private $vmid; - /** * @ignore */ @@ -7362,7 +7975,8 @@ class PVEVmidQemuNodeNodesFirewall { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -7372,94 +7986,92 @@ function __construct($client, $node, $vmid) { * @ignore */ private $rules; - /** * Get FirewallVmidQemuNodeNodesRules * @return PVEFirewallVmidQemuNodeNodesRules */ - public function getRules() { + public function getRules() + { return $this->rules ?: ($this->rules = new PVEFirewallVmidQemuNodeNodesRules($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $aliases; - /** * Get FirewallVmidQemuNodeNodesAliases * @return PVEFirewallVmidQemuNodeNodesAliases */ - public function getAliases() { + public function getAliases() + { return $this->aliases ?: ($this->aliases = new PVEFirewallVmidQemuNodeNodesAliases($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $ipset; - /** * Get FirewallVmidQemuNodeNodesIpset * @return PVEFirewallVmidQemuNodeNodesIpset */ - public function getIpset() { + public function getIpset() + { return $this->ipset ?: ($this->ipset = new PVEFirewallVmidQemuNodeNodesIpset($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $options; - /** * Get FirewallVmidQemuNodeNodesOptions * @return PVEFirewallVmidQemuNodeNodesOptions */ - public function getOptions() { + public function getOptions() + { return $this->options ?: ($this->options = new PVEFirewallVmidQemuNodeNodesOptions($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $log; - /** * Get FirewallVmidQemuNodeNodesLog * @return PVEFirewallVmidQemuNodeNodesLog */ - public function getLog() { + public function getLog() + { return $this->log ?: ($this->log = new PVEFirewallVmidQemuNodeNodesLog($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $refs; - /** * Get FirewallVmidQemuNodeNodesRefs * @return PVEFirewallVmidQemuNodeNodesRefs */ - public function getRefs() { + public function getRefs() + { return $this->refs ?: ($this->refs = new PVEFirewallVmidQemuNodeNodesRefs($this->client, $this->node, $this->vmid)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall"); } } - /** * Class PVEFirewallVmidQemuNodeNodesRules - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidQemuNodeNodesRules { + class PVEFirewallVmidQemuNodeNodesRules + { /** * @ignore @@ -7470,7 +8082,6 @@ class PVEFirewallVmidQemuNodeNodesRules { * @ignore */ private $vmid; - /** * @ignore */ @@ -7479,18 +8090,21 @@ class PVEFirewallVmidQemuNodeNodesRules { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemRulesFirewallVmidQemuNodeNodesPos * @param pos * @return PVEItemRulesFirewallVmidQemuNodeNodesPos */ - public function get($pos) { + public function get($pos) + { return new PVEItemRulesFirewallVmidQemuNodeNodesPos($this->client, $this->node, $this->vmid, $pos); } @@ -7498,10 +8112,11 @@ public function get($pos) { * List rules. * @return Result */ - public function getRules() { + + public function getRules() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/rules"); } - /** * Create new rule. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -7523,8 +8138,11 @@ public function getRules() { * @param string $sport Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\d+:\d+', for example '80:85', and you can use comma separated list to match several ports or ranges. * @return Result */ - public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) { - $params = ['action' => $action, + + public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) + { + $params = [ + 'action' => $action, 'type' => $type, 'comment' => $comment, 'dest' => $dest, @@ -7538,16 +8156,17 @@ public function createRule($action, $type, $comment = null, $dest = null, $diges 'pos' => $pos, 'proto' => $proto, 'source' => $source, - 'sport' => $sport]; + 'sport' => $sport + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/rules", $params); } } - /** * Class PVEItemRulesFirewallVmidQemuNodeNodesPos - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemRulesFirewallVmidQemuNodeNodesPos { + class PVEItemRulesFirewallVmidQemuNodeNodesPos + { /** * @ignore @@ -7563,7 +8182,6 @@ class PVEItemRulesFirewallVmidQemuNodeNodesPos { * @ignore */ private $pos; - /** * @ignore */ @@ -7572,31 +8190,36 @@ class PVEItemRulesFirewallVmidQemuNodeNodesPos { /** * @ignore */ - function __construct($client, $node, $vmid, $pos) { + function __construct($client, $node, $vmid, $pos) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->pos = $pos; } + + /** * Delete rule. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function deleteRule($digest = null) { + + public function deleteRule($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/rules/{$this->pos}", $params); } - /** * Get single rule data. * @return Result */ - public function getRule() { + + public function getRule() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/rules/{$this->pos}"); } - /** * Modify rule data. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -7619,8 +8242,11 @@ public function getRule() { * Enum: in,out,group * @return Result */ - public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) { - $params = ['action' => $action, + + public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) + { + $params = [ + 'action' => $action, 'comment' => $comment, 'delete' => $delete, 'dest' => $dest, @@ -7635,16 +8261,18 @@ public function updateRule($action = null, $comment = null, $delete = null, $des 'proto' => $proto, 'source' => $source, 'sport' => $sport, - 'type' => $type]; + 'type' => $type + ]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/rules/{$this->pos}", $params); } } /** * Class PVEFirewallVmidQemuNodeNodesAliases - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidQemuNodeNodesAliases { + class PVEFirewallVmidQemuNodeNodesAliases + { /** * @ignore @@ -7655,7 +8283,6 @@ class PVEFirewallVmidQemuNodeNodesAliases { * @ignore */ private $vmid; - /** * @ignore */ @@ -7664,18 +8291,21 @@ class PVEFirewallVmidQemuNodeNodesAliases { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemAliasesFirewallVmidQemuNodeNodesName * @param name * @return PVEItemAliasesFirewallVmidQemuNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemAliasesFirewallVmidQemuNodeNodesName($this->client, $this->node, $this->vmid, $name); } @@ -7683,30 +8313,35 @@ public function get($name) { * List aliases * @return Result */ - public function getAliases() { + + public function getAliases() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/aliases"); } - /** * Create IP or Network Alias. * @param string $cidr Network/IP specification in CIDR format. * @param string $name Alias name. - * @param string $comment + * @param string $comment * @return Result */ - public function createAlias($cidr, $name, $comment = null) { - $params = ['cidr' => $cidr, + + public function createAlias($cidr, $name, $comment = null) + { + $params = [ + 'cidr' => $cidr, 'name' => $name, - 'comment' => $comment]; + 'comment' => $comment + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/aliases", $params); } } - /** * Class PVEItemAliasesFirewallVmidQemuNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemAliasesFirewallVmidQemuNodeNodesName { + class PVEItemAliasesFirewallVmidQemuNodeNodesName + { /** * @ignore @@ -7722,7 +8357,6 @@ class PVEItemAliasesFirewallVmidQemuNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -7731,53 +8365,63 @@ class PVEItemAliasesFirewallVmidQemuNodeNodesName { /** * @ignore */ - function __construct($client, $node, $vmid, $name) { + function __construct($client, $node, $vmid, $name) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->name = $name; } + + /** * Remove IP or Network alias. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function removeAlias($digest = null) { + + public function removeAlias($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/aliases/{$this->name}", $params); } - /** * Read alias. * @return Result */ - public function readAlias() { + + public function readAlias() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/aliases/{$this->name}"); } - /** * Update IP or Network alias. * @param string $cidr Network/IP specification in CIDR format. - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $rename Rename an existing alias. * @return Result */ - public function updateAlias($cidr, $comment = null, $digest = null, $rename = null) { - $params = ['cidr' => $cidr, + + public function updateAlias($cidr, $comment = null, $digest = null, $rename = null) + { + $params = [ + 'cidr' => $cidr, 'comment' => $comment, 'digest' => $digest, - 'rename' => $rename]; + 'rename' => $rename + ]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/aliases/{$this->name}", $params); } } /** * Class PVEFirewallVmidQemuNodeNodesIpset - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidQemuNodeNodesIpset { + class PVEFirewallVmidQemuNodeNodesIpset + { /** * @ignore @@ -7788,7 +8432,6 @@ class PVEFirewallVmidQemuNodeNodesIpset { * @ignore */ private $vmid; - /** * @ignore */ @@ -7797,18 +8440,21 @@ class PVEFirewallVmidQemuNodeNodesIpset { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemIpsetFirewallVmidQemuNodeNodesName * @param name * @return PVEItemIpsetFirewallVmidQemuNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemIpsetFirewallVmidQemuNodeNodesName($this->client, $this->node, $this->vmid, $name); } @@ -7816,32 +8462,37 @@ public function get($name) { * List IPSets * @return Result */ - public function ipsetIndex() { + + public function ipsetIndex() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset"); } - /** * Create new IPSet * @param string $name IP set name. - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $rename Rename an existing IPSet. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing IPSet. * @return Result */ - public function createIpset($name, $comment = null, $digest = null, $rename = null) { - $params = ['name' => $name, + + public function createIpset($name, $comment = null, $digest = null, $rename = null) + { + $params = [ + 'name' => $name, 'comment' => $comment, 'digest' => $digest, - 'rename' => $rename]; + 'rename' => $rename + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset", $params); } } - /** * Class PVEItemIpsetFirewallVmidQemuNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemIpsetFirewallVmidQemuNodeNodesName { + class PVEItemIpsetFirewallVmidQemuNodeNodesName + { /** * @ignore @@ -7857,7 +8508,6 @@ class PVEItemIpsetFirewallVmidQemuNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -7866,19 +8516,22 @@ class PVEItemIpsetFirewallVmidQemuNodeNodesName { /** * @ignore */ - function __construct($client, $node, $vmid, $name) { + function __construct($client, $node, $vmid, $name) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->name = $name; } + /** * Get ItemNameIpsetFirewallVmidQemuNodeNodesCidr * @param cidr * @return PVEItemNameIpsetFirewallVmidQemuNodeNodesCidr */ - public function get($cidr) { + public function get($cidr) + { return new PVEItemNameIpsetFirewallVmidQemuNodeNodesCidr($this->client, $this->node, $this->vmid, $this->name, $cidr); } @@ -7887,39 +8540,45 @@ public function get($cidr) { * @param bool $force Delete all members of the IPSet, if there are any. * @return Result */ - public function deleteIpset($force = null) { + + public function deleteIpset($force = null) + { $params = ['force' => $force]; return $this->client->delete("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset/{$this->name}", $params); } - /** * List IPSet content * @return Result */ - public function getIpset() { + + public function getIpset() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset/{$this->name}"); } - /** * Add IP or Network to IPSet. * @param string $cidr Network/IP specification in CIDR format. - * @param string $comment - * @param bool $nomatch + * @param string $comment + * @param bool $nomatch * @return Result */ - public function createIp($cidr, $comment = null, $nomatch = null) { - $params = ['cidr' => $cidr, + + public function createIp($cidr, $comment = null, $nomatch = null) + { + $params = [ + 'cidr' => $cidr, 'comment' => $comment, - 'nomatch' => $nomatch]; + 'nomatch' => $nomatch + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset/{$this->name}", $params); } } - /** * Class PVEItemNameIpsetFirewallVmidQemuNodeNodesCidr - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemNameIpsetFirewallVmidQemuNodeNodesCidr { + class PVEItemNameIpsetFirewallVmidQemuNodeNodesCidr + { /** * @ignore @@ -7940,7 +8599,6 @@ class PVEItemNameIpsetFirewallVmidQemuNodeNodesCidr { * @ignore */ private $cidr; - /** * @ignore */ @@ -7949,7 +8607,8 @@ class PVEItemNameIpsetFirewallVmidQemuNodeNodesCidr { /** * @ignore */ - function __construct($client, $node, $vmid, $name, $cidr) { + function __construct($client, $node, $vmid, $name, $cidr) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -7957,44 +8616,53 @@ function __construct($client, $node, $vmid, $name, $cidr) { $this->cidr = $cidr; } + + /** * Remove IP or Network from IPSet. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function removeIp($digest = null) { + + public function removeIp($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset/{$this->name}/{$this->cidr}", $params); } - /** * Read IP or Network settings from IPSet. * @return Result */ - public function readIp() { + + public function readIp() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset/{$this->name}/{$this->cidr}"); } - /** * Update IP or Network settings - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. - * @param bool $nomatch + * @param bool $nomatch * @return Result */ - public function updateIp($comment = null, $digest = null, $nomatch = null) { - $params = ['comment' => $comment, + + public function updateIp($comment = null, $digest = null, $nomatch = null) + { + $params = [ + 'comment' => $comment, 'digest' => $digest, - 'nomatch' => $nomatch]; + 'nomatch' => $nomatch + ]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/ipset/{$this->name}/{$this->cidr}", $params); } } /** * Class PVEFirewallVmidQemuNodeNodesOptions - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidQemuNodeNodesOptions { + class PVEFirewallVmidQemuNodeNodesOptions + { /** * @ignore @@ -8005,7 +8673,6 @@ class PVEFirewallVmidQemuNodeNodesOptions { * @ignore */ private $vmid; - /** * @ignore */ @@ -8014,20 +8681,24 @@ class PVEFirewallVmidQemuNodeNodesOptions { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get VM firewall options. * @return Result */ - public function getOptions() { + + public function getOptions() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/options"); } - /** * Set Firewall options. * @param string $delete A list of settings you want to delete. @@ -8048,8 +8719,11 @@ public function getOptions() { * @param bool $radv Allow sending Router Advertisement. * @return Result */ - public function setOptions($delete = null, $dhcp = null, $digest = null, $enable = null, $ipfilter = null, $log_level_in = null, $log_level_out = null, $macfilter = null, $ndp = null, $policy_in = null, $policy_out = null, $radv = null) { - $params = ['delete' => $delete, + + public function setOptions($delete = null, $dhcp = null, $digest = null, $enable = null, $ipfilter = null, $log_level_in = null, $log_level_out = null, $macfilter = null, $ndp = null, $policy_in = null, $policy_out = null, $radv = null) + { + $params = [ + 'delete' => $delete, 'dhcp' => $dhcp, 'digest' => $digest, 'enable' => $enable, @@ -8060,16 +8734,18 @@ public function setOptions($delete = null, $dhcp = null, $digest = null, $enable 'ndp' => $ndp, 'policy_in' => $policy_in, 'policy_out' => $policy_out, - 'radv' => $radv]; + 'radv' => $radv + ]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/options", $params); } } /** * Class PVEFirewallVmidQemuNodeNodesLog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidQemuNodeNodesLog { + class PVEFirewallVmidQemuNodeNodesLog + { /** * @ignore @@ -8080,7 +8756,6 @@ class PVEFirewallVmidQemuNodeNodesLog { * @ignore */ private $vmid; - /** * @ignore */ @@ -8089,34 +8764,42 @@ class PVEFirewallVmidQemuNodeNodesLog { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Read firewall log - * @param int $limit + * @param int $limit * @param int $since Display log since this UNIX epoch. - * @param int $start + * @param int $start * @param int $until Display log until this UNIX epoch. * @return Result */ - public function log($limit = null, $since = null, $start = null, $until = null) { - $params = ['limit' => $limit, + + public function log($limit = null, $since = null, $start = null, $until = null) + { + $params = [ + 'limit' => $limit, 'since' => $since, 'start' => $start, - 'until' => $until]; + 'until' => $until + ]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/log", $params); } } /** * Class PVEFirewallVmidQemuNodeNodesRefs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidQemuNodeNodesRefs { + class PVEFirewallVmidQemuNodeNodesRefs + { /** * @ignore @@ -8127,7 +8810,6 @@ class PVEFirewallVmidQemuNodeNodesRefs { * @ignore */ private $vmid; - /** * @ignore */ @@ -8136,19 +8818,24 @@ class PVEFirewallVmidQemuNodeNodesRefs { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Lists possible IPSet/Alias reference which are allowed in source/dest properties. * @param string $type Only list references of specified type. * Enum: alias,ipset * @return Result */ - public function refs($type = null) { + + public function refs($type = null) + { $params = ['type' => $type]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/firewall/refs", $params); } @@ -8156,9 +8843,10 @@ public function refs($type = null) { /** * Class PVEVmidQemuNodeNodesAgent - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesAgent { + class PVEVmidQemuNodeNodesAgent + { /** * @ignore @@ -8169,7 +8857,6 @@ class PVEVmidQemuNodeNodesAgent { * @ignore */ private $vmid; - /** * @ignore */ @@ -8178,7 +8865,8 @@ class PVEVmidQemuNodeNodesAgent { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -8188,352 +8876,332 @@ function __construct($client, $node, $vmid) { * @ignore */ private $fsfreezeFreeze; - /** * Get AgentVmidQemuNodeNodesFsfreezeFreeze * @return PVEAgentVmidQemuNodeNodesFsfreezeFreeze */ - public function getFsfreezeFreeze() { + public function getFsfreezeFreeze() + { return $this->fsfreezeFreeze ?: ($this->fsfreezeFreeze = new PVEAgentVmidQemuNodeNodesFsfreezeFreeze($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $fsfreezeStatus; - /** * Get AgentVmidQemuNodeNodesFsfreezeStatus * @return PVEAgentVmidQemuNodeNodesFsfreezeStatus */ - public function getFsfreezeStatus() { + public function getFsfreezeStatus() + { return $this->fsfreezeStatus ?: ($this->fsfreezeStatus = new PVEAgentVmidQemuNodeNodesFsfreezeStatus($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $fsfreezeThaw; - /** * Get AgentVmidQemuNodeNodesFsfreezeThaw * @return PVEAgentVmidQemuNodeNodesFsfreezeThaw */ - public function getFsfreezeThaw() { + public function getFsfreezeThaw() + { return $this->fsfreezeThaw ?: ($this->fsfreezeThaw = new PVEAgentVmidQemuNodeNodesFsfreezeThaw($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $fstrim; - /** * Get AgentVmidQemuNodeNodesFstrim * @return PVEAgentVmidQemuNodeNodesFstrim */ - public function getFstrim() { + public function getFstrim() + { return $this->fstrim ?: ($this->fstrim = new PVEAgentVmidQemuNodeNodesFstrim($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getFsinfo; - /** * Get AgentVmidQemuNodeNodesGetFsinfo * @return PVEAgentVmidQemuNodeNodesGetFsinfo */ - public function getGetFsinfo() { + public function getGetFsinfo() + { return $this->getFsinfo ?: ($this->getFsinfo = new PVEAgentVmidQemuNodeNodesGetFsinfo($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getHostName; - /** * Get AgentVmidQemuNodeNodesGetHostName * @return PVEAgentVmidQemuNodeNodesGetHostName */ - public function getGetHostName() { + public function getGetHostName() + { return $this->getHostName ?: ($this->getHostName = new PVEAgentVmidQemuNodeNodesGetHostName($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getMemoryBlockInfo; - /** * Get AgentVmidQemuNodeNodesGetMemoryBlockInfo * @return PVEAgentVmidQemuNodeNodesGetMemoryBlockInfo */ - public function getGetMemoryBlockInfo() { + public function getGetMemoryBlockInfo() + { return $this->getMemoryBlockInfo ?: ($this->getMemoryBlockInfo = new PVEAgentVmidQemuNodeNodesGetMemoryBlockInfo($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getMemoryBlocks; - /** * Get AgentVmidQemuNodeNodesGetMemoryBlocks * @return PVEAgentVmidQemuNodeNodesGetMemoryBlocks */ - public function getGetMemoryBlocks() { + public function getGetMemoryBlocks() + { return $this->getMemoryBlocks ?: ($this->getMemoryBlocks = new PVEAgentVmidQemuNodeNodesGetMemoryBlocks($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getOsinfo; - /** * Get AgentVmidQemuNodeNodesGetOsinfo * @return PVEAgentVmidQemuNodeNodesGetOsinfo */ - public function getGetOsinfo() { + public function getGetOsinfo() + { return $this->getOsinfo ?: ($this->getOsinfo = new PVEAgentVmidQemuNodeNodesGetOsinfo($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getTime; - /** * Get AgentVmidQemuNodeNodesGetTime * @return PVEAgentVmidQemuNodeNodesGetTime */ - public function getGetTime() { + public function getGetTime() + { return $this->getTime ?: ($this->getTime = new PVEAgentVmidQemuNodeNodesGetTime($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getTimezone; - /** * Get AgentVmidQemuNodeNodesGetTimezone * @return PVEAgentVmidQemuNodeNodesGetTimezone */ - public function getGetTimezone() { + public function getGetTimezone() + { return $this->getTimezone ?: ($this->getTimezone = new PVEAgentVmidQemuNodeNodesGetTimezone($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getUsers; - /** * Get AgentVmidQemuNodeNodesGetUsers * @return PVEAgentVmidQemuNodeNodesGetUsers */ - public function getGetUsers() { + public function getGetUsers() + { return $this->getUsers ?: ($this->getUsers = new PVEAgentVmidQemuNodeNodesGetUsers($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $getVcpus; - /** * Get AgentVmidQemuNodeNodesGetVcpus * @return PVEAgentVmidQemuNodeNodesGetVcpus */ - public function getGetVcpus() { + public function getGetVcpus() + { return $this->getVcpus ?: ($this->getVcpus = new PVEAgentVmidQemuNodeNodesGetVcpus($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $info; - /** * Get AgentVmidQemuNodeNodesInfo * @return PVEAgentVmidQemuNodeNodesInfo */ - public function getInfo() { + public function getInfo() + { return $this->info ?: ($this->info = new PVEAgentVmidQemuNodeNodesInfo($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $networkGetInterfaces; - /** * Get AgentVmidQemuNodeNodesNetworkGetInterfaces * @return PVEAgentVmidQemuNodeNodesNetworkGetInterfaces */ - public function getNetworkGetInterfaces() { + public function getNetworkGetInterfaces() + { return $this->networkGetInterfaces ?: ($this->networkGetInterfaces = new PVEAgentVmidQemuNodeNodesNetworkGetInterfaces($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $ping; - /** * Get AgentVmidQemuNodeNodesPing * @return PVEAgentVmidQemuNodeNodesPing */ - public function getPing() { + public function getPing() + { return $this->ping ?: ($this->ping = new PVEAgentVmidQemuNodeNodesPing($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $shutdown; - /** * Get AgentVmidQemuNodeNodesShutdown * @return PVEAgentVmidQemuNodeNodesShutdown */ - public function getShutdown() { + public function getShutdown() + { return $this->shutdown ?: ($this->shutdown = new PVEAgentVmidQemuNodeNodesShutdown($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $suspendDisk; - /** * Get AgentVmidQemuNodeNodesSuspendDisk * @return PVEAgentVmidQemuNodeNodesSuspendDisk */ - public function getSuspendDisk() { + public function getSuspendDisk() + { return $this->suspendDisk ?: ($this->suspendDisk = new PVEAgentVmidQemuNodeNodesSuspendDisk($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $suspendHybrid; - /** * Get AgentVmidQemuNodeNodesSuspendHybrid * @return PVEAgentVmidQemuNodeNodesSuspendHybrid */ - public function getSuspendHybrid() { + public function getSuspendHybrid() + { return $this->suspendHybrid ?: ($this->suspendHybrid = new PVEAgentVmidQemuNodeNodesSuspendHybrid($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $suspendRam; - /** * Get AgentVmidQemuNodeNodesSuspendRam * @return PVEAgentVmidQemuNodeNodesSuspendRam */ - public function getSuspendRam() { + public function getSuspendRam() + { return $this->suspendRam ?: ($this->suspendRam = new PVEAgentVmidQemuNodeNodesSuspendRam($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $setUserPassword; - /** * Get AgentVmidQemuNodeNodesSetUserPassword * @return PVEAgentVmidQemuNodeNodesSetUserPassword */ - public function getSetUserPassword() { + public function getSetUserPassword() + { return $this->setUserPassword ?: ($this->setUserPassword = new PVEAgentVmidQemuNodeNodesSetUserPassword($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $exec; - /** * Get AgentVmidQemuNodeNodesExec * @return PVEAgentVmidQemuNodeNodesExec */ - public function getExec() { + public function getExec() + { return $this->exec ?: ($this->exec = new PVEAgentVmidQemuNodeNodesExec($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $execStatus; - /** * Get AgentVmidQemuNodeNodesExecStatus * @return PVEAgentVmidQemuNodeNodesExecStatus */ - public function getExecStatus() { + public function getExecStatus() + { return $this->execStatus ?: ($this->execStatus = new PVEAgentVmidQemuNodeNodesExecStatus($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $fileRead; - /** * Get AgentVmidQemuNodeNodesFileRead * @return PVEAgentVmidQemuNodeNodesFileRead */ - public function getFileRead() { + public function getFileRead() + { return $this->fileRead ?: ($this->fileRead = new PVEAgentVmidQemuNodeNodesFileRead($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $fileWrite; - /** * Get AgentVmidQemuNodeNodesFileWrite * @return PVEAgentVmidQemuNodeNodesFileWrite */ - public function getFileWrite() { + public function getFileWrite() + { return $this->fileWrite ?: ($this->fileWrite = new PVEAgentVmidQemuNodeNodesFileWrite($this->client, $this->node, $this->vmid)); } + /** * QEMU Guest Agent command index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent"); } - /** * Execute QEMU Guest Agent commands. * @param string $command The QGA command. * Enum: fsfreeze-freeze,fsfreeze-status,fsfreeze-thaw,fstrim,get-fsinfo,get-host-name,get-memory-block-info,get-memory-blocks,get-osinfo,get-time,get-timezone,get-users,get-vcpus,info,network-get-interfaces,ping,shutdown,suspend-disk,suspend-hybrid,suspend-ram * @return Result */ - public function agent($command) { + + public function agent($command) + { $params = ['command' => $command]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent", $params); } } - /** * Class PVEAgentVmidQemuNodeNodesFsfreezeFreeze - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesFsfreezeFreeze { + class PVEAgentVmidQemuNodeNodesFsfreezeFreeze + { /** * @ignore @@ -8544,7 +9212,6 @@ class PVEAgentVmidQemuNodeNodesFsfreezeFreeze { * @ignore */ private $vmid; - /** * @ignore */ @@ -8553,26 +9220,32 @@ class PVEAgentVmidQemuNodeNodesFsfreezeFreeze { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute fsfreeze-freeze. * @return Result */ - public function fsfreezeFreeze() { + + public function fsfreezeFreeze() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/fsfreeze-freeze"); } } /** * Class PVEAgentVmidQemuNodeNodesFsfreezeStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesFsfreezeStatus { + class PVEAgentVmidQemuNodeNodesFsfreezeStatus + { /** * @ignore @@ -8583,7 +9256,6 @@ class PVEAgentVmidQemuNodeNodesFsfreezeStatus { * @ignore */ private $vmid; - /** * @ignore */ @@ -8592,26 +9264,32 @@ class PVEAgentVmidQemuNodeNodesFsfreezeStatus { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute fsfreeze-status. * @return Result */ - public function fsfreezeStatus() { + + public function fsfreezeStatus() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/fsfreeze-status"); } } /** * Class PVEAgentVmidQemuNodeNodesFsfreezeThaw - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesFsfreezeThaw { + class PVEAgentVmidQemuNodeNodesFsfreezeThaw + { /** * @ignore @@ -8622,7 +9300,6 @@ class PVEAgentVmidQemuNodeNodesFsfreezeThaw { * @ignore */ private $vmid; - /** * @ignore */ @@ -8631,26 +9308,32 @@ class PVEAgentVmidQemuNodeNodesFsfreezeThaw { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute fsfreeze-thaw. * @return Result */ - public function fsfreezeThaw() { + + public function fsfreezeThaw() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/fsfreeze-thaw"); } } /** * Class PVEAgentVmidQemuNodeNodesFstrim - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesFstrim { + class PVEAgentVmidQemuNodeNodesFstrim + { /** * @ignore @@ -8661,7 +9344,6 @@ class PVEAgentVmidQemuNodeNodesFstrim { * @ignore */ private $vmid; - /** * @ignore */ @@ -8670,26 +9352,32 @@ class PVEAgentVmidQemuNodeNodesFstrim { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute fstrim. * @return Result */ - public function fstrim() { + + public function fstrim() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/fstrim"); } } /** * Class PVEAgentVmidQemuNodeNodesGetFsinfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetFsinfo { + class PVEAgentVmidQemuNodeNodesGetFsinfo + { /** * @ignore @@ -8700,7 +9388,6 @@ class PVEAgentVmidQemuNodeNodesGetFsinfo { * @ignore */ private $vmid; - /** * @ignore */ @@ -8709,26 +9396,32 @@ class PVEAgentVmidQemuNodeNodesGetFsinfo { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-fsinfo. * @return Result */ - public function getFsinfo() { + + public function getFsinfo() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-fsinfo"); } } /** * Class PVEAgentVmidQemuNodeNodesGetHostName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetHostName { + class PVEAgentVmidQemuNodeNodesGetHostName + { /** * @ignore @@ -8739,7 +9432,6 @@ class PVEAgentVmidQemuNodeNodesGetHostName { * @ignore */ private $vmid; - /** * @ignore */ @@ -8748,26 +9440,32 @@ class PVEAgentVmidQemuNodeNodesGetHostName { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-host-name. * @return Result */ - public function getHostName() { + + public function getHostName() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-host-name"); } } /** * Class PVEAgentVmidQemuNodeNodesGetMemoryBlockInfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetMemoryBlockInfo { + class PVEAgentVmidQemuNodeNodesGetMemoryBlockInfo + { /** * @ignore @@ -8778,7 +9476,6 @@ class PVEAgentVmidQemuNodeNodesGetMemoryBlockInfo { * @ignore */ private $vmid; - /** * @ignore */ @@ -8787,26 +9484,32 @@ class PVEAgentVmidQemuNodeNodesGetMemoryBlockInfo { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-memory-block-info. * @return Result */ - public function getMemoryBlockInfo() { + + public function getMemoryBlockInfo() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-memory-block-info"); } } /** * Class PVEAgentVmidQemuNodeNodesGetMemoryBlocks - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetMemoryBlocks { + class PVEAgentVmidQemuNodeNodesGetMemoryBlocks + { /** * @ignore @@ -8817,7 +9520,6 @@ class PVEAgentVmidQemuNodeNodesGetMemoryBlocks { * @ignore */ private $vmid; - /** * @ignore */ @@ -8826,26 +9528,32 @@ class PVEAgentVmidQemuNodeNodesGetMemoryBlocks { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-memory-blocks. * @return Result */ - public function getMemoryBlocks() { + + public function getMemoryBlocks() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-memory-blocks"); } } /** * Class PVEAgentVmidQemuNodeNodesGetOsinfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetOsinfo { + class PVEAgentVmidQemuNodeNodesGetOsinfo + { /** * @ignore @@ -8856,7 +9564,6 @@ class PVEAgentVmidQemuNodeNodesGetOsinfo { * @ignore */ private $vmid; - /** * @ignore */ @@ -8865,26 +9572,32 @@ class PVEAgentVmidQemuNodeNodesGetOsinfo { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-osinfo. * @return Result */ - public function getOsinfo() { + + public function getOsinfo() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-osinfo"); } } /** * Class PVEAgentVmidQemuNodeNodesGetTime - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetTime { + class PVEAgentVmidQemuNodeNodesGetTime + { /** * @ignore @@ -8895,7 +9608,6 @@ class PVEAgentVmidQemuNodeNodesGetTime { * @ignore */ private $vmid; - /** * @ignore */ @@ -8904,26 +9616,32 @@ class PVEAgentVmidQemuNodeNodesGetTime { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-time. * @return Result */ - public function getTime() { + + public function getTime() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-time"); } } /** * Class PVEAgentVmidQemuNodeNodesGetTimezone - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetTimezone { + class PVEAgentVmidQemuNodeNodesGetTimezone + { /** * @ignore @@ -8934,7 +9652,6 @@ class PVEAgentVmidQemuNodeNodesGetTimezone { * @ignore */ private $vmid; - /** * @ignore */ @@ -8943,26 +9660,32 @@ class PVEAgentVmidQemuNodeNodesGetTimezone { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-timezone. * @return Result */ - public function getTimezone() { + + public function getTimezone() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-timezone"); } } /** * Class PVEAgentVmidQemuNodeNodesGetUsers - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetUsers { + class PVEAgentVmidQemuNodeNodesGetUsers + { /** * @ignore @@ -8973,7 +9696,6 @@ class PVEAgentVmidQemuNodeNodesGetUsers { * @ignore */ private $vmid; - /** * @ignore */ @@ -8982,26 +9704,32 @@ class PVEAgentVmidQemuNodeNodesGetUsers { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-users. * @return Result */ - public function getUsers() { + + public function getUsers() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-users"); } } /** * Class PVEAgentVmidQemuNodeNodesGetVcpus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesGetVcpus { + class PVEAgentVmidQemuNodeNodesGetVcpus + { /** * @ignore @@ -9012,7 +9740,6 @@ class PVEAgentVmidQemuNodeNodesGetVcpus { * @ignore */ private $vmid; - /** * @ignore */ @@ -9021,26 +9748,32 @@ class PVEAgentVmidQemuNodeNodesGetVcpus { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute get-vcpus. * @return Result */ - public function getVcpus() { + + public function getVcpus() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/get-vcpus"); } } /** * Class PVEAgentVmidQemuNodeNodesInfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesInfo { + class PVEAgentVmidQemuNodeNodesInfo + { /** * @ignore @@ -9051,7 +9784,6 @@ class PVEAgentVmidQemuNodeNodesInfo { * @ignore */ private $vmid; - /** * @ignore */ @@ -9060,26 +9792,32 @@ class PVEAgentVmidQemuNodeNodesInfo { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute info. * @return Result */ - public function info() { + + public function info() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/info"); } } /** * Class PVEAgentVmidQemuNodeNodesNetworkGetInterfaces - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesNetworkGetInterfaces { + class PVEAgentVmidQemuNodeNodesNetworkGetInterfaces + { /** * @ignore @@ -9090,7 +9828,6 @@ class PVEAgentVmidQemuNodeNodesNetworkGetInterfaces { * @ignore */ private $vmid; - /** * @ignore */ @@ -9099,26 +9836,32 @@ class PVEAgentVmidQemuNodeNodesNetworkGetInterfaces { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute network-get-interfaces. * @return Result */ - public function networkGetInterfaces() { + + public function networkGetInterfaces() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/network-get-interfaces"); } } /** * Class PVEAgentVmidQemuNodeNodesPing - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesPing { + class PVEAgentVmidQemuNodeNodesPing + { /** * @ignore @@ -9129,7 +9872,6 @@ class PVEAgentVmidQemuNodeNodesPing { * @ignore */ private $vmid; - /** * @ignore */ @@ -9138,26 +9880,32 @@ class PVEAgentVmidQemuNodeNodesPing { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute ping. * @return Result */ - public function ping() { + + public function ping() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/ping"); } } /** * Class PVEAgentVmidQemuNodeNodesShutdown - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesShutdown { + class PVEAgentVmidQemuNodeNodesShutdown + { /** * @ignore @@ -9168,7 +9916,6 @@ class PVEAgentVmidQemuNodeNodesShutdown { * @ignore */ private $vmid; - /** * @ignore */ @@ -9177,26 +9924,32 @@ class PVEAgentVmidQemuNodeNodesShutdown { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute shutdown. * @return Result */ - public function shutdown() { + + public function shutdown() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/shutdown"); } } /** * Class PVEAgentVmidQemuNodeNodesSuspendDisk - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesSuspendDisk { + class PVEAgentVmidQemuNodeNodesSuspendDisk + { /** * @ignore @@ -9207,7 +9960,6 @@ class PVEAgentVmidQemuNodeNodesSuspendDisk { * @ignore */ private $vmid; - /** * @ignore */ @@ -9216,26 +9968,32 @@ class PVEAgentVmidQemuNodeNodesSuspendDisk { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute suspend-disk. * @return Result */ - public function suspendDisk() { + + public function suspendDisk() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/suspend-disk"); } } /** * Class PVEAgentVmidQemuNodeNodesSuspendHybrid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesSuspendHybrid { + class PVEAgentVmidQemuNodeNodesSuspendHybrid + { /** * @ignore @@ -9246,7 +10004,6 @@ class PVEAgentVmidQemuNodeNodesSuspendHybrid { * @ignore */ private $vmid; - /** * @ignore */ @@ -9255,26 +10012,32 @@ class PVEAgentVmidQemuNodeNodesSuspendHybrid { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute suspend-hybrid. * @return Result */ - public function suspendHybrid() { + + public function suspendHybrid() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/suspend-hybrid"); } } /** * Class PVEAgentVmidQemuNodeNodesSuspendRam - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesSuspendRam { + class PVEAgentVmidQemuNodeNodesSuspendRam + { /** * @ignore @@ -9285,7 +10048,6 @@ class PVEAgentVmidQemuNodeNodesSuspendRam { * @ignore */ private $vmid; - /** * @ignore */ @@ -9294,26 +10056,32 @@ class PVEAgentVmidQemuNodeNodesSuspendRam { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute suspend-ram. * @return Result */ - public function suspendRam() { + + public function suspendRam() + { return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/suspend-ram"); } } /** * Class PVEAgentVmidQemuNodeNodesSetUserPassword - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesSetUserPassword { + class PVEAgentVmidQemuNodeNodesSetUserPassword + { /** * @ignore @@ -9324,7 +10092,6 @@ class PVEAgentVmidQemuNodeNodesSetUserPassword { * @ignore */ private $vmid; - /** * @ignore */ @@ -9333,12 +10100,15 @@ class PVEAgentVmidQemuNodeNodesSetUserPassword { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Sets the password for the given user to the given password * @param string $password The new password. @@ -9346,19 +10116,24 @@ function __construct($client, $node, $vmid) { * @param bool $crypted set to 1 if the password has already been passed through crypt() * @return Result */ - public function setUserPassword($password, $username, $crypted = null) { - $params = ['password' => $password, + + public function setUserPassword($password, $username, $crypted = null) + { + $params = [ + 'password' => $password, 'username' => $username, - 'crypted' => $crypted]; + 'crypted' => $crypted + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/set-user-password", $params); } } /** * Class PVEAgentVmidQemuNodeNodesExec - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesExec { + class PVEAgentVmidQemuNodeNodesExec + { /** * @ignore @@ -9369,7 +10144,6 @@ class PVEAgentVmidQemuNodeNodesExec { * @ignore */ private $vmid; - /** * @ignore */ @@ -9378,30 +10152,38 @@ class PVEAgentVmidQemuNodeNodesExec { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Executes the given command in the vm via the guest-agent and returns an object with the pid. - * @param string $command The command as a list of program + arguments. + * @param array $command The command as a list of program + arguments. * @param string $input_data Data to pass as 'input-data' to the guest. Usually treated as STDIN to 'command'. * @return Result */ - public function exec($command, $input_data = null) { - $params = ['command' => $command, - 'input-data' => $input_data]; + + public function exec($command, $input_data = null) + { + $params = [ + 'command' => $command, + 'input-data' => $input_data + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/exec", $params); } } /** * Class PVEAgentVmidQemuNodeNodesExecStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesExecStatus { + class PVEAgentVmidQemuNodeNodesExecStatus + { /** * @ignore @@ -9412,7 +10194,6 @@ class PVEAgentVmidQemuNodeNodesExecStatus { * @ignore */ private $vmid; - /** * @ignore */ @@ -9421,18 +10202,23 @@ class PVEAgentVmidQemuNodeNodesExecStatus { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Gets the status of the given pid started by the guest-agent * @param int $pid The PID to query * @return Result */ - public function execStatus($pid) { + + public function execStatus($pid) + { $params = ['pid' => $pid]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/exec-status", $params); } @@ -9440,9 +10226,10 @@ public function execStatus($pid) { /** * Class PVEAgentVmidQemuNodeNodesFileRead - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesFileRead { + class PVEAgentVmidQemuNodeNodesFileRead + { /** * @ignore @@ -9453,7 +10240,6 @@ class PVEAgentVmidQemuNodeNodesFileRead { * @ignore */ private $vmid; - /** * @ignore */ @@ -9462,18 +10248,23 @@ class PVEAgentVmidQemuNodeNodesFileRead { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Reads the given file via guest agent. Is limited to 16777216 bytes. * @param string $file The path to the file * @return Result */ - public function fileRead($file) { + + public function fileRead($file) + { $params = ['file' => $file]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/file-read", $params); } @@ -9481,9 +10272,10 @@ public function fileRead($file) { /** * Class PVEAgentVmidQemuNodeNodesFileWrite - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAgentVmidQemuNodeNodesFileWrite { + class PVEAgentVmidQemuNodeNodesFileWrite + { /** * @ignore @@ -9494,7 +10286,6 @@ class PVEAgentVmidQemuNodeNodesFileWrite { * @ignore */ private $vmid; - /** * @ignore */ @@ -9503,12 +10294,15 @@ class PVEAgentVmidQemuNodeNodesFileWrite { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Writes the given file via guest agent. * @param string $content The content to write into the file. @@ -9516,19 +10310,24 @@ function __construct($client, $node, $vmid) { * @param bool $encode If set, the content will be encoded as base64 (required by QEMU).Otherwise the content needs to be encoded beforehand - defaults to true. * @return Result */ - public function fileWrite($content, $file, $encode = null) { - $params = ['content' => $content, + + public function fileWrite($content, $file, $encode = null) + { + $params = [ + 'content' => $content, 'file' => $file, - 'encode' => $encode]; + 'encode' => $encode + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/file-write", $params); } } /** * Class PVEVmidQemuNodeNodesRrd - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesRrd { + class PVEVmidQemuNodeNodesRrd + { /** * @ignore @@ -9539,7 +10338,6 @@ class PVEVmidQemuNodeNodesRrd { * @ignore */ private $vmid; - /** * @ignore */ @@ -9548,12 +10346,15 @@ class PVEVmidQemuNodeNodesRrd { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Read VM RRD statistics (returns PNG) * @param string $ds The list of datasources you want to display. @@ -9563,19 +10364,24 @@ function __construct($client, $node, $vmid) { * Enum: AVERAGE,MAX * @return Result */ - public function rrd($ds, $timeframe, $cf = null) { - $params = ['ds' => $ds, + + public function rrd($ds, $timeframe, $cf = null) + { + $params = [ + 'ds' => $ds, 'timeframe' => $timeframe, - 'cf' => $cf]; + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/rrd", $params); } } /** * Class PVEVmidQemuNodeNodesRrddata - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesRrddata { + class PVEVmidQemuNodeNodesRrddata + { /** * @ignore @@ -9586,7 +10392,6 @@ class PVEVmidQemuNodeNodesRrddata { * @ignore */ private $vmid; - /** * @ignore */ @@ -9595,12 +10400,15 @@ class PVEVmidQemuNodeNodesRrddata { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Read VM RRD statistics * @param string $timeframe Specify the time frame you are interested in. @@ -9609,18 +10417,23 @@ function __construct($client, $node, $vmid) { * Enum: AVERAGE,MAX * @return Result */ - public function rrddata($timeframe, $cf = null) { - $params = ['timeframe' => $timeframe, - 'cf' => $cf]; + + public function rrddata($timeframe, $cf = null) + { + $params = [ + 'timeframe' => $timeframe, + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/rrddata", $params); } } /** * Class PVEVmidQemuNodeNodesConfig - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesConfig { + class PVEVmidQemuNodeNodesConfig + { /** * @ignore @@ -9631,7 +10444,6 @@ class PVEVmidQemuNodeNodesConfig { * @ignore */ private $vmid; - /** * @ignore */ @@ -9640,24 +10452,30 @@ class PVEVmidQemuNodeNodesConfig { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. * @param bool $current Get current values (instead of pending values). * @param string $snapshot Fetch config values from given snapshot. * @return Result */ - public function vmConfig($current = null, $snapshot = null) { - $params = ['current' => $current, - 'snapshot' => $snapshot]; + + public function vmConfig($current = null, $snapshot = null) + { + $params = [ + 'current' => $current, + 'snapshot' => $snapshot + ]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/config", $params); } - /** * Set virtual machine options (asynchrounous API). * @param bool $acpi Enable/disable ACPI. @@ -9697,7 +10515,7 @@ public function vmConfig($current = null, $snapshot = null) { * @param string $hugepages Enable/disable hugepages memory. * Enum: any,2,1024 * @param array $ideN Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. - * @param array $ipconfigN cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + * @param array $ipconfigN cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. * @param string $ivshmem Inter-VM shared memory. Useful for direct communication between VMs, or to the host. * @param bool $keephugepages Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts. * @param string $keyboard Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS. @@ -9753,8 +10571,11 @@ public function vmConfig($current = null, $snapshot = null) { * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function updateVmAsync($acpi = null, $affinity = null, $agent = null, $arch = null, $args = null, $audio0 = null, $autostart = null, $background_delay = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cicustom = null, $cipassword = null, $citype = null, $ciupgrade = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hookscript = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $ivshmem = null, $keephugepages = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $rng0 = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $spice_enhancements = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tags = null, $tdf = null, $template = null, $tpmstate0 = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { - $params = ['acpi' => $acpi, + + public function updateVmAsync($acpi = null, $affinity = null, $agent = null, $arch = null, $args = null, $audio0 = null, $autostart = null, $background_delay = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cicustom = null, $cipassword = null, $citype = null, $ciupgrade = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hookscript = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $ivshmem = null, $keephugepages = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $rng0 = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $spice_enhancements = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tags = null, $tdf = null, $template = null, $tpmstate0 = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) + { + $params = [ + 'acpi' => $acpi, 'affinity' => $affinity, 'agent' => $agent, 'arch' => $arch, @@ -9824,7 +10645,8 @@ public function updateVmAsync($acpi = null, $affinity = null, $agent = null, $ar 'vga' => $vga, 'vmgenid' => $vmgenid, 'vmstatestorage' => $vmstatestorage, - 'watchdog' => $watchdog]; + 'watchdog' => $watchdog + ]; $this->client->addIndexedParameter($params, 'hostpci', $hostpciN); $this->client->addIndexedParameter($params, 'ide', $ideN); $this->client->addIndexedParameter($params, 'ipconfig', $ipconfigN); @@ -9839,7 +10661,6 @@ public function updateVmAsync($acpi = null, $affinity = null, $agent = null, $ar $this->client->addIndexedParameter($params, 'virtio', $virtioN); return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/config", $params); } - /** * Set virtual machine options (synchrounous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. * @param bool $acpi Enable/disable ACPI. @@ -9878,7 +10699,7 @@ public function updateVmAsync($acpi = null, $affinity = null, $agent = null, $ar * @param string $hugepages Enable/disable hugepages memory. * Enum: any,2,1024 * @param array $ideN Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. - * @param array $ipconfigN cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + * @param array $ipconfigN cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. * @param string $ivshmem Inter-VM shared memory. Useful for direct communication between VMs, or to the host. * @param bool $keephugepages Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts. * @param string $keyboard Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS. @@ -9934,8 +10755,11 @@ public function updateVmAsync($acpi = null, $affinity = null, $agent = null, $ar * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function updateVm($acpi = null, $affinity = null, $agent = null, $arch = null, $args = null, $audio0 = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cicustom = null, $cipassword = null, $citype = null, $ciupgrade = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hookscript = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $ivshmem = null, $keephugepages = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $rng0 = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $spice_enhancements = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tags = null, $tdf = null, $template = null, $tpmstate0 = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { - $params = ['acpi' => $acpi, + + public function updateVm($acpi = null, $affinity = null, $agent = null, $arch = null, $args = null, $audio0 = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cicustom = null, $cipassword = null, $citype = null, $ciupgrade = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hookscript = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $ivshmem = null, $keephugepages = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $rng0 = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $spice_enhancements = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tags = null, $tdf = null, $template = null, $tpmstate0 = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) + { + $params = [ + 'acpi' => $acpi, 'affinity' => $affinity, 'agent' => $agent, 'arch' => $arch, @@ -10004,7 +10828,8 @@ public function updateVm($acpi = null, $affinity = null, $agent = null, $arch = 'vga' => $vga, 'vmgenid' => $vmgenid, 'vmstatestorage' => $vmstatestorage, - 'watchdog' => $watchdog]; + 'watchdog' => $watchdog + ]; $this->client->addIndexedParameter($params, 'hostpci', $hostpciN); $this->client->addIndexedParameter($params, 'ide', $ideN); $this->client->addIndexedParameter($params, 'ipconfig', $ipconfigN); @@ -10023,9 +10848,10 @@ public function updateVm($acpi = null, $affinity = null, $agent = null, $arch = /** * Class PVEVmidQemuNodeNodesPending - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesPending { + class PVEVmidQemuNodeNodesPending + { /** * @ignore @@ -10036,7 +10862,6 @@ class PVEVmidQemuNodeNodesPending { * @ignore */ private $vmid; - /** * @ignore */ @@ -10045,26 +10870,32 @@ class PVEVmidQemuNodeNodesPending { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get the virtual machine configuration with both current and pending values. * @return Result */ - public function vmPending() { + + public function vmPending() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/pending"); } } /** * Class PVEVmidQemuNodeNodesCloudinit - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesCloudinit { + class PVEVmidQemuNodeNodesCloudinit + { /** * @ignore @@ -10075,7 +10906,6 @@ class PVEVmidQemuNodeNodesCloudinit { * @ignore */ private $vmid; - /** * @ignore */ @@ -10084,7 +10914,8 @@ class PVEVmidQemuNodeNodesCloudinit { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -10094,37 +10925,41 @@ function __construct($client, $node, $vmid) { * @ignore */ private $dump; - /** * Get CloudinitVmidQemuNodeNodesDump * @return PVECloudinitVmidQemuNodeNodesDump */ - public function getDump() { + public function getDump() + { return $this->dump ?: ($this->dump = new PVECloudinitVmidQemuNodeNodesDump($this->client, $this->node, $this->vmid)); } + /** * Get the cloudinit configuration with both current and pending values. * @return Result */ - public function cloudinitPending() { + + public function cloudinitPending() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/cloudinit"); } - /** * Regenerate and change cloudinit config drive. * @return Result */ - public function cloudinitUpdate() { + + public function cloudinitUpdate() + { return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/cloudinit"); } } - /** * Class PVECloudinitVmidQemuNodeNodesDump - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECloudinitVmidQemuNodeNodesDump { + class PVECloudinitVmidQemuNodeNodesDump + { /** * @ignore @@ -10135,7 +10970,6 @@ class PVECloudinitVmidQemuNodeNodesDump { * @ignore */ private $vmid; - /** * @ignore */ @@ -10144,19 +10978,24 @@ class PVECloudinitVmidQemuNodeNodesDump { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get automatically generated cloudinit config. * @param string $type Config type. * Enum: user,network,meta * @return Result */ - public function cloudinitGeneratedConfigDump($type) { + + public function cloudinitGeneratedConfigDump($type) + { $params = ['type' => $type]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/cloudinit/dump", $params); } @@ -10164,9 +11003,10 @@ public function cloudinitGeneratedConfigDump($type) { /** * Class PVEVmidQemuNodeNodesUnlink - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesUnlink { + class PVEVmidQemuNodeNodesUnlink + { /** * @ignore @@ -10177,7 +11017,6 @@ class PVEVmidQemuNodeNodesUnlink { * @ignore */ private $vmid; - /** * @ignore */ @@ -10186,30 +11025,38 @@ class PVEVmidQemuNodeNodesUnlink { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Unlink/delete disk images. * @param string $idlist A list of disk IDs you want to delete. * @param bool $force Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal. * @return Result */ - public function unlink($idlist, $force = null) { - $params = ['idlist' => $idlist, - 'force' => $force]; + + public function unlink($idlist, $force = null) + { + $params = [ + 'idlist' => $idlist, + 'force' => $force + ]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/unlink", $params); } } /** * Class PVEVmidQemuNodeNodesVncproxy - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesVncproxy { + class PVEVmidQemuNodeNodesVncproxy + { /** * @ignore @@ -10220,7 +11067,6 @@ class PVEVmidQemuNodeNodesVncproxy { * @ignore */ private $vmid; - /** * @ignore */ @@ -10229,30 +11075,38 @@ class PVEVmidQemuNodeNodesVncproxy { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Creates a TCP VNC proxy connections. * @param bool $generate_password Generates a random password to be used as ticket instead of the API ticket. * @param bool $websocket Prepare for websocket upgrade (only required when using serial terminal, otherwise upgrade is always possible). * @return Result */ - public function vncproxy($generate_password = null, $websocket = null) { - $params = ['generate-password' => $generate_password, - 'websocket' => $websocket]; + + public function vncproxy($generate_password = null, $websocket = null) + { + $params = [ + 'generate-password' => $generate_password, + 'websocket' => $websocket + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/vncproxy", $params); } } /** * Class PVEVmidQemuNodeNodesTermproxy - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesTermproxy { + class PVEVmidQemuNodeNodesTermproxy + { /** * @ignore @@ -10263,7 +11117,6 @@ class PVEVmidQemuNodeNodesTermproxy { * @ignore */ private $vmid; - /** * @ignore */ @@ -10272,19 +11125,24 @@ class PVEVmidQemuNodeNodesTermproxy { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Creates a TCP proxy connections. * @param string $serial opens a serial terminal (defaults to display) * Enum: serial0,serial1,serial2,serial3 * @return Result */ - public function termproxy($serial = null) { + + public function termproxy($serial = null) + { $params = ['serial' => $serial]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/termproxy", $params); } @@ -10292,9 +11150,10 @@ public function termproxy($serial = null) { /** * Class PVEVmidQemuNodeNodesVncwebsocket - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesVncwebsocket { + class PVEVmidQemuNodeNodesVncwebsocket + { /** * @ignore @@ -10305,7 +11164,6 @@ class PVEVmidQemuNodeNodesVncwebsocket { * @ignore */ private $vmid; - /** * @ignore */ @@ -10314,30 +11172,38 @@ class PVEVmidQemuNodeNodesVncwebsocket { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Opens a weksocket for VNC traffic. * @param int $port Port number returned by previous vncproxy call. * @param string $vncticket Ticket from previous call to vncproxy. * @return Result */ - public function vncwebsocket($port, $vncticket) { - $params = ['port' => $port, - 'vncticket' => $vncticket]; + + public function vncwebsocket($port, $vncticket) + { + $params = [ + 'port' => $port, + 'vncticket' => $vncticket + ]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/vncwebsocket", $params); } } /** * Class PVEVmidQemuNodeNodesSpiceproxy - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesSpiceproxy { + class PVEVmidQemuNodeNodesSpiceproxy + { /** * @ignore @@ -10348,7 +11214,6 @@ class PVEVmidQemuNodeNodesSpiceproxy { * @ignore */ private $vmid; - /** * @ignore */ @@ -10357,18 +11222,23 @@ class PVEVmidQemuNodeNodesSpiceproxy { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Returns a SPICE configuration to connect to the VM. * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @return Result */ - public function spiceproxy($proxy = null) { + + public function spiceproxy($proxy = null) + { $params = ['proxy' => $proxy]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/spiceproxy", $params); } @@ -10376,9 +11246,10 @@ public function spiceproxy($proxy = null) { /** * Class PVEVmidQemuNodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesStatus { + class PVEVmidQemuNodeNodesStatus + { /** * @ignore @@ -10389,7 +11260,6 @@ class PVEVmidQemuNodeNodesStatus { * @ignore */ private $vmid; - /** * @ignore */ @@ -10398,7 +11268,8 @@ class PVEVmidQemuNodeNodesStatus { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -10408,120 +11279,116 @@ function __construct($client, $node, $vmid) { * @ignore */ private $current; - /** * Get StatusVmidQemuNodeNodesCurrent * @return PVEStatusVmidQemuNodeNodesCurrent */ - public function getCurrent() { + public function getCurrent() + { return $this->current ?: ($this->current = new PVEStatusVmidQemuNodeNodesCurrent($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $start; - /** * Get StatusVmidQemuNodeNodesStart * @return PVEStatusVmidQemuNodeNodesStart */ - public function getStart() { + public function getStart() + { return $this->start ?: ($this->start = new PVEStatusVmidQemuNodeNodesStart($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $stop; - /** * Get StatusVmidQemuNodeNodesStop * @return PVEStatusVmidQemuNodeNodesStop */ - public function getStop() { + public function getStop() + { return $this->stop ?: ($this->stop = new PVEStatusVmidQemuNodeNodesStop($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $reset; - /** * Get StatusVmidQemuNodeNodesReset * @return PVEStatusVmidQemuNodeNodesReset */ - public function getReset() { + public function getReset() + { return $this->reset ?: ($this->reset = new PVEStatusVmidQemuNodeNodesReset($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $shutdown; - /** * Get StatusVmidQemuNodeNodesShutdown * @return PVEStatusVmidQemuNodeNodesShutdown */ - public function getShutdown() { + public function getShutdown() + { return $this->shutdown ?: ($this->shutdown = new PVEStatusVmidQemuNodeNodesShutdown($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $reboot; - /** * Get StatusVmidQemuNodeNodesReboot * @return PVEStatusVmidQemuNodeNodesReboot */ - public function getReboot() { + public function getReboot() + { return $this->reboot ?: ($this->reboot = new PVEStatusVmidQemuNodeNodesReboot($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $suspend; - /** * Get StatusVmidQemuNodeNodesSuspend * @return PVEStatusVmidQemuNodeNodesSuspend */ - public function getSuspend() { + public function getSuspend() + { return $this->suspend ?: ($this->suspend = new PVEStatusVmidQemuNodeNodesSuspend($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $resume; - /** * Get StatusVmidQemuNodeNodesResume * @return PVEStatusVmidQemuNodeNodesResume */ - public function getResume() { + public function getResume() + { return $this->resume ?: ($this->resume = new PVEStatusVmidQemuNodeNodesResume($this->client, $this->node, $this->vmid)); } + /** * Directory index * @return Result */ - public function vmcmdidx() { + + public function vmcmdidx() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/status"); } } - /** * Class PVEStatusVmidQemuNodeNodesCurrent - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesCurrent { + class PVEStatusVmidQemuNodeNodesCurrent + { /** * @ignore @@ -10532,7 +11399,6 @@ class PVEStatusVmidQemuNodeNodesCurrent { * @ignore */ private $vmid; - /** * @ignore */ @@ -10541,26 +11407,32 @@ class PVEStatusVmidQemuNodeNodesCurrent { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get virtual machine status. * @return Result */ - public function vmStatus() { + + public function vmStatus() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/status/current"); } } /** * Class PVEStatusVmidQemuNodeNodesStart - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesStart { + class PVEStatusVmidQemuNodeNodesStart + { /** * @ignore @@ -10571,7 +11443,6 @@ class PVEStatusVmidQemuNodeNodesStart { * @ignore */ private $vmid; - /** * @ignore */ @@ -10580,12 +11451,15 @@ class PVEStatusVmidQemuNodeNodesStart { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Start virtual machine. * @param string $force_cpu Override QEMU's -cpu argument with the given string. @@ -10600,8 +11474,11 @@ function __construct($client, $node, $vmid) { * @param int $timeout Wait maximal timeout seconds. * @return Result */ - public function vmStart($force_cpu = null, $machine = null, $migratedfrom = null, $migration_network = null, $migration_type = null, $skiplock = null, $stateuri = null, $targetstorage = null, $timeout = null) { - $params = ['force-cpu' => $force_cpu, + + public function vmStart($force_cpu = null, $machine = null, $migratedfrom = null, $migration_network = null, $migration_type = null, $skiplock = null, $stateuri = null, $targetstorage = null, $timeout = null) + { + $params = [ + 'force-cpu' => $force_cpu, 'machine' => $machine, 'migratedfrom' => $migratedfrom, 'migration_network' => $migration_network, @@ -10609,16 +11486,18 @@ public function vmStart($force_cpu = null, $machine = null, $migratedfrom = null 'skiplock' => $skiplock, 'stateuri' => $stateuri, 'targetstorage' => $targetstorage, - 'timeout' => $timeout]; + 'timeout' => $timeout + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/status/start", $params); } } /** * Class PVEStatusVmidQemuNodeNodesStop - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesStop { + class PVEStatusVmidQemuNodeNodesStop + { /** * @ignore @@ -10629,7 +11508,6 @@ class PVEStatusVmidQemuNodeNodesStop { * @ignore */ private $vmid; - /** * @ignore */ @@ -10638,12 +11516,15 @@ class PVEStatusVmidQemuNodeNodesStop { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Stop virtual machine. The qemu process will exit immediately. Thisis akin to pulling the power plug of a running computer and may damage the VM data * @param bool $keepActive Do not deactivate storage volumes. @@ -10652,20 +11533,25 @@ function __construct($client, $node, $vmid) { * @param int $timeout Wait maximal timeout seconds. * @return Result */ - public function vmStop($keepActive = null, $migratedfrom = null, $skiplock = null, $timeout = null) { - $params = ['keepActive' => $keepActive, + + public function vmStop($keepActive = null, $migratedfrom = null, $skiplock = null, $timeout = null) + { + $params = [ + 'keepActive' => $keepActive, 'migratedfrom' => $migratedfrom, 'skiplock' => $skiplock, - 'timeout' => $timeout]; + 'timeout' => $timeout + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/status/stop", $params); } } /** * Class PVEStatusVmidQemuNodeNodesReset - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesReset { + class PVEStatusVmidQemuNodeNodesReset + { /** * @ignore @@ -10676,7 +11562,6 @@ class PVEStatusVmidQemuNodeNodesReset { * @ignore */ private $vmid; - /** * @ignore */ @@ -10685,18 +11570,23 @@ class PVEStatusVmidQemuNodeNodesReset { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Reset virtual machine. * @param bool $skiplock Ignore locks - only root is allowed to use this option. * @return Result */ - public function vmReset($skiplock = null) { + + public function vmReset($skiplock = null) + { $params = ['skiplock' => $skiplock]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/status/reset", $params); } @@ -10704,9 +11594,10 @@ public function vmReset($skiplock = null) { /** * Class PVEStatusVmidQemuNodeNodesShutdown - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesShutdown { + class PVEStatusVmidQemuNodeNodesShutdown + { /** * @ignore @@ -10717,7 +11608,6 @@ class PVEStatusVmidQemuNodeNodesShutdown { * @ignore */ private $vmid; - /** * @ignore */ @@ -10726,12 +11616,15 @@ class PVEStatusVmidQemuNodeNodesShutdown { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Shutdown virtual machine. This is similar to pressing the power button on a physical machine.This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. * @param bool $forceStop Make sure the VM stops. @@ -10740,20 +11633,25 @@ function __construct($client, $node, $vmid) { * @param int $timeout Wait maximal timeout seconds. * @return Result */ - public function vmShutdown($forceStop = null, $keepActive = null, $skiplock = null, $timeout = null) { - $params = ['forceStop' => $forceStop, + + public function vmShutdown($forceStop = null, $keepActive = null, $skiplock = null, $timeout = null) + { + $params = [ + 'forceStop' => $forceStop, 'keepActive' => $keepActive, 'skiplock' => $skiplock, - 'timeout' => $timeout]; + 'timeout' => $timeout + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/status/shutdown", $params); } } /** * Class PVEStatusVmidQemuNodeNodesReboot - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesReboot { + class PVEStatusVmidQemuNodeNodesReboot + { /** * @ignore @@ -10764,7 +11662,6 @@ class PVEStatusVmidQemuNodeNodesReboot { * @ignore */ private $vmid; - /** * @ignore */ @@ -10773,18 +11670,23 @@ class PVEStatusVmidQemuNodeNodesReboot { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Reboot the VM by shutting it down, and starting it again. Applies pending changes. * @param int $timeout Wait maximal timeout seconds for the shutdown. * @return Result */ - public function vmReboot($timeout = null) { + + public function vmReboot($timeout = null) + { $params = ['timeout' => $timeout]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/status/reboot", $params); } @@ -10792,9 +11694,10 @@ public function vmReboot($timeout = null) { /** * Class PVEStatusVmidQemuNodeNodesSuspend - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesSuspend { + class PVEStatusVmidQemuNodeNodesSuspend + { /** * @ignore @@ -10805,7 +11708,6 @@ class PVEStatusVmidQemuNodeNodesSuspend { * @ignore */ private $vmid; - /** * @ignore */ @@ -10814,12 +11716,15 @@ class PVEStatusVmidQemuNodeNodesSuspend { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Suspend virtual machine. * @param bool $skiplock Ignore locks - only root is allowed to use this option. @@ -10827,19 +11732,24 @@ function __construct($client, $node, $vmid) { * @param bool $todisk If set, suspends the VM to disk. Will be resumed on next VM start. * @return Result */ - public function vmSuspend($skiplock = null, $statestorage = null, $todisk = null) { - $params = ['skiplock' => $skiplock, + + public function vmSuspend($skiplock = null, $statestorage = null, $todisk = null) + { + $params = [ + 'skiplock' => $skiplock, 'statestorage' => $statestorage, - 'todisk' => $todisk]; + 'todisk' => $todisk + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/status/suspend", $params); } } /** * Class PVEStatusVmidQemuNodeNodesResume - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidQemuNodeNodesResume { + class PVEStatusVmidQemuNodeNodesResume + { /** * @ignore @@ -10850,7 +11760,6 @@ class PVEStatusVmidQemuNodeNodesResume { * @ignore */ private $vmid; - /** * @ignore */ @@ -10859,30 +11768,38 @@ class PVEStatusVmidQemuNodeNodesResume { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Resume virtual machine. - * @param bool $nocheck + * @param bool $nocheck * @param bool $skiplock Ignore locks - only root is allowed to use this option. * @return Result */ - public function vmResume($nocheck = null, $skiplock = null) { - $params = ['nocheck' => $nocheck, - 'skiplock' => $skiplock]; + + public function vmResume($nocheck = null, $skiplock = null) + { + $params = [ + 'nocheck' => $nocheck, + 'skiplock' => $skiplock + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/status/resume", $params); } } /** * Class PVEVmidQemuNodeNodesSendkey - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesSendkey { + class PVEVmidQemuNodeNodesSendkey + { /** * @ignore @@ -10893,7 +11810,6 @@ class PVEVmidQemuNodeNodesSendkey { * @ignore */ private $vmid; - /** * @ignore */ @@ -10902,30 +11818,38 @@ class PVEVmidQemuNodeNodesSendkey { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Send key event to virtual machine. * @param string $key The key (qemu monitor encoding). * @param bool $skiplock Ignore locks - only root is allowed to use this option. * @return Result */ - public function vmSendkey($key, $skiplock = null) { - $params = ['key' => $key, - 'skiplock' => $skiplock]; + + public function vmSendkey($key, $skiplock = null) + { + $params = [ + 'key' => $key, + 'skiplock' => $skiplock + ]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/sendkey", $params); } } /** * Class PVEVmidQemuNodeNodesFeature - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesFeature { + class PVEVmidQemuNodeNodesFeature + { /** * @ignore @@ -10936,7 +11860,6 @@ class PVEVmidQemuNodeNodesFeature { * @ignore */ private $vmid; - /** * @ignore */ @@ -10945,12 +11868,15 @@ class PVEVmidQemuNodeNodesFeature { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Check if feature for virtual machine is available. * @param string $feature Feature to check. @@ -10958,18 +11884,23 @@ function __construct($client, $node, $vmid) { * @param string $snapname The name of the snapshot. * @return Result */ - public function vmFeature($feature, $snapname = null) { - $params = ['feature' => $feature, - 'snapname' => $snapname]; + + public function vmFeature($feature, $snapname = null) + { + $params = [ + 'feature' => $feature, + 'snapname' => $snapname + ]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/feature", $params); } } /** * Class PVEVmidQemuNodeNodesClone - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesClone { + class PVEVmidQemuNodeNodesClone + { /** * @ignore @@ -10980,7 +11911,6 @@ class PVEVmidQemuNodeNodesClone { * @ignore */ private $vmid; - /** * @ignore */ @@ -10989,12 +11919,15 @@ class PVEVmidQemuNodeNodesClone { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Create a copy of virtual machine/template. * @param int $newid VMID for the clone. @@ -11010,8 +11943,11 @@ function __construct($client, $node, $vmid) { * @param string $target Target node. Only allowed if the original VM is on shared storage. * @return Result */ - public function cloneVm($newid, $bwlimit = null, $description = null, $format = null, $full = null, $name = null, $pool = null, $snapname = null, $storage = null, $target = null) { - $params = ['newid' => $newid, + + public function cloneVm($newid, $bwlimit = null, $description = null, $format = null, $full = null, $name = null, $pool = null, $snapname = null, $storage = null, $target = null) + { + $params = [ + 'newid' => $newid, 'bwlimit' => $bwlimit, 'description' => $description, 'format' => $format, @@ -11020,16 +11956,18 @@ public function cloneVm($newid, $bwlimit = null, $description = null, $format = 'pool' => $pool, 'snapname' => $snapname, 'storage' => $storage, - 'target' => $target]; + 'target' => $target + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/clone", $params); } } /** * Class PVEVmidQemuNodeNodesMoveDisk - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesMoveDisk { + class PVEVmidQemuNodeNodesMoveDisk + { /** * @ignore @@ -11040,7 +11978,6 @@ class PVEVmidQemuNodeNodesMoveDisk { * @ignore */ private $vmid; - /** * @ignore */ @@ -11049,12 +11986,15 @@ class PVEVmidQemuNodeNodesMoveDisk { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Move volume to different storage or to a different VM. * @param string $disk The disk you want to move. @@ -11071,8 +12011,11 @@ function __construct($client, $node, $vmid) { * @param int $target_vmid The (unique) ID of the VM. * @return Result */ - public function moveVmDisk($disk, $bwlimit = null, $delete = null, $digest = null, $format = null, $storage = null, $target_digest = null, $target_disk = null, $target_vmid = null) { - $params = ['disk' => $disk, + + public function moveVmDisk($disk, $bwlimit = null, $delete = null, $digest = null, $format = null, $storage = null, $target_digest = null, $target_disk = null, $target_vmid = null) + { + $params = [ + 'disk' => $disk, 'bwlimit' => $bwlimit, 'delete' => $delete, 'digest' => $digest, @@ -11080,16 +12023,18 @@ public function moveVmDisk($disk, $bwlimit = null, $delete = null, $digest = nul 'storage' => $storage, 'target-digest' => $target_digest, 'target-disk' => $target_disk, - 'target-vmid' => $target_vmid]; + 'target-vmid' => $target_vmid + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/move_disk", $params); } } /** * Class PVEVmidQemuNodeNodesMigrate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesMigrate { + class PVEVmidQemuNodeNodesMigrate + { /** * @ignore @@ -11100,7 +12045,6 @@ class PVEVmidQemuNodeNodesMigrate { * @ignore */ private $vmid; - /** * @ignore */ @@ -11109,22 +12053,26 @@ class PVEVmidQemuNodeNodesMigrate { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get preconditions for migration. * @param string $target Target node. * @return Result */ - public function migrateVmPrecondition($target = null) { + + public function migrateVmPrecondition($target = null) + { $params = ['target' => $target]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/migrate", $params); } - /** * Migrate virtual machine. Creates a new migration task. * @param string $target Target node. @@ -11138,24 +12086,29 @@ public function migrateVmPrecondition($target = null) { * @param bool $with_local_disks Enable live storage migration for local disk * @return Result */ - public function migrateVm($target, $bwlimit = null, $force = null, $migration_network = null, $migration_type = null, $online = null, $targetstorage = null, $with_local_disks = null) { - $params = ['target' => $target, + + public function migrateVm($target, $bwlimit = null, $force = null, $migration_network = null, $migration_type = null, $online = null, $targetstorage = null, $with_local_disks = null) + { + $params = [ + 'target' => $target, 'bwlimit' => $bwlimit, 'force' => $force, 'migration_network' => $migration_network, 'migration_type' => $migration_type, 'online' => $online, 'targetstorage' => $targetstorage, - 'with-local-disks' => $with_local_disks]; + 'with-local-disks' => $with_local_disks + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/migrate", $params); } } /** * Class PVEVmidQemuNodeNodesRemoteMigrate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesRemoteMigrate { + class PVEVmidQemuNodeNodesRemoteMigrate + { /** * @ignore @@ -11166,7 +12119,6 @@ class PVEVmidQemuNodeNodesRemoteMigrate { * @ignore */ private $vmid; - /** * @ignore */ @@ -11175,12 +12127,15 @@ class PVEVmidQemuNodeNodesRemoteMigrate { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! * @param string $target_bridge Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value '1' will map each source bridge to itself. @@ -11192,23 +12147,28 @@ function __construct($client, $node, $vmid) { * @param int $target_vmid The (unique) ID of the VM. * @return Result */ - public function remoteMigrateVm($target_bridge, $target_endpoint, $target_storage, $bwlimit = null, $delete = null, $online = null, $target_vmid = null) { - $params = ['target-bridge' => $target_bridge, + + public function remoteMigrateVm($target_bridge, $target_endpoint, $target_storage, $bwlimit = null, $delete = null, $online = null, $target_vmid = null) + { + $params = [ + 'target-bridge' => $target_bridge, 'target-endpoint' => $target_endpoint, 'target-storage' => $target_storage, 'bwlimit' => $bwlimit, 'delete' => $delete, 'online' => $online, - 'target-vmid' => $target_vmid]; + 'target-vmid' => $target_vmid + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/remote_migrate", $params); } } /** * Class PVEVmidQemuNodeNodesMonitor - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesMonitor { + class PVEVmidQemuNodeNodesMonitor + { /** * @ignore @@ -11219,7 +12179,6 @@ class PVEVmidQemuNodeNodesMonitor { * @ignore */ private $vmid; - /** * @ignore */ @@ -11228,18 +12187,23 @@ class PVEVmidQemuNodeNodesMonitor { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Execute QEMU monitor commands. * @param string $command The monitor command. * @return Result */ - public function monitor($command) { + + public function monitor($command) + { $params = ['command' => $command]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/monitor", $params); } @@ -11247,9 +12211,10 @@ public function monitor($command) { /** * Class PVEVmidQemuNodeNodesResize - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesResize { + class PVEVmidQemuNodeNodesResize + { /** * @ignore @@ -11260,7 +12225,6 @@ class PVEVmidQemuNodeNodesResize { * @ignore */ private $vmid; - /** * @ignore */ @@ -11269,12 +12233,15 @@ class PVEVmidQemuNodeNodesResize { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Extend volume size. * @param string $disk The disk you want to resize. @@ -11284,20 +12251,25 @@ function __construct($client, $node, $vmid) { * @param bool $skiplock Ignore locks - only root is allowed to use this option. * @return Result */ - public function resizeVm($disk, $size, $digest = null, $skiplock = null) { - $params = ['disk' => $disk, + + public function resizeVm($disk, $size, $digest = null, $skiplock = null) + { + $params = [ + 'disk' => $disk, 'size' => $size, 'digest' => $digest, - 'skiplock' => $skiplock]; + 'skiplock' => $skiplock + ]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/resize", $params); } } /** * Class PVEVmidQemuNodeNodesSnapshot - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesSnapshot { + class PVEVmidQemuNodeNodesSnapshot + { /** * @ignore @@ -11308,7 +12280,6 @@ class PVEVmidQemuNodeNodesSnapshot { * @ignore */ private $vmid; - /** * @ignore */ @@ -11317,18 +12288,21 @@ class PVEVmidQemuNodeNodesSnapshot { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemSnapshotVmidQemuNodeNodesSnapname * @param snapname * @return PVEItemSnapshotVmidQemuNodeNodesSnapname */ - public function get($snapname) { + public function get($snapname) + { return new PVEItemSnapshotVmidQemuNodeNodesSnapname($this->client, $this->node, $this->vmid, $snapname); } @@ -11336,10 +12310,11 @@ public function get($snapname) { * List all snapshots. * @return Result */ - public function snapshotList() { + + public function snapshotList() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/snapshot"); } - /** * Snapshot a VM. * @param string $snapname The name of the snapshot. @@ -11347,19 +12322,23 @@ public function snapshotList() { * @param bool $vmstate Save the vmstate * @return Result */ - public function snapshot($snapname, $description = null, $vmstate = null) { - $params = ['snapname' => $snapname, + + public function snapshot($snapname, $description = null, $vmstate = null) + { + $params = [ + 'snapname' => $snapname, 'description' => $description, - 'vmstate' => $vmstate]; + 'vmstate' => $vmstate + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/snapshot", $params); } } - /** * Class PVEItemSnapshotVmidQemuNodeNodesSnapname - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemSnapshotVmidQemuNodeNodesSnapname { + class PVEItemSnapshotVmidQemuNodeNodesSnapname + { /** * @ignore @@ -11375,7 +12354,6 @@ class PVEItemSnapshotVmidQemuNodeNodesSnapname { * @ignore */ private $snapname; - /** * @ignore */ @@ -11384,7 +12362,8 @@ class PVEItemSnapshotVmidQemuNodeNodesSnapname { /** * @ignore */ - function __construct($client, $node, $vmid, $snapname) { + function __construct($client, $node, $vmid, $snapname) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -11395,52 +12374,55 @@ function __construct($client, $node, $vmid, $snapname) { * @ignore */ private $config; - /** * Get SnapnameSnapshotVmidQemuNodeNodesConfig * @return PVESnapnameSnapshotVmidQemuNodeNodesConfig */ - public function getConfig() { + public function getConfig() + { return $this->config ?: ($this->config = new PVESnapnameSnapshotVmidQemuNodeNodesConfig($this->client, $this->node, $this->vmid, $this->snapname)); } - /** * @ignore */ private $rollback; - /** * Get SnapnameSnapshotVmidQemuNodeNodesRollback * @return PVESnapnameSnapshotVmidQemuNodeNodesRollback */ - public function getRollback() { + public function getRollback() + { return $this->rollback ?: ($this->rollback = new PVESnapnameSnapshotVmidQemuNodeNodesRollback($this->client, $this->node, $this->vmid, $this->snapname)); } + /** * Delete a VM snapshot. * @param bool $force For removal from config file, even if removing disk snapshots fails. * @return Result */ - public function delsnapshot($force = null) { + + public function delsnapshot($force = null) + { $params = ['force' => $force]; return $this->client->delete("/nodes/{$this->node}/qemu/{$this->vmid}/snapshot/{$this->snapname}", $params); } - /** - * + * * @return Result */ - public function snapshotCmdIdx() { + + public function snapshotCmdIdx() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/snapshot/{$this->snapname}"); } } - /** * Class PVESnapnameSnapshotVmidQemuNodeNodesConfig - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESnapnameSnapshotVmidQemuNodeNodesConfig { + class PVESnapnameSnapshotVmidQemuNodeNodesConfig + { /** * @ignore @@ -11456,7 +12438,6 @@ class PVESnapnameSnapshotVmidQemuNodeNodesConfig { * @ignore */ private $snapname; - /** * @ignore */ @@ -11465,27 +12446,33 @@ class PVESnapnameSnapshotVmidQemuNodeNodesConfig { /** * @ignore */ - function __construct($client, $node, $vmid, $snapname) { + function __construct($client, $node, $vmid, $snapname) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->snapname = $snapname; } + + /** * Get snapshot configuration * @return Result */ - public function getSnapshotConfig() { + + public function getSnapshotConfig() + { return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/snapshot/{$this->snapname}/config"); } - /** * Update snapshot metadata. * @param string $description A textual description or comment. * @return Result */ - public function updateSnapshotConfig($description = null) { + + public function updateSnapshotConfig($description = null) + { $params = ['description' => $description]; return $this->client->set("/nodes/{$this->node}/qemu/{$this->vmid}/snapshot/{$this->snapname}/config", $params); } @@ -11493,9 +12480,10 @@ public function updateSnapshotConfig($description = null) { /** * Class PVESnapnameSnapshotVmidQemuNodeNodesRollback - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESnapnameSnapshotVmidQemuNodeNodesRollback { + class PVESnapnameSnapshotVmidQemuNodeNodesRollback + { /** * @ignore @@ -11511,7 +12499,6 @@ class PVESnapnameSnapshotVmidQemuNodeNodesRollback { * @ignore */ private $snapname; - /** * @ignore */ @@ -11520,19 +12507,24 @@ class PVESnapnameSnapshotVmidQemuNodeNodesRollback { /** * @ignore */ - function __construct($client, $node, $vmid, $snapname) { + function __construct($client, $node, $vmid, $snapname) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->snapname = $snapname; } + + /** * Rollback VM state to specified snapshot. * @param bool $start Whether the VM should get started after rolling back successfully. (Note: VMs will be automatically started if the snapshot includes RAM.) * @return Result */ - public function rollback($start = null) { + + public function rollback($start = null) + { $params = ['start' => $start]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/snapshot/{$this->snapname}/rollback", $params); } @@ -11540,9 +12532,10 @@ public function rollback($start = null) { /** * Class PVEVmidQemuNodeNodesTemplate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesTemplate { + class PVEVmidQemuNodeNodesTemplate + { /** * @ignore @@ -11553,7 +12546,6 @@ class PVEVmidQemuNodeNodesTemplate { * @ignore */ private $vmid; - /** * @ignore */ @@ -11562,19 +12554,24 @@ class PVEVmidQemuNodeNodesTemplate { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Create a Template. * @param string $disk If you want to convert only 1 disk to base image. * Enum: ide0,ide1,ide2,ide3,scsi0,scsi1,scsi2,scsi3,scsi4,scsi5,scsi6,scsi7,scsi8,scsi9,scsi10,scsi11,scsi12,scsi13,scsi14,scsi15,scsi16,scsi17,scsi18,scsi19,scsi20,scsi21,scsi22,scsi23,scsi24,scsi25,scsi26,scsi27,scsi28,scsi29,scsi30,virtio0,virtio1,virtio2,virtio3,virtio4,virtio5,virtio6,virtio7,virtio8,virtio9,virtio10,virtio11,virtio12,virtio13,virtio14,virtio15,sata0,sata1,sata2,sata3,sata4,sata5,efidisk0,tpmstate0 * @return Result */ - public function template($disk = null) { + + public function template($disk = null) + { $params = ['disk' => $disk]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/template", $params); } @@ -11582,9 +12579,10 @@ public function template($disk = null) { /** * Class PVEVmidQemuNodeNodesMtunnel - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesMtunnel { + class PVEVmidQemuNodeNodesMtunnel + { /** * @ignore @@ -11595,7 +12593,6 @@ class PVEVmidQemuNodeNodesMtunnel { * @ignore */ private $vmid; - /** * @ignore */ @@ -11604,30 +12601,38 @@ class PVEVmidQemuNodeNodesMtunnel { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Migration tunnel endpoint - only for internal use by VM migration. * @param string $bridges List of network bridges to check availability. Will be checked again for actually used bridges during migration. * @param string $storages List of storages to check permission and availability. Will be checked again for all actually used storages during migration. * @return Result */ - public function mtunnel($bridges = null, $storages = null) { - $params = ['bridges' => $bridges, - 'storages' => $storages]; + + public function mtunnel($bridges = null, $storages = null) + { + $params = [ + 'bridges' => $bridges, + 'storages' => $storages + ]; return $this->client->create("/nodes/{$this->node}/qemu/{$this->vmid}/mtunnel", $params); } } /** * Class PVEVmidQemuNodeNodesMtunnelwebsocket - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidQemuNodeNodesMtunnelwebsocket { + class PVEVmidQemuNodeNodesMtunnelwebsocket + { /** * @ignore @@ -11638,7 +12643,6 @@ class PVEVmidQemuNodeNodesMtunnelwebsocket { * @ignore */ private $vmid; - /** * @ignore */ @@ -11647,36 +12651,43 @@ class PVEVmidQemuNodeNodesMtunnelwebsocket { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. * @param string $socket unix socket to forward to * @param string $ticket ticket return by initial 'mtunnel' API call, or retrieved via 'ticket' tunnel command * @return Result */ - public function mtunnelwebsocket($socket, $ticket) { - $params = ['socket' => $socket, - 'ticket' => $ticket]; + + public function mtunnelwebsocket($socket, $ticket) + { + $params = [ + 'socket' => $socket, + 'ticket' => $ticket + ]; return $this->client->get("/nodes/{$this->node}/qemu/{$this->vmid}/mtunnelwebsocket", $params); } } /** * Class PVENodeNodesLxc - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesLxc { + class PVENodeNodesLxc + { /** * @ignore */ private $node; - /** * @ignore */ @@ -11685,17 +12696,20 @@ class PVENodeNodesLxc { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemLxcNodeNodesVmid * @param vmid * @return PVEItemLxcNodeNodesVmid */ - public function get($vmid) { + public function get($vmid) + { return new PVEItemLxcNodeNodesVmid($this->client, $this->node, $vmid); } @@ -11703,10 +12717,11 @@ public function get($vmid) { * LXC container index (per node). * @return Result */ - public function vmlist() { + + public function vmlist() + { return $this->client->get("/nodes/{$this->node}/lxc"); } - /** * Create or restore a container. * @param string $ostemplate The OS template or backup file. @@ -11757,8 +12772,11 @@ public function vmlist() { * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @return Result */ - public function createVm($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $debug = null, $description = null, $devN = null, $features = null, $force = null, $hookscript = null, $hostname = null, $ignore_unpack_errors = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $password = null, $pool = null, $protection = null, $restore = null, $rootfs = null, $searchdomain = null, $ssh_public_keys = null, $start = null, $startup = null, $storage = null, $swap = null, $tags = null, $template = null, $timezone = null, $tty = null, $unique = null, $unprivileged = null, $unusedN = null) { - $params = ['ostemplate' => $ostemplate, + + public function createVm($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $debug = null, $description = null, $devN = null, $features = null, $force = null, $hookscript = null, $hostname = null, $ignore_unpack_errors = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $password = null, $pool = null, $protection = null, $restore = null, $rootfs = null, $searchdomain = null, $ssh_public_keys = null, $start = null, $startup = null, $storage = null, $swap = null, $tags = null, $template = null, $timezone = null, $tty = null, $unique = null, $unprivileged = null, $unusedN = null) + { + $params = [ + 'ostemplate' => $ostemplate, 'vmid' => $vmid, 'arch' => $arch, 'bwlimit' => $bwlimit, @@ -11795,7 +12813,8 @@ public function createVm($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmo 'timezone' => $timezone, 'tty' => $tty, 'unique' => $unique, - 'unprivileged' => $unprivileged]; + 'unprivileged' => $unprivileged + ]; $this->client->addIndexedParameter($params, 'dev', $devN); $this->client->addIndexedParameter($params, 'mp', $mpN); $this->client->addIndexedParameter($params, 'net', $netN); @@ -11803,12 +12822,12 @@ public function createVm($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmo return $this->client->create("/nodes/{$this->node}/lxc", $params); } } - /** * Class PVEItemLxcNodeNodesVmid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemLxcNodeNodesVmid { + class PVEItemLxcNodeNodesVmid + { /** * @ignore @@ -11819,7 +12838,6 @@ class PVEItemLxcNodeNodesVmid { * @ignore */ private $vmid; - /** * @ignore */ @@ -11828,7 +12846,8 @@ class PVEItemLxcNodeNodesVmid { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -11838,275 +12857,256 @@ function __construct($client, $node, $vmid) { * @ignore */ private $config; - /** * Get VmidLxcNodeNodesConfig * @return PVEVmidLxcNodeNodesConfig */ - public function getConfig() { + public function getConfig() + { return $this->config ?: ($this->config = new PVEVmidLxcNodeNodesConfig($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $status; - /** * Get VmidLxcNodeNodesStatus * @return PVEVmidLxcNodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEVmidLxcNodeNodesStatus($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $snapshot; - /** * Get VmidLxcNodeNodesSnapshot * @return PVEVmidLxcNodeNodesSnapshot */ - public function getSnapshot() { + public function getSnapshot() + { return $this->snapshot ?: ($this->snapshot = new PVEVmidLxcNodeNodesSnapshot($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $firewall; - /** * Get VmidLxcNodeNodesFirewall * @return PVEVmidLxcNodeNodesFirewall */ - public function getFirewall() { + public function getFirewall() + { return $this->firewall ?: ($this->firewall = new PVEVmidLxcNodeNodesFirewall($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $rrd; - /** * Get VmidLxcNodeNodesRrd * @return PVEVmidLxcNodeNodesRrd */ - public function getRrd() { + public function getRrd() + { return $this->rrd ?: ($this->rrd = new PVEVmidLxcNodeNodesRrd($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $rrddata; - /** * Get VmidLxcNodeNodesRrddata * @return PVEVmidLxcNodeNodesRrddata */ - public function getRrddata() { + public function getRrddata() + { return $this->rrddata ?: ($this->rrddata = new PVEVmidLxcNodeNodesRrddata($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $vncproxy; - /** * Get VmidLxcNodeNodesVncproxy * @return PVEVmidLxcNodeNodesVncproxy */ - public function getVncproxy() { + public function getVncproxy() + { return $this->vncproxy ?: ($this->vncproxy = new PVEVmidLxcNodeNodesVncproxy($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $termproxy; - /** * Get VmidLxcNodeNodesTermproxy * @return PVEVmidLxcNodeNodesTermproxy */ - public function getTermproxy() { + public function getTermproxy() + { return $this->termproxy ?: ($this->termproxy = new PVEVmidLxcNodeNodesTermproxy($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $vncwebsocket; - /** * Get VmidLxcNodeNodesVncwebsocket * @return PVEVmidLxcNodeNodesVncwebsocket */ - public function getVncwebsocket() { + public function getVncwebsocket() + { return $this->vncwebsocket ?: ($this->vncwebsocket = new PVEVmidLxcNodeNodesVncwebsocket($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $spiceproxy; - /** * Get VmidLxcNodeNodesSpiceproxy * @return PVEVmidLxcNodeNodesSpiceproxy */ - public function getSpiceproxy() { + public function getSpiceproxy() + { return $this->spiceproxy ?: ($this->spiceproxy = new PVEVmidLxcNodeNodesSpiceproxy($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $remoteMigrate; - /** * Get VmidLxcNodeNodesRemoteMigrate * @return PVEVmidLxcNodeNodesRemoteMigrate */ - public function getRemoteMigrate() { + public function getRemoteMigrate() + { return $this->remoteMigrate ?: ($this->remoteMigrate = new PVEVmidLxcNodeNodesRemoteMigrate($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $migrate; - /** * Get VmidLxcNodeNodesMigrate * @return PVEVmidLxcNodeNodesMigrate */ - public function getMigrate() { + public function getMigrate() + { return $this->migrate ?: ($this->migrate = new PVEVmidLxcNodeNodesMigrate($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $feature; - /** * Get VmidLxcNodeNodesFeature * @return PVEVmidLxcNodeNodesFeature */ - public function getFeature() { + public function getFeature() + { return $this->feature ?: ($this->feature = new PVEVmidLxcNodeNodesFeature($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $template; - /** * Get VmidLxcNodeNodesTemplate * @return PVEVmidLxcNodeNodesTemplate */ - public function getTemplate() { + public function getTemplate() + { return $this->template ?: ($this->template = new PVEVmidLxcNodeNodesTemplate($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $clone; - /** * Get VmidLxcNodeNodesClone * @return PVEVmidLxcNodeNodesClone */ - public function getClone() { + public function getClone() + { return $this->clone ?: ($this->clone = new PVEVmidLxcNodeNodesClone($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $resize; - /** * Get VmidLxcNodeNodesResize * @return PVEVmidLxcNodeNodesResize */ - public function getResize() { + public function getResize() + { return $this->resize ?: ($this->resize = new PVEVmidLxcNodeNodesResize($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $moveVolume; - /** * Get VmidLxcNodeNodesMoveVolume * @return PVEVmidLxcNodeNodesMoveVolume */ - public function getMoveVolume() { + public function getMoveVolume() + { return $this->moveVolume ?: ($this->moveVolume = new PVEVmidLxcNodeNodesMoveVolume($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $pending; - /** * Get VmidLxcNodeNodesPending * @return PVEVmidLxcNodeNodesPending */ - public function getPending() { + public function getPending() + { return $this->pending ?: ($this->pending = new PVEVmidLxcNodeNodesPending($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $interfaces; - /** * Get VmidLxcNodeNodesInterfaces * @return PVEVmidLxcNodeNodesInterfaces */ - public function getInterfaces() { + public function getInterfaces() + { return $this->interfaces ?: ($this->interfaces = new PVEVmidLxcNodeNodesInterfaces($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $mtunnel; - /** * Get VmidLxcNodeNodesMtunnel * @return PVEVmidLxcNodeNodesMtunnel */ - public function getMtunnel() { + public function getMtunnel() + { return $this->mtunnel ?: ($this->mtunnel = new PVEVmidLxcNodeNodesMtunnel($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $mtunnelwebsocket; - /** * Get VmidLxcNodeNodesMtunnelwebsocket * @return PVEVmidLxcNodeNodesMtunnelwebsocket */ - public function getMtunnelwebsocket() { + public function getMtunnelwebsocket() + { return $this->mtunnelwebsocket ?: ($this->mtunnelwebsocket = new PVEVmidLxcNodeNodesMtunnelwebsocket($this->client, $this->node, $this->vmid)); } + /** * Destroy the container (also delete all uses files). * @param bool $destroy_unreferenced_disks If set, destroy additionally all disks with the VMID from all enabled storages which are not referenced in the config. @@ -12114,27 +13114,32 @@ public function getMtunnelwebsocket() { * @param bool $purge Remove container from all related configurations. For example, backup jobs, replication jobs or HA. Related ACLs and Firewall entries will *always* be removed. * @return Result */ - public function destroyVm($destroy_unreferenced_disks = null, $force = null, $purge = null) { - $params = ['destroy-unreferenced-disks' => $destroy_unreferenced_disks, + + public function destroyVm($destroy_unreferenced_disks = null, $force = null, $purge = null) + { + $params = [ + 'destroy-unreferenced-disks' => $destroy_unreferenced_disks, 'force' => $force, - 'purge' => $purge]; + 'purge' => $purge + ]; return $this->client->delete("/nodes/{$this->node}/lxc/{$this->vmid}", $params); } - /** * Directory index * @return Result */ - public function vmdiridx() { + + public function vmdiridx() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}"); } } - /** * Class PVEVmidLxcNodeNodesConfig - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesConfig { + class PVEVmidLxcNodeNodesConfig + { /** * @ignore @@ -12145,7 +13150,6 @@ class PVEVmidLxcNodeNodesConfig { * @ignore */ private $vmid; - /** * @ignore */ @@ -12154,24 +13158,30 @@ class PVEVmidLxcNodeNodesConfig { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get container configuration. * @param bool $current Get current values (instead of pending values). * @param string $snapshot Fetch config values from given snapshot. * @return Result */ - public function vmConfig($current = null, $snapshot = null) { - $params = ['current' => $current, - 'snapshot' => $snapshot]; + + public function vmConfig($current = null, $snapshot = null) + { + $params = [ + 'current' => $current, + 'snapshot' => $snapshot + ]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/config", $params); } - /** * Set container options. * @param string $arch OS architecture type. @@ -12213,8 +13223,11 @@ public function vmConfig($current = null, $snapshot = null) { * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @return Result */ - public function updateVm($arch = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $debug = null, $delete = null, $description = null, $devN = null, $digest = null, $features = null, $hookscript = null, $hostname = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $protection = null, $revert = null, $rootfs = null, $searchdomain = null, $startup = null, $swap = null, $tags = null, $template = null, $timezone = null, $tty = null, $unprivileged = null, $unusedN = null) { - $params = ['arch' => $arch, + + public function updateVm($arch = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $debug = null, $delete = null, $description = null, $devN = null, $digest = null, $features = null, $hookscript = null, $hostname = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $protection = null, $revert = null, $rootfs = null, $searchdomain = null, $startup = null, $swap = null, $tags = null, $template = null, $timezone = null, $tty = null, $unprivileged = null, $unusedN = null) + { + $params = [ + 'arch' => $arch, 'cmode' => $cmode, 'console' => $console, 'cores' => $cores, @@ -12242,7 +13255,8 @@ public function updateVm($arch = null, $cmode = null, $console = null, $cores = 'template' => $template, 'timezone' => $timezone, 'tty' => $tty, - 'unprivileged' => $unprivileged]; + 'unprivileged' => $unprivileged + ]; $this->client->addIndexedParameter($params, 'dev', $devN); $this->client->addIndexedParameter($params, 'mp', $mpN); $this->client->addIndexedParameter($params, 'net', $netN); @@ -12253,9 +13267,10 @@ public function updateVm($arch = null, $cmode = null, $console = null, $cores = /** * Class PVEVmidLxcNodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesStatus { + class PVEVmidLxcNodeNodesStatus + { /** * @ignore @@ -12266,7 +13281,6 @@ class PVEVmidLxcNodeNodesStatus { * @ignore */ private $vmid; - /** * @ignore */ @@ -12275,7 +13289,8 @@ class PVEVmidLxcNodeNodesStatus { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -12285,107 +13300,104 @@ function __construct($client, $node, $vmid) { * @ignore */ private $current; - /** * Get StatusVmidLxcNodeNodesCurrent * @return PVEStatusVmidLxcNodeNodesCurrent */ - public function getCurrent() { + public function getCurrent() + { return $this->current ?: ($this->current = new PVEStatusVmidLxcNodeNodesCurrent($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $start; - /** * Get StatusVmidLxcNodeNodesStart * @return PVEStatusVmidLxcNodeNodesStart */ - public function getStart() { + public function getStart() + { return $this->start ?: ($this->start = new PVEStatusVmidLxcNodeNodesStart($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $stop; - /** * Get StatusVmidLxcNodeNodesStop * @return PVEStatusVmidLxcNodeNodesStop */ - public function getStop() { + public function getStop() + { return $this->stop ?: ($this->stop = new PVEStatusVmidLxcNodeNodesStop($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $shutdown; - /** * Get StatusVmidLxcNodeNodesShutdown * @return PVEStatusVmidLxcNodeNodesShutdown */ - public function getShutdown() { + public function getShutdown() + { return $this->shutdown ?: ($this->shutdown = new PVEStatusVmidLxcNodeNodesShutdown($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $suspend; - /** * Get StatusVmidLxcNodeNodesSuspend * @return PVEStatusVmidLxcNodeNodesSuspend */ - public function getSuspend() { + public function getSuspend() + { return $this->suspend ?: ($this->suspend = new PVEStatusVmidLxcNodeNodesSuspend($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $resume; - /** * Get StatusVmidLxcNodeNodesResume * @return PVEStatusVmidLxcNodeNodesResume */ - public function getResume() { + public function getResume() + { return $this->resume ?: ($this->resume = new PVEStatusVmidLxcNodeNodesResume($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $reboot; - /** * Get StatusVmidLxcNodeNodesReboot * @return PVEStatusVmidLxcNodeNodesReboot */ - public function getReboot() { + public function getReboot() + { return $this->reboot ?: ($this->reboot = new PVEStatusVmidLxcNodeNodesReboot($this->client, $this->node, $this->vmid)); } + /** * Directory index * @return Result */ - public function vmcmdidx() { + + public function vmcmdidx() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/status"); } } - /** * Class PVEStatusVmidLxcNodeNodesCurrent - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidLxcNodeNodesCurrent { + class PVEStatusVmidLxcNodeNodesCurrent + { /** * @ignore @@ -12396,7 +13408,6 @@ class PVEStatusVmidLxcNodeNodesCurrent { * @ignore */ private $vmid; - /** * @ignore */ @@ -12405,26 +13416,32 @@ class PVEStatusVmidLxcNodeNodesCurrent { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get virtual machine status. * @return Result */ - public function vmStatus() { + + public function vmStatus() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/status/current"); } } /** * Class PVEStatusVmidLxcNodeNodesStart - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidLxcNodeNodesStart { + class PVEStatusVmidLxcNodeNodesStart + { /** * @ignore @@ -12435,7 +13452,6 @@ class PVEStatusVmidLxcNodeNodesStart { * @ignore */ private $vmid; - /** * @ignore */ @@ -12444,30 +13460,38 @@ class PVEStatusVmidLxcNodeNodesStart { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Start the container. * @param bool $debug If set, enables very verbose debug log-level on start. * @param bool $skiplock Ignore locks - only root is allowed to use this option. * @return Result */ - public function vmStart($debug = null, $skiplock = null) { - $params = ['debug' => $debug, - 'skiplock' => $skiplock]; + + public function vmStart($debug = null, $skiplock = null) + { + $params = [ + 'debug' => $debug, + 'skiplock' => $skiplock + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/status/start", $params); } } /** * Class PVEStatusVmidLxcNodeNodesStop - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidLxcNodeNodesStop { + class PVEStatusVmidLxcNodeNodesStop + { /** * @ignore @@ -12478,7 +13502,6 @@ class PVEStatusVmidLxcNodeNodesStop { * @ignore */ private $vmid; - /** * @ignore */ @@ -12487,18 +13510,23 @@ class PVEStatusVmidLxcNodeNodesStop { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Stop the container. This will abruptly stop all processes running in the container. * @param bool $skiplock Ignore locks - only root is allowed to use this option. * @return Result */ - public function vmStop($skiplock = null) { + + public function vmStop($skiplock = null) + { $params = ['skiplock' => $skiplock]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/status/stop", $params); } @@ -12506,9 +13534,10 @@ public function vmStop($skiplock = null) { /** * Class PVEStatusVmidLxcNodeNodesShutdown - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidLxcNodeNodesShutdown { + class PVEStatusVmidLxcNodeNodesShutdown + { /** * @ignore @@ -12519,7 +13548,6 @@ class PVEStatusVmidLxcNodeNodesShutdown { * @ignore */ private $vmid; - /** * @ignore */ @@ -12528,30 +13556,38 @@ class PVEStatusVmidLxcNodeNodesShutdown { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. * @param bool $forceStop Make sure the Container stops. * @param int $timeout Wait maximal timeout seconds. * @return Result */ - public function vmShutdown($forceStop = null, $timeout = null) { - $params = ['forceStop' => $forceStop, - 'timeout' => $timeout]; + + public function vmShutdown($forceStop = null, $timeout = null) + { + $params = [ + 'forceStop' => $forceStop, + 'timeout' => $timeout + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/status/shutdown", $params); } } /** * Class PVEStatusVmidLxcNodeNodesSuspend - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidLxcNodeNodesSuspend { + class PVEStatusVmidLxcNodeNodesSuspend + { /** * @ignore @@ -12562,7 +13598,6 @@ class PVEStatusVmidLxcNodeNodesSuspend { * @ignore */ private $vmid; - /** * @ignore */ @@ -12571,26 +13606,32 @@ class PVEStatusVmidLxcNodeNodesSuspend { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Suspend the container. This is experimental. * @return Result */ - public function vmSuspend() { + + public function vmSuspend() + { return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/status/suspend"); } } /** * Class PVEStatusVmidLxcNodeNodesResume - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidLxcNodeNodesResume { + class PVEStatusVmidLxcNodeNodesResume + { /** * @ignore @@ -12601,7 +13642,6 @@ class PVEStatusVmidLxcNodeNodesResume { * @ignore */ private $vmid; - /** * @ignore */ @@ -12610,26 +13650,32 @@ class PVEStatusVmidLxcNodeNodesResume { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Resume the container. * @return Result */ - public function vmResume() { + + public function vmResume() + { return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/status/resume"); } } /** * Class PVEStatusVmidLxcNodeNodesReboot - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStatusVmidLxcNodeNodesReboot { + class PVEStatusVmidLxcNodeNodesReboot + { /** * @ignore @@ -12640,7 +13686,6 @@ class PVEStatusVmidLxcNodeNodesReboot { * @ignore */ private $vmid; - /** * @ignore */ @@ -12649,18 +13694,23 @@ class PVEStatusVmidLxcNodeNodesReboot { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Reboot the container by shutting it down, and starting it again. Applies pending changes. * @param int $timeout Wait maximal timeout seconds for the shutdown. * @return Result */ - public function vmReboot($timeout = null) { + + public function vmReboot($timeout = null) + { $params = ['timeout' => $timeout]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/status/reboot", $params); } @@ -12668,9 +13718,10 @@ public function vmReboot($timeout = null) { /** * Class PVEVmidLxcNodeNodesSnapshot - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesSnapshot { + class PVEVmidLxcNodeNodesSnapshot + { /** * @ignore @@ -12681,7 +13732,6 @@ class PVEVmidLxcNodeNodesSnapshot { * @ignore */ private $vmid; - /** * @ignore */ @@ -12690,18 +13740,21 @@ class PVEVmidLxcNodeNodesSnapshot { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemSnapshotVmidLxcNodeNodesSnapname * @param snapname * @return PVEItemSnapshotVmidLxcNodeNodesSnapname */ - public function get($snapname) { + public function get($snapname) + { return new PVEItemSnapshotVmidLxcNodeNodesSnapname($this->client, $this->node, $this->vmid, $snapname); } @@ -12709,28 +13762,33 @@ public function get($snapname) { * List all snapshots. * @return Result */ - public function list_() { + + public function list_() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/snapshot"); } - /** * Snapshot a container. * @param string $snapname The name of the snapshot. * @param string $description A textual description or comment. * @return Result */ - public function snapshot($snapname, $description = null) { - $params = ['snapname' => $snapname, - 'description' => $description]; + + public function snapshot($snapname, $description = null) + { + $params = [ + 'snapname' => $snapname, + 'description' => $description + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/snapshot", $params); } } - /** * Class PVEItemSnapshotVmidLxcNodeNodesSnapname - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemSnapshotVmidLxcNodeNodesSnapname { + class PVEItemSnapshotVmidLxcNodeNodesSnapname + { /** * @ignore @@ -12746,7 +13804,6 @@ class PVEItemSnapshotVmidLxcNodeNodesSnapname { * @ignore */ private $snapname; - /** * @ignore */ @@ -12755,7 +13812,8 @@ class PVEItemSnapshotVmidLxcNodeNodesSnapname { /** * @ignore */ - function __construct($client, $node, $vmid, $snapname) { + function __construct($client, $node, $vmid, $snapname) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -12766,52 +13824,55 @@ function __construct($client, $node, $vmid, $snapname) { * @ignore */ private $rollback; - /** * Get SnapnameSnapshotVmidLxcNodeNodesRollback * @return PVESnapnameSnapshotVmidLxcNodeNodesRollback */ - public function getRollback() { + public function getRollback() + { return $this->rollback ?: ($this->rollback = new PVESnapnameSnapshotVmidLxcNodeNodesRollback($this->client, $this->node, $this->vmid, $this->snapname)); } - /** * @ignore */ private $config; - /** * Get SnapnameSnapshotVmidLxcNodeNodesConfig * @return PVESnapnameSnapshotVmidLxcNodeNodesConfig */ - public function getConfig() { + public function getConfig() + { return $this->config ?: ($this->config = new PVESnapnameSnapshotVmidLxcNodeNodesConfig($this->client, $this->node, $this->vmid, $this->snapname)); } + /** * Delete a LXC snapshot. * @param bool $force For removal from config file, even if removing disk snapshots fails. * @return Result */ - public function delsnapshot($force = null) { + + public function delsnapshot($force = null) + { $params = ['force' => $force]; return $this->client->delete("/nodes/{$this->node}/lxc/{$this->vmid}/snapshot/{$this->snapname}", $params); } - /** - * + * * @return Result */ - public function snapshotCmdIdx() { + + public function snapshotCmdIdx() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/snapshot/{$this->snapname}"); } } - /** * Class PVESnapnameSnapshotVmidLxcNodeNodesRollback - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESnapnameSnapshotVmidLxcNodeNodesRollback { + class PVESnapnameSnapshotVmidLxcNodeNodesRollback + { /** * @ignore @@ -12827,7 +13888,6 @@ class PVESnapnameSnapshotVmidLxcNodeNodesRollback { * @ignore */ private $snapname; - /** * @ignore */ @@ -12836,19 +13896,24 @@ class PVESnapnameSnapshotVmidLxcNodeNodesRollback { /** * @ignore */ - function __construct($client, $node, $vmid, $snapname) { + function __construct($client, $node, $vmid, $snapname) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->snapname = $snapname; } + + /** * Rollback LXC state to specified snapshot. * @param bool $start Whether the container should get started after rolling back successfully * @return Result */ - public function rollback($start = null) { + + public function rollback($start = null) + { $params = ['start' => $start]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/snapshot/{$this->snapname}/rollback", $params); } @@ -12856,9 +13921,10 @@ public function rollback($start = null) { /** * Class PVESnapnameSnapshotVmidLxcNodeNodesConfig - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESnapnameSnapshotVmidLxcNodeNodesConfig { + class PVESnapnameSnapshotVmidLxcNodeNodesConfig + { /** * @ignore @@ -12874,7 +13940,6 @@ class PVESnapnameSnapshotVmidLxcNodeNodesConfig { * @ignore */ private $snapname; - /** * @ignore */ @@ -12883,27 +13948,33 @@ class PVESnapnameSnapshotVmidLxcNodeNodesConfig { /** * @ignore */ - function __construct($client, $node, $vmid, $snapname) { + function __construct($client, $node, $vmid, $snapname) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->snapname = $snapname; } + + /** * Get snapshot configuration * @return Result */ - public function getSnapshotConfig() { + + public function getSnapshotConfig() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/snapshot/{$this->snapname}/config"); } - /** * Update snapshot metadata. * @param string $description A textual description or comment. * @return Result */ - public function updateSnapshotConfig($description = null) { + + public function updateSnapshotConfig($description = null) + { $params = ['description' => $description]; return $this->client->set("/nodes/{$this->node}/lxc/{$this->vmid}/snapshot/{$this->snapname}/config", $params); } @@ -12911,9 +13982,10 @@ public function updateSnapshotConfig($description = null) { /** * Class PVEVmidLxcNodeNodesFirewall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesFirewall { + class PVEVmidLxcNodeNodesFirewall + { /** * @ignore @@ -12924,7 +13996,6 @@ class PVEVmidLxcNodeNodesFirewall { * @ignore */ private $vmid; - /** * @ignore */ @@ -12933,7 +14004,8 @@ class PVEVmidLxcNodeNodesFirewall { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -12943,94 +14015,92 @@ function __construct($client, $node, $vmid) { * @ignore */ private $rules; - /** * Get FirewallVmidLxcNodeNodesRules * @return PVEFirewallVmidLxcNodeNodesRules */ - public function getRules() { + public function getRules() + { return $this->rules ?: ($this->rules = new PVEFirewallVmidLxcNodeNodesRules($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $aliases; - /** * Get FirewallVmidLxcNodeNodesAliases * @return PVEFirewallVmidLxcNodeNodesAliases */ - public function getAliases() { + public function getAliases() + { return $this->aliases ?: ($this->aliases = new PVEFirewallVmidLxcNodeNodesAliases($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $ipset; - /** * Get FirewallVmidLxcNodeNodesIpset * @return PVEFirewallVmidLxcNodeNodesIpset */ - public function getIpset() { + public function getIpset() + { return $this->ipset ?: ($this->ipset = new PVEFirewallVmidLxcNodeNodesIpset($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $options; - /** * Get FirewallVmidLxcNodeNodesOptions * @return PVEFirewallVmidLxcNodeNodesOptions */ - public function getOptions() { + public function getOptions() + { return $this->options ?: ($this->options = new PVEFirewallVmidLxcNodeNodesOptions($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $log; - /** * Get FirewallVmidLxcNodeNodesLog * @return PVEFirewallVmidLxcNodeNodesLog */ - public function getLog() { + public function getLog() + { return $this->log ?: ($this->log = new PVEFirewallVmidLxcNodeNodesLog($this->client, $this->node, $this->vmid)); } - /** * @ignore */ private $refs; - /** * Get FirewallVmidLxcNodeNodesRefs * @return PVEFirewallVmidLxcNodeNodesRefs */ - public function getRefs() { + public function getRefs() + { return $this->refs ?: ($this->refs = new PVEFirewallVmidLxcNodeNodesRefs($this->client, $this->node, $this->vmid)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall"); } } - /** * Class PVEFirewallVmidLxcNodeNodesRules - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidLxcNodeNodesRules { + class PVEFirewallVmidLxcNodeNodesRules + { /** * @ignore @@ -13041,7 +14111,6 @@ class PVEFirewallVmidLxcNodeNodesRules { * @ignore */ private $vmid; - /** * @ignore */ @@ -13050,18 +14119,21 @@ class PVEFirewallVmidLxcNodeNodesRules { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemRulesFirewallVmidLxcNodeNodesPos * @param pos * @return PVEItemRulesFirewallVmidLxcNodeNodesPos */ - public function get($pos) { + public function get($pos) + { return new PVEItemRulesFirewallVmidLxcNodeNodesPos($this->client, $this->node, $this->vmid, $pos); } @@ -13069,10 +14141,11 @@ public function get($pos) { * List rules. * @return Result */ - public function getRules() { + + public function getRules() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/rules"); } - /** * Create new rule. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -13094,8 +14167,11 @@ public function getRules() { * @param string $sport Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\d+:\d+', for example '80:85', and you can use comma separated list to match several ports or ranges. * @return Result */ - public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) { - $params = ['action' => $action, + + public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) + { + $params = [ + 'action' => $action, 'type' => $type, 'comment' => $comment, 'dest' => $dest, @@ -13109,16 +14185,17 @@ public function createRule($action, $type, $comment = null, $dest = null, $diges 'pos' => $pos, 'proto' => $proto, 'source' => $source, - 'sport' => $sport]; + 'sport' => $sport + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/rules", $params); } } - /** * Class PVEItemRulesFirewallVmidLxcNodeNodesPos - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemRulesFirewallVmidLxcNodeNodesPos { + class PVEItemRulesFirewallVmidLxcNodeNodesPos + { /** * @ignore @@ -13134,7 +14211,6 @@ class PVEItemRulesFirewallVmidLxcNodeNodesPos { * @ignore */ private $pos; - /** * @ignore */ @@ -13143,31 +14219,36 @@ class PVEItemRulesFirewallVmidLxcNodeNodesPos { /** * @ignore */ - function __construct($client, $node, $vmid, $pos) { + function __construct($client, $node, $vmid, $pos) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->pos = $pos; } + + /** * Delete rule. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function deleteRule($digest = null) { + + public function deleteRule($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/rules/{$this->pos}", $params); } - /** * Get single rule data. * @return Result */ - public function getRule() { + + public function getRule() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/rules/{$this->pos}"); } - /** * Modify rule data. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -13190,8 +14271,11 @@ public function getRule() { * Enum: in,out,group * @return Result */ - public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) { - $params = ['action' => $action, + + public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) + { + $params = [ + 'action' => $action, 'comment' => $comment, 'delete' => $delete, 'dest' => $dest, @@ -13206,16 +14290,18 @@ public function updateRule($action = null, $comment = null, $delete = null, $des 'proto' => $proto, 'source' => $source, 'sport' => $sport, - 'type' => $type]; + 'type' => $type + ]; return $this->client->set("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/rules/{$this->pos}", $params); } } /** * Class PVEFirewallVmidLxcNodeNodesAliases - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidLxcNodeNodesAliases { + class PVEFirewallVmidLxcNodeNodesAliases + { /** * @ignore @@ -13226,7 +14312,6 @@ class PVEFirewallVmidLxcNodeNodesAliases { * @ignore */ private $vmid; - /** * @ignore */ @@ -13235,18 +14320,21 @@ class PVEFirewallVmidLxcNodeNodesAliases { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemAliasesFirewallVmidLxcNodeNodesName * @param name * @return PVEItemAliasesFirewallVmidLxcNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemAliasesFirewallVmidLxcNodeNodesName($this->client, $this->node, $this->vmid, $name); } @@ -13254,30 +14342,35 @@ public function get($name) { * List aliases * @return Result */ - public function getAliases() { + + public function getAliases() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/aliases"); } - /** * Create IP or Network Alias. * @param string $cidr Network/IP specification in CIDR format. * @param string $name Alias name. - * @param string $comment + * @param string $comment * @return Result */ - public function createAlias($cidr, $name, $comment = null) { - $params = ['cidr' => $cidr, + + public function createAlias($cidr, $name, $comment = null) + { + $params = [ + 'cidr' => $cidr, 'name' => $name, - 'comment' => $comment]; + 'comment' => $comment + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/aliases", $params); } } - /** * Class PVEItemAliasesFirewallVmidLxcNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemAliasesFirewallVmidLxcNodeNodesName { + class PVEItemAliasesFirewallVmidLxcNodeNodesName + { /** * @ignore @@ -13293,7 +14386,6 @@ class PVEItemAliasesFirewallVmidLxcNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -13302,53 +14394,63 @@ class PVEItemAliasesFirewallVmidLxcNodeNodesName { /** * @ignore */ - function __construct($client, $node, $vmid, $name) { + function __construct($client, $node, $vmid, $name) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->name = $name; } + + /** * Remove IP or Network alias. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function removeAlias($digest = null) { + + public function removeAlias($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/aliases/{$this->name}", $params); } - /** * Read alias. * @return Result */ - public function readAlias() { + + public function readAlias() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/aliases/{$this->name}"); } - /** * Update IP or Network alias. * @param string $cidr Network/IP specification in CIDR format. - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $rename Rename an existing alias. * @return Result */ - public function updateAlias($cidr, $comment = null, $digest = null, $rename = null) { - $params = ['cidr' => $cidr, + + public function updateAlias($cidr, $comment = null, $digest = null, $rename = null) + { + $params = [ + 'cidr' => $cidr, 'comment' => $comment, 'digest' => $digest, - 'rename' => $rename]; + 'rename' => $rename + ]; return $this->client->set("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/aliases/{$this->name}", $params); } } /** * Class PVEFirewallVmidLxcNodeNodesIpset - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidLxcNodeNodesIpset { + class PVEFirewallVmidLxcNodeNodesIpset + { /** * @ignore @@ -13359,7 +14461,6 @@ class PVEFirewallVmidLxcNodeNodesIpset { * @ignore */ private $vmid; - /** * @ignore */ @@ -13368,18 +14469,21 @@ class PVEFirewallVmidLxcNodeNodesIpset { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + /** * Get ItemIpsetFirewallVmidLxcNodeNodesName * @param name * @return PVEItemIpsetFirewallVmidLxcNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemIpsetFirewallVmidLxcNodeNodesName($this->client, $this->node, $this->vmid, $name); } @@ -13387,32 +14491,37 @@ public function get($name) { * List IPSets * @return Result */ - public function ipsetIndex() { + + public function ipsetIndex() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset"); } - /** * Create new IPSet * @param string $name IP set name. - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @param string $rename Rename an existing IPSet. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing IPSet. * @return Result */ - public function createIpset($name, $comment = null, $digest = null, $rename = null) { - $params = ['name' => $name, + + public function createIpset($name, $comment = null, $digest = null, $rename = null) + { + $params = [ + 'name' => $name, 'comment' => $comment, 'digest' => $digest, - 'rename' => $rename]; + 'rename' => $rename + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset", $params); } } - /** * Class PVEItemIpsetFirewallVmidLxcNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemIpsetFirewallVmidLxcNodeNodesName { + class PVEItemIpsetFirewallVmidLxcNodeNodesName + { /** * @ignore @@ -13428,7 +14537,6 @@ class PVEItemIpsetFirewallVmidLxcNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -13437,19 +14545,22 @@ class PVEItemIpsetFirewallVmidLxcNodeNodesName { /** * @ignore */ - function __construct($client, $node, $vmid, $name) { + function __construct($client, $node, $vmid, $name) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; $this->name = $name; } + /** * Get ItemNameIpsetFirewallVmidLxcNodeNodesCidr * @param cidr * @return PVEItemNameIpsetFirewallVmidLxcNodeNodesCidr */ - public function get($cidr) { + public function get($cidr) + { return new PVEItemNameIpsetFirewallVmidLxcNodeNodesCidr($this->client, $this->node, $this->vmid, $this->name, $cidr); } @@ -13458,39 +14569,45 @@ public function get($cidr) { * @param bool $force Delete all members of the IPSet, if there are any. * @return Result */ - public function deleteIpset($force = null) { + + public function deleteIpset($force = null) + { $params = ['force' => $force]; return $this->client->delete("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset/{$this->name}", $params); } - /** * List IPSet content * @return Result */ - public function getIpset() { + + public function getIpset() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset/{$this->name}"); } - /** * Add IP or Network to IPSet. * @param string $cidr Network/IP specification in CIDR format. - * @param string $comment - * @param bool $nomatch + * @param string $comment + * @param bool $nomatch * @return Result */ - public function createIp($cidr, $comment = null, $nomatch = null) { - $params = ['cidr' => $cidr, + + public function createIp($cidr, $comment = null, $nomatch = null) + { + $params = [ + 'cidr' => $cidr, 'comment' => $comment, - 'nomatch' => $nomatch]; + 'nomatch' => $nomatch + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset/{$this->name}", $params); } } - /** * Class PVEItemNameIpsetFirewallVmidLxcNodeNodesCidr - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemNameIpsetFirewallVmidLxcNodeNodesCidr { + class PVEItemNameIpsetFirewallVmidLxcNodeNodesCidr + { /** * @ignore @@ -13511,7 +14628,6 @@ class PVEItemNameIpsetFirewallVmidLxcNodeNodesCidr { * @ignore */ private $cidr; - /** * @ignore */ @@ -13520,7 +14636,8 @@ class PVEItemNameIpsetFirewallVmidLxcNodeNodesCidr { /** * @ignore */ - function __construct($client, $node, $vmid, $name, $cidr) { + function __construct($client, $node, $vmid, $name, $cidr) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; @@ -13528,44 +14645,53 @@ function __construct($client, $node, $vmid, $name, $cidr) { $this->cidr = $cidr; } + + /** * Remove IP or Network from IPSet. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function removeIp($digest = null) { + + public function removeIp($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset/{$this->name}/{$this->cidr}", $params); } - /** * Read IP or Network settings from IPSet. * @return Result */ - public function readIp() { + + public function readIp() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset/{$this->name}/{$this->cidr}"); } - /** * Update IP or Network settings - * @param string $comment + * @param string $comment * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. - * @param bool $nomatch + * @param bool $nomatch * @return Result */ - public function updateIp($comment = null, $digest = null, $nomatch = null) { - $params = ['comment' => $comment, + + public function updateIp($comment = null, $digest = null, $nomatch = null) + { + $params = [ + 'comment' => $comment, 'digest' => $digest, - 'nomatch' => $nomatch]; + 'nomatch' => $nomatch + ]; return $this->client->set("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/ipset/{$this->name}/{$this->cidr}", $params); } } /** * Class PVEFirewallVmidLxcNodeNodesOptions - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidLxcNodeNodesOptions { + class PVEFirewallVmidLxcNodeNodesOptions + { /** * @ignore @@ -13576,7 +14702,6 @@ class PVEFirewallVmidLxcNodeNodesOptions { * @ignore */ private $vmid; - /** * @ignore */ @@ -13585,20 +14710,24 @@ class PVEFirewallVmidLxcNodeNodesOptions { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get VM firewall options. * @return Result */ - public function getOptions() { + + public function getOptions() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/options"); } - /** * Set Firewall options. * @param string $delete A list of settings you want to delete. @@ -13619,8 +14748,11 @@ public function getOptions() { * @param bool $radv Allow sending Router Advertisement. * @return Result */ - public function setOptions($delete = null, $dhcp = null, $digest = null, $enable = null, $ipfilter = null, $log_level_in = null, $log_level_out = null, $macfilter = null, $ndp = null, $policy_in = null, $policy_out = null, $radv = null) { - $params = ['delete' => $delete, + + public function setOptions($delete = null, $dhcp = null, $digest = null, $enable = null, $ipfilter = null, $log_level_in = null, $log_level_out = null, $macfilter = null, $ndp = null, $policy_in = null, $policy_out = null, $radv = null) + { + $params = [ + 'delete' => $delete, 'dhcp' => $dhcp, 'digest' => $digest, 'enable' => $enable, @@ -13631,16 +14763,18 @@ public function setOptions($delete = null, $dhcp = null, $digest = null, $enable 'ndp' => $ndp, 'policy_in' => $policy_in, 'policy_out' => $policy_out, - 'radv' => $radv]; + 'radv' => $radv + ]; return $this->client->set("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/options", $params); } } /** * Class PVEFirewallVmidLxcNodeNodesLog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidLxcNodeNodesLog { + class PVEFirewallVmidLxcNodeNodesLog + { /** * @ignore @@ -13651,7 +14785,6 @@ class PVEFirewallVmidLxcNodeNodesLog { * @ignore */ private $vmid; - /** * @ignore */ @@ -13660,34 +14793,42 @@ class PVEFirewallVmidLxcNodeNodesLog { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Read firewall log - * @param int $limit + * @param int $limit * @param int $since Display log since this UNIX epoch. - * @param int $start + * @param int $start * @param int $until Display log until this UNIX epoch. * @return Result */ - public function log($limit = null, $since = null, $start = null, $until = null) { - $params = ['limit' => $limit, + + public function log($limit = null, $since = null, $start = null, $until = null) + { + $params = [ + 'limit' => $limit, 'since' => $since, 'start' => $start, - 'until' => $until]; + 'until' => $until + ]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/log", $params); } } /** * Class PVEFirewallVmidLxcNodeNodesRefs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallVmidLxcNodeNodesRefs { + class PVEFirewallVmidLxcNodeNodesRefs + { /** * @ignore @@ -13698,7 +14839,6 @@ class PVEFirewallVmidLxcNodeNodesRefs { * @ignore */ private $vmid; - /** * @ignore */ @@ -13707,19 +14847,24 @@ class PVEFirewallVmidLxcNodeNodesRefs { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Lists possible IPSet/Alias reference which are allowed in source/dest properties. * @param string $type Only list references of specified type. * Enum: alias,ipset * @return Result */ - public function refs($type = null) { + + public function refs($type = null) + { $params = ['type' => $type]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/firewall/refs", $params); } @@ -13727,9 +14872,10 @@ public function refs($type = null) { /** * Class PVEVmidLxcNodeNodesRrd - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesRrd { + class PVEVmidLxcNodeNodesRrd + { /** * @ignore @@ -13740,7 +14886,6 @@ class PVEVmidLxcNodeNodesRrd { * @ignore */ private $vmid; - /** * @ignore */ @@ -13749,12 +14894,15 @@ class PVEVmidLxcNodeNodesRrd { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Read VM RRD statistics (returns PNG) * @param string $ds The list of datasources you want to display. @@ -13764,19 +14912,24 @@ function __construct($client, $node, $vmid) { * Enum: AVERAGE,MAX * @return Result */ - public function rrd($ds, $timeframe, $cf = null) { - $params = ['ds' => $ds, + + public function rrd($ds, $timeframe, $cf = null) + { + $params = [ + 'ds' => $ds, 'timeframe' => $timeframe, - 'cf' => $cf]; + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/rrd", $params); } } /** * Class PVEVmidLxcNodeNodesRrddata - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesRrddata { + class PVEVmidLxcNodeNodesRrddata + { /** * @ignore @@ -13787,7 +14940,6 @@ class PVEVmidLxcNodeNodesRrddata { * @ignore */ private $vmid; - /** * @ignore */ @@ -13796,12 +14948,15 @@ class PVEVmidLxcNodeNodesRrddata { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Read VM RRD statistics * @param string $timeframe Specify the time frame you are interested in. @@ -13810,18 +14965,23 @@ function __construct($client, $node, $vmid) { * Enum: AVERAGE,MAX * @return Result */ - public function rrddata($timeframe, $cf = null) { - $params = ['timeframe' => $timeframe, - 'cf' => $cf]; + + public function rrddata($timeframe, $cf = null) + { + $params = [ + 'timeframe' => $timeframe, + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/rrddata", $params); } } /** * Class PVEVmidLxcNodeNodesVncproxy - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesVncproxy { + class PVEVmidLxcNodeNodesVncproxy + { /** * @ignore @@ -13832,7 +14992,6 @@ class PVEVmidLxcNodeNodesVncproxy { * @ignore */ private $vmid; - /** * @ignore */ @@ -13841,12 +15000,15 @@ class PVEVmidLxcNodeNodesVncproxy { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Creates a TCP VNC proxy connections. * @param int $height sets the height of the console in pixels. @@ -13854,19 +15016,24 @@ function __construct($client, $node, $vmid) { * @param int $width sets the width of the console in pixels. * @return Result */ - public function vncproxy($height = null, $websocket = null, $width = null) { - $params = ['height' => $height, + + public function vncproxy($height = null, $websocket = null, $width = null) + { + $params = [ + 'height' => $height, 'websocket' => $websocket, - 'width' => $width]; + 'width' => $width + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/vncproxy", $params); } } /** * Class PVEVmidLxcNodeNodesTermproxy - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesTermproxy { + class PVEVmidLxcNodeNodesTermproxy + { /** * @ignore @@ -13877,7 +15044,6 @@ class PVEVmidLxcNodeNodesTermproxy { * @ignore */ private $vmid; - /** * @ignore */ @@ -13886,26 +15052,32 @@ class PVEVmidLxcNodeNodesTermproxy { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Creates a TCP proxy connection. * @return Result */ - public function termproxy() { + + public function termproxy() + { return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/termproxy"); } } /** * Class PVEVmidLxcNodeNodesVncwebsocket - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesVncwebsocket { + class PVEVmidLxcNodeNodesVncwebsocket + { /** * @ignore @@ -13916,7 +15088,6 @@ class PVEVmidLxcNodeNodesVncwebsocket { * @ignore */ private $vmid; - /** * @ignore */ @@ -13925,30 +15096,38 @@ class PVEVmidLxcNodeNodesVncwebsocket { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Opens a weksocket for VNC traffic. * @param int $port Port number returned by previous vncproxy call. * @param string $vncticket Ticket from previous call to vncproxy. * @return Result */ - public function vncwebsocket($port, $vncticket) { - $params = ['port' => $port, - 'vncticket' => $vncticket]; + + public function vncwebsocket($port, $vncticket) + { + $params = [ + 'port' => $port, + 'vncticket' => $vncticket + ]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/vncwebsocket", $params); } } /** * Class PVEVmidLxcNodeNodesSpiceproxy - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesSpiceproxy { + class PVEVmidLxcNodeNodesSpiceproxy + { /** * @ignore @@ -13959,7 +15138,6 @@ class PVEVmidLxcNodeNodesSpiceproxy { * @ignore */ private $vmid; - /** * @ignore */ @@ -13968,18 +15146,23 @@ class PVEVmidLxcNodeNodesSpiceproxy { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Returns a SPICE configuration to connect to the CT. * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @return Result */ - public function spiceproxy($proxy = null) { + + public function spiceproxy($proxy = null) + { $params = ['proxy' => $proxy]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/spiceproxy", $params); } @@ -13987,9 +15170,10 @@ public function spiceproxy($proxy = null) { /** * Class PVEVmidLxcNodeNodesRemoteMigrate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesRemoteMigrate { + class PVEVmidLxcNodeNodesRemoteMigrate + { /** * @ignore @@ -14000,7 +15184,6 @@ class PVEVmidLxcNodeNodesRemoteMigrate { * @ignore */ private $vmid; - /** * @ignore */ @@ -14009,12 +15192,15 @@ class PVEVmidLxcNodeNodesRemoteMigrate { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! * @param string $target_bridge Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value '1' will map each source bridge to itself. @@ -14028,8 +15214,11 @@ function __construct($client, $node, $vmid) { * @param int $timeout Timeout in seconds for shutdown for restart migration * @return Result */ - public function remoteMigrateVm($target_bridge, $target_endpoint, $target_storage, $bwlimit = null, $delete = null, $online = null, $restart = null, $target_vmid = null, $timeout = null) { - $params = ['target-bridge' => $target_bridge, + + public function remoteMigrateVm($target_bridge, $target_endpoint, $target_storage, $bwlimit = null, $delete = null, $online = null, $restart = null, $target_vmid = null, $timeout = null) + { + $params = [ + 'target-bridge' => $target_bridge, 'target-endpoint' => $target_endpoint, 'target-storage' => $target_storage, 'bwlimit' => $bwlimit, @@ -14037,16 +15226,18 @@ public function remoteMigrateVm($target_bridge, $target_endpoint, $target_storag 'online' => $online, 'restart' => $restart, 'target-vmid' => $target_vmid, - 'timeout' => $timeout]; + 'timeout' => $timeout + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/remote_migrate", $params); } } /** * Class PVEVmidLxcNodeNodesMigrate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesMigrate { + class PVEVmidLxcNodeNodesMigrate + { /** * @ignore @@ -14057,7 +15248,6 @@ class PVEVmidLxcNodeNodesMigrate { * @ignore */ private $vmid; - /** * @ignore */ @@ -14066,12 +15256,15 @@ class PVEVmidLxcNodeNodesMigrate { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Migrate the container to another node. Creates a new migration task. * @param string $target Target node. @@ -14082,22 +15275,27 @@ function __construct($client, $node, $vmid) { * @param int $timeout Timeout in seconds for shutdown for restart migration * @return Result */ - public function migrateVm($target, $bwlimit = null, $online = null, $restart = null, $target_storage = null, $timeout = null) { - $params = ['target' => $target, + + public function migrateVm($target, $bwlimit = null, $online = null, $restart = null, $target_storage = null, $timeout = null) + { + $params = [ + 'target' => $target, 'bwlimit' => $bwlimit, 'online' => $online, 'restart' => $restart, 'target-storage' => $target_storage, - 'timeout' => $timeout]; + 'timeout' => $timeout + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/migrate", $params); } } /** * Class PVEVmidLxcNodeNodesFeature - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesFeature { + class PVEVmidLxcNodeNodesFeature + { /** * @ignore @@ -14108,7 +15306,6 @@ class PVEVmidLxcNodeNodesFeature { * @ignore */ private $vmid; - /** * @ignore */ @@ -14117,12 +15314,15 @@ class PVEVmidLxcNodeNodesFeature { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Check if feature for virtual machine is available. * @param string $feature Feature to check. @@ -14130,18 +15330,23 @@ function __construct($client, $node, $vmid) { * @param string $snapname The name of the snapshot. * @return Result */ - public function vmFeature($feature, $snapname = null) { - $params = ['feature' => $feature, - 'snapname' => $snapname]; + + public function vmFeature($feature, $snapname = null) + { + $params = [ + 'feature' => $feature, + 'snapname' => $snapname + ]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/feature", $params); } } /** * Class PVEVmidLxcNodeNodesTemplate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesTemplate { + class PVEVmidLxcNodeNodesTemplate + { /** * @ignore @@ -14152,7 +15357,6 @@ class PVEVmidLxcNodeNodesTemplate { * @ignore */ private $vmid; - /** * @ignore */ @@ -14161,26 +15365,32 @@ class PVEVmidLxcNodeNodesTemplate { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Create a Template. * @return Result */ - public function template() { + + public function template() + { return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/template"); } } /** * Class PVEVmidLxcNodeNodesClone - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesClone { + class PVEVmidLxcNodeNodesClone + { /** * @ignore @@ -14191,7 +15401,6 @@ class PVEVmidLxcNodeNodesClone { * @ignore */ private $vmid; - /** * @ignore */ @@ -14200,12 +15409,15 @@ class PVEVmidLxcNodeNodesClone { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Create a container clone/copy * @param int $newid VMID for the clone. @@ -14219,8 +15431,11 @@ function __construct($client, $node, $vmid) { * @param string $target Target node. Only allowed if the original VM is on shared storage. * @return Result */ - public function cloneVm($newid, $bwlimit = null, $description = null, $full = null, $hostname = null, $pool = null, $snapname = null, $storage = null, $target = null) { - $params = ['newid' => $newid, + + public function cloneVm($newid, $bwlimit = null, $description = null, $full = null, $hostname = null, $pool = null, $snapname = null, $storage = null, $target = null) + { + $params = [ + 'newid' => $newid, 'bwlimit' => $bwlimit, 'description' => $description, 'full' => $full, @@ -14228,16 +15443,18 @@ public function cloneVm($newid, $bwlimit = null, $description = null, $full = nu 'pool' => $pool, 'snapname' => $snapname, 'storage' => $storage, - 'target' => $target]; + 'target' => $target + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/clone", $params); } } /** * Class PVEVmidLxcNodeNodesResize - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesResize { + class PVEVmidLxcNodeNodesResize + { /** * @ignore @@ -14248,7 +15465,6 @@ class PVEVmidLxcNodeNodesResize { * @ignore */ private $vmid; - /** * @ignore */ @@ -14257,12 +15473,15 @@ class PVEVmidLxcNodeNodesResize { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Resize a container mount point. * @param string $disk The disk you want to resize. @@ -14271,19 +15490,24 @@ function __construct($client, $node, $vmid) { * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. * @return Result */ - public function resizeVm($disk, $size, $digest = null) { - $params = ['disk' => $disk, + + public function resizeVm($disk, $size, $digest = null) + { + $params = [ + 'disk' => $disk, 'size' => $size, - 'digest' => $digest]; + 'digest' => $digest + ]; return $this->client->set("/nodes/{$this->node}/lxc/{$this->vmid}/resize", $params); } } /** * Class PVEVmidLxcNodeNodesMoveVolume - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesMoveVolume { + class PVEVmidLxcNodeNodesMoveVolume + { /** * @ignore @@ -14294,7 +15518,6 @@ class PVEVmidLxcNodeNodesMoveVolume { * @ignore */ private $vmid; - /** * @ignore */ @@ -14303,12 +15526,15 @@ class PVEVmidLxcNodeNodesMoveVolume { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Move a rootfs-/mp-volume to a different storage or to a different container. * @param string $volume Volume which will be moved. @@ -14323,24 +15549,29 @@ function __construct($client, $node, $vmid) { * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9,mp10,mp11,mp12,mp13,mp14,mp15,mp16,mp17,mp18,mp19,mp20,mp21,mp22,mp23,mp24,mp25,mp26,mp27,mp28,mp29,mp30,mp31,mp32,mp33,mp34,mp35,mp36,mp37,mp38,mp39,mp40,mp41,mp42,mp43,mp44,mp45,mp46,mp47,mp48,mp49,mp50,mp51,mp52,mp53,mp54,mp55,mp56,mp57,mp58,mp59,mp60,mp61,mp62,mp63,mp64,mp65,mp66,mp67,mp68,mp69,mp70,mp71,mp72,mp73,mp74,mp75,mp76,mp77,mp78,mp79,mp80,mp81,mp82,mp83,mp84,mp85,mp86,mp87,mp88,mp89,mp90,mp91,mp92,mp93,mp94,mp95,mp96,mp97,mp98,mp99,mp100,mp101,mp102,mp103,mp104,mp105,mp106,mp107,mp108,mp109,mp110,mp111,mp112,mp113,mp114,mp115,mp116,mp117,mp118,mp119,mp120,mp121,mp122,mp123,mp124,mp125,mp126,mp127,mp128,mp129,mp130,mp131,mp132,mp133,mp134,mp135,mp136,mp137,mp138,mp139,mp140,mp141,mp142,mp143,mp144,mp145,mp146,mp147,mp148,mp149,mp150,mp151,mp152,mp153,mp154,mp155,mp156,mp157,mp158,mp159,mp160,mp161,mp162,mp163,mp164,mp165,mp166,mp167,mp168,mp169,mp170,mp171,mp172,mp173,mp174,mp175,mp176,mp177,mp178,mp179,mp180,mp181,mp182,mp183,mp184,mp185,mp186,mp187,mp188,mp189,mp190,mp191,mp192,mp193,mp194,mp195,mp196,mp197,mp198,mp199,mp200,mp201,mp202,mp203,mp204,mp205,mp206,mp207,mp208,mp209,mp210,mp211,mp212,mp213,mp214,mp215,mp216,mp217,mp218,mp219,mp220,mp221,mp222,mp223,mp224,mp225,mp226,mp227,mp228,mp229,mp230,mp231,mp232,mp233,mp234,mp235,mp236,mp237,mp238,mp239,mp240,mp241,mp242,mp243,mp244,mp245,mp246,mp247,mp248,mp249,mp250,mp251,mp252,mp253,mp254,mp255,unused0,unused1,unused2,unused3,unused4,unused5,unused6,unused7,unused8,unused9,unused10,unused11,unused12,unused13,unused14,unused15,unused16,unused17,unused18,unused19,unused20,unused21,unused22,unused23,unused24,unused25,unused26,unused27,unused28,unused29,unused30,unused31,unused32,unused33,unused34,unused35,unused36,unused37,unused38,unused39,unused40,unused41,unused42,unused43,unused44,unused45,unused46,unused47,unused48,unused49,unused50,unused51,unused52,unused53,unused54,unused55,unused56,unused57,unused58,unused59,unused60,unused61,unused62,unused63,unused64,unused65,unused66,unused67,unused68,unused69,unused70,unused71,unused72,unused73,unused74,unused75,unused76,unused77,unused78,unused79,unused80,unused81,unused82,unused83,unused84,unused85,unused86,unused87,unused88,unused89,unused90,unused91,unused92,unused93,unused94,unused95,unused96,unused97,unused98,unused99,unused100,unused101,unused102,unused103,unused104,unused105,unused106,unused107,unused108,unused109,unused110,unused111,unused112,unused113,unused114,unused115,unused116,unused117,unused118,unused119,unused120,unused121,unused122,unused123,unused124,unused125,unused126,unused127,unused128,unused129,unused130,unused131,unused132,unused133,unused134,unused135,unused136,unused137,unused138,unused139,unused140,unused141,unused142,unused143,unused144,unused145,unused146,unused147,unused148,unused149,unused150,unused151,unused152,unused153,unused154,unused155,unused156,unused157,unused158,unused159,unused160,unused161,unused162,unused163,unused164,unused165,unused166,unused167,unused168,unused169,unused170,unused171,unused172,unused173,unused174,unused175,unused176,unused177,unused178,unused179,unused180,unused181,unused182,unused183,unused184,unused185,unused186,unused187,unused188,unused189,unused190,unused191,unused192,unused193,unused194,unused195,unused196,unused197,unused198,unused199,unused200,unused201,unused202,unused203,unused204,unused205,unused206,unused207,unused208,unused209,unused210,unused211,unused212,unused213,unused214,unused215,unused216,unused217,unused218,unused219,unused220,unused221,unused222,unused223,unused224,unused225,unused226,unused227,unused228,unused229,unused230,unused231,unused232,unused233,unused234,unused235,unused236,unused237,unused238,unused239,unused240,unused241,unused242,unused243,unused244,unused245,unused246,unused247,unused248,unused249,unused250,unused251,unused252,unused253,unused254,unused255 * @return Result */ - public function moveVolume($volume, $bwlimit = null, $delete = null, $digest = null, $storage = null, $target_digest = null, $target_vmid = null, $target_volume = null) { - $params = ['volume' => $volume, + + public function moveVolume($volume, $bwlimit = null, $delete = null, $digest = null, $storage = null, $target_digest = null, $target_vmid = null, $target_volume = null) + { + $params = [ + 'volume' => $volume, 'bwlimit' => $bwlimit, 'delete' => $delete, 'digest' => $digest, 'storage' => $storage, 'target-digest' => $target_digest, 'target-vmid' => $target_vmid, - 'target-volume' => $target_volume]; + 'target-volume' => $target_volume + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/move_volume", $params); } } /** * Class PVEVmidLxcNodeNodesPending - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesPending { + class PVEVmidLxcNodeNodesPending + { /** * @ignore @@ -14351,7 +15582,6 @@ class PVEVmidLxcNodeNodesPending { * @ignore */ private $vmid; - /** * @ignore */ @@ -14360,26 +15590,32 @@ class PVEVmidLxcNodeNodesPending { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get container configuration, including pending changes. * @return Result */ - public function vmPending() { + + public function vmPending() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/pending"); } } /** * Class PVEVmidLxcNodeNodesInterfaces - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesInterfaces { + class PVEVmidLxcNodeNodesInterfaces + { /** * @ignore @@ -14390,7 +15626,6 @@ class PVEVmidLxcNodeNodesInterfaces { * @ignore */ private $vmid; - /** * @ignore */ @@ -14399,26 +15634,32 @@ class PVEVmidLxcNodeNodesInterfaces { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Get IP addresses of the specified container interface. * @return Result */ - public function ip() { + + public function ip() + { return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/interfaces"); } } /** * Class PVEVmidLxcNodeNodesMtunnel - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesMtunnel { + class PVEVmidLxcNodeNodesMtunnel + { /** * @ignore @@ -14429,7 +15670,6 @@ class PVEVmidLxcNodeNodesMtunnel { * @ignore */ private $vmid; - /** * @ignore */ @@ -14438,30 +15678,38 @@ class PVEVmidLxcNodeNodesMtunnel { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Migration tunnel endpoint - only for internal use by CT migration. * @param string $bridges List of network bridges to check availability. Will be checked again for actually used bridges during migration. * @param string $storages List of storages to check permission and availability. Will be checked again for all actually used storages during migration. * @return Result */ - public function mtunnel($bridges = null, $storages = null) { - $params = ['bridges' => $bridges, - 'storages' => $storages]; + + public function mtunnel($bridges = null, $storages = null) + { + $params = [ + 'bridges' => $bridges, + 'storages' => $storages + ]; return $this->client->create("/nodes/{$this->node}/lxc/{$this->vmid}/mtunnel", $params); } } /** * Class PVEVmidLxcNodeNodesMtunnelwebsocket - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVmidLxcNodeNodesMtunnelwebsocket { + class PVEVmidLxcNodeNodesMtunnelwebsocket + { /** * @ignore @@ -14472,7 +15720,6 @@ class PVEVmidLxcNodeNodesMtunnelwebsocket { * @ignore */ private $vmid; - /** * @ignore */ @@ -14481,36 +15728,43 @@ class PVEVmidLxcNodeNodesMtunnelwebsocket { /** * @ignore */ - function __construct($client, $node, $vmid) { + function __construct($client, $node, $vmid) + { $this->client = $client; $this->node = $node; $this->vmid = $vmid; } + + /** * Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. * @param string $socket unix socket to forward to * @param string $ticket ticket return by initial 'mtunnel' API call, or retrieved via 'ticket' tunnel command * @return Result */ - public function mtunnelwebsocket($socket, $ticket) { - $params = ['socket' => $socket, - 'ticket' => $ticket]; + + public function mtunnelwebsocket($socket, $ticket) + { + $params = [ + 'socket' => $socket, + 'ticket' => $ticket + ]; return $this->client->get("/nodes/{$this->node}/lxc/{$this->vmid}/mtunnelwebsocket", $params); } } /** * Class PVENodeNodesCeph - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesCeph { + class PVENodeNodesCeph + { /** * @ignore */ private $node; - /** * @ignore */ @@ -14519,7 +15773,8 @@ class PVENodeNodesCeph { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -14528,230 +15783,217 @@ function __construct($client, $node) { * @ignore */ private $cfg; - /** * Get CephNodeNodesCfg * @return PVECephNodeNodesCfg */ - public function getCfg() { + public function getCfg() + { return $this->cfg ?: ($this->cfg = new PVECephNodeNodesCfg($this->client, $this->node)); } - /** * @ignore */ private $osd; - /** * Get CephNodeNodesOsd * @return PVECephNodeNodesOsd */ - public function getOsd() { + public function getOsd() + { return $this->osd ?: ($this->osd = new PVECephNodeNodesOsd($this->client, $this->node)); } - /** * @ignore */ private $mds; - /** * Get CephNodeNodesMds * @return PVECephNodeNodesMds */ - public function getMds() { + public function getMds() + { return $this->mds ?: ($this->mds = new PVECephNodeNodesMds($this->client, $this->node)); } - /** * @ignore */ private $mgr; - /** * Get CephNodeNodesMgr * @return PVECephNodeNodesMgr */ - public function getMgr() { + public function getMgr() + { return $this->mgr ?: ($this->mgr = new PVECephNodeNodesMgr($this->client, $this->node)); } - /** * @ignore */ private $mon; - /** * Get CephNodeNodesMon * @return PVECephNodeNodesMon */ - public function getMon() { + public function getMon() + { return $this->mon ?: ($this->mon = new PVECephNodeNodesMon($this->client, $this->node)); } - /** * @ignore */ private $fs; - /** * Get CephNodeNodesFs * @return PVECephNodeNodesFs */ - public function getFs() { + public function getFs() + { return $this->fs ?: ($this->fs = new PVECephNodeNodesFs($this->client, $this->node)); } - /** * @ignore */ private $pool; - /** * Get CephNodeNodesPool * @return PVECephNodeNodesPool */ - public function getPool() { + public function getPool() + { return $this->pool ?: ($this->pool = new PVECephNodeNodesPool($this->client, $this->node)); } - /** * @ignore */ private $init; - /** * Get CephNodeNodesInit * @return PVECephNodeNodesInit */ - public function getInit() { + public function getInit() + { return $this->init ?: ($this->init = new PVECephNodeNodesInit($this->client, $this->node)); } - /** * @ignore */ private $stop; - /** * Get CephNodeNodesStop * @return PVECephNodeNodesStop */ - public function getStop() { + public function getStop() + { return $this->stop ?: ($this->stop = new PVECephNodeNodesStop($this->client, $this->node)); } - /** * @ignore */ private $start; - /** * Get CephNodeNodesStart * @return PVECephNodeNodesStart */ - public function getStart() { + public function getStart() + { return $this->start ?: ($this->start = new PVECephNodeNodesStart($this->client, $this->node)); } - /** * @ignore */ private $restart; - /** * Get CephNodeNodesRestart * @return PVECephNodeNodesRestart */ - public function getRestart() { + public function getRestart() + { return $this->restart ?: ($this->restart = new PVECephNodeNodesRestart($this->client, $this->node)); } - /** * @ignore */ private $status; - /** * Get CephNodeNodesStatus * @return PVECephNodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVECephNodeNodesStatus($this->client, $this->node)); } - /** * @ignore */ private $crush; - /** * Get CephNodeNodesCrush * @return PVECephNodeNodesCrush */ - public function getCrush() { + public function getCrush() + { return $this->crush ?: ($this->crush = new PVECephNodeNodesCrush($this->client, $this->node)); } - /** * @ignore */ private $log; - /** * Get CephNodeNodesLog * @return PVECephNodeNodesLog */ - public function getLog() { + public function getLog() + { return $this->log ?: ($this->log = new PVECephNodeNodesLog($this->client, $this->node)); } - /** * @ignore */ private $rules; - /** * Get CephNodeNodesRules * @return PVECephNodeNodesRules */ - public function getRules() { + public function getRules() + { return $this->rules ?: ($this->rules = new PVECephNodeNodesRules($this->client, $this->node)); } - /** * @ignore */ private $cmdSafety; - /** * Get CephNodeNodesCmdSafety * @return PVECephNodeNodesCmdSafety */ - public function getCmdSafety() { + public function getCmdSafety() + { return $this->cmdSafety ?: ($this->cmdSafety = new PVECephNodeNodesCmdSafety($this->client, $this->node)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/ceph"); } } - /** * Class PVECephNodeNodesCfg - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesCfg { + class PVECephNodeNodesCfg + { /** * @ignore */ private $node; - /** * @ignore */ @@ -14760,7 +16002,8 @@ class PVECephNodeNodesCfg { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -14769,61 +16012,61 @@ function __construct($client, $node) { * @ignore */ private $raw; - /** * Get CfgCephNodeNodesRaw * @return PVECfgCephNodeNodesRaw */ - public function getRaw() { + public function getRaw() + { return $this->raw ?: ($this->raw = new PVECfgCephNodeNodesRaw($this->client, $this->node)); } - /** * @ignore */ private $db; - /** * Get CfgCephNodeNodesDb * @return PVECfgCephNodeNodesDb */ - public function getDb() { + public function getDb() + { return $this->db ?: ($this->db = new PVECfgCephNodeNodesDb($this->client, $this->node)); } - /** * @ignore */ private $value; - /** * Get CfgCephNodeNodesValue * @return PVECfgCephNodeNodesValue */ - public function getValue() { + public function getValue() + { return $this->value ?: ($this->value = new PVECfgCephNodeNodesValue($this->client, $this->node)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/ceph/cfg"); } } - /** * Class PVECfgCephNodeNodesRaw - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECfgCephNodeNodesRaw { + class PVECfgCephNodeNodesRaw + { /** * @ignore */ private $node; - /** * @ignore */ @@ -14832,31 +16075,36 @@ class PVECfgCephNodeNodesRaw { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get the Ceph configuration file. * @return Result */ - public function raw() { + + public function raw() + { return $this->client->get("/nodes/{$this->node}/ceph/cfg/raw"); } } /** * Class PVECfgCephNodeNodesDb - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECfgCephNodeNodesDb { + class PVECfgCephNodeNodesDb + { /** * @ignore */ private $node; - /** * @ignore */ @@ -14865,31 +16113,36 @@ class PVECfgCephNodeNodesDb { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get the Ceph configuration database. * @return Result */ - public function db() { + + public function db() + { return $this->client->get("/nodes/{$this->node}/ceph/cfg/db"); } } /** * Class PVECfgCephNodeNodesValue - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECfgCephNodeNodesValue { + class PVECfgCephNodeNodesValue + { /** * @ignore */ private $node; - /** * @ignore */ @@ -14898,17 +16151,22 @@ class PVECfgCephNodeNodesValue { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get configured values from either the config file or config DB. * @param string $config_keys List of <section>:<config key> items. * @return Result */ - public function value($config_keys) { + + public function value($config_keys) + { $params = ['config-keys' => $config_keys]; return $this->client->get("/nodes/{$this->node}/ceph/cfg/value", $params); } @@ -14916,15 +16174,15 @@ public function value($config_keys) { /** * Class PVECephNodeNodesOsd - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesOsd { + class PVECephNodeNodesOsd + { /** * @ignore */ private $node; - /** * @ignore */ @@ -14933,17 +16191,20 @@ class PVECephNodeNodesOsd { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemOsdCephNodeNodesOsdid * @param osdid * @return PVEItemOsdCephNodeNodesOsdid */ - public function get($osdid) { + public function get($osdid) + { return new PVEItemOsdCephNodeNodesOsdid($this->client, $this->node, $osdid); } @@ -14951,10 +16212,11 @@ public function get($osdid) { * Get Ceph osd list/tree. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/ceph/osd"); } - /** * Create OSD * @param string $dev Block device name. @@ -14967,24 +16229,28 @@ public function index() { * @param float $wal_dev_size Size in GiB for block.wal. * @return Result */ - public function createosd($dev, $crush_device_class = null, $db_dev = null, $db_dev_size = null, $encrypted = null, $osds_per_device = null, $wal_dev = null, $wal_dev_size = null) { - $params = ['dev' => $dev, + + public function createosd($dev, $crush_device_class = null, $db_dev = null, $db_dev_size = null, $encrypted = null, $osds_per_device = null, $wal_dev = null, $wal_dev_size = null) + { + $params = [ + 'dev' => $dev, 'crush-device-class' => $crush_device_class, 'db_dev' => $db_dev, 'db_dev_size' => $db_dev_size, 'encrypted' => $encrypted, 'osds-per-device' => $osds_per_device, 'wal_dev' => $wal_dev, - 'wal_dev_size' => $wal_dev_size]; + 'wal_dev_size' => $wal_dev_size + ]; return $this->client->create("/nodes/{$this->node}/ceph/osd", $params); } } - /** * Class PVEItemOsdCephNodeNodesOsdid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemOsdCephNodeNodesOsdid { + class PVEItemOsdCephNodeNodesOsdid + { /** * @ignore @@ -14995,7 +16261,6 @@ class PVEItemOsdCephNodeNodesOsdid { * @ignore */ private $osdid; - /** * @ignore */ @@ -15004,7 +16269,8 @@ class PVEItemOsdCephNodeNodesOsdid { /** * @ignore */ - function __construct($client, $node, $osdid) { + function __construct($client, $node, $osdid) + { $this->client = $client; $this->node = $node; $this->osdid = $osdid; @@ -15014,91 +16280,91 @@ function __construct($client, $node, $osdid) { * @ignore */ private $metadata; - /** * Get OsdidOsdCephNodeNodesMetadata * @return PVEOsdidOsdCephNodeNodesMetadata */ - public function getMetadata() { + public function getMetadata() + { return $this->metadata ?: ($this->metadata = new PVEOsdidOsdCephNodeNodesMetadata($this->client, $this->node, $this->osdid)); } - /** * @ignore */ private $lvInfo; - /** * Get OsdidOsdCephNodeNodesLvInfo * @return PVEOsdidOsdCephNodeNodesLvInfo */ - public function getLvInfo() { + public function getLvInfo() + { return $this->lvInfo ?: ($this->lvInfo = new PVEOsdidOsdCephNodeNodesLvInfo($this->client, $this->node, $this->osdid)); } - /** * @ignore */ private $in; - /** * Get OsdidOsdCephNodeNodesIn * @return PVEOsdidOsdCephNodeNodesIn */ - public function getIn() { + public function getIn() + { return $this->in ?: ($this->in = new PVEOsdidOsdCephNodeNodesIn($this->client, $this->node, $this->osdid)); } - /** * @ignore */ private $out; - /** * Get OsdidOsdCephNodeNodesOut * @return PVEOsdidOsdCephNodeNodesOut */ - public function getOut() { + public function getOut() + { return $this->out ?: ($this->out = new PVEOsdidOsdCephNodeNodesOut($this->client, $this->node, $this->osdid)); } - /** * @ignore */ private $scrub; - /** * Get OsdidOsdCephNodeNodesScrub * @return PVEOsdidOsdCephNodeNodesScrub */ - public function getScrub() { + public function getScrub() + { return $this->scrub ?: ($this->scrub = new PVEOsdidOsdCephNodeNodesScrub($this->client, $this->node, $this->osdid)); } + /** * Destroy OSD * @param bool $cleanup If set, we remove partition table entries. * @return Result */ - public function destroyosd($cleanup = null) { + + public function destroyosd($cleanup = null) + { $params = ['cleanup' => $cleanup]; return $this->client->delete("/nodes/{$this->node}/ceph/osd/{$this->osdid}", $params); } - /** * OSD index. * @return Result */ - public function osdindex() { + + public function osdindex() + { return $this->client->get("/nodes/{$this->node}/ceph/osd/{$this->osdid}"); } } - /** * Class PVEOsdidOsdCephNodeNodesMetadata - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEOsdidOsdCephNodeNodesMetadata { + class PVEOsdidOsdCephNodeNodesMetadata + { /** * @ignore @@ -15109,7 +16375,6 @@ class PVEOsdidOsdCephNodeNodesMetadata { * @ignore */ private $osdid; - /** * @ignore */ @@ -15118,26 +16383,32 @@ class PVEOsdidOsdCephNodeNodesMetadata { /** * @ignore */ - function __construct($client, $node, $osdid) { + function __construct($client, $node, $osdid) + { $this->client = $client; $this->node = $node; $this->osdid = $osdid; } + + /** * Get OSD details * @return Result */ - public function osddetails() { + + public function osddetails() + { return $this->client->get("/nodes/{$this->node}/ceph/osd/{$this->osdid}/metadata"); } } /** * Class PVEOsdidOsdCephNodeNodesLvInfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEOsdidOsdCephNodeNodesLvInfo { + class PVEOsdidOsdCephNodeNodesLvInfo + { /** * @ignore @@ -15148,7 +16419,6 @@ class PVEOsdidOsdCephNodeNodesLvInfo { * @ignore */ private $osdid; - /** * @ignore */ @@ -15157,19 +16427,24 @@ class PVEOsdidOsdCephNodeNodesLvInfo { /** * @ignore */ - function __construct($client, $node, $osdid) { + function __construct($client, $node, $osdid) + { $this->client = $client; $this->node = $node; $this->osdid = $osdid; } + + /** * Get OSD volume details * @param string $type OSD device type * Enum: block,db,wal * @return Result */ - public function osdvolume($type = null) { + + public function osdvolume($type = null) + { $params = ['type' => $type]; return $this->client->get("/nodes/{$this->node}/ceph/osd/{$this->osdid}/lv-info", $params); } @@ -15177,9 +16452,10 @@ public function osdvolume($type = null) { /** * Class PVEOsdidOsdCephNodeNodesIn - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEOsdidOsdCephNodeNodesIn { + class PVEOsdidOsdCephNodeNodesIn + { /** * @ignore @@ -15190,7 +16466,6 @@ class PVEOsdidOsdCephNodeNodesIn { * @ignore */ private $osdid; - /** * @ignore */ @@ -15199,26 +16474,32 @@ class PVEOsdidOsdCephNodeNodesIn { /** * @ignore */ - function __construct($client, $node, $osdid) { + function __construct($client, $node, $osdid) + { $this->client = $client; $this->node = $node; $this->osdid = $osdid; } + + /** * ceph osd in * @return Result */ - public function in() { + + public function in() + { return $this->client->create("/nodes/{$this->node}/ceph/osd/{$this->osdid}/in"); } } /** * Class PVEOsdidOsdCephNodeNodesOut - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEOsdidOsdCephNodeNodesOut { + class PVEOsdidOsdCephNodeNodesOut + { /** * @ignore @@ -15229,7 +16510,6 @@ class PVEOsdidOsdCephNodeNodesOut { * @ignore */ private $osdid; - /** * @ignore */ @@ -15238,26 +16518,32 @@ class PVEOsdidOsdCephNodeNodesOut { /** * @ignore */ - function __construct($client, $node, $osdid) { + function __construct($client, $node, $osdid) + { $this->client = $client; $this->node = $node; $this->osdid = $osdid; } + + /** * ceph osd out * @return Result */ - public function out() { + + public function out() + { return $this->client->create("/nodes/{$this->node}/ceph/osd/{$this->osdid}/out"); } } /** * Class PVEOsdidOsdCephNodeNodesScrub - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEOsdidOsdCephNodeNodesScrub { + class PVEOsdidOsdCephNodeNodesScrub + { /** * @ignore @@ -15268,7 +16554,6 @@ class PVEOsdidOsdCephNodeNodesScrub { * @ignore */ private $osdid; - /** * @ignore */ @@ -15277,18 +16562,23 @@ class PVEOsdidOsdCephNodeNodesScrub { /** * @ignore */ - function __construct($client, $node, $osdid) { + function __construct($client, $node, $osdid) + { $this->client = $client; $this->node = $node; $this->osdid = $osdid; } + + /** * Instruct the OSD to scrub. * @param bool $deep If set, instructs a deep scrub instead of a normal one. * @return Result */ - public function scrub($deep = null) { + + public function scrub($deep = null) + { $params = ['deep' => $deep]; return $this->client->create("/nodes/{$this->node}/ceph/osd/{$this->osdid}/scrub", $params); } @@ -15296,15 +16586,15 @@ public function scrub($deep = null) { /** * Class PVECephNodeNodesMds - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesMds { + class PVECephNodeNodesMds + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15313,17 +16603,20 @@ class PVECephNodeNodesMds { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemMdsCephNodeNodesName * @param name * @return PVEItemMdsCephNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemMdsCephNodeNodesName($this->client, $this->node, $name); } @@ -15331,16 +16624,18 @@ public function get($name) { * MDS directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/ceph/mds"); } } - /** * Class PVEItemMdsCephNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemMdsCephNodeNodesName { + class PVEItemMdsCephNodeNodesName + { /** * @ignore @@ -15351,7 +16646,6 @@ class PVEItemMdsCephNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -15360,26 +16654,32 @@ class PVEItemMdsCephNodeNodesName { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; } + + /** * Destroy Ceph Metadata Server * @return Result */ - public function destroymds() { + + public function destroymds() + { return $this->client->delete("/nodes/{$this->node}/ceph/mds/{$this->name}"); } - /** * Create Ceph Metadata Server (MDS) * @param bool $hotstandby Determines whether a ceph-mds daemon should poll and replay the log of an active MDS. Faster switch on MDS failure, but needs more idle resources. * @return Result */ - public function createmds($hotstandby = null) { + + public function createmds($hotstandby = null) + { $params = ['hotstandby' => $hotstandby]; return $this->client->create("/nodes/{$this->node}/ceph/mds/{$this->name}", $params); } @@ -15387,15 +16687,15 @@ public function createmds($hotstandby = null) { /** * Class PVECephNodeNodesMgr - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesMgr { + class PVECephNodeNodesMgr + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15404,17 +16704,20 @@ class PVECephNodeNodesMgr { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemMgrCephNodeNodesId * @param id * @return PVEItemMgrCephNodeNodesId */ - public function get($id) { + public function get($id) + { return new PVEItemMgrCephNodeNodesId($this->client, $this->node, $id); } @@ -15422,16 +16725,18 @@ public function get($id) { * MGR directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/ceph/mgr"); } } - /** * Class PVEItemMgrCephNodeNodesId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemMgrCephNodeNodesId { + class PVEItemMgrCephNodeNodesId + { /** * @ignore @@ -15442,7 +16747,6 @@ class PVEItemMgrCephNodeNodesId { * @ignore */ private $id; - /** * @ignore */ @@ -15451,40 +16755,46 @@ class PVEItemMgrCephNodeNodesId { /** * @ignore */ - function __construct($client, $node, $id) { + function __construct($client, $node, $id) + { $this->client = $client; $this->node = $node; $this->id = $id; } + + /** * Destroy Ceph Manager. * @return Result */ - public function destroymgr() { + + public function destroymgr() + { return $this->client->delete("/nodes/{$this->node}/ceph/mgr/{$this->id}"); } - /** * Create Ceph Manager * @return Result */ - public function createmgr() { + + public function createmgr() + { return $this->client->create("/nodes/{$this->node}/ceph/mgr/{$this->id}"); } } /** * Class PVECephNodeNodesMon - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesMon { + class PVECephNodeNodesMon + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15493,17 +16803,20 @@ class PVECephNodeNodesMon { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemMonCephNodeNodesMonid * @param monid * @return PVEItemMonCephNodeNodesMonid */ - public function get($monid) { + public function get($monid) + { return new PVEItemMonCephNodeNodesMonid($this->client, $this->node, $monid); } @@ -15511,16 +16824,18 @@ public function get($monid) { * Get Ceph monitor list. * @return Result */ - public function listmon() { + + public function listmon() + { return $this->client->get("/nodes/{$this->node}/ceph/mon"); } } - /** * Class PVEItemMonCephNodeNodesMonid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemMonCephNodeNodesMonid { + class PVEItemMonCephNodeNodesMonid + { /** * @ignore @@ -15531,7 +16846,6 @@ class PVEItemMonCephNodeNodesMonid { * @ignore */ private $monid; - /** * @ignore */ @@ -15540,26 +16854,32 @@ class PVEItemMonCephNodeNodesMonid { /** * @ignore */ - function __construct($client, $node, $monid) { + function __construct($client, $node, $monid) + { $this->client = $client; $this->node = $node; $this->monid = $monid; } + + /** * Destroy Ceph Monitor and Manager. * @return Result */ - public function destroymon() { + + public function destroymon() + { return $this->client->delete("/nodes/{$this->node}/ceph/mon/{$this->monid}"); } - /** * Create Ceph Monitor and Manager * @param string $mon_address Overwrites autodetected monitor IP address(es). Must be in the public network(s) of Ceph. * @return Result */ - public function createmon($mon_address = null) { + + public function createmon($mon_address = null) + { $params = ['mon-address' => $mon_address]; return $this->client->create("/nodes/{$this->node}/ceph/mon/{$this->monid}", $params); } @@ -15567,15 +16887,15 @@ public function createmon($mon_address = null) { /** * Class PVECephNodeNodesFs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesFs { + class PVECephNodeNodesFs + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15584,17 +16904,20 @@ class PVECephNodeNodesFs { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemFsCephNodeNodesName * @param name * @return PVEItemFsCephNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemFsCephNodeNodesName($this->client, $this->node, $name); } @@ -15602,16 +16925,18 @@ public function get($name) { * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/ceph/fs"); } } - /** * Class PVEItemFsCephNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemFsCephNodeNodesName { + class PVEItemFsCephNodeNodesName + { /** * @ignore @@ -15622,7 +16947,6 @@ class PVEItemFsCephNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -15631,36 +16955,43 @@ class PVEItemFsCephNodeNodesName { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; } + + /** * Create a Ceph filesystem * @param bool $add_storage Configure the created CephFS as storage for this cluster. * @param int $pg_num Number of placement groups for the backing data pool. The metadata pool will use a quarter of this. * @return Result */ - public function createfs($add_storage = null, $pg_num = null) { - $params = ['add-storage' => $add_storage, - 'pg_num' => $pg_num]; + + public function createfs($add_storage = null, $pg_num = null) + { + $params = [ + 'add-storage' => $add_storage, + 'pg_num' => $pg_num + ]; return $this->client->create("/nodes/{$this->node}/ceph/fs/{$this->name}", $params); } } /** * Class PVECephNodeNodesPool - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesPool { + class PVECephNodeNodesPool + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15669,17 +17000,20 @@ class PVECephNodeNodesPool { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemPoolCephNodeNodesName * @param name * @return PVEItemPoolCephNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemPoolCephNodeNodesName($this->client, $this->node, $name); } @@ -15687,10 +17021,11 @@ public function get($name) { * List all pools and their settings (which are settable by the POST/PUT endpoints). * @return Result */ - public function lspools() { + + public function lspools() + { return $this->client->get("/nodes/{$this->node}/ceph/pool"); } - /** * Create Ceph pool * @param string $name The name of the pool. It must be unique. @@ -15709,8 +17044,11 @@ public function lspools() { * @param float $target_size_ratio The estimated target ratio of the pool for the PG autoscaler. * @return Result */ - public function createpool($name, $add_storages = null, $application = null, $crush_rule = null, $erasure_coding = null, $min_size = null, $pg_autoscale_mode = null, $pg_num = null, $pg_num_min = null, $size = null, $target_size = null, $target_size_ratio = null) { - $params = ['name' => $name, + + public function createpool($name, $add_storages = null, $application = null, $crush_rule = null, $erasure_coding = null, $min_size = null, $pg_autoscale_mode = null, $pg_num = null, $pg_num_min = null, $size = null, $target_size = null, $target_size_ratio = null) + { + $params = [ + 'name' => $name, 'add_storages' => $add_storages, 'application' => $application, 'crush_rule' => $crush_rule, @@ -15721,16 +17059,17 @@ public function createpool($name, $add_storages = null, $application = null, $cr 'pg_num_min' => $pg_num_min, 'size' => $size, 'target_size' => $target_size, - 'target_size_ratio' => $target_size_ratio]; + 'target_size_ratio' => $target_size_ratio + ]; return $this->client->create("/nodes/{$this->node}/ceph/pool", $params); } } - /** * Class PVEItemPoolCephNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemPoolCephNodeNodesName { + class PVEItemPoolCephNodeNodesName + { /** * @ignore @@ -15741,7 +17080,6 @@ class PVEItemPoolCephNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -15750,7 +17088,8 @@ class PVEItemPoolCephNodeNodesName { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; @@ -15760,15 +17099,16 @@ function __construct($client, $node, $name) { * @ignore */ private $status; - /** * Get NamePoolCephNodeNodesStatus * @return PVENamePoolCephNodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVENamePoolCephNodeNodesStatus($this->client, $this->node, $this->name)); } + /** * Destroy pool * @param bool $force If true, destroys pool even if in use @@ -15776,21 +17116,25 @@ public function getStatus() { * @param bool $remove_storages Remove all pveceph-managed storages configured for this pool * @return Result */ - public function destroypool($force = null, $remove_ecprofile = null, $remove_storages = null) { - $params = ['force' => $force, + + public function destroypool($force = null, $remove_ecprofile = null, $remove_storages = null) + { + $params = [ + 'force' => $force, 'remove_ecprofile' => $remove_ecprofile, - 'remove_storages' => $remove_storages]; + 'remove_storages' => $remove_storages + ]; return $this->client->delete("/nodes/{$this->node}/ceph/pool/{$this->name}", $params); } - /** * Pool index. * @return Result */ - public function poolindex() { + + public function poolindex() + { return $this->client->get("/nodes/{$this->node}/ceph/pool/{$this->name}"); } - /** * Change POOL settings * @param string $application The application of the pool. @@ -15806,8 +17150,11 @@ public function poolindex() { * @param float $target_size_ratio The estimated target ratio of the pool for the PG autoscaler. * @return Result */ - public function setpool($application = null, $crush_rule = null, $min_size = null, $pg_autoscale_mode = null, $pg_num = null, $pg_num_min = null, $size = null, $target_size = null, $target_size_ratio = null) { - $params = ['application' => $application, + + public function setpool($application = null, $crush_rule = null, $min_size = null, $pg_autoscale_mode = null, $pg_num = null, $pg_num_min = null, $size = null, $target_size = null, $target_size_ratio = null) + { + $params = [ + 'application' => $application, 'crush_rule' => $crush_rule, 'min_size' => $min_size, 'pg_autoscale_mode' => $pg_autoscale_mode, @@ -15815,16 +17162,17 @@ public function setpool($application = null, $crush_rule = null, $min_size = nul 'pg_num_min' => $pg_num_min, 'size' => $size, 'target_size' => $target_size, - 'target_size_ratio' => $target_size_ratio]; + 'target_size_ratio' => $target_size_ratio + ]; return $this->client->set("/nodes/{$this->node}/ceph/pool/{$this->name}", $params); } } - /** * Class PVENamePoolCephNodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENamePoolCephNodeNodesStatus { + class PVENamePoolCephNodeNodesStatus + { /** * @ignore @@ -15835,7 +17183,6 @@ class PVENamePoolCephNodeNodesStatus { * @ignore */ private $name; - /** * @ignore */ @@ -15844,18 +17191,23 @@ class PVENamePoolCephNodeNodesStatus { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; } + + /** * Show the current pool status. * @param bool $verbose If enabled, will display additional data(eg. statistics). * @return Result */ - public function getpool($verbose = null) { + + public function getpool($verbose = null) + { $params = ['verbose' => $verbose]; return $this->client->get("/nodes/{$this->node}/ceph/pool/{$this->name}/status", $params); } @@ -15863,15 +17215,15 @@ public function getpool($verbose = null) { /** * Class PVECephNodeNodesInit - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesInit { + class PVECephNodeNodesInit + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15880,11 +17232,14 @@ class PVECephNodeNodesInit { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Create initial ceph default configuration and setup symlinks. * @param string $cluster_network Declare a separate cluster network, OSDs will routeheartbeat, object replication and recovery traffic over it @@ -15895,28 +17250,32 @@ function __construct($client, $node) { * @param int $size Targeted number of replicas per object * @return Result */ - public function init($cluster_network = null, $disable_cephx = null, $min_size = null, $network = null, $pg_bits = null, $size = null) { - $params = ['cluster-network' => $cluster_network, + + public function init($cluster_network = null, $disable_cephx = null, $min_size = null, $network = null, $pg_bits = null, $size = null) + { + $params = [ + 'cluster-network' => $cluster_network, 'disable_cephx' => $disable_cephx, 'min_size' => $min_size, 'network' => $network, 'pg_bits' => $pg_bits, - 'size' => $size]; + 'size' => $size + ]; return $this->client->create("/nodes/{$this->node}/ceph/init", $params); } } /** * Class PVECephNodeNodesStop - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesStop { + class PVECephNodeNodesStop + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15925,17 +17284,22 @@ class PVECephNodeNodesStop { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Stop ceph services. * @param string $service Ceph service name. * @return Result */ - public function stop($service = null) { + + public function stop($service = null) + { $params = ['service' => $service]; return $this->client->create("/nodes/{$this->node}/ceph/stop", $params); } @@ -15943,15 +17307,15 @@ public function stop($service = null) { /** * Class PVECephNodeNodesStart - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesStart { + class PVECephNodeNodesStart + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15960,17 +17324,22 @@ class PVECephNodeNodesStart { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Start ceph services. * @param string $service Ceph service name. * @return Result */ - public function start($service = null) { + + public function start($service = null) + { $params = ['service' => $service]; return $this->client->create("/nodes/{$this->node}/ceph/start", $params); } @@ -15978,15 +17347,15 @@ public function start($service = null) { /** * Class PVECephNodeNodesRestart - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesRestart { + class PVECephNodeNodesRestart + { /** * @ignore */ private $node; - /** * @ignore */ @@ -15995,17 +17364,22 @@ class PVECephNodeNodesRestart { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Restart ceph services. * @param string $service Ceph service name. * @return Result */ - public function restart($service = null) { + + public function restart($service = null) + { $params = ['service' => $service]; return $this->client->create("/nodes/{$this->node}/ceph/restart", $params); } @@ -16013,15 +17387,15 @@ public function restart($service = null) { /** * Class PVECephNodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesStatus { + class PVECephNodeNodesStatus + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16030,31 +17404,36 @@ class PVECephNodeNodesStatus { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get ceph status. * @return Result */ - public function status() { + + public function status() + { return $this->client->get("/nodes/{$this->node}/ceph/status"); } } /** * Class PVECephNodeNodesCrush - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesCrush { + class PVECephNodeNodesCrush + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16063,31 +17442,36 @@ class PVECephNodeNodesCrush { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get OSD crush map * @return Result */ - public function crush() { + + public function crush() + { return $this->client->get("/nodes/{$this->node}/ceph/crush"); } } /** * Class PVECephNodeNodesLog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesLog { + class PVECephNodeNodesLog + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16096,35 +17480,42 @@ class PVECephNodeNodesLog { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read ceph log - * @param int $limit - * @param int $start + * @param int $limit + * @param int $start * @return Result */ - public function log($limit = null, $start = null) { - $params = ['limit' => $limit, - 'start' => $start]; + + public function log($limit = null, $start = null) + { + $params = [ + 'limit' => $limit, + 'start' => $start + ]; return $this->client->get("/nodes/{$this->node}/ceph/log", $params); } } /** * Class PVECephNodeNodesRules - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesRules { + class PVECephNodeNodesRules + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16133,31 +17524,36 @@ class PVECephNodeNodesRules { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * List ceph rules. * @return Result */ - public function rules() { + + public function rules() + { return $this->client->get("/nodes/{$this->node}/ceph/rules"); } } /** * Class PVECephNodeNodesCmdSafety - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECephNodeNodesCmdSafety { + class PVECephNodeNodesCmdSafety + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16166,11 +17562,14 @@ class PVECephNodeNodesCmdSafety { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Heuristical check if it is safe to perform an action. * @param string $action Action to check @@ -16180,25 +17579,29 @@ function __construct($client, $node) { * Enum: osd,mon,mds * @return Result */ - public function cmdSafety($action, $id, $service) { - $params = ['action' => $action, + + public function cmdSafety($action, $id, $service) + { + $params = [ + 'action' => $action, 'id' => $id, - 'service' => $service]; + 'service' => $service + ]; return $this->client->get("/nodes/{$this->node}/ceph/cmd-safety", $params); } } /** * Class PVENodeNodesVzdump - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesVzdump { + class PVENodeNodesVzdump + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16207,7 +17610,8 @@ class PVENodeNodesVzdump { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -16216,28 +17620,28 @@ function __construct($client, $node) { * @ignore */ private $defaults; - /** * Get VzdumpNodeNodesDefaults * @return PVEVzdumpNodeNodesDefaults */ - public function getDefaults() { + public function getDefaults() + { return $this->defaults ?: ($this->defaults = new PVEVzdumpNodeNodesDefaults($this->client, $this->node)); } - /** * @ignore */ private $extractconfig; - /** * Get VzdumpNodeNodesExtractconfig * @return PVEVzdumpNodeNodesExtractconfig */ - public function getExtractconfig() { + public function getExtractconfig() + { return $this->extractconfig ?: ($this->extractconfig = new PVEVzdumpNodeNodesExtractconfig($this->client, $this->node)); } + /** * Create backup. * @param bool $all Backup all known guest systems on this host. @@ -16246,7 +17650,7 @@ public function getExtractconfig() { * Enum: 0,1,gzip,lzo,zstd * @param string $dumpdir Store resulting files to specified directory. * @param string $exclude Exclude specified guest systems (assumes --all) - * @param string $exclude_path Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. + * @param array $exclude_path Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. * @param int $ionice Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value. * @param int $lockwait Maximal time to wait for the global lock (minutes). * @param string $mailnotification Deprecated: use 'notification-policy' instead. @@ -16277,8 +17681,11 @@ public function getExtractconfig() { * @param int $zstd Zstd threads. N=0 uses half of the available cores, N>0 uses N as thread count. * @return Result */ - public function vzdump($all = null, $bwlimit = null, $compress = null, $dumpdir = null, $exclude = null, $exclude_path = null, $ionice = null, $lockwait = null, $mailnotification = null, $mailto = null, $maxfiles = null, $mode = null, $notes_template = null, $notification_policy = null, $notification_target = null, $performance = null, $pigz = null, $pool = null, $protected = null, $prune_backups = null, $quiet = null, $remove = null, $script = null, $stdexcludes = null, $stdout = null, $stop = null, $stopwait = null, $storage = null, $tmpdir = null, $vmid = null, $zstd = null) { - $params = ['all' => $all, + + public function vzdump($all = null, $bwlimit = null, $compress = null, $dumpdir = null, $exclude = null, $exclude_path = null, $ionice = null, $lockwait = null, $mailnotification = null, $mailto = null, $maxfiles = null, $mode = null, $notes_template = null, $notification_policy = null, $notification_target = null, $performance = null, $pigz = null, $pool = null, $protected = null, $prune_backups = null, $quiet = null, $remove = null, $script = null, $stdexcludes = null, $stdout = null, $stop = null, $stopwait = null, $storage = null, $tmpdir = null, $vmid = null, $zstd = null) + { + $params = [ + 'all' => $all, 'bwlimit' => $bwlimit, 'compress' => $compress, 'dumpdir' => $dumpdir, @@ -16308,22 +17715,22 @@ public function vzdump($all = null, $bwlimit = null, $compress = null, $dumpdir 'storage' => $storage, 'tmpdir' => $tmpdir, 'vmid' => $vmid, - 'zstd' => $zstd]; + 'zstd' => $zstd + ]; return $this->client->create("/nodes/{$this->node}/vzdump", $params); } } - /** * Class PVEVzdumpNodeNodesDefaults - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVzdumpNodeNodesDefaults { + class PVEVzdumpNodeNodesDefaults + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16332,17 +17739,22 @@ class PVEVzdumpNodeNodesDefaults { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get the currently configured vzdump defaults. * @param string $storage The storage identifier. * @return Result */ - public function defaults($storage = null) { + + public function defaults($storage = null) + { $params = ['storage' => $storage]; return $this->client->get("/nodes/{$this->node}/vzdump/defaults", $params); } @@ -16350,15 +17762,15 @@ public function defaults($storage = null) { /** * Class PVEVzdumpNodeNodesExtractconfig - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVzdumpNodeNodesExtractconfig { + class PVEVzdumpNodeNodesExtractconfig + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16367,17 +17779,22 @@ class PVEVzdumpNodeNodesExtractconfig { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Extract configuration from vzdump backup archive. * @param string $volume Volume identifier * @return Result */ - public function extractconfig($volume) { + + public function extractconfig($volume) + { $params = ['volume' => $volume]; return $this->client->get("/nodes/{$this->node}/vzdump/extractconfig", $params); } @@ -16385,15 +17802,15 @@ public function extractconfig($volume) { /** * Class PVENodeNodesServices - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesServices { + class PVENodeNodesServices + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16402,17 +17819,20 @@ class PVENodeNodesServices { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemServicesNodeNodesService * @param service * @return PVEItemServicesNodeNodesService */ - public function get($service) { + public function get($service) + { return new PVEItemServicesNodeNodesService($this->client, $this->node, $service); } @@ -16420,16 +17840,18 @@ public function get($service) { * Service list. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/services"); } } - /** * Class PVEItemServicesNodeNodesService - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemServicesNodeNodesService { + class PVEItemServicesNodeNodesService + { /** * @ignore @@ -16440,7 +17862,6 @@ class PVEItemServicesNodeNodesService { * @ignore */ private $service; - /** * @ignore */ @@ -16449,7 +17870,8 @@ class PVEItemServicesNodeNodesService { /** * @ignore */ - function __construct($client, $node, $service) { + function __construct($client, $node, $service) + { $this->client = $client; $this->node = $node; $this->service = $service; @@ -16459,81 +17881,80 @@ function __construct($client, $node, $service) { * @ignore */ private $state; - /** * Get ServiceServicesNodeNodesState * @return PVEServiceServicesNodeNodesState */ - public function getState() { + public function getState() + { return $this->state ?: ($this->state = new PVEServiceServicesNodeNodesState($this->client, $this->node, $this->service)); } - /** * @ignore */ private $start; - /** * Get ServiceServicesNodeNodesStart * @return PVEServiceServicesNodeNodesStart */ - public function getStart() { + public function getStart() + { return $this->start ?: ($this->start = new PVEServiceServicesNodeNodesStart($this->client, $this->node, $this->service)); } - /** * @ignore */ private $stop; - /** * Get ServiceServicesNodeNodesStop * @return PVEServiceServicesNodeNodesStop */ - public function getStop() { + public function getStop() + { return $this->stop ?: ($this->stop = new PVEServiceServicesNodeNodesStop($this->client, $this->node, $this->service)); } - /** * @ignore */ private $restart; - /** * Get ServiceServicesNodeNodesRestart * @return PVEServiceServicesNodeNodesRestart */ - public function getRestart() { + public function getRestart() + { return $this->restart ?: ($this->restart = new PVEServiceServicesNodeNodesRestart($this->client, $this->node, $this->service)); } - /** * @ignore */ private $reload; - /** * Get ServiceServicesNodeNodesReload * @return PVEServiceServicesNodeNodesReload */ - public function getReload() { + public function getReload() + { return $this->reload ?: ($this->reload = new PVEServiceServicesNodeNodesReload($this->client, $this->node, $this->service)); } + /** * Directory index * @return Result */ - public function srvcmdidx() { + + public function srvcmdidx() + { return $this->client->get("/nodes/{$this->node}/services/{$this->service}"); } } - /** * Class PVEServiceServicesNodeNodesState - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEServiceServicesNodeNodesState { + class PVEServiceServicesNodeNodesState + { /** * @ignore @@ -16544,7 +17965,6 @@ class PVEServiceServicesNodeNodesState { * @ignore */ private $service; - /** * @ignore */ @@ -16553,26 +17973,32 @@ class PVEServiceServicesNodeNodesState { /** * @ignore */ - function __construct($client, $node, $service) { + function __construct($client, $node, $service) + { $this->client = $client; $this->node = $node; $this->service = $service; } + + /** * Read service properties * @return Result */ - public function serviceState() { + + public function serviceState() + { return $this->client->get("/nodes/{$this->node}/services/{$this->service}/state"); } } /** * Class PVEServiceServicesNodeNodesStart - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEServiceServicesNodeNodesStart { + class PVEServiceServicesNodeNodesStart + { /** * @ignore @@ -16583,7 +18009,6 @@ class PVEServiceServicesNodeNodesStart { * @ignore */ private $service; - /** * @ignore */ @@ -16592,26 +18017,32 @@ class PVEServiceServicesNodeNodesStart { /** * @ignore */ - function __construct($client, $node, $service) { + function __construct($client, $node, $service) + { $this->client = $client; $this->node = $node; $this->service = $service; } + + /** * Start service. * @return Result */ - public function serviceStart() { + + public function serviceStart() + { return $this->client->create("/nodes/{$this->node}/services/{$this->service}/start"); } } /** * Class PVEServiceServicesNodeNodesStop - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEServiceServicesNodeNodesStop { + class PVEServiceServicesNodeNodesStop + { /** * @ignore @@ -16622,7 +18053,6 @@ class PVEServiceServicesNodeNodesStop { * @ignore */ private $service; - /** * @ignore */ @@ -16631,26 +18061,32 @@ class PVEServiceServicesNodeNodesStop { /** * @ignore */ - function __construct($client, $node, $service) { + function __construct($client, $node, $service) + { $this->client = $client; $this->node = $node; $this->service = $service; } + + /** * Stop service. * @return Result */ - public function serviceStop() { + + public function serviceStop() + { return $this->client->create("/nodes/{$this->node}/services/{$this->service}/stop"); } } /** * Class PVEServiceServicesNodeNodesRestart - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEServiceServicesNodeNodesRestart { + class PVEServiceServicesNodeNodesRestart + { /** * @ignore @@ -16661,7 +18097,6 @@ class PVEServiceServicesNodeNodesRestart { * @ignore */ private $service; - /** * @ignore */ @@ -16670,26 +18105,32 @@ class PVEServiceServicesNodeNodesRestart { /** * @ignore */ - function __construct($client, $node, $service) { + function __construct($client, $node, $service) + { $this->client = $client; $this->node = $node; $this->service = $service; } + + /** * Hard restart service. Use reload if you want to reduce interruptions. * @return Result */ - public function serviceRestart() { + + public function serviceRestart() + { return $this->client->create("/nodes/{$this->node}/services/{$this->service}/restart"); } } /** * Class PVEServiceServicesNodeNodesReload - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEServiceServicesNodeNodesReload { + class PVEServiceServicesNodeNodesReload + { /** * @ignore @@ -16700,7 +18141,6 @@ class PVEServiceServicesNodeNodesReload { * @ignore */ private $service; - /** * @ignore */ @@ -16709,32 +18149,37 @@ class PVEServiceServicesNodeNodesReload { /** * @ignore */ - function __construct($client, $node, $service) { + function __construct($client, $node, $service) + { $this->client = $client; $this->node = $node; $this->service = $service; } + + /** * Reload service. Falls back to restart if service cannot be reloaded. * @return Result */ - public function serviceReload() { + + public function serviceReload() + { return $this->client->create("/nodes/{$this->node}/services/{$this->service}/reload"); } } /** * Class PVENodeNodesSubscription - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesSubscription { + class PVENodeNodesSubscription + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16743,43 +18188,51 @@ class PVENodeNodesSubscription { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Delete subscription key of this node. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/nodes/{$this->node}/subscription"); } - /** * Read subscription info. * @return Result */ - public function get() { + + public function get() + { return $this->client->get("/nodes/{$this->node}/subscription"); } - /** * Update subscription info. * @param bool $force Always connect to server, even if local cache is still valid. * @return Result */ - public function update($force = null) { + + public function update($force = null) + { $params = ['force' => $force]; return $this->client->create("/nodes/{$this->node}/subscription", $params); } - /** * Set subscription key. * @param string $key Proxmox VE subscription key * @return Result */ - public function set($key) { + + public function set($key) + { $params = ['key' => $key]; return $this->client->set("/nodes/{$this->node}/subscription", $params); } @@ -16787,15 +18240,15 @@ public function set($key) { /** * Class PVENodeNodesNetwork - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesNetwork { + class PVENodeNodesNetwork + { /** * @ignore */ private $node; - /** * @ignore */ @@ -16804,17 +18257,20 @@ class PVENodeNodesNetwork { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemNetworkNodeNodesIface * @param iface * @return PVEItemNetworkNodeNodesIface */ - public function get($iface) { + public function get($iface) + { return new PVEItemNetworkNodeNodesIface($this->client, $this->node, $iface); } @@ -16822,21 +18278,23 @@ public function get($iface) { * Revert network configuration changes. * @return Result */ - public function revertNetworkChanges() { + + public function revertNetworkChanges() + { return $this->client->delete("/nodes/{$this->node}/network"); } - /** * List available networks * @param string $type Only list specific interface types. * Enum: bridge,bond,eth,alias,vlan,OVSBridge,OVSBond,OVSPort,OVSIntPort,any_bridge,any_local_bridge * @return Result */ - public function index($type = null) { + + public function index($type = null) + { $params = ['type' => $type]; return $this->client->get("/nodes/{$this->node}/network", $params); } - /** * Create network device configuration * @param string $iface Network interface name. @@ -16871,8 +18329,11 @@ public function index($type = null) { * @param string $vlan_raw_device Specify the raw interface for the vlan interface. * @return Result */ - public function createNetwork($iface, $type, $address = null, $address6 = null, $autostart = null, $bond_primary = null, $bond_mode = null, $bond_xmit_hash_policy = null, $bridge_ports = null, $bridge_vlan_aware = null, $cidr = null, $cidr6 = null, $comments = null, $comments6 = null, $gateway = null, $gateway6 = null, $mtu = null, $netmask = null, $netmask6 = null, $ovs_bonds = null, $ovs_bridge = null, $ovs_options = null, $ovs_ports = null, $ovs_tag = null, $slaves = null, $vlan_id = null, $vlan_raw_device = null) { - $params = ['iface' => $iface, + + public function createNetwork($iface, $type, $address = null, $address6 = null, $autostart = null, $bond_primary = null, $bond_mode = null, $bond_xmit_hash_policy = null, $bridge_ports = null, $bridge_vlan_aware = null, $cidr = null, $cidr6 = null, $comments = null, $comments6 = null, $gateway = null, $gateway6 = null, $mtu = null, $netmask = null, $netmask6 = null, $ovs_bonds = null, $ovs_bridge = null, $ovs_options = null, $ovs_ports = null, $ovs_tag = null, $slaves = null, $vlan_id = null, $vlan_raw_device = null) + { + $params = [ + 'iface' => $iface, 'type' => $type, 'address' => $address, 'address6' => $address6, @@ -16898,24 +18359,26 @@ public function createNetwork($iface, $type, $address = null, $address6 = null, 'ovs_tag' => $ovs_tag, 'slaves' => $slaves, 'vlan-id' => $vlan_id, - 'vlan-raw-device' => $vlan_raw_device]; + 'vlan-raw-device' => $vlan_raw_device + ]; return $this->client->create("/nodes/{$this->node}/network", $params); } - /** * Reload network configuration * @return Result */ - public function reloadNetworkConfig() { + + public function reloadNetworkConfig() + { return $this->client->set("/nodes/{$this->node}/network"); } } - /** * Class PVEItemNetworkNodeNodesIface - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemNetworkNodeNodesIface { + class PVEItemNetworkNodeNodesIface + { /** * @ignore @@ -16926,7 +18389,6 @@ class PVEItemNetworkNodeNodesIface { * @ignore */ private $iface; - /** * @ignore */ @@ -16935,28 +18397,33 @@ class PVEItemNetworkNodeNodesIface { /** * @ignore */ - function __construct($client, $node, $iface) { + function __construct($client, $node, $iface) + { $this->client = $client; $this->node = $node; $this->iface = $iface; } + + /** * Delete network device configuration * @return Result */ - public function deleteNetwork() { + + public function deleteNetwork() + { return $this->client->delete("/nodes/{$this->node}/network/{$this->iface}"); } - /** * Read network device configuration * @return Result */ - public function networkConfig() { + + public function networkConfig() + { return $this->client->get("/nodes/{$this->node}/network/{$this->iface}"); } - /** * Update network device configuration * @param string $type Network interface type @@ -16991,8 +18458,11 @@ public function networkConfig() { * @param string $vlan_raw_device Specify the raw interface for the vlan interface. * @return Result */ - public function updateNetwork($type, $address = null, $address6 = null, $autostart = null, $bond_primary = null, $bond_mode = null, $bond_xmit_hash_policy = null, $bridge_ports = null, $bridge_vlan_aware = null, $cidr = null, $cidr6 = null, $comments = null, $comments6 = null, $delete = null, $gateway = null, $gateway6 = null, $mtu = null, $netmask = null, $netmask6 = null, $ovs_bonds = null, $ovs_bridge = null, $ovs_options = null, $ovs_ports = null, $ovs_tag = null, $slaves = null, $vlan_id = null, $vlan_raw_device = null) { - $params = ['type' => $type, + + public function updateNetwork($type, $address = null, $address6 = null, $autostart = null, $bond_primary = null, $bond_mode = null, $bond_xmit_hash_policy = null, $bridge_ports = null, $bridge_vlan_aware = null, $cidr = null, $cidr6 = null, $comments = null, $comments6 = null, $delete = null, $gateway = null, $gateway6 = null, $mtu = null, $netmask = null, $netmask6 = null, $ovs_bonds = null, $ovs_bridge = null, $ovs_options = null, $ovs_ports = null, $ovs_tag = null, $slaves = null, $vlan_id = null, $vlan_raw_device = null) + { + $params = [ + 'type' => $type, 'address' => $address, 'address6' => $address6, 'autostart' => $autostart, @@ -17018,22 +18488,23 @@ public function updateNetwork($type, $address = null, $address6 = null, $autosta 'ovs_tag' => $ovs_tag, 'slaves' => $slaves, 'vlan-id' => $vlan_id, - 'vlan-raw-device' => $vlan_raw_device]; + 'vlan-raw-device' => $vlan_raw_device + ]; return $this->client->set("/nodes/{$this->node}/network/{$this->iface}", $params); } } /** * Class PVENodeNodesTasks - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesTasks { + class PVENodeNodesTasks + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17042,17 +18513,20 @@ class PVENodeNodesTasks { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemTasksNodeNodesUpid * @param upid * @return PVEItemTasksNodeNodesUpid */ - public function get($upid) { + public function get($upid) + { return new PVEItemTasksNodeNodesUpid($this->client, $this->node, $upid); } @@ -17071,8 +18545,11 @@ public function get($upid) { * @param int $vmid Only list tasks for this VM. * @return Result */ - public function nodeTasks($errors = null, $limit = null, $since = null, $source = null, $start = null, $statusfilter = null, $typefilter = null, $until = null, $userfilter = null, $vmid = null) { - $params = ['errors' => $errors, + + public function nodeTasks($errors = null, $limit = null, $since = null, $source = null, $start = null, $statusfilter = null, $typefilter = null, $until = null, $userfilter = null, $vmid = null) + { + $params = [ + 'errors' => $errors, 'limit' => $limit, 'since' => $since, 'source' => $source, @@ -17081,16 +18558,17 @@ public function nodeTasks($errors = null, $limit = null, $since = null, $source 'typefilter' => $typefilter, 'until' => $until, 'userfilter' => $userfilter, - 'vmid' => $vmid]; + 'vmid' => $vmid + ]; return $this->client->get("/nodes/{$this->node}/tasks", $params); } } - /** * Class PVEItemTasksNodeNodesUpid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemTasksNodeNodesUpid { + class PVEItemTasksNodeNodesUpid + { /** * @ignore @@ -17101,7 +18579,6 @@ class PVEItemTasksNodeNodesUpid { * @ignore */ private $upid; - /** * @ignore */ @@ -17110,7 +18587,8 @@ class PVEItemTasksNodeNodesUpid { /** * @ignore */ - function __construct($client, $node, $upid) { + function __construct($client, $node, $upid) + { $this->client = $client; $this->node = $node; $this->upid = $upid; @@ -17120,50 +18598,53 @@ function __construct($client, $node, $upid) { * @ignore */ private $log; - /** * Get UpidTasksNodeNodesLog * @return PVEUpidTasksNodeNodesLog */ - public function getLog() { + public function getLog() + { return $this->log ?: ($this->log = new PVEUpidTasksNodeNodesLog($this->client, $this->node, $this->upid)); } - /** * @ignore */ private $status; - /** * Get UpidTasksNodeNodesStatus * @return PVEUpidTasksNodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEUpidTasksNodeNodesStatus($this->client, $this->node, $this->upid)); } + /** * Stop a task. * @return Result */ - public function stopTask() { + + public function stopTask() + { return $this->client->delete("/nodes/{$this->node}/tasks/{$this->upid}"); } - /** - * + * * @return Result */ - public function upidIndex() { + + public function upidIndex() + { return $this->client->get("/nodes/{$this->node}/tasks/{$this->upid}"); } } - /** * Class PVEUpidTasksNodeNodesLog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEUpidTasksNodeNodesLog { + class PVEUpidTasksNodeNodesLog + { /** * @ignore @@ -17174,7 +18655,6 @@ class PVEUpidTasksNodeNodesLog { * @ignore */ private $upid; - /** * @ignore */ @@ -17183,12 +18663,15 @@ class PVEUpidTasksNodeNodesLog { /** * @ignore */ - function __construct($client, $node, $upid) { + function __construct($client, $node, $upid) + { $this->client = $client; $this->node = $node; $this->upid = $upid; } + + /** * Read task log. * @param bool $download Whether the tasklog file should be downloaded. This parameter can't be used in conjunction with other parameters @@ -17196,19 +18679,24 @@ function __construct($client, $node, $upid) { * @param int $start Start at this line when reading the tasklog * @return Result */ - public function readTaskLog($download = null, $limit = null, $start = null) { - $params = ['download' => $download, + + public function readTaskLog($download = null, $limit = null, $start = null) + { + $params = [ + 'download' => $download, 'limit' => $limit, - 'start' => $start]; + 'start' => $start + ]; return $this->client->get("/nodes/{$this->node}/tasks/{$this->upid}/log", $params); } } /** * Class PVEUpidTasksNodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEUpidTasksNodeNodesStatus { + class PVEUpidTasksNodeNodesStatus + { /** * @ignore @@ -17219,7 +18707,6 @@ class PVEUpidTasksNodeNodesStatus { * @ignore */ private $upid; - /** * @ignore */ @@ -17228,32 +18715,37 @@ class PVEUpidTasksNodeNodesStatus { /** * @ignore */ - function __construct($client, $node, $upid) { + function __construct($client, $node, $upid) + { $this->client = $client; $this->node = $node; $this->upid = $upid; } + + /** * Read task status. * @return Result */ - public function readTaskStatus() { + + public function readTaskStatus() + { return $this->client->get("/nodes/{$this->node}/tasks/{$this->upid}/status"); } } /** * Class PVENodeNodesScan - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesScan { + class PVENodeNodesScan + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17262,7 +18754,8 @@ class PVENodeNodesScan { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -17271,126 +18764,121 @@ function __construct($client, $node) { * @ignore */ private $nfs; - /** * Get ScanNodeNodesNfs * @return PVEScanNodeNodesNfs */ - public function getNfs() { + public function getNfs() + { return $this->nfs ?: ($this->nfs = new PVEScanNodeNodesNfs($this->client, $this->node)); } - /** * @ignore */ private $cifs; - /** * Get ScanNodeNodesCifs * @return PVEScanNodeNodesCifs */ - public function getCifs() { + public function getCifs() + { return $this->cifs ?: ($this->cifs = new PVEScanNodeNodesCifs($this->client, $this->node)); } - /** * @ignore */ private $pbs; - /** * Get ScanNodeNodesPbs * @return PVEScanNodeNodesPbs */ - public function getPbs() { + public function getPbs() + { return $this->pbs ?: ($this->pbs = new PVEScanNodeNodesPbs($this->client, $this->node)); } - /** * @ignore */ private $glusterfs; - /** * Get ScanNodeNodesGlusterfs * @return PVEScanNodeNodesGlusterfs */ - public function getGlusterfs() { + public function getGlusterfs() + { return $this->glusterfs ?: ($this->glusterfs = new PVEScanNodeNodesGlusterfs($this->client, $this->node)); } - /** * @ignore */ private $iscsi; - /** * Get ScanNodeNodesIscsi * @return PVEScanNodeNodesIscsi */ - public function getIscsi() { + public function getIscsi() + { return $this->iscsi ?: ($this->iscsi = new PVEScanNodeNodesIscsi($this->client, $this->node)); } - /** * @ignore */ private $lvm; - /** * Get ScanNodeNodesLvm * @return PVEScanNodeNodesLvm */ - public function getLvm() { + public function getLvm() + { return $this->lvm ?: ($this->lvm = new PVEScanNodeNodesLvm($this->client, $this->node)); } - /** * @ignore */ private $lvmthin; - /** * Get ScanNodeNodesLvmthin * @return PVEScanNodeNodesLvmthin */ - public function getLvmthin() { + public function getLvmthin() + { return $this->lvmthin ?: ($this->lvmthin = new PVEScanNodeNodesLvmthin($this->client, $this->node)); } - /** * @ignore */ private $zfs; - /** * Get ScanNodeNodesZfs * @return PVEScanNodeNodesZfs */ - public function getZfs() { + public function getZfs() + { return $this->zfs ?: ($this->zfs = new PVEScanNodeNodesZfs($this->client, $this->node)); } + /** * Index of available scan methods * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/scan"); } } - /** * Class PVEScanNodeNodesNfs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesNfs { + class PVEScanNodeNodesNfs + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17399,17 +18887,22 @@ class PVEScanNodeNodesNfs { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Scan remote NFS server. * @param string $server The server address (name or IP). * @return Result */ - public function nfsscan($server) { + + public function nfsscan($server) + { $params = ['server' => $server]; return $this->client->get("/nodes/{$this->node}/scan/nfs", $params); } @@ -17417,15 +18910,15 @@ public function nfsscan($server) { /** * Class PVEScanNodeNodesCifs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesCifs { + class PVEScanNodeNodesCifs + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17434,11 +18927,14 @@ class PVEScanNodeNodesCifs { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Scan remote CIFS server. * @param string $server The server address (name or IP). @@ -17447,26 +18943,30 @@ function __construct($client, $node) { * @param string $username User name. * @return Result */ - public function cifsscan($server, $domain = null, $password = null, $username = null) { - $params = ['server' => $server, + + public function cifsscan($server, $domain = null, $password = null, $username = null) + { + $params = [ + 'server' => $server, 'domain' => $domain, 'password' => $password, - 'username' => $username]; + 'username' => $username + ]; return $this->client->get("/nodes/{$this->node}/scan/cifs", $params); } } /** * Class PVEScanNodeNodesPbs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesPbs { + class PVEScanNodeNodesPbs + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17475,11 +18975,14 @@ class PVEScanNodeNodesPbs { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Scan remote Proxmox Backup Server. * @param string $password User password or API token secret. @@ -17489,27 +18992,31 @@ function __construct($client, $node) { * @param int $port Optional port. * @return Result */ - public function pbsscan($password, $server, $username, $fingerprint = null, $port = null) { - $params = ['password' => $password, + + public function pbsscan($password, $server, $username, $fingerprint = null, $port = null) + { + $params = [ + 'password' => $password, 'server' => $server, 'username' => $username, 'fingerprint' => $fingerprint, - 'port' => $port]; + 'port' => $port + ]; return $this->client->get("/nodes/{$this->node}/scan/pbs", $params); } } /** * Class PVEScanNodeNodesGlusterfs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesGlusterfs { + class PVEScanNodeNodesGlusterfs + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17518,17 +19025,22 @@ class PVEScanNodeNodesGlusterfs { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Scan remote GlusterFS server. * @param string $server The server address (name or IP). * @return Result */ - public function glusterfsscan($server) { + + public function glusterfsscan($server) + { $params = ['server' => $server]; return $this->client->get("/nodes/{$this->node}/scan/glusterfs", $params); } @@ -17536,15 +19048,15 @@ public function glusterfsscan($server) { /** * Class PVEScanNodeNodesIscsi - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesIscsi { + class PVEScanNodeNodesIscsi + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17553,17 +19065,22 @@ class PVEScanNodeNodesIscsi { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Scan remote iSCSI server. * @param string $portal The iSCSI portal (IP or DNS name with optional port). * @return Result */ - public function iscsiscan($portal) { + + public function iscsiscan($portal) + { $params = ['portal' => $portal]; return $this->client->get("/nodes/{$this->node}/scan/iscsi", $params); } @@ -17571,15 +19088,15 @@ public function iscsiscan($portal) { /** * Class PVEScanNodeNodesLvm - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesLvm { + class PVEScanNodeNodesLvm + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17588,31 +19105,36 @@ class PVEScanNodeNodesLvm { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * List local LVM volume groups. * @return Result */ - public function lvmscan() { + + public function lvmscan() + { return $this->client->get("/nodes/{$this->node}/scan/lvm"); } } /** * Class PVEScanNodeNodesLvmthin - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesLvmthin { + class PVEScanNodeNodesLvmthin + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17621,17 +19143,22 @@ class PVEScanNodeNodesLvmthin { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * List local LVM Thin Pools. - * @param string $vg + * @param string $vg * @return Result */ - public function lvmthinscan($vg) { + + public function lvmthinscan($vg) + { $params = ['vg' => $vg]; return $this->client->get("/nodes/{$this->node}/scan/lvmthin", $params); } @@ -17639,15 +19166,15 @@ public function lvmthinscan($vg) { /** * Class PVEScanNodeNodesZfs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEScanNodeNodesZfs { + class PVEScanNodeNodesZfs + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17656,31 +19183,36 @@ class PVEScanNodeNodesZfs { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Scan zfs pool list on local node. * @return Result */ - public function zfsscan() { + + public function zfsscan() + { return $this->client->get("/nodes/{$this->node}/scan/zfs"); } } /** * Class PVENodeNodesHardware - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesHardware { + class PVENodeNodesHardware + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17689,7 +19221,8 @@ class PVENodeNodesHardware { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -17698,48 +19231,49 @@ function __construct($client, $node) { * @ignore */ private $pci; - /** * Get HardwareNodeNodesPci * @return PVEHardwareNodeNodesPci */ - public function getPci() { + public function getPci() + { return $this->pci ?: ($this->pci = new PVEHardwareNodeNodesPci($this->client, $this->node)); } - /** * @ignore */ private $usb; - /** * Get HardwareNodeNodesUsb * @return PVEHardwareNodeNodesUsb */ - public function getUsb() { + public function getUsb() + { return $this->usb ?: ($this->usb = new PVEHardwareNodeNodesUsb($this->client, $this->node)); } + /** * Index of hardware types * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/hardware"); } } - /** * Class PVEHardwareNodeNodesPci - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEHardwareNodeNodesPci { + class PVEHardwareNodeNodesPci + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17748,17 +19282,20 @@ class PVEHardwareNodeNodesPci { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemPciHardwareNodeNodesPciid * @param pciid * @return PVEItemPciHardwareNodeNodesPciid */ - public function get($pciid) { + public function get($pciid) + { return new PVEItemPciHardwareNodeNodesPciid($this->client, $this->node, $pciid); } @@ -17768,18 +19305,22 @@ public function get($pciid) { * @param bool $verbose If disabled, does only print the PCI IDs. Otherwise, additional information like vendor and device will be returned. * @return Result */ - public function pciscan($pci_class_blacklist = null, $verbose = null) { - $params = ['pci-class-blacklist' => $pci_class_blacklist, - 'verbose' => $verbose]; + + public function pciscan($pci_class_blacklist = null, $verbose = null) + { + $params = [ + 'pci-class-blacklist' => $pci_class_blacklist, + 'verbose' => $verbose + ]; return $this->client->get("/nodes/{$this->node}/hardware/pci", $params); } } - /** * Class PVEItemPciHardwareNodeNodesPciid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemPciHardwareNodeNodesPciid { + class PVEItemPciHardwareNodeNodesPciid + { /** * @ignore @@ -17790,7 +19331,6 @@ class PVEItemPciHardwareNodeNodesPciid { * @ignore */ private $pciid; - /** * @ignore */ @@ -17799,7 +19339,8 @@ class PVEItemPciHardwareNodeNodesPciid { /** * @ignore */ - function __construct($client, $node, $pciid) { + function __construct($client, $node, $pciid) + { $this->client = $client; $this->node = $node; $this->pciid = $pciid; @@ -17809,29 +19350,32 @@ function __construct($client, $node, $pciid) { * @ignore */ private $mdev; - /** * Get PciidPciHardwareNodeNodesMdev * @return PVEPciidPciHardwareNodeNodesMdev */ - public function getMdev() { + public function getMdev() + { return $this->mdev ?: ($this->mdev = new PVEPciidPciHardwareNodeNodesMdev($this->client, $this->node, $this->pciid)); } + /** * Index of available pci methods * @return Result */ - public function pciindex() { + + public function pciindex() + { return $this->client->get("/nodes/{$this->node}/hardware/pci/{$this->pciid}"); } } - /** * Class PVEPciidPciHardwareNodeNodesMdev - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEPciidPciHardwareNodeNodesMdev { + class PVEPciidPciHardwareNodeNodesMdev + { /** * @ignore @@ -17842,7 +19386,6 @@ class PVEPciidPciHardwareNodeNodesMdev { * @ignore */ private $pciid; - /** * @ignore */ @@ -17851,32 +19394,37 @@ class PVEPciidPciHardwareNodeNodesMdev { /** * @ignore */ - function __construct($client, $node, $pciid) { + function __construct($client, $node, $pciid) + { $this->client = $client; $this->node = $node; $this->pciid = $pciid; } + + /** * List mediated device types for given PCI device. * @return Result */ - public function mdevscan() { + + public function mdevscan() + { return $this->client->get("/nodes/{$this->node}/hardware/pci/{$this->pciid}/mdev"); } } /** * Class PVEHardwareNodeNodesUsb - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEHardwareNodeNodesUsb { + class PVEHardwareNodeNodesUsb + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17885,31 +19433,36 @@ class PVEHardwareNodeNodesUsb { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * List local USB devices. * @return Result */ - public function usbscan() { + + public function usbscan() + { return $this->client->get("/nodes/{$this->node}/hardware/usb"); } } /** * Class PVENodeNodesCapabilities - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesCapabilities { + class PVENodeNodesCapabilities + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17918,7 +19471,8 @@ class PVENodeNodesCapabilities { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -17927,35 +19481,37 @@ function __construct($client, $node) { * @ignore */ private $qemu; - /** * Get CapabilitiesNodeNodesQemu * @return PVECapabilitiesNodeNodesQemu */ - public function getQemu() { + public function getQemu() + { return $this->qemu ?: ($this->qemu = new PVECapabilitiesNodeNodesQemu($this->client, $this->node)); } + /** * Node capabilities index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/capabilities"); } } - /** * Class PVECapabilitiesNodeNodesQemu - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECapabilitiesNodeNodesQemu { + class PVECapabilitiesNodeNodesQemu + { /** * @ignore */ private $node; - /** * @ignore */ @@ -17964,7 +19520,8 @@ class PVECapabilitiesNodeNodesQemu { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -17973,48 +19530,49 @@ function __construct($client, $node) { * @ignore */ private $cpu; - /** * Get QemuCapabilitiesNodeNodesCpu * @return PVEQemuCapabilitiesNodeNodesCpu */ - public function getCpu() { + public function getCpu() + { return $this->cpu ?: ($this->cpu = new PVEQemuCapabilitiesNodeNodesCpu($this->client, $this->node)); } - /** * @ignore */ private $machines; - /** * Get QemuCapabilitiesNodeNodesMachines * @return PVEQemuCapabilitiesNodeNodesMachines */ - public function getMachines() { + public function getMachines() + { return $this->machines ?: ($this->machines = new PVEQemuCapabilitiesNodeNodesMachines($this->client, $this->node)); } + /** * QEMU capabilities index. * @return Result */ - public function qemuCapsIndex() { + + public function qemuCapsIndex() + { return $this->client->get("/nodes/{$this->node}/capabilities/qemu"); } } - /** * Class PVEQemuCapabilitiesNodeNodesCpu - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEQemuCapabilitiesNodeNodesCpu { + class PVEQemuCapabilitiesNodeNodesCpu + { /** * @ignore */ private $node; - /** * @ignore */ @@ -18023,31 +19581,36 @@ class PVEQemuCapabilitiesNodeNodesCpu { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * List all custom and default CPU models. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/capabilities/qemu/cpu"); } } /** * Class PVEQemuCapabilitiesNodeNodesMachines - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEQemuCapabilitiesNodeNodesMachines { + class PVEQemuCapabilitiesNodeNodesMachines + { /** * @ignore */ private $node; - /** * @ignore */ @@ -18056,31 +19619,36 @@ class PVEQemuCapabilitiesNodeNodesMachines { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get available QEMU/KVM machine types. * @return Result */ - public function types() { + + public function types() + { return $this->client->get("/nodes/{$this->node}/capabilities/qemu/machines"); } } /** * Class PVENodeNodesStorage - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesStorage { + class PVENodeNodesStorage + { /** * @ignore */ private $node; - /** * @ignore */ @@ -18089,17 +19657,20 @@ class PVENodeNodesStorage { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemStorageNodeNodesStorage * @param storage * @return PVEItemStorageNodeNodesStorage */ - public function get($storage) { + public function get($storage) + { return new PVEItemStorageNodeNodesStorage($this->client, $this->node, $storage); } @@ -18112,21 +19683,25 @@ public function get($storage) { * @param string $target If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node. * @return Result */ - public function index($content = null, $enabled = null, $format = null, $storage = null, $target = null) { - $params = ['content' => $content, + + public function index($content = null, $enabled = null, $format = null, $storage = null, $target = null) + { + $params = [ + 'content' => $content, 'enabled' => $enabled, 'format' => $format, 'storage' => $storage, - 'target' => $target]; + 'target' => $target + ]; return $this->client->get("/nodes/{$this->node}/storage", $params); } } - /** * Class PVEItemStorageNodeNodesStorage - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemStorageNodeNodesStorage { + class PVEItemStorageNodeNodesStorage + { /** * @ignore @@ -18137,7 +19712,6 @@ class PVEItemStorageNodeNodesStorage { * @ignore */ private $storage; - /** * @ignore */ @@ -18146,7 +19720,8 @@ class PVEItemStorageNodeNodesStorage { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; @@ -18156,120 +19731,116 @@ function __construct($client, $node, $storage) { * @ignore */ private $prunebackups; - /** * Get StorageStorageNodeNodesPrunebackups * @return PVEStorageStorageNodeNodesPrunebackups */ - public function getPrunebackups() { + public function getPrunebackups() + { return $this->prunebackups ?: ($this->prunebackups = new PVEStorageStorageNodeNodesPrunebackups($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $content; - /** * Get StorageStorageNodeNodesContent * @return PVEStorageStorageNodeNodesContent */ - public function getContent() { + public function getContent() + { return $this->content ?: ($this->content = new PVEStorageStorageNodeNodesContent($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $fileRestore; - /** * Get StorageStorageNodeNodesFileRestore * @return PVEStorageStorageNodeNodesFileRestore */ - public function getFileRestore() { + public function getFileRestore() + { return $this->fileRestore ?: ($this->fileRestore = new PVEStorageStorageNodeNodesFileRestore($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $status; - /** * Get StorageStorageNodeNodesStatus * @return PVEStorageStorageNodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEStorageStorageNodeNodesStatus($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $rrd; - /** * Get StorageStorageNodeNodesRrd * @return PVEStorageStorageNodeNodesRrd */ - public function getRrd() { + public function getRrd() + { return $this->rrd ?: ($this->rrd = new PVEStorageStorageNodeNodesRrd($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $rrddata; - /** * Get StorageStorageNodeNodesRrddata * @return PVEStorageStorageNodeNodesRrddata */ - public function getRrddata() { + public function getRrddata() + { return $this->rrddata ?: ($this->rrddata = new PVEStorageStorageNodeNodesRrddata($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $upload; - /** * Get StorageStorageNodeNodesUpload * @return PVEStorageStorageNodeNodesUpload */ - public function getUpload() { + public function getUpload() + { return $this->upload ?: ($this->upload = new PVEStorageStorageNodeNodesUpload($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $downloadUrl; - /** * Get StorageStorageNodeNodesDownloadUrl * @return PVEStorageStorageNodeNodesDownloadUrl */ - public function getDownloadUrl() { + public function getDownloadUrl() + { return $this->downloadUrl ?: ($this->downloadUrl = new PVEStorageStorageNodeNodesDownloadUrl($this->client, $this->node, $this->storage)); } + /** - * + * * @return Result */ - public function diridx() { + + public function diridx() + { return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}"); } } - /** * Class PVEStorageStorageNodeNodesPrunebackups - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesPrunebackups { + class PVEStorageStorageNodeNodesPrunebackups + { /** * @ignore @@ -18280,7 +19851,6 @@ class PVEStorageStorageNodeNodesPrunebackups { * @ignore */ private $storage; - /** * @ignore */ @@ -18289,12 +19859,15 @@ class PVEStorageStorageNodeNodesPrunebackups { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * Prune backups. Only those using the standard naming scheme are considered. * @param string $prune_backups Use these retention options instead of those from the storage configuration. @@ -18303,13 +19876,16 @@ function __construct($client, $node, $storage) { * @param int $vmid Only prune backups for this VM. * @return Result */ - public function delete($prune_backups = null, $type = null, $vmid = null) { - $params = ['prune-backups' => $prune_backups, + + public function delete($prune_backups = null, $type = null, $vmid = null) + { + $params = [ + 'prune-backups' => $prune_backups, 'type' => $type, - 'vmid' => $vmid]; + 'vmid' => $vmid + ]; return $this->client->delete("/nodes/{$this->node}/storage/{$this->storage}/prunebackups", $params); } - /** * Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. * @param string $prune_backups Use these retention options instead of those from the storage configuration. @@ -18318,19 +19894,24 @@ public function delete($prune_backups = null, $type = null, $vmid = null) { * @param int $vmid Only consider backups for this guest. * @return Result */ - public function dryrun($prune_backups = null, $type = null, $vmid = null) { - $params = ['prune-backups' => $prune_backups, + + public function dryrun($prune_backups = null, $type = null, $vmid = null) + { + $params = [ + 'prune-backups' => $prune_backups, 'type' => $type, - 'vmid' => $vmid]; + 'vmid' => $vmid + ]; return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/prunebackups", $params); } } /** * Class PVEStorageStorageNodeNodesContent - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesContent { + class PVEStorageStorageNodeNodesContent + { /** * @ignore @@ -18341,7 +19922,6 @@ class PVEStorageStorageNodeNodesContent { * @ignore */ private $storage; - /** * @ignore */ @@ -18350,18 +19930,21 @@ class PVEStorageStorageNodeNodesContent { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + /** * Get ItemContentStorageStorageNodeNodesVolume * @param volume * @return PVEItemContentStorageStorageNodeNodesVolume */ - public function get($volume) { + public function get($volume) + { return new PVEItemContentStorageStorageNodeNodesVolume($this->client, $this->node, $this->storage, $volume); } @@ -18371,35 +19954,42 @@ public function get($volume) { * @param int $vmid Only list images for this VM * @return Result */ - public function index($content = null, $vmid = null) { - $params = ['content' => $content, - 'vmid' => $vmid]; + + public function index($content = null, $vmid = null) + { + $params = [ + 'content' => $content, + 'vmid' => $vmid + ]; return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/content", $params); } - /** * Allocate disk images. * @param string $filename The name of the file to create. * @param string $size Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M) * @param int $vmid Specify owner VM - * @param string $format + * @param string $format * Enum: raw,qcow2,subvol * @return Result */ - public function create($filename, $size, $vmid, $format = null) { - $params = ['filename' => $filename, + + public function create($filename, $size, $vmid, $format = null) + { + $params = [ + 'filename' => $filename, 'size' => $size, 'vmid' => $vmid, - 'format' => $format]; + 'format' => $format + ]; return $this->client->create("/nodes/{$this->node}/storage/{$this->storage}/content", $params); } } - /** * Class PVEItemContentStorageStorageNodeNodesVolume - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemContentStorageStorageNodeNodesVolume { + class PVEItemContentStorageStorageNodeNodesVolume + { /** * @ignore @@ -18415,7 +20005,6 @@ class PVEItemContentStorageStorageNodeNodesVolume { * @ignore */ private $volume; - /** * @ignore */ @@ -18424,61 +20013,74 @@ class PVEItemContentStorageStorageNodeNodesVolume { /** * @ignore */ - function __construct($client, $node, $storage, $volume) { + function __construct($client, $node, $storage, $volume) + { $this->client = $client; $this->node = $node; $this->storage = $storage; $this->volume = $volume; } + + /** * Delete volume * @param int $delay Time to wait for the task to finish. We return 'null' if the task finish within that time. * @return Result */ - public function delete($delay = null) { + + public function delete($delay = null) + { $params = ['delay' => $delay]; return $this->client->delete("/nodes/{$this->node}/storage/{$this->storage}/content/{$this->volume}", $params); } - /** * Get volume attributes * @return Result */ - public function info() { + + public function info() + { return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/content/{$this->volume}"); } - /** * Copy a volume. This is experimental code - do not use. * @param string $target Target volume identifier * @param string $target_node Target node. Default is local node. * @return Result */ - public function copy($target, $target_node = null) { - $params = ['target' => $target, - 'target_node' => $target_node]; + + public function copy($target, $target_node = null) + { + $params = [ + 'target' => $target, + 'target_node' => $target_node + ]; return $this->client->create("/nodes/{$this->node}/storage/{$this->storage}/content/{$this->volume}", $params); } - /** * Update volume attributes * @param string $notes The new notes. * @param bool $protected Protection status. Currently only supported for backups. * @return Result */ - public function updateattributes($notes = null, $protected = null) { - $params = ['notes' => $notes, - 'protected' => $protected]; + + public function updateattributes($notes = null, $protected = null) + { + $params = [ + 'notes' => $notes, + 'protected' => $protected + ]; return $this->client->set("/nodes/{$this->node}/storage/{$this->storage}/content/{$this->volume}", $params); } } /** * Class PVEStorageStorageNodeNodesFileRestore - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesFileRestore { + class PVEStorageStorageNodeNodesFileRestore + { /** * @ignore @@ -18489,7 +20091,6 @@ class PVEStorageStorageNodeNodesFileRestore { * @ignore */ private $storage; - /** * @ignore */ @@ -18498,7 +20099,8 @@ class PVEStorageStorageNodeNodesFileRestore { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; @@ -18508,34 +20110,33 @@ function __construct($client, $node, $storage) { * @ignore */ private $list; - /** * Get FileRestoreStorageStorageNodeNodesList * @return PVEFileRestoreStorageStorageNodeNodesList */ - public function getList() { + public function getList() + { return $this->list ?: ($this->list = new PVEFileRestoreStorageStorageNodeNodesList($this->client, $this->node, $this->storage)); } - /** * @ignore */ private $download; - /** * Get FileRestoreStorageStorageNodeNodesDownload * @return PVEFileRestoreStorageStorageNodeNodesDownload */ - public function getDownload() { + public function getDownload() + { return $this->download ?: ($this->download = new PVEFileRestoreStorageStorageNodeNodesDownload($this->client, $this->node, $this->storage)); } } - /** * Class PVEFileRestoreStorageStorageNodeNodesList - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFileRestoreStorageStorageNodeNodesList { + class PVEFileRestoreStorageStorageNodeNodesList + { /** * @ignore @@ -18546,7 +20147,6 @@ class PVEFileRestoreStorageStorageNodeNodesList { * @ignore */ private $storage; - /** * @ignore */ @@ -18555,30 +20155,38 @@ class PVEFileRestoreStorageStorageNodeNodesList { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * List files and directories for single file restore under the given path. * @param string $filepath base64-path to the directory or file being listed, or "/". * @param string $volume Backup volume ID or name. Currently only PBS snapshots are supported. * @return Result */ - public function list_($filepath, $volume) { - $params = ['filepath' => $filepath, - 'volume' => $volume]; + + public function list_($filepath, $volume) + { + $params = [ + 'filepath' => $filepath, + 'volume' => $volume + ]; return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/file-restore/list", $params); } } /** * Class PVEFileRestoreStorageStorageNodeNodesDownload - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFileRestoreStorageStorageNodeNodesDownload { + class PVEFileRestoreStorageStorageNodeNodesDownload + { /** * @ignore @@ -18589,7 +20197,6 @@ class PVEFileRestoreStorageStorageNodeNodesDownload { * @ignore */ private $storage; - /** * @ignore */ @@ -18598,12 +20205,15 @@ class PVEFileRestoreStorageStorageNodeNodesDownload { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * Extract a file or directory (as zip archive) from a PBS backup. * @param string $filepath base64-path to the directory or file to download. @@ -18611,19 +20221,24 @@ function __construct($client, $node, $storage) { * @param bool $tar Download dirs as 'tar.zst' instead of 'zip'. * @return Result */ - public function download($filepath, $volume, $tar = null) { - $params = ['filepath' => $filepath, + + public function download($filepath, $volume, $tar = null) + { + $params = [ + 'filepath' => $filepath, 'volume' => $volume, - 'tar' => $tar]; + 'tar' => $tar + ]; return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/file-restore/download", $params); } } /** * Class PVEStorageStorageNodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesStatus { + class PVEStorageStorageNodeNodesStatus + { /** * @ignore @@ -18634,7 +20249,6 @@ class PVEStorageStorageNodeNodesStatus { * @ignore */ private $storage; - /** * @ignore */ @@ -18643,26 +20257,32 @@ class PVEStorageStorageNodeNodesStatus { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * Read storage status. * @return Result */ - public function readStatus() { + + public function readStatus() + { return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/status"); } } /** * Class PVEStorageStorageNodeNodesRrd - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesRrd { + class PVEStorageStorageNodeNodesRrd + { /** * @ignore @@ -18673,7 +20293,6 @@ class PVEStorageStorageNodeNodesRrd { * @ignore */ private $storage; - /** * @ignore */ @@ -18682,12 +20301,15 @@ class PVEStorageStorageNodeNodesRrd { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * Read storage RRD statistics (returns PNG). * @param string $ds The list of datasources you want to display. @@ -18697,19 +20319,24 @@ function __construct($client, $node, $storage) { * Enum: AVERAGE,MAX * @return Result */ - public function rrd($ds, $timeframe, $cf = null) { - $params = ['ds' => $ds, + + public function rrd($ds, $timeframe, $cf = null) + { + $params = [ + 'ds' => $ds, 'timeframe' => $timeframe, - 'cf' => $cf]; + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/rrd", $params); } } /** * Class PVEStorageStorageNodeNodesRrddata - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesRrddata { + class PVEStorageStorageNodeNodesRrddata + { /** * @ignore @@ -18720,7 +20347,6 @@ class PVEStorageStorageNodeNodesRrddata { * @ignore */ private $storage; - /** * @ignore */ @@ -18729,12 +20355,15 @@ class PVEStorageStorageNodeNodesRrddata { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * Read storage RRD statistics. * @param string $timeframe Specify the time frame you are interested in. @@ -18743,18 +20372,23 @@ function __construct($client, $node, $storage) { * Enum: AVERAGE,MAX * @return Result */ - public function rrddata($timeframe, $cf = null) { - $params = ['timeframe' => $timeframe, - 'cf' => $cf]; + + public function rrddata($timeframe, $cf = null) + { + $params = [ + 'timeframe' => $timeframe, + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/storage/{$this->storage}/rrddata", $params); } } /** * Class PVEStorageStorageNodeNodesUpload - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesUpload { + class PVEStorageStorageNodeNodesUpload + { /** * @ignore @@ -18765,7 +20399,6 @@ class PVEStorageStorageNodeNodesUpload { * @ignore */ private $storage; - /** * @ignore */ @@ -18774,12 +20407,15 @@ class PVEStorageStorageNodeNodesUpload { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * Upload templates and ISO images. * @param string $content Content type. @@ -18791,21 +20427,26 @@ function __construct($client, $node, $storage) { * @param string $tmpfilename The source file name. This parameter is usually set by the REST handler. You can only overwrite it when connecting to the trusted port on localhost. * @return Result */ - public function upload($content, $filename, $checksum = null, $checksum_algorithm = null, $tmpfilename = null) { - $params = ['content' => $content, + + public function upload($content, $filename, $checksum = null, $checksum_algorithm = null, $tmpfilename = null) + { + $params = [ + 'content' => $content, 'filename' => $filename, 'checksum' => $checksum, 'checksum-algorithm' => $checksum_algorithm, - 'tmpfilename' => $tmpfilename]; + 'tmpfilename' => $tmpfilename + ]; return $this->client->create("/nodes/{$this->node}/storage/{$this->storage}/upload", $params); } } /** * Class PVEStorageStorageNodeNodesDownloadUrl - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorageStorageNodeNodesDownloadUrl { + class PVEStorageStorageNodeNodesDownloadUrl + { /** * @ignore @@ -18816,7 +20457,6 @@ class PVEStorageStorageNodeNodesDownloadUrl { * @ignore */ private $storage; - /** * @ignore */ @@ -18825,12 +20465,15 @@ class PVEStorageStorageNodeNodesDownloadUrl { /** * @ignore */ - function __construct($client, $node, $storage) { + function __construct($client, $node, $storage) + { $this->client = $client; $this->node = $node; $this->storage = $storage; } + + /** * Download templates and ISO images by using an URL. * @param string $content Content type. @@ -18844,29 +20487,33 @@ function __construct($client, $node, $storage) { * @param bool $verify_certificates If false, no SSL/TLS certificates will be verified. * @return Result */ - public function downloadUrl($content, $filename, $url, $checksum = null, $checksum_algorithm = null, $compression = null, $verify_certificates = null) { - $params = ['content' => $content, + + public function downloadUrl($content, $filename, $url, $checksum = null, $checksum_algorithm = null, $compression = null, $verify_certificates = null) + { + $params = [ + 'content' => $content, 'filename' => $filename, 'url' => $url, 'checksum' => $checksum, 'checksum-algorithm' => $checksum_algorithm, 'compression' => $compression, - 'verify-certificates' => $verify_certificates]; + 'verify-certificates' => $verify_certificates + ]; return $this->client->create("/nodes/{$this->node}/storage/{$this->storage}/download-url", $params); } } /** * Class PVENodeNodesDisks - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesDisks { + class PVENodeNodesDisks + { /** * @ignore */ private $node; - /** * @ignore */ @@ -18875,7 +20522,8 @@ class PVENodeNodesDisks { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -18884,126 +20532,121 @@ function __construct($client, $node) { * @ignore */ private $lvm; - /** * Get DisksNodeNodesLvm * @return PVEDisksNodeNodesLvm */ - public function getLvm() { + public function getLvm() + { return $this->lvm ?: ($this->lvm = new PVEDisksNodeNodesLvm($this->client, $this->node)); } - /** * @ignore */ private $lvmthin; - /** * Get DisksNodeNodesLvmthin * @return PVEDisksNodeNodesLvmthin */ - public function getLvmthin() { + public function getLvmthin() + { return $this->lvmthin ?: ($this->lvmthin = new PVEDisksNodeNodesLvmthin($this->client, $this->node)); } - /** * @ignore */ private $directory; - /** * Get DisksNodeNodesDirectory * @return PVEDisksNodeNodesDirectory */ - public function getDirectory() { + public function getDirectory() + { return $this->directory ?: ($this->directory = new PVEDisksNodeNodesDirectory($this->client, $this->node)); } - /** * @ignore */ private $zfs; - /** * Get DisksNodeNodesZfs * @return PVEDisksNodeNodesZfs */ - public function getZfs() { + public function getZfs() + { return $this->zfs ?: ($this->zfs = new PVEDisksNodeNodesZfs($this->client, $this->node)); } - /** * @ignore */ private $list; - /** * Get DisksNodeNodesList * @return PVEDisksNodeNodesList */ - public function getList() { + public function getList() + { return $this->list ?: ($this->list = new PVEDisksNodeNodesList($this->client, $this->node)); } - /** * @ignore */ private $smart; - /** * Get DisksNodeNodesSmart * @return PVEDisksNodeNodesSmart */ - public function getSmart() { + public function getSmart() + { return $this->smart ?: ($this->smart = new PVEDisksNodeNodesSmart($this->client, $this->node)); } - /** * @ignore */ private $initgpt; - /** * Get DisksNodeNodesInitgpt * @return PVEDisksNodeNodesInitgpt */ - public function getInitgpt() { + public function getInitgpt() + { return $this->initgpt ?: ($this->initgpt = new PVEDisksNodeNodesInitgpt($this->client, $this->node)); } - /** * @ignore */ private $wipedisk; - /** * Get DisksNodeNodesWipedisk * @return PVEDisksNodeNodesWipedisk */ - public function getWipedisk() { + public function getWipedisk() + { return $this->wipedisk ?: ($this->wipedisk = new PVEDisksNodeNodesWipedisk($this->client, $this->node)); } + /** * Node index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/disks"); } } - /** * Class PVEDisksNodeNodesLvm - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesLvm { + class PVEDisksNodeNodesLvm + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19012,17 +20655,20 @@ class PVEDisksNodeNodesLvm { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemLvmDisksNodeNodesName * @param name * @return PVEItemLvmDisksNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemLvmDisksNodeNodesName($this->client, $this->node, $name); } @@ -19030,10 +20676,11 @@ public function get($name) { * List LVM Volume Groups * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/disks/lvm"); } - /** * Create an LVM Volume Group * @param string $device The block device you want to create the volume group on @@ -19041,19 +20688,23 @@ public function index() { * @param bool $add_storage Configure storage using the Volume Group * @return Result */ - public function create($device, $name, $add_storage = null) { - $params = ['device' => $device, + + public function create($device, $name, $add_storage = null) + { + $params = [ + 'device' => $device, 'name' => $name, - 'add_storage' => $add_storage]; + 'add_storage' => $add_storage + ]; return $this->client->create("/nodes/{$this->node}/disks/lvm", $params); } } - /** * Class PVEItemLvmDisksNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemLvmDisksNodeNodesName { + class PVEItemLvmDisksNodeNodesName + { /** * @ignore @@ -19064,7 +20715,6 @@ class PVEItemLvmDisksNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -19073,36 +20723,43 @@ class PVEItemLvmDisksNodeNodesName { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; } + + /** * Remove an LVM Volume Group. * @param bool $cleanup_config Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only). * @param bool $cleanup_disks Also wipe disks so they can be repurposed afterwards. * @return Result */ - public function delete($cleanup_config = null, $cleanup_disks = null) { - $params = ['cleanup-config' => $cleanup_config, - 'cleanup-disks' => $cleanup_disks]; + + public function delete($cleanup_config = null, $cleanup_disks = null) + { + $params = [ + 'cleanup-config' => $cleanup_config, + 'cleanup-disks' => $cleanup_disks + ]; return $this->client->delete("/nodes/{$this->node}/disks/lvm/{$this->name}", $params); } } /** * Class PVEDisksNodeNodesLvmthin - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesLvmthin { + class PVEDisksNodeNodesLvmthin + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19111,17 +20768,20 @@ class PVEDisksNodeNodesLvmthin { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemLvmthinDisksNodeNodesName * @param name * @return PVEItemLvmthinDisksNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemLvmthinDisksNodeNodesName($this->client, $this->node, $name); } @@ -19129,10 +20789,11 @@ public function get($name) { * List LVM thinpools * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/disks/lvmthin"); } - /** * Create an LVM thinpool * @param string $device The block device you want to create the thinpool on. @@ -19140,19 +20801,23 @@ public function index() { * @param bool $add_storage Configure storage using the thinpool. * @return Result */ - public function create($device, $name, $add_storage = null) { - $params = ['device' => $device, + + public function create($device, $name, $add_storage = null) + { + $params = [ + 'device' => $device, 'name' => $name, - 'add_storage' => $add_storage]; + 'add_storage' => $add_storage + ]; return $this->client->create("/nodes/{$this->node}/disks/lvmthin", $params); } } - /** * Class PVEItemLvmthinDisksNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemLvmthinDisksNodeNodesName { + class PVEItemLvmthinDisksNodeNodesName + { /** * @ignore @@ -19163,7 +20828,6 @@ class PVEItemLvmthinDisksNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -19172,12 +20836,15 @@ class PVEItemLvmthinDisksNodeNodesName { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; } + + /** * Remove an LVM thin pool. * @param string $volume_group The storage identifier. @@ -19185,25 +20852,29 @@ function __construct($client, $node, $name) { * @param bool $cleanup_disks Also wipe disks so they can be repurposed afterwards. * @return Result */ - public function delete($volume_group, $cleanup_config = null, $cleanup_disks = null) { - $params = ['volume-group' => $volume_group, + + public function delete($volume_group, $cleanup_config = null, $cleanup_disks = null) + { + $params = [ + 'volume-group' => $volume_group, 'cleanup-config' => $cleanup_config, - 'cleanup-disks' => $cleanup_disks]; + 'cleanup-disks' => $cleanup_disks + ]; return $this->client->delete("/nodes/{$this->node}/disks/lvmthin/{$this->name}", $params); } } /** * Class PVEDisksNodeNodesDirectory - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesDirectory { + class PVEDisksNodeNodesDirectory + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19212,17 +20883,20 @@ class PVEDisksNodeNodesDirectory { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemDirectoryDisksNodeNodesName * @param name * @return PVEItemDirectoryDisksNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemDirectoryDisksNodeNodesName($this->client, $this->node, $name); } @@ -19230,10 +20904,11 @@ public function get($name) { * PVE Managed Directory storages. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/disks/directory"); } - /** * Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. * @param string $device The block device you want to create the filesystem on. @@ -19243,20 +20918,24 @@ public function index() { * Enum: ext4,xfs * @return Result */ - public function create($device, $name, $add_storage = null, $filesystem = null) { - $params = ['device' => $device, + + public function create($device, $name, $add_storage = null, $filesystem = null) + { + $params = [ + 'device' => $device, 'name' => $name, 'add_storage' => $add_storage, - 'filesystem' => $filesystem]; + 'filesystem' => $filesystem + ]; return $this->client->create("/nodes/{$this->node}/disks/directory", $params); } } - /** * Class PVEItemDirectoryDisksNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemDirectoryDisksNodeNodesName { + class PVEItemDirectoryDisksNodeNodesName + { /** * @ignore @@ -19267,7 +20946,6 @@ class PVEItemDirectoryDisksNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -19276,36 +20954,43 @@ class PVEItemDirectoryDisksNodeNodesName { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; } + + /** * Unmounts the storage and removes the mount unit. * @param bool $cleanup_config Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only). * @param bool $cleanup_disks Also wipe disk so it can be repurposed afterwards. * @return Result */ - public function delete($cleanup_config = null, $cleanup_disks = null) { - $params = ['cleanup-config' => $cleanup_config, - 'cleanup-disks' => $cleanup_disks]; + + public function delete($cleanup_config = null, $cleanup_disks = null) + { + $params = [ + 'cleanup-config' => $cleanup_config, + 'cleanup-disks' => $cleanup_disks + ]; return $this->client->delete("/nodes/{$this->node}/disks/directory/{$this->name}", $params); } } /** * Class PVEDisksNodeNodesZfs - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesZfs { + class PVEDisksNodeNodesZfs + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19314,17 +20999,20 @@ class PVEDisksNodeNodesZfs { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemZfsDisksNodeNodesName * @param name * @return PVEItemZfsDisksNodeNodesName */ - public function get($name) { + public function get($name) + { return new PVEItemZfsDisksNodeNodesName($this->client, $this->node, $name); } @@ -19332,10 +21020,11 @@ public function get($name) { * List Zpools. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/disks/zfs"); } - /** * Create a ZFS pool. * @param string $devices The block devices you want to create the zpool on. @@ -19346,26 +21035,30 @@ public function index() { * @param int $ashift Pool sector size exponent. * @param string $compression The compression algorithm to use. * Enum: on,off,gzip,lz4,lzjb,zle,zstd - * @param string $draid_config + * @param string $draid_config * @return Result */ - public function create($devices, $name, $raidlevel, $add_storage = null, $ashift = null, $compression = null, $draid_config = null) { - $params = ['devices' => $devices, + + public function create($devices, $name, $raidlevel, $add_storage = null, $ashift = null, $compression = null, $draid_config = null) + { + $params = [ + 'devices' => $devices, 'name' => $name, 'raidlevel' => $raidlevel, 'add_storage' => $add_storage, 'ashift' => $ashift, 'compression' => $compression, - 'draid-config' => $draid_config]; + 'draid-config' => $draid_config + ]; return $this->client->create("/nodes/{$this->node}/disks/zfs", $params); } } - /** * Class PVEItemZfsDisksNodeNodesName - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemZfsDisksNodeNodesName { + class PVEItemZfsDisksNodeNodesName + { /** * @ignore @@ -19376,7 +21069,6 @@ class PVEItemZfsDisksNodeNodesName { * @ignore */ private $name; - /** * @ignore */ @@ -19385,44 +21077,52 @@ class PVEItemZfsDisksNodeNodesName { /** * @ignore */ - function __construct($client, $node, $name) { + function __construct($client, $node, $name) + { $this->client = $client; $this->node = $node; $this->name = $name; } + + /** * Destroy a ZFS pool. * @param bool $cleanup_config Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only). * @param bool $cleanup_disks Also wipe disks so they can be repurposed afterwards. * @return Result */ - public function delete($cleanup_config = null, $cleanup_disks = null) { - $params = ['cleanup-config' => $cleanup_config, - 'cleanup-disks' => $cleanup_disks]; + + public function delete($cleanup_config = null, $cleanup_disks = null) + { + $params = [ + 'cleanup-config' => $cleanup_config, + 'cleanup-disks' => $cleanup_disks + ]; return $this->client->delete("/nodes/{$this->node}/disks/zfs/{$this->name}", $params); } - /** * Get details about a zpool. * @return Result */ - public function detail() { + + public function detail() + { return $this->client->get("/nodes/{$this->node}/disks/zfs/{$this->name}"); } } /** * Class PVEDisksNodeNodesList - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesList { + class PVEDisksNodeNodesList + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19431,11 +21131,14 @@ class PVEDisksNodeNodesList { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * List local disks. * @param bool $include_partitions Also include partitions. @@ -19444,25 +21147,29 @@ function __construct($client, $node) { * Enum: unused,journal_disks * @return Result */ - public function list_($include_partitions = null, $skipsmart = null, $type = null) { - $params = ['include-partitions' => $include_partitions, + + public function list_($include_partitions = null, $skipsmart = null, $type = null) + { + $params = [ + 'include-partitions' => $include_partitions, 'skipsmart' => $skipsmart, - 'type' => $type]; + 'type' => $type + ]; return $this->client->get("/nodes/{$this->node}/disks/list", $params); } } /** * Class PVEDisksNodeNodesSmart - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesSmart { + class PVEDisksNodeNodesSmart + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19471,35 +21178,42 @@ class PVEDisksNodeNodesSmart { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get SMART Health of a disk. * @param string $disk Block device name * @param bool $healthonly If true returns only the health status * @return Result */ - public function smart($disk, $healthonly = null) { - $params = ['disk' => $disk, - 'healthonly' => $healthonly]; + + public function smart($disk, $healthonly = null) + { + $params = [ + 'disk' => $disk, + 'healthonly' => $healthonly + ]; return $this->client->get("/nodes/{$this->node}/disks/smart", $params); } } /** * Class PVEDisksNodeNodesInitgpt - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesInitgpt { + class PVEDisksNodeNodesInitgpt + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19508,35 +21222,42 @@ class PVEDisksNodeNodesInitgpt { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Initialize Disk with GPT * @param string $disk Block device name * @param string $uuid UUID for the GPT table * @return Result */ - public function initgpt($disk, $uuid = null) { - $params = ['disk' => $disk, - 'uuid' => $uuid]; + + public function initgpt($disk, $uuid = null) + { + $params = [ + 'disk' => $disk, + 'uuid' => $uuid + ]; return $this->client->create("/nodes/{$this->node}/disks/initgpt", $params); } } /** * Class PVEDisksNodeNodesWipedisk - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEDisksNodeNodesWipedisk { + class PVEDisksNodeNodesWipedisk + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19545,17 +21266,22 @@ class PVEDisksNodeNodesWipedisk { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Wipe a disk or partition. * @param string $disk Block device name * @return Result */ - public function wipeDisk($disk) { + + public function wipeDisk($disk) + { $params = ['disk' => $disk]; return $this->client->set("/nodes/{$this->node}/disks/wipedisk", $params); } @@ -19563,15 +21289,15 @@ public function wipeDisk($disk) { /** * Class PVENodeNodesApt - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesApt { + class PVENodeNodesApt + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19580,7 +21306,8 @@ class PVENodeNodesApt { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -19589,74 +21316,73 @@ function __construct($client, $node) { * @ignore */ private $update; - /** * Get AptNodeNodesUpdate * @return PVEAptNodeNodesUpdate */ - public function getUpdate() { + public function getUpdate() + { return $this->update ?: ($this->update = new PVEAptNodeNodesUpdate($this->client, $this->node)); } - /** * @ignore */ private $changelog; - /** * Get AptNodeNodesChangelog * @return PVEAptNodeNodesChangelog */ - public function getChangelog() { + public function getChangelog() + { return $this->changelog ?: ($this->changelog = new PVEAptNodeNodesChangelog($this->client, $this->node)); } - /** * @ignore */ private $repositories; - /** * Get AptNodeNodesRepositories * @return PVEAptNodeNodesRepositories */ - public function getRepositories() { + public function getRepositories() + { return $this->repositories ?: ($this->repositories = new PVEAptNodeNodesRepositories($this->client, $this->node)); } - /** * @ignore */ private $versions; - /** * Get AptNodeNodesVersions * @return PVEAptNodeNodesVersions */ - public function getVersions() { + public function getVersions() + { return $this->versions ?: ($this->versions = new PVEAptNodeNodesVersions($this->client, $this->node)); } + /** * Directory index for apt (Advanced Package Tool). * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/apt"); } } - /** * Class PVEAptNodeNodesUpdate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAptNodeNodesUpdate { + class PVEAptNodeNodesUpdate + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19665,43 +21391,51 @@ class PVEAptNodeNodesUpdate { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * List available updates. * @return Result */ - public function listUpdates() { + + public function listUpdates() + { return $this->client->get("/nodes/{$this->node}/apt/update"); } - /** * This is used to resynchronize the package index files from their sources (apt-get update). * @param bool $notify Send notification about new packages. * @param bool $quiet Only produces output suitable for logging, omitting progress indicators. * @return Result */ - public function updateDatabase($notify = null, $quiet = null) { - $params = ['notify' => $notify, - 'quiet' => $quiet]; + + public function updateDatabase($notify = null, $quiet = null) + { + $params = [ + 'notify' => $notify, + 'quiet' => $quiet + ]; return $this->client->create("/nodes/{$this->node}/apt/update", $params); } } /** * Class PVEAptNodeNodesChangelog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAptNodeNodesChangelog { + class PVEAptNodeNodesChangelog + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19710,35 +21444,42 @@ class PVEAptNodeNodesChangelog { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get package changelogs. * @param string $name Package name. * @param string $version Package version. * @return Result */ - public function changelog($name, $version = null) { - $params = ['name' => $name, - 'version' => $version]; + + public function changelog($name, $version = null) + { + $params = [ + 'name' => $name, + 'version' => $version + ]; return $this->client->get("/nodes/{$this->node}/apt/changelog", $params); } } /** * Class PVEAptNodeNodesRepositories - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAptNodeNodesRepositories { + class PVEAptNodeNodesRepositories + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19747,19 +21488,23 @@ class PVEAptNodeNodesRepositories { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get APT repository information. * @return Result */ - public function repositories() { + + public function repositories() + { return $this->client->get("/nodes/{$this->node}/apt/repositories"); } - /** * Change the properties of a repository. Currently only allows enabling/disabling. * @param int $index Index within the file (starting from 0). @@ -19768,38 +21513,45 @@ public function repositories() { * @param bool $enabled Whether the repository should be enabled or not. * @return Result */ - public function changeRepository($index, $path, $digest = null, $enabled = null) { - $params = ['index' => $index, + + public function changeRepository($index, $path, $digest = null, $enabled = null) + { + $params = [ + 'index' => $index, 'path' => $path, 'digest' => $digest, - 'enabled' => $enabled]; + 'enabled' => $enabled + ]; return $this->client->create("/nodes/{$this->node}/apt/repositories", $params); } - /** * Add a standard repository to the configuration * @param string $handle Handle that identifies a repository. * @param string $digest Digest to detect modifications. * @return Result */ - public function addRepository($handle, $digest = null) { - $params = ['handle' => $handle, - 'digest' => $digest]; + + public function addRepository($handle, $digest = null) + { + $params = [ + 'handle' => $handle, + 'digest' => $digest + ]; return $this->client->set("/nodes/{$this->node}/apt/repositories", $params); } } /** * Class PVEAptNodeNodesVersions - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAptNodeNodesVersions { + class PVEAptNodeNodesVersions + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19808,31 +21560,36 @@ class PVEAptNodeNodesVersions { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get package information for important Proxmox packages. * @return Result */ - public function versions() { + + public function versions() + { return $this->client->get("/nodes/{$this->node}/apt/versions"); } } /** * Class PVENodeNodesFirewall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesFirewall { + class PVENodeNodesFirewall + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19841,7 +21598,8 @@ class PVENodeNodesFirewall { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -19850,61 +21608,61 @@ function __construct($client, $node) { * @ignore */ private $rules; - /** * Get FirewallNodeNodesRules * @return PVEFirewallNodeNodesRules */ - public function getRules() { + public function getRules() + { return $this->rules ?: ($this->rules = new PVEFirewallNodeNodesRules($this->client, $this->node)); } - /** * @ignore */ private $options; - /** * Get FirewallNodeNodesOptions * @return PVEFirewallNodeNodesOptions */ - public function getOptions() { + public function getOptions() + { return $this->options ?: ($this->options = new PVEFirewallNodeNodesOptions($this->client, $this->node)); } - /** * @ignore */ private $log; - /** * Get FirewallNodeNodesLog * @return PVEFirewallNodeNodesLog */ - public function getLog() { + public function getLog() + { return $this->log ?: ($this->log = new PVEFirewallNodeNodesLog($this->client, $this->node)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/firewall"); } } - /** * Class PVEFirewallNodeNodesRules - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallNodeNodesRules { + class PVEFirewallNodeNodesRules + { /** * @ignore */ private $node; - /** * @ignore */ @@ -19913,17 +21671,20 @@ class PVEFirewallNodeNodesRules { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemRulesFirewallNodeNodesPos * @param pos * @return PVEItemRulesFirewallNodeNodesPos */ - public function get($pos) { + public function get($pos) + { return new PVEItemRulesFirewallNodeNodesPos($this->client, $this->node, $pos); } @@ -19931,10 +21692,11 @@ public function get($pos) { * List rules. * @return Result */ - public function getRules() { + + public function getRules() + { return $this->client->get("/nodes/{$this->node}/firewall/rules"); } - /** * Create new rule. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -19956,8 +21718,11 @@ public function getRules() { * @param string $sport Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\d+:\d+', for example '80:85', and you can use comma separated list to match several ports or ranges. * @return Result */ - public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) { - $params = ['action' => $action, + + public function createRule($action, $type, $comment = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $pos = null, $proto = null, $source = null, $sport = null) + { + $params = [ + 'action' => $action, 'type' => $type, 'comment' => $comment, 'dest' => $dest, @@ -19971,16 +21736,17 @@ public function createRule($action, $type, $comment = null, $dest = null, $diges 'pos' => $pos, 'proto' => $proto, 'source' => $source, - 'sport' => $sport]; + 'sport' => $sport + ]; return $this->client->create("/nodes/{$this->node}/firewall/rules", $params); } } - /** * Class PVEItemRulesFirewallNodeNodesPos - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemRulesFirewallNodeNodesPos { + class PVEItemRulesFirewallNodeNodesPos + { /** * @ignore @@ -19991,7 +21757,6 @@ class PVEItemRulesFirewallNodeNodesPos { * @ignore */ private $pos; - /** * @ignore */ @@ -20000,30 +21765,35 @@ class PVEItemRulesFirewallNodeNodesPos { /** * @ignore */ - function __construct($client, $node, $pos) { + function __construct($client, $node, $pos) + { $this->client = $client; $this->node = $node; $this->pos = $pos; } + + /** * Delete rule. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function deleteRule($digest = null) { + + public function deleteRule($digest = null) + { $params = ['digest' => $digest]; return $this->client->delete("/nodes/{$this->node}/firewall/rules/{$this->pos}", $params); } - /** * Get single rule data. * @return Result */ - public function getRule() { + + public function getRule() + { return $this->client->get("/nodes/{$this->node}/firewall/rules/{$this->pos}"); } - /** * Modify rule data. * @param string $action Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. @@ -20046,8 +21816,11 @@ public function getRule() { * Enum: in,out,group * @return Result */ - public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) { - $params = ['action' => $action, + + public function updateRule($action = null, $comment = null, $delete = null, $dest = null, $digest = null, $dport = null, $enable = null, $icmp_type = null, $iface = null, $log = null, $macro = null, $moveto = null, $proto = null, $source = null, $sport = null, $type = null) + { + $params = [ + 'action' => $action, 'comment' => $comment, 'delete' => $delete, 'dest' => $dest, @@ -20062,22 +21835,23 @@ public function updateRule($action = null, $comment = null, $delete = null, $des 'proto' => $proto, 'source' => $source, 'sport' => $sport, - 'type' => $type]; + 'type' => $type + ]; return $this->client->set("/nodes/{$this->node}/firewall/rules/{$this->pos}", $params); } } /** * Class PVEFirewallNodeNodesOptions - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallNodeNodesOptions { + class PVEFirewallNodeNodesOptions + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20086,19 +21860,23 @@ class PVEFirewallNodeNodesOptions { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get host firewall options. * @return Result */ - public function getOptions() { + + public function getOptions() + { return $this->client->get("/nodes/{$this->node}/firewall/options"); } - /** * Set Firewall options. * @param string $delete A list of settings you want to delete. @@ -20126,8 +21904,11 @@ public function getOptions() { * @param bool $tcpflags Filter illegal combinations of TCP flags. * @return Result */ - public function setOptions($delete = null, $digest = null, $enable = null, $log_level_in = null, $log_level_out = null, $log_nf_conntrack = null, $ndp = null, $nf_conntrack_allow_invalid = null, $nf_conntrack_helpers = null, $nf_conntrack_max = null, $nf_conntrack_tcp_timeout_established = null, $nf_conntrack_tcp_timeout_syn_recv = null, $nosmurfs = null, $protection_synflood = null, $protection_synflood_burst = null, $protection_synflood_rate = null, $smurf_log_level = null, $tcp_flags_log_level = null, $tcpflags = null) { - $params = ['delete' => $delete, + + public function setOptions($delete = null, $digest = null, $enable = null, $log_level_in = null, $log_level_out = null, $log_nf_conntrack = null, $ndp = null, $nf_conntrack_allow_invalid = null, $nf_conntrack_helpers = null, $nf_conntrack_max = null, $nf_conntrack_tcp_timeout_established = null, $nf_conntrack_tcp_timeout_syn_recv = null, $nosmurfs = null, $protection_synflood = null, $protection_synflood_burst = null, $protection_synflood_rate = null, $smurf_log_level = null, $tcp_flags_log_level = null, $tcpflags = null) + { + $params = [ + 'delete' => $delete, 'digest' => $digest, 'enable' => $enable, 'log_level_in' => $log_level_in, @@ -20145,22 +21926,23 @@ public function setOptions($delete = null, $digest = null, $enable = null, $log_ 'protection_synflood_rate' => $protection_synflood_rate, 'smurf_log_level' => $smurf_log_level, 'tcp_flags_log_level' => $tcp_flags_log_level, - 'tcpflags' => $tcpflags]; + 'tcpflags' => $tcpflags + ]; return $this->client->set("/nodes/{$this->node}/firewall/options", $params); } } /** * Class PVEFirewallNodeNodesLog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEFirewallNodeNodesLog { + class PVEFirewallNodeNodesLog + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20169,39 +21951,46 @@ class PVEFirewallNodeNodesLog { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read firewall log - * @param int $limit + * @param int $limit * @param int $since Display log since this UNIX epoch. - * @param int $start + * @param int $start * @param int $until Display log until this UNIX epoch. * @return Result */ - public function log($limit = null, $since = null, $start = null, $until = null) { - $params = ['limit' => $limit, + + public function log($limit = null, $since = null, $start = null, $until = null) + { + $params = [ + 'limit' => $limit, 'since' => $since, 'start' => $start, - 'until' => $until]; + 'until' => $until + ]; return $this->client->get("/nodes/{$this->node}/firewall/log", $params); } } /** * Class PVENodeNodesReplication - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesReplication { + class PVENodeNodesReplication + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20210,17 +21999,20 @@ class PVENodeNodesReplication { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemReplicationNodeNodesId * @param id * @return PVEItemReplicationNodeNodesId */ - public function get($id) { + public function get($id) + { return new PVEItemReplicationNodeNodesId($this->client, $this->node, $id); } @@ -20229,17 +22021,19 @@ public function get($id) { * @param int $guest Only list replication jobs for this guest. * @return Result */ - public function status($guest = null) { + + public function status($guest = null) + { $params = ['guest' => $guest]; return $this->client->get("/nodes/{$this->node}/replication", $params); } } - /** * Class PVEItemReplicationNodeNodesId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemReplicationNodeNodesId { + class PVEItemReplicationNodeNodesId + { /** * @ignore @@ -20250,7 +22044,6 @@ class PVEItemReplicationNodeNodesId { * @ignore */ private $id; - /** * @ignore */ @@ -20259,7 +22052,8 @@ class PVEItemReplicationNodeNodesId { /** * @ignore */ - function __construct($client, $node, $id) { + function __construct($client, $node, $id) + { $this->client = $client; $this->node = $node; $this->id = $id; @@ -20269,55 +22063,56 @@ function __construct($client, $node, $id) { * @ignore */ private $status; - /** * Get IdReplicationNodeNodesStatus * @return PVEIdReplicationNodeNodesStatus */ - public function getStatus() { + public function getStatus() + { return $this->status ?: ($this->status = new PVEIdReplicationNodeNodesStatus($this->client, $this->node, $this->id)); } - /** * @ignore */ private $log; - /** * Get IdReplicationNodeNodesLog * @return PVEIdReplicationNodeNodesLog */ - public function getLog() { + public function getLog() + { return $this->log ?: ($this->log = new PVEIdReplicationNodeNodesLog($this->client, $this->node, $this->id)); } - /** * @ignore */ private $scheduleNow; - /** * Get IdReplicationNodeNodesScheduleNow * @return PVEIdReplicationNodeNodesScheduleNow */ - public function getScheduleNow() { + public function getScheduleNow() + { return $this->scheduleNow ?: ($this->scheduleNow = new PVEIdReplicationNodeNodesScheduleNow($this->client, $this->node, $this->id)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/replication/{$this->id}"); } } - /** * Class PVEIdReplicationNodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEIdReplicationNodeNodesStatus { + class PVEIdReplicationNodeNodesStatus + { /** * @ignore @@ -20328,7 +22123,6 @@ class PVEIdReplicationNodeNodesStatus { * @ignore */ private $id; - /** * @ignore */ @@ -20337,26 +22131,32 @@ class PVEIdReplicationNodeNodesStatus { /** * @ignore */ - function __construct($client, $node, $id) { + function __construct($client, $node, $id) + { $this->client = $client; $this->node = $node; $this->id = $id; } + + /** * Get replication job status. * @return Result */ - public function jobStatus() { + + public function jobStatus() + { return $this->client->get("/nodes/{$this->node}/replication/{$this->id}/status"); } } /** * Class PVEIdReplicationNodeNodesLog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEIdReplicationNodeNodesLog { + class PVEIdReplicationNodeNodesLog + { /** * @ignore @@ -20367,7 +22167,6 @@ class PVEIdReplicationNodeNodesLog { * @ignore */ private $id; - /** * @ignore */ @@ -20376,30 +22175,38 @@ class PVEIdReplicationNodeNodesLog { /** * @ignore */ - function __construct($client, $node, $id) { + function __construct($client, $node, $id) + { $this->client = $client; $this->node = $node; $this->id = $id; } + + /** * Read replication job log. - * @param int $limit - * @param int $start + * @param int $limit + * @param int $start * @return Result */ - public function readJobLog($limit = null, $start = null) { - $params = ['limit' => $limit, - 'start' => $start]; + + public function readJobLog($limit = null, $start = null) + { + $params = [ + 'limit' => $limit, + 'start' => $start + ]; return $this->client->get("/nodes/{$this->node}/replication/{$this->id}/log", $params); } } /** * Class PVEIdReplicationNodeNodesScheduleNow - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEIdReplicationNodeNodesScheduleNow { + class PVEIdReplicationNodeNodesScheduleNow + { /** * @ignore @@ -20410,7 +22217,6 @@ class PVEIdReplicationNodeNodesScheduleNow { * @ignore */ private $id; - /** * @ignore */ @@ -20419,32 +22225,37 @@ class PVEIdReplicationNodeNodesScheduleNow { /** * @ignore */ - function __construct($client, $node, $id) { + function __construct($client, $node, $id) + { $this->client = $client; $this->node = $node; $this->id = $id; } + + /** * Schedule replication job to start as soon as possible. * @return Result */ - public function scheduleNow() { + + public function scheduleNow() + { return $this->client->create("/nodes/{$this->node}/replication/{$this->id}/schedule_now"); } } /** * Class PVENodeNodesCertificates - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesCertificates { + class PVENodeNodesCertificates + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20453,7 +22264,8 @@ class PVENodeNodesCertificates { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -20462,61 +22274,61 @@ function __construct($client, $node) { * @ignore */ private $acme; - /** * Get CertificatesNodeNodesAcme * @return PVECertificatesNodeNodesAcme */ - public function getAcme() { + public function getAcme() + { return $this->acme ?: ($this->acme = new PVECertificatesNodeNodesAcme($this->client, $this->node)); } - /** * @ignore */ private $info; - /** * Get CertificatesNodeNodesInfo * @return PVECertificatesNodeNodesInfo */ - public function getInfo() { + public function getInfo() + { return $this->info ?: ($this->info = new PVECertificatesNodeNodesInfo($this->client, $this->node)); } - /** * @ignore */ private $custom; - /** * Get CertificatesNodeNodesCustom * @return PVECertificatesNodeNodesCustom */ - public function getCustom() { + public function getCustom() + { return $this->custom ?: ($this->custom = new PVECertificatesNodeNodesCustom($this->client, $this->node)); } + /** * Node index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/certificates"); } } - /** * Class PVECertificatesNodeNodesAcme - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECertificatesNodeNodesAcme { + class PVECertificatesNodeNodesAcme + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20525,7 +22337,8 @@ class PVECertificatesNodeNodesAcme { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -20534,35 +22347,37 @@ function __construct($client, $node) { * @ignore */ private $certificate; - /** * Get AcmeCertificatesNodeNodesCertificate * @return PVEAcmeCertificatesNodeNodesCertificate */ - public function getCertificate() { + public function getCertificate() + { return $this->certificate ?: ($this->certificate = new PVEAcmeCertificatesNodeNodesCertificate($this->client, $this->node)); } + /** * ACME index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/certificates/acme"); } } - /** * Class PVEAcmeCertificatesNodeNodesCertificate - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAcmeCertificatesNodeNodesCertificate { + class PVEAcmeCertificatesNodeNodesCertificate + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20571,35 +22386,42 @@ class PVEAcmeCertificatesNodeNodesCertificate { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Revoke existing certificate from CA. * @return Result */ - public function revokeCertificate() { + + public function revokeCertificate() + { return $this->client->delete("/nodes/{$this->node}/certificates/acme/certificate"); } - /** * Order a new certificate from ACME-compatible CA. * @param bool $force Overwrite existing custom certificate. * @return Result */ - public function newCertificate($force = null) { + + public function newCertificate($force = null) + { $params = ['force' => $force]; return $this->client->create("/nodes/{$this->node}/certificates/acme/certificate", $params); } - /** * Renew existing certificate from CA. * @param bool $force Force renewal even if expiry is more than 30 days away. * @return Result */ - public function renewCertificate($force = null) { + + public function renewCertificate($force = null) + { $params = ['force' => $force]; return $this->client->set("/nodes/{$this->node}/certificates/acme/certificate", $params); } @@ -20607,15 +22429,15 @@ public function renewCertificate($force = null) { /** * Class PVECertificatesNodeNodesInfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECertificatesNodeNodesInfo { + class PVECertificatesNodeNodesInfo + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20624,31 +22446,36 @@ class PVECertificatesNodeNodesInfo { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get information about node's certificates. * @return Result */ - public function info() { + + public function info() + { return $this->client->get("/nodes/{$this->node}/certificates/info"); } } /** * Class PVECertificatesNodeNodesCustom - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVECertificatesNodeNodesCustom { + class PVECertificatesNodeNodesCustom + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20657,21 +22484,25 @@ class PVECertificatesNodeNodesCustom { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * DELETE custom certificate chain and key. * @param bool $restart Restart pveproxy. * @return Result */ - public function removeCustomCert($restart = null) { + + public function removeCustomCert($restart = null) + { $params = ['restart' => $restart]; return $this->client->delete("/nodes/{$this->node}/certificates/custom", $params); } - /** * Upload or update custom certificate chain and key. * @param string $certificates PEM encoded certificate (chain). @@ -20680,26 +22511,30 @@ public function removeCustomCert($restart = null) { * @param bool $restart Restart pveproxy. * @return Result */ - public function uploadCustomCert($certificates, $force = null, $key = null, $restart = null) { - $params = ['certificates' => $certificates, + + public function uploadCustomCert($certificates, $force = null, $key = null, $restart = null) + { + $params = [ + 'certificates' => $certificates, 'force' => $force, 'key' => $key, - 'restart' => $restart]; + 'restart' => $restart + ]; return $this->client->create("/nodes/{$this->node}/certificates/custom", $params); } } /** * Class PVENodeNodesConfig - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesConfig { + class PVENodeNodesConfig + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20708,22 +22543,26 @@ class PVENodeNodesConfig { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get node configuration options. * @param string $property Return only a specific property from the node configuration. * Enum: acme,acmedomain0,acmedomain1,acmedomain2,acmedomain3,acmedomain4,acmedomain5,description,startall-onboot-delay,wakeonlan * @return Result */ - public function getConfig($property = null) { + + public function getConfig($property = null) + { $params = ['property' => $property]; return $this->client->get("/nodes/{$this->node}/config", $params); } - /** * Set node configuration options. * @param string $acme Node specific ACME settings. @@ -20735,13 +22574,17 @@ public function getConfig($property = null) { * @param string $wakeonlan MAC address for wake on LAN * @return Result */ - public function setOptions($acme = null, $acmedomainN = null, $delete = null, $description = null, $digest = null, $startall_onboot_delay = null, $wakeonlan = null) { - $params = ['acme' => $acme, + + public function setOptions($acme = null, $acmedomainN = null, $delete = null, $description = null, $digest = null, $startall_onboot_delay = null, $wakeonlan = null) + { + $params = [ + 'acme' => $acme, 'delete' => $delete, 'description' => $description, 'digest' => $digest, 'startall-onboot-delay' => $startall_onboot_delay, - 'wakeonlan' => $wakeonlan]; + 'wakeonlan' => $wakeonlan + ]; $this->client->addIndexedParameter($params, 'acmedomain', $acmedomainN); return $this->client->set("/nodes/{$this->node}/config", $params); } @@ -20749,15 +22592,15 @@ public function setOptions($acme = null, $acmedomainN = null, $delete = null, $d /** * Class PVENodeNodesSdn - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesSdn { + class PVENodeNodesSdn + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20766,7 +22609,8 @@ class PVENodeNodesSdn { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } @@ -20775,35 +22619,37 @@ function __construct($client, $node) { * @ignore */ private $zones; - /** * Get SdnNodeNodesZones * @return PVESdnNodeNodesZones */ - public function getZones() { + public function getZones() + { return $this->zones ?: ($this->zones = new PVESdnNodeNodesZones($this->client, $this->node)); } + /** * SDN index. * @return Result */ - public function sdnindex() { + + public function sdnindex() + { return $this->client->get("/nodes/{$this->node}/sdn"); } } - /** * Class PVESdnNodeNodesZones - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVESdnNodeNodesZones { + class PVESdnNodeNodesZones + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20812,17 +22658,20 @@ class PVESdnNodeNodesZones { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + /** * Get ItemZonesSdnNodeNodesZone * @param zone * @return PVEItemZonesSdnNodeNodesZone */ - public function get($zone) { + public function get($zone) + { return new PVEItemZonesSdnNodeNodesZone($this->client, $this->node, $zone); } @@ -20830,16 +22679,18 @@ public function get($zone) { * Get status for all zones. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/sdn/zones"); } } - /** * Class PVEItemZonesSdnNodeNodesZone - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemZonesSdnNodeNodesZone { + class PVEItemZonesSdnNodeNodesZone + { /** * @ignore @@ -20850,7 +22701,6 @@ class PVEItemZonesSdnNodeNodesZone { * @ignore */ private $zone; - /** * @ignore */ @@ -20859,7 +22709,8 @@ class PVEItemZonesSdnNodeNodesZone { /** * @ignore */ - function __construct($client, $node, $zone) { + function __construct($client, $node, $zone) + { $this->client = $client; $this->node = $node; $this->zone = $zone; @@ -20869,29 +22720,32 @@ function __construct($client, $node, $zone) { * @ignore */ private $content; - /** * Get ZoneZonesSdnNodeNodesContent * @return PVEZoneZonesSdnNodeNodesContent */ - public function getContent() { + public function getContent() + { return $this->content ?: ($this->content = new PVEZoneZonesSdnNodeNodesContent($this->client, $this->node, $this->zone)); } + /** - * + * * @return Result */ - public function diridx() { + + public function diridx() + { return $this->client->get("/nodes/{$this->node}/sdn/zones/{$this->zone}"); } } - /** * Class PVEZoneZonesSdnNodeNodesContent - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEZoneZonesSdnNodeNodesContent { + class PVEZoneZonesSdnNodeNodesContent + { /** * @ignore @@ -20902,7 +22756,6 @@ class PVEZoneZonesSdnNodeNodesContent { * @ignore */ private $zone; - /** * @ignore */ @@ -20911,32 +22764,37 @@ class PVEZoneZonesSdnNodeNodesContent { /** * @ignore */ - function __construct($client, $node, $zone) { + function __construct($client, $node, $zone) + { $this->client = $client; $this->node = $node; $this->zone = $zone; } + + /** * List zone content. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/nodes/{$this->node}/sdn/zones/{$this->zone}/content"); } } /** * Class PVENodeNodesVersion - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesVersion { + class PVENodeNodesVersion + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20945,31 +22803,36 @@ class PVENodeNodesVersion { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * API version details * @return Result */ - public function version() { + + public function version() + { return $this->client->get("/nodes/{$this->node}/version"); } } /** * Class PVENodeNodesStatus - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesStatus { + class PVENodeNodesStatus + { /** * @ignore */ private $node; - /** * @ignore */ @@ -20978,26 +22841,32 @@ class PVENodeNodesStatus { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read node status * @return Result */ - public function status() { + + public function status() + { return $this->client->get("/nodes/{$this->node}/status"); } - /** * Reboot or shutdown a node. * @param string $command Specify the command. * Enum: reboot,shutdown * @return Result */ - public function nodeCmd($command) { + + public function nodeCmd($command) + { $params = ['command' => $command]; return $this->client->create("/nodes/{$this->node}/status", $params); } @@ -21005,15 +22874,15 @@ public function nodeCmd($command) { /** * Class PVENodeNodesNetstat - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesNetstat { + class PVENodeNodesNetstat + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21022,31 +22891,36 @@ class PVENodeNodesNetstat { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read tap/vm network device interface counters * @return Result */ - public function netstat() { + + public function netstat() + { return $this->client->get("/nodes/{$this->node}/netstat"); } } /** * Class PVENodeNodesExecute - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesExecute { + class PVENodeNodesExecute + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21055,17 +22929,22 @@ class PVENodeNodesExecute { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Execute multiple commands in order, root only. * @param string $commands JSON encoded array of commands. * @return Result */ - public function execute($commands) { + + public function execute($commands) + { $params = ['commands' => $commands]; return $this->client->create("/nodes/{$this->node}/execute", $params); } @@ -21073,15 +22952,15 @@ public function execute($commands) { /** * Class PVENodeNodesWakeonlan - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesWakeonlan { + class PVENodeNodesWakeonlan + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21090,31 +22969,36 @@ class PVENodeNodesWakeonlan { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Try to wake a node via 'wake on LAN' network packet. * @return Result */ - public function wakeonlan() { + + public function wakeonlan() + { return $this->client->create("/nodes/{$this->node}/wakeonlan"); } } /** * Class PVENodeNodesRrd - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesRrd { + class PVENodeNodesRrd + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21123,11 +23007,14 @@ class PVENodeNodesRrd { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read node RRD statistics (returns PNG) * @param string $ds The list of datasources you want to display. @@ -21137,25 +23024,29 @@ function __construct($client, $node) { * Enum: AVERAGE,MAX * @return Result */ - public function rrd($ds, $timeframe, $cf = null) { - $params = ['ds' => $ds, + + public function rrd($ds, $timeframe, $cf = null) + { + $params = [ + 'ds' => $ds, 'timeframe' => $timeframe, - 'cf' => $cf]; + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/rrd", $params); } } /** * Class PVENodeNodesRrddata - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesRrddata { + class PVENodeNodesRrddata + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21164,11 +23055,14 @@ class PVENodeNodesRrddata { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read node RRD statistics * @param string $timeframe Specify the time frame you are interested in. @@ -21177,24 +23071,28 @@ function __construct($client, $node) { * Enum: AVERAGE,MAX * @return Result */ - public function rrddata($timeframe, $cf = null) { - $params = ['timeframe' => $timeframe, - 'cf' => $cf]; + + public function rrddata($timeframe, $cf = null) + { + $params = [ + 'timeframe' => $timeframe, + 'cf' => $cf + ]; return $this->client->get("/nodes/{$this->node}/rrddata", $params); } } /** * Class PVENodeNodesSyslog - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesSyslog { + class PVENodeNodesSyslog + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21203,41 +23101,48 @@ class PVENodeNodesSyslog { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read system log - * @param int $limit + * @param int $limit * @param string $service Service ID * @param string $since Display all log since this date-time string. - * @param int $start + * @param int $start * @param string $until Display all log until this date-time string. * @return Result */ - public function syslog($limit = null, $service = null, $since = null, $start = null, $until = null) { - $params = ['limit' => $limit, + + public function syslog($limit = null, $service = null, $since = null, $start = null, $until = null) + { + $params = [ + 'limit' => $limit, 'service' => $service, 'since' => $since, 'start' => $start, - 'until' => $until]; + 'until' => $until + ]; return $this->client->get("/nodes/{$this->node}/syslog", $params); } } /** * Class PVENodeNodesJournal - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesJournal { + class PVENodeNodesJournal + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21246,11 +23151,14 @@ class PVENodeNodesJournal { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read Journal * @param string $endcursor End before the given Cursor. Conflicts with 'until' @@ -21260,27 +23168,31 @@ function __construct($client, $node) { * @param int $until Display all log until this UNIX epoch. Conflicts with 'endcursor'. * @return Result */ - public function journal($endcursor = null, $lastentries = null, $since = null, $startcursor = null, $until = null) { - $params = ['endcursor' => $endcursor, + + public function journal($endcursor = null, $lastentries = null, $since = null, $startcursor = null, $until = null) + { + $params = [ + 'endcursor' => $endcursor, 'lastentries' => $lastentries, 'since' => $since, 'startcursor' => $startcursor, - 'until' => $until]; + 'until' => $until + ]; return $this->client->get("/nodes/{$this->node}/journal", $params); } } /** * Class PVENodeNodesVncshell - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesVncshell { + class PVENodeNodesVncshell + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21289,11 +23201,14 @@ class PVENodeNodesVncshell { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Creates a VNC Shell proxy. * @param string $cmd Run specific command or default to login (requires 'root@pam') @@ -21304,27 +23219,31 @@ function __construct($client, $node) { * @param int $width sets the width of the console in pixels. * @return Result */ - public function vncshell($cmd = null, $cmd_opts = null, $height = null, $websocket = null, $width = null) { - $params = ['cmd' => $cmd, + + public function vncshell($cmd = null, $cmd_opts = null, $height = null, $websocket = null, $width = null) + { + $params = [ + 'cmd' => $cmd, 'cmd-opts' => $cmd_opts, 'height' => $height, 'websocket' => $websocket, - 'width' => $width]; + 'width' => $width + ]; return $this->client->create("/nodes/{$this->node}/vncshell", $params); } } /** * Class PVENodeNodesTermproxy - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesTermproxy { + class PVENodeNodesTermproxy + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21333,11 +23252,14 @@ class PVENodeNodesTermproxy { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Creates a VNC Shell proxy. * @param string $cmd Run specific command or default to login (requires 'root@pam') @@ -21345,24 +23267,28 @@ function __construct($client, $node) { * @param string $cmd_opts Add parameters to a command. Encoded as null terminated strings. * @return Result */ - public function termproxy($cmd = null, $cmd_opts = null) { - $params = ['cmd' => $cmd, - 'cmd-opts' => $cmd_opts]; + + public function termproxy($cmd = null, $cmd_opts = null) + { + $params = [ + 'cmd' => $cmd, + 'cmd-opts' => $cmd_opts + ]; return $this->client->create("/nodes/{$this->node}/termproxy", $params); } } /** * Class PVENodeNodesVncwebsocket - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesVncwebsocket { + class PVENodeNodesVncwebsocket + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21371,35 +23297,42 @@ class PVENodeNodesVncwebsocket { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Opens a websocket for VNC traffic. * @param int $port Port number returned by previous vncproxy call. * @param string $vncticket Ticket from previous call to vncproxy. * @return Result */ - public function vncwebsocket($port, $vncticket) { - $params = ['port' => $port, - 'vncticket' => $vncticket]; + + public function vncwebsocket($port, $vncticket) + { + $params = [ + 'port' => $port, + 'vncticket' => $vncticket + ]; return $this->client->get("/nodes/{$this->node}/vncwebsocket", $params); } } /** * Class PVENodeNodesSpiceshell - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesSpiceshell { + class PVENodeNodesSpiceshell + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21408,11 +23341,14 @@ class PVENodeNodesSpiceshell { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Creates a SPICE shell. * @param string $cmd Run specific command or default to login (requires 'root@pam') @@ -21421,25 +23357,29 @@ function __construct($client, $node) { * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @return Result */ - public function spiceshell($cmd = null, $cmd_opts = null, $proxy = null) { - $params = ['cmd' => $cmd, + + public function spiceshell($cmd = null, $cmd_opts = null, $proxy = null) + { + $params = [ + 'cmd' => $cmd, 'cmd-opts' => $cmd_opts, - 'proxy' => $proxy]; + 'proxy' => $proxy + ]; return $this->client->create("/nodes/{$this->node}/spiceshell", $params); } } /** * Class PVENodeNodesDns - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesDns { + class PVENodeNodesDns + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21448,19 +23388,23 @@ class PVENodeNodesDns { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read DNS settings. * @return Result */ - public function dns() { + + public function dns() + { return $this->client->get("/nodes/{$this->node}/dns"); } - /** * Write DNS settings. * @param string $search Search domain for host-name lookup. @@ -21469,26 +23413,30 @@ public function dns() { * @param string $dns3 Third name server IP address. * @return Result */ - public function updateDns($search, $dns1 = null, $dns2 = null, $dns3 = null) { - $params = ['search' => $search, + + public function updateDns($search, $dns1 = null, $dns2 = null, $dns3 = null) + { + $params = [ + 'search' => $search, 'dns1' => $dns1, 'dns2' => $dns2, - 'dns3' => $dns3]; + 'dns3' => $dns3 + ]; return $this->client->set("/nodes/{$this->node}/dns", $params); } } /** * Class PVENodeNodesTime - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesTime { + class PVENodeNodesTime + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21497,25 +23445,31 @@ class PVENodeNodesTime { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Read server time and time zone settings. * @return Result */ - public function time() { + + public function time() + { return $this->client->get("/nodes/{$this->node}/time"); } - /** * Set time zone. * @param string $timezone Time zone. The file '/usr/share/zoneinfo/zone.tab' contains the list of valid names. * @return Result */ - public function setTimezone($timezone) { + + public function setTimezone($timezone) + { $params = ['timezone' => $timezone]; return $this->client->set("/nodes/{$this->node}/time", $params); } @@ -21523,15 +23477,15 @@ public function setTimezone($timezone) { /** * Class PVENodeNodesAplinfo - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesAplinfo { + class PVENodeNodesAplinfo + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21540,43 +23494,51 @@ class PVENodeNodesAplinfo { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get list of appliances. * @return Result */ - public function aplinfo() { + + public function aplinfo() + { return $this->client->get("/nodes/{$this->node}/aplinfo"); } - /** * Download appliance templates. * @param string $storage The storage where the template will be stored * @param string $template The template which will downloaded * @return Result */ - public function aplDownload($storage, $template) { - $params = ['storage' => $storage, - 'template' => $template]; + + public function aplDownload($storage, $template) + { + $params = [ + 'storage' => $storage, + 'template' => $template + ]; return $this->client->create("/nodes/{$this->node}/aplinfo", $params); } } /** * Class PVENodeNodesQueryUrlMetadata - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesQueryUrlMetadata { + class PVENodeNodesQueryUrlMetadata + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21585,35 +23547,42 @@ class PVENodeNodesQueryUrlMetadata { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Query metadata of an URL: file size, file name and mime type. * @param string $url The URL to query the metadata from. * @param bool $verify_certificates If false, no SSL/TLS certificates will be verified. * @return Result */ - public function queryUrlMetadata($url, $verify_certificates = null) { - $params = ['url' => $url, - 'verify-certificates' => $verify_certificates]; + + public function queryUrlMetadata($url, $verify_certificates = null) + { + $params = [ + 'url' => $url, + 'verify-certificates' => $verify_certificates + ]; return $this->client->get("/nodes/{$this->node}/query-url-metadata", $params); } } /** * Class PVENodeNodesReport - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesReport { + class PVENodeNodesReport + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21622,31 +23591,36 @@ class PVENodeNodesReport { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Gather various systems information about a node * @return Result */ - public function report() { + + public function report() + { return $this->client->get("/nodes/{$this->node}/report"); } } /** * Class PVENodeNodesStartall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesStartall { + class PVENodeNodesStartall + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21655,35 +23629,42 @@ class PVENodeNodesStartall { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Start all VMs and containers located on this node (by default only those with onboot=1). * @param bool $force Issue start command even if virtual guest have 'onboot' not set or set to off. * @param string $vms Only consider guests from this comma separated list of VMIDs. * @return Result */ - public function startall($force = null, $vms = null) { - $params = ['force' => $force, - 'vms' => $vms]; + + public function startall($force = null, $vms = null) + { + $params = [ + 'force' => $force, + 'vms' => $vms + ]; return $this->client->create("/nodes/{$this->node}/startall", $params); } } /** * Class PVENodeNodesStopall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesStopall { + class PVENodeNodesStopall + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21692,11 +23673,14 @@ class PVENodeNodesStopall { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Stop all VMs and Containers. * @param bool $force_stop Force a hard-stop after the timeout. @@ -21704,25 +23688,29 @@ function __construct($client, $node) { * @param string $vms Only consider Guests with these IDs. * @return Result */ - public function stopall($force_stop = null, $timeout = null, $vms = null) { - $params = ['force-stop' => $force_stop, + + public function stopall($force_stop = null, $timeout = null, $vms = null) + { + $params = [ + 'force-stop' => $force_stop, 'timeout' => $timeout, - 'vms' => $vms]; + 'vms' => $vms + ]; return $this->client->create("/nodes/{$this->node}/stopall", $params); } } /** * Class PVENodeNodesSuspendall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesSuspendall { + class PVENodeNodesSuspendall + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21731,17 +23719,22 @@ class PVENodeNodesSuspendall { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Suspend all VMs. * @param string $vms Only consider Guests with these IDs. * @return Result */ - public function suspendall($vms = null) { + + public function suspendall($vms = null) + { $params = ['vms' => $vms]; return $this->client->create("/nodes/{$this->node}/suspendall", $params); } @@ -21749,15 +23742,15 @@ public function suspendall($vms = null) { /** * Class PVENodeNodesMigrateall - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesMigrateall { + class PVENodeNodesMigrateall + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21766,11 +23759,14 @@ class PVENodeNodesMigrateall { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Migrate all VMs and Containers. * @param string $target Target node. @@ -21779,26 +23775,30 @@ function __construct($client, $node) { * @param bool $with_local_disks Enable live storage migration for local disk * @return Result */ - public function migrateall($target, $maxworkers = null, $vms = null, $with_local_disks = null) { - $params = ['target' => $target, + + public function migrateall($target, $maxworkers = null, $vms = null, $with_local_disks = null) + { + $params = [ + 'target' => $target, 'maxworkers' => $maxworkers, 'vms' => $vms, - 'with-local-disks' => $with_local_disks]; + 'with-local-disks' => $with_local_disks + ]; return $this->client->create("/nodes/{$this->node}/migrateall", $params); } } /** * Class PVENodeNodesHosts - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVENodeNodesHosts { + class PVENodeNodesHosts + { /** * @ignore */ private $node; - /** * @ignore */ @@ -21807,37 +23807,46 @@ class PVENodeNodesHosts { /** * @ignore */ - function __construct($client, $node) { + function __construct($client, $node) + { $this->client = $client; $this->node = $node; } + + /** * Get the content of /etc/hosts. * @return Result */ - public function getEtcHosts() { + + public function getEtcHosts() + { return $this->client->get("/nodes/{$this->node}/hosts"); } - /** * Write /etc/hosts. * @param string $data The target content of /etc/hosts. * @param string $digest Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. * @return Result */ - public function writeEtcHosts($data, $digest = null) { - $params = ['data' => $data, - 'digest' => $digest]; + + public function writeEtcHosts($data, $digest = null) + { + $params = [ + 'data' => $data, + 'digest' => $digest + ]; return $this->client->create("/nodes/{$this->node}/hosts", $params); } } /** * Class PVEStorage - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEStorage { + class PVEStorage + { /** * @ignore @@ -21847,16 +23856,19 @@ class PVEStorage { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemStorageStorage * @param storage * @return PVEItemStorageStorage */ - public function get($storage) { + public function get($storage) + { return new PVEItemStorageStorage($this->client, $storage); } @@ -21866,11 +23878,12 @@ public function get($storage) { * Enum: btrfs,cephfs,cifs,dir,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,pbs,rbd,zfs,zfspool * @return Result */ - public function index($type = null) { + + public function index($type = null) + { $params = ['type' => $type]; return $this->client->get("/storage", $params); } - /** * Create a new storage. * @param string $storage The storage identifier. @@ -21882,7 +23895,7 @@ public function index($type = null) { * @param string $bwlimit Set I/O bandwidth limit for various operations (in KiB/s). * @param string $comstar_hg host group for comstar views * @param string $comstar_tg target group for comstar views - * @param string $content Allowed content types. NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. + * @param string $content Allowed content types. NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. * @param string $content_dirs Overrides for default content type directories. * @param bool $create_base_path Create the base directory if it doesn't exist. * @param bool $create_subdirs Populate the directory with the default structure. @@ -21940,8 +23953,11 @@ public function index($type = null) { * @param string $volume Glusterfs Volume. * @return Result */ - public function create($storage, $type, $authsupported = null, $base = null, $blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $content_dirs = null, $create_base_path = null, $create_subdirs = null, $data_pool = null, $datastore = null, $disable = null, $domain = null, $encryption_key = null, $export = null, $fingerprint = null, $format = null, $fs_name = null, $fuse = null, $is_mountpoint = null, $iscsiprovider = null, $keyring = null, $krbd = null, $lio_tpg = null, $master_pubkey = null, $max_protected_backups = null, $maxfiles = null, $mkdir = null, $monhost = null, $mountpoint = null, $namespace = null, $nocow = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $path = null, $pool = null, $port = null, $portal = null, $preallocation = null, $prune_backups = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $share = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $target = null, $thinpool = null, $transport = null, $username = null, $vgname = null, $volume = null) { - $params = ['storage' => $storage, + + public function create($storage, $type, $authsupported = null, $base = null, $blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $content_dirs = null, $create_base_path = null, $create_subdirs = null, $data_pool = null, $datastore = null, $disable = null, $domain = null, $encryption_key = null, $export = null, $fingerprint = null, $format = null, $fs_name = null, $fuse = null, $is_mountpoint = null, $iscsiprovider = null, $keyring = null, $krbd = null, $lio_tpg = null, $master_pubkey = null, $max_protected_backups = null, $maxfiles = null, $mkdir = null, $monhost = null, $mountpoint = null, $namespace = null, $nocow = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $path = null, $pool = null, $port = null, $portal = null, $preallocation = null, $prune_backups = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $share = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $target = null, $thinpool = null, $transport = null, $username = null, $vgname = null, $volume = null) + { + $params = [ + 'storage' => $storage, 'type' => $type, 'authsupported' => $authsupported, 'base' => $base, @@ -22001,22 +24017,22 @@ public function create($storage, $type, $authsupported = null, $base = null, $bl 'transport' => $transport, 'username' => $username, 'vgname' => $vgname, - 'volume' => $volume]; + 'volume' => $volume + ]; return $this->client->create("/storage", $params); } } - /** * Class PVEItemStorageStorage - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemStorageStorage { + class PVEItemStorageStorage + { /** * @ignore */ private $storage; - /** * @ignore */ @@ -22025,34 +24041,39 @@ class PVEItemStorageStorage { /** * @ignore */ - function __construct($client, $storage) { + function __construct($client, $storage) + { $this->client = $client; $this->storage = $storage; } + + /** * Delete storage configuration. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/storage/{$this->storage}"); } - /** * Read storage configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/storage/{$this->storage}"); } - /** * Update storage configuration. * @param string $blocksize block size * @param string $bwlimit Set I/O bandwidth limit for various operations (in KiB/s). * @param string $comstar_hg host group for comstar views * @param string $comstar_tg target group for comstar views - * @param string $content Allowed content types. NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. + * @param string $content Allowed content types. NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. * @param string $content_dirs Overrides for default content type directories. * @param bool $create_base_path Create the base directory if it doesn't exist. * @param bool $create_subdirs Populate the directory with the default structure. @@ -22102,8 +24123,11 @@ public function read() { * @param string $username RBD Id. * @return Result */ - public function update($blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $content_dirs = null, $create_base_path = null, $create_subdirs = null, $data_pool = null, $delete = null, $digest = null, $disable = null, $domain = null, $encryption_key = null, $fingerprint = null, $format = null, $fs_name = null, $fuse = null, $is_mountpoint = null, $keyring = null, $krbd = null, $lio_tpg = null, $master_pubkey = null, $max_protected_backups = null, $maxfiles = null, $mkdir = null, $monhost = null, $mountpoint = null, $namespace = null, $nocow = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $pool = null, $port = null, $preallocation = null, $prune_backups = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $transport = null, $username = null) { - $params = ['blocksize' => $blocksize, + + public function update($blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $content_dirs = null, $create_base_path = null, $create_subdirs = null, $data_pool = null, $delete = null, $digest = null, $disable = null, $domain = null, $encryption_key = null, $fingerprint = null, $format = null, $fs_name = null, $fuse = null, $is_mountpoint = null, $keyring = null, $krbd = null, $lio_tpg = null, $master_pubkey = null, $max_protected_backups = null, $maxfiles = null, $mkdir = null, $monhost = null, $mountpoint = null, $namespace = null, $nocow = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $pool = null, $port = null, $preallocation = null, $prune_backups = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $transport = null, $username = null) + { + $params = [ + 'blocksize' => $blocksize, 'bwlimit' => $bwlimit, 'comstar_hg' => $comstar_hg, 'comstar_tg' => $comstar_tg, @@ -22151,16 +24175,18 @@ public function update($blocksize = null, $bwlimit = null, $comstar_hg = null, $ 'subdir' => $subdir, 'tagged_only' => $tagged_only, 'transport' => $transport, - 'username' => $username]; + 'username' => $username + ]; return $this->client->set("/storage/{$this->storage}", $params); } } /** * Class PVEAccess - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccess { + class PVEAccess + { /** * @ignore @@ -22170,7 +24196,8 @@ class PVEAccess { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -22178,146 +24205,140 @@ function __construct($client) { * @ignore */ private $users; - /** * Get AccessUsers * @return PVEAccessUsers */ - public function getUsers() { + public function getUsers() + { return $this->users ?: ($this->users = new PVEAccessUsers($this->client)); } - /** * @ignore */ private $groups; - /** * Get AccessGroups * @return PVEAccessGroups */ - public function getGroups() { + public function getGroups() + { return $this->groups ?: ($this->groups = new PVEAccessGroups($this->client)); } - /** * @ignore */ private $roles; - /** * Get AccessRoles * @return PVEAccessRoles */ - public function getRoles() { + public function getRoles() + { return $this->roles ?: ($this->roles = new PVEAccessRoles($this->client)); } - /** * @ignore */ private $acl; - /** * Get AccessAcl * @return PVEAccessAcl */ - public function getAcl() { + public function getAcl() + { return $this->acl ?: ($this->acl = new PVEAccessAcl($this->client)); } - /** * @ignore */ private $domains; - /** * Get AccessDomains * @return PVEAccessDomains */ - public function getDomains() { + public function getDomains() + { return $this->domains ?: ($this->domains = new PVEAccessDomains($this->client)); } - /** * @ignore */ private $openid; - /** * Get AccessOpenid * @return PVEAccessOpenid */ - public function getOpenid() { + public function getOpenid() + { return $this->openid ?: ($this->openid = new PVEAccessOpenid($this->client)); } - /** * @ignore */ private $tfa; - /** * Get AccessTfa * @return PVEAccessTfa */ - public function getTfa() { + public function getTfa() + { return $this->tfa ?: ($this->tfa = new PVEAccessTfa($this->client)); } - /** * @ignore */ private $ticket; - /** * Get AccessTicket * @return PVEAccessTicket */ - public function getTicket() { + public function getTicket() + { return $this->ticket ?: ($this->ticket = new PVEAccessTicket($this->client)); } - /** * @ignore */ private $password; - /** * Get AccessPassword * @return PVEAccessPassword */ - public function getPassword() { + public function getPassword() + { return $this->password ?: ($this->password = new PVEAccessPassword($this->client)); } - /** * @ignore */ private $permissions; - /** * Get AccessPermissions * @return PVEAccessPermissions */ - public function getPermissions() { + public function getPermissions() + { return $this->permissions ?: ($this->permissions = new PVEAccessPermissions($this->client)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/access"); } } - /** * Class PVEAccessUsers - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessUsers { + class PVEAccessUsers + { /** * @ignore @@ -22327,16 +24348,19 @@ class PVEAccessUsers { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemUsersAccessUserid * @param userid * @return PVEItemUsersAccessUserid */ - public function get($userid) { + public function get($userid) + { return new PVEItemUsersAccessUserid($this->client, $userid); } @@ -22346,28 +24370,34 @@ public function get($userid) { * @param bool $full Include group and token information. * @return Result */ - public function index($enabled = null, $full = null) { - $params = ['enabled' => $enabled, - 'full' => $full]; + + public function index($enabled = null, $full = null) + { + $params = [ + 'enabled' => $enabled, + 'full' => $full + ]; return $this->client->get("/access/users", $params); } - /** * Create new user. * @param string $userid Full User ID, in the `name@realm` format. - * @param string $comment - * @param string $email + * @param string $comment + * @param string $email * @param bool $enable Enable the account (default). You can set this to '0' to disable the account * @param int $expire Account expiration date (seconds since epoch). '0' means no expiration date. - * @param string $firstname - * @param string $groups + * @param string $firstname + * @param string $groups * @param string $keys Keys for two factor auth (yubico). - * @param string $lastname + * @param string $lastname * @param string $password Initial password. * @return Result */ - public function createUser($userid, $comment = null, $email = null, $enable = null, $expire = null, $firstname = null, $groups = null, $keys = null, $lastname = null, $password = null) { - $params = ['userid' => $userid, + + public function createUser($userid, $comment = null, $email = null, $enable = null, $expire = null, $firstname = null, $groups = null, $keys = null, $lastname = null, $password = null) + { + $params = [ + 'userid' => $userid, 'comment' => $comment, 'email' => $email, 'enable' => $enable, @@ -22376,22 +24406,22 @@ public function createUser($userid, $comment = null, $email = null, $enable = nu 'groups' => $groups, 'keys' => $keys, 'lastname' => $lastname, - 'password' => $password]; + 'password' => $password + ]; return $this->client->create("/access/users", $params); } } - /** * Class PVEItemUsersAccessUserid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemUsersAccessUserid { + class PVEItemUsersAccessUserid + { /** * @ignore */ private $userid; - /** * @ignore */ @@ -22400,7 +24430,8 @@ class PVEItemUsersAccessUserid { /** * @ignore */ - function __construct($client, $userid) { + function __construct($client, $userid) + { $this->client = $client; $this->userid = $userid; } @@ -22409,72 +24440,76 @@ function __construct($client, $userid) { * @ignore */ private $tfa; - /** * Get UseridUsersAccessTfa * @return PVEUseridUsersAccessTfa */ - public function getTfa() { + public function getTfa() + { return $this->tfa ?: ($this->tfa = new PVEUseridUsersAccessTfa($this->client, $this->userid)); } - /** * @ignore */ private $unlockTfa; - /** * Get UseridUsersAccessUnlockTfa * @return PVEUseridUsersAccessUnlockTfa */ - public function getUnlockTfa() { + public function getUnlockTfa() + { return $this->unlockTfa ?: ($this->unlockTfa = new PVEUseridUsersAccessUnlockTfa($this->client, $this->userid)); } - /** * @ignore */ private $token; - /** * Get UseridUsersAccessToken * @return PVEUseridUsersAccessToken */ - public function getToken() { + public function getToken() + { return $this->token ?: ($this->token = new PVEUseridUsersAccessToken($this->client, $this->userid)); } + /** * Delete user. * @return Result */ - public function deleteUser() { + + public function deleteUser() + { return $this->client->delete("/access/users/{$this->userid}"); } - /** * Get user configuration. * @return Result */ - public function readUser() { + + public function readUser() + { return $this->client->get("/access/users/{$this->userid}"); } - /** * Update user configuration. - * @param bool $append - * @param string $comment - * @param string $email + * @param bool $append + * @param string $comment + * @param string $email * @param bool $enable Enable the account (default). You can set this to '0' to disable the account * @param int $expire Account expiration date (seconds since epoch). '0' means no expiration date. - * @param string $firstname - * @param string $groups + * @param string $firstname + * @param string $groups * @param string $keys Keys for two factor auth (yubico). - * @param string $lastname + * @param string $lastname * @return Result */ - public function updateUser($append = null, $comment = null, $email = null, $enable = null, $expire = null, $firstname = null, $groups = null, $keys = null, $lastname = null) { - $params = ['append' => $append, + + public function updateUser($append = null, $comment = null, $email = null, $enable = null, $expire = null, $firstname = null, $groups = null, $keys = null, $lastname = null) + { + $params = [ + 'append' => $append, 'comment' => $comment, 'email' => $email, 'enable' => $enable, @@ -22482,22 +24517,22 @@ public function updateUser($append = null, $comment = null, $email = null, $enab 'firstname' => $firstname, 'groups' => $groups, 'keys' => $keys, - 'lastname' => $lastname]; + 'lastname' => $lastname + ]; return $this->client->set("/access/users/{$this->userid}", $params); } } - /** * Class PVEUseridUsersAccessTfa - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEUseridUsersAccessTfa { + class PVEUseridUsersAccessTfa + { /** * @ignore */ private $userid; - /** * @ignore */ @@ -22506,17 +24541,22 @@ class PVEUseridUsersAccessTfa { /** * @ignore */ - function __construct($client, $userid) { + function __construct($client, $userid) + { $this->client = $client; $this->userid = $userid; } + + /** * Get user TFA types (Personal and Realm). * @param bool $multiple Request all entries as an array. * @return Result */ - public function readUserTfaType($multiple = null) { + + public function readUserTfaType($multiple = null) + { $params = ['multiple' => $multiple]; return $this->client->get("/access/users/{$this->userid}/tfa", $params); } @@ -22524,15 +24564,15 @@ public function readUserTfaType($multiple = null) { /** * Class PVEUseridUsersAccessUnlockTfa - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEUseridUsersAccessUnlockTfa { + class PVEUseridUsersAccessUnlockTfa + { /** * @ignore */ private $userid; - /** * @ignore */ @@ -22541,31 +24581,36 @@ class PVEUseridUsersAccessUnlockTfa { /** * @ignore */ - function __construct($client, $userid) { + function __construct($client, $userid) + { $this->client = $client; $this->userid = $userid; } + + /** * Unlock a user's TFA authentication. * @return Result */ - public function unlockTfa() { + + public function unlockTfa() + { return $this->client->set("/access/users/{$this->userid}/unlock-tfa"); } } /** * Class PVEUseridUsersAccessToken - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEUseridUsersAccessToken { + class PVEUseridUsersAccessToken + { /** * @ignore */ private $userid; - /** * @ignore */ @@ -22574,17 +24619,20 @@ class PVEUseridUsersAccessToken { /** * @ignore */ - function __construct($client, $userid) { + function __construct($client, $userid) + { $this->client = $client; $this->userid = $userid; } + /** * Get ItemTokenUseridUsersAccessTokenid * @param tokenid * @return PVEItemTokenUseridUsersAccessTokenid */ - public function get($tokenid) { + public function get($tokenid) + { return new PVEItemTokenUseridUsersAccessTokenid($this->client, $this->userid, $tokenid); } @@ -22592,16 +24640,18 @@ public function get($tokenid) { * Get user API tokens. * @return Result */ - public function tokenIndex() { + + public function tokenIndex() + { return $this->client->get("/access/users/{$this->userid}/token"); } } - /** * Class PVEItemTokenUseridUsersAccessTokenid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemTokenUseridUsersAccessTokenid { + class PVEItemTokenUseridUsersAccessTokenid + { /** * @ignore @@ -22612,7 +24662,6 @@ class PVEItemTokenUseridUsersAccessTokenid { * @ignore */ private $tokenid; - /** * @ignore */ @@ -22621,62 +24670,75 @@ class PVEItemTokenUseridUsersAccessTokenid { /** * @ignore */ - function __construct($client, $userid, $tokenid) { + function __construct($client, $userid, $tokenid) + { $this->client = $client; $this->userid = $userid; $this->tokenid = $tokenid; } + + /** * Remove API token for a specific user. * @return Result */ - public function removeToken() { + + public function removeToken() + { return $this->client->delete("/access/users/{$this->userid}/token/{$this->tokenid}"); } - /** * Get specific API token information. * @return Result */ - public function readToken() { + + public function readToken() + { return $this->client->get("/access/users/{$this->userid}/token/{$this->tokenid}"); } - /** * Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! - * @param string $comment + * @param string $comment * @param int $expire API token expiration date (seconds since epoch). '0' means no expiration date. * @param bool $privsep Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. * @return Result */ - public function generateToken($comment = null, $expire = null, $privsep = null) { - $params = ['comment' => $comment, + + public function generateToken($comment = null, $expire = null, $privsep = null) + { + $params = [ + 'comment' => $comment, 'expire' => $expire, - 'privsep' => $privsep]; + 'privsep' => $privsep + ]; return $this->client->create("/access/users/{$this->userid}/token/{$this->tokenid}", $params); } - /** * Update API token for a specific user. - * @param string $comment + * @param string $comment * @param int $expire API token expiration date (seconds since epoch). '0' means no expiration date. * @param bool $privsep Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. * @return Result */ - public function updateTokenInfo($comment = null, $expire = null, $privsep = null) { - $params = ['comment' => $comment, + + public function updateTokenInfo($comment = null, $expire = null, $privsep = null) + { + $params = [ + 'comment' => $comment, 'expire' => $expire, - 'privsep' => $privsep]; + 'privsep' => $privsep + ]; return $this->client->set("/access/users/{$this->userid}/token/{$this->tokenid}", $params); } } /** * Class PVEAccessGroups - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessGroups { + class PVEAccessGroups + { /** * @ignore @@ -22686,16 +24748,19 @@ class PVEAccessGroups { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemGroupsAccessGroupid * @param groupid * @return PVEItemGroupsAccessGroupid */ - public function get($groupid) { + public function get($groupid) + { return new PVEItemGroupsAccessGroupid($this->client, $groupid); } @@ -22703,34 +24768,38 @@ public function get($groupid) { * Group index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/access/groups"); } - /** * Create new group. - * @param string $groupid - * @param string $comment + * @param string $groupid + * @param string $comment * @return Result */ - public function createGroup($groupid, $comment = null) { - $params = ['groupid' => $groupid, - 'comment' => $comment]; + + public function createGroup($groupid, $comment = null) + { + $params = [ + 'groupid' => $groupid, + 'comment' => $comment + ]; return $this->client->create("/access/groups", $params); } } - /** * Class PVEItemGroupsAccessGroupid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemGroupsAccessGroupid { + class PVEItemGroupsAccessGroupid + { /** * @ignore */ private $groupid; - /** * @ignore */ @@ -22739,33 +24808,40 @@ class PVEItemGroupsAccessGroupid { /** * @ignore */ - function __construct($client, $groupid) { + function __construct($client, $groupid) + { $this->client = $client; $this->groupid = $groupid; } + + /** * Delete group. * @return Result */ - public function deleteGroup() { + + public function deleteGroup() + { return $this->client->delete("/access/groups/{$this->groupid}"); } - /** * Get group configuration. * @return Result */ - public function readGroup() { + + public function readGroup() + { return $this->client->get("/access/groups/{$this->groupid}"); } - /** * Update group data. - * @param string $comment + * @param string $comment * @return Result */ - public function updateGroup($comment = null) { + + public function updateGroup($comment = null) + { $params = ['comment' => $comment]; return $this->client->set("/access/groups/{$this->groupid}", $params); } @@ -22773,9 +24849,10 @@ public function updateGroup($comment = null) { /** * Class PVEAccessRoles - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessRoles { + class PVEAccessRoles + { /** * @ignore @@ -22785,16 +24862,19 @@ class PVEAccessRoles { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemRolesAccessRoleid * @param roleid * @return PVEItemRolesAccessRoleid */ - public function get($roleid) { + public function get($roleid) + { return new PVEItemRolesAccessRoleid($this->client, $roleid); } @@ -22802,34 +24882,38 @@ public function get($roleid) { * Role index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/access/roles"); } - /** * Create new role. - * @param string $roleid - * @param string $privs + * @param string $roleid + * @param string $privs * @return Result */ - public function createRole($roleid, $privs = null) { - $params = ['roleid' => $roleid, - 'privs' => $privs]; + + public function createRole($roleid, $privs = null) + { + $params = [ + 'roleid' => $roleid, + 'privs' => $privs + ]; return $this->client->create("/access/roles", $params); } } - /** * Class PVEItemRolesAccessRoleid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemRolesAccessRoleid { + class PVEItemRolesAccessRoleid + { /** * @ignore */ private $roleid; - /** * @ignore */ @@ -22838,45 +24922,55 @@ class PVEItemRolesAccessRoleid { /** * @ignore */ - function __construct($client, $roleid) { + function __construct($client, $roleid) + { $this->client = $client; $this->roleid = $roleid; } + + /** * Delete role. * @return Result */ - public function deleteRole() { + + public function deleteRole() + { return $this->client->delete("/access/roles/{$this->roleid}"); } - /** * Get role configuration. * @return Result */ - public function readRole() { + + public function readRole() + { return $this->client->get("/access/roles/{$this->roleid}"); } - /** * Update an existing role. - * @param bool $append - * @param string $privs + * @param bool $append + * @param string $privs * @return Result */ - public function updateRole($append = null, $privs = null) { - $params = ['append' => $append, - 'privs' => $privs]; + + public function updateRole($append = null, $privs = null) + { + $params = [ + 'append' => $append, + 'privs' => $privs + ]; return $this->client->set("/access/roles/{$this->roleid}", $params); } } /** * Class PVEAccessAcl - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessAcl { + class PVEAccessAcl + { /** * @ignore @@ -22886,18 +24980,22 @@ class PVEAccessAcl { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get Access Control List (ACLs). * @return Result */ - public function readAcl() { + + public function readAcl() + { return $this->client->get("/access/acl"); } - /** * Update Access Control List (add or remove permissions). * @param string $path Access control path @@ -22909,23 +25007,28 @@ public function readAcl() { * @param string $users List of users. * @return Result */ - public function updateAcl($path, $roles, $delete = null, $groups = null, $propagate = null, $tokens = null, $users = null) { - $params = ['path' => $path, + + public function updateAcl($path, $roles, $delete = null, $groups = null, $propagate = null, $tokens = null, $users = null) + { + $params = [ + 'path' => $path, 'roles' => $roles, 'delete' => $delete, 'groups' => $groups, 'propagate' => $propagate, 'tokens' => $tokens, - 'users' => $users]; + 'users' => $users + ]; return $this->client->set("/access/acl", $params); } } /** * Class PVEAccessDomains - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessDomains { + class PVEAccessDomains + { /** * @ignore @@ -22935,16 +25038,19 @@ class PVEAccessDomains { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemDomainsAccessRealm * @param realm * @return PVEItemDomainsAccessRealm */ - public function get($realm) { + public function get($realm) + { return new PVEItemDomainsAccessRealm($this->client, $realm); } @@ -22952,10 +25058,11 @@ public function get($realm) { * Authentication domain index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/access/domains"); } - /** * Add an authentication server. * @param string $realm Authentication domain ID @@ -23001,8 +25108,11 @@ public function index() { * @param bool $verify Verify the server's SSL certificate * @return Result */ - public function create($realm, $type, $acr_values = null, $autocreate = null, $base_dn = null, $bind_dn = null, $capath = null, $case_sensitive = null, $cert = null, $certkey = null, $check_connection = null, $client_id = null, $client_key = null, $comment = null, $default = null, $domain = null, $filter = null, $group_classes = null, $group_dn = null, $group_filter = null, $group_name_attr = null, $issuer_url = null, $mode = null, $password = null, $port = null, $prompt = null, $scopes = null, $secure = null, $server1 = null, $server2 = null, $sslversion = null, $sync_defaults_options = null, $sync_attributes = null, $tfa = null, $user_attr = null, $user_classes = null, $username_claim = null, $verify = null) { - $params = ['realm' => $realm, + + public function create($realm, $type, $acr_values = null, $autocreate = null, $base_dn = null, $bind_dn = null, $capath = null, $case_sensitive = null, $cert = null, $certkey = null, $check_connection = null, $client_id = null, $client_key = null, $comment = null, $default = null, $domain = null, $filter = null, $group_classes = null, $group_dn = null, $group_filter = null, $group_name_attr = null, $issuer_url = null, $mode = null, $password = null, $port = null, $prompt = null, $scopes = null, $secure = null, $server1 = null, $server2 = null, $sslversion = null, $sync_defaults_options = null, $sync_attributes = null, $tfa = null, $user_attr = null, $user_classes = null, $username_claim = null, $verify = null) + { + $params = [ + 'realm' => $realm, 'type' => $type, 'acr-values' => $acr_values, 'autocreate' => $autocreate, @@ -23039,22 +25149,22 @@ public function create($realm, $type, $acr_values = null, $autocreate = null, $b 'user_attr' => $user_attr, 'user_classes' => $user_classes, 'username-claim' => $username_claim, - 'verify' => $verify]; + 'verify' => $verify + ]; return $this->client->create("/access/domains", $params); } } - /** * Class PVEItemDomainsAccessRealm - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemDomainsAccessRealm { + class PVEItemDomainsAccessRealm + { /** * @ignore */ private $realm; - /** * @ignore */ @@ -23063,7 +25173,8 @@ class PVEItemDomainsAccessRealm { /** * @ignore */ - function __construct($client, $realm) { + function __construct($client, $realm) + { $this->client = $client; $this->realm = $realm; } @@ -23072,31 +25183,34 @@ function __construct($client, $realm) { * @ignore */ private $sync; - /** * Get RealmDomainsAccessSync * @return PVERealmDomainsAccessSync */ - public function getSync() { + public function getSync() + { return $this->sync ?: ($this->sync = new PVERealmDomainsAccessSync($this->client, $this->realm)); } + /** * Delete an authentication server. * @return Result */ - public function delete() { + + public function delete() + { return $this->client->delete("/access/domains/{$this->realm}"); } - /** * Get auth server configuration. * @return Result */ - public function read() { + + public function read() + { return $this->client->get("/access/domains/{$this->realm}"); } - /** * Update authentication server settings. * @param string $acr_values Specifies the Authentication Context Class Reference values that theAuthorization Server is being requested to use for the Auth Request. @@ -23140,8 +25254,11 @@ public function read() { * @param bool $verify Verify the server's SSL certificate * @return Result */ - public function update($acr_values = null, $autocreate = null, $base_dn = null, $bind_dn = null, $capath = null, $case_sensitive = null, $cert = null, $certkey = null, $check_connection = null, $client_id = null, $client_key = null, $comment = null, $default = null, $delete = null, $digest = null, $domain = null, $filter = null, $group_classes = null, $group_dn = null, $group_filter = null, $group_name_attr = null, $issuer_url = null, $mode = null, $password = null, $port = null, $prompt = null, $scopes = null, $secure = null, $server1 = null, $server2 = null, $sslversion = null, $sync_defaults_options = null, $sync_attributes = null, $tfa = null, $user_attr = null, $user_classes = null, $verify = null) { - $params = ['acr-values' => $acr_values, + + public function update($acr_values = null, $autocreate = null, $base_dn = null, $bind_dn = null, $capath = null, $case_sensitive = null, $cert = null, $certkey = null, $check_connection = null, $client_id = null, $client_key = null, $comment = null, $default = null, $delete = null, $digest = null, $domain = null, $filter = null, $group_classes = null, $group_dn = null, $group_filter = null, $group_name_attr = null, $issuer_url = null, $mode = null, $password = null, $port = null, $prompt = null, $scopes = null, $secure = null, $server1 = null, $server2 = null, $sslversion = null, $sync_defaults_options = null, $sync_attributes = null, $tfa = null, $user_attr = null, $user_classes = null, $verify = null) + { + $params = [ + 'acr-values' => $acr_values, 'autocreate' => $autocreate, 'base_dn' => $base_dn, 'bind_dn' => $bind_dn, @@ -23177,22 +25294,22 @@ public function update($acr_values = null, $autocreate = null, $base_dn = null, 'tfa' => $tfa, 'user_attr' => $user_attr, 'user_classes' => $user_classes, - 'verify' => $verify]; + 'verify' => $verify + ]; return $this->client->set("/access/domains/{$this->realm}", $params); } } - /** * Class PVERealmDomainsAccessSync - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVERealmDomainsAccessSync { + class PVERealmDomainsAccessSync + { /** * @ignore */ private $realm; - /** * @ignore */ @@ -23201,11 +25318,14 @@ class PVERealmDomainsAccessSync { /** * @ignore */ - function __construct($client, $realm) { + function __construct($client, $realm) + { $this->client = $client; $this->realm = $realm; } + + /** * Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. * @param bool $dry_run If set, does not write anything. @@ -23217,22 +25337,27 @@ function __construct($client, $realm) { * Enum: users,groups,both * @return Result */ - public function sync($dry_run = null, $enable_new = null, $full = null, $purge = null, $remove_vanished = null, $scope = null) { - $params = ['dry-run' => $dry_run, + + public function sync($dry_run = null, $enable_new = null, $full = null, $purge = null, $remove_vanished = null, $scope = null) + { + $params = [ + 'dry-run' => $dry_run, 'enable-new' => $enable_new, 'full' => $full, 'purge' => $purge, 'remove-vanished' => $remove_vanished, - 'scope' => $scope]; + 'scope' => $scope + ]; return $this->client->create("/access/domains/{$this->realm}/sync", $params); } } /** * Class PVEAccessOpenid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessOpenid { + class PVEAccessOpenid + { /** * @ignore @@ -23242,7 +25367,8 @@ class PVEAccessOpenid { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } @@ -23250,42 +25376,44 @@ function __construct($client) { * @ignore */ private $authUrl; - /** * Get OpenidAccessAuthUrl * @return PVEOpenidAccessAuthUrl */ - public function getAuthUrl() { + public function getAuthUrl() + { return $this->authUrl ?: ($this->authUrl = new PVEOpenidAccessAuthUrl($this->client)); } - /** * @ignore */ private $login; - /** * Get OpenidAccessLogin * @return PVEOpenidAccessLogin */ - public function getLogin() { + public function getLogin() + { return $this->login ?: ($this->login = new PVEOpenidAccessLogin($this->client)); } + /** * Directory index. * @return Result */ - public function index() { + + public function index() + { return $this->client->get("/access/openid"); } } - /** * Class PVEOpenidAccessAuthUrl - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEOpenidAccessAuthUrl { + class PVEOpenidAccessAuthUrl + { /** * @ignore @@ -23295,28 +25423,36 @@ class PVEOpenidAccessAuthUrl { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Get the OpenId Authorization Url for the specified realm. * @param string $realm Authentication domain ID * @param string $redirect_url Redirection Url. The client should set this to the used server url (location.origin). * @return Result */ - public function authUrl($realm, $redirect_url) { - $params = ['realm' => $realm, - 'redirect-url' => $redirect_url]; + + public function authUrl($realm, $redirect_url) + { + $params = [ + 'realm' => $realm, + 'redirect-url' => $redirect_url + ]; return $this->client->create("/access/openid/auth-url", $params); } } /** * Class PVEOpenidAccessLogin - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEOpenidAccessLogin { + class PVEOpenidAccessLogin + { /** * @ignore @@ -23326,10 +25462,13 @@ class PVEOpenidAccessLogin { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Verify OpenID authorization code and create a ticket. * @param string $code OpenId authorization code. @@ -23337,19 +25476,24 @@ function __construct($client) { * @param string $state OpenId state. * @return Result */ - public function login($code, $redirect_url, $state) { - $params = ['code' => $code, + + public function login($code, $redirect_url, $state) + { + $params = [ + 'code' => $code, 'redirect-url' => $redirect_url, - 'state' => $state]; + 'state' => $state + ]; return $this->client->create("/access/openid/login", $params); } } /** * Class PVEAccessTfa - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessTfa { + class PVEAccessTfa + { /** * @ignore @@ -23359,16 +25503,19 @@ class PVEAccessTfa { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemTfaAccessUserid * @param userid * @return PVEItemTfaAccessUserid */ - public function get($userid) { + public function get($userid) + { return new PVEItemTfaAccessUserid($this->client, $userid); } @@ -23376,22 +25523,23 @@ public function get($userid) { * List TFA configurations of users. * @return Result */ - public function listTfa() { + + public function listTfa() + { return $this->client->get("/access/tfa"); } } - /** * Class PVEItemTfaAccessUserid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemTfaAccessUserid { + class PVEItemTfaAccessUserid + { /** * @ignore */ private $userid; - /** * @ignore */ @@ -23400,17 +25548,20 @@ class PVEItemTfaAccessUserid { /** * @ignore */ - function __construct($client, $userid) { + function __construct($client, $userid) + { $this->client = $client; $this->userid = $userid; } + /** * Get ItemUseridTfaAccessId * @param id * @return PVEItemUseridTfaAccessId */ - public function get($id) { + public function get($id) + { return new PVEItemUseridTfaAccessId($this->client, $this->userid, $id); } @@ -23418,10 +25569,11 @@ public function get($id) { * List TFA configurations of users. * @return Result */ - public function listUserTfa() { + + public function listUserTfa() + { return $this->client->get("/access/tfa/{$this->userid}"); } - /** * Add a TFA entry for a user. * @param string $type TFA Entry Type. @@ -23433,22 +25585,26 @@ public function listUserTfa() { * @param string $value The current value for the provided totp URI, or a Webauthn/U2F challenge response * @return Result */ - public function addTfaEntry($type, $challenge = null, $description = null, $password = null, $totp = null, $value = null) { - $params = ['type' => $type, + + public function addTfaEntry($type, $challenge = null, $description = null, $password = null, $totp = null, $value = null) + { + $params = [ + 'type' => $type, 'challenge' => $challenge, 'description' => $description, 'password' => $password, 'totp' => $totp, - 'value' => $value]; + 'value' => $value + ]; return $this->client->create("/access/tfa/{$this->userid}", $params); } } - /** * Class PVEItemUseridTfaAccessId - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemUseridTfaAccessId { + class PVEItemUseridTfaAccessId + { /** * @ignore @@ -23459,7 +25615,6 @@ class PVEItemUseridTfaAccessId { * @ignore */ private $id; - /** * @ignore */ @@ -23468,30 +25623,35 @@ class PVEItemUseridTfaAccessId { /** * @ignore */ - function __construct($client, $userid, $id) { + function __construct($client, $userid, $id) + { $this->client = $client; $this->userid = $userid; $this->id = $id; } + + /** * Delete a TFA entry by ID. * @param string $password The current password. * @return Result */ - public function deleteTfa($password = null) { + + public function deleteTfa($password = null) + { $params = ['password' => $password]; return $this->client->delete("/access/tfa/{$this->userid}/{$this->id}", $params); } - /** * Fetch a requested TFA entry if present. * @return Result */ - public function getTfaEntry() { + + public function getTfaEntry() + { return $this->client->get("/access/tfa/{$this->userid}/{$this->id}"); } - /** * Add a TFA entry for a user. * @param string $description A description to distinguish multiple entries from one another @@ -23499,19 +25659,24 @@ public function getTfaEntry() { * @param string $password The current password. * @return Result */ - public function updateTfaEntry($description = null, $enable = null, $password = null) { - $params = ['description' => $description, + + public function updateTfaEntry($description = null, $enable = null, $password = null) + { + $params = [ + 'description' => $description, 'enable' => $enable, - 'password' => $password]; + 'password' => $password + ]; return $this->client->set("/access/tfa/{$this->userid}/{$this->id}", $params); } } /** * Class PVEAccessTicket - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessTicket { + class PVEAccessTicket + { /** * @ignore @@ -23521,18 +25686,22 @@ class PVEAccessTicket { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Dummy. Useful for formatters which want to provide a login page. * @return Result */ - public function getTicket() { + + public function getTicket() + { return $this->client->get("/access/ticket"); } - /** * Create or verify authentication ticket. * @param string $password The secret password. This can also be a valid ticket. @@ -23545,24 +25714,29 @@ public function getTicket() { * @param string $tfa_challenge The signed TFA challenge string the user wants to respond to. * @return Result */ - public function createTicket($password, $username, $new_format = null, $otp = null, $path = null, $privs = null, $realm = null, $tfa_challenge = null) { - $params = ['password' => $password, + + public function createTicket($password, $username, $new_format = null, $otp = null, $path = null, $privs = null, $realm = null, $tfa_challenge = null) + { + $params = [ + 'password' => $password, 'username' => $username, 'new-format' => $new_format, 'otp' => $otp, 'path' => $path, 'privs' => $privs, 'realm' => $realm, - 'tfa-challenge' => $tfa_challenge]; + 'tfa-challenge' => $tfa_challenge + ]; return $this->client->create("/access/ticket", $params); } } /** * Class PVEAccessPassword - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessPassword { + class PVEAccessPassword + { /** * @ignore @@ -23572,28 +25746,36 @@ class PVEAccessPassword { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Change user password. * @param string $password The new password. * @param string $userid Full User ID, in the `name@realm` format. * @return Result */ - public function changePassword($password, $userid) { - $params = ['password' => $password, - 'userid' => $userid]; + + public function changePassword($password, $userid) + { + $params = [ + 'password' => $password, + 'userid' => $userid + ]; return $this->client->set("/access/password", $params); } } /** * Class PVEAccessPermissions - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEAccessPermissions { + class PVEAccessPermissions + { /** * @ignore @@ -23603,28 +25785,36 @@ class PVEAccessPermissions { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * Retrieve effective permissions of given user/token. * @param string $path Only dump this specific path, not the whole tree. * @param string $userid User ID or full API token ID * @return Result */ - public function permissions($path = null, $userid = null) { - $params = ['path' => $path, - 'userid' => $userid]; + + public function permissions($path = null, $userid = null) + { + $params = [ + 'path' => $path, + 'userid' => $userid + ]; return $this->client->get("/access/permissions", $params); } } /** * Class PVEPools - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEPools { + class PVEPools + { /** * @ignore @@ -23634,86 +25824,99 @@ class PVEPools { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + /** * Get ItemPoolsPoolid * @param poolid * @return PVEItemPoolsPoolid */ - public function get($poolid) { + public function get($poolid) + { return new PVEItemPoolsPoolid($this->client, $poolid); } /** * Delete pool. - * @param string $poolid + * @param string $poolid * @return Result */ - public function deletePool($poolid) { + + public function deletePool($poolid) + { $params = ['poolid' => $poolid]; return $this->client->delete("/pools", $params); } - /** * List pools or get pool configuration. - * @param string $poolid - * @param string $type + * @param string $poolid + * @param string $type * Enum: qemu,lxc,storage * @return Result */ - public function index($poolid = null, $type = null) { - $params = ['poolid' => $poolid, - 'type' => $type]; + + public function index($poolid = null, $type = null) + { + $params = [ + 'poolid' => $poolid, + 'type' => $type + ]; return $this->client->get("/pools", $params); } - /** * Create new pool. - * @param string $poolid - * @param string $comment + * @param string $poolid + * @param string $comment * @return Result */ - public function createPool($poolid, $comment = null) { - $params = ['poolid' => $poolid, - 'comment' => $comment]; + + public function createPool($poolid, $comment = null) + { + $params = [ + 'poolid' => $poolid, + 'comment' => $comment + ]; return $this->client->create("/pools", $params); } - /** * Update pool. - * @param string $poolid + * @param string $poolid * @param bool $allow_move Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one. - * @param string $comment + * @param string $comment * @param bool $delete Remove the passed VMIDs and/or storage IDs instead of adding them. * @param string $storage List of storage IDs to add or remove from this pool. * @param string $vms List of guest VMIDs to add or remove from this pool. * @return Result */ - public function updatePool($poolid, $allow_move = null, $comment = null, $delete = null, $storage = null, $vms = null) { - $params = ['poolid' => $poolid, + + public function updatePool($poolid, $allow_move = null, $comment = null, $delete = null, $storage = null, $vms = null) + { + $params = [ + 'poolid' => $poolid, 'allow-move' => $allow_move, 'comment' => $comment, 'delete' => $delete, 'storage' => $storage, - 'vms' => $vms]; + 'vms' => $vms + ]; return $this->client->set("/pools", $params); } } - /** * Class PVEItemPoolsPoolid - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEItemPoolsPoolid { + class PVEItemPoolsPoolid + { /** * @ignore */ private $poolid; - /** * @ignore */ @@ -23722,54 +25925,64 @@ class PVEItemPoolsPoolid { /** * @ignore */ - function __construct($client, $poolid) { + function __construct($client, $poolid) + { $this->client = $client; $this->poolid = $poolid; } + + /** * Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). * @return Result */ - public function deletePoolDeprecated() { + + public function deletePoolDeprecated() + { return $this->client->delete("/pools/{$this->poolid}"); } - /** * Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). - * @param string $type + * @param string $type * Enum: qemu,lxc,storage * @return Result */ - public function readPool($type = null) { + + public function readPool($type = null) + { $params = ['type' => $type]; return $this->client->get("/pools/{$this->poolid}", $params); } - /** * Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). * @param bool $allow_move Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one. - * @param string $comment + * @param string $comment * @param bool $delete Remove the passed VMIDs and/or storage IDs instead of adding them. * @param string $storage List of storage IDs to add or remove from this pool. * @param string $vms List of guest VMIDs to add or remove from this pool. * @return Result */ - public function updatePoolDeprecated($allow_move = null, $comment = null, $delete = null, $storage = null, $vms = null) { - $params = ['allow-move' => $allow_move, + + public function updatePoolDeprecated($allow_move = null, $comment = null, $delete = null, $storage = null, $vms = null) + { + $params = [ + 'allow-move' => $allow_move, 'comment' => $comment, 'delete' => $delete, 'storage' => $storage, - 'vms' => $vms]; + 'vms' => $vms + ]; return $this->client->set("/pools/{$this->poolid}", $params); } } /** * Class PVEVersion - * @package Corsinvest\VE\ProxmoxVE\Api + * @package Corsinvest\VE\ProxmoxVE\Api */ - class PVEVersion { + class PVEVersion + { /** * @ignore @@ -23779,17 +25992,21 @@ class PVEVersion { /** * @ignore */ - function __construct($client) { + function __construct($client) + { $this->client = $client; } + + /** * API version details, including some parts of the global datacenter config. * @return Result */ - public function version() { + + public function version() + { return $this->client->get("/version"); } } - -} \ No newline at end of file +} diff --git a/src/PveClientBase.php b/src/PveClientBase.php index 4bd77a8..78cd83a 100644 --- a/src/PveClientBase.php +++ b/src/PveClientBase.php @@ -281,6 +281,13 @@ private function executeAction($resource, $method, $parameters = []) return null !== $value; }); + //fix bool value + $params = array_map(function ($value) { + return is_bool($value) + ? ($value ? 1 : 0) + : $value; + }, $params); + if ($this->getDebugLevel() >= 1) { echo "Method: " . $method . " , Url: " . $url . "\n"; if ($method != 'GET') { @@ -289,6 +296,7 @@ private function executeAction($resource, $method, $parameters = []) } } + $headers = []; $methodType = ""; $prox_ch = curl_init(); switch ($method) { @@ -301,17 +309,19 @@ private function executeAction($resource, $method, $parameters = []) case "PUT": curl_setopt($prox_ch, CURLOPT_CUSTOMREQUEST, "PUT"); - $action_postfields = http_build_query($params); - curl_setopt($prox_ch, CURLOPT_POSTFIELDS, $action_postfields); - unset($action_postfields); + $data = json_encode($params); + array_push($headers, 'Content-Type: application/json'); + array_push($headers, 'Content-Length: ' . strlen($data)); + curl_setopt($prox_ch, CURLOPT_POSTFIELDS, $data); $methodType = "SET"; break; case "POST": curl_setopt($prox_ch, CURLOPT_POST, true); - $action_postfields = http_build_query($params); - curl_setopt($prox_ch, CURLOPT_POSTFIELDS, $action_postfields); - unset($action_postfields); + $data = json_encode($params); + array_push($headers, 'Content-Type: application/json'); + array_push($headers, 'Content-Length: ' . strlen($data)); + curl_setopt($prox_ch, CURLOPT_POSTFIELDS, $data); $methodType = "CREATE"; break; @@ -331,7 +341,6 @@ private function executeAction($resource, $method, $parameters = []) curl_setopt($prox_ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($prox_ch, CURLOPT_SSL_VERIFYHOST, false); - $headers = []; if (isset($this->ticketPVEAuthCookie)) { array_push($headers, "CSRFPreventionToken: {$this->ticketCSRFPreventionToken}"); } @@ -385,7 +394,7 @@ private function executeAction($resource, $method, $parameters = []) print_r($obj); echo ''; } else { - echo $obj . PHP_EOL; + echo var_dump($obj) . PHP_EOL; } echo "StatusCode: " . $this->lastResult->getStatusCode() . PHP_EOL; echo "ReasonPhrase: " . $this->lastResult->getReasonPhrase() . PHP_EOL; diff --git a/tests/test.php b/tests/test.php index 8645c27..5a876b1 100644 --- a/tests/test.php +++ b/tests/test.php @@ -9,7 +9,10 @@ require_once '../src/PveClient.php'; $client = new \Corsinvest\ProxmoxVE\Api\PveClient($argv[1]); -if ($client->login($argv[2], $argv[3],"pam",$argv[4])) { +$client->setDebugLevel(999); +if ($client->login($argv[2], $argv[3], "pam")) { + + $result = $client->getVersion()->version(); var_dump($result); @@ -22,14 +25,16 @@ echo "\n" . $node->id; } - foreach ($client->getNodes()->get("cv-pve01")->getQemu()->vmlist()->getResponse()->data as $vm) { - echo "\n" . $vm->vmid . " - " . $vm->name; - } + $client->getNodes()->get("cc01")->getQemu()->get(1006)->getAgent()->getExec()->exec(array("powershell", "-command", "echo", "test")); - //loop snapshots - foreach ($client->getNodes()->get("cv-pve02")->getQemu()->get(100)->getSnapshot()->snapshotList()->getResponse()->data as $snap) { - echo "\n" . $snap->name; - } + // foreach ($client->getNodes()->get("cv-pve01")->getQemu()->vmlist()->getResponse()->data as $vm) { + // echo "\n" . $vm->vmid . " - " . $vm->name; + // } + + // //loop snapshots + // foreach ($client->getNodes()->get("cv-pve02")->getQemu()->get(100)->getSnapshot()->snapshotList()->getResponse()->data as $snap) { + // echo "\n" . $snap->name; + // } //return object var_dump($client->getVersion()->version()->getResponse()); @@ -41,18 +46,16 @@ var_dump($retArr); echo "\n" . $retArr['data']['release']; - //enable return objet - $client->setResultIsObject(true); + // //enable return objet + // $client->setResultIsObject(true); - //image rrd - $client->setResponseType('png'); - echo "getResponse()}' \>"; + // //image rrd + // $client->setResponseType('png'); + // echo "getResponse()}' \>"; - //reset json result - $client->setResponseType('json'); - var_dump($client->get('/version')->getResponse()); -} -else -{ + // //reset json result + // $client->setResponseType('json'); + // var_dump($client->get('/version')->getResponse()); +} else { echo "Error login!"; -} \ No newline at end of file +}