netbackupclient

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func (r *Org) GetCustomerCode() string

GetCustomerCode returns the CustomerCode field of Org

func (*Org) GetDisplayName

func (r *Org) GetDisplayName() string

GetDisplayName returns the DisplayName field of Org

func (*Org) GetID

func (r *Org) GetID() int

GetID returns the ID field of Org

func (*Org) GetIDPtr

func (r *Org) GetIDPtr() *int

GetIDPtr returns a pointer to the ID field of Org

func (*Org) GetImportSource

func (r *Org) GetImportSource() string

GetImportSource returns the ImportSource field of Org

func (*Org) GetLocation

func (r *Org) GetLocation() string

GetLocation returns the Location field of Org

func (*Org) GetName

func (r *Org) GetName() string

GetName returns the Name field of Org

type Orgs

type Orgs []Org

* Orgs Orgs - Is the response structure for the GetOrgs API

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) GetID

func (vApp *VApp) GetID() int

GetID returns the ID field of VApp

func (*VApp) GetIDPtr

func (vApp *VApp) GetIDPtr() *int

GetIDPtr returns a pointer to the ID field of VApp

func (*VApp) GetIdentifier

func (vApp *VApp) GetIdentifier() string

GetIdentifier returns the Identifier field of VApp

func (*VApp) GetName

func (vApp *VApp) GetName() string

GetName returns the Name 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

func (vApp *VApp) GetProtectionTypeID() int

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 VApps

type VApps []VApp

* VApps VApps - Is the response structure for the GetVApps API

type VCloud

type VCloud struct{}

func (*VCloud) GetOrg

func (v *VCloud) GetOrg(id int) (resp *Org, err error)

GetOrg - Get a vCloud Director Organization

func (*VCloud) GetOrgByName

func (v *VCloud) GetOrgByName(name string) (resp *Org, err error)

GetOrgByName - Get a vCloud Director Organization by name

func (*VCloud) GetOrgs

func (v *VCloud) GetOrgs() (resp *Orgs, err error)

GetOrgs - Get a list of vCloud Director Organizations

func (*VCloud) GetVAppByID

func (v *VCloud) 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 (*VCloud) GetVAppByIdentifier

func (v *VCloud) 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 (*VCloud) GetVAppByName

func (v *VCloud) 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 (*VCloud) GetVAppByNameOrIdentifier

func (v *VCloud) 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 (*VCloud) GetVAppMachines

func (v *VCloud) GetVAppMachines(vAppID int) (resp *GetVAppMachinesResponse, err error)

GetVAppMachines - Get a list of vCloud Director Virtual Application Machines

func (*VCloud) GetVApps

func (v *VCloud) GetVApps() (resp *VApps, err error)

GetVApps - Get a list of vCloud Director Virtual Applications

func (*VCloud) GetVdcByID

func (v *VCloud) 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 (*VCloud) GetVdcByIdentifier

func (v *VCloud) 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 (*VCloud) GetVdcByName

func (v *VCloud) 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 (*VCloud) GetVdcByNameOrIdentifier

func (v *VCloud) 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 (*VCloud) GetVdcs

func (v *VCloud) GetVdcs() (resp *VDCs, err error)

GetVdcs - Get a list of vCloud Director Virtual Data Centers

func (*VCloud) GetVdcsByOrgID

func (v *VCloud) 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) GetID

func (vdc *VDC) GetID() int

GetID returns the ID field of VDC

func (*VDC) GetIDPtr

func (vdc *VDC) GetIDPtr() *int

GetIDPtr returns a pointer to the ID field of VDC

func (*VDC) GetIdentifier

func (vdc *VDC) GetIdentifier() string

GetIdentifier returns the Identifier field of VDC

func (*VDC) GetName

func (vdc *VDC) GetName() string

GetName returns the Name 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

func (vdc *VDC) GetProtectionTypeID() int

GetProtectionTypeID returns the ProtectionTypeID field of VDC

func (*VDC) GetVOrgID

func (vdc *VDC) GetVOrgID() int

GetVOrgID returns the VOrgID 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

type VDCs

type VDCs []VDC

* VDCs VDCs - Is the response structure for the GetVdcs API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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