github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/ecs/v1/auto_recovery/results.go (about)

     1  package auto_recovery
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  type AutoRecovery struct {
     6  	SupportAutoRecovery string `json:"support_auto_recovery"`
     7  }
     8  
     9  type GetResult struct {
    10  	golangsdk.Result
    11  }
    12  
    13  func (r GetResult) Extract() (*AutoRecovery, error) {
    14  	s := &AutoRecovery{}
    15  	return s, r.ExtractInto(s)
    16  }