This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,111 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* Plesk administrator information
*/
class Admin
{
/**
* The administrator&#39;s company name.
*
* @Type("string")
* @var string
*/
public $company;
/**
* The administrator&#39;s personal name.
*
* @Assert\NotBlank()
* @Type("string")
* @var string
*/
public $name;
/**
* The administrator&#39;s phone number.
*
* @Type("string")
* @var string
*/
public $phone;
/**
* The administrator&#39;s fax number.
*
* @Type("string")
* @var string
*/
public $fax;
/**
* The administrator&#39;s e-mail address.
*
* @Assert\NotBlank()
* @Assert\Email()
* @Type("string")
* @var string
*/
public $email;
/**
* The administrator&#39;s street address.
*
* @Type("string")
* @var string
*/
public $address;
/**
* The name of the city where administrator lives.
*
* @Type("string")
* @var string
*/
public $city;
/**
* The name of state (for US citizens) or province where administrator lives.
*
* @Type("string")
* @var string
*/
public $state;
/**
* The administrator&#39;s zip/postal code.
*
* @Type("string")
* @var string
*/
public $post_code;
/**
* The name of the country where administrator lives.
*
* @Assert\Country()
* @Type("string")
* @var string
*/
public $country;
/**
* It specifies whether Plesk announcement messages are sent to the administrator&#39;s e-mail.
*
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $send_announce;
/**
* The locale used by the administrator.
*
* @Assert\Locale()
* @Type("string")
* @var string
*/
public $locale;
/**
* It specifies the information if the administrator has multiple sessions in Plesk.
*
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $multiple_sessions;
}

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class CliCallRequest
{
/**
* Command.
*
* @Type("array")
* @var array
*/
public $params = [];
/**
* ENV variables.
*
* @Type("array")
* @var array
*/
public $env = [];
}

View File

@@ -1,30 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class CliCallResponse
{
/**
* Command return code.
*
* @Type("int")
* @var int
*/
public $code;
/**
* Command stdout.
*
* @Type("string")
* @var string
*/
public $stdout;
/**
* Command stderr.
*
* @Type("string")
* @var string
*/
public $stderr;
}

View File

@@ -1,131 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
/**
* The client entity
*/
class Client
{
/**
* The client ID
*
* @Assert\Blank(groups={"post", "put"})
* @Type("integer")
* @var int
*/
public $id;
/**
* Creation date
*
* @Assert\Blank(groups={"post", "put"})
* @Type("string")
* @var string
*/
public $created;
/**
* Client name
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Company name
*
* @Type("string")
* @var string
*/
public $company;
/**
* Login
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $login;
/**
* Status
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $status;
/**
* Email
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Email(groups={"post"})
* @Type("string")
* @var string
*/
public $email;
/**
* Locale
*
* @Type("string")
* @var string
*/
public $locale;
/**
* GUID
*
* @Assert\Blank(groups={"post", "put"})
* @Type("string")
* @var string
*/
public $guid;
/**
* Owner login
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $owner_login;
/**
* External ID
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $external_id;
/**
* Description
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $description;
/**
* Password
*
* @Assert\Type("string")
* @Assert\NotBlank(groups={"post"})
* @ApiAssert\PasswordStrength(groups={"post", "put"})
* @Type("string")
* @var string
*/
public $password;
/**
* Type
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Blank(groups={"put"})
* @Assert\Choice({"admin", "reseller", "customer"})
* @Type("string")
* @var string
*/
public $type;
}

View File

@@ -1,62 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
* The client statistics
*/
class ClientStatistics
{
/**
* @Type("integer")
* @var int
*/
public $active_domains;
/**
* @Type("integer")
* @var int
*/
public $subdomains;
/**
* @Type("integer")
* @var int
*/
public $disk_space;
/**
* @Type("integer")
* @var int
*/
public $email_postboxes;
/**
* @Type("integer")
* @var int
*/
public $email_redirects;
/**
* @Type("integer")
* @var int
*/
public $email_response_messages;
/**
* @Type("integer")
* @var int
*/
public $mailing_lists;
/**
* @Type("integer")
* @var int
*/
public $databases;
/**
* @Type("integer")
* @var int
*/
public $traffic;
/**
* @Type("integer")
* @var int
*/
public $traffic_prevday;
}

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class CreatedResponse
{
/**
* ID
* @Type("integer")
* @var int
*/
public $id;
/**
* GUID
* @Type("string")
* @var string
*/
public $guid;
}

