github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/elb/healthcheck/results.go (about) 1 package healthcheck 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 ) 6 7 type HealthCheck struct { 8 HealthcheckInterval int `json:"healthcheck_interval"` 9 ListenerID string `json:"listener_id"` 10 ID string `json:"id"` 11 HealthcheckProtocol string `json:"healthcheck_protocol"` 12 UnhealthyThreshold int `json:"unhealthy_threshold"` 13 UpdateTime string `json:"update_time"` 14 CreateTime string `json:"create_time"` 15 HealthcheckConnectPort int `json:"healthcheck_connect_port"` 16 HealthcheckTimeout int `json:"healthcheck_timeout"` 17 HealthcheckUri string `json:"healthcheck_uri"` 18 HealthyThreshold int `json:"healthy_threshold"` 19 } 20 21 type commonResult struct { 22 golangsdk.Result 23 } 24 25 func (r commonResult) Extract() (*HealthCheck, error) { 26 s := &HealthCheck{} 27 return s, r.ExtractInto(s) 28 } 29 30 type CreateResult struct { 31 commonResult 32 } 33 34 // DeleteResult represents the result of a delete operation. 35 type DeleteResult struct { 36 golangsdk.ErrResult 37 } 38 39 // GetResult represents the result of a get operation. 40 type GetResult struct { 41 commonResult 42 } 43 44 type UpdateResult struct { 45 commonResult 46 }