mirror of
https://github.com/rancher/types.git
synced 2025-07-31 04:49:37 +00:00
add enable disable clustertemplaterevision actions
This commit is contained in:
parent
782023395d
commit
9d2b59dedc
@ -869,12 +869,17 @@ func clusterTemplateTypes(schemas *types.Schemas) *types.Schemas {
|
||||
MustImport(&Version, v3.ClusterTemplateQuestionsOutput{}).
|
||||
MustImport(&Version, v3.ClusterTemplate{}).
|
||||
MustImportAndCustomize(&Version, v3.ClusterTemplateRevision{}, func(schema *types.Schema) {
|
||||
schema.ResourceActions = map[string]types.Action{
|
||||
"disable": {},
|
||||
"enable": {},
|
||||
}
|
||||
schema.CollectionActions = map[string]types.Action{
|
||||
"listquestions": {
|
||||
Output: "clusterTemplateQuestionsOutput",
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
func clusterScanTypes(schemas *types.Schemas) *types.Schemas {
|
||||
|
Loading…
Reference in New Issue
Block a user