models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 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 Az

type Az struct {

	/* 地域代码,如 cn-east-1 (Optional) */
	Region string `json:"region"`

	/* 可用区代码,如 cn-east-1a (Optional) */
	Az string `json:"az"`

	/* 可用区名称 (Optional) */
	AzName string `json:"azName"`
}

type DeviceType

type DeviceType struct {

	/* 服务器类型英文名称, 如 cps.c.normal (Optional) */
	NameEN string `json:"nameEN"`

	/* 服务器类型中文名称, 如 计算型 (Optional) */
	NameZH string `json:"nameZH"`

	/* 使用场景类型英文描述, 如 standard (Optional) */
	UseTypeEN string `json:"useTypeEN"`

	/* 使用场景类型中文描述, 如 标准型 (Optional) */
	UseTypeZH string `json:"useTypeZH"`

	/* 区域代码, 如 cn-east-1 (Optional) */
	Region string `json:"region"`

	/* CPU概要描述 (Optional) */
	CpuConcise string `json:"cpuConcise"`

	/* CPU详细信息 (Optional) */
	CpuDetail string `json:"cpuDetail"`

	/* 内存概要信息 (Optional) */
	MemConcise string `json:"memConcise"`

	/* 内存详细信息 (Optional) */
	MemDetail string `json:"memDetail"`

	/* 网口概要信息 (Optional) */
	IfConcise string `json:"ifConcise"`

	/* 网口详细信息 (Optional) */
	IfDetail string `json:"ifDetail"`

	/* 系统磁盘概要信息 (Optional) */
	SystemDiskConcise string `json:"systemDiskConcise"`

	/* 系统磁盘详细信息 (Optional) */
	SystemDiskDetail string `json:"systemDiskDetail"`

	/* 系统磁盘概要信息 (Optional) */
	DataDiskConcise string `json:"dataDiskConcise"`

	/* 系统磁盘详细信息 (Optional) */
	DataDiskDetail string `json:"dataDiskDetail"`

	/* GPU概要信息 (Optional) */
	GpuConcise string `json:"gpuConcise"`

	/* GPU详细信息 (Optional) */
	GpuDetail string `json:"gpuDetail"`
}

type Instance

