@@ -23,7 +23,9 @@ func GetGeneratedCommands() *core.Commands {
2323 cockpitCockpit (),
2424 cockpitToken (),
2525 cockpitGrafanaUser (),
26+ cockpitCockpitActivate (),
2627 cockpitCockpitGet (),
28+ cockpitCockpitDeactivate (),
2729 cockpitCockpitResetGrafana (),
2830 cockpitTokenCreate (),
2931 cockpitTokenList (),
@@ -70,6 +72,29 @@ func cockpitGrafanaUser() *core.Command {
7072 }
7173}
7274
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+
7398func cockpitCockpitGet () * core.Command {
7499 return & core.Command {
75100 Short : `Get cockpit` ,
@@ -93,6 +118,29 @@ func cockpitCockpitGet() *core.Command {
93118 }
94119}
95120
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+
96144func cockpitCockpitResetGrafana () * core.Command {
97145 return & core.Command {
98146 Short : `Reset Grafana` ,
0 commit comments