Skip to content

Commit 4851991

Browse files
authored
Merge pull request #185 from ToshY/generator/update-api-models-184
Generator/update api models #184
2 parents 4792e26 + ca1b43c commit 4851991

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

docs/base-api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,7 @@ $bunnyHttpClient->request(
21662166
'Region' => 'DE',
21672167
'ReplicationRegions' => '',
21682168
'ZoneTier' => 'Standard',
2169+
'StorageZoneType' => 'Supported',
21692170
],
21702171
)
21712172
);
@@ -2207,6 +2208,10 @@ $bunnyHttpClient->request(
22072208
- `JH` = Johannesburg (Africa) | HDD + SSD
22082209
- The API accepts both the integer as well as enum value for the `ZoneTier`.
22092210

2211+
??? warning
2212+
2213+
- The key `StorageZoneType` is related to an upcoming feature and currently does not serve any purpose.
2214+
22102215
#### [Check Storage Zone Availability](https://docs.bunny.net/reference/storagezonepublic_checkavailability)
22112216

22122217
```php

src/Model/Api/Base/PullZone/AddOrUpdateEdgeRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getBody(): array
5959
new AbstractParameter(name: 'PatternMatches', type: Type::ARRAY_TYPE, children: [
6060
new AbstractParameter(name: null, type: Type::STRING_TYPE),
6161
]),
62-
new AbstractParameter(name: 'PatternMatchingType', type: Type::INT_TYPE, required: true),
62+
new AbstractParameter(name: 'PatternMatchingType', type: Type::STRING_TYPE, required: true),
6363
new AbstractParameter(name: 'Parameter1', type: Type::STRING_TYPE),
6464
]),
6565
]),
@@ -71,7 +71,7 @@ public function getBody(): array
7171
new AbstractParameter(name: 'ActionParameter3', type: Type::STRING_TYPE),
7272
]),
7373
]),
74-
new AbstractParameter(name: 'TriggerMatchingType', type: Type::INT_TYPE),
74+
new AbstractParameter(name: 'TriggerMatchingType', type: Type::STRING_TYPE),
7575
new AbstractParameter(name: 'Description', type: Type::STRING_TYPE),
7676
new AbstractParameter(name: 'Enabled', type: Type::BOOLEAN_TYPE),
7777
new AbstractParameter(name: 'OrderIndex', type: Type::INT_TYPE),

src/Model/Api/Base/StorageZone/AddStorageZone.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function getBody(): array
5050
new AbstractParameter(name: null, type: Type::STRING_TYPE),
5151
]),
5252
new AbstractParameter(name: 'ZoneTier', type: Type::STRING_TYPE),
53+
new AbstractParameter(name: 'StorageZoneType', type: Type::STRING_TYPE),
5354
];
5455
}
5556
}

0 commit comments

Comments
 (0)