type Instance struct {

	/* 云物理服务器实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 区域代码, 如 cn-east-1 (Optional) */
	Region string `json:"region"`

	/* 可用区, 如 cn-east-1a (Optional) */
	Az string `json:"az"`

	/* 设备类型, 如 cps.c.normal (Optional) */
	DeviceType string `json:"deviceType"`

	/* 云物理服务器名称 (Optional) */
	Name string `json:"name"`

	/* 云物理服务器描述 (Optional) */
	Description string `json:"description"`

	/* 云物理服务器生命周期状态 (Optional) */
	Status string `json:"status"`

	/* 是否启用外网, 如 yes/no (Optional) */
	EnableInternet string `json:"enableInternet"`

	/* 带宽, 单位Mbps (Optional) */
	Bandwidth int `json:"bandwidth"`

	/* 镜像类型, 如 standard/standard_app (Optional) */
	ImageType string `json:"imageType"`

	/* 操作系统类型ID (Optional) */
	OsTypeId string `json:"osTypeId"`

	/* 操作系统名称 (Optional) */
	OsName string `json:"osName"`

	/* 操作系统类型, 如 ubuntu/centos (Optional) */
	OsType string `json:"osType"`

	/* 操作系统版本, 如 16.04 (Optional) */
	OsVersion string `json:"osVersion"`

	/* 系统盘raid类型Id (Optional) */
	SysRaidTypeId string `json:"sysRaidTypeId"`

	/* 系统盘raid类型, 如 NORAID, RAID0, RAID1 (Optional) */
	SysRaidType string `json:"sysRaidType"`

	/* 数据盘raid类型Id (Optional) */
	DataRaidTypeId string `json:"dataRaidTypeId"`

	/* 数据盘raid类型, 如 NORAID, RAID0, RAID1 (Optional) */
	DataRaidType string `json:"dataRaidType"`

	/* 网络类型, 如 basic (Optional) */
	NetworkType string `json:"networkType"`

	/* 外网链路类型, 如 bgp (Optional) */
	LineType string `json:"lineType"`

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

	/* 内网IP (Optional) */
	PrivateIp string `json:"privateIp"`

	/* 公网IP (Optional) */
	PublicIp string `json:"publicIp"`

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

type InstanceSpec

type InstanceSpec struct {

	/* 可用区, 如 cn-east-1  */
	Az string `json:"az"`

	/* 设备类型, 如 cps.c.normal  */
	DeviceType string `json:"deviceType"`

	/* 镜像类型, 取值范围:standard、standard_app  */
	ImageType string `json:"imageType"`

	/* 操作系统类型ID  */
	OsTypeId string `json:"osTypeId"`

	/* 系统盘raid类型Id  */
	SysRaidTypeId string `json:"sysRaidTypeId"`

	/* 数据盘raid类型Id  */
	DataRaidTypeId string `json:"dataRaidTypeId"`

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

	/* 是否启用外网,取值范围:yes、no (Optional) */
	EnableInternet *string `json:"enableInternet"`

	/* 网络类型,目前只支持basic  */
	NetworkType string `json:"networkType"`

	/* 网络CIDR (Optional) */
	Cidr *string `json:"cidr"`

	/* 外网链路类型, 目前只支持bgp (Optional) */
	LineType *string `json:"lineType"`

	/* 外网带宽, 范围[1,200] 单位Mbps (Optional) */
	Bandwidth *int `json:"bandwidth"`

	/* 云物理服务器名称  */
	Name string `json:"name"`

	/* 云物理服务器描述 (Optional) */
	Description *string `json:"description"`

	/* 密码  */
	Password string `json:"password"`

	/* 购买数量  */
	Count int `json:"count"`

	/* 计费配置  */
	Charge *charge.ChargeSpec `json:"charge"`

	/*  (Optional) */
	Softwares []Software `json:"softwares"`
}

type Os

type Os struct {

	/* 操作系统系统类型ID (Optional) */
	OsTypeId string `json:"osTypeId"`

	/* 操作系统系统名称, 如 Ubuntu 16.04(x86_64) (Optional) */
	OsName string `json:"osName"`

	/* 操作系统类型, 如 ubuntu/centos (Optional) */
	OsType string `json:"osType"`

	/* 操作系统版本, 如 14.04/16.04 (Optional) */
	OsVersion string `json:"osVersion"`

	/* 物理机类型, 如 cps.c.normal, (Optional) */
	DeviceType string `json:"deviceType"`
}

type Raid

type Raid struct {

	/* 磁盘类型, 如 system/data (Optional) */
	VolumeType string `json:"volumeType"`

	/* 设备详情 (Optional) */
	VolumeDetail string `json:"volumeDetail"`

	/* Raid类型Id (Optional) */
	RaidTypeId string `json:"raidTypeId"`

	/* Raid类型, 如 NORAID, RAID0, RAID1 (Optional) */
	RaidType string `json:"raidType"`

	/* 云物理服务器类型, 如 cps.c.normal (Optional) */
	DeviceType string `json:"deviceType"`

	/* raid类型描述 (Optional) */
	Description string `json:"description"`
}

type Region

type Region struct {

	/* 地域代码, 如 cn-east-1 (Optional) */
	Region string `json:"region"`

	/* 地域名称,如 华东一区 (Optional) */
	RegionName string `json:"regionName"`

	/* 可用区列表 (Optional) */
	Azs []Az `json:"azs"`
}

type ReinstallInstanceSpec

type ReinstallInstanceSpec struct {

	/* 可用区, 如cn-east-1a  */
	Az string `json:"az"`

	/* 镜像类型, 取值范围:standard、standard_app  */
	ImageType string `json:"imageType"`

	/* OS类型Id  */
	OsTypeId string `json:"osTypeId"`

	/* 系统盘raid类型Id  */
	SysRaidTypeId string `json:"sysRaidTypeId"`

	/* 是否保留数据盘数据, 取值为:yes、no  */
	KeepData string `json:"keepData"`

	/* 数据盘raid类型Id  */
	DataRaidTypeId string `json:"dataRaidTypeId"`

	/* 密码  */
	Password string `json:"password"`

	/*  (Optional) */
	Softwares []Software `json:"softwares"`
}

type Software

type Software struct {

	/* 软件包名称 (Optional) */
	Name *string `json:"name"`

	/* 软件包版本 (Optional) */
	Version *string `json:"version"`

	/* OS类型ID (Optional) */
	OsTypeId *string `json:"osTypeId"`

	/* 软件包描述 (Optional) */
	Description *string `json:"description"`
}

type Subnet

type Subnet struct {

	/* 地域代码, 如cn-east-1 (Optional) */
	Region string `json:"region"`

	/* 可用区, 如cn-east-1a (Optional) */
	Az string `json:"az"`

	/* 子网CIDR (Optional) */
	Cidr string `json:"cidr"`

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

	/* 网络类型 (Optional) */
	NetworkType string `json:"networkType"`
}

Jump to

Keyboard shortcuts

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