Skip to content

Commit

Permalink
feat(rdb): activate encryption on existing instances (#1534)
Browse files Browse the repository at this point in the history
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
  • Loading branch information
scaleway-bot and Laure-di authored Oct 28, 2024
1 parent 1a96ea5 commit 730af6f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/clients/src/api/rdb/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1308,5 +1308,6 @@ export const marshalUpgradeInstanceRequest = (
)
: undefined,
},
{ param: 'enable_encryption', value: request.enableEncryption },
]),
})
33 changes: 21 additions & 12 deletions packages/clients/src/api/rdb/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1577,51 +1577,60 @@ export type UpgradeInstanceRequest = {
* Node type of the Database Instance you want to upgrade to.
*
* One-of ('upgradeTarget'): at most one of 'nodeType', 'enableHa',
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow'
* could be set.
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow',
* 'enableEncryption' could be set.
*/
nodeType?: string
/**
* Defines whether or not high availability should be enabled on the Database
* Instance.
*
* One-of ('upgradeTarget'): at most one of 'nodeType', 'enableHa',
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow'
* could be set.
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow',
* 'enableEncryption' could be set.
*/
enableHa?: boolean
/**
* Increase your block storage volume size.
*
* One-of ('upgradeTarget'): at most one of 'nodeType', 'enableHa',
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow'
* could be set.
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow',
* 'enableEncryption' could be set.
*/
volumeSize?: number
/**
* Change your Database Instance storage type.
*
* One-of ('upgradeTarget'): at most one of 'nodeType', 'enableHa',
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow'
* could be set.
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow',
* 'enableEncryption' could be set.
*/
volumeType?: VolumeType
/**
* This will create a new Database Instance with same specifications as the
* current one and perform a Database Engine upgrade.
*
* One-of ('upgradeTarget'): at most one of 'nodeType', 'enableHa',
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow'
* could be set.
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow',
* 'enableEncryption' could be set.
*/
upgradableVersionId?: string
/**
* Upgrade your database engine to a new major version including instance
* endpoints.
*
* One-of ('upgradeTarget'): at most one of 'nodeType', 'enableHa',
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow'
* could be set.
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow',
* 'enableEncryption' could be set.
*/
majorUpgradeWorkflow?: UpgradeInstanceRequestMajorUpgradeWorkflow
/**
* Defines whether or not encryption should be enabled on the Database
* Instance.
*
* One-of ('upgradeTarget'): at most one of 'nodeType', 'enableHa',
* 'volumeSize', 'volumeType', 'upgradableVersionId', 'majorUpgradeWorkflow',
* 'enableEncryption' could be set.
*/
enableEncryption?: boolean
}

0 comments on commit 730af6f

Please sign in to comment.