From 0bf0af7912bef511457487c5492631118662eb0e Mon Sep 17 00:00:00 2001 From: Samih Soylu Date: Fri, 12 Jun 2020 17:01:53 +0200 Subject: [PATCH] Added tlsMode support --- CHANGELOG.md | 4 ++++ src/Entity/Haip.php | 19 +++++++++++++++++++ src/TransipAPI.php | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a94075..51dff23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========= +6.3.0 +----- +* Added tls mode property to HA-IP + 6.2.0 ----- - Added the serial property to BigStorage diff --git a/src/Entity/Haip.php b/src/Entity/Haip.php index 81a3a8f..b662aa7 100644 --- a/src/Entity/Haip.php +++ b/src/Entity/Haip.php @@ -13,6 +13,10 @@ class Haip extends AbstractEntity public const BALANCINGMODE_COOKIE = 'cookie'; public const BALANCINGMODE_SOURCE = 'source'; + public const TLSMODE_TLS12 = 'tls12'; + public const TLSMODE_TLS11_12 = 'tls11_12'; + public const TLSMODE_TLS10_11_12 = 'tls10_11_12'; + /** * @var string */ @@ -88,6 +92,11 @@ class Haip extends AbstractEntity */ protected $ipAddresses; + /** + * @var string + */ + protected $tlsMode; + public function getName(): string { return $this->name; @@ -216,4 +225,14 @@ public function setPtrRecord(string $ptrRecord): Haip $this->ptrRecord = $ptrRecord; return $this; } + + public function getTlsMode(): string + { + return $this->tlsMode; + } + + public function setTlsMode(string $tlsMode): void + { + $this->tlsMode = $tlsMode; + } } diff --git a/src/TransipAPI.php b/src/TransipAPI.php index cbf4601..13b9664 100644 --- a/src/TransipAPI.php +++ b/src/TransipAPI.php @@ -57,7 +57,7 @@ class TransipAPI { public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6"; - public const TRANSIP_API_LIBRARY_VERSION = "6.2.0"; + public const TRANSIP_API_LIBRARY_VERSION = "6.3.0"; public const TRANSIP_API_DEMO_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImN3MiFSbDU2eDNoUnkjelM4YmdOIn0.eyJpc3MiOiJhcGkudHJhbnNpcC5ubCIsImF1ZCI6ImFwaS50cmFuc2lwLm5sIiwianRpIjoiY3cyIVJsNTZ4M2hSeSN6UzhiZ04iLCJpYXQiOjE1ODIyMDE1NTAsIm5iZiI6MTU4MjIwMTU1MCwiZXhwIjoyMTE4NzQ1NTUwLCJjaWQiOiI2MDQ0OSIsInJvIjpmYWxzZSwiZ2siOmZhbHNlLCJrdiI6dHJ1ZX0.fYBWV4O5WPXxGuWG-vcrFWqmRHBm9yp0PHiYh_oAWxWxCaZX2Rf6WJfc13AxEeZ67-lY0TA2kSaOCp0PggBb_MGj73t4cH8gdwDJzANVxkiPL1Saqiw2NgZ3IHASJnisUWNnZp8HnrhLLe5ficvb1D9WOUOItmFC2ZgfGObNhlL2y-AMNLT4X7oNgrNTGm-mespo0jD_qH9dK5_evSzS3K8o03gu6p19jxfsnIh8TIVRvNdluYC2wo4qDl5EW5BEZ8OSuJ121ncOT1oRpzXB0cVZ9e5_UVAEr9X3f26_Eomg52-PjrgcRJ_jPIUYbrlo06KjjX2h0fzMr21ZE023Gw"; /**