models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 1 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableZones added in v1.0.10

type AvailableZones struct {

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 是否可售 (Optional) */
	CanSale bool `json:"canSale"`
}

type Backup

type Backup struct {

	/* 备份ID (Optional) */
	BackupId string `json:"backupId"`

	/* 备份名称 (Optional) */
	BackupName string `json:"backupName"`

	/* 备份所属实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 备份状态,Waiting(等待中)、Running(备份中)、Finished(已完成)、(Failed错误) (Optional) */
	BackupStatus string `json:"backupStatus"`

	/* 备份开始时间 (Optional) */
	BackupStartTime string `json:"backupStartTime"`

	/* 备份结束时间 (Optional) */
	BackupEndTime string `json:"backupEndTime"`

	/* 备份模式,Automated(系统自动备份)、Manual(手动备份) (Optional) */
	BackupMode string `json:"backupMode"`

	/* 整个备份集大小,单位:Byte (Optional) */
	BackupSizeByte int `json:"backupSizeByte"`
}

type BackupDownloadURL

type BackupDownloadURL struct {

	/* 备份名称 (Optional) */
	BackupName string `json:"backupName"`

	/* 公网下载链接的地址 (Optional) */
	BackupInternetDownloadURL string `json:"backupInternetDownloadURL"`

	/* 内网下载链接的地址 (Optional) */
	BackupIntranetDownloadURL string `json:"backupIntranetDownloadURL"`

	/* 公网和内网的下载链接过期时间 (Optional) */
	LinkExpiredTime string `json:"linkExpiredTime"`
}

type BackupSynchronicity added in v1.0.10

type BackupSynchronicity struct {

	/* 跨地域备份同步服务ID (Optional) */
	ServiceId string `json:"serviceId"`

	/* MongoDB 实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* MongoDB 实例名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 跨地域备份同步服务状态,正常,running;错误,error (Optional) */
	ServiceStatus string `json:"serviceStatus"`

	/* 源实例所在地域 (Optional) */
	SrcRegion string `json:"srcRegion"`

	/* 跨地域备份同步服务的目的地域 (Optional) */
	DstRegion string `json:"dstRegion"`

	/* 数据库类型 (Optional) */
	Engine string `json:"engine"`

	/* 数据库版本 (Optional) */
	EngineVersion string `json:"engineVersion"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 跨地域备份的最新数据时间点 (Optional) */
	NewestDataTime string `json:"newestDataTime"`
}

type DBInstance

type DBInstance struct {

	/* 实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 实例名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 数据库类型 (Optional) */
	Engine string `json:"engine"`

	/* 数据库版本 (Optional) */
	EngineVersion string `json:"engineVersion"`

	/* 实例规格代码 (Optional) */
	InstanceClass string `json:"instanceClass"`

	/* 存储空间 (Optional) */
	InstanceStorageGB int `json:"instanceStorageGB"`

	/* CPU核数 (Optional) */
	InstanceCPU int `json:"instanceCPU"`

	/* 内存,单位GB (Optional) */
	InstanceMemoryGB int `json:"instanceMemoryGB"`

	/* 可取区ID,依次为主、从、隐藏节点所在可用区 (Optional) */
	AzId []string `json:"azId"`

	/* VPCID (Optional) */
	VpcId string `json:"vpcId"`

	/* 子网ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 副本集名称 (Optional) */
	ReplicaSetName string `json:"replicaSetName"`

	/* 域名 (Optional) */
	InstanceDomain string `json:"instanceDomain"`

	/* 默认库名 (Optional) */
	DBName string `json:"dBName"`

	/* 默认用户名 (Optional) */
	AccountName string `json:"accountName"`

	/* 应用访问端口 (Optional) */
	InstancePort string `json:"instancePort"`

	/* 实例状态.RUNNING:运行, ERROR:错误 ,BUILDING:创建中, DELETING:删除中, RESTORING:恢复中, RESIZING:变配中 (Optional) */
	InstanceStatus string `json:"instanceStatus"`

	/* 自动备份保留时间 (Optional) */
	BackupRetentionPeriod int `json:"backupRetentionPeriod"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 自动备份时间,如:00:00-02:00,表示0点到2点进行数据库自动备份 (Optional) */
	PreferredBackupWindow string `json:"preferredBackupWindow"`

	/* 系统维护时间,如:00:00-02:00,表示0点到2点进行系统维护 (Optional) */
	PreferredmaintenanceWindow string `json:"preferredmaintenanceWindow"`

	/* 计费信息 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 是否设置白名单,true:已设置,false:未设置 (Optional) */
	IsSetSecurityIps bool `json:"isSetSecurityIps"`
}

