models

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 1 Imported by: 10 modules, 9 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 AliasIp

type AliasIp struct {

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

	/* 地域 (Optional) */
	Region string `json:"region"`

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

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

	/* 次要cidr ID (Optional) */
	SecondaryCidrId string `json:"secondaryCidrId"`

	/* 别名IP ID (Optional) */
	AliasIpId string `json:"aliasIpId"`

	/* cidr段 (Optional) */
	Cidr string `json:"cidr"`
}

type AliasIpErrorInfo

type AliasIpErrorInfo struct {

	/* cidr段 (Optional) */
	Cidr string `json:"cidr"`

	/* 错误信息 (Optional) */
	Message string `json:"message"`
}

type AliasIpInfo

type AliasIpInfo struct {

	/* 主CIDR或次要CIDR id (Optional) */
	Id *string `json:"id"`

	/* cidr段 (Optional) */
	Cidr *string `json:"cidr"`
}

type AliasIpSpec

type AliasIpSpec struct {

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

	/* 别名ip配置 (Optional) */
	AliasIps []AliasIpInfo `json:"aliasIps"`
}

type AliasIpSuccessInfo

type AliasIpSuccessInfo struct {

	/* 别名IP id (Optional) */
	AliasIpId string `json:"aliasIpId"`

	/* cidr段 (Optional) */
	Cidr string `json:"cidr"`
}

type Az