View File

@@ -1,45 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class Database
{
/**
* @Type("integer")
* @var int
*/
public $id;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* @Assert\Choice({"mssql", "mysql", "postgresql"})
* @Type("string")
* @var string
*/
public $type;
/**
* @Assert\NotBlank()
* @Type("integer")
* @var int
*/
public $parent_domain;
/**
* @Type("integer")
* @Assert\NotBlank()
* @var int
*/
public $server_id;
/**
* @Type("integer")
* @var int|null
*/
public $default_user_id;
}

View File

@@ -1,37 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DatabaseRequest
{
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* @Assert\Choice({"mssql", "mysql", "postgresql"})
* @Type("string")
* @var string
*/
public $type;
/**
* Webspace ID
*
* @Assert\NotBlank()
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var DomainReference
*/
public $parent_domain;
/**
* @Type("integer")
* @Assert\NotBlank()
* @var int
*/
public $server_id;
}

View File

@@ -1,53 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DatabaseServer
{
/**
* @Assert\NotBlank()
* @Type("integer")
* @var int
*/
public $id;
/**
* @Assert\NotBlank()
* @Type("string")
* @var string
*/
public $host;
/**
* @Type("integer")
* @var int
*/
public $port;
/**
* @Assert\NotBlank()
* @Type("string")
* @var string
*/
public $type;
/**
* @Type("string")
* @var string
*/
public $status;
/**
* @Type("integer")
* @var int
*/
public $db_count;
/**
* @Type("boolean")
* @var bool
*/
public $is_default;
/**
* @Type("boolean")
* @var bool
*/
public $is_local;
}

View File

@@ -1,60 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class DatabaseUser
{
/**
* @Assert\Blank(groups={"post", "put"})
* @Type("integer")
* @var int
*/
public $id;
/**
* @Assert\NotBlank(groups={"post"})
* @Type("string")
* @var string
*/
public $login;
/**
* @Assert\Blank(groups={"put"})
* @Type("integer")
* @var int|null
*/
public $database_id;
/**
* @ApiAssert\PasswordStrength(groups={"post", "put"})
* @Assert\NotBlank(groups={"post"})
* @Type("string")
* @var string
*/
public $password;
/**
* Webspace ID
*
* @Assert\Blank(groups={"put"})
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var DomainReference|null
*/
public $parent_domain;
/**
* @Assert\Blank(groups={"put"})
* @Type("integer")
* @var int|null
*/
public $server_id;
/**
* @Assert\IsTrue(
* message="Either parent_domain and server_id, or database_id should be specified",
* groups={"post"}
* )
*/
public function isBoundToOneObject() : bool
{
return $this->database_id xor $this->server_id;
}
}

View File

@@ -1,50 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DnsRecord
{
/**
* @Type("integer")
*/
public $id;
/**
* @Type("string")
* @Assert\Choice({
"A",
"CNAME",
"PTR",
"MX",
"NS",
"TXT",
"SOA",
"AXFR",
"SRV",
"AAAA",
"DS",
"CAA",
"TLSA",
"HTTPS"
})
*/
public $type;
/**
* @Type("string")
*/
public $host;
/**
* @Type("string")
*/
public $value;
/**
* @Type("string")
*/
public $opt;
/**
* @Type("integer")
*/
public $ttl;
}

View File

@@ -1,46 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DnsRecordRequest
{
/**
* @Type("string")
* @Assert\Choice({
"A",
"CNAME",
"PTR",
"MX",
"NS",
"TXT",
"SOA",
"AXFR",
"SRV",
"AAAA",
"DS",
"CAA",
"TLSA",
"HTTPS"
})
*/
public $type;
/**
* @Type("string")
*/
public $host;
/**
* @Type("string")
*/
public $value;
/**
* @Type("string")
*/
public $opt;
/**
* @Type("integer")
*/
public $ttl;
}

View File

@@ -1,59 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DomainAlias
{
/**
* Alias id
* @Assert\Type("integer")
* @Type("integer")
* @var integer
*/
public $id;
/**
* Alias name
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Alias display name
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $ascii_name;
/**
* Specifies whether web hosting is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $web;
/**
* Specifies whether DNS service is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $dns;
/**
* Specifies whether mail service is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $mail;
/**
* Specifies whether 301 redirect to HTTPS is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $seo_redirect;
}

View File

@@ -1,36 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class DomainReference
{
/**
* Domain ID
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $id;
/**
* Domain name
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Domain GUID
*
* @Assert\Uuid()
* @Type("string")
* @var string
*/
public $guid;
}

