Skip to content

Commit ace2e8e

Browse files
committed
fix: remove unused API fields
Removes unused API fields from API specification. PLAT-86
1 parent 3aae1ec commit ace2e8e

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")
@@ -345,19 +324,6 @@ var DatabaseSpec = g.Type("DatabaseSpec", func() {
345324
g.Description("The port used by the Postgres database.")
346325
g.Example(5432)
347326
})
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-
})
361327
g.Attribute("cpus", g.String, func() {
362328
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.")
363329
g.Example("14")
@@ -375,12 +341,6 @@ var DatabaseSpec = g.Type("DatabaseSpec", func() {
375341
g.Attribute("database_users", g.ArrayOf(DatabaseUserSpec), func() {
376342
g.Description("The users to create for this database.")
377343
})
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-
})
384344
g.Attribute("backup_config", BackupConfigSpec, func() {
385345
g.Description("The backup configuration for this database.")
386346
})

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)