Documentation
¶
Index ¶
- type ActionLogEntry
- type BackupResponse
- type BackupTime
- type CertFile
- type Certificate
- type Create
- type CreateNotification
- type CreateRes
- type DataCenterInfo
- type DeleteBackup
- type DeleteNotification
- type Destination
- type DestinationRequest
- type Get
- type Instance
- type List
- type ListRes
- type MachineConfig
- type Notification
- type NotificationRequest
- type Promotion
- type Server
- type Update
- type UpdateNotification
- type User
- type VerifyDestination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionLogEntry ¶
type BackupResponse ¶
type BackupTime ¶
type Certificate ¶
type Create ¶
type Create struct {
InstanceType string `valid:"required" oneOf:"MySQL,MySQL_REPLICATION" json:"instanceType"`
ExternalId string `valid:"required" json:"externalId"`
MachineConfig MachineConfig `json:"machineConfig"`
BackupRetentionDays int64 `valid:"required" json:"backupRetentionDays"`
Users []User `json:"users"`
DataCenter string `json:"location"`
Destinations []DestinationRequest `json:"destinations,omitempty"`
Instances []Instance `json:"instances,omitempty"`
BackupTime BackupTime `json:"-"`
BackupTimeValue *BackupTime `json:"backupTime,omitempty" argument:ignore`
}
type CreateNotification ¶
type CreateNotification struct {
SubscriptionId string `json:"-" URIParam:"yes" valid:"required"`
DestinationRequest `argument:"composed"`
}
func (*CreateNotification) Validate ¶
func (c *CreateNotification) Validate() error
type CreateRes ¶
type CreateRes struct {
Id int64
Location string
InstanceType string
ExternalId string
Status string
BackupTime string
BackupRetentionDays int64
OptionGroup string
ParameterGroup string
Users []User
Instances []Instance
Servers []Server
Host string
Port int64
Certificate string
Backups []BackupResponse
}
type DataCenterInfo ¶
type DeleteBackup ¶
type DeleteNotification ¶
type Destination ¶
type Destination struct {
Id int64
DestinationType string
Location string
Notifications []Notification
Verified bool
}
type DestinationRequest ¶
type DestinationRequest struct {
DestinationType string `oneOf:"EMAIL,SMS" json:"destinationType"`
Location string `json:"location"`
Notifications []NotificationRequest `json:"notifications"`
}
type MachineConfig ¶
type Notification ¶
type NotificationRequest ¶
type NotificationRequest struct {
NotificationType string `oneOf:"CPU_UTILIATION,MEMORY_UTILIZATION,STORAGE_UTILIZATION" json:"notificationType"`
}
type Update ¶
type Update struct {
SubscriptionId string `json:"-" URIParam:"yes" valid:"required"`
MachineConfig MachineConfig `json:"-"`
MachineConfigValue *MachineConfig `json:"machineConfig,omitempty" argument:"ignore"`
BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"`
BackupTime BackupTime `json:"-"`
BackupTimeValue *BackupTime `json:"backupTime,omitempty" argument:"ignore"`
}
type UpdateNotification ¶
type UpdateNotification struct {
DestinationId string `json:"-" URIParam:"yes" valid:"required"`
SubscriptionId string `json:"-" URIParam:"yes" valid:"required"`
DestinationRequest `argument:"composed"`
}
func (*UpdateNotification) Validate ¶
func (c *UpdateNotification) Validate() error
type VerifyDestination ¶
Click to show internal directories.
Click to hide internal directories.