diff --git a/CHANGELOG.md b/CHANGELOG.md index e19cca0b3..b43be2c36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,23 +1,39 @@ ## Release (2026-XX-YY) -- `loadbalancer`: [v1.7.0](services/loadbalancer/CHANGELOG.md#v170) - - **Feature:** Add new fields `MaxCredentials`, `UsedCredentials` and `UsedLoadBalancers` in `GetQuotaResponse` Model -- `ske`: [v1.6.0](services/ske/CHANGELOG.md#v160) - - **Feature:** Add field `Identity` to model `ClusterStatus` -- `observability`: [v0.16.0](services/observability/CHANGELOG.md#v0160) - - **Breaking change:** The `PartialUpdateAlertrules` takes now `PartialUpdateAlertrulesRequestInner` instead of `UpdateAlertgroupsRequestInnerRulesInner`. - - **Breaking change:** The type of `Rules` in `CreateLogsAlertgroupsPayload` and `UpdateLogsAlertgroupPayload` has changed from `[]UpdateAlertgroupsRequestInnerRulesInner` to `[]CreateLogsAlertgroupsPayloadRulesInner`. - - **Deprecation:** The `GrafanaAdminPassword` and `GrafanaAdminUser` fields are now deprecated in `InstanceSensitiveData` model - - **Feature:** Add `GrafanaAdminEnabled` to `CreateInstancePayload` and `UpdateInstancePayload` models. - - **Feature:** Add new field `record` in `UpdateAlertgroupsRequestInnerRulesInner` model - - **Feature:** Add `CertCheck` to `CertCheckResponse` model. - - **Feature:** Add `HttpCheck` to `HttpCheckResponse` model. - - **Feature:** Add new `CreateLogsAlertgroupsPayloadRulesInner` model. - - **Feature:** Add `allowAssignGrafanaAdmin` to `GrafanaOauth` and `UpdateGrafanaConfigsPayloadGenericOauth` models. - - **Feature:** Add `GrafanaAdminEnabled` to `InstanceSensitiveData` model. - - **Feature:** Add new `PartialUpdateAlertrulesRequestInner` model. -- `secretsmanager`: [v0.14.0](services/secretsmanager/CHANGELOG.md#v0140) - - **Feature:** added KmsKey model - - **Feature:** added KmsKey to Instance, CreateInstancePayload and UpdateInstancePayload +- `loadbalancer`: + - [v1.7.1](services/loadbalancer/CHANGELOG.md#v171) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v1.7.0](services/loadbalancer/CHANGELOG.md#v170) + - **Feature:** Add new fields `MaxCredentials`, `UsedCredentials` and `UsedLoadBalancers` in `GetQuotaResponse` Model +- `ske`: + - [v1.6.1](services/ske/CHANGELOG.md#v161) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v1.6.0](services/ske/CHANGELOG.md#v160) + - **Feature:** Add field `Identity` to model `ClusterStatus` +- `observability`: + - [v0.16.1](services/observability/CHANGELOG.md#v0161) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v0.16.0](services/observability/CHANGELOG.md#v0160) + - **Breaking change:** The `PartialUpdateAlertrules` takes now `PartialUpdateAlertrulesRequestInner` instead of `UpdateAlertgroupsRequestInnerRulesInner`. + - **Breaking change:** The type of `Rules` in `CreateLogsAlertgroupsPayload` and `UpdateLogsAlertgroupPayload` has changed from `[]UpdateAlertgroupsRequestInnerRulesInner` to `[]CreateLogsAlertgroupsPayloadRulesInner`. + - **Deprecation:** The `GrafanaAdminPassword` and `GrafanaAdminUser` fields are now deprecated in `InstanceSensitiveData` model + - **Feature:** Add `GrafanaAdminEnabled` to `CreateInstancePayload` and `UpdateInstancePayload` models. + - **Feature:** Add new field `record` in `UpdateAlertgroupsRequestInnerRulesInner` model + - **Feature:** Add `CertCheck` to `CertCheckResponse` model. + - **Feature:** Add `HttpCheck` to `HttpCheckResponse` model. + - **Feature:** Add new `CreateLogsAlertgroupsPayloadRulesInner` model. + - **Feature:** Add `allowAssignGrafanaAdmin` to `GrafanaOauth` and `UpdateGrafanaConfigsPayloadGenericOauth` models. + - **Feature:** Add `GrafanaAdminEnabled` to `InstanceSensitiveData` model. + - **Feature:** Add new `PartialUpdateAlertrulesRequestInner` model. +- `secretsmanager`: + - [v0.14.1](services/secretsmanager/CHANGELOG.md#v0141) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v0.14.0](services/secretsmanager/CHANGELOG.md#v0140) + - **Feature:** added KmsKey model + - **Feature:** added KmsKey to Instance, CreateInstancePayload and UpdateInstancePayload - `edge`: - [v0.4.0](services/edge/CHANGELOG.md#v040) - **Deprecation:** Deprecated API method `ListPlansGlobal` @@ -44,11 +60,17 @@ - **Deprecation:** KeyFlow `SetToken` and `GetToken` will be removed after 2026-07-01. Use GetAccessToken instead and rely on client refresh. - **Feature:** Support Workload Identity Federation flow - `sfs`: + - [v0.2.1](services/sfs/CHANGELOG.md#v021) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` - [v0.2.0](services/sfs/CHANGELOG.md) - **Breaking change:** Remove region configuration in `APIClient` - [v0.1.0](services/sfs/CHANGELOG.md#v010) - **New**: STACKIT File Storage (SFS) service - `scf`: + - [v0.4.1](services/scf/CHANGELOG.md#v041) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` - [v0.4.0](services/scf/CHANGELOG.md#v040) - **Feature:** Add new model structs `SpaceWithIsolationSegment` and `SpaceWithIsolationSegmentAllOf` - [v0.3.0](services/scf/CHANGELOG.md#v030) @@ -71,29 +93,88 @@ - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` - [v0.1.0](services/logs/CHANGELOG.md#v010) - **New:** API for logs service -- `kms`: [v1.2.0](services/kms/CHANGELOG.md#v120) - - Set fields `Description` and `ImportOnly` to required in response struct `Key` - - **Breaking change:** Constructor `NewKey` has new parameters `description` and `importOnly` - - **Breaking change:** Remove methods `HasDescription` and `GetImportOnly` in `Key` model - - Set field `Description` to required in response struct `KeyRing` - - **Breaking change:** Constructor `NewKeyRing` has new parameter `description` - - **Breaking change:** Remove method `HasDescription` in `KeyRing` model - - Set field `Disabled` to required in response struct `Version` - - **Breaking change:** Constructor `NewVersion` has new parameter `disabled` - - **Breaking change:** Remove method `HasDisabled` in `Version` model - - Set fields `Description` and `PublicKey` to required in response struct `WrappingKey` - - **Breaking change:** Constructor `NewWrappingKey` has new parameters `description` and `publicKey` - - **Breaking change:** Remove methods `HasDescription` and `HasPublicKey` in `WrappingKey` model -- `sqlserverflex`: [v1.4.0](services/sqlserverflex/CHANGELOG.md#v140) - - **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing -- `mongodbflex`: [v1.5.5](services/mongodbflex/CHANGELOG.md#v155) - - **Docs:** Extend description of `Roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model +- `kms`: + - [v1.2.1](services/kms/CHANGELOG.md#v121) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v1.2.0](services/kms/CHANGELOG.md#v120) + - Set fields `Description` and `ImportOnly` to required in response struct `Key` + - **Breaking change:** Constructor `NewKey` has new parameters `description` and `importOnly` + - **Breaking change:** Remove methods `HasDescription` and `GetImportOnly` in `Key` model + - Set field `Description` to required in response struct `KeyRing` + - **Breaking change:** Constructor `NewKeyRing` has new parameter `description` + - **Breaking change:** Remove method `HasDescription` in `KeyRing` model + - Set field `Disabled` to required in response struct `Version` + - **Breaking change:** Constructor `NewVersion` has new parameter `disabled` + - **Breaking change:** Remove method `HasDisabled` in `Version` model + - Set fields `Description` and `PublicKey` to required in response struct `WrappingKey` + - **Breaking change:** Constructor `NewWrappingKey` has new parameters `description` and `publicKey` + - **Breaking change:** Remove methods `HasDescription` and `HasPublicKey` in `WrappingKey` model +- `sqlserverflex`: + - [v1.4.1](services/sqlserverflex/CHANGELOG.md#v141) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v1.4.0](services/sqlserverflex/CHANGELOG.md#v140) + - **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing +- `mongodbflex`: + - [v1.5.6](services/mongodbflex/CHANGELOG.md#v156) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v1.5.5](services/mongodbflex/CHANGELOG.md#v155) + - **Docs:** Extend description of `Roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model - `authorization`: [v0.11.0](services/authorization/CHANGELOG.md#v0110) - **Feature:** Add new methods for managing roles: `AddRole`, `DeleteRole`, `GetRole`, `UpdateRole` -- `serverbackup`: [v1.3.5](services/serverbackup/CHANGELOG.md#v135) - - **Bugfix:** Update backup status codes to match the backup status codes actually returned by the server backup API -- `runcommand`: [v1.4.0](services/runcommand/CHANGELOG.md#v140) - - **Bugfix:** Rename field `ParameterSchema` to `ParametersSchema` in `CommandTemplateSchema` model to match the actually attribute sent by the api +- `serverbackup`: + - [v1.3.6](services/serverbackup/CHANGELOG.md#v136) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v1.3.5](services/serverbackup/CHANGELOG.md#v135) + - **Bugfix:** Update backup status codes to match the backup status codes actually returned by the server backup API +- `runcommand`: + - [v1.4.1](services/runcommand/CHANGELOG.md#v141) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + - [v1.4.0](services/runcommand/CHANGELOG.md#v140) + - **Bugfix:** Rename field `ParameterSchema` to `ParametersSchema` in `CommandTemplateSchema` model to match the actually attribute sent by the api +- `serviceenablement`: [v1.2.5](services/serviceenablement/CHANGELOG.md#v125) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `serviceaccount`: [v0.11.4](services/serviceaccount/CHANGELOG.md#v0114) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `serverupdate`: [v1.2.4](services/serverupdate/CHANGELOG.md#v124) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `resourcemanager`: [v0.18.3](services/resourcemanager/CHANGELOG.md#v0183) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `redis`: [v0.25.4](services/redis/CHANGELOG.md#v0254) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `rabbitmq`: [v0.25.4](services/rabbitmq/CHANGELOG.md#v0254) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `postgresflex`: [v1.3.3](services/postgresflex/CHANGELOG.md#v133) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `opensearch`: [v0.24.4](services/opensearch/CHANGELOG.md#v0244) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `objectstorage`: [v1.4.3](services/objectstorage/CHANGELOG.md#v143) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `modelserving`: [v0.6.3](services/modelserving/CHANGELOG.md#v063) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `mariadb`: [v0.25.4](services/mariadb/CHANGELOG.md#v0254) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `logme`: [v0.25.4](services/logme/CHANGELOG.md#v0254) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` +- `intake`: [v0.4.2](services/intake/CHANGELOG.md#v042) + - **Bugfix:** Correctly handle file closing for file uploads + - Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` ## Release (2025-12-05) - `alb`: diff --git a/services/intake/CHANGELOG.md b/services/intake/CHANGELOG.md index f4fb4995e..102c2a181 100644 --- a/services/intake/CHANGELOG.md +++ b/services/intake/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.4.2 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.4.1 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/intake/VERSION b/services/intake/VERSION index 5aff472dd..0eec13e47 100644 --- a/services/intake/VERSION +++ b/services/intake/VERSION @@ -1 +1 @@ -v0.4.1 +v0.4.2 diff --git a/services/intake/client.go b/services/intake/client.go index 7b0837c78..018246461 100644 --- a/services/intake/client.go +++ b/services/intake/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/intake/go.mod b/services/intake/go.mod index fa8799142..08e81ffab 100644 --- a/services/intake/go.mod +++ b/services/intake/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/intake/go.sum b/services/intake/go.sum index 6eca79590..9be45a73d 100644 --- a/services/intake/go.sum +++ b/services/intake/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/kms/CHANGELOG.md b/services/kms/CHANGELOG.md index d74999a4c..d02524b77 100644 --- a/services/kms/CHANGELOG.md +++ b/services/kms/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.2.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.2.0 - Set fields `Description` and `ImportOnly` to required in response struct `Key` - **Breaking change:** Constructor `NewKey` has new parameters `description` and `importOnly` diff --git a/services/kms/VERSION b/services/kms/VERSION index 0408c30b4..24e56e03c 100644 --- a/services/kms/VERSION +++ b/services/kms/VERSION @@ -1 +1 @@ -v1.2.0 \ No newline at end of file +v1.2.1 \ No newline at end of file diff --git a/services/kms/client.go b/services/kms/client.go index 7917bdec1..9d7d247ab 100644 --- a/services/kms/client.go +++ b/services/kms/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/kms/go.mod b/services/kms/go.mod index db1386797..a2d23d1c1 100644 --- a/services/kms/go.mod +++ b/services/kms/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/kms/go.sum b/services/kms/go.sum index 6eca79590..9be45a73d 100644 --- a/services/kms/go.sum +++ b/services/kms/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/loadbalancer/CHANGELOG.md b/services/loadbalancer/CHANGELOG.md index 26c62db4b..add45b2cb 100644 --- a/services/loadbalancer/CHANGELOG.md +++ b/services/loadbalancer/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.7.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.7.0 - **Feature:** Add new fields `MaxCredentials`, `UsedCredentials` and `UsedLoadBalancers` in `GetQuotaResponse` Model diff --git a/services/loadbalancer/VERSION b/services/loadbalancer/VERSION index b7c8e167d..6c4fc2034 100644 --- a/services/loadbalancer/VERSION +++ b/services/loadbalancer/VERSION @@ -1 +1 @@ -v1.7.0 \ No newline at end of file +v1.7.1 \ No newline at end of file diff --git a/services/loadbalancer/client.go b/services/loadbalancer/client.go index 7cd865d5e..33808bd78 100644 --- a/services/loadbalancer/client.go +++ b/services/loadbalancer/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/loadbalancer/go.mod b/services/loadbalancer/go.mod index dd2a435a4..4d2210573 100644 --- a/services/loadbalancer/go.mod +++ b/services/loadbalancer/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/loadbalancer/go.sum b/services/loadbalancer/go.sum index 6eca79590..9be45a73d 100644 --- a/services/loadbalancer/go.sum +++ b/services/loadbalancer/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/logme/CHANGELOG.md b/services/logme/CHANGELOG.md index 39fc2ad89..8db9e7ee5 100644 --- a/services/logme/CHANGELOG.md +++ b/services/logme/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.25.4 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.25.3 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/logme/VERSION b/services/logme/VERSION index db64f357c..35183145c 100644 --- a/services/logme/VERSION +++ b/services/logme/VERSION @@ -1 +1 @@ -v0.25.3 \ No newline at end of file +v0.25.4 \ No newline at end of file diff --git a/services/logme/client.go b/services/logme/client.go index c632f0601..466dacfb8 100644 --- a/services/logme/client.go +++ b/services/logme/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/logme/go.mod b/services/logme/go.mod index c4a09ec90..9ace3acc1 100644 --- a/services/logme/go.mod +++ b/services/logme/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/logme/go.sum b/services/logme/go.sum index 6eca79590..9be45a73d 100644 --- a/services/logme/go.sum +++ b/services/logme/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/mariadb/CHANGELOG.md b/services/mariadb/CHANGELOG.md index fdc6b351d..32b9c7a6a 100644 --- a/services/mariadb/CHANGELOG.md +++ b/services/mariadb/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.25.4 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.25.3 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/mariadb/VERSION b/services/mariadb/VERSION index db64f357c..35183145c 100644 --- a/services/mariadb/VERSION +++ b/services/mariadb/VERSION @@ -1 +1 @@ -v0.25.3 \ No newline at end of file +v0.25.4 \ No newline at end of file diff --git a/services/mariadb/client.go b/services/mariadb/client.go index 7191bd6b0..c288c7c36 100644 --- a/services/mariadb/client.go +++ b/services/mariadb/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/mariadb/go.mod b/services/mariadb/go.mod index dad8ffab2..c1b20316f 100644 --- a/services/mariadb/go.mod +++ b/services/mariadb/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/mariadb/go.sum b/services/mariadb/go.sum index 6eca79590..9be45a73d 100644 --- a/services/mariadb/go.sum +++ b/services/mariadb/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/modelserving/CHANGELOG.md b/services/modelserving/CHANGELOG.md index 782ea7ab7..57d708f41 100644 --- a/services/modelserving/CHANGELOG.md +++ b/services/modelserving/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.6.3 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.6.2 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/modelserving/VERSION b/services/modelserving/VERSION index f420d704e..9885725db 100644 --- a/services/modelserving/VERSION +++ b/services/modelserving/VERSION @@ -1 +1 @@ -v0.6.2 \ No newline at end of file +v0.6.3 \ No newline at end of file diff --git a/services/modelserving/client.go b/services/modelserving/client.go index 2da77b8ea..9430415f4 100644 --- a/services/modelserving/client.go +++ b/services/modelserving/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/modelserving/go.mod b/services/modelserving/go.mod index 9a2d90d32..ce3fd4fb9 100644 --- a/services/modelserving/go.mod +++ b/services/modelserving/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/modelserving/go.sum b/services/modelserving/go.sum index 6eca79590..9be45a73d 100644 --- a/services/modelserving/go.sum +++ b/services/modelserving/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 4938d7264..7779450eb 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.5.6 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.5.5 - **Docs:** Extend description of `Roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model diff --git a/services/mongodbflex/VERSION b/services/mongodbflex/VERSION index c5c4119ee..620d75740 100644 --- a/services/mongodbflex/VERSION +++ b/services/mongodbflex/VERSION @@ -1 +1 @@ -v1.5.5 \ No newline at end of file +v1.5.6 \ No newline at end of file diff --git a/services/mongodbflex/client.go b/services/mongodbflex/client.go index 1bbf546a9..2ce6698df 100644 --- a/services/mongodbflex/client.go +++ b/services/mongodbflex/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/mongodbflex/go.mod b/services/mongodbflex/go.mod index 2375707c3..123aec1a5 100644 --- a/services/mongodbflex/go.mod +++ b/services/mongodbflex/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/mongodbflex/go.sum b/services/mongodbflex/go.sum index 6eca79590..9be45a73d 100644 --- a/services/mongodbflex/go.sum +++ b/services/mongodbflex/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/objectstorage/CHANGELOG.md b/services/objectstorage/CHANGELOG.md index ed08bcaa6..0a33edf12 100644 --- a/services/objectstorage/CHANGELOG.md +++ b/services/objectstorage/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.4.3 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.4.2 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/objectstorage/VERSION b/services/objectstorage/VERSION index 87ff52e2b..5beebea89 100644 --- a/services/objectstorage/VERSION +++ b/services/objectstorage/VERSION @@ -1 +1 @@ -v1.4.2 \ No newline at end of file +v1.4.3 \ No newline at end of file diff --git a/services/objectstorage/client.go b/services/objectstorage/client.go index f23331926..c2fa00c9c 100644 --- a/services/objectstorage/client.go +++ b/services/objectstorage/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/objectstorage/go.mod b/services/objectstorage/go.mod index 668e9af80..711be68c1 100644 --- a/services/objectstorage/go.mod +++ b/services/objectstorage/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/objectstorage/go.sum b/services/objectstorage/go.sum index 6eca79590..9be45a73d 100644 --- a/services/objectstorage/go.sum +++ b/services/objectstorage/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index dcf0c1ae0..2e12adada 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.16.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.16.0 - **Breaking change:** The `PartialUpdateAlertrules` takes now `PartialUpdateAlertrulesRequestInner` instead of `UpdateAlertgroupsRequestInnerRulesInner`. - **Breaking change:** The type of `Rules` in `CreateLogsAlertgroupsPayload` and `UpdateLogsAlertgroupPayload` has changed from `[]UpdateAlertgroupsRequestInnerRulesInner` to `[]CreateLogsAlertgroupsPayloadRulesInner`. diff --git a/services/observability/VERSION b/services/observability/VERSION index 49dd460a9..23fed31c0 100644 --- a/services/observability/VERSION +++ b/services/observability/VERSION @@ -1 +1 @@ -v0.16.0 \ No newline at end of file +v0.16.1 \ No newline at end of file diff --git a/services/observability/client.go b/services/observability/client.go index 126b403cf..cd1ca334a 100644 --- a/services/observability/client.go +++ b/services/observability/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/observability/go.mod b/services/observability/go.mod index 34ce1503a..b118d173d 100644 --- a/services/observability/go.mod +++ b/services/observability/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/observability/go.sum b/services/observability/go.sum index 6eca79590..9be45a73d 100644 --- a/services/observability/go.sum +++ b/services/observability/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/opensearch/CHANGELOG.md b/services/opensearch/CHANGELOG.md index 008107b54..425492b98 100644 --- a/services/opensearch/CHANGELOG.md +++ b/services/opensearch/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.24.4 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.24.3 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/opensearch/VERSION b/services/opensearch/VERSION index a71aeba9b..7372d0eb5 100644 --- a/services/opensearch/VERSION +++ b/services/opensearch/VERSION @@ -1 +1 @@ -v0.24.3 \ No newline at end of file +v0.24.4 \ No newline at end of file diff --git a/services/opensearch/client.go b/services/opensearch/client.go index 289fc21b3..321502617 100644 --- a/services/opensearch/client.go +++ b/services/opensearch/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/opensearch/go.mod b/services/opensearch/go.mod index 845c5adc7..1cc7cf0fb 100644 --- a/services/opensearch/go.mod +++ b/services/opensearch/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/opensearch/go.sum b/services/opensearch/go.sum index 6eca79590..9be45a73d 100644 --- a/services/opensearch/go.sum +++ b/services/opensearch/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/postgresflex/CHANGELOG.md b/services/postgresflex/CHANGELOG.md index 565844284..1b9e8dfb0 100644 --- a/services/postgresflex/CHANGELOG.md +++ b/services/postgresflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.3.3 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.3.2 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/postgresflex/VERSION b/services/postgresflex/VERSION index bb8edae97..1b0c03e2f 100644 --- a/services/postgresflex/VERSION +++ b/services/postgresflex/VERSION @@ -1 +1 @@ -v1.3.2 \ No newline at end of file +v1.3.3 \ No newline at end of file diff --git a/services/postgresflex/client.go b/services/postgresflex/client.go index 2dbedb58e..72d4a2d73 100644 --- a/services/postgresflex/client.go +++ b/services/postgresflex/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/postgresflex/go.mod b/services/postgresflex/go.mod index c4311221a..c24205bb1 100644 --- a/services/postgresflex/go.mod +++ b/services/postgresflex/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/postgresflex/go.sum b/services/postgresflex/go.sum index 6eca79590..9be45a73d 100644 --- a/services/postgresflex/go.sum +++ b/services/postgresflex/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/rabbitmq/CHANGELOG.md b/services/rabbitmq/CHANGELOG.md index 1c50192d8..eb28e2ea1 100644 --- a/services/rabbitmq/CHANGELOG.md +++ b/services/rabbitmq/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.25.4 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.25.3 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/rabbitmq/VERSION b/services/rabbitmq/VERSION index db64f357c..35183145c 100644 --- a/services/rabbitmq/VERSION +++ b/services/rabbitmq/VERSION @@ -1 +1 @@ -v0.25.3 \ No newline at end of file +v0.25.4 \ No newline at end of file diff --git a/services/rabbitmq/client.go b/services/rabbitmq/client.go index 23228229f..e72373c0c 100644 --- a/services/rabbitmq/client.go +++ b/services/rabbitmq/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/rabbitmq/go.mod b/services/rabbitmq/go.mod index 10e456628..e530db76b 100644 --- a/services/rabbitmq/go.mod +++ b/services/rabbitmq/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/rabbitmq/go.sum b/services/rabbitmq/go.sum index 6eca79590..9be45a73d 100644 --- a/services/rabbitmq/go.sum +++ b/services/rabbitmq/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/redis/CHANGELOG.md b/services/redis/CHANGELOG.md index 63b65450a..c853b897c 100644 --- a/services/redis/CHANGELOG.md +++ b/services/redis/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.25.4 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.25.3 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/redis/VERSION b/services/redis/VERSION index db64f357c..35183145c 100644 --- a/services/redis/VERSION +++ b/services/redis/VERSION @@ -1 +1 @@ -v0.25.3 \ No newline at end of file +v0.25.4 \ No newline at end of file diff --git a/services/redis/client.go b/services/redis/client.go index 77f193af2..74adafbb6 100644 --- a/services/redis/client.go +++ b/services/redis/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/redis/go.mod b/services/redis/go.mod index cbcfa4876..63f04d06c 100644 --- a/services/redis/go.mod +++ b/services/redis/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/redis/go.sum b/services/redis/go.sum index 6eca79590..9be45a73d 100644 --- a/services/redis/go.sum +++ b/services/redis/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/resourcemanager/CHANGELOG.md b/services/resourcemanager/CHANGELOG.md index 83f7c1a14..db04d4344 100644 --- a/services/resourcemanager/CHANGELOG.md +++ b/services/resourcemanager/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.18.3 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.18.2 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/resourcemanager/VERSION b/services/resourcemanager/VERSION index c3990df25..131c55b2c 100644 --- a/services/resourcemanager/VERSION +++ b/services/resourcemanager/VERSION @@ -1 +1 @@ -v0.18.2 \ No newline at end of file +v0.18.3 \ No newline at end of file diff --git a/services/resourcemanager/client.go b/services/resourcemanager/client.go index 80d16daad..015c23a08 100644 --- a/services/resourcemanager/client.go +++ b/services/resourcemanager/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/resourcemanager/go.mod b/services/resourcemanager/go.mod index 6c416ca12..80714802d 100644 --- a/services/resourcemanager/go.mod +++ b/services/resourcemanager/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/resourcemanager/go.sum b/services/resourcemanager/go.sum index 6eca79590..9be45a73d 100644 --- a/services/resourcemanager/go.sum +++ b/services/resourcemanager/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/runcommand/CHANGELOG.md b/services/runcommand/CHANGELOG.md index 4872ed05e..574a16bd3 100644 --- a/services/runcommand/CHANGELOG.md +++ b/services/runcommand/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.4.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.4.0 - **Bugfix:** Rename field `ParameterSchema` to `ParametersSchema` in `CommandTemplateSchema` model to match the actually attribute sent by the api diff --git a/services/runcommand/VERSION b/services/runcommand/VERSION index ec7b96782..9bdb566fc 100644 --- a/services/runcommand/VERSION +++ b/services/runcommand/VERSION @@ -1 +1 @@ -v1.4.0 \ No newline at end of file +v1.4.1 \ No newline at end of file diff --git a/services/runcommand/client.go b/services/runcommand/client.go index 8f7ae9b31..30dadcf13 100644 --- a/services/runcommand/client.go +++ b/services/runcommand/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/runcommand/go.mod b/services/runcommand/go.mod index 8b010f8cf..d503694ed 100644 --- a/services/runcommand/go.mod +++ b/services/runcommand/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/runcommand go 1.21 -require github.com/stackitcloud/stackit-sdk-go/core v0.20.1 +require github.com/stackitcloud/stackit-sdk-go/core v0.21.0 require ( github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/runcommand/go.sum b/services/runcommand/go.sum index 6eca79590..9be45a73d 100644 --- a/services/runcommand/go.sum +++ b/services/runcommand/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/scf/CHANGELOG.md b/services/scf/CHANGELOG.md index 38cec3e04..cfcc18a61 100644 --- a/services/scf/CHANGELOG.md +++ b/services/scf/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.4.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.4.0 - **Feature:** Add new model structs `SpaceWithIsolationSegment` and `SpaceWithIsolationSegmentAllOf` diff --git a/services/scf/VERSION b/services/scf/VERSION index fb7a04cff..5aff472dd 100644 --- a/services/scf/VERSION +++ b/services/scf/VERSION @@ -1 +1 @@ -v0.4.0 +v0.4.1 diff --git a/services/scf/client.go b/services/scf/client.go index 11b0ad4ad..a0971fc9f 100644 --- a/services/scf/client.go +++ b/services/scf/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/scf/go.mod b/services/scf/go.mod index eb00b3b7a..060f03fdb 100644 --- a/services/scf/go.mod +++ b/services/scf/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/scf/go.sum b/services/scf/go.sum index 6eca79590..9be45a73d 100644 --- a/services/scf/go.sum +++ b/services/scf/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/secretsmanager/CHANGELOG.md b/services/secretsmanager/CHANGELOG.md index da22fb09b..02cf53c37 100644 --- a/services/secretsmanager/CHANGELOG.md +++ b/services/secretsmanager/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.14.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.14.0 - **Feature:** added KmsKey model - **Feature:** added KmsKey to Instance, CreateInstancePayload and UpdateInstancePayload diff --git a/services/secretsmanager/VERSION b/services/secretsmanager/VERSION index 045d7384f..965905d4d 100644 --- a/services/secretsmanager/VERSION +++ b/services/secretsmanager/VERSION @@ -1 +1 @@ -v0.14.0 \ No newline at end of file +v0.14.1 \ No newline at end of file diff --git a/services/secretsmanager/client.go b/services/secretsmanager/client.go index aecd89f19..33399d717 100644 --- a/services/secretsmanager/client.go +++ b/services/secretsmanager/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/secretsmanager/go.mod b/services/secretsmanager/go.mod index 5685ed15f..0715b0f04 100644 --- a/services/secretsmanager/go.mod +++ b/services/secretsmanager/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/secretsmanager/go.sum b/services/secretsmanager/go.sum index 6eca79590..9be45a73d 100644 --- a/services/secretsmanager/go.sum +++ b/services/secretsmanager/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/serverbackup/CHANGELOG.md b/services/serverbackup/CHANGELOG.md index a6e2e8040..0df24bf5f 100644 --- a/services/serverbackup/CHANGELOG.md +++ b/services/serverbackup/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.3.6 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.3.5 - **Bugfix:** Update backup status codes to match the backup status codes actually returned by the server backup API diff --git a/services/serverbackup/VERSION b/services/serverbackup/VERSION index 3252f641b..dd2cf2f25 100644 --- a/services/serverbackup/VERSION +++ b/services/serverbackup/VERSION @@ -1 +1 @@ -v1.3.5 +v1.3.6 diff --git a/services/serverbackup/client.go b/services/serverbackup/client.go index a5cfd170b..f6a4fd914 100644 --- a/services/serverbackup/client.go +++ b/services/serverbackup/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/serverbackup/go.mod b/services/serverbackup/go.mod index dcb5d75c1..4a917e894 100644 --- a/services/serverbackup/go.mod +++ b/services/serverbackup/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/serverbackup go 1.21 -require github.com/stackitcloud/stackit-sdk-go/core v0.20.1 +require github.com/stackitcloud/stackit-sdk-go/core v0.21.0 require ( github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/serverbackup/go.sum b/services/serverbackup/go.sum index 6eca79590..9be45a73d 100644 --- a/services/serverbackup/go.sum +++ b/services/serverbackup/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/serverupdate/CHANGELOG.md b/services/serverupdate/CHANGELOG.md index 967368336..7cf0b12cf 100644 --- a/services/serverupdate/CHANGELOG.md +++ b/services/serverupdate/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.2.4 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.2.3 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/serverupdate/VERSION b/services/serverupdate/VERSION index a064add5f..b43a308ca 100644 --- a/services/serverupdate/VERSION +++ b/services/serverupdate/VERSION @@ -1 +1 @@ -v1.2.3 \ No newline at end of file +v1.2.4 \ No newline at end of file diff --git a/services/serverupdate/client.go b/services/serverupdate/client.go index 4d6b82f7d..53e2bd93f 100644 --- a/services/serverupdate/client.go +++ b/services/serverupdate/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/serverupdate/go.mod b/services/serverupdate/go.mod index 80fefb599..627d84076 100644 --- a/services/serverupdate/go.mod +++ b/services/serverupdate/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/serverupdate go 1.21 -require github.com/stackitcloud/stackit-sdk-go/core v0.20.1 +require github.com/stackitcloud/stackit-sdk-go/core v0.21.0 require ( github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/serverupdate/go.sum b/services/serverupdate/go.sum index 6eca79590..9be45a73d 100644 --- a/services/serverupdate/go.sum +++ b/services/serverupdate/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/serviceaccount/CHANGELOG.md b/services/serviceaccount/CHANGELOG.md index a57096c5b..a549ff7f0 100644 --- a/services/serviceaccount/CHANGELOG.md +++ b/services/serviceaccount/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.4 + - **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.11.3 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/serviceaccount/VERSION b/services/serviceaccount/VERSION index 1417ff623..edf6d96dd 100644 --- a/services/serviceaccount/VERSION +++ b/services/serviceaccount/VERSION @@ -1 +1 @@ -v0.11.3 \ No newline at end of file +v0.11.4 \ No newline at end of file diff --git a/services/serviceaccount/client.go b/services/serviceaccount/client.go index 97e51d4e0..a5d1cbded 100644 --- a/services/serviceaccount/client.go +++ b/services/serviceaccount/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/serviceaccount/go.mod b/services/serviceaccount/go.mod index 037ff9a2c..554ff74ca 100644 --- a/services/serviceaccount/go.mod +++ b/services/serviceaccount/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/serviceaccount/go.sum b/services/serviceaccount/go.sum index 6eca79590..9be45a73d 100644 --- a/services/serviceaccount/go.sum +++ b/services/serviceaccount/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/serviceenablement/CHANGELOG.md b/services/serviceenablement/CHANGELOG.md index accd50808..f25612990 100644 --- a/services/serviceenablement/CHANGELOG.md +++ b/services/serviceenablement/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.2.5 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.2.4 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/serviceenablement/VERSION b/services/serviceenablement/VERSION index b43a308ca..78e49f64f 100644 --- a/services/serviceenablement/VERSION +++ b/services/serviceenablement/VERSION @@ -1 +1 @@ -v1.2.4 \ No newline at end of file +v1.2.5 \ No newline at end of file diff --git a/services/serviceenablement/client.go b/services/serviceenablement/client.go index 11ea20f75..c8d616409 100644 --- a/services/serviceenablement/client.go +++ b/services/serviceenablement/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/serviceenablement/go.mod b/services/serviceenablement/go.mod index b9b15ea43..c7a0644a9 100644 --- a/services/serviceenablement/go.mod +++ b/services/serviceenablement/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/serviceenablement/go.sum b/services/serviceenablement/go.sum index 6eca79590..9be45a73d 100644 --- a/services/serviceenablement/go.sum +++ b/services/serviceenablement/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/sfs/CHANGELOG.md b/services/sfs/CHANGELOG.md index 686179bbc..92c8960a6 100644 --- a/services/sfs/CHANGELOG.md +++ b/services/sfs/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.2.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v0.2.0 - **Breaking change:** Remove region configuration in `APIClient` diff --git a/services/sfs/VERSION b/services/sfs/VERSION index 81fd7ba08..eac0a1441 100644 --- a/services/sfs/VERSION +++ b/services/sfs/VERSION @@ -1 +1 @@ -v0.2.0 \ No newline at end of file +v0.2.1 \ No newline at end of file diff --git a/services/sfs/client.go b/services/sfs/client.go index 9725c9658..297132f0f 100644 --- a/services/sfs/client.go +++ b/services/sfs/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/sfs/go.mod b/services/sfs/go.mod index 024a2a432..5cdf6ec1a 100644 --- a/services/sfs/go.mod +++ b/services/sfs/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/sfs go 1.21 -require github.com/stackitcloud/stackit-sdk-go/core v0.20.1 +require github.com/stackitcloud/stackit-sdk-go/core v0.21.0 require ( github.com/golang-jwt/jwt/v5 v5.3.0 // indirect diff --git a/services/sfs/go.sum b/services/sfs/go.sum index 6eca79590..9be45a73d 100644 --- a/services/sfs/go.sum +++ b/services/sfs/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/ske/CHANGELOG.md b/services/ske/CHANGELOG.md index ea00436b2..7a0e05206 100644 --- a/services/ske/CHANGELOG.md +++ b/services/ske/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.6.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.6.0 - **Feature:** Add field `Identity` to model `ClusterStatus` diff --git a/services/ske/VERSION b/services/ske/VERSION index b7c0a9b1d..023604509 100644 --- a/services/ske/VERSION +++ b/services/ske/VERSION @@ -1 +1 @@ -v1.6.0 +v1.6.1 diff --git a/services/ske/client.go b/services/ske/client.go index 5d10ec719..9573879ea 100644 --- a/services/ske/client.go +++ b/services/ske/client.go @@ -501,10 +501,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/ske/go.mod b/services/ske/go.mod index e79220a6b..22a0585cd 100644 --- a/services/ske/go.mod +++ b/services/ske/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/ske/go.sum b/services/ske/go.sum index 6eca79590..9be45a73d 100644 --- a/services/ske/go.sum +++ b/services/ske/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= diff --git a/services/sqlserverflex/CHANGELOG.md b/services/sqlserverflex/CHANGELOG.md index 357a0bf54..68af8bb19 100644 --- a/services/sqlserverflex/CHANGELOG.md +++ b/services/sqlserverflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.4.1 +- **Bugfix:** Correctly handle file closing for file uploads +- Bump STACKIT SDK core module from `v0.20.1` to `v0.21.0` + ## v1.4.0 - **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing diff --git a/services/sqlserverflex/VERSION b/services/sqlserverflex/VERSION index ec7b96782..9bdb566fc 100644 --- a/services/sqlserverflex/VERSION +++ b/services/sqlserverflex/VERSION @@ -1 +1 @@ -v1.4.0 \ No newline at end of file +v1.4.1 \ No newline at end of file diff --git a/services/sqlserverflex/client.go b/services/sqlserverflex/client.go index 0f6b07b17..e6c14a7ef 100644 --- a/services/sqlserverflex/client.go +++ b/services/sqlserverflex/client.go @@ -498,10 +498,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/services/sqlserverflex/go.mod b/services/sqlserverflex/go.mod index 6b0dd4d24..f83677697 100644 --- a/services/sqlserverflex/go.mod +++ b/services/sqlserverflex/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.20.1 + github.com/stackitcloud/stackit-sdk-go/core v0.21.0 ) require ( diff --git a/services/sqlserverflex/go.sum b/services/sqlserverflex/go.sum index 6eca79590..9be45a73d 100644 --- a/services/sqlserverflex/go.sum +++ b/services/sqlserverflex/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M= -github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik= +github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ=