Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pypa#79 from CyberfusionIO/fix/remove-customer-id-…
Browse files Browse the repository at this point in the history
…validation

Remove customer_id validation
dvdheiden authored Sep 27, 2023
2 parents 34d8677 + 6ce1bf4 commit 95ba0ba
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,11 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
this package and not the cluster API. See the changelog of the [cluster API](https://cluster-api.cyberfusion.nl/redoc#section/Changelog)
for detailed information.

## [1.102.5]

### Fixed

- Clusters: `customer_id` is no longer validated.

## [1.102.4]

### Fixed

- RootSshKeys: Add `cluster_id` when creating a public or private ssh key.
- RootSshKeys: Add `cluster_id` when creating a public or private SSH key.

## [1.102.3]

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

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

This client was built for and tested on the **1.198.2** version of the API.
This client was built for and tested on the **1.199** version of the API.

## Support

2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ class Client implements ClientContract
{
private const CONNECT_TIMEOUT = 60;
private const TIMEOUT = 180;
private const VERSION = '1.102.4';
private const VERSION = '1.102.5';
private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION;
private GuzzleClient $httpClient;

6 changes: 0 additions & 6 deletions src/Models/Cluster.php
Original file line number Diff line number Diff line change
@@ -233,12 +233,6 @@ public function getCustomerId(): ?int

public function setCustomerId(?int $customerId): self
{
Validator::value($customerId)
->nullable()
->minAmount(0)
->pattern('^[0-9]+$')
->validate();

$this->customerId = $customerId;

return $this;

0 comments on commit 95ba0ba

Please sign in to comment.