github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/rds/v3/securities/results.go (about)

     1  package securities
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  type commonResult struct {
     6  	golangsdk.Result
     7  }
     8  
     9  // SSLUpdateResult represents a result of the ConfigureSSL method.
    10  type SSLUpdateResult struct {
    11  	golangsdk.ErrResult
    12  }
    13  
    14  // DBPortUpdateResult represents a result of the UpdateDBPort method.
    15  type DBPortUpdateResult struct {
    16  	commonResult
    17  }
    18  
    19  // SecGroupUpdateResult represents a result of the UpdateSecGroup method.
    20  type SecGroupUpdateResult struct {
    21  	commonResult
    22  }
    23  
    24  // WorkFlow is a struct that represents the result of database updation.
    25  type WorkFlow struct {
    26  	// Indicates the workflow ID.
    27  	WorkflowId string `json:"workflowId"`
    28  }
    29  
    30  func (r commonResult) Extract() (*WorkFlow, error) {
    31  	var s WorkFlow
    32  	err := r.ExtractInto(&s)
    33  	return &s, err
    34  }