View File

@@ -1,130 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class DomainRequest
{
/**
* Domain name
*
* @Assert\NotBlank(groups={"post"})
* @Type("string")
* @var string
*/
public $name;
/**
* It specifies a description for the domain.
*
* @Type("string")
* @var string
*/
public $description;
/**
* Hosting type
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Choice({"virtual", "standard_forwarding", "frame_forwarding", "none"})
* @Type("string")
* @var string
*/
public $hosting_type;
/**
* @Assert\NotBlank(groups={"post"})
* @Assert\Collection(
* fields = {
* "ftp_login" = @ApiAssert\UniqueFtpLogin(),
* "ftp_password" = @ApiAssert\PasswordStrength()
* },
* allowMissingFields = true,
* allowExtraFields = true,
* )
* @Type("array")
* @var array
*/
public $hosting_settings;
/**
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var array
*/
public $base_domain;
/**
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var array
*/
public $parent_domain;
/**
* @Type("PleskExt\RestApi\v2\Entity\OwnerClientReference")
* @var array
*/
public $owner_client;
/**
* @Assert\Type("array")
* @Assert\All({
* @Assert\Ip(version="all")
* })
* @Type("array")
* @var array
*/
public $ip_addresses = [];
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $php_settings;
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $permissions;
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $limits;
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $limits_overuse;
/**
* @Type("PleskExt\RestApi\v2\Entity\PlanReference")
* @var array
*/
public $plan;
/**
* @Assert\Type("array")
* @Type("PleskExt\RestApi\v2\Entity\MailPreferences")
* @var array
*/
public $mail;
/**
* @Assert\Type("array")
* @Assert\All({
* @Assert\Ip(version="4")
* })
* @Type("array")
*
* @deprecated
* @var array
*/
public $ipv4;
/**
* @Assert\Type("array")
* @Assert\All({
* @Assert\Ip(version="6")
* })
* @Type("array")
*
* @deprecated
* @var array
*/
public $ipv6;
}

View File

@@ -1,69 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class DomainResponse
{
/**
* The domain ID
* @Type("integer")
* @var int
*/
public $id;
/**
* Creation date
* @Type("string")
* @var string
*/
public $created;
/**
* Domain name
* @Type("string")
* @var string
*/
public $name;
/**
* Domain display name
* @Type("string")
* @var string
*/
public $ascii_name;
/**
* It specifies the status of the created site. Data type: string. Allowed values: 0 | 8 | 16 | 64. Meanings: 0 - site is active, 8 - web service for the site is suspended by Administrator, 16 - site is disabled by Administrator, 32 - site is disabled by Reseller, 64 - site is disabled by a customer
* @Type("integer")
* @var int
*/
public $status;
/**
* Base domain ID
* @Type("integer")
* @var string
*/
public $base_domain_id;
/**
* @Type("string")
* @var string
*/
public $guid;
/**
* @Type("string")
* @var string
*/
public $hosting_type;
/**
* @Type("string")
* @var string
*/
public $www_root;
/**
* @Assert\Type("array<PleskExt\RestApi\v2\Entity\DomainAlias>")
* @Type("array<PleskExt\RestApi\v2\Entity\DomainAlias>")
* @var array
*/
public $aliases;
}

View File

@@ -1,21 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class DomainStatus
{
/**
* Domain status
*
* @Assert\NotNull()
* @Assert\Choice({"active", "suspended", "disabled"})
* @Type("string")
* @var string
*/
public $status;
}

View File

