models

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 0 Imported by: 3 modules, 2 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 CopyImage

type CopyImage struct {

	/* 复制的新镜像ID。 (Optional) */
	DestinationImageId string `json:"destinationImageId"`

	/* 源镜像ID。 (Optional) */
	SourceImageId string `json:"sourceImageId"`
}

type Disk

type Disk struct {

	/* 创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`

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

	/* 磁盘挂载服务器中的设备名 (Optional) */
	Device string `json:"device"`

	/* 磁盘大小 (Optional) */
	Size int `json:"size"`

	/* 磁盘名称 (Optional) */
	DiskName string `json:"diskName"`

	/* 磁盘的计费方式 (Optional) */
	DiskChargeType string `json:"diskChargeType"`

	/* 磁盘类型 (Optional) */
	DiskType string `json:"diskType"`

	/* 磁盘种类 (Optional) */
	Category string `json:"category"`

	/* 磁盘ID (Optional) */
	DiskId string `json:"diskId"`

	/* 磁盘对应的轻量应用云主机的实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 地域ID (Optional) */
	RegionId string `json:"regionId"`
}

type DomainName

type DomainName struct {

	/*  (Optional) */
	DomainNames []string `json:"domainNames"`
}

type FirewallRule

type FirewallRule struct {

	/* 防火墙规则的备注 (Optional) */
	Remark string `json:"remark"`

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

	/* 防火墙规则ID (Optional) */
	RuleId string `json:"ruleId"`

	/* 规则限定协议。可选值:TCP、UDP、ICMP (Optional) */
	RuleProtocol string `json:"ruleProtocol"`

	/* 源Ip的CRDI格式的地址。例如:0.0.0.0/0、172.16.1.126/32 (Optional) */
	SourceAddress string `json:"sourceAddress"`
}

type Ids

type Ids struct {

	/*  (Optional) */
	LavmIds []string `json:"lavmIds"`
}

type Image

type Image struct {

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

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

	/* 镜像名称 (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像ID (Optional) */
	ImageId string `json:"imageId"`

	/* 镜像的操作系统平台名称 (Optional) */
	Platform string `json:"platform"`

	/* 操作系统架构, 可选值:x86_64、arm64。
	(Optional) */
	Architecture string `json:"architecture"`

	/* 镜像的操作系统类型 (Optional) */
	OsType string `json:"osType"`

	/* 镜像创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`

	/* 镜像icon url (Optional) */
	Icon string `json:"icon"`

	/* 镜像状态。参考 [镜像状态](https://docs.jdcloud.com/virtual-machines/api/image_status)。 (Optional) */
	ImageState string `json:"imageState"`

	/* 镜像系统盘大小。 (Optional) */
	SystemDiskSize string `json:"systemDiskSize"`
}

type Instance

type Instance struct {

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

	/* 实例状态,
	pending	创建中:调用创建轻量应用云主机接口后的中间状态。
	starting	启动中:调用启动轻量应用云主机接口后的中间状态。
	running	运行中:轻量应用云主机的稳定运行状态。
	stopping	停止中:调用停止轻量应用云主机接口后的中间状态。
	stopped	关机:轻量应用云主机处于完全关机的状态。
	rebooting 重启中:调用重启轻量应用云主机接口后的中间状态。
	resetting	重置系统中:调用更换轻量应用云主机镜像接口后的中间状态。
	upgrading	变配中:调用变更轻量应用云主机方案接口后的中间状态。
	deleting	删除中:调用删除轻量应用云主机接口后的中间状态。
	error	错误:轻量应用云主机系统内部出现未知系统异常导致轻量应用云主机出现不可用状态。
	 (Optional) */
	Status string `json:"status"`

	/* 创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`

	/* 内网IP地址 (Optional) */
	InnerIpAddress string `json:"innerIpAddress"`

	/* 计费方式 (Optional) */
	ChargeType string `json:"chargeType"`

	/* 套餐ID (Optional) */
	PlanId string `json:"planId"`

	/* 公网IP地址 (Optional) */
	PublicIpAddress string `json:"publicIpAddress"`

	/* 地域ID (Optional) */
	RegionId string `json:"regionId"`

	/* 到期时间 (Optional) */
	ExpiredTime string `json:"expiredTime"`

	/* 服务器名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 服务器业务状态, normal: 正常, overdue: 预付费已到期
	(Optional) */
	BusinessStatus string `json:"businessStatus"`

	/* 镜像id (Optional) */
	ImageId string `json:"imageId"`

	/* 云主机使用的密钥对名称。 (Optional) */
	KeyNames []string `json:"keyNames"`

	/* 绑定域名列表。 (Optional) */
	Domains []InstanceDomain `json:"domains"`
}

type InstanceDomain

type InstanceDomain struct {

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

	/* 域名名称 (Optional) */
	DomainName string `json:"domainName"`

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

type InstanceTrafficPackageUsage

type InstanceTrafficPackageUsage struct {

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

	/* 流量包当月周期内已使用流量 (Optional) */
	TrafficUsed int `json:"trafficUsed"`

	/* 流量包当月周期内的总流量 (Optional) */
	TrafficPackageTotal int `json:"trafficPackageTotal"`

	/* 流量包当月周期内的剩余流量 (Optional) */
	TrafficPackageRemaining int `json:"trafficPackageRemaining"`

	/* 流量包当月周期内超出流量包额度的流量 (Optional) */
	TrafficOverflow int `json:"trafficOverflow"`
}

type Keypair

type Keypair struct {

	/* 密钥对名称。 (Optional) */
	KeyName string `json:"keyName"`

	/* 产品线 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 密钥对的指纹,根据 `RFC4716` 定义的公钥指纹格式,采用 `MD5` 信息摘要算法。 (Optional) */
	KeyFingerprint string `json:"keyFingerprint"`

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

	/* 绑定了此密钥的轻量云主机ID列表。 (Optional) */
	InstanceIds []string `json:"instanceIds"`
}

type Plan

type Plan struct {

	/* CPU核数 (Optional) */
	Core int `json:"core"`

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

	/* 磁盘容量单位:GB。 (Optional) */
	DiskSize int `json:"diskSize"`

	/* 每月流量单位:GB。 (Optional) */
	Flow int `json:"flow"`

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

	/* 套餐ID (Optional) */
	PlanId string `json:"planId"`

	/* 套餐分类:通用型套餐(字段:universal)、存储型套餐(字段:storage)、企业型套餐(字段:enterprise) (Optional) */
	Classification string `json:"classification"`

	/* 磁盘类型 (Optional) */
	DiskType string `json:"diskType"`

	/* 价格 (Optional) */
	OriginalPrice int `json:"originalPrice"`

	/* 套餐支持的操作系统类型 (Optional) */
	SupportOS string `json:"supportOS"`
}

type Quota

type Quota struct {

	/* 资源类型。支持范围:
	`general_instance`:通用型套餐实例。
	`custom_image`:自定义镜像。
	 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 配额上限。 (Optional) */
	Limit int `json:"limit"`

	/* 已用配额。 (Optional) */
	Used int `json:"used"`
}

type ResourceInfo

type ResourceInfo struct {

	/* 实例id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 实例名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 额外描述信息,包括可续费时长,套餐类型 (Optional) */
	Remark string `json:"remark"`
}

Jump to

Keyboard shortcuts

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