github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/bms/v1/baremetalservers/results_order.go (about)

     1  package baremetalservers
     2  
     3  import (
     4  	"github.com/huaweicloud/golangsdk"
     5  )
     6  
     7  type OrderResponse struct {
     8  	OrderID string `json:"order_id"`
     9  	JobID   string `json:"job_id"`
    10  }
    11  
    12  type OrderResult struct {
    13  	golangsdk.Result
    14  }
    15  
    16  func (r OrderResult) ExtractOrderResponse() (*OrderResponse, error) {
    17  	order := new(OrderResponse)
    18  	err := r.ExtractInto(order)
    19  	return order, err
    20  }