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

     1  /*
     2   Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
     3  */
     4  
     5  package premium_instances
     6  
     7  import "github.com/huaweicloud/golangsdk"
     8  
     9  const (
    10  	resourcePath = "instance"
    11  )
    12  
    13  func rootURL(c *golangsdk.ServiceClient) string {
    14  	return c.ServiceURL(resourcePath)
    15  }
    16  
    17  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    18  	return c.ServiceURL(resourcePath, id)
    19  }