Upcoming multi API version support in the STACKIT Go SDK #5062
rubenhoenle
announced in
Announcements
Replies: 1 comment
-
|
Sound good! Happy to hear that :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As of now every of the SDK modules in the STACKIT Go SDK only supports one API version, usually the latest GA version (e.g. for IaaS it's currently
v2).This means as a developer using the STACKIT Go SDK you didn't have any chance to take control of which API version you're using. Furthermore our SDK didn't include support for alpha API versions in the past.
Since we wanted to provide you with an SDK for all available API versions of the STACKIT services, our SDK structure will undergo some significant changes as you can see below.
From now on there will be seperate packages named after the API versions (e.g.
v2api,v3alpha1api, ...) in each SDK module. This way you as a developer will have full control which API version you want to use within your application. Since also all alpha and beta API versions will be included in the SDK from now on, you'll gain access to new experimental API features within the STACKIT SDK.Warning
The old SDK structure is entirely marked as deprecated and will be removed after 2026-09-30, so you have enough time to switch to the new API-version specific packages.
Note the migration guide below which shows how you can migrate to the new SDK structure.
Old Go SDK structure
New Go SDK structure
Migration guide
See the code example below how to migrate to the new SDK structure. This migration guide is based on the resourcemanager SDK example.
Note that at the same time we provide you with the multi API version support in the Go SDK we also improved our SDK generator to produce a more reliable SDK output. That's why some datatypes have changed in the new SDK packages.
Beta Was this translation helpful? Give feedback.
All reactions