0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-08 14:55:02 +00:00
terraform-provider-proxmox/proxmox/cluster/sdn/vnets/client.go
MacherelR 58ff2ff240 feat(sdn)!: add SDN support for zones, vnets, subnets with validation and tests
BREAKING CHANGE: introduces sdn support.

Signed-off-by: MacherelR <64424331+MacherelR@users.noreply.github.com>
2025-06-24 08:31:40 +02:00

22 lines
454 B
Go

package vnets
import (
"fmt"
"github.com/bpg/terraform-provider-proxmox/proxmox/api"
)
// Client is a client for accessing the Proxmox SDN VNETs API.
type Client struct {
api.Client
}
// ExpandPath returns the API path for SDN VNETS.
func (c *Client) ExpandPath(path string) string {
return fmt.Sprintf("cluster/sdn/vnets/%s", path)
}
func (c *Client) ParentPath(parentId string) string {
return fmt.Sprintf("cluster/sdn/zones/%s", parentId)
}