Documentation ¶
Index ¶
- Constants
- Variables
- func New(edgeGatewayName string) (job *commoncloudavenue.JobStatus, err error)
- type Bandwidth
- type CAVVDC
- type CAVVDCs
- type CAVVirtualDataCenter
- func (v *CAVVirtualDataCenter) AddStorageProfile(storageProfile VDCStrorageProfile)
- func (v *CAVVirtualDataCenter) Delete() (job *commoncloudavenue.JobStatus, err error)
- func (v *CAVVirtualDataCenter) GetBillingModel() VDCBillingModel
- func (v *CAVVirtualDataCenter) GetCPUAllocated() int
- func (v *CAVVirtualDataCenter) GetDescription() string
- func (v *CAVVirtualDataCenter) GetDisponibilityClass() VDCDisponibilityClass
- func (v *CAVVirtualDataCenter) GetMemoryAllocated() int
- func (v *CAVVirtualDataCenter) GetName() string
- func (v *CAVVirtualDataCenter) GetServiceClass() VDCServiceClass
- func (v *CAVVirtualDataCenter) GetStorageBillingModel() VDCStorageBillingModel
- func (v *CAVVirtualDataCenter) GetStorageProfiles() []VDCStrorageProfile
- func (v *CAVVirtualDataCenter) GetVcpuInMhz2() int
- func (v *CAVVirtualDataCenter) GetVdcGroup() string
- func (v *CAVVirtualDataCenter) IsValid() (bool, error)
- func (v *CAVVirtualDataCenter) MarshalJSON() ([]byte, error)
- func (v *CAVVirtualDataCenter) RemoveStorageProfile(storageProfile VDCStrorageProfile)
- func (v *CAVVirtualDataCenter) SetCPUAllocated(cpuAllocated int)
- func (v *CAVVirtualDataCenter) SetDescription(description string)
- func (v *CAVVirtualDataCenter) SetMemoryAllocated(memoryAllocated int)
- func (v *CAVVirtualDataCenter) SetName(name string) error
- func (v *CAVVirtualDataCenter) Update() (err error)
- type CAVVirtualDataCenterVDC
- type ClassService
- type EdgeGateway
- func (v *EdgeGateway) GetAllowedBandwidthValues(t0VrfName string) (allowedValues []int, err error)
- func (v *EdgeGateway) GetByID(edgeGatewayID string) (response *EdgeGw, err error)
- func (v *EdgeGateway) GetByName(edgeGatewayName string) (response *EdgeGw, err error)
- func (v *EdgeGateway) List() (response *EdgeGateways, err error)
- func (v *EdgeGateway) New(vdcName, tier0VrfName string) (job *commoncloudavenue.JobStatus, err error)
- func (v *EdgeGateway) NewFromVDCGroup(vdcGroupName, tier0VrfName string) (job *commoncloudavenue.JobStatus, err error)
- type EdgeGateways
- type EdgeGw
- func (e *EdgeGw) Delete() (job *commoncloudavenue.JobStatus, err error)
- func (e *EdgeGw) GetBandwidth() Bandwidth
- func (e *EdgeGw) GetDescription() string
- func (e *EdgeGw) GetID() string
- func (e *EdgeGw) GetName() string
- func (e *EdgeGw) GetOwnerName() string
- func (e *EdgeGw) GetOwnerType() OwnerType
- func (e *EdgeGw) GetT0() string
- func (e *EdgeGw) GetTier0VrfID() string
- func (e *EdgeGw) ListNetworksType() (response *NetworkTypes, err error)
- func (e *EdgeGw) UpdateBandwidth(rateLimit int) (job *commoncloudavenue.JobStatus, err error)
- type GetVAppMachinesResponse
- type IP
- type IPs
- type InventoryClient
- type Machine
- func (m *Machine) GetAdditionalData() string
- func (m *Machine) GetCatalogName() string
- func (m *Machine) GetCreatedDateTime() time.Time
- func (m *Machine) GetCustomerCode() string
- func (m *Machine) GetDisplayName() string
- func (m *Machine) GetHardware() string
- func (m *Machine) GetID() int
- func (m *Machine) GetIDPtr() *int
- func (m *Machine) GetImportSource() string
- func (m *Machine) GetIsDeletedFromImportSource() bool
- func (m *Machine) GetIsInVCloud() bool
- func (m *Machine) GetIsSyncingNetBackupData() bool
- func (m *Machine) GetIsVisibleToAllUsers() bool
- func (m *Machine) GetLastSuccessfulBackupDate() time.Time
- func (m *Machine) GetLastUpdatedDateTime() time.Time
- func (m *Machine) GetLocation() string
- func (m *Machine) GetMachineCode() string
- func (m *Machine) GetName() string
- func (m *Machine) GetNetBackupClientName() string
- func (m *Machine) GetOs() string
- func (m *Machine) GetPolicyAppendix() string
- func (m *Machine) GetProtectionLevelAvailableByID(id int) (resp *ProtectionLevel, err error)
- func (m *Machine) GetProtectionLevelAvailableByName(name string) (resp *ProtectionLevel, err error)
- func (m *Machine) GetProtectionTypeID() int
- func (m *Machine) GetProtectionTypeName() string
- func (m *Machine) GetProviderAssetType() string
- func (m *Machine) GetSyncLastError() string
- func (m *Machine) GetTrafficLightStatus() string
- func (m *Machine) GetVAppID() int
- func (m *Machine) GetVMDisplayName() string
- func (m *Machine) ListProtectionLevels() (resp *ProtectionLevels, err error)
- func (m *Machine) ListProtectionLevelsAvailable() (resp *ProtectionLevels, err error)
- func (m *Machine) Protect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
- func (m *Machine) Unprotect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
- type MachineClient
- func (m *MachineClient) GetMachineByID(id int) (resp *Machine, err error)
- func (m *MachineClient) GetMachineByIdentifier(identifier string) (resp *Machine, err error)
- func (m *MachineClient) GetMachineByName(name string) (resp *Machine, err error)
- func (m *MachineClient) GetMachineByNameOrIdentifier(nameOrIdentifier string) (resp *Machine, err error)
- func (m *MachineClient) GetMachines() (resp *Machines, err error)
- type Machines
- type Netbackup
- type NetworkType
- type NetworkTypes
- type Org
- type Orgs
- type OwnerType
- type ProtectUnprotectRequest
- type ProtectionLevel
- func (r *ProtectionLevel) GetCode() string
- func (r *ProtectionLevel) GetColor() string
- func (r *ProtectionLevel) GetDescription() string
- func (r *ProtectionLevel) GetID() int
- func (r *ProtectionLevel) GetIsBackupNow() bool
- func (r *ProtectionLevel) GetIsManaged() bool
- func (r *ProtectionLevel) GetIsVisible() bool
- func (r *ProtectionLevel) GetName() string
- func (r *ProtectionLevel) GetProtectionTypeID() int
- func (r *ProtectionLevel) GetRequestTypeCode() string
- func (r *ProtectionLevel) GetSequence() int
- func (r *ProtectionLevel) GetSupportsFileProtect() bool
- func (r *ProtectionLevel) GetSupportsSingleClientBackupNow() bool
- type ProtectionLevelClient
- type ProtectionLevels
- type PublicIP
- type T0
- type T0Service
- type T0Services
- type T0s
- type Tier0
- type TypeOfNetwork
- type V1
- type VApp
- func (vApp *VApp) GetID() int
- func (vApp *VApp) GetIDPtr() *int
- func (vApp *VApp) GetIdentifier() string
- func (vApp *VApp) GetName() string
- func (vApp *VApp) GetProtectionLevelAvailableByID(id int) (resp *ProtectionLevel, err error)
- func (vApp *VApp) GetProtectionLevelAvailableByName(name string) (resp *ProtectionLevel, err error)
- func (vApp *VApp) GetProtectionTypeID() int
- func (vApp *VApp) ListProtectionLevels() (resp *ProtectionLevels, err error)
- func (vApp *VApp) ListProtectionLevelsAvailable() (resp *ProtectionLevels, err error)
- func (vApp *VApp) Protect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
- func (vApp *VApp) Unprotect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
- type VApps
- type VCDA
- type VCloudClient
- func (v *VCloudClient) GetOrg(id int) (resp *Org, err error)
- func (v *VCloudClient) GetOrgByName(name string) (resp *Org, err error)
- func (v *VCloudClient) GetOrgs() (resp *Orgs, err error)
- func (v *VCloudClient) GetVAppByID(id int) (resp *VApp, err error)
- func (v *VCloudClient) GetVAppByIdentifier(identifier string) (resp *VApp, err error)
- func (v *VCloudClient) GetVAppByName(name string) (resp *VApp, err error)
- func (v *VCloudClient) GetVAppByNameOrIdentifier(nameOrIdentifier string) (resp *VApp, err error)
- func (v *VCloudClient) GetVAppMachines(vAppID int) (resp *GetVAppMachinesResponse, err error)
- func (v *VCloudClient) GetVApps() (resp *VApps, err error)
- func (v *VCloudClient) GetVdcByID(id int) (resp *VDC, err error)
- func (v *VCloudClient) GetVdcByIdentifier(identifier string) (resp *VDC, err error)
- func (v *VCloudClient) GetVdcByName(name string) (resp *VDC, err error)
- func (v *VCloudClient) GetVdcByNameOrIdentifier(nameOrIdentifier string) (resp *VDC, err error)
- func (v *VCloudClient) GetVdcs() (resp *VDCs, err error)
- func (v *VCloudClient) GetVdcsByOrgID(orgID int) (resp *VDCs, err error)
- type VDC
- func (vdc *VDC) GetID() int
- func (vdc *VDC) GetIDPtr() *int
- func (vdc *VDC) GetIdentifier() string
- func (vdc *VDC) GetName() string
- func (vdc *VDC) GetProtectionLevelAvailableByID(id int) (resp *ProtectionLevel, err error)
- func (vdc *VDC) GetProtectionLevelAvailableByName(name string) (resp *ProtectionLevel, err error)
- func (vdc *VDC) GetProtectionTypeID() int
- func (vdc *VDC) GetVOrgID() int
- func (vdc *VDC) ListProtectionLevels() (resp *ProtectionLevels, err error)
- func (vdc *VDC) ListProtectionLevelsAvailable() (resp *ProtectionLevels, err error)
- func (vdc *VDC) Protect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
- func (vdc *VDC) Unprotect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
- type VDCAIP
- type VDCAIps
- type VDCBillingModel
- type VDCDisponibilityClass
- type VDCServiceClass
- type VDCStorageBillingModel
- type VDCStrorageProfile
- type VDCStrorageProfileClass
- type VDCs
Constants ¶
const ( // VDCBillingModelPayAsYouGo - Pay as you go VDCBillingModelPayAsYouGo VDCBillingModel = "PAYG" // VDCBillingModelReserved - Reserved VDCBillingModelReserved VDCBillingModel = "RESERVED" // VDCBillingModelDraas - DRaaS VDCBillingModelDraas VDCBillingModel = "DRAAS" // VDCServiceClassStandard - Standard VDCServiceClassStandard VDCServiceClass = "STD" // VDCServiceClassEco - Eco VDCServiceClassEco VDCServiceClass = "ECO" // VDCServiceClassHP - HP VDCServiceClassHP VDCServiceClass = "HP" // VDCServiceClassVoIP - VoIP VDCServiceClassVoIP VDCServiceClass = "VOIP" // VDCDisponibilityClassOneRoom - One Room VDCDisponibilityClassOneRoom VDCDisponibilityClass = "ONE-ROOM" // VDCDisponibilityClassDualRoom - Dual Room VDCDisponibilityClassDualRoom VDCDisponibilityClass = "DUAL-ROOM" // VDCDisponibilityClassHADualRoom - HA Dual Room VDCDisponibilityClassHADualRoom VDCDisponibilityClass = "HA-DUAL-ROOM" // VDCStorageBillingModelPayAsYouGo - Pay as you go VDCStorageBillingModelPayAsYouGo VDCStorageBillingModel = "PAYG" // VDCStorageBillingModelReserved - Reserved VDCStorageBillingModelReserved VDCStorageBillingModel = "RESERVED" // VDCStrorageProfileClassSilver - Silver VDCStrorageProfileClassSilver VDCStrorageProfileClass = "silver" // VDCStrorageProfileClassSilverR1 - Silver R1 VDCStrorageProfileClassSilverR1 VDCStrorageProfileClass = "silver_r1" // VDCStrorageProfileClassSilverR2 - Silver R2 VDCStrorageProfileClassSilverR2 VDCStrorageProfileClass = "silver_r2" // VDCStrorageProfileClassGold - Gold VDCStrorageProfileClassGold VDCStrorageProfileClass = "gold" // VDCStrorageProfileClassGoldR1 - Gold R1 VDCStrorageProfileClassGoldR1 VDCStrorageProfileClass = "gold_r1" // VDCStrorageProfileClassGoldR2 - Gold R2 VDCStrorageProfileClassGoldR2 VDCStrorageProfileClass = "gold_r2" // VDCStrorageProfileClassGoldHm - Gold HM VDCStrorageProfileClassGoldHm VDCStrorageProfileClass = "gold_hm" // VDCStrorageProfileClassPlatinum3k - Platinum 3k VDCStrorageProfileClassPlatinum3k VDCStrorageProfileClass = "platinum3k" // VDCStrorageProfileClassPlatinum3kR1 - Platinum 3k R1 VDCStrorageProfileClassPlatinum3kR1 VDCStrorageProfileClass = "platinum3k_r1" // VDCStrorageProfileClassPlatinum3kR2 - Platinum 3k R2 VDCStrorageProfileClassPlatinum3kR2 VDCStrorageProfileClass = "platinum3k_r2" // VDCStrorageProfileClassPlatinum3kHm - Platinum 3k HM VDCStrorageProfileClassPlatinum3kHm VDCStrorageProfileClass = "platinum3k_hm" // VDCStrorageProfileClassPlatinum7k - Platinum 7k VDCStrorageProfileClassPlatinum7k VDCStrorageProfileClass = "platinum7k" // VDCStrorageProfileClassPlatinum7kR1 - Platinum 7k R1 VDCStrorageProfileClassPlatinum7kR1 VDCStrorageProfileClass = "platinum7k_r1" // VDCStrorageProfileClassPlatinum7kR2 - Platinum 7k R2 VDCStrorageProfileClassPlatinum7kR2 VDCStrorageProfileClass = "platinum7k_r2" // VDCStrorageProfileClassPlatinum7kHm - Platinum 7k HM VDCStrorageProfileClassPlatinum7kHm VDCStrorageProfileClass = "platinum7k_hm" )
Variables ¶
var ( ErrVDCServiceClass = fmt.Errorf("invalid service class value (Allowed values: %s, %s, %s, %s)", VDCServiceClassStandard, VDCServiceClassEco, VDCServiceClassHP, VDCServiceClassVoIP) ErrVDCBillingModel = fmt.Errorf("invalid billing model value (Allowed values: %s, %s, %s)", VDCBillingModelPayAsYouGo, VDCBillingModelReserved, VDCBillingModelDraas) ErrVDCDisponibilityClass = fmt.Errorf("invalid disponibility class value (Allowed values: %s, %s, %s)", VDCDisponibilityClassOneRoom, VDCDisponibilityClassDualRoom, VDCDisponibilityClassHADualRoom) ErrVDCStorageBillingModel = fmt.Errorf("invalid storage billing model value (Allowed values: %s, %s)", VDCStorageBillingModelPayAsYouGo, VDCStorageBillingModelReserved) ErrVDCStrorageProfileClass = fmt.Errorf("invalid storage profile class value (Allowed values: %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", VDCStrorageProfileClassSilver, VDCStrorageProfileClassSilverR1, VDCStrorageProfileClassSilverR2, VDCStrorageProfileClassGold, VDCStrorageProfileClassGoldR1, VDCStrorageProfileClassGoldR2, VDCStrorageProfileClassGoldHm, VDCStrorageProfileClassPlatinum3k, VDCStrorageProfileClassPlatinum3kR1, VDCStrorageProfileClassPlatinum3kR2, VDCStrorageProfileClassPlatinum3kHm, VDCStrorageProfileClassPlatinum7k, VDCStrorageProfileClassPlatinum7kR1, VDCStrorageProfileClassPlatinum7kR2, VDCStrorageProfileClassPlatinum7kHm) )
Functions ¶
Types ¶
type CAVVDC ¶
type CAVVDC struct{}
func (*CAVVDC) Get ¶
func (v *CAVVDC) Get(vdcName string) (*CAVVirtualDataCenter, error)
Get VDC - Return the VDC Object
func (*CAVVDC) New ¶
func (v *CAVVDC) New(value *CAVVirtualDataCenter) (vdc *CAVVirtualDataCenter, err error)
New - Create a new VDC
type CAVVDCs ¶
type CAVVDCs []CAVVirtualDataCenter
type CAVVirtualDataCenter ¶
type CAVVirtualDataCenter struct { VdcGroup string `json:"vdcGroup,omitempty"` Vdc CAVVirtualDataCenterVDC `json:"vdc"` }
func (*CAVVirtualDataCenter) AddStorageProfile ¶
func (v *CAVVirtualDataCenter) AddStorageProfile(storageProfile VDCStrorageProfile)
AddStorageProfile - Add a storage profile
func (*CAVVirtualDataCenter) Delete ¶
func (v *CAVVirtualDataCenter) Delete() (job *commoncloudavenue.JobStatus, err error)
Delete - Delete the VDC
func (*CAVVirtualDataCenter) GetBillingModel ¶
func (v *CAVVirtualDataCenter) GetBillingModel() VDCBillingModel
GetBillingModel - Return the VDC billing model
func (*CAVVirtualDataCenter) GetCPUAllocated ¶
func (v *CAVVirtualDataCenter) GetCPUAllocated() int
GetCPUAllocated - Return the VDC cpu allocated
func (*CAVVirtualDataCenter) GetDescription ¶
func (v *CAVVirtualDataCenter) GetDescription() string
GetDescription - Return the VDC description
func (*CAVVirtualDataCenter) GetDisponibilityClass ¶
func (v *CAVVirtualDataCenter) GetDisponibilityClass() VDCDisponibilityClass
GetDisponibilityClass - Return the VDC disponibility class
func (*CAVVirtualDataCenter) GetMemoryAllocated ¶
func (v *CAVVirtualDataCenter) GetMemoryAllocated() int
GetMemoryAllocated - Return the VDC memory allocated
func (*CAVVirtualDataCenter) GetName ¶
func (v *CAVVirtualDataCenter) GetName() string
GetName - Return the VDC name
func (*CAVVirtualDataCenter) GetServiceClass ¶
func (v *CAVVirtualDataCenter) GetServiceClass() VDCServiceClass
GetServiceClass - Return the VDC service class
func (*CAVVirtualDataCenter) GetStorageBillingModel ¶
func (v *CAVVirtualDataCenter) GetStorageBillingModel() VDCStorageBillingModel
GetStorageBillingModel - Return the VDC storage billing model
func (*CAVVirtualDataCenter) GetStorageProfiles ¶
func (v *CAVVirtualDataCenter) GetStorageProfiles() []VDCStrorageProfile
GetStorageProfiles - Return the VDC storage profiles
func (*CAVVirtualDataCenter) GetVcpuInMhz2 ¶
func (v *CAVVirtualDataCenter) GetVcpuInMhz2() int
GetVcpuInMhz2 - Return the VDC vcpu in mhz2
func (*CAVVirtualDataCenter) GetVdcGroup ¶
func (v *CAVVirtualDataCenter) GetVdcGroup() string
GetVdcGroup - Return the VDC vdc group
func (*CAVVirtualDataCenter) IsValid ¶
func (v *CAVVirtualDataCenter) IsValid() (bool, error)
IsValid - Check if everythings is valid
func (*CAVVirtualDataCenter) MarshalJSON ¶
func (v *CAVVirtualDataCenter) MarshalJSON() ([]byte, error)
MarshalJSON - Marshal the VDC
func (*CAVVirtualDataCenter) RemoveStorageProfile ¶
func (v *CAVVirtualDataCenter) RemoveStorageProfile(storageProfile VDCStrorageProfile)
RemoveStorageProfile - Remove a storage profile
func (*CAVVirtualDataCenter) SetCPUAllocated ¶
func (v *CAVVirtualDataCenter) SetCPUAllocated(cpuAllocated int)
SetCPUAllocated - Set the VDC cpu allocated
func (*CAVVirtualDataCenter) SetDescription ¶
func (v *CAVVirtualDataCenter) SetDescription(description string)
SetDescription - Set the VDC description
func (*CAVVirtualDataCenter) SetMemoryAllocated ¶
func (v *CAVVirtualDataCenter) SetMemoryAllocated(memoryAllocated int)
SetMemoryAllocated - Set the VDC memory allocated
func (*CAVVirtualDataCenter) SetName ¶
func (v *CAVVirtualDataCenter) SetName(name string) error
SetName - Set the VDC name Name respects the following regex: ^[a-zA-Z0-9-_]{1,64}$
func (*CAVVirtualDataCenter) Update ¶
func (v *CAVVirtualDataCenter) Update() (err error)
Update - Update the VDC
type CAVVirtualDataCenterVDC ¶
type CAVVirtualDataCenterVDC struct { Name string `json:"name"` Description string `json:"description"` ServiceClass VDCServiceClass `json:"vdcServiceClass"` DisponibilityClass VDCDisponibilityClass `json:"vdcDisponibilityClass"` BillingModel VDCBillingModel `json:"vdcBillingModel"` VcpuInMhz2 int `json:"vcpuInMhz2"` CPUAllocated int `json:"cpuAllocated"` MemoryAllocated int `json:"memoryAllocated"` StorageBillingModel VDCStorageBillingModel `json:"vdcStorageBillingModel"` StorageProfiles []VDCStrorageProfile `json:"vdcStorageProfiles,omitempty"` }
type ClassService ¶
type ClassService string
const ( // ClassServiceVRFStandard - VRF Standard ClassServiceVRFStandard ClassService = "VRF_STANDARD" // ClassServiceVRFPremium - VRF Premium ClassServiceVRFPremium ClassService = "VRF_PREMIUM" )
func (ClassService) IsVRFPremium ¶
func (c ClassService) IsVRFPremium() bool
IsVRFPremium - Returns true if the ClassService is VRFPremium
func (ClassService) IsVRFStandard ¶
func (c ClassService) IsVRFStandard() bool
IsVRFStandard - Returns true if the ClassService is VRFStandard
type EdgeGateway ¶
type EdgeGateway struct{}
func (*EdgeGateway) GetAllowedBandwidthValues ¶
func (v *EdgeGateway) GetAllowedBandwidthValues(t0VrfName string) (allowedValues []int, err error)
GetAllowedBandwidthValues - Returns the allowed rate limit value
func (*EdgeGateway) GetByID ¶
func (v *EdgeGateway) GetByID(edgeGatewayID string) (response *EdgeGw, err error)
GetByID - Returns the edge gateway ID ID format is UUID
func (*EdgeGateway) GetByName ¶
func (v *EdgeGateway) GetByName(edgeGatewayName string) (response *EdgeGw, err error)
Get - Returns the edge gateway
func (*EdgeGateway) List ¶
func (v *EdgeGateway) List() (response *EdgeGateways, err error)
List - Returns the list of edge gateways
func (*EdgeGateway) New ¶
func (v *EdgeGateway) New(vdcName, tier0VrfName string) (job *commoncloudavenue.JobStatus, err error)
New - Creates a new edge gateway
func (*EdgeGateway) NewFromVDCGroup ¶
func (v *EdgeGateway) NewFromVDCGroup(vdcGroupName, tier0VrfName string) (job *commoncloudavenue.JobStatus, err error)
NewFromVDCGroup - Creates a new edge gateway from a VDC Group
type EdgeGateways ¶
type EdgeGateways []EdgeGw
func (*EdgeGateways) GetBandwidthCapacityRemaining ¶
func (e *EdgeGateways) GetBandwidthCapacityRemaining(t0VrfName string) (response int, err error)
GetBandwidthCapacityRemaining - Returns the bandwidth capacity remaining in Mbps
type EdgeGw ¶
type EdgeGw struct { Tier0VrfName string `json:"tier0VrfId"` EdgeID string `json:"edgeId"` EdgeName string `json:"edgeName"` OwnerType OwnerType `json:"ownerType"` OwnerName string `json:"ownerName"` Description string `json:"description"` Bandwidth Bandwidth `json:"rateLimit"` }
func (*EdgeGw) Delete ¶
func (e *EdgeGw) Delete() (job *commoncloudavenue.JobStatus, err error)
Delete - Deletes the edge gateway
func (*EdgeGw) GetBandwidth ¶
GetBandwidth - Returns the rate limit
func (*EdgeGw) GetDescription ¶
GetDescription - Returns the Description
func (*EdgeGw) GetOwnerName ¶
GetOwnerName - Returns the OwnerName
func (*EdgeGw) GetOwnerType ¶
GetOwnerType - Returns the OwnerType
func (*EdgeGw) GetTier0VrfID ¶
GetTier0VrfID - Returns the Tier0VrfID
func (*EdgeGw) ListNetworksType ¶
func (e *EdgeGw) ListNetworksType() (response *NetworkTypes, err error)
ListNetworksType - Returns the list of networks by type configured on the edge gateway
func (*EdgeGw) UpdateBandwidth ¶
func (e *EdgeGw) UpdateBandwidth(rateLimit int) (job *commoncloudavenue.JobStatus, err error)
UpdateBandwidth - Updates the bandwidth
type GetVAppMachinesResponse ¶
type GetVAppMachinesResponse struct { Data []struct { IsVisibleToAllUsers bool `json:"IsVisibleToAllUsers,omitempty"` NetBackupClientName string `json:"NetBackupClientName,omitempty"` LastUpdatedDateTime time.Time `json:"LastUpdatedDateTime,omitempty"` MachineCode string `json:"MachineCode,omitempty"` DisplayName string `json:"DisplayName,omitempty"` ProtectionTypeName string `json:"ProtectionTypeName,omitempty"` Hardware string `json:"Hardware,omitempty"` TrafficLightStatus string `json:"TrafficLightStatus,omitempty"` IsSyncingNetBackupData bool `json:"IsSyncingNetBackupData,omitempty"` PolicyAppendix string `json:"PolicyAppendix,omitempty"` AdditionalData string `json:"AdditionalData,omitempty"` Os string `json:"OS,omitempty"` ImportSource string `json:"ImportSource,omitempty"` CustomerCode string `json:"CustomerCode,omitempty"` ProviderAssetType string `json:"ProviderAssetType,omitempty"` IsDeletedFromImportSource bool `json:"IsDeletedFromImportSource,omitempty"` VAppID int `json:"VAppId,omitempty"` LastSuccessfulBackupDate time.Time `json:"LastSuccessfulBackupDate,omitempty"` SyncLastError string `json:"SyncLastError,omitempty"` ProtectionTypeID int `json:"ProtectionTypeId,omitempty"` IsInVCloud bool `json:"IsInVCloud,omitempty"` Links []struct { Rel string `json:"Rel,omitempty"` Href string `json:"Href,omitempty"` Method string `json:"Method,omitempty"` } `json:"Links,omitempty"` CatalogName string `json:"CatalogName,omitempty"` ID int `json:"Id,omitempty"` VMDisplayName string `json:"VMDisplayName,omitempty"` CreatedDateTime time.Time `json:"CreatedDateTime,omitempty"` Location string `json:"Location,omitempty"` } `json:"Data,omitempty"` }
GetVAppMachinesResponse - Is the response structure for the GetVAppMachines API
type IP ¶
type IP struct { UplinkIP string `json:"uplinkIp"` TranslatedIP string `json:"translatedIp"` EdgeGatewayName string `json:"edgeGatewayName"` }
type InventoryClient ¶
type InventoryClient struct{}
func (*InventoryClient) Refresh ¶
func (i *InventoryClient) Refresh() (job *commonnetbackup.JobAPIResponse, err error)
Refresh refreshes the inventory.
type Machine ¶
type Machine struct { IsVisibleToAllUsers bool `json:"IsVisibleToAllUsers,omitempty"` NetBackupClientName string `json:"NetBackupClientName,omitempty"` LastUpdatedDateTime time.Time `json:"LastUpdatedDateTime,omitempty"` MachineCode string `json:"MachineCode,omitempty"` // Is a URN in the form of urn:vcloud:vm:xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx DisplayName string `json:"DisplayName,omitempty"` ProtectionTypeName string `json:"ProtectionTypeName,omitempty"` Hardware string `json:"Hardware,omitempty"` TrafficLightStatus string `json:"TrafficLightStatus,omitempty"` IsSyncingNetBackupData bool `json:"IsSyncingNetBackupData,omitempty"` PolicyAppendix string `json:"PolicyAppendix,omitempty"` AdditionalData string `json:"AdditionalData,omitempty"` Os string `json:"OS,omitempty"` ImportSource string `json:"ImportSource,omitempty"` CustomerCode string `json:"CustomerCode,omitempty"` // Is a Org Name ProviderAssetType string `json:"ProviderAssetType,omitempty"` IsDeletedFromImportSource bool `json:"IsDeletedFromImportSource,omitempty"` VAppID int `json:"VAppId,omitempty"` LastSuccessfulBackupDate time.Time `json:"LastSuccessfulBackupDate,omitempty"` SyncLastError string `json:"SyncLastError,omitempty"` ProtectionTypeID int `json:"ProtectionTypeId,omitempty"` IsInVCloud bool `json:"IsInVCloud,omitempty"` CatalogName string `json:"CatalogName,omitempty"` ID int `json:"Id,omitempty"` VMDisplayName string `json:"VMDisplayName,omitempty"` // Is a VM Name with suffix "-Random4Letters/Numbers" (e.g. "demo-4f5a") CreatedDateTime time.Time `json:"CreatedDateTime,omitempty"` Location string `json:"Location,omitempty"` }
Machine - Is the response structure for the Machines APIs
func (*Machine) GetAdditionalData ¶
GetAdditionalData returns the AdditionalData field of Machine
func (*Machine) GetCatalogName ¶
GetCatalogName returns the CatalogName field of Machine
func (*Machine) GetCreatedDateTime ¶
GetCreatedDateTime returns the CreatedDateTime field of Machine
func (*Machine) GetCustomerCode ¶
GetCustomerCode returns the CustomerCode field of Machine
func (*Machine) GetDisplayName ¶
GetDisplayName returns the DisplayName field of Machine
func (*Machine) GetHardware ¶
GetHardware returns the Hardware field of Machine
func (*Machine) GetImportSource ¶
GetImportSource returns the ImportSource field of Machine
func (*Machine) GetIsDeletedFromImportSource ¶
GetIsDeletedFromImportSource returns the IsDeletedFromImportSource field of Machine
func (*Machine) GetIsInVCloud ¶
GetIsInVCloud returns the IsInVCloud field of Machine
func (*Machine) GetIsSyncingNetBackupData ¶
GetIsSyncingNetBackupData returns the IsSyncingNetBackupData field of Machine
func (*Machine) GetIsVisibleToAllUsers ¶
GetIsVisibleToAllUsers returns the IsVisibleToAllUsers field of Machine
func (*Machine) GetLastSuccessfulBackupDate ¶
GetLastSuccessfulBackupDate returns the LastSuccessfulBackupDate field of Machine
func (*Machine) GetLastUpdatedDateTime ¶
GetLastUpdatedDateTime returns the LastUpdatedDateTime field of Machine
func (*Machine) GetLocation ¶
GetLocation returns the Location field of Machine
func (*Machine) GetMachineCode ¶
GetMachineCode returns the MachineCode field of Machine
func (*Machine) GetNetBackupClientName ¶
GetNetBackupClientName returns the NetBackupClientName field of Machine
func (*Machine) GetPolicyAppendix ¶
GetPolicyAppendix returns the PolicyAppendix field of Machine
func (*Machine) GetProtectionLevelAvailableByID ¶
func (m *Machine) GetProtectionLevelAvailableByID(id int) (resp *ProtectionLevel, err error)
GetProtectionLevelAvailableByID - Get a protection level available for a Machine by ID
func (*Machine) GetProtectionLevelAvailableByName ¶
func (m *Machine) GetProtectionLevelAvailableByName(name string) (resp *ProtectionLevel, err error)
GetProtectionLevelAvailableByName - Get a protection level available for a Machine by Name
func (*Machine) GetProtectionTypeID ¶
GetProtectionTypeID returns the ProtectionTypeID field of Machine
func (*Machine) GetProtectionTypeName ¶
GetProtectionTypeName returns the ProtectionTypeName field of Machine
func (*Machine) GetProviderAssetType ¶
GetProviderAssetType returns the ProviderAssetType field of Machine
func (*Machine) GetSyncLastError ¶
GetSyncLastError returns the SyncLastError field of Machine
func (*Machine) GetTrafficLightStatus ¶
GetTrafficLightStatus returns the TrafficLightStatus field of Machine
func (*Machine) GetVMDisplayName ¶
GetVMDisplayName returns the VMDisplayName field of Machine
func (*Machine) ListProtectionLevels ¶
func (m *Machine) ListProtectionLevels() (resp *ProtectionLevels, err error)
ListProtectionLevels - List the protection levels applied to a Machine
func (*Machine) ListProtectionLevelsAvailable ¶
func (m *Machine) ListProtectionLevelsAvailable() (resp *ProtectionLevels, err error)
ListProtectionLevelsAvailable - List the protection levels available for a Machine
func (*Machine) Protect ¶
func (m *Machine) Protect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
Protect - Protect a Machine
func (*Machine) Unprotect ¶
func (m *Machine) Unprotect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
Unprotect - Unprotect a Machine
type MachineClient ¶
type MachineClient struct{}
func (*MachineClient) GetMachineByID ¶
func (m *MachineClient) GetMachineByID(id int) (resp *Machine, err error)
GetMachineByID - Get a NetBackup Machine by ID
func (*MachineClient) GetMachineByIdentifier ¶
func (m *MachineClient) GetMachineByIdentifier(identifier string) (resp *Machine, err error)
GetMachineByIdentifier - Get a NetBackup Machine by Identifier
func (*MachineClient) GetMachineByName ¶
func (m *MachineClient) GetMachineByName(name string) (resp *Machine, err error)
GetMachineByName - Get a NetBackup Machine by Name
func (*MachineClient) GetMachineByNameOrIdentifier ¶
func (m *MachineClient) GetMachineByNameOrIdentifier(nameOrIdentifier string) (resp *Machine, err error)
GetMachineByNameOrIdentifier - Get a NetBackup Machine by Name or Identifier
func (*MachineClient) GetMachines ¶
func (m *MachineClient) GetMachines() (resp *Machines, err error)
GetMachines - Get a list of NetBackup Machines
type Machines ¶
type Machines []Machine
* Machines Machines - Is the response structure for the GetMachines API
type Netbackup ¶
type Netbackup struct { VCloud VCloudClient ProtectionLevel ProtectionLevelClient Machines MachineClient Inventory InventoryClient }
type NetworkType ¶
type NetworkType struct { Type TypeOfNetwork `json:"networkType"` PrefixLength int `json:"prefixLength"` StartAddress string `json:"startAddress"` }
func (NetworkType) GetEndAddress ¶
func (n NetworkType) GetEndAddress() string
GetEndAddress - Returns the EndAddress
func (NetworkType) GetPrefixLength ¶
func (n NetworkType) GetPrefixLength() int
GetPrefixLength - Returns the PrefixLength
func (NetworkType) GetStartAddress ¶
func (n NetworkType) GetStartAddress() string
GetStartAddress - Returns the StartAddress
func (NetworkType) IsServiceZone ¶
func (n NetworkType) IsServiceZone() bool
IsServiceZone - Returns true if the network type is ServiceZone
type NetworkTypes ¶
type NetworkTypes []NetworkType
type Org ¶
type Org struct { ID int `json:"Id"` Name string `json:"Name"` DisplayName string `json:"DisplayName"` CustomerCode string `json:"CustomerCode"` ImportSource string `json:"ImportSource"` Location string `json:"Location"` }
func (*Org) GetCustomerCode ¶
GetCustomerCode returns the CustomerCode field of Org
func (*Org) GetDisplayName ¶
GetDisplayName returns the DisplayName field of Org
func (*Org) GetImportSource ¶
GetImportSource returns the ImportSource field of Org
func (*Org) GetLocation ¶
GetLocation returns the Location field of Org
type OwnerType ¶
type OwnerType string
const (
OwnerVDC OwnerType = "vdc"
)
func (OwnerType) IsVDCGROUP ¶
IsVDCGROUP - Returns true if the owner type is VDCGROUP
type ProtectUnprotectRequest ¶
type ProtectUnprotectRequest struct { // One of the following protection level settings must be specified // The ID of the protection level in the netbackup system ProtectionLevelID *int // Optional if ProtectionLevelName is specified // The name of the protection level in the netbackup system ProtectionLevelName string // Optional if ProtectionLevelID is specified }
ProtectUnprotectRequest - Is the request structure for the Protects and Unprotects APIs
type ProtectionLevel ¶
type ProtectionLevel struct { ID int `json:"Id,omitempty"` ProtectionTypeID int `json:"ProtectionTypeId,omitempty"` Name string `json:"Name,omitempty"` Code string `json:"Code,omitempty"` Description string `json:"Description,omitempty"` Sequence int `json:"Sequence,omitempty"` Color string `json:"Color,omitempty"` RequestTypeCode string `json:"RequestTypeCode,omitempty"` IsVisible bool `json:"IsVisible,omitempty"` IsBackupNow bool `json:"IsBackupNow,omitempty"` IsManaged bool `json:"IsManaged,omitempty"` SupportsFileProtect bool `json:"SupportsFileProtect,omitempty"` SupportsSingleClientBackupNow bool `json:"SupportsSingleClientBackupNow,omitempty"` }
func (*ProtectionLevel) GetCode ¶
func (r *ProtectionLevel) GetCode() string
GetCode returns the Code field of ProtectionLevel
func (*ProtectionLevel) GetColor ¶
func (r *ProtectionLevel) GetColor() string
GetColor returns the Color field of ProtectionLevel
func (*ProtectionLevel) GetDescription ¶
func (r *ProtectionLevel) GetDescription() string
GetDescription returns the Description field of ProtectionLevel
func (*ProtectionLevel) GetID ¶
func (r *ProtectionLevel) GetID() int
GetID returns the ID field of GetProtectionLevelResponse
func (*ProtectionLevel) GetIsBackupNow ¶
func (r *ProtectionLevel) GetIsBackupNow() bool
GetIsBackupNow returns the IsBackupNow field of ProtectionLevel
func (*ProtectionLevel) GetIsManaged ¶
func (r *ProtectionLevel) GetIsManaged() bool
GetIsManaged returns the IsManaged field of ProtectionLevel
func (*ProtectionLevel) GetIsVisible ¶
func (r *ProtectionLevel) GetIsVisible() bool
GetIsVisible returns the IsVisible field of ProtectionLevel
func (*ProtectionLevel) GetName ¶
func (r *ProtectionLevel) GetName() string
GetName returns the Name field of ProtectionLevel
func (*ProtectionLevel) GetProtectionTypeID ¶
func (r *ProtectionLevel) GetProtectionTypeID() int
GetProtectionTypeID returns the ProtectionTypeID field of ProtectionLevel
func (*ProtectionLevel) GetRequestTypeCode ¶
func (r *ProtectionLevel) GetRequestTypeCode() string
GetRequestTypeCode returns the RequestTypeCode field of ProtectionLevel
func (*ProtectionLevel) GetSequence ¶
func (r *ProtectionLevel) GetSequence() int
GetSequence returns the Sequence field of ProtectionLevel
func (*ProtectionLevel) GetSupportsFileProtect ¶
func (r *ProtectionLevel) GetSupportsFileProtect() bool
GetSupportsFileProtect returns the SupportsFileProtect field of ProtectionLevel
func (*ProtectionLevel) GetSupportsSingleClientBackupNow ¶
func (r *ProtectionLevel) GetSupportsSingleClientBackupNow() bool
GetSupportsSingleClientBackupNow returns the SupportsSingleClientBackupNow field of ProtectionLevel
type ProtectionLevelClient ¶
type ProtectionLevelClient struct{}
func (*ProtectionLevelClient) ListProtectionLevels ¶
func (p *ProtectionLevelClient) ListProtectionLevels(req listProtectionLevelsRequest) (resp *ProtectionLevels, err error)
ListProtectionLevels - Get a list of protection levels Use listProtectionLevelsRequest to specify the VAppID, VDCID or MachineID
type ProtectionLevels ¶
type ProtectionLevels []ProtectionLevel
type PublicIP ¶
type PublicIP struct{}
type T0 ¶
type T0 struct { Tier0Vrf string `json:"tier0_vrf"` Tier0Provider string `json:"tier0_provider"` Tier0ClassService string `json:"tier0_class_service"` ClassService ClassService `json:"class_service"` Services T0Services `json:"services"` }
func (*T0) GetBandwidthCapacity ¶
GetBandwidthCapacity - Returns the Bandwidth Capacity of the T0 in Mbps
func (*T0) GetClassService ¶
func (t *T0) GetClassService() ClassService
GetClassService - Returns the ClassService
func (*T0) GetTier0ClassService ¶
GetTier0ClassService - Returns the Tier0ClassService
func (*T0) GetTier0Provider ¶
GetTier0Provider - Returns the Tier0Provider
type T0Service ¶
func (*T0Service) GetService ¶
GetService - Returns the Service
type T0Services ¶
type T0Services []T0Service
type TypeOfNetwork ¶
type TypeOfNetwork string
const (
NetworkTypeServiceZone TypeOfNetwork = "sv"
)
type V1 ¶
type V1 struct { Netbackup Netbackup PublicIP PublicIP EdgeGateway EdgeGateway T0 Tier0 VDC CAVVDC }
type VApp ¶
type VApp struct { ID int `json:"Id,omitempty"` Identifier string `json:"Identifier,omitempty"` ProtectionTypeID int `json:"ProtectionTypeId,omitempty"` VDCID int `json:"VdcId,omitempty"` Name string `json:"Name,omitempty"` }
VApp - Is the response structure for the GetVApp API
func (*VApp) GetIdentifier ¶
GetIdentifier returns the Identifier field of VApp
func (*VApp) GetProtectionLevelAvailableByID ¶
func (vApp *VApp) GetProtectionLevelAvailableByID(id int) (resp *ProtectionLevel, err error)
GetProtectionLevelAvailableByID - Get a protection level by ID for a vCloud Director Virtual Application
func (*VApp) GetProtectionLevelAvailableByName ¶
func (vApp *VApp) GetProtectionLevelAvailableByName(name string) (resp *ProtectionLevel, err error)
GetProtectionLevelAvailableByName - Get a protection level by name for a vCloud Director Virtual Application
func (*VApp) GetProtectionTypeID ¶
GetProtectionTypeID returns the ProtectionTypeID field of VApp
func (*VApp) ListProtectionLevels ¶
func (vApp *VApp) ListProtectionLevels() (resp *ProtectionLevels, err error)
ListProtectionLevels - List the protection levels applied to a vCloud Director Virtual Application
func (*VApp) ListProtectionLevelsAvailable ¶
func (vApp *VApp) ListProtectionLevelsAvailable() (resp *ProtectionLevels, err error)
ListProtectionLevelsAvailable - List the protection levels available for a vCloud Director Virtual Application
func (*VApp) Protect ¶
func (vApp *VApp) Protect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
ProtectVApp - Protect a vCloud Director Virtual Application
func (*VApp) Unprotect ¶
func (vApp *VApp) Unprotect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
UnprotectVApp - Unprotect a vCloud Director Virtual Application
type VCloudClient ¶
type VCloudClient struct{}
func (*VCloudClient) GetOrg ¶
func (v *VCloudClient) GetOrg(id int) (resp *Org, err error)
GetOrg - Get a vCloud Director Organization
func (*VCloudClient) GetOrgByName ¶
func (v *VCloudClient) GetOrgByName(name string) (resp *Org, err error)
GetOrgByName - Get a vCloud Director Organization by name
func (*VCloudClient) GetOrgs ¶
func (v *VCloudClient) GetOrgs() (resp *Orgs, err error)
GetOrgs - Get a list of vCloud Director Organizations
func (*VCloudClient) GetVAppByID ¶
func (v *VCloudClient) GetVAppByID(id int) (resp *VApp, err error)
GetVAppByID - Get a vCloud Director Virtual Application by ID id - The ID of the vapp in the netbackup system
func (*VCloudClient) GetVAppByIdentifier ¶
func (v *VCloudClient) GetVAppByIdentifier(identifier string) (resp *VApp, err error)
GetVAppByIdentifier - Get a vCloud Director Virtual Application by Identifier identifier - The Identifier of the vapp in the vmware system (URN)
func (*VCloudClient) GetVAppByName ¶
func (v *VCloudClient) GetVAppByName(name string) (resp *VApp, err error)
GetVAppByName - Get a vCloud Director Virtual Application by Name name - The name of the vapp in the netbackup system
func (*VCloudClient) GetVAppByNameOrIdentifier ¶
func (v *VCloudClient) GetVAppByNameOrIdentifier(nameOrIdentifier string) (resp *VApp, err error)
GetVdcByNameOrIdentifier - Get a vCloud Director Virtual Application by Name or Identifier nameOrIdentifier - The Name or Identifier of the vapp in the vmware system
func (*VCloudClient) GetVAppMachines ¶
func (v *VCloudClient) GetVAppMachines(vAppID int) (resp *GetVAppMachinesResponse, err error)
GetVAppMachines - Get a list of vCloud Director Virtual Application Machines
func (*VCloudClient) GetVApps ¶
func (v *VCloudClient) GetVApps() (resp *VApps, err error)
GetVApps - Get a list of vCloud Director Virtual Applications
func (*VCloudClient) GetVdcByID ¶
func (v *VCloudClient) GetVdcByID(id int) (resp *VDC, err error)
GetVdcByID - Get a vCloud Director Virtual Data Center by ID id - The ID of the vdc in the netbackup system
func (*VCloudClient) GetVdcByIdentifier ¶
func (v *VCloudClient) GetVdcByIdentifier(identifier string) (resp *VDC, err error)
GetVdcByIdentifier - Get a vCloud Director Virtual Data Center by Identifier identifier - The Identifier of the vdc in the vmware system (URN)
func (*VCloudClient) GetVdcByName ¶
func (v *VCloudClient) GetVdcByName(name string) (resp *VDC, err error)
GetVdcByName - Get a vCloud Director Virtual Data Center by Name name - The Name of the vdc in the vmware system
func (*VCloudClient) GetVdcByNameOrIdentifier ¶
func (v *VCloudClient) GetVdcByNameOrIdentifier(nameOrIdentifier string) (resp *VDC, err error)
GetVdcByNameOrIdentifier - Get a vCloud Director Virtual Data Center by Name or Identifier nameOrIdentifier - The Name or Identifier of the vdc in the vmware system
func (*VCloudClient) GetVdcs ¶
func (v *VCloudClient) GetVdcs() (resp *VDCs, err error)
GetVdcs - Get a list of vCloud Director Virtual Data Centers
func (*VCloudClient) GetVdcsByOrgID ¶
func (v *VCloudClient) GetVdcsByOrgID(orgID int) (resp *VDCs, err error)
GetVdcsByOrgID - Get a list of vCloud Director Virtual Data Centers by Org ID orgID - The ID of the org in the netbackup system
type VDC ¶
type VDC struct { ID int `json:"Id,omitempty"` Name string `json:"Name,omitempty"` Identifier string `json:"Identifier,omitempty"` VOrgID int `json:"VOrgId,omitempty"` ProtectionTypeID int `json:"ProtectionTypeId,omitempty"` }
VDC - Is the response structure for the GetVdc API
func (*VDC) GetIdentifier ¶
GetIdentifier returns the Identifier field of VDC
func (*VDC) GetProtectionLevelAvailableByID ¶
func (vdc *VDC) GetProtectionLevelAvailableByID(id int) (resp *ProtectionLevel, err error)
GetProtectionLevelAvailableByID - Get a protection level by ID for a vCloud Director Virtual Application
func (*VDC) GetProtectionLevelAvailableByName ¶
func (vdc *VDC) GetProtectionLevelAvailableByName(name string) (resp *ProtectionLevel, err error)
GetProtectionLevelAvailableByName - Get a protection level by name for a vCloud Director Virtual Application
func (*VDC) GetProtectionTypeID ¶
GetProtectionTypeID returns the ProtectionTypeID field of VDC
func (*VDC) ListProtectionLevels ¶
func (vdc *VDC) ListProtectionLevels() (resp *ProtectionLevels, err error)
ListProtectionLevels - List the protection levels applied to a vCloud Director Virtual Application
func (*VDC) ListProtectionLevelsAvailable ¶
func (vdc *VDC) ListProtectionLevelsAvailable() (resp *ProtectionLevels, err error)
ListProtectionLevelsAvailable - List the protection levels available for a vCloud Director Virtual Application
func (*VDC) Protect ¶
func (vdc *VDC) Protect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
ProtectVdc - Protect a vCloud Director Virtual Data Center
func (*VDC) Unprotect ¶
func (vdc *VDC) Unprotect(req ProtectUnprotectRequest) (job *commonnetbackup.JobAPIResponse, err error)
UnprotectVdc - Unprotect a vCloud Director Virtual Data Center
type VDCAIps ¶
type VDCAIps []string
func (*VDCAIps) DeleteAllIPs ¶
DeleteAllIPs - Deletes all IPs from the list
func (*VDCAIps) IsIPExists ¶
IsIPExists - Returns true if the IP exists
type VDCBillingModel ¶
type VDCBillingModel string
VDCBillingModel - VDC Billing Model
func (VDCBillingModel) IsValid ¶
func (v VDCBillingModel) IsValid() bool
IsValid - Check if the billing model is valid
type VDCDisponibilityClass ¶
type VDCDisponibilityClass string
VDCDisponibilityClass - VDC Disponibility Class
func (VDCDisponibilityClass) IsValid ¶
func (v VDCDisponibilityClass) IsValid() bool
IsValid - Check if the disponibility class is valid
type VDCServiceClass ¶
type VDCServiceClass string
VDCServiceClass - VDC Service Class
func (VDCServiceClass) IsValid ¶
func (v VDCServiceClass) IsValid() bool
IsValid - Check if the service class is valid
type VDCStorageBillingModel ¶
type VDCStorageBillingModel string
VDCStorageBillingModel - VDC Storage Billing Model
func (VDCStorageBillingModel) IsValid ¶
func (v VDCStorageBillingModel) IsValid() bool
IsValid - Check if the storage billing model is valid
type VDCStrorageProfile ¶
type VDCStrorageProfile struct { Class VDCStrorageProfileClass `json:"class"` Limit int `json:"limit"` Default bool `json:"default"` }
type VDCStrorageProfileClass ¶
type VDCStrorageProfileClass string
VDCStrorageProfileClass - VDC Storage Profile Class
func (VDCStrorageProfileClass) IsValid ¶
func (s VDCStrorageProfileClass) IsValid() bool
IsValid - Check if the storage profile class is valid
Source Files ¶
- cloudavenue_edgegw.go
- cloudavenue_publicip.go
- cloudavenue_t0.go
- cloudavenue_vcda.go
- cloudavenue_vdc.go
- netbackup.go
- netbackup_inventory.go
- netbackup_machines.go
- netbackup_protect.go
- netbackup_protection_level.go
- netbackup_protection_level_get.go
- netbackup_protection_level_list.go
- netbackup_vcloud.go
- netbackup_vcloud_org.go
- netbackup_vcloud_vapp.go
- netbackup_vcloud_vdc.go
- s3.go
- v1.go