backup

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountPoliciesReq

type AccountPoliciesReq struct {
	Limit         string `URIParam:"yes"`
	Offset        string `URIParam:"yes"`
	WithStatus    string `URIParam:"yes"`
	SortBy        string `URIParam:"yes" oneOf:"status,osType,name,policyId,backupIntervalHours,retentionDays"`
	AscendingSort string `URIParam:"yes" oneOf:"true,false"`
}

type AccountPoliciesRes

type AccountPoliciesRes struct {
	Limit      int64
	NextOffset int64
	Offset     int64
	Results    []AccountPolicy
	TotalCount int64
}

type AccountPolicy

type AccountPolicy struct {
	ClcAccountAlias        string
	BackupIntervalHours    int64
	ExcludedDirectoryPaths []string
	Name                   string
	OsType                 string
	Paths                  []string
	PolicyId               string
	RetentionDays          int64
	Status                 string
}

type AccountPolicyReq

type AccountPolicyReq struct {
	AccountAlias string `argument:"ignore" json:"clcAccountAlias"`

	BackupIntervalHours    *int64   `json:"backupIntervalHours" valid:"required"`
	ExcludedDirectoryPaths []string `json:"excludedDirectoryPaths,omitempty"`
	Name                   string   `json:"name" valid:"required"`
	OsType                 string   `json:"osType" oneOf:"Linux,Windows" valid:"required"`
	Paths                  []string `json:"paths" valid:"required"`
	RetentionDays          *int64   `json:"retentionDays" valid:"required"`
}

func (*AccountPolicyReq) GetNames

func (a *AccountPolicyReq) GetNames(cn base.Connection, property string) ([]string, error)

func (*AccountPolicyReq) InferID

func (a *AccountPolicyReq) InferID(cn base.Connection) error

type AccountServerPoliciesRes

type AccountServerPoliciesRes struct {
	Limit      int64
	NextOffset int64
	Offset     int64
	TotalCount int64
	Results    []ServerPolicy
}

type AllowedAccountPoliciesReq

type AllowedAccountPoliciesReq struct {
	server.Server `argument:"composed" URIParam:"ServerId"`
	Limit         string `URIParam:"yes"`
	Offset        string `URIParam:"yes"`
	WithStatus    string `URIParam:"yes"`
	SortBy        string `URIParam:"yes" oneOf:"status,osType,name,policyId,backupIntervalHours,retentionDays"`
	AscendingSort string `URIParam:"yes" oneOf:"true,false"`
}

type CreateServerPolicy

type CreateServerPolicy struct {
	AccountPolicyId  string `URIParam:"yes" valid:"required" json:"accountPolicyId"`
	AccountAlias     string `json:"clcAccountAlias" argument:"ignore"`
	server.Server    `argument:"composed" json:"-"`
	ServerID         string `json:"serverId" argument:"ignore"`
	StorageAccountId string `json:"storageAccountId"`
	StorageRegion    string `json:"storageRegion" valid:"required"`
}

func (*CreateServerPolicy) InferID

func (c *CreateServerPolicy) InferID(cn base.Connection) error

type DataCenterServers

type DataCenterServers []string

type DataCenters

type DataCenters []string

type DeleteServerPolicy

type DeleteServerPolicy struct {
	AccountPolicyId string `URIParam:"yes" valid:"required"`
	ServerPolicyId  string `URIParam:"yes" valid:"required"`
}

type GetAccountPolicy

type GetAccountPolicy struct {
	PolicyId string `URIParam:"yes" valid:"required"`
}

type GetAccountServerPolicies

type GetAccountServerPolicies struct {
	PolicyId      string `URIParam:"yes" valid:"required"`
	Limit         string `URIParam:"yes"`
	Offset        string `URIParam:"yes"`
	WithStatus    string `URIParam:"yes"`
	SortBy        string `URIParam:"yes" oneOf:"status,storageRegion,serverId,serverPolicyId"`
	AscendingSort string `URIParam:"yes" oneOf:"true,false"`
}

type GetAccountServerPolicy

type GetAccountServerPolicy struct {
	AccountPolicyId string `URIParam:"yes" valid:"required"`
	ServerPolicyId  string `URIParam:"yes" valid:"required"`
}

type GetRestoreDetails

