Skip to content

Commit fb55cb7

Browse files
authored
Merge pull request #40 from CyberfusionNL/1.88.0
Version 1.88.0
2 parents d07b830 + 3fd790e commit fb55cb7

File tree

5 files changed

+8
-90
lines changed

5 files changed

+8
-90
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
this package and not the cluster API. See the changelog of the [cluster API](https://cluster-api.cyberfusion.nl/redoc#section/Changelog)
77
for detailed information.
88

9+
## [1.88.0]
10+
11+
### Removed
12+
13+
- RabbitMQ attributes from UNIX user.
14+
915
## [1.87.0]
1016

1117
### Changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Client for the [Cyberfusion Cluster API](https://cluster-api.cyberfusion.nl/).
44

5-
This client was built for and tested on the **1.166** version of the API.
5+
This client was built for and tested on the **1.167** version of the API.
66

77
## Support
88

src/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Client implements ClientContract
2020
{
2121
private const CONNECT_TIMEOUT = 60;
2222
private const TIMEOUT = 180;
23-
private const VERSION = '1.87.0';
23+
private const VERSION = '1.88.0';
2424
private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION;
2525

2626
private Configuration $configuration;

src/Endpoints/UnixUsers.php

-4
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,6 @@ public function update(UnixUser $unixUser): Response
196196
'home_directory',
197197
'ssh_directory',
198198
'async_support_enabled',
199-
'rabbitmq_username',
200-
'rabbitmq_virtual_host_name',
201-
'rabbitmq_password',
202-
'rabbitmq_encryption_key',
203199
]));
204200

205201
$response = $this

src/Models/UnixUser.php

-84
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ class UnixUser extends ClusterModel implements Model
2222
private string $shellPath = ShellPath::BASH;
2323
private bool $recordUsageFiles = false;
2424
private bool $asyncSupportEnabled = false;
25-
private ?string $rabbitMqUsername = null;
26-
private ?string $rabbitMqVirtualHostName = null;
27-
private ?string $rabbitMqPassword = null;
28-
private ?string $rabbitMqEncryptionKey = null;
2925
private int $clusterId;
3026
private ?int $id = null;
3127
private ?int $unixId = null;
@@ -239,78 +235,6 @@ public function setAsyncSupportEnabled(bool $asyncSupportEnabled): self
239235
return $this;
240236
}
241237

242-
public function getRabbitMqUsername(): ?string
243-
{
244-
return $this->rabbitMqUsername;
245-
}
246-
247-
public function setRabbitMqUsername(?string $rabbitMqUsername): self
248-
{
249-
Validator::value($rabbitMqUsername)
250-
->nullable()
251-
->maxLength(32)
252-
->pattern('^[a-z0-9-.]+$')
253-
->validate();
254-
255-
$this->rabbitMqUsername = $rabbitMqUsername;
256-
257-
return $this;
258-
}
259-
260-
public function getRabbitMqVirtualHostName(): ?string
261-
{
262-
return $this->rabbitMqVirtualHostName;
263-
}
264-
265-
public function setRabbitMqVirtualHostName(?string $rabbitMqVirtualHostName): self
266-
{
267-
Validator::value($rabbitMqVirtualHostName)
268-
->nullable()
269-
->maxLength(32)
270-
->pattern('^[a-z0-9-.]+$')
271-
->validate();
272-
273-
$this->rabbitMqVirtualHostName = $rabbitMqVirtualHostName;
274-
275-
return $this;
276-
}
277-
278-
public function getRabbitMqPassword(): ?string
279-
{
280-
return $this->rabbitMqPassword;
281-
}
282-
283-
public function setRabbitMqPassword(?string $rabbitMqPassword): self
284-
{
285-
Validator::value($rabbitMqPassword)
286-
->nullable()
287-
->maxLength(255)
288-
->pattern('^[a-zA-Z0-9]+$')
289-
->validate();
290-
291-
$this->rabbitMqPassword = $rabbitMqPassword;
292-
293-
return $this;
294-
}
295-
296-
public function getRabbitMqEncryptionKey(): ?string
297-
{
298-
return $this->rabbitMqEncryptionKey;
299-
}
300-
301-
public function setRabbitMqEncryptionKey(?string $rabbitMqEncryptionKey): self
302-
{
303-
Validator::value($rabbitMqEncryptionKey)
304-
->nullable()
305-
->maxLength(255)
306-
->pattern('^[a-z\=\_\-A-Z0-9]+$')
307-
->validate();
308-
309-
$this->rabbitMqEncryptionKey = $rabbitMqEncryptionKey;
310-
311-
return $this;
312-
}
313-
314238
public function getClusterId(): int
315239
{
316240
return $this->clusterId;
@@ -387,10 +311,6 @@ public function fromArray(array $data): self
387311
->setShellPath(Arr::get($data, 'shell_path', ShellPath::BASH))
388312
->setRecordUsageFiles(Arr::get($data, 'record_usage_files', false))
389313
->setAsyncSupportEnabled(Arr::get($data, 'async_support_enabled', false))
390-
->setRabbitMqUsername(Arr::get($data, 'rabbitmq_username'))
391-
->setRabbitMqVirtualHostName(Arr::get($data, 'rabbitmq_virtual_host_name'))
392-
->setRabbitMqPassword(Arr::get($data, 'rabbitmq_password'))
393-
->setRabbitMqEncryptionKey(Arr::get($data, 'rabbitmq_encryption_key'))
394314
->setUnixId(Arr::get($data, 'unix_id'))
395315
->setId(Arr::get($data, 'id'))
396316
->setClusterId(Arr::get($data, 'cluster_id'))
@@ -414,10 +334,6 @@ public function toArray(): array
414334
'shell_path' => $this->getShellPath(),
415335
'record_usage_files' => $this->getRecordUsageFiles(),
416336
'async_support_enabled' => $this->isAsyncSupportEnabled(),
417-
'rabbitmq_username' => $this->getRabbitMqUsername(),
418-
'rabbitmq_virtual_host_name' => $this->getRabbitMqVirtualHostName(),
419-
'rabbitmq_password' => $this->getRabbitMqPassword(),
420-
'rabbitmq_encryption_key' => $this->getRabbitMqEncryptionKey(),
421337
'cluster_id' => $this->getClusterId(),
422338
'id' => $this->getId(),
423339
'unix_id' => $this->getUnixId(),

0 commit comments

Comments
 (0)