Skip to content

Commit a3cb092

Browse files
committed
fix: remove unused API fields
PLAT-86
1 parent a4ec727 commit a3cb092

File tree

16 files changed

+485
-1512
lines changed

16 files changed

+485
-1512
lines changed

api/design/database.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@ var DatabaseNodeSpec = g.Type("DatabaseNodeSpec", func() {
3939
g.Description("The port used by the Postgres database for this node. Overrides the Postgres port set in the DatabaseSpec.")
4040
g.Example(5432)
4141
})
42-
g.Attribute("storage_class", g.String, func() {
43-
g.Description("The storage class to use for the database on this node. The possible values and defaults depend on the orchestrator.")
44-
g.Example("host")
45-
g.Example("loop_device")
46-
})
47-
g.Attribute("storage_size", g.String, func() {
48-
g.Description("The size of the storage for this node in SI or IEC notation. Support for this value depends on the orchestrator and storage class.")
49-
g.Example("500GiB")
50-
})
5142
g.Attribute("cpus", g.String, func() {
5243
g.Description("The number of CPUs to allocate for the database on this node and to use for tuning Postgres. Defaults to the number of available CPUs on the host. Can include an SI suffix, e.g. '500m' for 500 millicpus. Whether this limit will be enforced depends on the orchestrator.")
5344
g.Example("14")
@@ -345,19 +336,6 @@ var DatabaseSpec = g.Type("DatabaseSpec", func() {
345336
g.Description("The port used by the Postgres database.")
346337
g.Example(5432)
347338
})
348-
g.Attribute("deletion_protection", g.Boolean, func() {
349-
g.Description("Prevents deletion when true.")
350-
g.Example(true)
351-
})
352-
g.Attribute("storage_class", g.String, func() {
353-
g.Description("The storage class to use for the database. The possible values and defaults depend on the orchestrator.")
354-
g.Example("host")
355-
g.Example("loop_device")
356-
})
357-
g.Attribute("storage_size", g.String, func() {
358-
g.Description("The size of the storage in SI or IEC notation. Support for this value depends on the orchestrator and storage class.")
359-
g.Example("500GiB")
360-
})
361339
g.Attribute("cpus", g.String, func() {
362340
g.Description("The number of CPUs to allocate for the database and to use for tuning Postgres. Defaults to the number of available CPUs on the host. Can include an SI suffix, e.g. '500m' for 500 millicpus. Whether this limit will be enforced depends on the orchestrator.")
363341
g.Example("14")
@@ -375,12 +353,6 @@ var DatabaseSpec = g.Type("DatabaseSpec", func() {
375353
g.Attribute("database_users", g.ArrayOf(DatabaseUserSpec), func() {
376354
g.Description("The users to create for this database.")
377355
})
378-
g.Attribute("features", g.MapOf(g.String, g.String), func() {
379-
g.Description("The feature flags for this database.")
380-
g.Example(map[string]string{
381-
"some_feature": "enabled",
382-
})
383-
})
384356
g.Attribute("backup_config", BackupConfigSpec, func() {
385357
g.Description("The backup configuration for this database.")
386358
})

api/design/host.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,5 @@ var Host = g.Type("Host", func() {
122122
"cpus",
123123
"memory",
124124
"status",
125-
"default_pgedge_version",
126-
"supported_pgedge_versions",
127125
)
128126
})

api/gen/control_plane/service.go

Lines changed: 12 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/gen/control_plane/views/view.go

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/gen/http/cli/control_plane/cli.go

Lines changed: 9 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/gen/http/control_plane/client/cli.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)