type GetRestoreDetails struct {
	AccountPolicyId         string `URIParam:"yes" valid:"required"`
	ServerPolicyId          string `URIParam:"yes" valid:"required"`
	BackupFinishedStartDate string `URIParam:"yes" valid:"required"`
	BackupFinishedEndDate   string `URIParam:"yes" valid:"required"`
	Limit                   string `URIParam:"yes"`
	Offset                  string `URIParam:"yes"`
	InRetentionOnly         string `URIParam:"yes" oneOf:"true,false"`
	SortBy                  string `` /* 318-byte string literal not displayed */
	AscendingSort           string `URIParam:"yes" oneOf:"true,false"`
}

func (*GetRestoreDetails) Validate

func (g *GetRestoreDetails) Validate() error

type GetRestoreDetailsRes

type GetRestoreDetailsRes struct {
	Limit      int64
	NextOffset int64
	Offset     int64
	TotalCount int64
	Results    []RestoreDetails
}

type GetServerPolicies

type GetServerPolicies struct {
	server.Server `argument:"compose" URIParam:"ServerId"`
	WithStatus    string `URIParam:"yes" json:"-"`
}

type GetServers

type GetServers struct {
	DataCenterName string `valid:"required" URIParam:"yes"`
}

type GetStoredData

type GetStoredData struct {
	AccountPolicyId string `URIParam:"yes" valid:"required"`
	ServerPolicyId  string `URIParam:"yes" valid:"required"`
	SearchDate      string `URIParam:"yes" valid:"required"`
}

func (*GetStoredData) Validate

func (g *GetStoredData) Validate() error

type OSTypes

type OSTypes []string

type Region

type Region struct {
	Messages    []string
	Name        string
	RegionLabel string
}

type RestoreDetails

type RestoreDetails struct {
	BackupFinishedDate            string
	BackupStartedDate             string
	BytesFailedToTransfer         int64
	BytesInStorageForItemsRemoved int64
	BytesTransferredToStorage     int64
	FilesFailedTransferToStorage  int64
	FilesRemovedFromDisk          int64
	FilesTransferredToStorage     int64
	NumberOfProtectedFiles        int64
	PolicyId                      string
	RestorePointCreationStatus    string
	RestorePointId                string
	RetentionDays                 int64
	RetentionExpiredDate          string
	UnchangedBytesInStorage       int64
	UnchangedFilesNotTransferred  int64
}

type ServerPolicy

type ServerPolicy struct {
	AccountPolicyId  string
	ClcAccountAlias  string
	ExpirationDate   int64
	ServerId         string
	ServerPolicyId   string
	Status           string
	StorageAccountId string
	StorageRegion    string
	UnsubscribedDate int64
}

type ServerPolicyDetails

type ServerPolicyDetails struct {
	AccountPolicyId     string
	AccountPolicyStatus string
	BackupIntervalHours int64
	BackupProvider      string
	ClcAccountAlias     string
	EligibleForBackup   bool
	Name                string
	OsType              string
	Paths               []string
	RetentionDays       int64
	ServerId            string
	ServerPolicyId      string
	ServerPolicyStatus  string
	StorageRegion       string
}

type StoredData

type StoredData struct {
	BytesStored     string
	GigabytesStored string
}

type UpdateAccountPolicy

type UpdateAccountPolicy struct {
	PolicyId               string   `valid:"required" URIParam:"yes" json:"policyId"`
	ClcAccountAlias        string   `json:"clcAccountAlias,omitempty"`
	BackupIntervalHours    *int64   `json:"backupIntervalHours" valid:"required"`
	ExcludedDirectoryPaths []string `json:"excludedDirectoryPaths,omitempty"`
	Name                   string   `json:"name" valid:"required"`
	OsType                 string   `json:"osType" oneOf:"Linux,Windows"`
	Paths                  []string `json:"paths" valid:"required"`
	RetentionDays          *int64   `json:"retentionDays" valid:"required"`
	Status                 string   `json:"status" valid:"required"`
}

type UpdateServerPolicy

type UpdateServerPolicy struct {
	AccountPolicyId string                        `URIParam:"yes" valid:"required"`
	ServerPolicyId  string                        `URIParam:"yes" valid:"required"`
	Operations      []UpdateServerPolicyOperation `argument:"ignore" json:"operations"`
	Status          string                        `json:"-" oneOf:"ACTIVE,INACTIVE" valid:"required"`
}

func (*UpdateServerPolicy) Validate

func (u *UpdateServerPolicy) Validate() error

type UpdateServerPolicyOperation

type UpdateServerPolicyOperation struct {
	Op    string `json:"op"`
	Path  string `json:"path"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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