-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add project refs and move fragments next to queries and mutations
- Loading branch information
1 parent
5a79fa1
commit 4000893
Showing
17 changed files
with
2,510 additions
and
2,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,43 @@ | ||
fragment ClusterBackupFragment on ClusterBackup { | ||
id | ||
name | ||
cluster { id } | ||
garbageCollected | ||
} | ||
|
||
fragment ClusterRestoreFragment on ClusterRestore { | ||
id | ||
status | ||
backup { ... ClusterBackupFragment} | ||
} | ||
|
||
mutation CreateClusterBackup($attributes: BackupAttributes!) { | ||
createClusterBackup(attributes: $attributes) { | ||
... ClusterBackupFragment | ||
...ClusterBackupFragment | ||
} | ||
} | ||
|
||
query GetClusterBackup($id: ID, $clusterId: ID, $namespace: String, $name: String) { | ||
clusterBackup(id: $id, clusterId: $clusterId, namespace: $namespace, name: $name) { | ||
... ClusterBackupFragment | ||
...ClusterBackupFragment | ||
} | ||
} | ||
|
||
mutation UpdateClusterRestore($id: ID!, $attributes: RestoreAttributes!) { | ||
updateClusterRestore(id: $id, attributes: $attributes) { | ||
... ClusterRestoreFragment | ||
...ClusterRestoreFragment | ||
} | ||
} | ||
|
||
mutation CreateClusterRestore($backupId: ID!) { | ||
createClusterRestore(backupId: $backupId) { | ||
... ClusterRestoreFragment | ||
...ClusterRestoreFragment | ||
} | ||
} | ||
|
||
query GetClusterRestore($id: ID!) { | ||
clusterRestore(id: $id) { | ||
... ClusterRestoreFragment | ||
...ClusterRestoreFragment | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.