Skip to content

Commit 5282573

Browse files
authored
fix: remove unused API fields (#51)
PLAT-86
2 parents 89737c3 + ef8e277 commit 5282573

File tree

19 files changed

+528
-2099
lines changed

19 files changed

+528
-2099
lines changed

api/design/database.go

Lines changed: 0 additions & 40 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")
@@ -205,12 +196,6 @@ var BackupScheduleSpec = g.Type("BackupScheduleSpec", func() {
205196
})
206197

207198
var BackupConfigSpec = g.Type("BackupConfigSpec", func() {
208-
g.Attribute("provider", g.String, func() {
209-
g.Description("The backup provider for this backup configuration.")
210-
g.Default("pgbackrest")
211-
g.Enum("pgbackrest")
212-
g.Example("pgbackrest")
213-
})
214199
g.Attribute("repositories", g.ArrayOf(BackupRepositorySpec), func() {
215200
g.Description("The repositories for this backup configuration.")
216201
g.MinLength(1)
@@ -295,12 +280,6 @@ var RestoreRepositorySpec = g.Type("RestoreRepositorySpec", func() {
295280
})
296281

297282
var RestoreConfigSpec = g.Type("RestoreConfigSpec", func() {
298-
g.Attribute("provider", g.String, func() {
299-
g.Description("The backup provider for this restore configuration.")
300-
g.Default("pgbackrest")
301-
g.Enum("pgbackrest")
302-
g.Example("pgbackrest")
303-
})
304283
g.Attribute("source_database_id", g.String, func() {
305284
g.Description("The ID of the database to restore this database from.")
306285
g.Example("6c8e43ee-26ea-47b8-a8f8-89897e0137bd")
@@ -355,19 +334,6 @@ var DatabaseSpec = g.Type("DatabaseSpec", func() {
355334
g.Description("The port used by the Postgres database.")
356335
g.Example(5432)
357336
})
358-
g.Attribute("deletion_protection", g.Boolean, func() {
359-
g.Description("Prevents deletion when true.")
360-
g.Example(true)
361-
})
362-
g.Attribute("storage_class", g.String, func() {
363-
g.Description("The storage class to use for the database. The possible values and defaults depend on the orchestrator.")
364-
g.Example("host")
365-
g.Example("loop_device")
366-
})
367-
g.Attribute("storage_size", g.String, func() {
368-
g.Description("The size of the storage in SI or IEC notation. Support for this value depends on the orchestrator and storage class.")
369-
g.Example("500GiB")
370-
})
371337
g.Attribute("cpus", g.String, func() {
372338
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.")
373339
g.Example("14")
@@ -385,12 +351,6 @@ var DatabaseSpec = g.Type("DatabaseSpec", func() {
385351
g.Attribute("database_users", g.ArrayOf(DatabaseUserSpec), func() {
386352
g.Description("The users to create for this database.")
387353
})
388-
g.Attribute("features", g.MapOf(g.String, g.String), func() {
389-
g.Description("The feature flags for this database.")
390-
g.Example(map[string]string{
391-
"some_feature": "enabled",
392-
})
393-
})
394354
g.Attribute("backup_config", BackupConfigSpec, func() {
395355
g.Description("The backup configuration for this database.")
396356
})

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: 13 additions & 74 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 & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)