type DBInstanceSpec

type DBInstanceSpec struct {

	/* 实例名称,只支持数字、字母、英文下划线、中文,且不少于2字符不超过32字符。 (Optional) */
	InstanceName *string `json:"instanceName"`

	/* 数据库类型,MongoDB (Optional) */
	Engine *string `json:"engine"`

	/* 数据库版本,3.2 (Optional) */
	EngineVersion *string `json:"engineVersion"`

	/* 实例规格代码。mongo.s1.small:1核2G;mongo.s1.medium:2核4G;mongo.s1.large:4核8G;mongo.s1.xlarge:8核16G;mongo.s2.2xlarge:8核32G;mongo.s2.4xlarge:16核64G;  */
	InstanceClass string `json:"instanceClass"`

	/* 存储空间,单位GB,取值10-1000,10的倍数。  */
	InstanceStorageGB int `json:"instanceStorageGB"`

	/* 是否选择多可用区部署  */
	MultiAZ bool `json:"multiAZ"`

	/* 可用区ID,必填,第一个ID为primary所在可用区ID,第二个为secondary,第三个为hidden。multiAZ选择是,则primary与secondary的可用区ID需相同,且与hidden不同;multiAZ选择否,三个节点写相同的可用区ID。  */
	AzId []string `json:"azId"`

	/* VPCID  */
	VpcId string `json:"vpcId"`

	/* 子网ID  */
	SubnetId string `json:"subnetId"`

	/* 密码,必须包含且只支持字母及数字,不少于8字符不超过16字符。 (Optional) */
	Password *string `json:"password"`

	/* 按备份创建使用的具体备份ID (Optional) */
	BackupId *string `json:"backupId"`

	/* 基于一个实例的备份创建新实例,如填写则restoreTime也需要填写。 (Optional) */
	OriginDBInstanceId *string `json:"originDBInstanceId"`

	/* 用户指定备份保留周期内的任意时间点,如2011-06-11T16:00:00Z,非必填,与backupId互斥。 (Optional) */
	RestoreTime *string `json:"restoreTime"`
}

type Flavor added in v1.0.10

type Flavor struct {

	/* CPU核数 (Optional) */
	Cpu int `json:"cpu"`

	/* 内存 ,单位GB (Optional) */
	Memory int `json:"memory"`

	/* iops (Optional) */
	Iops int `json:"iops"`

	/* 最大连接数 (Optional) */
	MaxLink int `json:"maxLink"`

	/* 最大磁盘数,单位GB (Optional) */
	MaxDisk int `json:"maxDisk"`

	/* 最下磁盘数,单位GB (Optional) */
	MinDisk int `json:"minDisk"`

	/* 磁盘步长 (Optional) */
	DiskStep int `json:"diskStep"`
}

type MongodbInfos added in v1.0.10

type MongodbInfos struct {

	/* 实例ID (Optional) */
	SpaceId string `json:"spaceId"`

	/* 状态描述 (Optional) */
	Status string `json:"status"`
}

type Quota added in v1.0.10

type Quota struct {

	/* 总配额 (Optional) */
	Total int `json:"total"`

	/* 已用 (Optional) */
	Use int `json:"use"`
}

type SpaceId added in v1.0.10

type SpaceId struct {

	/* 实例ID (Optional) */
	SpaceId string `json:"spaceId"`

	/* 状态描述 (Optional) */
	Status string `json:"status"`
}

type Topology added in v1.0.10

type Topology struct {

	/* 主 (Optional) */
	Primary TopologyPair `json:"primary"`

	/* 备 (Optional) */
	Secondary []TopologyPair `json:"secondary"`

	/* 隐藏 (Optional) */
	Hidden []TopologyPair `json:"hidden"`
}

type TopologyPair added in v1.0.10

type TopologyPair struct {

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* ip地址 (Optional) */
	Ip string `json:"ip"`

	/* 端口 (Optional) */
	Port string `json:"port"`
}

Jump to

Keyboard shortcuts

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