diff --git a/services/kms/api_default.go b/services/kms/api_default.go index c75f9ef37..30bc7f0f7 100644 --- a/services/kms/api_default.go +++ b/services/kms/api_default.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -707,7 +707,7 @@ func (r CreateKeyRequest) Execute() (*Key, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -891,7 +891,7 @@ func (r CreateKeyRingRequest) Execute() (*KeyRing, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) @@ -1061,7 +1061,7 @@ func (r CreateWrappingKeyRequest) Execute() (*WrappingKey, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -1248,7 +1248,7 @@ func (r DecryptRequest) Execute() (*DecryptedData, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -1366,6 +1366,17 @@ func (r DecryptRequest) Execute() (*DecryptedData, error) { } newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v HttpError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v } return localVarReturnValue, newErr } @@ -1446,7 +1457,7 @@ func (r DeleteKeyRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -1624,7 +1635,7 @@ func (r DeleteKeyRingRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -1799,7 +1810,7 @@ func (r DeleteWrappingKeyRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -1979,7 +1990,7 @@ func (r DestroyVersionRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -2163,7 +2174,7 @@ func (r DisableVersionRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -2347,7 +2358,7 @@ func (r EnableVersionRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -2538,7 +2549,7 @@ func (r EncryptRequest) Execute() (*EncryptedData, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -2656,6 +2667,17 @@ func (r EncryptRequest) Execute() (*EncryptedData, error) { } newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v HttpError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v } return localVarReturnValue, newErr } @@ -2737,7 +2759,7 @@ func (r GetKeyRequest) Execute() (*Key, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -2915,7 +2937,7 @@ func (r GetKeyRingRequest) Execute() (*KeyRing, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -3091,7 +3113,7 @@ func (r GetVersionRequest) Execute() (*Version, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -3274,7 +3296,7 @@ func (r GetWrappingKeyRequest) Execute() (*WrappingKey, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -3459,7 +3481,7 @@ func (r ImportKeyRequest) Execute() (*Version, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -3652,7 +3674,7 @@ func (r ListKeyRingsRequest) Execute() (*KeyRingList, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) @@ -3811,7 +3833,7 @@ func (r ListKeysRequest) Execute() (*KeyList, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -3986,7 +4008,7 @@ func (r ListVersionsRequest) Execute() (*VersionList, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -4164,7 +4186,7 @@ func (r ListWrappingKeysRequest) Execute() (*WrappingKeyList, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -4338,7 +4360,7 @@ func (r RestoreKeyRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -4518,7 +4540,7 @@ func (r RestoreVersionRequest) Execute() error { return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -4702,7 +4724,7 @@ func (r RotateKeyRequest) Execute() (*Version, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -4910,7 +4932,7 @@ func (r SignRequest) Execute() (*SignedData, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -5028,6 +5050,17 @@ func (r SignRequest) Execute() (*SignedData, error) { } newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v HttpError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v } return localVarReturnValue, newErr } @@ -5116,7 +5149,7 @@ func (r VerifyRequest) Execute() (*VerifiedData, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(ParameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"keyRingId"+"}", url.PathEscape(ParameterValueToString(r.keyRingId, "keyRingId")), -1) @@ -5234,6 +5267,17 @@ func (r VerifyRequest) Execute() (*VerifiedData, error) { } newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v HttpError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v } return localVarReturnValue, newErr } diff --git a/services/kms/api_default_test.go b/services/kms/api_default_test.go index 4a160dcfc..e10745e9e 100644 --- a/services/kms/api_default_test.go +++ b/services/kms/api_default_test.go @@ -25,7 +25,7 @@ import ( func Test_kms_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -84,7 +84,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService CreateKeyRing", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -140,7 +140,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService CreateWrappingKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -199,7 +199,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService Decrypt", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -264,7 +264,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -319,7 +319,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteKeyRing", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -371,7 +371,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteWrappingKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -426,7 +426,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DestroyVersion", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -484,7 +484,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DisableVersion", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -542,7 +542,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService EnableVersion", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -600,7 +600,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService Encrypt", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -665,7 +665,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -726,7 +726,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetKeyRing", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -784,7 +784,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetVersion", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -848,7 +848,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetWrappingKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -909,7 +909,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ImportKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -971,7 +971,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListKeyRings", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1026,7 +1026,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListKeys", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1084,7 +1084,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListVersions", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1145,7 +1145,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListWrappingKeys", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1203,7 +1203,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService RestoreKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1258,7 +1258,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService RestoreVersion", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1316,7 +1316,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService RotateKey", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1377,7 +1377,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService Sign", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" @@ -1442,7 +1442,7 @@ func Test_kms_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService Verify", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify" + _apiUrlPath := "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify" projectIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionIdValue := "regionId-value" diff --git a/services/kms/client.go b/services/kms/client.go index 8216dcfe1..7917bdec1 100644 --- a/services/kms/client.go +++ b/services/kms/client.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the STACKIT Key Management Service API API v1beta.0.0 +// APIClient manages communication with the STACKIT Key Management Service API API v1.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/kms/configuration.go b/services/kms/configuration.go index fba99922b..6f83c309f 100644 --- a/services/kms/configuration.go +++ b/services/kms/configuration.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_access_scope.go b/services/kms/model_access_scope.go index 387e9fd56..ae6386c24 100644 --- a/services/kms/model_access_scope.go +++ b/services/kms/model_access_scope.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_access_scope_test.go b/services/kms/model_access_scope_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_access_scope_test.go +++ b/services/kms/model_access_scope_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_algorithm.go b/services/kms/model_algorithm.go index f5a94f97c..7802d6ae7 100644 --- a/services/kms/model_algorithm.go +++ b/services/kms/model_algorithm.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_algorithm_test.go b/services/kms/model_algorithm_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_algorithm_test.go +++ b/services/kms/model_algorithm_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_backend.go b/services/kms/model_backend.go deleted file mode 100644 index 31eaa6916..000000000 --- a/services/kms/model_backend.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -STACKIT Key Management Service API - -This API provides endpoints for managing keys and key rings. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kms - -import ( - "encoding/json" - "fmt" -) - -// Backend The backend that is responsible for maintaining this key. Deprecated - use `protection`. -type Backend string - -// List of backend -const ( - BACKEND_SOFTWARE Backend = "software" -) - -// All allowed values of Backend enum -var AllowedBackendEnumValues = []Backend{ - "software", -} - -func (v *Backend) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := Backend(value) - for _, existing := range AllowedBackendEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid Backend", value) -} - -// NewBackendFromValue returns a pointer to a valid Backend -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewBackendFromValue(v string) (*Backend, error) { - ev := Backend(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for Backend: valid values are %v", v, AllowedBackendEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v Backend) IsValid() bool { - for _, existing := range AllowedBackendEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to backend value -func (v Backend) Ptr() *Backend { - return &v -} - -type NullableBackend struct { - value *Backend - isSet bool -} - -func (v NullableBackend) Get() *Backend { - return v.value -} - -func (v *NullableBackend) Set(val *Backend) { - v.value = val - v.isSet = true -} - -func (v NullableBackend) IsSet() bool { - return v.isSet -} - -func (v *NullableBackend) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBackend(val *Backend) *NullableBackend { - return &NullableBackend{value: val, isSet: true} -} - -func (v NullableBackend) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBackend) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/kms/model_backend_test.go b/services/kms/model_backend_test.go deleted file mode 100644 index 575e8aba9..000000000 --- a/services/kms/model_backend_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Key Management Service API - -This API provides endpoints for managing keys and key rings. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kms diff --git a/services/kms/model_create_key_payload.go b/services/kms/model_create_key_payload.go index 272ec1a3a..848396678 100644 --- a/services/kms/model_create_key_payload.go +++ b/services/kms/model_create_key_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -57,26 +57,6 @@ func setCreateKeyPayloadGetAlgorithmAttributeType(arg *CreateKeyPayloadGetAlgori *arg = &val } -/* - types and functions for backend -*/ - -// isEnumRef -type CreateKeyPayloadGetBackendAttributeType = *Backend -type CreateKeyPayloadGetBackendArgType = Backend -type CreateKeyPayloadGetBackendRetType = Backend - -func getCreateKeyPayloadGetBackendAttributeTypeOk(arg CreateKeyPayloadGetBackendAttributeType) (ret CreateKeyPayloadGetBackendRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setCreateKeyPayloadGetBackendAttributeType(arg *CreateKeyPayloadGetBackendAttributeType, val CreateKeyPayloadGetBackendRetType) { - *arg = &val -} - /* types and functions for description */ @@ -184,9 +164,6 @@ type CreateKeyPayload struct { AccessScope CreateKeyPayloadGetAccessScopeAttributeType `json:"access_scope,omitempty"` // REQUIRED Algorithm CreateKeyPayloadGetAlgorithmAttributeType `json:"algorithm" required:"true"` - // Deprecated: Check the GitHub changelog for alternatives - // REQUIRED - Backend CreateKeyPayloadGetBackendAttributeType `json:"backend" required:"true"` // A user chosen description to distinguish multiple keys. Description CreateKeyPayloadGetDescriptionAttributeType `json:"description,omitempty"` // The display name to distinguish multiple keys. @@ -194,7 +171,8 @@ type CreateKeyPayload struct { DisplayName CreateKeyPayloadGetDisplayNameAttributeType `json:"displayName" required:"true"` // States whether versions can be created or only imported. ImportOnly CreateKeyPayloadgetImportOnlyAttributeType `json:"importOnly,omitempty"` - Protection CreateKeyPayloadGetProtectionAttributeType `json:"protection,omitempty"` + // REQUIRED + Protection CreateKeyPayloadGetProtectionAttributeType `json:"protection" required:"true"` // REQUIRED Purpose CreateKeyPayloadGetPurposeAttributeType `json:"purpose" required:"true"` } @@ -205,11 +183,11 @@ type _CreateKeyPayload CreateKeyPayload // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateKeyPayload(algorithm CreateKeyPayloadGetAlgorithmArgType, backend CreateKeyPayloadGetBackendArgType, displayName CreateKeyPayloadGetDisplayNameArgType, purpose CreateKeyPayloadGetPurposeArgType) *CreateKeyPayload { +func NewCreateKeyPayload(algorithm CreateKeyPayloadGetAlgorithmArgType, displayName CreateKeyPayloadGetDisplayNameArgType, protection CreateKeyPayloadGetProtectionArgType, purpose CreateKeyPayloadGetPurposeArgType) *CreateKeyPayload { this := CreateKeyPayload{} setCreateKeyPayloadGetAlgorithmAttributeType(&this.Algorithm, algorithm) - setCreateKeyPayloadGetBackendAttributeType(&this.Backend, backend) setCreateKeyPayloadGetDisplayNameAttributeType(&this.DisplayName, displayName) + setCreateKeyPayloadGetProtectionAttributeType(&this.Protection, protection) setCreateKeyPayloadGetPurposeAttributeType(&this.Purpose, purpose) return &this } @@ -266,26 +244,6 @@ func (o *CreateKeyPayload) SetAlgorithm(v CreateKeyPayloadGetAlgorithmRetType) { setCreateKeyPayloadGetAlgorithmAttributeType(&o.Algorithm, v) } -// GetBackend returns the Backend field value -// Deprecated -func (o *CreateKeyPayload) GetBackend() (ret CreateKeyPayloadGetBackendRetType) { - ret, _ = o.GetBackendOk() - return ret -} - -// GetBackendOk returns a tuple with the Backend field value -// and a boolean to check if the value has been set. -// Deprecated -func (o *CreateKeyPayload) GetBackendOk() (ret CreateKeyPayloadGetBackendRetType, ok bool) { - return getCreateKeyPayloadGetBackendAttributeTypeOk(o.Backend) -} - -// SetBackend sets field value -// Deprecated -func (o *CreateKeyPayload) SetBackend(v CreateKeyPayloadGetBackendRetType) { - setCreateKeyPayloadGetBackendAttributeType(&o.Backend, v) -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *CreateKeyPayload) GetDescription() (res CreateKeyPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() @@ -349,25 +307,19 @@ func (o *CreateKeyPayload) SetImportOnly(v CreateKeyPayloadgetImportOnlyRetType) setCreateKeyPayloadgetImportOnlyAttributeType(&o.ImportOnly, v) } -// GetProtection returns the Protection field value if set, zero value otherwise. -func (o *CreateKeyPayload) GetProtection() (res CreateKeyPayloadGetProtectionRetType) { - res, _ = o.GetProtectionOk() - return +// GetProtection returns the Protection field value +func (o *CreateKeyPayload) GetProtection() (ret CreateKeyPayloadGetProtectionRetType) { + ret, _ = o.GetProtectionOk() + return ret } -// GetProtectionOk returns a tuple with the Protection field value if set, nil otherwise +// GetProtectionOk returns a tuple with the Protection field value // and a boolean to check if the value has been set. func (o *CreateKeyPayload) GetProtectionOk() (ret CreateKeyPayloadGetProtectionRetType, ok bool) { return getCreateKeyPayloadGetProtectionAttributeTypeOk(o.Protection) } -// HasProtection returns a boolean if a field has been set. -func (o *CreateKeyPayload) HasProtection() bool { - _, ok := o.GetProtectionOk() - return ok -} - -// SetProtection gets a reference to the given Protection and assigns it to the Protection field. +// SetProtection sets field value func (o *CreateKeyPayload) SetProtection(v CreateKeyPayloadGetProtectionRetType) { setCreateKeyPayloadGetProtectionAttributeType(&o.Protection, v) } @@ -397,9 +349,6 @@ func (o CreateKeyPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateKeyPayloadGetAlgorithmAttributeTypeOk(o.Algorithm); ok { toSerialize["Algorithm"] = val } - if val, ok := getCreateKeyPayloadGetBackendAttributeTypeOk(o.Backend); ok { - toSerialize["Backend"] = val - } if val, ok := getCreateKeyPayloadGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } diff --git a/services/kms/model_create_key_payload_test.go b/services/kms/model_create_key_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_create_key_payload_test.go +++ b/services/kms/model_create_key_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_create_key_ring_payload.go b/services/kms/model_create_key_ring_payload.go index 51af661f8..28356d7c5 100644 --- a/services/kms/model_create_key_ring_payload.go +++ b/services/kms/model_create_key_ring_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_create_key_ring_payload_test.go b/services/kms/model_create_key_ring_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_create_key_ring_payload_test.go +++ b/services/kms/model_create_key_ring_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_create_wrapping_key_payload.go b/services/kms/model_create_wrapping_key_payload.go index bdac73aa9..45d3600c1 100644 --- a/services/kms/model_create_wrapping_key_payload.go +++ b/services/kms/model_create_wrapping_key_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -57,26 +57,6 @@ func setCreateWrappingKeyPayloadGetAlgorithmAttributeType(arg *CreateWrappingKey *arg = &val } -/* - types and functions for backend -*/ - -// isEnumRef -type CreateWrappingKeyPayloadGetBackendAttributeType = *Backend -type CreateWrappingKeyPayloadGetBackendArgType = Backend -type CreateWrappingKeyPayloadGetBackendRetType = Backend - -func getCreateWrappingKeyPayloadGetBackendAttributeTypeOk(arg CreateWrappingKeyPayloadGetBackendAttributeType) (ret CreateWrappingKeyPayloadGetBackendRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setCreateWrappingKeyPayloadGetBackendAttributeType(arg *CreateWrappingKeyPayloadGetBackendAttributeType, val CreateWrappingKeyPayloadGetBackendRetType) { - *arg = &val -} - /* types and functions for description */ @@ -164,15 +144,13 @@ type CreateWrappingKeyPayload struct { AccessScope CreateWrappingKeyPayloadGetAccessScopeAttributeType `json:"access_scope,omitempty"` // REQUIRED Algorithm CreateWrappingKeyPayloadGetAlgorithmAttributeType `json:"algorithm" required:"true"` - // Deprecated: Check the GitHub changelog for alternatives - // REQUIRED - Backend CreateWrappingKeyPayloadGetBackendAttributeType `json:"backend" required:"true"` // A user chosen description to distinguish multiple wrapping keys. Description CreateWrappingKeyPayloadGetDescriptionAttributeType `json:"description,omitempty"` // The display name to distinguish multiple wrapping keys. // REQUIRED DisplayName CreateWrappingKeyPayloadGetDisplayNameAttributeType `json:"displayName" required:"true"` - Protection CreateWrappingKeyPayloadGetProtectionAttributeType `json:"protection,omitempty"` + // REQUIRED + Protection CreateWrappingKeyPayloadGetProtectionAttributeType `json:"protection" required:"true"` // REQUIRED Purpose CreateWrappingKeyPayloadGetPurposeAttributeType `json:"purpose" required:"true"` } @@ -183,11 +161,11 @@ type _CreateWrappingKeyPayload CreateWrappingKeyPayload // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateWrappingKeyPayload(algorithm CreateWrappingKeyPayloadGetAlgorithmArgType, backend CreateWrappingKeyPayloadGetBackendArgType, displayName CreateWrappingKeyPayloadGetDisplayNameArgType, purpose CreateWrappingKeyPayloadGetPurposeArgType) *CreateWrappingKeyPayload { +func NewCreateWrappingKeyPayload(algorithm CreateWrappingKeyPayloadGetAlgorithmArgType, displayName CreateWrappingKeyPayloadGetDisplayNameArgType, protection CreateWrappingKeyPayloadGetProtectionArgType, purpose CreateWrappingKeyPayloadGetPurposeArgType) *CreateWrappingKeyPayload { this := CreateWrappingKeyPayload{} setCreateWrappingKeyPayloadGetAlgorithmAttributeType(&this.Algorithm, algorithm) - setCreateWrappingKeyPayloadGetBackendAttributeType(&this.Backend, backend) setCreateWrappingKeyPayloadGetDisplayNameAttributeType(&this.DisplayName, displayName) + setCreateWrappingKeyPayloadGetProtectionAttributeType(&this.Protection, protection) setCreateWrappingKeyPayloadGetPurposeAttributeType(&this.Purpose, purpose) return &this } @@ -242,26 +220,6 @@ func (o *CreateWrappingKeyPayload) SetAlgorithm(v CreateWrappingKeyPayloadGetAlg setCreateWrappingKeyPayloadGetAlgorithmAttributeType(&o.Algorithm, v) } -// GetBackend returns the Backend field value -// Deprecated -func (o *CreateWrappingKeyPayload) GetBackend() (ret CreateWrappingKeyPayloadGetBackendRetType) { - ret, _ = o.GetBackendOk() - return ret -} - -// GetBackendOk returns a tuple with the Backend field value -// and a boolean to check if the value has been set. -// Deprecated -func (o *CreateWrappingKeyPayload) GetBackendOk() (ret CreateWrappingKeyPayloadGetBackendRetType, ok bool) { - return getCreateWrappingKeyPayloadGetBackendAttributeTypeOk(o.Backend) -} - -// SetBackend sets field value -// Deprecated -func (o *CreateWrappingKeyPayload) SetBackend(v CreateWrappingKeyPayloadGetBackendRetType) { - setCreateWrappingKeyPayloadGetBackendAttributeType(&o.Backend, v) -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *CreateWrappingKeyPayload) GetDescription() (res CreateWrappingKeyPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() @@ -302,25 +260,19 @@ func (o *CreateWrappingKeyPayload) SetDisplayName(v CreateWrappingKeyPayloadGetD setCreateWrappingKeyPayloadGetDisplayNameAttributeType(&o.DisplayName, v) } -// GetProtection returns the Protection field value if set, zero value otherwise. -func (o *CreateWrappingKeyPayload) GetProtection() (res CreateWrappingKeyPayloadGetProtectionRetType) { - res, _ = o.GetProtectionOk() - return +// GetProtection returns the Protection field value +func (o *CreateWrappingKeyPayload) GetProtection() (ret CreateWrappingKeyPayloadGetProtectionRetType) { + ret, _ = o.GetProtectionOk() + return ret } -// GetProtectionOk returns a tuple with the Protection field value if set, nil otherwise +// GetProtectionOk returns a tuple with the Protection field value // and a boolean to check if the value has been set. func (o *CreateWrappingKeyPayload) GetProtectionOk() (ret CreateWrappingKeyPayloadGetProtectionRetType, ok bool) { return getCreateWrappingKeyPayloadGetProtectionAttributeTypeOk(o.Protection) } -// HasProtection returns a boolean if a field has been set. -func (o *CreateWrappingKeyPayload) HasProtection() bool { - _, ok := o.GetProtectionOk() - return ok -} - -// SetProtection gets a reference to the given Protection and assigns it to the Protection field. +// SetProtection sets field value func (o *CreateWrappingKeyPayload) SetProtection(v CreateWrappingKeyPayloadGetProtectionRetType) { setCreateWrappingKeyPayloadGetProtectionAttributeType(&o.Protection, v) } @@ -350,9 +302,6 @@ func (o CreateWrappingKeyPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateWrappingKeyPayloadGetAlgorithmAttributeTypeOk(o.Algorithm); ok { toSerialize["Algorithm"] = val } - if val, ok := getCreateWrappingKeyPayloadGetBackendAttributeTypeOk(o.Backend); ok { - toSerialize["Backend"] = val - } if val, ok := getCreateWrappingKeyPayloadGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } diff --git a/services/kms/model_create_wrapping_key_payload_test.go b/services/kms/model_create_wrapping_key_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_create_wrapping_key_payload_test.go +++ b/services/kms/model_create_wrapping_key_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_decrypt_payload.go b/services/kms/model_decrypt_payload.go index 093973a9a..1b55c5037 100644 --- a/services/kms/model_decrypt_payload.go +++ b/services/kms/model_decrypt_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_decrypt_payload_test.go b/services/kms/model_decrypt_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_decrypt_payload_test.go +++ b/services/kms/model_decrypt_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_decrypted_data.go b/services/kms/model_decrypted_data.go index e0a001e1a..3b2e4ec3b 100644 --- a/services/kms/model_decrypted_data.go +++ b/services/kms/model_decrypted_data.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_decrypted_data_test.go b/services/kms/model_decrypted_data_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_decrypted_data_test.go +++ b/services/kms/model_decrypted_data_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_encrypt_payload.go b/services/kms/model_encrypt_payload.go index 833f5cb0d..5d15ad666 100644 --- a/services/kms/model_encrypt_payload.go +++ b/services/kms/model_encrypt_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_encrypt_payload_test.go b/services/kms/model_encrypt_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_encrypt_payload_test.go +++ b/services/kms/model_encrypt_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_encrypted_data.go b/services/kms/model_encrypted_data.go index 1d17bc49a..063aab17d 100644 --- a/services/kms/model_encrypted_data.go +++ b/services/kms/model_encrypted_data.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_encrypted_data_test.go b/services/kms/model_encrypted_data_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_encrypted_data_test.go +++ b/services/kms/model_encrypted_data_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_http_error.go b/services/kms/model_http_error.go index c8d82e1ac..543b4509b 100644 --- a/services/kms/model_http_error.go +++ b/services/kms/model_http_error.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_http_error_test.go b/services/kms/model_http_error_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_http_error_test.go +++ b/services/kms/model_http_error_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_import_key_payload.go b/services/kms/model_import_key_payload.go index 309b4ff61..f38afc6fd 100644 --- a/services/kms/model_import_key_payload.go +++ b/services/kms/model_import_key_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_import_key_payload_test.go b/services/kms/model_import_key_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_import_key_payload_test.go +++ b/services/kms/model_import_key_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_key.go b/services/kms/model_key.go index 7622db446..91bc0489b 100644 --- a/services/kms/model_key.go +++ b/services/kms/model_key.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -59,26 +59,6 @@ func setKeyGetAlgorithmAttributeType(arg *KeyGetAlgorithmAttributeType, val KeyG *arg = &val } -/* - types and functions for backend -*/ - -// isEnumRef -type KeyGetBackendAttributeType = *Backend -type KeyGetBackendArgType = Backend -type KeyGetBackendRetType = Backend - -func getKeyGetBackendAttributeTypeOk(arg KeyGetBackendAttributeType) (ret KeyGetBackendRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setKeyGetBackendAttributeType(arg *KeyGetBackendAttributeType, val KeyGetBackendRetType) { - *arg = &val -} - /* types and functions for createdAt */ @@ -401,9 +381,6 @@ type Key struct { AccessScope KeyGetAccessScopeAttributeType `json:"access_scope" required:"true"` // REQUIRED Algorithm KeyGetAlgorithmAttributeType `json:"algorithm" required:"true"` - // Deprecated: Check the GitHub changelog for alternatives - // REQUIRED - Backend KeyGetBackendAttributeType `json:"backend" required:"true"` // The date and time the creation of the key was triggered. // REQUIRED CreatedAt KeyGetCreatedAtAttributeType `json:"createdAt" required:"true"` @@ -421,8 +398,9 @@ type Key struct { ImportOnly KeygetImportOnlyAttributeType `json:"importOnly,omitempty"` // The unique id of the key ring this key is assigned to. // REQUIRED - KeyRingId KeyGetKeyRingIdAttributeType `json:"keyRingId" required:"true"` - Protection KeyGetProtectionAttributeType `json:"protection,omitempty"` + KeyRingId KeyGetKeyRingIdAttributeType `json:"keyRingId" required:"true"` + // REQUIRED + Protection KeyGetProtectionAttributeType `json:"protection" required:"true"` // REQUIRED Purpose KeyGetPurposeAttributeType `json:"purpose" required:"true"` // The current state of the key. @@ -436,15 +414,15 @@ type _Key Key // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewKey(accessScope KeyGetAccessScopeArgType, algorithm KeyGetAlgorithmArgType, backend KeyGetBackendArgType, createdAt KeyGetCreatedAtArgType, displayName KeyGetDisplayNameArgType, id KeyGetIdArgType, keyRingId KeyGetKeyRingIdArgType, purpose KeyGetPurposeArgType, state KeyGetStateArgType) *Key { +func NewKey(accessScope KeyGetAccessScopeArgType, algorithm KeyGetAlgorithmArgType, createdAt KeyGetCreatedAtArgType, displayName KeyGetDisplayNameArgType, id KeyGetIdArgType, keyRingId KeyGetKeyRingIdArgType, protection KeyGetProtectionArgType, purpose KeyGetPurposeArgType, state KeyGetStateArgType) *Key { this := Key{} setKeyGetAccessScopeAttributeType(&this.AccessScope, accessScope) setKeyGetAlgorithmAttributeType(&this.Algorithm, algorithm) - setKeyGetBackendAttributeType(&this.Backend, backend) setKeyGetCreatedAtAttributeType(&this.CreatedAt, createdAt) setKeyGetDisplayNameAttributeType(&this.DisplayName, displayName) setKeyGetIdAttributeType(&this.Id, id) setKeyGetKeyRingIdAttributeType(&this.KeyRingId, keyRingId) + setKeyGetProtectionAttributeType(&this.Protection, protection) setKeyGetPurposeAttributeType(&this.Purpose, purpose) setKeyGetStateAttributeType(&this.State, state) return &this @@ -496,26 +474,6 @@ func (o *Key) SetAlgorithm(v KeyGetAlgorithmRetType) { setKeyGetAlgorithmAttributeType(&o.Algorithm, v) } -// GetBackend returns the Backend field value -// Deprecated -func (o *Key) GetBackend() (ret KeyGetBackendRetType) { - ret, _ = o.GetBackendOk() - return ret -} - -// GetBackendOk returns a tuple with the Backend field value -// and a boolean to check if the value has been set. -// Deprecated -func (o *Key) GetBackendOk() (ret KeyGetBackendRetType, ok bool) { - return getKeyGetBackendAttributeTypeOk(o.Backend) -} - -// SetBackend sets field value -// Deprecated -func (o *Key) SetBackend(v KeyGetBackendRetType) { - setKeyGetBackendAttributeType(&o.Backend, v) -} - // GetCreatedAt returns the CreatedAt field value func (o *Key) GetCreatedAt() (ret KeyGetCreatedAtRetType) { ret, _ = o.GetCreatedAtOk() @@ -653,25 +611,19 @@ func (o *Key) SetKeyRingId(v KeyGetKeyRingIdRetType) { setKeyGetKeyRingIdAttributeType(&o.KeyRingId, v) } -// GetProtection returns the Protection field value if set, zero value otherwise. -func (o *Key) GetProtection() (res KeyGetProtectionRetType) { - res, _ = o.GetProtectionOk() - return +// GetProtection returns the Protection field value +func (o *Key) GetProtection() (ret KeyGetProtectionRetType) { + ret, _ = o.GetProtectionOk() + return ret } -// GetProtectionOk returns a tuple with the Protection field value if set, nil otherwise +// GetProtectionOk returns a tuple with the Protection field value // and a boolean to check if the value has been set. func (o *Key) GetProtectionOk() (ret KeyGetProtectionRetType, ok bool) { return getKeyGetProtectionAttributeTypeOk(o.Protection) } -// HasProtection returns a boolean if a field has been set. -func (o *Key) HasProtection() bool { - _, ok := o.GetProtectionOk() - return ok -} - -// SetProtection gets a reference to the given Protection and assigns it to the Protection field. +// SetProtection sets field value func (o *Key) SetProtection(v KeyGetProtectionRetType) { setKeyGetProtectionAttributeType(&o.Protection, v) } @@ -718,9 +670,6 @@ func (o Key) ToMap() (map[string]interface{}, error) { if val, ok := getKeyGetAlgorithmAttributeTypeOk(o.Algorithm); ok { toSerialize["Algorithm"] = val } - if val, ok := getKeyGetBackendAttributeTypeOk(o.Backend); ok { - toSerialize["Backend"] = val - } if val, ok := getKeyGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { toSerialize["CreatedAt"] = val } diff --git a/services/kms/model_key_list.go b/services/kms/model_key_list.go index b7c960e1a..b89a7b224 100644 --- a/services/kms/model_key_list.go +++ b/services/kms/model_key_list.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_key_list_test.go b/services/kms/model_key_list_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_key_list_test.go +++ b/services/kms/model_key_list_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_key_ring.go b/services/kms/model_key_ring.go index b9fca4009..222705063 100644 --- a/services/kms/model_key_ring.go +++ b/services/kms/model_key_ring.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_key_ring_list.go b/services/kms/model_key_ring_list.go index da08a7c05..964b78acc 100644 --- a/services/kms/model_key_ring_list.go +++ b/services/kms/model_key_ring_list.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_key_ring_list_test.go b/services/kms/model_key_ring_list_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_key_ring_list_test.go +++ b/services/kms/model_key_ring_list_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_key_ring_test.go b/services/kms/model_key_ring_test.go index 68b2aedfa..d2e8a0b2b 100644 --- a/services/kms/model_key_ring_test.go +++ b/services/kms/model_key_ring_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_key_test.go b/services/kms/model_key_test.go index 7e2c3e21a..1bf351e31 100644 --- a/services/kms/model_key_test.go +++ b/services/kms/model_key_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_protection.go b/services/kms/model_protection.go index d1fae828b..83108c5e5 100644 --- a/services/kms/model_protection.go +++ b/services/kms/model_protection.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// Protection The underlying system that is responsible for protecting the key material. Overrides the deprecated 'backend' field. +// Protection The underlying system that is responsible for protecting the key material. type Protection string // List of protection diff --git a/services/kms/model_protection_test.go b/services/kms/model_protection_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_protection_test.go +++ b/services/kms/model_protection_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_purpose.go b/services/kms/model_purpose.go index 34ef82800..5e6a86238 100644 --- a/services/kms/model_purpose.go +++ b/services/kms/model_purpose.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_purpose_test.go b/services/kms/model_purpose_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_purpose_test.go +++ b/services/kms/model_purpose_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_sign_payload.go b/services/kms/model_sign_payload.go index caaa37c93..9a325f4a0 100644 --- a/services/kms/model_sign_payload.go +++ b/services/kms/model_sign_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_sign_payload_test.go b/services/kms/model_sign_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_sign_payload_test.go +++ b/services/kms/model_sign_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_signed_data.go b/services/kms/model_signed_data.go index 41676918a..8d99e09cc 100644 --- a/services/kms/model_signed_data.go +++ b/services/kms/model_signed_data.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_signed_data_test.go b/services/kms/model_signed_data_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_signed_data_test.go +++ b/services/kms/model_signed_data_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_verified_data.go b/services/kms/model_verified_data.go index 865aba57d..3128840eb 100644 --- a/services/kms/model_verified_data.go +++ b/services/kms/model_verified_data.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_verified_data_test.go b/services/kms/model_verified_data_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_verified_data_test.go +++ b/services/kms/model_verified_data_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_verify_payload.go b/services/kms/model_verify_payload.go index a3bf217dd..934f0d89e 100644 --- a/services/kms/model_verify_payload.go +++ b/services/kms/model_verify_payload.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_verify_payload_test.go b/services/kms/model_verify_payload_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_verify_payload_test.go +++ b/services/kms/model_verify_payload_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_version.go b/services/kms/model_version.go index e973a7cc1..40aa13185 100644 --- a/services/kms/model_version.go +++ b/services/kms/model_version.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_version_list.go b/services/kms/model_version_list.go index 795479703..07a3bb321 100644 --- a/services/kms/model_version_list.go +++ b/services/kms/model_version_list.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_version_list_test.go b/services/kms/model_version_list_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_version_list_test.go +++ b/services/kms/model_version_list_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_version_test.go b/services/kms/model_version_test.go index 1ff2fe5dc..51a7e5e44 100644 --- a/services/kms/model_version_test.go +++ b/services/kms/model_version_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_wrapping_algorithm.go b/services/kms/model_wrapping_algorithm.go index cd9ca9034..29b72d34f 100644 --- a/services/kms/model_wrapping_algorithm.go +++ b/services/kms/model_wrapping_algorithm.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_wrapping_algorithm_test.go b/services/kms/model_wrapping_algorithm_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_wrapping_algorithm_test.go +++ b/services/kms/model_wrapping_algorithm_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_wrapping_key.go b/services/kms/model_wrapping_key.go index 57b25d110..a3b96bdf3 100644 --- a/services/kms/model_wrapping_key.go +++ b/services/kms/model_wrapping_key.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -59,26 +59,6 @@ func setWrappingKeyGetAlgorithmAttributeType(arg *WrappingKeyGetAlgorithmAttribu *arg = &val } -/* - types and functions for backend -*/ - -// isEnumRef -type WrappingKeyGetBackendAttributeType = *Backend -type WrappingKeyGetBackendArgType = Backend -type WrappingKeyGetBackendRetType = Backend - -func getWrappingKeyGetBackendAttributeTypeOk(arg WrappingKeyGetBackendAttributeType) (ret WrappingKeyGetBackendRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setWrappingKeyGetBackendAttributeType(arg *WrappingKeyGetBackendAttributeType, val WrappingKeyGetBackendRetType) { - *arg = &val -} - /* types and functions for createdAt */ @@ -400,9 +380,6 @@ type WrappingKey struct { AccessScope WrappingKeyGetAccessScopeAttributeType `json:"access_scope" required:"true"` // REQUIRED Algorithm WrappingKeyGetAlgorithmAttributeType `json:"algorithm" required:"true"` - // Deprecated: Check the GitHub changelog for alternatives - // REQUIRED - Backend WrappingKeyGetBackendAttributeType `json:"backend" required:"true"` // The date and time the creation of the wrapping key was triggered. // REQUIRED CreatedAt WrappingKeyGetCreatedAtAttributeType `json:"createdAt" required:"true"` @@ -419,8 +396,9 @@ type WrappingKey struct { Id WrappingKeyGetIdAttributeType `json:"id" required:"true"` // The unique id of the key ring this wrapping key is assigned to. // REQUIRED - KeyRingId WrappingKeyGetKeyRingIdAttributeType `json:"keyRingId" required:"true"` - Protection WrappingKeyGetProtectionAttributeType `json:"protection,omitempty"` + KeyRingId WrappingKeyGetKeyRingIdAttributeType `json:"keyRingId" required:"true"` + // REQUIRED + Protection WrappingKeyGetProtectionAttributeType `json:"protection" required:"true"` // The public key of the wrapping key. PublicKey WrappingKeyGetPublicKeyAttributeType `json:"publicKey,omitempty"` // REQUIRED @@ -436,16 +414,16 @@ type _WrappingKey WrappingKey // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWrappingKey(accessScope WrappingKeyGetAccessScopeArgType, algorithm WrappingKeyGetAlgorithmArgType, backend WrappingKeyGetBackendArgType, createdAt WrappingKeyGetCreatedAtArgType, displayName WrappingKeyGetDisplayNameArgType, expiresAt WrappingKeyGetExpiresAtArgType, id WrappingKeyGetIdArgType, keyRingId WrappingKeyGetKeyRingIdArgType, purpose WrappingKeyGetPurposeArgType, state WrappingKeyGetStateArgType) *WrappingKey { +func NewWrappingKey(accessScope WrappingKeyGetAccessScopeArgType, algorithm WrappingKeyGetAlgorithmArgType, createdAt WrappingKeyGetCreatedAtArgType, displayName WrappingKeyGetDisplayNameArgType, expiresAt WrappingKeyGetExpiresAtArgType, id WrappingKeyGetIdArgType, keyRingId WrappingKeyGetKeyRingIdArgType, protection WrappingKeyGetProtectionArgType, purpose WrappingKeyGetPurposeArgType, state WrappingKeyGetStateArgType) *WrappingKey { this := WrappingKey{} setWrappingKeyGetAccessScopeAttributeType(&this.AccessScope, accessScope) setWrappingKeyGetAlgorithmAttributeType(&this.Algorithm, algorithm) - setWrappingKeyGetBackendAttributeType(&this.Backend, backend) setWrappingKeyGetCreatedAtAttributeType(&this.CreatedAt, createdAt) setWrappingKeyGetDisplayNameAttributeType(&this.DisplayName, displayName) setWrappingKeyGetExpiresAtAttributeType(&this.ExpiresAt, expiresAt) setWrappingKeyGetIdAttributeType(&this.Id, id) setWrappingKeyGetKeyRingIdAttributeType(&this.KeyRingId, keyRingId) + setWrappingKeyGetProtectionAttributeType(&this.Protection, protection) setWrappingKeyGetPurposeAttributeType(&this.Purpose, purpose) setWrappingKeyGetStateAttributeType(&this.State, state) return &this @@ -495,26 +473,6 @@ func (o *WrappingKey) SetAlgorithm(v WrappingKeyGetAlgorithmRetType) { setWrappingKeyGetAlgorithmAttributeType(&o.Algorithm, v) } -// GetBackend returns the Backend field value -// Deprecated -func (o *WrappingKey) GetBackend() (ret WrappingKeyGetBackendRetType) { - ret, _ = o.GetBackendOk() - return ret -} - -// GetBackendOk returns a tuple with the Backend field value -// and a boolean to check if the value has been set. -// Deprecated -func (o *WrappingKey) GetBackendOk() (ret WrappingKeyGetBackendRetType, ok bool) { - return getWrappingKeyGetBackendAttributeTypeOk(o.Backend) -} - -// SetBackend sets field value -// Deprecated -func (o *WrappingKey) SetBackend(v WrappingKeyGetBackendRetType) { - setWrappingKeyGetBackendAttributeType(&o.Backend, v) -} - // GetCreatedAt returns the CreatedAt field value func (o *WrappingKey) GetCreatedAt() (ret WrappingKeyGetCreatedAtRetType) { ret, _ = o.GetCreatedAtOk() @@ -623,25 +581,19 @@ func (o *WrappingKey) SetKeyRingId(v WrappingKeyGetKeyRingIdRetType) { setWrappingKeyGetKeyRingIdAttributeType(&o.KeyRingId, v) } -// GetProtection returns the Protection field value if set, zero value otherwise. -func (o *WrappingKey) GetProtection() (res WrappingKeyGetProtectionRetType) { - res, _ = o.GetProtectionOk() - return +// GetProtection returns the Protection field value +func (o *WrappingKey) GetProtection() (ret WrappingKeyGetProtectionRetType) { + ret, _ = o.GetProtectionOk() + return ret } -// GetProtectionOk returns a tuple with the Protection field value if set, nil otherwise +// GetProtectionOk returns a tuple with the Protection field value // and a boolean to check if the value has been set. func (o *WrappingKey) GetProtectionOk() (ret WrappingKeyGetProtectionRetType, ok bool) { return getWrappingKeyGetProtectionAttributeTypeOk(o.Protection) } -// HasProtection returns a boolean if a field has been set. -func (o *WrappingKey) HasProtection() bool { - _, ok := o.GetProtectionOk() - return ok -} - -// SetProtection gets a reference to the given Protection and assigns it to the Protection field. +// SetProtection sets field value func (o *WrappingKey) SetProtection(v WrappingKeyGetProtectionRetType) { setWrappingKeyGetProtectionAttributeType(&o.Protection, v) } @@ -711,9 +663,6 @@ func (o WrappingKey) ToMap() (map[string]interface{}, error) { if val, ok := getWrappingKeyGetAlgorithmAttributeTypeOk(o.Algorithm); ok { toSerialize["Algorithm"] = val } - if val, ok := getWrappingKeyGetBackendAttributeTypeOk(o.Backend); ok { - toSerialize["Backend"] = val - } if val, ok := getWrappingKeyGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { toSerialize["CreatedAt"] = val } diff --git a/services/kms/model_wrapping_key_list.go b/services/kms/model_wrapping_key_list.go index 1cfcd7c98..b564f258d 100644 --- a/services/kms/model_wrapping_key_list.go +++ b/services/kms/model_wrapping_key_list.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_wrapping_key_list_test.go b/services/kms/model_wrapping_key_list_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_wrapping_key_list_test.go +++ b/services/kms/model_wrapping_key_list_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_wrapping_key_test.go b/services/kms/model_wrapping_key_test.go index c23224f8a..901447e36 100644 --- a/services/kms/model_wrapping_key_test.go +++ b/services/kms/model_wrapping_key_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_wrapping_purpose.go b/services/kms/model_wrapping_purpose.go index c952b12e9..3a410eda4 100644 --- a/services/kms/model_wrapping_purpose.go +++ b/services/kms/model_wrapping_purpose.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/model_wrapping_purpose_test.go b/services/kms/model_wrapping_purpose_test.go index 575e8aba9..92baef33b 100644 --- a/services/kms/model_wrapping_purpose_test.go +++ b/services/kms/model_wrapping_purpose_test.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/utils.go b/services/kms/utils.go index 031b40634..6deffbbc9 100644 --- a/services/kms/utils.go +++ b/services/kms/utils.go @@ -3,7 +3,7 @@ STACKIT Key Management Service API This API provides endpoints for managing keys and key rings. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/modelserving/model_chat_model_details.go b/services/modelserving/model_chat_model_details.go index a79f1b17a..6c965dbe8 100644 --- a/services/modelserving/model_chat_model_details.go +++ b/services/modelserving/model_chat_model_details.go @@ -30,11 +30,11 @@ type ChatModelDetailsBits int // List of Bits const ( - CHATMODELDETAILSBITS_1Bit ChatModelDetailsBits = 1 - CHATMODELDETAILSBITS_2Bits ChatModelDetailsBits = 2 - CHATMODELDETAILSBITS_4Bits ChatModelDetailsBits = 4 - CHATMODELDETAILSBITS_8Bits ChatModelDetailsBits = 8 - CHATMODELDETAILSBITS_16Bits ChatModelDetailsBits = 16 + CHATMODELDETAILSBITS_ONE_BIT ChatModelDetailsBits = 1 + CHATMODELDETAILSBITS_TWO_BITS ChatModelDetailsBits = 2 + CHATMODELDETAILSBITS_FOUR_BITS ChatModelDetailsBits = 4 + CHATMODELDETAILSBITS_EIGHT_BITS ChatModelDetailsBits = 8 + CHATMODELDETAILSBITS_SIXTEEN_BITS ChatModelDetailsBits = 16 ) // All allowed values of ChatModelDetails enum diff --git a/services/modelserving/model_model.go b/services/modelserving/model_model.go index 4fab68b6f..a45046128 100644 --- a/services/modelserving/model_model.go +++ b/services/modelserving/model_model.go @@ -303,12 +303,16 @@ type ModelTypes string const ( MODELTYPE_CHAT ModelTypes = "chat" MODELTYPE_EMBEDDING ModelTypes = "embedding" + MODELTYPE_AUDIO ModelTypes = "audio" + MODELTYPE_IMAGE ModelTypes = "image" ) // All allowed values of Model enum var AllowedModelTypesEnumValues = []ModelTypes{ "chat", "embedding", + "audio", + "image", } func (v *ModelTypes) UnmarshalJSON(src []byte) error { diff --git a/services/modelserving/model_model_test.go b/services/modelserving/model_model_test.go index 6a106b95a..4cf11f053 100644 --- a/services/modelserving/model_model_test.go +++ b/services/modelserving/model_model_test.go @@ -89,6 +89,20 @@ func TestModelTypes_UnmarshalJSON(t *testing.T) { }, wantErr: false, }, + { + name: `success - possible enum value no. 3`, + args: args{ + src: []byte(`"audio"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 4`, + args: args{ + src: []byte(`"image"`), + }, + wantErr: false, + }, { name: "fail", args: args{