zones

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSpec

type CreateSpec struct {
	Zone        string `json:"zone"`
	Description string `json:"description"`
}

CreateSpec https://developer.broadcom.com/xapis/vsphere-automation-api/latest/vcenter/data-structures/ConsumptionDomains_Zones_CreateSpec

type Manager

type Manager struct {
	*rest.Client
}

Manager extends rest.Client, adding vSphere Zone related methods.

func NewManager

func NewManager(client *rest.Client) *Manager

NewManager creates a new Manager instance with the given client.

func (*Manager) CreateZone

func (c *Manager) CreateZone(spec CreateSpec) (string, error)

CreateZone creates a vSphere Zone. Returns the identifier of the new zone and an error if the operation fails https://developer.broadcom.com/xapis/vsphere-automation-api/latest/vcenter/api/vcenter/consumption-domains/zones/post

func (*Manager) ListZones

func (c *Manager) ListZones() ([]ListItem, error)

ListZones returns the details of all vSphere Zones https://developer.broadcom.com/xapis/vsphere-automation-api/latest/vcenter/api/vcenter/consumption-domains/zones/get

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL