Documentation
¶
Index ¶
- type AccountPoliciesReq
- type AccountPoliciesRes
- type AccountPolicy
- type AccountPolicyReq
- type AccountServerPoliciesRes
- type AllowedAccountPoliciesReq
- type CreateServerPolicy
- type DataCenterServers
- type DataCenters
- type DeleteServerPolicy
- type GetAccountPolicy
- type GetAccountServerPolicies
- type GetAccountServerPolicy
- type GetRestoreDetails
- type GetRestoreDetailsRes
- type GetServerPolicies
- type GetServers
- type GetStoredData
- type OSTypes
- type Region
- type RestoreDetails
- type ServerPolicy
- type ServerPolicyDetails
- type StoredData
- type UpdateAccountPolicy
- type UpdateServerPolicy
- type UpdateServerPolicyOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountPoliciesReq ¶
type AccountPoliciesRes ¶
type AccountPoliciesRes struct {
Limit int64
NextOffset int64
Offset int64
Results []AccountPolicy
TotalCount int64
}
type AccountPolicy ¶
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 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 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 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 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 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 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
Click to show internal directories.
Click to hide internal directories.