Skip to content

Commit 71052ef

Browse files
Merge pull request #82 from PouleR/bugfix/security-txt-policy
Bugfix/security txt policy
2 parents 84db902 + f6164e8 commit 71052ef

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
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.103.1]
10+
11+
### Fixed
12+
13+
- DomainRouters: add `security_txt_policy_id` to model and endpoint.
14+
915
## [1.103]
1016

1117
### Changed

src/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Client implements ClientContract
1717
{
1818
private const CONNECT_TIMEOUT = 60;
1919
private const TIMEOUT = 180;
20-
private const VERSION = '1.103';
20+
private const VERSION = '1.103.1';
2121
private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION;
2222
private GuzzleClient $httpClient;
2323

src/Endpoints/DomainRouters.php

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function update(DomainRouter $domainRouter): Response
6666
'force_ssl',
6767
'id',
6868
'cluster_id',
69+
'security_txt_policy_id',
6970
])
7071
);
7172

src/Models/DomainRouter.php

+15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class DomainRouter extends ClusterModel
1616
private int $clusterId;
1717
private ?string $createdAt = null;
1818
private ?string $updatedAt = null;
19+
private ?int $securityTxtPolicyId = null;
1920

2021
public function getDomain(): string
2122
{
@@ -137,6 +138,18 @@ public function setUpdatedAt(?string $updatedAt): self
137138
return $this;
138139
}
139140

141+
public function getSecurityTxtPolicyId(): ?int
142+
{
143+
return $this->securityTxtPolicyId;
144+
}
145+
146+
public function setSecurityTxtPolicyId(?int $securityTxtPolicyId): self
147+
{
148+
$this->securityTxtPolicyId = $securityTxtPolicyId;
149+
150+
return $this;
151+
}
152+
140153
public function fromArray(array $data): self
141154
{
142155
return $this
@@ -147,6 +160,7 @@ public function fromArray(array $data): self
147160
->setNodeId(Arr::get($data, 'node_id'))
148161
->setCertificateId(Arr::get($data, 'certificate_id'))
149162
->setId(Arr::get($data, 'id'))
163+
->setSecurityTxtPolicyId(Arr::get($data, 'security_txt_policy_id'))
150164
->setClusterId(Arr::get($data, 'cluster_id'))
151165
->setCreatedAt(Arr::get($data, 'created_at'))
152166
->setUpdatedAt(Arr::get($data, 'updated_at'));
@@ -162,6 +176,7 @@ public function toArray(): array
162176
'node_id' => $this->getNodeId(),
163177
'certificate_id' => $this->getCertificateId(),
164178
'id' => $this->getId(),
179+
'security_txt_policy_id' => $this->getSecurityTxtPolicyId(),
165180
'cluster_id' => $this->getClusterId(),
166181
'created_at' => $this->getCreatedAt(),
167182
'updated_at' => $this->getUpdatedAt(),

0 commit comments

Comments
 (0)