github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/apigw/v2/domain/Delete.go (about)

     1  package domain
     2  
     3  import (
     4  	golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
     5  )
     6  
     7  type DeleteOpts struct {
     8  	GatewayID string
     9  	GroupID   string
    10  	DomainID  string
    11  }
    12  
    13  func Delete(client *golangsdk.ServiceClient, opts DeleteOpts) (err error) {
    14  	// DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}
    15  	_, err = client.Delete(client.ServiceURL("apigw", "instances", opts.GatewayID, "api-groups", opts.GroupID, "domains", opts.DomainID), nil)
    16  	return
    17  }