@@ -23,7 +23,9 @@ func GetGeneratedCommands() *core.Commands {
23
23
cockpitCockpit (),
24
24
cockpitToken (),
25
25
cockpitGrafanaUser (),
26
+ cockpitCockpitActivate (),
26
27
cockpitCockpitGet (),
28
+ cockpitCockpitDeactivate (),
27
29
cockpitCockpitResetGrafana (),
28
30
cockpitTokenCreate (),
29
31
cockpitTokenList (),
@@ -70,6 +72,29 @@ func cockpitGrafanaUser() *core.Command {
70
72
}
71
73
}
72
74
75
+ func cockpitCockpitActivate () * core.Command {
76
+ return & core.Command {
77
+ Short : `Activate a cockpit` ,
78
+ Long : `Activate a cockpit associated with the given project ID.` ,
79
+ Namespace : "cockpit" ,
80
+ Resource : "cockpit" ,
81
+ Verb : "activate" ,
82
+ // Deprecated: false,
83
+ ArgsType : reflect .TypeOf (cockpit.ActivateCockpitRequest {}),
84
+ ArgSpecs : core.ArgSpecs {
85
+ core .ProjectIDArgSpec (),
86
+ },
87
+ Run : func (ctx context.Context , args interface {}) (i interface {}, e error ) {
88
+ request := args .(* cockpit.ActivateCockpitRequest )
89
+
90
+ client := core .ExtractClient (ctx )
91
+ api := cockpit .NewAPI (client )
92
+ return api .ActivateCockpit (request )
93
+
94
+ },
95
+ }
96
+ }
97
+
73
98
func cockpitCockpitGet () * core.Command {
74
99
return & core.Command {
75
100
Short : `Get cockpit` ,
@@ -93,6 +118,29 @@ func cockpitCockpitGet() *core.Command {
93
118
}
94
119
}
95
120
121
+ func cockpitCockpitDeactivate () * core.Command {
122
+ return & core.Command {
123
+ Short : `Deactivate a cockpit` ,
124
+ Long : `Deactivate a cockpit associated with the given project ID.` ,
125
+ Namespace : "cockpit" ,
126
+ Resource : "cockpit" ,
127
+ Verb : "deactivate" ,
128
+ // Deprecated: false,
129
+ ArgsType : reflect .TypeOf (cockpit.DeactivateCockpitRequest {}),
130
+ ArgSpecs : core.ArgSpecs {
131
+ core .ProjectIDArgSpec (),
132
+ },
133
+ Run : func (ctx context.Context , args interface {}) (i interface {}, e error ) {
134
+ request := args .(* cockpit.DeactivateCockpitRequest )
135
+
136
+ client := core .ExtractClient (ctx )
137
+ api := cockpit .NewAPI (client )
138
+ return api .DeactivateCockpit (request )
139
+
140
+ },
141
+ }
142
+ }
143
+
96
144
func cockpitCockpitResetGrafana () * core.Command {
97
145
return & core.Command {
98
146
Short : `Reset Grafana` ,
0 commit comments