Documentation ¶
Index ¶
- type GetVAppMachinesResponse
- 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 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) GetProtectionLevelByID(id int) (resp *ProtectionLevel, err error)
- func (vApp *VApp) GetProtectionLevelByName(name string) (resp *ProtectionLevel, err error)
- func (vApp *VApp) GetProtectionTypeID() int
- func (vApp *VApp) ListProtectionLevels() (resp *ProtectionLevels, err error)
- func (vApp *VApp) Protect(req ProtectUnprotectRequest) (job *common.JobAPIResponse, err error)
- func (vApp *VApp) Unprotect(req ProtectUnprotectRequest) (job *common.JobAPIResponse, err error)
- type VApps
- type VCloud
- func (v *VCloud) GetOrg(id int) (resp *Org, err error)
- func (v *VCloud) GetOrgByName(name string) (resp *Org, err error)
- func (v *VCloud) GetOrgs() (resp *Orgs, err error)
- func (v *VCloud) GetVAppByID(id int) (resp *VApp, err error)
- func (v *VCloud) GetVAppByIdentifier(identifier string) (resp *VApp, err error)
- func (v *VCloud) GetVAppByName(name string) (resp *VApp, err error)
- func (v *VCloud) GetVAppByNameOrIdentifier(nameOrIdentifier string) (resp *VApp, err error)
- func (v *VCloud) GetVAppMachines(vAppID int) (resp *GetVAppMachinesResponse, err error)
- func (v *VCloud) GetVApps() (resp *VApps, err error)
- func (v *VCloud) GetVdcByID(id int) (resp *VDC, err error)
- func (v *VCloud) GetVdcByIdentifier(identifier string) (resp *VDC, err error)
- func (v *VCloud) GetVdcByName(name string) (resp *VDC, err error)
- func (v *VCloud) GetVdcByNameOrIdentifier(nameOrIdentifier string) (resp *VDC, err error)
- func (v *VCloud) GetVdcs() (resp *VDCs, err error)
- func (v *VCloud) 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 *common.JobAPIResponse, err error)
- func (vdc *VDC) Unprotect(req ProtectUnprotectRequest) (job *common.JobAPIResponse, err error)
- type VDCs
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 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 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) GetProtectionLevelByID ¶
func (vApp *VApp) GetProtectionLevelByID(id int) (resp *ProtectionLevel, err error)
GetProtectionLevelByID - Get a protection level by ID for a vCloud Director Virtual Application
func (*VApp) GetProtectionLevelByName ¶
func (vApp *VApp) GetProtectionLevelByName(name string) (resp *ProtectionLevel, err error)
GetProtectionLevelByName - 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 available for a vCloud Director Virtual Application
func (*VApp) Protect ¶
func (vApp *VApp) Protect(req ProtectUnprotectRequest) (job *common.JobAPIResponse, err error)
ProtectVApp - Protect a vCloud Director Virtual Application
func (*VApp) Unprotect ¶
func (vApp *VApp) Unprotect(req ProtectUnprotectRequest) (job *common.JobAPIResponse, err error)
UnprotectVApp - Unprotect a vCloud Director Virtual Application
type VCloud ¶
type VCloud struct{}
func (*VCloud) GetOrgByName ¶
GetOrgByName - Get a vCloud Director Organization by name
func (*VCloud) GetVAppByID ¶
GetVAppByID - Get a vCloud Director Virtual Application by ID id - The ID of the vapp in the netbackup system
func (*VCloud) GetVAppByIdentifier ¶
GetVAppByIdentifier - Get a vCloud Director Virtual Application by Identifier identifier - The Identifier of the vapp in the vmware system (URN)
func (*VCloud) GetVAppByName ¶
GetVAppByName - Get a vCloud Director Virtual Application by Name name - The name of the vapp in the netbackup system
func (*VCloud) GetVAppByNameOrIdentifier ¶
GetVdcByNameOrIdentifier - Get a vCloud Director Virtual Application by Name or Identifier nameOrIdentifier - The Name or Identifier of the vapp in the vmware system
func (*VCloud) GetVAppMachines ¶
func (v *VCloud) GetVAppMachines(vAppID int) (resp *GetVAppMachinesResponse, err error)
GetVAppMachines - Get a list of vCloud Director Virtual Application Machines
func (*VCloud) GetVdcByID ¶
GetVdcByID - Get a vCloud Director Virtual Data Center by ID id - The ID of the vdc in the netbackup system
func (*VCloud) GetVdcByIdentifier ¶
GetVdcByIdentifier - Get a vCloud Director Virtual Data Center by Identifier identifier - The Identifier of the vdc in the vmware system (URN)
func (*VCloud) GetVdcByName ¶
GetVdcByName - Get a vCloud Director Virtual Data Center by Name name - The Name of the vdc in the vmware system
func (*VCloud) GetVdcByNameOrIdentifier ¶
GetVdcByNameOrIdentifier - Get a vCloud Director Virtual Data Center by Name or Identifier nameOrIdentifier - The Name or Identifier of the vdc in the vmware 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 *common.JobAPIResponse, err error)
ProtectVdc - Protect a vCloud Director Virtual Data Center
func (*VDC) Unprotect ¶
func (vdc *VDC) Unprotect(req ProtectUnprotectRequest) (job *common.JobAPIResponse, err error)
UnprotectVdc - Unprotect a vCloud Director Virtual Data Center