@@ -1,21 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class ErrorResponse
{
/**
* @Type("integer")
* @var int
*/
public $code;
/**
* @Type("string")
* @var string
*/
public $message;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class Extension
{
/**
* Extension identifier.
*
* @Type("string")
* @var string
*/
public $id;
/**
* Human readable name.
*
* @Type("string")
* @var string
*/
public $name;
/**
* Extension version.
*
* @Type("string")
* @var string
*/
public $version;
/**
* Extension release number.
*
* @Type("string")
* @var string
*/
public $release;
/**
* Extension status.
*
* @Type("bool")
* @var bool
*/
public $active;
}

View File

@@ -1,52 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskRestApi\Symfony\Component\Validator\Context\ExecutionContextInterface;
class ExtensionInstallRequest
{
/**
* Installation by Identifier.
*
* @Type("string")
* @var string
*/
public $id;
/**
* Installation by URL.
*
* @Assert\Url()
* @Type("string")
* @var string
*/
public $url;
/**
* Installation by File.
*
* @Type("string")
* @var string
*/
public $file;
/**
* @Assert\Callback
*/
public function validate(ExecutionContextInterface $context, $payload)
{
$types = ['id', 'url', 'file'];
$choosenType = null;
foreach ($types as $type) {
if (!empty($this->{$type})) {
if ($choosenType !== null) {
$context->buildViolation("Only the one method of installation should be chosen")->atPath($type)->addViolation();
}
$choosenType = $type;
}
}
if ($choosenType === null) {
$context->buildViolation("You need choose method of installation")->addViolation();
}
}
}

View File

@@ -1,55 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class FtpUser
{
/**
* The user ID
*
* @Type("integer")
* @var integer
*/
public $id;
/**
* User name
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Home subdirectory
*
* @Type("string")
* @var string
*/
public $home;
/**
* Quota
*
* @Assert\Type("integer")
* @Type("integer")
* @var integer
*/
public $quota;
/**
* Permissions
*
* @Assert\Type("array")
* @Type("array<string, string>")
* @var array
*/
public $permissions;
/**
* Webspace ID
*
* @Type("integer")
* @var integer
*/
public $parent_domain;
}

View File

@@ -1,62 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class FtpUserRequest
{
/**
* User name
*
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\UniqueFtpLogin()
* @Type("string")
* @var string
*/
public $name;
/**
* Password
*
* @ApiAssert\PasswordStrength()
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $password;
/**
* Home subdirectory
*
* @Type("string")
* @var string|null
*/
public $home;
/**
* Quota
*
* @Assert\Type("integer")
* @Type("integer")
* @var integer|null
*/
public $quota;
/**
* Permissions
*
* @Assert\Type("array")
* @Type("array<string, boolean>")
* @var array
*/
public $permissions;
/**
* Webspace ID
*
* @Assert\NotBlank()
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var DomainReference
*/
public $parent_domain;
}

View File

@@ -1,52 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class FtpUserUpdateRequest
{
/**
* User name
*
* @Assert\Type("string")
* @ApiAssert\UniqueFtpLogin()
* @Type("string")
* @var string
*/
public $name;
/**
* Password
*
* @ApiAssert\PasswordStrength()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $password;
/**
* Home subdirectory
*
* @Type("string")
* @var string|null
*/
public $home;
/**
* Quota
*
* @Assert\Type("integer")
* @Type("integer")
* @var integer|null
*/
public $quota;
/**
* Permissions
*
* @Assert\Type("array")
* @Type("array<string, boolean>")
* @var array
*/
public $permissions;
}

View File

@@ -1,45 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class MailPreferences
{
/**
* @Type("PleskExt\RestApi\v2\Entity\OutgoingMessages")
* @var OutgoingMessages
*/
public $outgoing_messages;
/**
* @Type("PleskExt\RestApi\v2\Entity\NonExistentUser")
* @var NonExistentUser
*/
public $nonexistent_user;
/**
* It specifies whether mail users will have access to their mail via a webmail application.
* @Type("bool")
* @var bool
*/
public $webmail;
/**
* If the DomainKeys spam protection is available on the server, the node specifies whether the spam protection is turned on on the site.
* @Type("bool")
* @var bool
*/
public $spam_protect_sign;
/**
* If the greylisting spam protection is available on the server, the node specifies whether the spam protection is turned on on the site.
* @Type("bool")
* @var bool
*/
public $greylisting;
/**
* It switches on or off the mail service on a specified domain.
* @Type("bool")
* @var bool
*/
public $mailservice;
}

View File

@@ -1,29 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class NonExistentUser
{
/**
* The field is used to modify the default rejection message.
* @Type("string")
* @var string
*/
public $bounce;
/**
* The field specifies the mail address to which undelivered mail should be forwarded.
* @Type("string")
* @var string
*/
public $forward;
/**
* The field is used to reject such mail messages (they will not be accepted by the mail server).
* @Type("bool")
* @var bool
*/
public $reject;
}

View File

@@ -1,41 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class OutgoingMessages
{
/**
* Mailname outgoing messsages (per hour).
* @Type("integer")
* @var int
*/
public $mbox_limit;
/**
* Domain outgoing messages (per hour).
* @Type("integer")
* @var int
*/
public $domain_limit;
/**
* Subscription outgoing messages (per hour).
* @Type("integer")
* @var int
*/
public $subscription_limit;
/**
* Scripts will be able to send mail even when the limits on outgoing messages are reached for the corresponding mailbox and domain.
* @Type("bool")
* @var bool
*/
public $enable_sendmail;
/**
* Percentage of email messages to accept into mail queue and retry for delivery in next hour.
* @Type("integer")
* @var int
*/
public $overlimit_percent;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class OwnerClientReference
{
/**
* Client ID
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $id;
/**
* Client login
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $login;
/**
* Client GUID
*
* @Assert\Uuid()
* @Type("string")
* @var string
*/
public $guid;
/**
* A GUID of a subscription owner received from the Plesk components
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $external_id;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class PlanReference
{
/**
* Plan ID
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $id;
/**
* Plan name
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Plan GUID
*
* @Assert\Uuid()
* @Type("string")
* @var string
*/
public $guid;
/**
* External ID
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $external_id;
}

View File

@@ -1,47 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* Secret key parameters
*/
class SecretKeyRequest
{
/**
* The IP address that will be linked to the key. If this node or 'ips' node is not
* specified, the IP address of the request sender will be used.
*
* @Assert\Ip(version="all")
* @Type("string")
* @var string
*/
public $ip;
/**
* Array of IP addresses that will be linked to the key. If this node or 'ip' node is not
* specified, the IP address of the request sender will be used.
*
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $ips;
/**
* The login name of an existing customer or a reseller that will have this secret key. The customer&#39;s or reseller&#39;s account should be active. If this node is not specified, the administrator&#39;s login will be used. Data type: string.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $login;
/**
* Additional information about the key.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $description;
}

View File

@@ -1,18 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class SecretKeyResponse
{
/**
* Secret key value
*
* @Type("string")
* @var string
*/
public $key;
}

View File

@@ -1,38 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* Initial server setup parameters
*/
class ServerInit
{
/**
* The full host name.
*
* @Type("string")
* @var string
*/
public $server_name;
/**
* Admin info
*
* @Assert\NotBlank()
* @Assert\Type("PleskExt\RestApi\v2\Entity\Admin")
* @Type("PleskExt\RestApi\v2\Entity\Admin")
* @var Admin
*/
public $admin;
/**
* The new Plesk Administrator&#39;s password that will replace the default one.
*
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $password;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class ServerIp
{
/**
* The IP address in Plesk database (IP v4).
*
* @Type("string")
* @var string
*/
public $ipv4;
/**
* The IP address in Plesk database (IP v6).
*
* @Type("string")
* @var string
*/
public $ipv6;
/**
* The netmask of the network.
*
* @Type("string")
* @var string
*/
public $netmask;
/**
* The server network interface name.
*
* @Type("string")
* @var string
*/
public $interface;
/**
* The type of IP address. Allowed values: shared | exclusive.
*
* @Type("string")
* @var string
*/
public $type;
}

View File

@@ -1,37 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* License parameters
*/
class ServerLicense
{
/**
* License key data.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $key;
/**
* Activation code.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $code;
/**
* It specifies if the key that will be installed is an additional key.
*
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $additional;
}

View File

@@ -1,72 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class ServerMeta
{
/**
* Server platform type.
*
* @Type("string")
* @var string
*/
public $platform;
/**
* Server hostname.
*
* @Type("string")
* @var string
*/
public $hostname;
/**
* Server GUID.
*
* @Type("string")
* @var string
*/
public $guid;
/**
* Product version.
*
* @Type("string")
* @var string
*/
public $panel_version;
/**
* Product build revision.
*
* @Type("string")
* @var string
*/
public $panel_revision;
/**
* Product build date.
*
* @Type("string")
* @var string
*/
public $panel_build_date;
/**
* Product installed update version.
*
* @Type("string")
* @var string
*/
public $panel_update_version;
/**
* REST API extension version.
*
* @Type("string")
* @var string
*/
public $extension_version;
/**
* REST API extension release number.
*
* @Type("string")
* @var string
*/
public $extension_release;
}

View File

@@ -1,14 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class StatusResponse
{
/**
* @Type("string")
* @var string
*/
public $status;
}

View File

@@ -1,14 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class SuccessResponse extends \PleskExt\RestApi\v2\Entity\StatusResponse
{
/**
* @Type("string")
* @var string
*/
public $status = 'success';
}