Documentation
¶
Overview ¶
Package ddc defines the DDC services of BCE. The supported APIs are all defined in sub-package
ddc.go - the ddc APIs definition supported by the DDC service
util.go - define the utilities for api package of RDS service
Index ¶
- Constants
- func Aes128EncryptUseSecreteKey(sk string, data string) (string, error)
- type Account
- type AccountPrivilege
- type AccountResult
- type AccountType
- type AuthType
- type BackupDetailResult
- type BackupPolicy
- type Binlog
- type BinlogDetailResult
- type BinlogListResult
- type BinlogModel
- type Client
- func (c *Client) CreateAccount(instanceId string, args *CreateAccountArgs) error
- func (c *Client) CreateBackup(instanceId string) error
- func (c *Client) CreateDatabase(instanceId string, args *CreateDatabaseArgs) error
- func (cli *Client) CreateDeploySet(poolId string, args *CreateDeployRequest) error
- func (c *Client) CreateInstance(args *CreateInstanceArgs) (*CreateResult, error)
- func (c *Client) DeleteAccount(instanceId, accountName string) error
- func (c *Client) DeleteDatabase(instanceId, dbName string) error
- func (c *Client) DeleteDdcInstance(instanceIds string) error
- func (cli *Client) DeleteDeploySet(poolId string, deploySetId string) error
- func (c *Client) GetAccount(instanceId, accountName string) (*Account, error)
- func (c *Client) GetBackupDetail(instanceId string, snapshotId string) (*BackupDetailResult, error)
- func (c *Client) GetBackupList(instanceId string) (*GetBackupListResult, error)
- func (c *Client) GetBinlogDetail(instanceId string, binlog string) (*BinlogDetailResult, error)
- func (c *Client) GetBinlogList(instanceId string) (*BinlogListResult, error)
- func (c *Client) GetDatabase(instanceId, dbName string) (*Database, error)
- func (cli *Client) GetDeploySet(poolId string, deploySetId string) (*DeploySet, error)
- func (c *Client) GetDetail(instanceId string) (*InstanceModelResult, error)
- func (c *Client) GetSecurityIps(instanceId string) (*GetSecurityIpsResult, error)
- func (c *Client) GetZoneList() (*GetZoneListResult, error)
- func (c *Client) ListAccount(instanceId string) (*ListAccountResult, error)
- func (c *Client) ListDatabase(instanceId string) (*ListDatabaseResult, error)
- func (c *Client) ListDdcInstance(marker *Marker) (*ListDdsResult, error)
- func (cli *Client) ListDeploySets(poolId string, marker *Marker) (*ListDeploySetResult, error)
- func (c *Client) ListParameters(instanceId string) (*ListParametersResult, error)
- func (c *Client) ListRoGroup(instanceId string) (*ListRoGroupResult, error)
- func (c *Client) ListSubnets() (*ListSubnetsResult, error)
- func (c *Client) ListVpc() (*[]VpcVo, error)
- func (c *Client) ModifyBackupPolicy(instanceId string, args *BackupPolicy) error
- func (c *Client) SwitchInstance(instanceId string) error
- func (c *Client) UpdateAccountPassword(instanceId string, accountName string, args *UpdateAccountPasswordArgs) error
- func (c *Client) UpdateAccountPrivileges(instanceId string, accountName string, args *UpdateAccountPrivilegesArgs) error
- func (c *Client) UpdateAccountRemark(instanceId string, accountName string, args *UpdateAccountRemarkArgs) error
- func (c *Client) UpdateDatabaseRemark(instanceId string, dbName string, args *UpdateDatabaseRemarkArgs) error
- func (c *Client) UpdateInstanceName(instanceId string, args *UpdateInstanceNameArgs) error
- func (c *Client) UpdateParameter(instanceId string, args *UpdateParameterArgs) error
- func (c *Client) UpdateSecurityIps(instacneId string, args *UpdateSecurityIpsArgs) error
- type Container
- type CreateAccountArgs
- type CreateDatabaseArgs
- type CreateDeployRequest
- type CreateInstanceArgs
- type CreateResult
- type Database
- type DatabasePrivilege
- type DatabaseResult
- type DeleteDdcArgs
- type DeploySet
- type Endpoint
- type Flavor
- type GetBackupListResult
- type GetSecurityIpsResult
- type GetZoneListResult
- type Host
- type Instance
- type InstanceModel
- type InstanceModelResult
- type KVParameter
- type ListAccountResult
- type ListDatabaseResult
- type ListDdsResult
- type ListDeploySetResult
- type ListHostResult
- type ListParametersResult
- type ListPoolResult
- type ListRdsArgs
- type ListResultWithMarker
- type ListRoGroupResult
- type ListSubnetsArgs
- type ListSubnetsResult
- type Marker
- type NodeInfo
- type OperateHostRequest
- type Parameter
- type Pool
- type Replica
- type RoGroup
- type Snapshot
- type SnapshotModel
- type Subnet
- type SubnetVo
- type Topology
- type UpdateAccountPasswordArgs
- type UpdateAccountPrivilegesArgs
- type UpdateAccountRemarkArgs
- type UpdateDatabaseRemarkArgs
- type UpdateInstanceNameArgs
- type UpdateParameterArgs
- type UpdateSecurityIpsArgs
- type VpcVo
- type ZoneName
Constants ¶
const ( URI_PREFIX = bce.URI_PREFIX + "v1/ddc" DEFAULT_ENDPOINT = "ddc.su.baidubce.com" REQUEST_DDC_INSTANCE_URL = "/instance" REQUEST_DDC_POOL_URL = "/pool" REQUEST_DDC_HOST_URL = "/host" REQUEST_DDC_DEPLOY_URL = "/deploy" REQUEST_DDC_DATABASE_URL = "/database" REQUEST_DDC_ACCOUNT_URL = "/account" REQUEST_DDC_RoGroup_URL = "/roGroup" )
const ( KEY_CLIENT_TOKEN = "clientToken" KEY_MARKER = "marker" KEY_MAXKEYS = "maxKeys" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { AccountName string `json:"accountName"` Remark string `json:"remark"` AccountStatus string `json:"accountStatus"` AccountType string `json:"accountType"` DatabasePrivileges []DatabasePrivilege `json:"databasePrivileges"` }
type AccountPrivilege ¶
type AccountResult ¶
type AccountResult struct {
Account Account `json:"account"`
}
type AccountType ¶
type AccountType string
Account
const ( AccountType_Super AccountType = "rdssuper" AccountType_Common AccountType = "common" )
type BackupDetailResult ¶
type BackupDetailResult struct {
Snapshot SnapshotModel `json:"snapshot"`
}
type BackupPolicy ¶
type BinlogDetailResult ¶
type BinlogDetailResult struct {
Binlog BinlogModel `json:"binlog"`
}
type BinlogListResult ¶
type BinlogListResult struct {
Binlogs []Binlog `json:"binlogs"`
}
type BinlogModel ¶
type BinlogModel struct { BinlogId string `json:"binlogId"` BinlogSizeInBytes int64 `json:"binlogSizeInBytes"` BinlogStatus string `json:"binlogStatus"` BinlogStartTime string `json:"binlogStartTime"` BinlogEndTime string `json:"binlogEndTime"` DownloadUrl string `json:"downloadUrl"` DownloadExpires string `json:"downloadExpires"` }
type Client ¶
Client of DDC service is a kind of BceClient, so derived from BceClient
func (*Client) CreateAccount ¶
func (c *Client) CreateAccount(instanceId string, args *CreateAccountArgs) error
CreateAccount - create a account with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- args: the arguments to create a account
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateBackup ¶
CreateBackup - create backup of the instance
PARAMS:
- instanceId: the id of the instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateDatabase ¶
func (c *Client) CreateDatabase(instanceId string, args *CreateDatabaseArgs) error
CreateDatabase - create a database with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- args: the arguments to create a account
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateDeploySet ¶
func (cli *Client) CreateDeploySet(poolId string, args *CreateDeployRequest) error
CreateDeploySet - create a deploy set
PARAMS:
- body: http request body
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(args *CreateInstanceArgs) (*CreateResult, error)
CreateInstance - create a Instance with the specific parameters
PARAMS:
- args: the arguments to create a instance
RETURNS:
- *InstanceIds: the result of create RDS, contains new RDS's instanceIds
- error: nil if success otherwise the specific error
func (*Client) DeleteAccount ¶
DeleteAccount - delete an account of a RDS instance
PARAMS:
- instanceIds: the specific instanceIds
- accountName: the specific account's name
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteDatabase ¶
DeleteDatabase - delete an database of a DDC instance
PARAMS:
- instanceIds: the specific instanceIds
- dbName: the specific database's name
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteDdcInstance ¶
DeleteDdsInstance - delete instances
PARAMS:
- DeleteDdcArgs: the id list of the instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteDeploySet ¶
DeleteDeploySet - delete a deploy set
PARAMS:
- poolId: the id of the pool
- deploySetId: the id of the deploy set
- clientToken: idempotent token, an ASCII string no longer than 64 bits
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetAccount ¶
GetAccount - get an account of a DDC instance with the specific parameters
PARAMS:
- instanceId: the specific rds Instance's ID
- accountName: the specific account's name
RETURNS:
- *Account: the account's meta
- error: nil if success otherwise the specific error
func (*Client) GetBackupDetail ¶
func (c *Client) GetBackupDetail(instanceId string, snapshotId string) (*BackupDetailResult, error)
GetBackupDetail - get details of the instance'Backup
PARAMS:
- instanceId: the id of the instance
- snapshotId: the id of the backup
RETURNS:
- *BackupDetailResult: the detail of the backup
- error: nil if success otherwise the specific error
func (*Client) GetBackupList ¶
func (c *Client) GetBackupList(instanceId string) (*GetBackupListResult, error)
GetBackupList - get backup list of the instance
PARAMS:
- instanceId: id of the instance
RETURNS:
- *GetBackupListResult: result of the backup list
- error: nil if success otherwise the specific error
func (*Client) GetBinlogDetail ¶
func (c *Client) GetBinlogDetail(instanceId string, binlog string) (*BinlogDetailResult, error)
GetBackupDetail - get details of the instance'Binlog
PARAMS:
- instanceId: the id of the instance
- binlog: the id of the binlog
RETURNS:
- *BackupDetailResult: the detail of the binlog
- error: nil if success otherwise the specific error
func (*Client) GetBinlogList ¶
func (c *Client) GetBinlogList(instanceId string) (*BinlogListResult, error)
GetBackupList - get backup list of the instance
PARAMS:
- instanceId: id of the instance
RETURNS:
- *GetBackupListResult: result of the backup list
- error: nil if success otherwise the specific error
func (*Client) GetDatabase ¶
GetDatabase - get an database of a DDC instance with the specific parameters
PARAMS:
- instanceId: the specific rds Instance's ID
- dbName: the specific database's name
RETURNS:
- *Database: the database's meta
- error: nil if success otherwise the specific error
func (*Client) GetDeploySet ¶
GetDeploySet - get details of the deploy set
PARAMS:
- poolId: the id of the pool
- cli: the client agent which can perform sending request
- deploySetId: the id of the deploy set
RETURNS:
- *DeploySet: the detail of the deploy set
- error: nil if success otherwise the specific error
func (*Client) GetDetail ¶
func (c *Client) GetDetail(instanceId string) (*InstanceModelResult, error)
GetDetail - get details of the instance
PARAMS:
- instanceId: the id of the instance
RETURNS:
- *InstanceModelResult: the detail of the instance
- error: nil if success otherwise the specific error
func (*Client) GetSecurityIps ¶
func (c *Client) GetSecurityIps(instanceId string) (*GetSecurityIpsResult, error)
GetSecurityIps - get all SecurityIps
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *GetSecurityIpsResult: all security IP
- error: nil if success otherwise the specific error
func (*Client) GetZoneList ¶
func (c *Client) GetZoneList() (*GetZoneListResult, error)
GetZoneList - list all zone
PARAMS:
- c: the client agent which can perform sending request
RETURNS:
- *GetZoneListResult: result of the zone list
- error: nil if success otherwise the specific error
func (*Client) ListAccount ¶
func (c *Client) ListAccount(instanceId string) (*ListAccountResult, error)
ListAccount - list all account of a DDC instance with the specific parameters
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *ListAccountResult: the result of list all account, contains all accounts' meta
- error: nil if success otherwise the specific error
func (*Client) ListDatabase ¶
func (c *Client) ListDatabase(instanceId string) (*ListDatabaseResult, error)
ListDatabase - list all database of a DDC instance with the specific parameters
PARAMS:
- instanceId: the specific ddc Instance's ID
RETURNS:
- *ListDatabaseResult: the result of list all database, contains all databases' meta
- error: nil if success otherwise the specific error
func (*Client) ListDdcInstance ¶
func (c *Client) ListDdcInstance(marker *Marker) (*ListDdsResult, error)
ListDdcInstance - list all instances RETURNS:
- *ListDdsResult: the result of list instances with marker
- error: nil if success otherwise the specific error
func (*Client) ListDeploySets ¶
func (cli *Client) ListDeploySets(poolId string, marker *Marker) (*ListDeploySetResult, error)
ListDeploySets - list all deploy sets RETURNS:
- *ListResultWithMarker: the result of list deploy sets with marker
- error: nil if success otherwise the specific error
func (*Client) ListParameters ¶
func (c *Client) ListParameters(instanceId string) (*ListParametersResult, error)
ListParameters - list all parameters of a RDS instance
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *ListParametersResult: the result of list all parameters
- error: nil if success otherwise the specific error
func (*Client) ListRoGroup ¶
func (c *Client) ListRoGroup(instanceId string) (*ListRoGroupResult, error)
ListRoGroup - list all roGroups of a DDC instance with the specific parameters
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *ListRoGroupResult: All roGroups of the current instance
- error: nil if success otherwise the specific error
func (*Client) ListSubnets ¶
func (c *Client) ListSubnets() (*ListSubnetsResult, error)
ListsSubnet - list all Subnets
PARAMS:
- c: the client agent which can perform sending request
- args: the arguments to list all subnets, not necessary
RETURNS:
- *ListSubnetsResult: result of the subnet list
- error: nil if success otherwise the specific error
func (*Client) ListVpc ¶
ListVpc - list all Vpc
PARAMS: RETURNS:
- *ListVpc: All vpc of
- error: nil if success otherwise the specific error
func (*Client) ModifyBackupPolicy ¶
func (c *Client) ModifyBackupPolicy(instanceId string, args *BackupPolicy) error
ModifyBackupPolicy - update backupPolicy
PARAMS:
- instanceId: the specific rds Instance's ID
- Args: the specific rds Instance's BackupPolicy
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) SwitchInstance ¶
SwitchInstance - main standby switching of the instance
PARAMS:
- instanceId: the id of the instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateAccountPassword ¶
func (c *Client) UpdateAccountPassword(instanceId string, accountName string, args *UpdateAccountPasswordArgs) error
UpdateAccountPassword - update a account password with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- accountName: the specific accountName
- args: the arguments to update a account password
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateAccountPrivileges ¶
func (c *Client) UpdateAccountPrivileges(instanceId string, accountName string, args *UpdateAccountPrivilegesArgs) error
UpdateAccountPrivileges - update a account privileges with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- accountName: the specific accountName
- args: the arguments to update a account privileges
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateAccountRemark ¶
func (c *Client) UpdateAccountRemark(instanceId string, accountName string, args *UpdateAccountRemarkArgs) error
UpdateAccountRemark - update a account remark with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- accountName: the specific accountName
- args: the arguments to update a account remark
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateDatabaseRemark ¶
func (c *Client) UpdateDatabaseRemark(instanceId string, dbName string, args *UpdateDatabaseRemarkArgs) error
UpdateDatabaseRemark - update a database remark with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- dbName: the specific accountName
- args: the arguments to update a database remark
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateInstanceName ¶
func (c *Client) UpdateInstanceName(instanceId string, args *UpdateInstanceNameArgs) error
UpdateInstanceNameArgs - update name of a specified instance
PARAMS:
- instanceId: id of the instance
- args: the arguments to update instanceName
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateParameter ¶
func (c *Client) UpdateParameter(instanceId string, args *UpdateParameterArgs) error
UpdateParameter - update Parameter
PARAMS:
- instanceId: the specific rds Instance's ID
- Args: *UpdateParameterArgs
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateSecurityIps ¶
func (c *Client) UpdateSecurityIps(instacneId string, args *UpdateSecurityIpsArgs) error
UpdateSecurityIps - update SecurityIps
PARAMS:
- instanceId: the specific rds Instance's ID
- Args: all SecurityIps
RETURNS:
- error: nil if success otherwise the specific error
type Container ¶
type Container struct { ContainerID string `json:"containerId"` DeployID string `json:"deployId"` DeployName string `json:"deployName"` Engine string `json:"engine"` HostID string `json:"hostId"` HostName string `json:"hostName"` PoolName string `json:"poolName"` Role string `json:"role"` Zone string `json:"zone"` }
type CreateAccountArgs ¶
type CreateAccountArgs struct { ClientToken string `json:"-"` AccountName string `json:"accountName"` Password string `json:"password"` Type AccountType `json:"type"` Remark string `json:"remark"` DatabasePrivileges []DatabasePrivilege `json:"databasePrivileges,omitempty"` }
type CreateDatabaseArgs ¶
type CreateDatabaseArgs struct { ClientToken string `json:"-"` DbName string `json:"dbName"` CharacterSetName string `json:"characterSetName"` Remark string `json:"remark"` AccountPrivileges []AccountPrivilege `json:"accountPrivileges,omitempty"` }
type CreateDeployRequest ¶
type CreateInstanceArgs ¶
type CreateResult ¶
type CreateResult struct {
InstanceIds []string `json:"instanceIds"`
}
type Database ¶
type Database struct { DbName string `json:"dbName"` CharacterSetName string `json:"characterSetName"` DbStatus string `json:"dbStatus"` Remark string `json:"remark"` AccountPrivileges []AccountPrivilege `json:"accountPrivileges"` }
type DatabasePrivilege ¶
type DatabaseResult ¶
type DatabaseResult struct {
Database Database `json:"database"`
}
type DeleteDdcArgs ¶
type DeleteDdcArgs struct {
InstanceIds []string `json:"instanceIds"`
}
type GetBackupListResult ¶
type GetBackupListResult struct {
Snapshots []Snapshot `json:"snapshots"`
}
type GetSecurityIpsResult ¶
type GetSecurityIpsResult struct {
SecurityIps []string `json:"ip"`
}
type GetZoneListResult ¶
type GetZoneListResult struct {
Zones []ZoneName `json:"zones"`
}
type Host ¶
type Host struct { Containers []Container `json:"containers"` Flavor Flavor `json:"flavor"` CPUQuotaTotal int `json:"cpuQuotaTotal"` CPUQuotaUsed int `json:"cpuQuotaUsed"` DeploymentStatus string `json:"deploymentStatus"` DiskQuotaTotal int `json:"diskQuotaTotal"` DiskQuotaUsed int `json:"diskQuotaUsed"` HostID string `json:"hostId"` HostName string `json:"hostName"` ImageType string `json:"imageType"` MemoryQuotaTotal int64 `json:"memoryQuotaTotal"` MemoryQuotaUsed int64 `json:"memoryQuotaUsed"` PnetIP string `json:"pnetIp"` Role string `json:"role"` Status string `json:"status"` SubnetID string `json:"subnetId"` VnetIP string `json:"vnetIp"` VpcID string `json:"vpcId"` Zone string `json:"zone"` }
type Instance ¶
type Instance struct { InstanceName string `json:"instanceName"` SourceInstanceId string `json:"sourceInstanceId"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` CpuCount int `json:"cpuCount"` AllocatedMemoryInGB int `json:"allocatedMemoryInGB"` AllocatedStorageInGB int `json:"allocatedStorageInGB"` AZone string `json:"azone"` VpcId string `json:"vpcId"` SubnetId string `json:"subnetId"` DiskIoType string `json:"diskIoType"` DeployId string `json:"deployId"` PoolId string `json:"poolId"` RoGroupId string `json:"roGroupId"` EnableDelayOff string `json:"enableDelayOff"` DelayThreshold int `json:"delayThreshold"` LeastInstanceAmount int `json:"leastInstanceAmount"` RoGroupWeight int `json:"roGroupWeight"` }
type InstanceModel ¶
type InstanceModel struct { InstanceId string `json:"instanceId"` InstanceName string `json:"instanceName"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` InstanceStatus string `json:"instanceStatus"` CpuCount int `json:"cpuCount"` AllocatedMemoryInGB float64 `json:"allocatedMemoryInGB"` AllocatedStorageInGB int `json:"allocatedStorageInGB"` NodeAmount int `json:"nodeAmount"` UsedStorageInGB float64 `json:"usedStorageInGB"` PublicAccessStatus string `json:"publicAccessStatus"` InstanceCreateTime string `json:"instanceCreateTime"` InstanceExpireTime string `json:"instanceExpireTime"` Endpoint Endpoint `json:"endpoint"` SyncMode string `json:"syncMode"` BackupPolicy BackupPolicy `json:"backupPolicy"` Region string `json:"region"` InstanceType string `json:"instanceType"` SourceInstanceId string `json:"sourceInstanceId"` SourceRegion string `json:"sourceRegion"` ZoneNames []string `json:"zoneNames"` VpcId string `json:"vpcId"` Subnets []SubnetVo `json:"subnets"` NodeMaster NodeInfo `json:"nodeMaster"` NodeSlave NodeInfo `json:"nodeSlave"` Topology Topology `json:"topology"` DiskType string `json:"diskType"` Type string `json:"type"` ApplicationType string `json:"applicationType"` RoGroupList []RoGroup `json:"roGroupList"` }
type InstanceModelResult ¶
type InstanceModelResult struct {
Instance InstanceModel `json:"instance"`
}
type KVParameter ¶
type ListAccountResult ¶
type ListAccountResult struct {
Accounts []Account `json:"accounts"`
}
type ListDatabaseResult ¶
type ListDatabaseResult struct {
Databases []Database `json:"databases"`
}
type ListDdsResult ¶
type ListDdsResult struct { Marker string `json:"marker"` MaxKeys int `json:"maxKeys"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` Result []InstanceModel `json:"result"` }
type ListDeploySetResult ¶
type ListDeploySetResult struct { ListResultWithMarker Result []DeploySet `json:"result"` }
type ListHostResult ¶
type ListHostResult struct { ListResultWithMarker Result []Host `json:"result"` }
type ListParametersResult ¶
type ListParametersResult struct {
Items []Parameter `json:"items"`
}
type ListPoolResult ¶
type ListPoolResult struct { ListResultWithMarker Result []Pool `json:"result"` }
type ListRdsArgs ¶
type ListResultWithMarker ¶
type ListRoGroupResult ¶
type ListRoGroupResult struct {
RoGroups []RoGroup `json:"roGroups"`
}
type ListSubnetsArgs ¶
type ListSubnetsResult ¶
type ListSubnetsResult struct {
Subnets []Subnet `json:"subnets"`
}
type OperateHostRequest ¶
type OperateHostRequest struct {
Action string `json:"action"`
}
type Parameter ¶
type Parameter struct { Name string `json:"name"` DefaultValue string `json:"defaultValue"` Value string `json:"value"` PendingValue string `json:"pendingValue"` Type string `json:"type"` Dynamic bool `json:"dynamic"` Modifiable bool `json:"modifiable"` AllowedValues string `json:"allowedValues"` Desc string `json:"desc"` }
type Pool ¶
type Pool struct { CPUQuotaTotal int `json:"cpuQuotaTotal"` CPUQuotaUsed int `json:"cpuQuotaUsed"` CreateTime string `json:"createTime"` DeployMethod string `json:"deployMethod"` DiskQuotaTotal int `json:"diskQuotaTotal"` DiskQuotaUsed int `json:"diskQuotaUsed"` Engine string `json:"engine"` Hosts []Host `json:"hosts"` MaxMemoryUsedRatio string `json:"maxMemoryUsedRatio"` MemoryQuotaTotal int `json:"memoryQuotaTotal"` MemoryQuotaUsed int `json:"memoryQuotaUsed"` PoolID string `json:"poolId"` PoolName string `json:"poolName"` VpcID string `json:"vpcId"` }
type Snapshot ¶
type Snapshot struct { SnapshotId string `json:"snapshotId"` SnapshotSizeInBytes string `json:"snapshotSizeInBytes"` SnapshotType string `json:"snapshotType"` SnapshotStatus string `json:"snapshotStatus"` SnapshotStartTime string `json:"snapshotStartTime"` SnapshotEndTime string `json:"snapshotEndTime"` }
type SnapshotModel ¶
type SnapshotModel struct { SnapshotId string `json:"snapshotId"` SnapshotSizeInBytes string `json:"snapshotSizeInBytes"` SnapshotType string `json:"snapshotType"` SnapshotStatus string `json:"snapshotStatus"` SnapshotStartTime string `json:"snapshotStartTime"` SnapshotEndTime string `json:"snapshotEndTime"` DownloadUrl string `json:"downloadUrl"` DownloadExpires string `json:"downloadExpires"` }
type Subnet ¶
type Subnet struct { Name string `json:"name"` SubnetId string `json:"subnetId"` ZoneName string `json:"zoneName"` Cidr string `json:"cidr"` ShortId string `json:"shortId"` VpcId string `json:"vpcId"` VpcShortId string `json:"vpcShortId"` Az string `json:"az"` CreatedTime string `json:"createdTime"` UpdatedTime string `json:"updatedTime"` }
type UpdateAccountPasswordArgs ¶
type UpdateAccountPasswordArgs struct {
Password string `json:"password"`
}
type UpdateAccountPrivilegesArgs ¶
type UpdateAccountPrivilegesArgs struct {
DatabasePrivileges []DatabasePrivilege `json:"databasePrivileges"`
}
type UpdateAccountRemarkArgs ¶
type UpdateAccountRemarkArgs struct {
Remark string `json:"remark"`
}
type UpdateDatabaseRemarkArgs ¶
type UpdateDatabaseRemarkArgs struct {
Remark string `json:"remark"`
}
type UpdateInstanceNameArgs ¶
type UpdateInstanceNameArgs struct {
InstanceName string `json:"instanceName"`
}
type UpdateParameterArgs ¶
type UpdateParameterArgs struct {
Parameters []KVParameter `json:"parameters"`
}
type UpdateSecurityIpsArgs ¶
type VpcVo ¶
type VpcVo struct { VpcId string `json:"vpcId"` ShortId string `json:"shortId"` Name string `json:"name"` Cidr string `json:"cidr"` Status int `json:"status"` CreateTime string `json:"createTime"` Description string `json:"description"` DefaultVpc bool `json:"defaultVpc"` Ipv6Cidr string `json:"ipv6Cidr"` AuxiliaryCidr []string `json:"auxiliaryCidr"` Relay bool `json:"relay"` }