github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/dcs/v1/maintainwindows/results.go (about) 1 package maintainwindows 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 ) 6 7 // GetResponse response 8 type GetResponse struct { 9 MaintainWindows []MaintainWindow `json:"maintain_windows"` 10 } 11 12 // MaintainWindow for dcs 13 type MaintainWindow struct { 14 ID int `json:"seq"` 15 Begin string `json:"begin"` 16 End string `json:"end"` 17 Default bool `json:"default"` 18 } 19 20 // GetResult contains the body of getting detailed 21 type GetResult struct { 22 golangsdk.Result 23 } 24 25 // Extract from GetResult 26 func (r GetResult) Extract() (*GetResponse, error) { 27 var s GetResponse 28 err := r.Result.ExtractInto(&s) 29 return &s, err 30 }