github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/waf_hw/v1/premium_domains/urls.go (about)

     1  /*
     2   Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
     3  */
     4  
     5  package premium_domains
     6  
     7  import "github.com/huaweicloud/golangsdk"
     8  
     9  func rootURL(c *golangsdk.ServiceClient) string {
    10  	return c.ServiceURL("host")
    11  }
    12  
    13  func resourceURL(c *golangsdk.ServiceClient, hostId string) string {
    14  	return c.ServiceURL("host", hostId)
    15  }
    16  
    17  func protectStatusURL(c *golangsdk.ServiceClient, hostId string) string {
    18  	return c.ServiceURL("host", hostId, "protect-status")
    19  }