github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/service_client_extension.go (about) 1 package golangsdk 2 3 import ( 4 "net/http" 5 ) 6 7 type ServiceClientExtension struct { 8 9 // ServiceClient is a reference to the ServiceClient. 10 *ServiceClient 11 12 // ProjectID is the ID of project to which User is authorized. 13 ProjectID string 14 } 15 16 // Delete calls `Request` with the "DELETE" HTTP verb. 17 func (client *ServiceClient) Delete2(url string, JSONResponse interface{}, opts *RequestOpts) (*http.Response, error) { 18 if opts == nil { 19 opts = new(RequestOpts) 20 } 21 client.initReqOpts(url, nil, JSONResponse, opts) 22 return client.Request("DELETE", url, opts) 23 }