chore: work save
This commit is contained in:
parent
e7176b2eef
commit
882a30027e
2 changed files with 274 additions and 270 deletions
|
|
@ -175,12 +175,12 @@ func toCreatePayload(
|
|||
storagePayload.Size = conversion.Int64ValueToPointer(storage.Size)
|
||||
}
|
||||
|
||||
var encryptionPayload *sqlserverflex.CreateInstanceRequestPayloadGetEncryptionArgType
|
||||
var encryptionPayload *sqlserverflex.CreateInstanceRequestPayloadGetEncryptionArgType = nil
|
||||
if encryption != nil &&
|
||||
!encryption.KeyId.IsNull() && !encryption.KeyId.IsUnknown() &&
|
||||
!encryption.KeyRingId.IsNull() && !encryption.KeyRingId.IsUnknown() &&
|
||||
!encryption.KeyVersion.IsNull() && !encryption.KeyVersion.IsUnknown() &&
|
||||
!encryption.ServiceAccount.IsNull() && !encryption.ServiceAccount.IsUnknown() {
|
||||
!encryption.KeyId.IsNull() && !encryption.KeyId.IsUnknown() && encryption.KeyId.ValueString() != "" &&
|
||||
!encryption.KeyRingId.IsNull() && !encryption.KeyRingId.IsUnknown() && encryption.KeyRingId.ValueString() != "" &&
|
||||
!encryption.KeyVersion.IsNull() && !encryption.KeyVersion.IsUnknown() && encryption.KeyVersion.ValueString() != "" &&
|
||||
!encryption.ServiceAccount.IsNull() && !encryption.ServiceAccount.IsUnknown() && encryption.ServiceAccount.ValueString() != "" {
|
||||
encryptionPayload = &sqlserverflex.CreateInstanceRequestPayloadGetEncryptionArgType{
|
||||
KekKeyId: conversion.StringValueToPointer(encryption.KeyId),
|
||||
KekKeyRingId: conversion.StringValueToPointer(encryption.KeyVersion),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue