uphost

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescribePHostMachineTypeRequest

type DescribePHostMachineTypeRequest struct {
	request.CommonBase

	// 具体机型。若不填写,则返回全部机型
	Type *string `required:"false"`
}

DescribePHostMachineTypeRequest is request schema for DescribePHostMachineType action

type DescribePHostMachineTypeResponse

type DescribePHostMachineTypeResponse struct {
	response.CommonBase

	// 机型列表,模型:PHostMachineTypeSet
	MachineTypes []PHostMachineTypeSet
}

DescribePHostMachineTypeResponse is response schema for DescribePHostMachineType action

type DescribePHostResourceInfoRequest

type DescribePHostResourceInfoRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`
}

DescribePHostResourceInfoRequest is request schema for DescribePHostResourceInfo action

type DescribePHostResourceInfoResponse

type DescribePHostResourceInfoResponse struct {
	response.CommonBase

	// 返回码
	RetCode int

	// 操作名称
	Action string

	// 资源信息
	ResourceInfo []ResourceInfo
}

DescribePHostResourceInfoResponse is response schema for DescribePHostResourceInfo action

type GetPHostKVMInfoRequest

type GetPHostKVMInfoRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

	// PHost资源ID
	PHostId *string `required:"true"`
}

GetPHostKVMInfoRequest is request schema for GetPHostKVMInfo action

type GetPHostKVMInfoResponse

type GetPHostKVMInfoResponse struct {
	response.CommonBase

	// 资源id
	PHostId string

	// kvm配置文件
	PHostKVMConf string

	// 配置文件类型
	PHostConfType string

	// 代理ip
	ProxyIP string
}

GetPHostKVMInfoResponse is response schema for GetPHostKVMInfo action

type PHostCPUSet

type PHostCPUSet struct {

	// CPU型号
	Model string

	// CPU主频
	Frequence float64

	// CPU个数
	Count int

	// CPU核数
	CoreCount int
}

PHostCPUSet - DescribePHost

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type PHostClusterSet

type PHostClusterSet struct {

	// 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G
	Name string

	// 库存状态。枚举值:有库存:Available;无库存:SoldOut
	StockStatus string
}

PHostClusterSet - 物理云主机集群库存信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type PHostComponentSet

type PHostComponentSet struct {

	// 组件名称
	Name string

	// 组件数量
	Count int
}

PHostComponentSet - GetPHostTypeInfo

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type PHostDiskSet

type PHostDiskSet struct {

	// 单盘大小,单位GB
	Space int

	// 磁盘数量
	Count int

	// 磁盘属性
	Type string

	// 磁盘名称,sys/data
	Name string

	// 磁盘IO性能,单位MB/s(待废弃)
	IOCap int
}

PHostDiskSet - GetPHostTypeInfo

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type PHostMachineTypeSet

type PHostMachineTypeSet struct {

	// 机型名
	Name string

	// 物理云主机机型别名,全网唯一。
	Type string

	// CPU信息
	CPU PHostCPUSet

	// 内存大小,单位GB
	Memory int

	// 磁盘信息
	Disks []PHostDiskSet

	// 其他组件信息
	Components PHostComponentSet

	// 集群库存信息
	Clusters []PHostClusterSet

	// 是否支持Raid。枚举值:支持:YES;不支持:NO
	RaidSupported string
}

PHostMachineTypeSet - 物理云主机机型列表

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type ResourceInfo

type ResourceInfo struct {

	// 机型
	Type string

	// 机型当前状态
	ResourceState string
}

ResourceInfo - 资源信息剩余信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type StopPHostRequest

type StopPHostRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

	// PHost资源ID
	PHostId *string `required:"true"`
}

StopPHostRequest is request schema for StopPHost action

type StopPHostResponse

type StopPHostResponse struct {
	response.CommonBase

	// PHost 的资源ID
	PHostId string
}

StopPHostResponse is response schema for StopPHost action

type UPHostClient

type UPHostClient struct {
	*ucloud.Client
}

UPHostClient is the client of UPHost

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UPHostClient

NewClient will return a instance of UPHostClient

func (*UPHostClient) DescribePHostMachineType

DescribePHostMachineType - 获取物理云机型的详细描述信息

func (*UPHostClient) DescribePHostResourceInfo

DescribePHostResourceInfo - 获取物理云资源剩余信息

func (*UPHostClient) GetPHostKVMInfo

GetPHostKVMInfo - 控制台紧急登录功能

func (*UPHostClient) NewDescribePHostMachineTypeRequest

func (c *UPHostClient) NewDescribePHostMachineTypeRequest() *DescribePHostMachineTypeRequest

NewDescribePHostMachineTypeRequest will create request of DescribePHostMachineType action.

func (*UPHostClient) NewDescribePHostResourceInfoRequest

func (c *UPHostClient) NewDescribePHostResourceInfoRequest() *DescribePHostResourceInfoRequest

NewDescribePHostResourceInfoRequest will create request of DescribePHostResourceInfo action.

func (*UPHostClient) NewGetPHostKVMInfoRequest

func (c *UPHostClient) NewGetPHostKVMInfoRequest() *GetPHostKVMInfoRequest

NewGetPHostKVMInfoRequest will create request of GetPHostKVMInfo action.

func (*UPHostClient) NewStopPHostRequest

func (c *UPHostClient) NewStopPHostRequest() *StopPHostRequest

NewStopPHostRequest will create request of StopPHost action.

func (*UPHostClient) StopPHost

func (c *UPHostClient) StopPHost(req *StopPHostRequest) (*StopPHostResponse, error)

StopPHost - 关闭物理机

Jump to

Keyboard shortcuts

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