Skip to content

Commit da07109

Browse files
authored
Merge pull request #133 from planetscale/joem/update-openapi-client-get-for-seed
regen client for new seed_data in branch create
2 parents b848299 + ed4d72f commit da07109

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

internal/client/planetscale/planetscale.go

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

openapi-spec.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,13 @@
664664
"parent_branch": {
665665
"description": "Parent branch",
666666
"type": "string"
667+
},
668+
"seed_data": {
669+
"description": "If provided, restores the last successful backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this, in addition to Data Branching™ being enabled for the branch.",
670+
"type": "string",
671+
"enum": [
672+
"last_successful_backup"
673+
]
667674
}
668675
},
669676
"additionalProperties": false

openapi/openapi-spec.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,13 @@
16841684
"type": "string",
16851685
"description": "If provided, restores the backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this."
16861686
},
1687+
"seed_data": {
1688+
"type": "string",
1689+
"enum": [
1690+
"last_successful_backup"
1691+
],
1692+
"description": "If provided, restores the last successful backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this, in addition to Data Branching™ being enabled for the branch."
1693+
},
16871694
"cluster_size": {
16881695
"type": "string",
16891696
"description": "The database cluster size is required if a backup_id is provided. Options: PS_10, PS_20, PS_40, ..., PS_2800"

0 commit comments

Comments
 (0)