Skip to content

Commit 9aa2f29

Browse files
authored
Remove persistent storage encryption from the client (#65)
* remove persistent_storage_encryption from the API calls Co-authored-by: Hieu Doan <[email protected]>
1 parent 28a1332 commit 9aa2f29

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/).
44

55
## 0.1.7 (unreleased)
66

7+
### Removed
8+
9+
* Removed the PersistentStorageEncryption (deprecated) field from the API calls.
10+
711
## 0.1.6 (January 14 2022)
812

913
### Added

service/subscriptions/model.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ import (
77
)
88

99
type CreateSubscription struct {
10-
Name *string `json:"name,omitempty"`
11-
DryRun *bool `json:"dryRun,omitempty"`
12-
PaymentMethodID *int `json:"paymentMethodId,omitempty"`
13-
MemoryStorage *string `json:"memoryStorage,omitempty"`
14-
PersistentStorageEncryption *bool `json:"persistentStorageEncryption,omitempty"`
15-
CloudProviders []*CreateCloudProvider `json:"cloudProviders,omitempty"`
16-
Databases []*CreateDatabase `json:"databases,omitempty"`
10+
Name *string `json:"name,omitempty"`
11+
DryRun *bool `json:"dryRun,omitempty"`
12+
PaymentMethodID *int `json:"paymentMethodId,omitempty"`
13+
MemoryStorage *string `json:"memoryStorage,omitempty"`
14+
CloudProviders []*CreateCloudProvider `json:"cloudProviders,omitempty"`
15+
Databases []*CreateDatabase `json:"databases,omitempty"`
1716
}
1817

1918
func (o CreateSubscription) String() string {

subscription_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ func TestSubscription_Create(t *testing.T) {
2020
"dryRun": false,
2121
"paymentMethodId": 2,
2222
"memoryStorage": "ram",
23-
"persistentStorageEncryption": false,
2423
"cloudProviders": [
2524
{
2625
"provider": "AWS",
@@ -104,11 +103,10 @@ func TestSubscription_Create(t *testing.T) {
104103
require.NoError(t, err)
105104

106105
actual, err := subject.Subscription.Create(context.TODO(), subscriptions.CreateSubscription{
107-
Name: redis.String("Test subscription"),
108-
DryRun: redis.Bool(false),
109-
PaymentMethodID: redis.Int(2),
110-
MemoryStorage: redis.String("ram"),
111-
PersistentStorageEncryption: redis.Bool(false),
106+
Name: redis.String("Test subscription"),
107+
DryRun: redis.Bool(false),
108+
PaymentMethodID: redis.Int(2),
109+
MemoryStorage: redis.String("ram"),
112110
CloudProviders: []*subscriptions.CreateCloudProvider{
113111
{
114112
Provider: redis.String("AWS"),

0 commit comments

Comments
 (0)