File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,13 @@ const (
30
30
31
31
// TagNetwork adds tags to a network by network id.
32
32
func (c * client ) AddNetworkTags (networkId string , tags map [string ]string ) error {
33
- // https://cloudstack.apache.org/api/apidocs-4.16/apis/createTags.html
34
33
p := c .cs .Resourcetags .NewCreateTagsParams ([]string {networkId }, resourceTypeNetwork , tags )
35
34
_ , err := c .cs .Resourcetags .CreateTags (p )
36
35
return err
37
36
}
38
37
39
38
// GetNetworkTags gets tags by network id.
40
39
func (c * client ) GetNetworkTags (networkId string ) (map [string ]string , error ) {
41
- // https://cloudstack.apache.org/api/apidocs-4.16/apis/listTags.html
42
40
p := c .cs .Resourcetags .NewListTagsParams ()
43
41
p .SetResourceid (networkId )
44
42
p .SetResourcetype (resourceTypeNetwork )
@@ -55,7 +53,6 @@ func (c *client) GetNetworkTags(networkId string) (map[string]string, error) {
55
53
56
54
// DeleteNetworkTags deletes matching tags from a network
57
55
func (c * client ) DeleteNetworkTags (networkId string , tagsToDelete map [string ]string ) error {
58
- // https://cloudstack.apache.org/api/apidocs-4.16/apis/deleteTags.html
59
56
p := c .cs .Resourcetags .NewDeleteTagsParams ([]string {networkId }, resourceTypeNetwork )
60
57
p .SetTags (tagsToDelete )
61
58
_ , err := c .cs .Resourcetags .DeleteTags (p )
You can’t perform that action at this time.
0 commit comments