Skip to content

Commit

Permalink
Merge branch 'tlsmode' into 'master'
Browse files Browse the repository at this point in the history
Added tlsMode support

See merge request transip/restapi-php-library!125
  • Loading branch information
samihsoylu committed Jun 23, 2020
2 parents 6687d00 + 0bf0af7 commit 1bf5997
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

6.3.0
-----
* Added tls mode property to HA-IP

6.2.0
-----
- Added the serial property to BigStorage
Expand Down
19 changes: 19 additions & 0 deletions src/Entity/Haip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -88,6 +92,11 @@ class Haip extends AbstractEntity
*/
protected $ipAddresses;

/**
* @var string
*/
protected $tlsMode;

public function getName(): string
{
return $this->name;
Expand Down Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion src/TransipAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand Down

0 comments on commit 1bf5997

Please sign in to comment.