type Az struct {

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

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

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

type DeviceType

type DeviceType struct {

	/* 实例类型, 如 edcps.c.normal1 (Optional) */
	DeviceType string `json:"deviceType"`

	/* 实例类型名称, 如 边缘标准计算型Ⅰ (Optional) */
	Name string `json:"name"`

	/* 实例所属规格系列,如 计算、存储、GPU (Optional) */
	Family string `json:"family"`

	/* 区域代码, 如 cn-east-tz1 (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"`

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

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

	/* 系统盘数量 (Optional) */
	SystemDiskAmount int `json:"systemDiskAmount"`

	/* 系统盘单盘大小(GB) (Optional) */
	SystemDiskSize int `json:"systemDiskSize"`

	/* 系统盘规格 (Optional) */
	SystemDiskModel string `json:"systemDiskModel"`

	/* 数据盘数量 (Optional) */
	DataDiskAmount int `json:"dataDiskAmount"`

	/* 数据盘单盘大小(GB) (Optional) */
	DataDiskSize int `json:"dataDiskSize"`

	/* 数据盘规格 (Optional) */
	DataDiskModel string `json:"dataDiskModel"`

	/* 售罄状态 (Optional) */
	IsSoldOut bool `json:"isSoldOut"`
}

type ElasticIp

type ElasticIp struct {

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

	/* 弹性公网IPID (Optional) */
	ElasticIpId string `json:"elasticIpId"`

	/* 弹性公网IP (Optional) */
	ElasticIp string `json:"elasticIp"`

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

	/* 额外上行带宽, 单位Mbps (Optional) */
	ExtraUplinkBandwidth int `json:"extraUplinkBandwidth"`

	/* 链路类型 (Optional) */
	LineType string `json:"lineType"`

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

	/* 实例类型 (Optional) */
	InstanceType string `json:"instanceType"`

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

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

	/* 别名IP id (Optional) */
	AliasIpId string `json:"aliasIpId"`

	/* 别名IP ip (Optional) */
	AliasIp string `json:"aliasIp"`

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

type ElasticIpSpec

type ElasticIpSpec struct {

	/* 带宽, 范围[1,10240] 单位Mbps  */
	Bandwidth int `json:"bandwidth"`

	/* 额外上行带宽, 范围[0,10240] 单位Mbps (Optional) */
	ExtraUplinkBandwidth *int `json:"extraUplinkBandwidth"`

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

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

type Instance

type Instance struct {

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

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

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

	/* 实例类型, 如 edcps.c.normal1 (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"`

	/* 是否启用IPv6, 如 yes/no (Optional) */
	EnableIpv6 string `json:"enableIpv6"`

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

	/* 额外上行带宽, 单位Mbps (Optional) */
	ExtraUplinkBandwidth int `json:"extraUplinkBandwidth"`

	/* 镜像类型, 如 standard (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, vpc (Optional) */
	NetworkType string `json:"networkType"`

	/* 私有网络ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 私有网络名称 (Optional) */
	VpcName string `json:"vpcName"`

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

	/* 子网名称 (Optional) */
	SubnetName string `json:"subnetName"`

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

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

	/* 弹性公网IPID (Optional) */
	ElasticIpId string `json:"elasticIpId"`

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

	/* 公网IPv6 (Optional) */
	PublicIpv6 string `json:"publicIpv6"`

	/* 密钥对id (Optional) */
	KeypairId string `json:"keypairId"`

	/* agent状态 (Optional) */
	AgentStatus string `json:"agentStatus"`

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

type InstanceSpec

type InstanceSpec struct {

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

	/* 实例类型, 如 edcps.c.normal1  */
	DeviceType string `json:"deviceType"`

	/* 主机名 (Optional) */
	Hostname *string `json:"hostname"`

	/* 镜像类型, 取值范围:standard  */
	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"`

	/* 网络类型,取值范围:vpc  */
	NetworkType string `json:"networkType"`

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

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

	/* 外网链路类型, 目前支持联通un、电信ct、移动cm (Optional) */
	LineType *string `json:"lineType"`

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

	/* 额外上行带宽, 范围[0,10240] 单位Mbps (Optional) */
	ExtraUplinkBandwidth *int `json:"extraUplinkBandwidth"`

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

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

	/* 密码,不传值会随机生成密码 (Optional) */
	Password *string `json:"password"`

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

	/* 可执行脚本Base64编码后的内容,支持shell和python脚本 (Optional) */
	UserData *string `json:"userData"`

	/* 密钥对id (Optional) */
	KeypairId *string `json:"keypairId"`

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

	/* 别名ip配置 (Optional) */
	AliasIps []AliasIpInfo `json:"aliasIps"`
}

type Keypair

type Keypair struct {

	/* 密钥对id (Optional) */
	KeypairId string `json:"keypairId"`

	/* 地域 (Optional) */
	Region string `json:"region"`

	/* 密钥对名称 (Optional) */
	Name string `json:"name"`

	/* 公钥 (Optional) */
	PublicKey string `json:"publicKey"`

	/* 指纹 (Optional) */
	FingerPrint string `json:"fingerPrint"`

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

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type LineType

type LineType struct {

	/* 链路类型 (Optional) */
	LineType string `json:"lineType"`

	/* 地域 (Optional) */
	Region string `json:"region"`
}

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"`

	/* 实例类型, 如 edcps.c.normal1 (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"`

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

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

type Region

type Region struct {

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

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

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

type ReinstallInstanceSpec

type ReinstallInstanceSpec struct {

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

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

	/* 操作系统类型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) */
	Hostname *string `json:"hostname"`

	/* 可执行脚本Base64编码后的内容,支持shell和python脚本 (Optional) */
	UserData *string `json:"userData"`

	/* 密钥对id (Optional) */
	KeypairId *string `json:"keypairId"`
}

type RenewalResource

type RenewalResource struct {

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`

	/* 绑定资源列表 (Optional) */
	Bind []RenewalResource `json:"bind"`
}

type ResourceStock

type ResourceStock struct {

	/* 实例类型, 如 edcps.c.normal1 (Optional) */
	DeviceType string `json:"deviceType"`

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

	/* 可用库存 (Optional) */
	Available int `json:"available"`
}

type SecondaryCidr

type SecondaryCidr struct {

	/* 次要cidr的ID (Optional) */
	SecondaryCidrId string `json:"secondaryCidrId"`

	/* 次要cidr (Optional) */
	Cidr string `json:"cidr"`

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

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

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

	/* 次要cidr名称 (Optional) */
	Name string `json:"name"`

	/* 私有网络Id (Optional) */
	VpcId string `json:"vpcId"`

	/* 私有网络名称 (Optional) */
	VpcName string `json:"vpcName"`

	/* 可用ip数量 (Optional) */
	AvailableIpCount int `json:"availableIpCount"`

	/* 总ip数量 (Optional) */
	TotalIpCount int `json:"totalIpCount"`
}

type SecondaryCidrSpec

type SecondaryCidrSpec struct {

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

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

	/* 名称 (Optional) */
	Name *string `json:"name"`
}

type Subnet

type Subnet struct {

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

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

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

	/* 子网名称 (Optional) */
	Name string `json:"name"`

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

	/* 私有网络Id (Optional) */
	VpcId string `json:"vpcId"`

	/* 私有网络名称 (Optional) */
	VpcName string `json:"vpcName"`

	/* 可用ip数量 (Optional) */
	AvailableIpCount int `json:"availableIpCount"`

	/* 总ip数量 (Optional) */
	TotalIpCount int `json:"totalIpCount"`

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

	/* 描述 (Optional) */
	Description string `json:"description"`

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

type SubnetSpec

type SubnetSpec struct {

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

	/* 私有网络ID  */
	VpcId string `json:"vpcId"`

	/* 子网的网络范围  */
	Cidr string `json:"cidr"`

	/* 子网的次要cidr (Optional) */
	SecondaryCidr *string `json:"secondaryCidr"`

	/* 子网的次要cidr名称 (Optional) */
	SecondaryCidrName *string `json:"secondaryCidrName"`

	/* 名称  */
	Name string `json:"name"`

	/* 描述  */
	Description string `json:"description"`
}

type Vpc

type Vpc struct {

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

	/* 私有网络ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 私有网络名称 (Optional) */
	Name string `json:"name"`

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

	/* 描述 (Optional) */
	Description string `json:"description"`

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

type VpcSpec

type VpcSpec struct {

	/* 私有网络范围  */
	Cidr string `json:"cidr"`

	/* 名称  */
	Name string `json:"name"`

	/* 描述  */
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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