serverscreendumps.go 549 B

1234567891011121314151617181920212223
  1. package compute
  2. import (
  3. "yunion.io/x/jsonutils"
  4. "yunion.io/x/onecloud/cmd/climc/shell"
  5. modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
  6. "yunion.io/x/onecloud/pkg/mcclient/options"
  7. )
  8. type ServerScreenDumpListOptions struct {
  9. options.BaseListOptions
  10. Server string `help:"Id or name of server"`
  11. }
  12. func (o *ServerScreenDumpListOptions) Params() (jsonutils.JSONObject, error) {
  13. return jsonutils.Marshal(o), nil
  14. }
  15. func init() {
  16. cmd := shell.NewResourceCmd(&modules.ServerScreenDumps)
  17. cmd.List(new(ServerScreenDumpListOptions))
  18. }