github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/evs/v5/cloudvolumes/resullts.go (about)

     1  package cloudvolumes
     2  
     3  import (
     4  	"github.com/chnsz/golangsdk"
     5  )
     6  
     7  // JobResult contains the response body and error from UpdateQoS response
     8  type JobResult struct {
     9  	golangsdk.Result
    10  }
    11  
    12  // JobResponse contains all the information from UpdateQoS response
    13  type JobResponse struct {
    14  	JobID string `json:"job_id"`
    15  }
    16  
    17  // Extract will get the JobResponse object out of the JobResult
    18  func (r JobResult) Extract() (*JobResponse, error) {
    19  	job := new(JobResponse)
    20  	err := r.ExtractInto(job)
    21  	return job, err
    22  }