Skip to content

Commit dc56772

Browse files
feat(sdk): introduce inline enums
STACKITSDK-399
1 parent 772e71d commit dc56772

576 files changed

Lines changed: 34966 additions & 2990 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
- [v0.14.2](services/alb/CHANGELOG.md#v0142)
1515
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
1616
- `v2api`: **Improvement**: Use new `WaiterHandler` struct in the ALB WaitHandler
17+
- [v0.15.0](services/alb/CHANGELOG.md#v0150)
18+
- **Feature:** Introduce enums for various attributes
1719
- `albwaf`:
1820
- [v0.3.2](services/albwaf/CHANGELOG.md#v032)
1921
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -25,6 +27,8 @@
2527
- `v1alphaapi`: Align package to latest API specification
2628
- [v0.6.0](services/albwaf/CHANGELOG.md#v060)
2729
- `v1alphaapi`: Align package to latest API specification
30+
- [v0.7.0](services/albwaf/CHANGELOG.md#v070)
31+
- **Feature:** Introduce enums for various attributes
2832
- `archiving`:
2933
- [v0.2.6](services/archiving/CHANGELOG.md#v026)
3034
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -41,6 +45,8 @@
4145
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
4246
- [v0.4.2](services/auditlog/CHANGELOG.md#v042)
4347
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
48+
- [v0.5.0](services/auditlog/CHANGELOG.md#v050)
49+
- **Feature:** Introduce enums for various attributes
4450
- `authorization`:
4551
- [v0.14.3](services/authorization/CHANGELOG.md#v0143)
4652
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -66,6 +72,8 @@
6672
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
6773
- [v1.16.0](services/cdn/CHANGELOG.md#v1160)
6874
- **Feature:** Added `_UNKNOWN_DEFAULT_OPEN_API` fallback value to all enums to handle unknown API values gracefully.
75+
- [v1.17.0](services/cdn/CHANGELOG.md#v1170)
76+
- **Feature:** Introduce enums for various attributes
6977
- `certificates`:
7078
- [v1.5.2](services/certificates/CHANGELOG.md#v152)
7179
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -89,6 +97,8 @@
8997
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
9098
- [v0.3.2](services/cost/CHANGELOG.md#v032)
9199
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
100+
- [v0.4.0](services/cost/CHANGELOG.md#v040)
101+
- **Feature:** Introduce enums for various attributes
92102
- `dns`:
93103
- [v0.19.3](services/dns/CHANGELOG.md#v0193)
94104
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -98,13 +108,17 @@
98108
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
99109
- [v0.20.2](services/dns/CHANGELOG.md#v0202)
100110
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
111+
- [v0.21.0](services/dns/CHANGELOG.md#v0210)
112+
- **Feature:** Introduce enums for various attributes
101113
- `dremio`
102114
- [v0.2.0](services/dremio/CHANGELOG.md#v020)
103115
- **Breaking change**: move waiters from `v1alphaapi/wait/wait` to `v1alphaapi/wait`
104116
- [v0.1.0](services/dremio/CHANGELOG.md#v010)
105117
- Manage your STACKIT Dremio resources: `DremioInstance`, `DremioUser`
106118
- Waiters for async operations: `CreateDremioInstanceWaitHandler`, `UpdateDremioInstanceWaitHandler`, `DeleteDremioInstanceWaitHandler`, `CreateDremioUserWaitHandler`, `UpdateDremioUserWaitHandler`, `DeleteDremioUserWaitHandler`
107119
- [Usage example](https://github.com/stackitcloud/stackit-sdk-go/tree/main/examples/dremio)
120+
- [v0.2.0](services/dremio/CHANGELOG.md#v020)
121+
- **Feature:** Introduce enums for various attributes
108122
- `edge`:
109123
- [v0.8.2](services/edge/CHANGELOG.md#v082)
110124
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -119,6 +133,8 @@
119133
- [v0.11.0](services/edge/CHANGELOG.md#v0110)
120134
- **Improvement:** Use new `WaiterHandler` struct in the Edge WaitHandler
121135
- **Deprecation:** Deprecated `ErrInstanceCreationFailed` and `ErrInstanceIsBeingDeleted` in `wait` package
136+
- [v0.12.0](services/edge/CHANGELOG.md#v0120)
137+
- **Feature:** Introduce enums for various attributes
122138
- `git`:
123139
- [v0.11.2](services/git/CHANGELOG.md#v0112)
124140
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -130,6 +146,8 @@
130146
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
131147
- [v0.13.0](services/git/CHANGELOG.md#v0130)
132148
- `v1betaapi`: **Improvement**: Use new `WaiterHandler` struct in the Git WaitHandler
149+
- [v0.14.0](services/git/CHANGELOG.md#v0140)
150+
- **Feature:** Introduce enums for various attributes
133151
- `iaas`:
134152
- [v1.9.1](services/iaas/CHANGELOG.md#v191)
135153
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -163,6 +181,8 @@
163181
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
164182
- [v0.9.0](services/intake/CHANGELOG.md#v090)
165183
- **Feature:** Added `_UNKNOWN_DEFAULT_OPEN_API` fallback value to all enums to handle unknown API values gracefully.
184+
- [v0.10.0](services/intake/CHANGELOG.md#v0100)
185+
- **Feature:** Introduce enums for various attributes
166186
- `kms`:
167187
- [v1.6.2](services/kms/CHANGELOG.md#v162)
168188
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -178,6 +198,8 @@
178198
- **Improvement:** Use new WaitHandler struct for all wait handlers
179199
- [v1.10.0](services/kms/CHANGELOG.md#v1100)
180200
- `v1betaapi`: This API was removed after the announced deprecation period.
201+
- [v1.11.0](services/kms/CHANGELOG.md#v1110)
202+
- Feature: Introduce enums for various attributes
181203
- `lbapplication`:
182204
- [v0.5.7](services/lbapplication/CHANGELOG.md#v057)
183205
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -197,6 +219,8 @@
197219
- [v1.13.0](services/loadbalancer/CHANGELOG.md#v1130)
198220
- **Improvement:** Use new WaiterHelper for LoadBalancer waiters
199221
- **Breaking Change:** `v2api/wait/DeleteLoadBalancerWaitHandler` now returns a `LoadBalancer` instead of `struct{}`
222+
- [v1.14.0](services/loadbalancer/CHANGELOG.md#v1140)
223+
- **Feature:** Introduce enums for various attributes
200224
- `logme`:
201225
- [v0.27.3](services/logme/CHANGELOG.md#v0273)
202226
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -208,6 +232,8 @@
208232
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
209233
- [v0.29.0](services/logme/CHANGELOG.md#v0290)
210234
- `v1api`: **Improvement**: Use new `WaiterHandler` struct in the LogMe WaitHandler
235+
- [v0.30.0](services/logme/CHANGELOG.md#v0300)
236+
- **Feature:** Introduce enums for various attributes
211237
- `logs`:
212238
- [v0.7.3](services/logs/CHANGELOG.md#v073)
213239
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -219,6 +245,8 @@
219245
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
220246
- [v0.9.0](services/logs/CHANGELOG.md#v090)
221247
- **Improvement:** Use new WaiterHelper for Logs waiters
248+
- [v0.10.0](services/logs/CHANGELOG.md#v0100)
249+
- **Feature:** Introduce enums for various attributes
222250
- `mariadb`:
223251
- [v0.27.3](services/mariadb/CHANGELOG.md#v0273)
224252
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -230,6 +258,8 @@
230258
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
231259
- [v0.29.0](services/mariadb/CHANGELOG.md#v290)
232260
- **Improvement:** Use new WaiterHelper for Logs waiters
261+
- [v0.30.0](services/mariadb/CHANGELOG.md#v0300)
262+
- **Feature:** Introduce enums for various attributes
233263
- `modelserving`:
234264
- [v0.8.3](services/modelserving/CHANGELOG.md#v083)
235265
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -241,6 +271,8 @@
241271
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
242272
- [v0.10.0](services/modelserving/CHANGELOG.md#v0100)
243273
- **Improvement:** Use new WaiterHelper for modelserving waiters
274+
- [v0.11.0](services/modelserving/CHANGELOG.md#v0110)
275+
- **Feature:** Introduce enums for various attributes
244276
- `mongodbflex`:
245277
- [v1.7.3](services/mongodbflex/CHANGELOG.md#v173)
246278
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -252,6 +284,8 @@
252284
- **Bugfix**: **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
253285
- [v1.8.3](services/mongodbflex/CHANGELOG.md#v183)
254286
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
287+
- [v1.9.0](services/mongodbflex/CHANGELOG.md#v190)
288+
- **Feature:** Introduce enums for various attributes
255289
- `objectstorage`:
256290
- [v1.7.2](services/objectstorage/CHANGELOG.md#v172)
257291
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -274,6 +308,8 @@
274308
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
275309
- [v0.22.0](services/observability/CHANGELOG.md#v0220)
276310
- **Breaking change:** Updated `InstanceSensitiveData` model because of misbehaving API
311+
- [v0.23.0](services/observability/CHANGELOG.md#v0230)
312+
- **Feature:** Introduce enums for various attributes
277313
- `opensearch`:
278314
- [v0.26.3](services/opensearch/CHANGELOG.md#v0263)
279315
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -285,6 +321,8 @@
285321
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
286322
- [v0.28.0](services/opensearch/CHANGELOG.md#v0280)
287323
- **Improvement:** Use new WaiterHelper for opensearch waiters
324+
- [v0.29.0](services/opensearch/CHANGELOG.md#v0290)
325+
- **Feature:** Introduce enums for various attributes
288326
- `postgresflex`:
289327
- [v1.6.3](services/postgresflex/CHANGELOG.md#v163)
290328
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -307,6 +345,8 @@
307345
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
308346
- [v0.30.0](services/rabbitmq/CHANGELOG.md#v0300)
309347
- `v1api`: **Improvement**: Use new `WaiterHandler` struct in the RabbitMQ WaitHandler
348+
- [v0.31.0](services/rabbitmq/CHANGELOG.md#v0310)
349+
- **Feature:** Introduce enums for various attributes
310350
- `redis`:
311351
- [v0.27.3](services/redis/CHANGELOG.md#v0273)
312352
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -316,6 +356,8 @@
316356
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
317357
- [v0.28.2](services/redis/CHANGELOG.md#v0282)
318358
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
359+
- [v0.29.0](services/redis/CHANGELOG.md#v0290)
360+
- **Feature:** Introduce enums for various attributes
319361
- `resourcemanager`:
320362
- [v0.21.2](services/resourcemanager/CHANGELOG.md#v0212)
321363
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -327,6 +369,8 @@
327369
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
328370
- [v0.23.0](services/resourcemanager/CHANGELOG.md#v0230)
329371
- **Feature:** Added `_UNKNOWN_DEFAULT_OPEN_API` fallback value to all enums to handle unknown API values gracefully.
372+
- [v0.24.0](services/resourcemanager/CHANGELOG.md#v0240)
373+
- **Feature:** Introduce enums for various attributes
330374
- `runcommand`:
331375
- [v1.6.3](services/runcommand/CHANGELOG.md#v163)
332376
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -336,6 +380,8 @@
336380
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
337381
- [v1.7.2](services/runcommand/CHANGELOG.md#v172)
338382
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
383+
- [v1.8.0](services/runcommand/CHANGELOG.md#v180)
384+
- **Feature:** Introduce enums for various attributes
339385
- `scf`:
340386
- [v0.6.3](services/scf/CHANGELOG.md#v063)
341387
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -368,6 +414,8 @@
368414
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
369415
- [v1.6.2](services/serverbackup/CHANGELOG.md#v162)
370416
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
417+
- [v1.7.0](services/serverbackup/CHANGELOG.md#v170)
418+
- **Feature:** Introduce enums for various attributes
371419
- `serverupdate`:
372420
- [v1.4.3](services/serverupdate/CHANGELOG.md#v143)
373421
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -398,6 +446,8 @@
398446
- **Feature:**: New API client method `GetFederatedIdentityProvider`
399447
- Deprecated SDK layer in root of the module:
400448
- **Feature:**: New API client method `GetFederatedIdentityProvider`
449+
- [v0.20.0](services/serviceaccount/CHANGELOG.md#v0200)
450+
- **Feature:** Introduce enums for various attributes
401451
- `serviceenablement`:
402452
- [v1.4.3](services/serviceenablement/CHANGELOG.md#v143)
403453
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -411,6 +461,8 @@
411461
- `v2api`: Removal of duplicated return statements in `DefaultAPIService` implementations
412462
- [v1.6.0](services/serviceenablement/CHANGELOG.md#v160)
413463
- **Improvement:** Use new WaiterHelper for serviceenablement waiters
464+
- [v1.7.0](services/serviceenablement/CHANGELOG.md#v170)
465+
- **Feature:** Introduce enums for various attributes
414466
- `sfs`:
415467
- [v0.6.3](services/sfs/CHANGELOG.md#v063)
416468
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -460,6 +512,8 @@
460512
- Deprecated SDK layer in root of the module:
461513
- **Docs:** Update possible values of `ClusterError`
462514
- **Feature:** New field `GatewayApi` in `DNS` model struct
515+
- [v1.16.0](services/ske/CHANGELOG.md#v1160)
516+
- **Feature:** Introduce enums for various attributes
463517
- `sqlserverflex`:
464518
- [v1.6.3](services/sqlserverflex/CHANGELOG.md#v163)
465519
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -476,6 +530,8 @@
476530
- **Feature:** Added `_UNKNOWN_DEFAULT_OPEN_API` fallback value to all enums to handle unknown API values gracefully.
477531
- [v1.11.0](services/sqlserverflex/CHANGELOG.md#v1110)
478532
- `v3beta1api`: **Feature:** Added `labels` to `CreateInstanceRequestPayload`, `GetInstanceReponse`, `UpdateInstancePartiallyRequestPayload`, `UpdateInstanceRequestPayload`
533+
- [v1.12.0](services/sqlserverflex/CHANGELOG.md#v1120)
534+
- **Feature:** Introduce enums for various attributes
479535
- `stackitmarketplace`:
480536
- [v1.17.5](services/stackitmarketplace/CHANGELOG.md#v1175)
481537
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -492,11 +548,15 @@
492548
- **Feature:** Added `_UNKNOWN_DEFAULT_OPEN_API` fallback value to all enums to handle unknown API values gracefully.
493549
- [v0.2.1](services/telemetryrouter/CHANGELOG.md#v021)
494550
- **Improvement**: Use new `WaiterHandler` struct in the TelemetryRouter WaitHandler
551+
- [v0.3.0](services/telemetryrouter/CHANGELOG.md#v030)
552+
- **Feature:** Introduce enums for various attributes
495553
- `telemetrylink`:
496554
- [v0.1.0](services/telemetrylink/CHANGELOG.md#v010)
497555
- **New**: API for STACKIT Telemetry Link
498556
- [v0.1.1](services/telemetrylink/CHANGELOG.md#v011)
499557
- **Improvement**: Use new `WaiterHandler` struct in the TelemetryLink WaitHandler
558+
- [v0.2.0](services/telemetrylink/CHANGELOG.md#v020)
559+
- **Feature:** Introduce enums for various attributes
500560
- `vpn`:
501561
- [v0.4.2](services/vpn/CHANGELOG.md#v042)
502562
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -530,6 +590,8 @@
530590
- **Feature:** Add `Labels` field to `CreateGatewayConnectionPayload` and `UpdateGatewayConnectionPayload`
531591
- `v1beta1api`: Align package to latest API specification
532592
- `v1alpha1api`: Align package to latest API specification
593+
- [v0.12.0](services/vpn/CHANGELOG.md#v0120)
594+
- **Feature:** Introduce enums for various attributes
533595

534596
## Release (2026-04-07)
535597
- `alb`: [v0.13.1](services/alb/CHANGELOG.md#v0131)

examples/dremio/dremio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
ctx := context.Background()
1919

2020
dremioClient, err := dremio.NewAPIClient(
21-
config.WithRegion(region),
21+
config.WithRegion(string(region)),
2222
)
2323
if err != nil {
2424
fmt.Fprintf(os.Stderr, "[Dremio] Creating API client: %v\n", err)

examples/intake/intake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func main() {
4343
fmt.Printf("Triggered creation of Intake Runner with ID: %s. Waiting for it to become active...\n", intakeRunnerId)
4444

4545
// Create an Intake
46-
dremioAuthType := intake.CatalogAuthType("dremio") // can also be set to "none" if the catalog is not authenticated
46+
dremioAuthType := intake.CATALOGAUTHTYPE_DREMIO // can also be set to "none" if the catalog is not authenticated
4747
createIntakePayload := intake.CreateIntakePayload{
4848
DisplayName: "my-example-intake",
4949
IntakeRunnerId: intakeRunnerId,

examples/loadbalancer/loadbalancer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ func main() {
4444
Networks: []loadbalancer.Network{
4545
{
4646
NetworkId: utils.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
47-
Role: utils.Ptr("ROLE_LISTENERS_AND_TARGETS"),
47+
Role: loadbalancer.NETWORKROLE_ROLE_LISTENERS_AND_TARGETS.Ptr(),
4848
},
4949
},
5050
Listeners: []loadbalancer.Listener{
5151
{
5252
DisplayName: utils.Ptr("example-listener"),
5353
Port: utils.Ptr(int32(1)),
54-
Protocol: utils.Ptr("PROTOCOL_TCP"),
54+
Protocol: loadbalancer.LISTENERPROTOCOL_PROTOCOL_TCP.Ptr(),
5555
TargetPool: utils.Ptr("example-target-pool"),
5656
},
5757
},

examples/logs/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func main() {
6363
// Create an Access Token
6464
createTokenPayload := logs.CreateAccessTokenPayload{
6565
DisplayName: "my-access-token",
66-
Permissions: []string{"read"},
66+
Permissions: []logs.PermissionsInner{logs.PERMISSIONSINNER_READ},
6767
}
6868
createTokenResp, err := client.DefaultAPI.CreateAccessToken(ctx, projectId, regionId, createdInstance).
6969
CreateAccessTokenPayload(createTokenPayload).

0 commit comments

Comments
 (0)