Skip to content

Commit a197bfa

Browse files
author
Mohammad Niknab
committed
Merge branch 'NL8VPS4-720-add-patch-request' into 'master'
[NL8VPS4-720] add patch request Closes NL8VPS4-720 See merge request nl-transip/transip/restapi-php-library!311
2 parents 7215dc5 + 4837d74 commit a197bfa

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
CHANGELOG
22
=========
3+
6.53.12
4+
-----
5+
* Add `sendPatchRequest` to `VpsRepository` resource
6+
37
6.53.11
48
-----
59
* Add more conditions to firewall rules comparison

src/Repository/VpsRepository.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,19 @@ public function cancel(string $vpsName, string $endTime): void
223223
{
224224
$this->httpClient->delete($this->getResourceUrl($vpsName), ['endTime' => $endTime]);
225225
}
226+
227+
/**
228+
* $parameters example array
229+
*
230+
$parameters = [
231+
'action' => "handover",
232+
'targetCustomerName' => "example2",
233+
];
234+
*
235+
* @param mixed[] $parameters
236+
*/
237+
public function sendPatchRequest(string $vpsName, array $parameters): ResponseInterface
238+
{
239+
return $this->httpClient->patch($this->getResourceUrl($vpsName), $parameters);
240+
}
226241
}

src/TransipAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
class TransipAPI
109109
{
110110
public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6";
111-
public const TRANSIP_API_LIBRARY_VERSION = "6.53.11";
111+
public const TRANSIP_API_LIBRARY_VERSION = "6.53.12";
112112
public const TRANSIP_API_DEMO_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImN3MiFSbDU2eDNoUnkjelM4YmdOIn0.eyJpc3MiOiJhcGkudHJhbnNpcC5ubCIsImF1ZCI6ImFwaS50cmFuc2lwLm5sIiwianRpIjoiY3cyIVJsNTZ4M2hSeSN6UzhiZ04iLCJpYXQiOjE1ODIyMDE1NTAsIm5iZiI6MTU4MjIwMTU1MCwiZXhwIjoyMTE4NzQ1NTUwLCJjaWQiOiI2MDQ0OSIsInJvIjpmYWxzZSwiZ2siOmZhbHNlLCJrdiI6dHJ1ZX0.fYBWV4O5WPXxGuWG-vcrFWqmRHBm9yp0PHiYh_oAWxWxCaZX2Rf6WJfc13AxEeZ67-lY0TA2kSaOCp0PggBb_MGj73t4cH8gdwDJzANVxkiPL1Saqiw2NgZ3IHASJnisUWNnZp8HnrhLLe5ficvb1D9WOUOItmFC2ZgfGObNhlL2y-AMNLT4X7oNgrNTGm-mespo0jD_qH9dK5_evSzS3K8o03gu6p19jxfsnIh8TIVRvNdluYC2wo4qDl5EW5BEZ8OSuJ121ncOT1oRpzXB0cVZ9e5_UVAEr9X3f26_Eomg52-PjrgcRJ_jPIUYbrlo06KjjX2h0fzMr21ZE023Gw";
113113

114114
/**

0 commit comments

Comments
 (0)