Skip to content

Commit 9f85236

Browse files
committed
Merge branch 'NL8VPS1-343-allow-customers-to-disable-mail-port-blocks-on-their-kubernetes-cluster' into 'master'
add method to block/unblock mailports for kubernetes Closes NL8VPS1-343 See merge request nl-transip/transip/restapi-php-library!300
2 parents 4b8477d + 5e8e345 commit 9f85236

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.53.7
5+
---
6+
* Add `unblockMailPorts()` and `blockMailPorts()` to `ClusterRepository` resource
7+
8+
49
6.53.6
510
---
611
* Add `diskPerformanceTier`, `bandwidthInboundInGb` and `bandwidthOutboundInGb` fields to `Vps` model

src/Repository/Kubernetes/ClusterRepository.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,30 @@ public function upgrade(string $clusterName, string $version): void
132132
);
133133
}
134134

135+
public function unblockMailPorts(string $clusterName): void
136+
{
137+
$parameters = [
138+
'action' => 'unblock_mailports',
139+
];
140+
141+
$this->httpClient->patch(
142+
$this->getResourceUrl($clusterName),
143+
$parameters
144+
);
145+
}
146+
147+
public function blockMailPorts(string $clusterName): void
148+
{
149+
$parameters = [
150+
'action' => 'block_mailports',
151+
];
152+
153+
$this->httpClient->patch(
154+
$this->getResourceUrl($clusterName),
155+
$parameters
156+
);
157+
}
158+
135159
public function remove(string $clusterName): void
136160
{
137161
$this->httpClient->delete(

src/TransipAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
class TransipAPI
110110
{
111111
public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6";
112-
public const TRANSIP_API_LIBRARY_VERSION = "6.53.6";
112+
public const TRANSIP_API_LIBRARY_VERSION = "6.53.7";
113113
public const TRANSIP_API_DEMO_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImN3MiFSbDU2eDNoUnkjelM4YmdOIn0.eyJpc3MiOiJhcGkudHJhbnNpcC5ubCIsImF1ZCI6ImFwaS50cmFuc2lwLm5sIiwianRpIjoiY3cyIVJsNTZ4M2hSeSN6UzhiZ04iLCJpYXQiOjE1ODIyMDE1NTAsIm5iZiI6MTU4MjIwMTU1MCwiZXhwIjoyMTE4NzQ1NTUwLCJjaWQiOiI2MDQ0OSIsInJvIjpmYWxzZSwiZ2siOmZhbHNlLCJrdiI6dHJ1ZX0.fYBWV4O5WPXxGuWG-vcrFWqmRHBm9yp0PHiYh_oAWxWxCaZX2Rf6WJfc13AxEeZ67-lY0TA2kSaOCp0PggBb_MGj73t4cH8gdwDJzANVxkiPL1Saqiw2NgZ3IHASJnisUWNnZp8HnrhLLe5ficvb1D9WOUOItmFC2ZgfGObNhlL2y-AMNLT4X7oNgrNTGm-mespo0jD_qH9dK5_evSzS3K8o03gu6p19jxfsnIh8TIVRvNdluYC2wo4qDl5EW5BEZ8OSuJ121ncOT1oRpzXB0cVZ9e5_UVAEr9X3f26_Eomg52-PjrgcRJ_jPIUYbrlo06KjjX2h0fzMr21ZE023Gw";
114114

115115
/**

0 commit comments

Comments
 (0)