Documentation
¶
Index ¶
- type GetVAppMachinesResponse
- 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 Org
- type Orgs
- 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 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 VAppResponse
- type VApps
- type VAppsResponse
- 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 VDCs
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 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 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 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 VAppResponse ¶ added in v0.6.0
type VAppResponse struct {
Data VApp `json:"data,omitempty"`
}
type VAppsResponse ¶ added in v0.6.0
type VAppsResponse struct {
Data VApps `json:"data,omitempty"`
}
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 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 ¶ added in v0.6.0
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 ¶ added in v0.6.0
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 ¶ added in v0.6.0
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 ¶ added in v0.6.0
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.