model

package
v0.1.82 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Absolute

type Absolute struct {

	// 裸金属服务器最大申请数量
	MaxTotalInstances *int32 `json:"maxTotalInstances,omitempty"`

	// CPU核数最大申请数量
	MaxTotalCores *int32 `json:"maxTotalCores,omitempty"`

	// 内存最大申请容量(单位:MB)
	MaxTotalRAMSize *int32 `json:"maxTotalRAMSize,omitempty"`

	// 可以申请的SSH密钥对最大数量
	MaxTotalKeypairs *int32 `json:"maxTotalKeypairs,omitempty"`

	// 可输入元数据的最大长度
	MaxServerMeta *int32 `json:"maxServerMeta,omitempty"`

	// 可注入文件的最大个数
	MaxPersonality *int32 `json:"maxPersonality,omitempty"`

	// 注入文件内容的最大长度(单位:Byte)
	MaxPersonalitySize *int32 `json:"maxPersonalitySize,omitempty"`

	// 服务器组的最大个数
	MaxServerGroups *int32 `json:"maxServerGroups,omitempty"`

	// 服务器组中的最大裸金属服务器数。
	MaxServerGroupMembers *int32 `json:"maxServerGroupMembers,omitempty"`

	// 已使用的服务器组个数
	TotalServerGroupsUsed *int32 `json:"totalServerGroupsUsed,omitempty"`

	// 安全组最大使用个数。 说明:具体配额限制请以VPC配额限制为准。
	MaxSecurityGroups *int32 `json:"maxSecurityGroups,omitempty"`

	// 安全组中安全组规则最大的配置个数。 说明:具体配额限制请以VPC配额限制为准。
	MaxSecurityGroupRules *int32 `json:"maxSecurityGroupRules,omitempty"`

	// 最大的浮动IP使用个数
	MaxTotalFloatingIps *int32 `json:"maxTotalFloatingIps,omitempty"`

	// 镜像元数据最大的长度
	MaxImageMeta *int32 `json:"maxImageMeta,omitempty"`

	// 当前裸金属服务器使用个数
	TotalInstancesUsed *int32 `json:"totalInstancesUsed,omitempty"`

	// 当前已使用CPU核数
	TotalCoresUsed *int32 `json:"totalCoresUsed,omitempty"`

	// 当前内存使用容量(单位:MB)
	TotalRAMUsed *int32 `json:"totalRAMUsed,omitempty"`

	// 当前安全组使用个数
	TotalSecurityGroupsUsed *int32 `json:"totalSecurityGroupsUsed,omitempty"`

	// 当前浮动IP使用个数
	TotalFloatingIpsUsed *int32 `json:"totalFloatingIpsUsed,omitempty"`
}

Absolute absolute数据结构说明

func (Absolute) String

func (o Absolute) String() string

type AddServerNicsReq added in v0.1.6

type AddServerNicsReq struct {

	//
	Nics []ServerNicsReq `json:"nics"`
}

AddServerNicsReq This is a auto create Body Object

func (AddServerNicsReq) String added in v0.1.6

func (o AddServerNicsReq) String() string

type AddServerNicsRequest added in v0.1.6

type AddServerNicsRequest struct {
	ServerId string `json:"server_id"`

	Body *AddServerNicsReq `json:"body,omitempty"`
}

AddServerNicsRequest Request Object

func (AddServerNicsRequest) String added in v0.1.6

func (o AddServerNicsRequest) String() string

type AddServerNicsResponse added in v0.1.6

type AddServerNicsResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddServerNicsResponse Response Object

func (AddServerNicsResponse) String added in v0.1.6

func (o AddServerNicsResponse) String() string

type Address

type Address struct {

	// IP地址版本。4:代表IPv4。6:代表IPv6。
	Version *AddressVersion `json:"version,omitempty"`

	// IP地址
	Addr *string `json:"addr,omitempty"`

	// IP地址类型。fixed:代表私有IP地址。floating:代表浮动IP地址。
	OSEXTIPStype *AddressOSEXTIPStype `json:"OS-EXT-IPS:type,omitempty"`

	// MAC地址
	OSEXTIPSMACmacAddr *string `json:"OS-EXT-IPS-MAC:mac_addr,omitempty"`

	// IP地址对应的端口ID
	OSEXTIPSportId *string `json:"OS-EXT-IPS:port_id,omitempty"`
}

Address 虚拟私有云ID字段数据结构说明

func (Address) String

func (o Address) String() string

type AddressInfo

type AddressInfo struct {

	// IP地址版本。4:代表IPv4。6:代表IPv6。
	Version string `json:"version"`

	// IP地址
	Addr string `json:"addr"`

	// IP地址类型。fixed:代表私有IP地址。floating:代表浮动IP地址。
	OSEXTIPStype *AddressInfoOSEXTIPStype `json:"OS-EXT-IPS:type,omitempty"`

	// MAC地址。
	OSEXTIPSMACmacAddr *string `json:"OS-EXT-IPS-MAC:mac_addr,omitempty"`

	// IP地址对应的端口ID
	OSEXTIPSportId *string `json:"OS-EXT-IPS:port_id,omitempty"`
}

AddressInfo address数据结构说明

func (AddressInfo) String

func (o AddressInfo) String() string

type AddressInfoOSEXTIPStype

type AddressInfoOSEXTIPStype struct {
	// contains filtered or unexported fields
}

func (AddressInfoOSEXTIPStype) MarshalJSON

func (c AddressInfoOSEXTIPStype) MarshalJSON() ([]byte, error)

func (*AddressInfoOSEXTIPStype) UnmarshalJSON

func (c *AddressInfoOSEXTIPStype) UnmarshalJSON(b []byte) error

func (AddressInfoOSEXTIPStype) Value added in v0.0.90

func (c AddressInfoOSEXTIPStype) Value() string

type AddressInfoOSEXTIPStypeEnum

type AddressInfoOSEXTIPStypeEnum struct {
	FIXED    AddressInfoOSEXTIPStype
	FLOATING AddressInfoOSEXTIPStype
}

func GetAddressInfoOSEXTIPStypeEnum

func GetAddressInfoOSEXTIPStypeEnum() AddressInfoOSEXTIPStypeEnum

type AddressOSEXTIPStype

type AddressOSEXTIPStype struct {
	// contains filtered or unexported fields
}

func (AddressOSEXTIPStype) MarshalJSON

func (c AddressOSEXTIPStype) MarshalJSON() ([]byte, error)

func (*AddressOSEXTIPStype) UnmarshalJSON

func (c *AddressOSEXTIPStype) UnmarshalJSON(b []byte) error

func (AddressOSEXTIPStype) Value added in v0.0.90

func (c AddressOSEXTIPStype) Value() string

type AddressOSEXTIPStypeEnum

type AddressOSEXTIPStypeEnum struct {
	FIXED    AddressOSEXTIPStype
	FLOATING AddressOSEXTIPStype
}

func GetAddressOSEXTIPStypeEnum

func GetAddressOSEXTIPStypeEnum() AddressOSEXTIPStypeEnum

type AddressVersion

type AddressVersion struct {
	// contains filtered or unexported fields
}

func (AddressVersion) MarshalJSON

func (c AddressVersion) MarshalJSON() ([]byte, error)

func (*AddressVersion) UnmarshalJSON

func (c *AddressVersion) UnmarshalJSON(b []byte) error

func (AddressVersion) Value added in v0.0.90

func (c AddressVersion) Value() int32

type AddressVersionEnum

type AddressVersionEnum struct {
	E_4 AddressVersion
	E_6 AddressVersion
}

func GetAddressVersionEnum

func GetAddressVersionEnum() AddressVersionEnum

type Addresses

type Addresses struct {

	// 裸金属服务器所属网络信息。key表示裸金属服务器使用的虚拟私有云的ID。value为网络详细信息
	VpcId []Address `json:"vpc_id"`
}

Addresses addresses字段数据结构说明

func (Addresses) String

func (o Addresses) String() string

type AttachBaremetalServerVolumeRequest

type AttachBaremetalServerVolumeRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`

	Body *AttachVolumeBody `json:"body,omitempty"`
}

AttachBaremetalServerVolumeRequest Request Object

func (AttachBaremetalServerVolumeRequest) String

type AttachBaremetalServerVolumeResponse

type AttachBaremetalServerVolumeResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AttachBaremetalServerVolumeResponse Response Object

func (AttachBaremetalServerVolumeResponse) String

type AttachVolumeBody

type AttachVolumeBody struct {
	VolumeAttachment *VolumeAttachment `json:"volumeAttachment"`
}

AttachVolumeBody 裸金属服务器挂载云硬盘接口请求结构体

func (AttachVolumeBody) String

func (o AttachVolumeBody) String() string

type BandWidth

type BandWidth struct {

	// 带宽名称
	Name *string `json:"name,omitempty"`

	// 带宽的共享类型。共享类型枚举:PER,表示独享;WHOLE,表示共享
	Sharetype BandWidthSharetype `json:"sharetype"`

	// 共享带宽ID。创建WHOLE类型带宽的弹性公网IP时可以指定之前的共享带宽创建。共享带宽的使用限制请参见“共享带宽简介”。 说明:当创建WHOLE类型的带宽时,该字段必选。
	Id *string `json:"id,omitempty"`

	// 取值范围:默认5Mbit/s~2000Mbit/s(具体范围以各Region配置为准,请参见管理控制台对应页面显示)。功能说明:带宽大小。共享带宽的大小有最小值限制,默认为5M。 说明:如果传入的参数为小数(如10.2)或者字符类型(如10),会自动强制转换为整数。带宽小于300Mbit/s时,步长支持1Mbit/s;带宽为300Mbit/s~1000Mbit/s时,步长支持50Mbit/s;带宽为1000Mbit/s~2000Mbit/s时,步长支持1000Mbit/s。如果sharetype是PER,该参数必选;如果sharetype是WHOLE并且id有值,该参数会忽略。
	Size int32 `json:"size"`

	// 带宽的计费类型。取值为:traffic(按流量计费)、bandwidth(按带宽计费)未传该字段,表示按带宽计费。字段值为空,表示按带宽计费。 说明:如果sharetype是WHOLE并且id有值,仅支持按带宽计费,该参数会忽略。
	Chargemode *BandWidthChargemode `json:"chargemode,omitempty"`
}

BandWidth bandwidth字段数据结构说明

func (BandWidth) String

func (o BandWidth) String() string

type BandWidthChargemode

type BandWidthChargemode struct {
	// contains filtered or unexported fields
}

func (BandWidthChargemode) MarshalJSON

func (c BandWidthChargemode) MarshalJSON() ([]byte, error)

func (*BandWidthChargemode) UnmarshalJSON

func (c *BandWidthChargemode) UnmarshalJSON(b []byte) error

func (BandWidthChargemode) Value added in v0.0.90

func (c BandWidthChargemode) Value() string

type BandWidthChargemodeEnum

type BandWidthChargemodeEnum struct {
	TRAFFIC   BandWidthChargemode
	BANDWIDTH BandWidthChargemode
}

func GetBandWidthChargemodeEnum

func GetBandWidthChargemodeEnum() BandWidthChargemodeEnum

type BandWidthSharetype

type BandWidthSharetype struct {
	// contains filtered or unexported fields
}

func (BandWidthSharetype) MarshalJSON

func (c BandWidthSharetype) MarshalJSON() ([]byte, error)

func (*BandWidthSharetype) UnmarshalJSON

func (c *BandWidthSharetype) UnmarshalJSON(b []byte) error

func (BandWidthSharetype) Value added in v0.0.90

func (c BandWidthSharetype) Value() string

type BandWidthSharetypeEnum

type BandWidthSharetypeEnum struct {
	PER   BandWidthSharetype
	WHOLE BandWidthSharetype
}

func GetBandWidthSharetypeEnum

func GetBandWidthSharetypeEnum() BandWidthSharetypeEnum

type BaremetalServerTag

type BaremetalServerTag struct {

	// 键。  - 最大长度127个unicode字符。  - key不能为空。
	Key string `json:"key"`

	// 值列表。  - 最多20个value。  - value不允许重复。  - 每个值最大长度255个unicode字符。  - 如果values为空则表示any_value。  - value之间为或的关系。
	Value *string `json:"value,omitempty"`
}

BaremetalServerTag

func (BaremetalServerTag) String

func (o BaremetalServerTag) String() string

type BatchCreateBaremetalServerTagsRequest

type BatchCreateBaremetalServerTagsRequest struct {

	// 裸金属服务器ID。
	ServerId string `json:"server_id"`

	Body *BatchCreateBaremetalServerTagsRequestBody `json:"body,omitempty"`
}

BatchCreateBaremetalServerTagsRequest Request Object

func (BatchCreateBaremetalServerTagsRequest) String

type BatchCreateBaremetalServerTagsRequestBody

type BatchCreateBaremetalServerTagsRequestBody struct {

	// 操作标识(仅支持小写):create(创建)。
	Action BatchCreateBaremetalServerTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []BaremetalServerTag `json:"tags"`
}

BatchCreateBaremetalServerTagsRequestBody This is a auto create Body Object

func (BatchCreateBaremetalServerTagsRequestBody) String

type BatchCreateBaremetalServerTagsRequestBodyAction

type BatchCreateBaremetalServerTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (BatchCreateBaremetalServerTagsRequestBodyAction) MarshalJSON

func (*BatchCreateBaremetalServerTagsRequestBodyAction) UnmarshalJSON

func (BatchCreateBaremetalServerTagsRequestBodyAction) Value added in v0.0.90

type BatchCreateBaremetalServerTagsRequestBodyActionEnum

type BatchCreateBaremetalServerTagsRequestBodyActionEnum struct {
	CREATE BatchCreateBaremetalServerTagsRequestBodyAction
}

type BatchCreateBaremetalServerTagsResponse

type BatchCreateBaremetalServerTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchCreateBaremetalServerTagsResponse Response Object

func (BatchCreateBaremetalServerTagsResponse) String

type BatchDeleteBaremetalServerTagsRequest

type BatchDeleteBaremetalServerTagsRequest struct {
	ServerId string `json:"server_id"`

	Body *BatchDeleteBaremetalServerTagsRequestBody `json:"body,omitempty"`
}

BatchDeleteBaremetalServerTagsRequest Request Object

func (BatchDeleteBaremetalServerTagsRequest) String

type BatchDeleteBaremetalServerTagsRequestBody

type BatchDeleteBaremetalServerTagsRequestBody struct {

	// 操作标识(仅支持小写):delete(删除)。
	Action BatchDeleteBaremetalServerTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []BaremetalServerTag `json:"tags"`
}

BatchDeleteBaremetalServerTagsRequestBody This is a auto create Body Object

func (BatchDeleteBaremetalServerTagsRequestBody) String

type BatchDeleteBaremetalServerTagsRequestBodyAction

type BatchDeleteBaremetalServerTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (BatchDeleteBaremetalServerTagsRequestBodyAction) MarshalJSON

func (*BatchDeleteBaremetalServerTagsRequestBodyAction) UnmarshalJSON

func (BatchDeleteBaremetalServerTagsRequestBodyAction) Value added in v0.0.90

type BatchDeleteBaremetalServerTagsRequestBodyActionEnum

type BatchDeleteBaremetalServerTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteBaremetalServerTagsRequestBodyAction
}

type BatchDeleteBaremetalServerTagsResponse

type BatchDeleteBaremetalServerTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchDeleteBaremetalServerTagsResponse Response Object

func (BatchDeleteBaremetalServerTagsResponse) String

type BatchRebootBaremetalServersRequest

type BatchRebootBaremetalServersRequest struct {
	Body *RebootBody `json:"body,omitempty"`
}

BatchRebootBaremetalServersRequest Request Object

func (BatchRebootBaremetalServersRequest) String

type BatchRebootBaremetalServersResponse

type BatchRebootBaremetalServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchRebootBaremetalServersResponse Response Object

func (BatchRebootBaremetalServersResponse) String

type BatchStartBaremetalServersRequest

type BatchStartBaremetalServersRequest struct {
	Body *OsStartBody `json:"body,omitempty"`
}

BatchStartBaremetalServersRequest Request Object

func (BatchStartBaremetalServersRequest) String

type BatchStartBaremetalServersResponse

type BatchStartBaremetalServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchStartBaremetalServersResponse Response Object

func (BatchStartBaremetalServersResponse) String

type BatchStopBaremetalServersRequest

type BatchStopBaremetalServersRequest struct {
	Body *OsStopBody `json:"body,omitempty"`
}

BatchStopBaremetalServersRequest Request Object

func (BatchStopBaremetalServersRequest) String

type BatchStopBaremetalServersResponse

type BatchStopBaremetalServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchStopBaremetalServersResponse Response Object

func (BatchStopBaremetalServersResponse) String

type ChangeBaremetalNameBody

type ChangeBaremetalNameBody struct {
	Server *ChangeBaremetalNameServer `json:"server"`
}

ChangeBaremetalNameBody 修改裸金属服务器名称接口请求结构体

func (ChangeBaremetalNameBody) String

func (o ChangeBaremetalNameBody) String() string

type ChangeBaremetalNameResponsesServers

type ChangeBaremetalNameResponsesServers struct {

	// 裸金属服务器名称
	Name *string `json:"name,omitempty"`

	// 裸金属服务器唯一标识ID
	Id *string `json:"id,omitempty"`

	// 裸金属服务器当前状态。ACTIVE:运行中/正在关机/删除中BUILD:创建中ERROR:故障HARD_REBOOT:强制重启中REBOOT:重启中 SHUTOFF:关机/正在开机/删除中/重建中/重装操作系统中/重装操作系统失败/冻结
	Status *ChangeBaremetalNameResponsesServersStatus `json:"status,omitempty"`

	// 裸金属服务器创建时间。时间戳格式为ISO 8601:YYYY-MM-DDTHH:MM:SSZ,例如:2019-05-22T03:30:52Z
	Created *sdktime.SdkTime `json:"created,omitempty"`

	// 裸金属服务器上一次更新时间。时间戳格式为ISO 8601:YYYY-MM-DDTHH:MM:SSZ,例如:2019-05-22T04:30:52Z
	Updated *sdktime.SdkTime `json:"updated,omitempty"`

	Flavor *FlavorInfo `json:"flavor,omitempty"`

	Image *Image `json:"image,omitempty"`

	// 裸金属服务器所属租户ID,格式为UUID。该参数和project_id表示相同的概念。
	TenantId *string `json:"tenant_id,omitempty"`

	// SSH密钥名称
	KeyName *string `json:"key_name,omitempty"`

	// 裸金属服务器所属用户ID。
	UserId *string `json:"user_id,omitempty"`

	Metadata *MetadataInfos `json:"metadata,omitempty"`

	// 裸金属服务器的主机ID
	HostId *string `json:"hostId,omitempty"`

	Addresses *Addresses `json:"addresses,omitempty"`

	// 裸金属服务器所属安全组列表。
	SecurityGroups *[]SecurityGroups `json:"security_groups,omitempty"`

	// 裸金属服务器相关信息快捷链接
	Links *[]Links `json:"links,omitempty"`

	// 扩展属性,磁盘配置方式,取值为如下两种:MANUAL:API使用镜像中的分区方案和文件系统创建裸金属服务器。如果目标flavor磁盘较大,则API不会对剩余磁盘空间进行分区。AUTO:API使用与目标flavor磁盘大小相同的单个分区创建裸金属服务器,API会自动调整文件系统以适应整个分区。
	OSDCFdiskConfig *ChangeBaremetalNameResponsesServersOSDCFdiskConfig `json:"OS-DCF:diskConfig,omitempty"`

	// 扩展属性,可用分区编码。
	OSEXTAZavailabilityZone *string `json:"OS-EXT-AZ:availability_zone,omitempty"`

	// 扩展属性,裸金属服务器宿主名称
	OSEXTSRVATTRhost *string `json:"OS-EXT-SRV-ATTR:host,omitempty"`

	// 扩展属性,hypervisor主机名称,由Nova virt驱动提供
	OSEXTSRVATTRhypervisorHostname *string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname,omitempty"`

	// 扩展属性,裸金属服务器实例ID
	OSEXTSRVATTRinstanceName *string `json:"OS-EXT-SRV-ATTR:instance_name,omitempty"`

	// 扩展属性,裸金属服务器电源状态。例如:0表示“NO STATE”1表示“RUNNING”4表示“SHUTDOWN”
	OSEXTSTSpowerState *int32 `json:"OS-EXT-STS:power_state,omitempty"`

	// 扩展属性,裸金属服务器任务状态。例如:rebooting表示重启中reboot_started表示普通重启reboot_started_hard表示强制重启powering-off表示关机中powering-on表示开机中rebuilding表示重建中scheduling表示调度中deleting表示删除中
	OSEXTSTStaskState *ChangeBaremetalNameResponsesServersOSEXTSTStaskState `json:"OS-EXT-STS:task_state,omitempty"`

	// 扩展属性,裸金属服务器状态。例如:RUNNING表示运行中SHUTOFF表示关机REBOOT表示重启
	OSEXTSTSvmState *ChangeBaremetalNameResponsesServersOSEXTSTSvmState `json:"OS-EXT-STS:vm_state,omitempty"`

	// 扩展属性,裸金属服务器启动时间。时间戳格式为ISO 8601,例如:2019-05-25T03:40:25.000000
	OSSRVUSGlaunchedAt *sdktime.SdkTime `json:"OS-SRV-USG:launched_at,omitempty"`

	// 扩展属性,裸金属服务器关闭时间。时间戳格式为ISO 8601,例如:2019-06-25T03:40:25.000000
	OSSRVUSGterminatedAt *sdktime.SdkTime `json:"OS-SRV-USG:terminated_at,omitempty"`

	// 裸金属服务器挂载的云硬盘信息。详情请参见表 os-extended-volumes:volumes_attached字段数据结构说明。
	OsExtendedVolumesvolumesAttached *[]OsExtendedVolumes `json:"os-extended-volumes:volumes_attached,omitempty"`

	// 预留属性
	AccessIPv4 *string `json:"accessIPv4,omitempty"`

	// 预留属性
	AccessIPv6 *string `json:"accessIPv6,omitempty"`

	Fault *Fault `json:"fault,omitempty"`

	// config drive信息
	ConfigDrive *string `json:"config_drive,omitempty"`

	// 预留属性
	Progress *int32 `json:"progress,omitempty"`

	// 裸金属服务器的描述信息。
	Description *string `json:"description,omitempty"`

	// 裸金属服务器宿主机状态。UP:服务正常UNKNOWN:状态未知DOWN:服务异常MAINTENANCE:维护状态空字符串:裸金属服务器无主机信息
	HostStatus *ChangeBaremetalNameResponsesServersHostStatus `json:"host_status,omitempty"`

	// 裸金属服务器的主机名
	OSEXTSRVATTRhostname *string `json:"OS-EXT-SRV-ATTR:hostname,omitempty"`

	// 批量创建场景,裸金属服务器的预留ID。当批量创建裸金属服务器时,这些服务器将拥有相同的reservation_id。您可以使用6.3.3-查询裸金属服务器详情列表API并指定reservation_id来过滤查询同一批创建的所有裸金属服务器。
	OSEXTSRVATTRreservationId *string `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"`

	// 批量创建场景,裸金属服务器的启动顺序
	OSEXTSRVATTRlaunchIndex *int32 `json:"OS-EXT-SRV-ATTR:launch_index,omitempty"`

	// 若使用AMI格式的镜像,则表示kernel image的UUID;否则,留空
	OSEXTSRVATTRkernelId *string `json:"OS-EXT-SRV-ATTR:kernel_id,omitempty"`

	// 若使用AMI格式镜像,则表示ramdisk image的UUID;否则,留空。
	OSEXTSRVATTRramdiskId *string `json:"OS-EXT-SRV-ATTR:ramdisk_id,omitempty"`

	// 裸金属服务器系统盘的设备名称,例如“/dev/sdb”。
	OSEXTSRVATTRrootDeviceName *string `json:"OS-EXT-SRV-ATTR:root_device_name,omitempty"`

	// 创建裸金属服务器时指定的user_data。取值为base64编码后的结果或空字符串。
	OSEXTSRVATTRuserData *string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`

	// 裸金属服务器实例是否为锁定状态。true:锁定false:未锁定
	Locked *bool `json:"locked,omitempty"`

	// 裸金属服务器标签
	Tags *[]string `json:"tags,omitempty"`

	// 裸金属服务器的系统标签
	SysTags *[]SystemTags `json:"sys_tags,omitempty"`

	// enterprise_project_id。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	OsschedulerHints *ServerOsSchedulerHints `json:"os:scheduler_hints,omitempty"`
}

ChangeBaremetalNameResponsesServers server字段数据结构说明

func (ChangeBaremetalNameResponsesServers) String

type ChangeBaremetalNameResponsesServersHostStatus

type ChangeBaremetalNameResponsesServersHostStatus struct {
	// contains filtered or unexported fields
}

func (ChangeBaremetalNameResponsesServersHostStatus) MarshalJSON

func (*ChangeBaremetalNameResponsesServersHostStatus) UnmarshalJSON

func (ChangeBaremetalNameResponsesServersHostStatus) Value added in v0.0.90

type ChangeBaremetalNameResponsesServersOSDCFdiskConfig

type ChangeBaremetalNameResponsesServersOSDCFdiskConfig struct {
	// contains filtered or unexported fields
}

func (ChangeBaremetalNameResponsesServersOSDCFdiskConfig) MarshalJSON

func (*ChangeBaremetalNameResponsesServersOSDCFdiskConfig) UnmarshalJSON

func (ChangeBaremetalNameResponsesServersOSDCFdiskConfig) Value added in v0.0.90

type ChangeBaremetalNameResponsesServersOSEXTSTStaskState

type ChangeBaremetalNameResponsesServersOSEXTSTStaskState struct {
	// contains filtered or unexported fields
}

func (ChangeBaremetalNameResponsesServersOSEXTSTStaskState) MarshalJSON

func (*ChangeBaremetalNameResponsesServersOSEXTSTStaskState) UnmarshalJSON

func (ChangeBaremetalNameResponsesServersOSEXTSTStaskState) Value added in v0.0.90

type ChangeBaremetalNameResponsesServersOSEXTSTSvmState

type ChangeBaremetalNameResponsesServersOSEXTSTSvmState struct {
	// contains filtered or unexported fields
}

func (ChangeBaremetalNameResponsesServersOSEXTSTSvmState) MarshalJSON

func (*ChangeBaremetalNameResponsesServersOSEXTSTSvmState) UnmarshalJSON

func (ChangeBaremetalNameResponsesServersOSEXTSTSvmState) Value added in v0.0.90

type ChangeBaremetalNameResponsesServersStatus

type ChangeBaremetalNameResponsesServersStatus struct {
	// contains filtered or unexported fields
}

func (ChangeBaremetalNameResponsesServersStatus) MarshalJSON

func (*ChangeBaremetalNameResponsesServersStatus) UnmarshalJSON

func (ChangeBaremetalNameResponsesServersStatus) Value added in v0.0.90

type ChangeBaremetalNameServer

type ChangeBaremetalNameServer struct {

	// 修改后的裸金属服务器名称
	Name string `json:"name"`
}

ChangeBaremetalNameServer server字段数据结构说明

func (ChangeBaremetalNameServer) String

func (o ChangeBaremetalNameServer) String() string

type ChangeBaremetalServerNameRequest

type ChangeBaremetalServerNameRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`

	Body *ChangeBaremetalNameBody `json:"body,omitempty"`
}

ChangeBaremetalServerNameRequest Request Object

func (ChangeBaremetalServerNameRequest) String

type ChangeBaremetalServerNameResponse

type ChangeBaremetalServerNameResponse struct {
	Server         *ChangeBaremetalNameResponsesServers `json:"server,omitempty"`
	HttpStatusCode int                                  `json:"-"`
}

ChangeBaremetalServerNameResponse Response Object

func (ChangeBaremetalServerNameResponse) String

type ChangeBaremetalServerOsRequest added in v0.0.49

type ChangeBaremetalServerOsRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`

	Body *OsChangeReq `json:"body,omitempty"`
}

ChangeBaremetalServerOsRequest Request Object

func (ChangeBaremetalServerOsRequest) String added in v0.0.49

type ChangeBaremetalServerOsResponse added in v0.0.49

type ChangeBaremetalServerOsResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"jobId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeBaremetalServerOsResponse Response Object

func (ChangeBaremetalServerOsResponse) String added in v0.0.49

type CreateBareMetalServersRequest

type CreateBareMetalServersRequest struct {
	Body *CreateBaremetalServersBody `json:"body,omitempty"`
}

CreateBareMetalServersRequest Request Object

func (CreateBareMetalServersRequest) String

type CreateBareMetalServersResponse

type CreateBareMetalServersResponse struct {

	// 订单ID
	OrderId *string `json:"order_id,omitempty"`

	// 任务ID
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateBareMetalServersResponse Response Object

func (CreateBareMetalServersResponse) String

type CreateBaremetalServersBody

type CreateBaremetalServersBody struct {
	Server *CreateServers `json:"server"`
}

CreateBaremetalServersBody 创建裸金属服务器接口请求结构体

func (CreateBaremetalServersBody) String

type CreateSchedulerHints

type CreateSchedulerHints struct {

	// 是否在专属云中创建裸金属服务器,参数值为share或dedicate。约束:该值不传时默认为share。在专属云中创建裸金属服务器时,必须指定该字段为dedicate。
	DecBaremetal *CreateSchedulerHintsDecBaremetal `json:"dec_baremetal,omitempty"`
}

CreateSchedulerHints schedulerHints字段数据结构说明

func (CreateSchedulerHints) String

func (o CreateSchedulerHints) String() string

type CreateSchedulerHintsDecBaremetal

type CreateSchedulerHintsDecBaremetal struct {
	// contains filtered or unexported fields
}

func (CreateSchedulerHintsDecBaremetal) MarshalJSON

func (c CreateSchedulerHintsDecBaremetal) MarshalJSON() ([]byte, error)

func (*CreateSchedulerHintsDecBaremetal) UnmarshalJSON

func (c *CreateSchedulerHintsDecBaremetal) UnmarshalJSON(b []byte) error

func (CreateSchedulerHintsDecBaremetal) Value added in v0.0.90

type CreateSchedulerHintsDecBaremetalEnum

type CreateSchedulerHintsDecBaremetalEnum struct {
	SHARE    CreateSchedulerHintsDecBaremetal
	DEDICATE CreateSchedulerHintsDecBaremetal
}

func GetCreateSchedulerHintsDecBaremetalEnum

func GetCreateSchedulerHintsDecBaremetalEnum() CreateSchedulerHintsDecBaremetalEnum

type CreateServerNicAllowedAddressPairs added in v0.1.59

type CreateServerNicAllowedAddressPairs struct {

	// IP地址 不支持0.0.0.0/0 如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组。
	IpAddress *string `json:"ip_address,omitempty"`

	// MAC地址
	MacAddress *string `json:"mac_address,omitempty"`
}

func (CreateServerNicAllowedAddressPairs) String added in v0.1.59

type CreateServers

type CreateServers struct {

	// 裸金属服务器使用的镜像ID或者镜像资源的URL。ID格式为通用唯一识别码(Universally Unique Identifier,简称UUID)。镜像ID可以从镜像服务控制台获取,或者参考《镜像服务API参考》的“查询镜像列表”章节查询。在使用“查询镜像列表”API查询时,可以添加过滤字段“?virtual_env_type=Ironic”来筛选裸金属服务器镜像。
	ImageRef string `json:"imageRef"`

	// 裸金属服务器使用的规格ID,格式为physical.x.x。规格ID可以从裸金属服务器控制台获取,也可以通过查询规格详情和规格扩展信息列表API查询。 说明:裸金属服务器规格与镜像间的约束关系请参见裸金属服务器类型与支持的操作系统版本。对于physical.x.x.hba类型的规格,申请的租户只能是DeC租户,且只能挂载DESS卷。
	FlavorRef string `json:"flavorRef"`

	// 裸金属服务器名称。取值范围:只能由中文字符、英文字母(a~z,A~Z)、数字(0~9)、下划线(_)、中划线(-)、点(.)组成,且长度为[1-63]个字符。创建的裸金属服务器数量大于1时,为区分不同裸金属服务器,创建过程中系统会自动在名称后加“-0000”的类似标记。故此时名称的长度为[1-58]个字符。
	Name string `json:"name"`

	Metadata *MetaDataInfo `json:"metadata"`

	// 创建裸金属服务器过程中待注入的用户数据。支持注入文本、文本文件或gzip文件。约束:注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。当key_name没有指定时,user_data注入的数据默认为裸金属服务器root帐户的登录密码。创建密码方式鉴权的Linux裸金属服务器时为必填项,为root用户注入自定义初始化密码。建议密码复杂度如下:长度为8-26位。密码至少必须包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。示例:使用明文密码(存在安全风险),以密码cloud.1234为例:#!/bin/bash echo 'root:Cloud.1234' | chpasswd ;使用密码:#!/bin/bash echo 'root:$6$V6azyeLwcD3CHlpY$BN3VVq18fmCkj66B4zdHLWevqcxlig' | chpasswd -e其中,$6$V6azyeLwcD3CHlpY$BN3VVq18fmCkj66B4zdHLWevqcxlig为密文密码
	UserData *string `json:"user_data,omitempty"`

	// 如果需要使用密码方式登录裸金属服务器,可使用adminPass字段指定裸金属服务器管理员帐户初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。密码复杂度要求:长度为8-26位。密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。Linux系统密码不能包含用户名或用户名的逆序。Windows系统密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。
	AdminPass *string `json:"adminPass,omitempty"`

	// 扩展属性,指定密钥的名称。如果需要使用SSH密钥方式登录裸金属服务器,请指定已有密钥的名称。密钥可以通过7.10.3-创建和导入SSH密钥(OpenStack原生)API创建,或者使用7.10.1-查询SSH密钥列表(OpenStack原生)API查询已有的密钥。约束:当key_name和user_data同时指定时,user_data只能用做用户数据注入。Windows裸金属服务器登录时,首先需要将密钥解析为密码,然后通过远程登录工具进行登录。具体请参见“MSTSC密码方式登录”“MSTSC密码方式登录”。
	KeyName *string `json:"key_name,omitempty"`

	// 指定裸金属服务器的安全组。详情请参见表 security_groups字段数据结构说明。
	SecurityGroups *[]SecurityGroupsInfo `json:"security_groups,omitempty"`

	// 指定裸金属服务器的网卡信息。详情请参见表 nics字段数据结构说明。约束:一个裸金属服务器最多挂载2个网卡,参数中第一个网卡会作为裸金属服务器的主网卡。若用户指定了多组网卡参数,需保证各组参数都属于同一VPC。
	Nics []Nics `json:"nics"`

	// 裸金属服务器对应可用区信息,需要指定可用区(AZ)的名称。请参考地区和终端节点获取。
	AvailabilityZone string `json:"availability_zone"`

	// 创建裸金属服务器所属虚拟私有云(VPC),需要指定已有VPC的ID,UUID格式。VPC的ID可以从网络控制台或者参考《虚拟私有云API参考》的“查询VPC”。
	Vpcid string `json:"vpcid"`

	Publicip *PublicIp `json:"publicip,omitempty"`

	// 创建裸金属服务器的数量。约束:不传该字段时默认取值为1。租户的配额足够时,最大值为100。
	Count *int32 `json:"count,omitempty"`

	RootVolume *RootVolume `json:"root_volume,omitempty"`

	// 裸金属服务器对应数据盘相关配置。每一个数据结构代表一个待创建的数据盘。详情请参见表 data_volumes字段数据结构说明。约束:目前裸金属服务器最多可挂载60块云硬盘(包括系统盘和数据盘)。
	DataVolumes *[]DataVolumes `json:"data_volumes,omitempty"`

	Extendparam *ExtendParam `json:"extendparam"`

	SchedulerHints *CreateSchedulerHints `json:"schedulerHints,omitempty"`

	// 裸金属服务器的标签。详情请参见表 server_tags字段数据结构说明。 说明:创建裸金属服务器时,一台裸金属服务器最多可以添加10个标签。其中,__type_baremetal为系统内部标签,因此实际能添加的标签为9个。
	ServerTags *[]SystemTags `json:"server_tags,omitempty"`
}

CreateServers server字段数据结构说明

func (CreateServers) String

func (o CreateServers) String() string

type DataVolumes

type DataVolumes struct {

	// 裸金属服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型SAS:高IO磁盘类型SSD:超高IO磁盘类型约束:在专属云中申请裸金属服务器时,须使用专属企业存储,此时该字段前缀必须是DESS_ 。枚举值如下:DESS_SAS_ISCSI:普通I/O企业存储DESS_SAS_FC:普通I/O企业存储(低延时)DESS_MIX_ISCSI:高I/O企业存储DESS_MIX_FC:高I/O企业存储(低延时)DESS_SSD_ISCSI:超高I/O企业存储DESS_SSD_FC:超高I/O企业存储(低延时)所有用户,包年包月场景下,不能挂载DESS卷。 说明:企业存储支持的存储类型说明可以从管理控制台或参考《专属企业存储服务用户指南》的“申请专属企业存储”“申请专属企业存储”章节获取。
	Volumetype DataVolumesVolumetype `json:"volumetype"`

	// 数据盘大小,容量单位为GB,输入大小范围为[10-32768]。
	Size int32 `json:"size"`

	// 是否为共享磁盘。true为共享盘,false为普通云硬盘
	Shareable *bool `json:"shareable,omitempty"`

	// 裸金属服务器数据盘对应的存储池ID。 说明:使用专属分布式存储时需要该字段。存储池ID可以从管理控制台或者参考《专属分布式存储API参考》的“获取专属分布式存储池详情列表”章节获取。
	ClusterId *string `json:"cluster_id,omitempty"`

	// 裸金属服务器数据盘对应的磁盘存储类型。磁盘存储类型枚举值:DSS(专属分布式存储)。 说明:使用专属分布式存储时需要该字段。存储池类型可以从管理控制台或者参考《专属分布式存储API参考》的“获取专属分布式存储池详情列表”章节获取。
	ClusterType *DataVolumesClusterType `json:"cluster_type,omitempty"`
}

DataVolumes data_volumes字段数据结构说明

func (DataVolumes) String

func (o DataVolumes) String() string

type DataVolumesClusterType

type DataVolumesClusterType struct {
	// contains filtered or unexported fields
}

func (DataVolumesClusterType) MarshalJSON

func (c DataVolumesClusterType) MarshalJSON() ([]byte, error)

func (*DataVolumesClusterType) UnmarshalJSON

func (c *DataVolumesClusterType) UnmarshalJSON(b []byte) error

func (DataVolumesClusterType) Value added in v0.0.90

func (c DataVolumesClusterType) Value() string

type DataVolumesClusterTypeEnum

type DataVolumesClusterTypeEnum struct {
	DSS DataVolumesClusterType
}

func GetDataVolumesClusterTypeEnum

func GetDataVolumesClusterTypeEnum() DataVolumesClusterTypeEnum

type DataVolumesVolumetype

type DataVolumesVolumetype struct {
	// contains filtered or unexported fields
}

func (DataVolumesVolumetype) MarshalJSON

func (c DataVolumesVolumetype) MarshalJSON() ([]byte, error)

func (*DataVolumesVolumetype) UnmarshalJSON

func (c *DataVolumesVolumetype) UnmarshalJSON(b []byte) error

func (DataVolumesVolumetype) Value added in v0.0.90

func (c DataVolumesVolumetype) Value() string

type DataVolumesVolumetypeEnum

type DataVolumesVolumetypeEnum struct {
	GPSSD DataVolumesVolumetype
	SATA  DataVolumesVolumetype
	SAS   DataVolumesVolumetype
	SSD   DataVolumesVolumetype
}

func GetDataVolumesVolumetypeEnum

func GetDataVolumesVolumetypeEnum() DataVolumesVolumetypeEnum

type DeleteBaremetalBody added in v0.1.72

type DeleteBaremetalBody struct {

	// 所需要删除的裸金属服务器列表。
	Servers []ServersList `json:"servers"`

	// 删除裸金属服务器时是否删除裸金属服务器绑定的弹性公网IP。如果选择不删除,则系统仅做解绑定操作,保留弹性公网IP资源。 取值为true或false,默认为false。  true:删除裸金属服务器时会同时删除绑定在裸金属服务器上的弹性公网IP。 false:删除裸金属服务器时,仅解绑定在裸金属服务器上的弹性公网IP,不删除弹性公网IP。
	DeletePublicip bool `json:"delete_publicip"`

	// 删除裸金属服务器时是否删除裸金属服务器对应的数据盘。如果选择不删除,则系统仅做解绑定操作,保留数据盘资源。 取值为false或true,默认为false。  true:删除裸金属服务器时会同时删除挂载在裸金属服务器上的数据盘。 false:删除裸金属服务器时,仅卸载裸金属服务器上挂载的数据盘,不删除该数据盘。
	DeleteVolume *bool `json:"delete_volume,omitempty"`
}

DeleteBaremetalBody This is a auto create Body Object

func (DeleteBaremetalBody) String added in v0.1.72

func (o DeleteBaremetalBody) String() string

type DeleteBaremetalServerRequest added in v0.1.72

type DeleteBaremetalServerRequest struct {
	Body *DeleteBaremetalBody `json:"body,omitempty"`
}

DeleteBaremetalServerRequest Request Object

func (DeleteBaremetalServerRequest) String added in v0.1.72

type DeleteBaremetalServerResponse added in v0.1.72

type DeleteBaremetalServerResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteBaremetalServerResponse Response Object

func (DeleteBaremetalServerResponse) String added in v0.1.72

type DeleteServerNicsReq added in v0.1.6

type DeleteServerNicsReq struct {

	//
	Nics []ServerNics `json:"nics"`
}

DeleteServerNicsReq 需要解绑的网卡列表信息

func (DeleteServerNicsReq) String added in v0.1.6

func (o DeleteServerNicsReq) String() string

type DeleteServerNicsRequest added in v0.1.6

type DeleteServerNicsRequest struct {
	ServerId string `json:"server_id"`

	Body *DeleteServerNicsReq `json:"body,omitempty"`
}

DeleteServerNicsRequest Request Object

func (DeleteServerNicsRequest) String added in v0.1.6

func (o DeleteServerNicsRequest) String() string

type DeleteServerNicsResponse added in v0.1.6

type DeleteServerNicsResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteServerNicsResponse Response Object

func (DeleteServerNicsResponse) String added in v0.1.6

func (o DeleteServerNicsResponse) String() string

type DeleteWindowsBareMetalServerPasswordRequest

type DeleteWindowsBareMetalServerPasswordRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`
}

DeleteWindowsBareMetalServerPasswordRequest Request Object

func (DeleteWindowsBareMetalServerPasswordRequest) String

type DeleteWindowsBareMetalServerPasswordResponse

type DeleteWindowsBareMetalServerPasswordResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteWindowsBareMetalServerPasswordResponse Response Object

func (DeleteWindowsBareMetalServerPasswordResponse) String

type DetachBaremetalServerVolumeRequest

type DetachBaremetalServerVolumeRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`

	// 裸金属服务器的云磁盘ID
	AttachmentId string `json:"attachment_id"`
}

DetachBaremetalServerVolumeRequest Request Object

func (DetachBaremetalServerVolumeRequest) String

type DetachBaremetalServerVolumeResponse

type DetachBaremetalServerVolumeResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DetachBaremetalServerVolumeResponse Response Object

func (DetachBaremetalServerVolumeResponse) String

type Eip

type Eip struct {

	// 弹性公网IP地址类型。类型枚举值:5_bgp、5_sbgp详情请参见《虚拟私有云API参考》申请弹性公网IP章节的publicip字段说明。
	Iptype EipIptype `json:"iptype"`

	Bandwidth *BandWidth `json:"bandwidth"`

	Extendparam *ExtendParamEip `json:"extendparam"`
}

Eip eip字段数据结构说明

func (Eip) String

func (o Eip) String() string

type EipIptype

type EipIptype struct {
	// contains filtered or unexported fields
}

func (EipIptype) MarshalJSON

func (c EipIptype) MarshalJSON() ([]byte, error)

func (*EipIptype) UnmarshalJSON

func (c *EipIptype) UnmarshalJSON(b []byte) error

func (EipIptype) Value added in v0.0.90

func (c EipIptype) Value() string

type EipIptypeEnum

type EipIptypeEnum struct {
	E_5_BGP  EipIptype
	E_5_SBGP EipIptype
}

func GetEipIptypeEnum

func GetEipIptypeEnum() EipIptypeEnum

type Entitie

type Entitie struct {

	// 裸金属服务器相关操作显示server_id
	ServerId *string `json:"server_id,omitempty"`

	// 网卡相关操作显示nic_id
	NicId *string `json:"nic_id,omitempty"`
}

Entitie Job操作的对象。根据不同Job类型,显示不同的内容。裸金属服务器相关操作显示server_id;网卡相关操作显示nic_id

func (Entitie) String

func (o Entitie) String() string

type Entities

type Entities struct {

	// 子任务数量。没有子任务时为0
	SubJobsTotal *int32 `json:"sub_jobs_total,omitempty"`

	// 每个子任务的执行信息。没有子任务时为空列表
	SubJobs *[]SubJobs `json:"sub_jobs,omitempty"`
}

Entities entities字段数据结构说明

func (Entities) String

func (o Entities) String() string

type ExtendParam

type ExtendParam struct {

	// 计费模式。取值范围:prePaid:预付费,即包年包月; postPaid-后付费,即按需付费。默认值是prePaid。
	ChargingMode *ExtendParamChargingMode `json:"chargingMode,omitempty"`

	// 裸金属服务器所在区域ID。请参考地区和终端节点获取。
	RegionID *string `json:"regionID,omitempty"`

	// 订购周期类型。取值范围:month:月year:年 说明:chargingMode为prePaid时生效,且为必选值。
	PeriodType *ExtendParamPeriodType `json:"periodType,omitempty"`

	// 订购周期数。取值范围:periodType=month(周期类型为月)时,取值为[1-9]。periodType=year(周期类型为年)时,取值为1。 说明:chargingMode为prePaid时生效,且为必选值。
	PeriodNum *int32 `json:"periodNum,omitempty"`

	// 是否自动续订。true:自动续订false:不自动续订 说明:chargingMode为prePaid时生效,不指定该参数或者该参数值为空时默认为不自动续订。
	IsAutoRenew *string `json:"isAutoRenew,omitempty"`

	// 下单订购后,是否自动从客户的帐户中支付,而不需要客户手动去支付。true:是(自动支付)false:否(需要客户手动支付) 说明:chargingMode为prePaid时生效,不指定该参数或者该参数值为空时默认为客户手动支付。
	IsAutoPay *string `json:"isAutoPay,omitempty"`

	// 企业项目ID。该字段不传(或传为字符串“0”),则将资源绑定给默认企业项目。 说明:关于企业项目ID的获取及企业项目特性的详细信息,请参见《企业管理API参考》。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ExtendParam 创建裸金属服务器的extendparam字段数据结构说明

func (ExtendParam) String

func (o ExtendParam) String() string

type ExtendParamChargingMode

type ExtendParamChargingMode struct {
	// contains filtered or unexported fields
}

func (ExtendParamChargingMode) MarshalJSON

func (c ExtendParamChargingMode) MarshalJSON() ([]byte, error)

func (*ExtendParamChargingMode) UnmarshalJSON

func (c *ExtendParamChargingMode) UnmarshalJSON(b []byte) error

func (ExtendParamChargingMode) Value added in v0.0.90

func (c ExtendParamChargingMode) Value() string

type ExtendParamChargingModeEnum

type ExtendParamChargingModeEnum struct {
	PRE_PAID  ExtendParamChargingMode
	POST_PAID ExtendParamChargingMode
}

func GetExtendParamChargingModeEnum

func GetExtendParamChargingModeEnum() ExtendParamChargingModeEnum

type ExtendParamEip

type ExtendParamEip struct {

	// 弹性公网IP的计费模式。若带宽计费类型为bandwidth,则支持prePaid和postPaid;若带宽计费类型为traffic,仅支持postPaid。取值范围:prePaid:预付费,即包年包月postPaid:后付费,即按需付费 说明:如果bandwidth对象中sharetype是WHOLE且id有值,弹性公网IP只能创建为按需付费的,故该参数传参“prePaid”无效。
	ChargingMode ExtendParamEipChargingMode `json:"chargingMode"`
}

ExtendParamEip 创建弹性公网IP的extendparam字段数据结构说明

func (ExtendParamEip) String

func (o ExtendParamEip) String() string

type ExtendParamEipChargingMode added in v0.1.28

type ExtendParamEipChargingMode struct {
	// contains filtered or unexported fields
}

func (ExtendParamEipChargingMode) MarshalJSON added in v0.1.28

func (c ExtendParamEipChargingMode) MarshalJSON() ([]byte, error)

func (*ExtendParamEipChargingMode) UnmarshalJSON added in v0.1.28

func (c *ExtendParamEipChargingMode) UnmarshalJSON(b []byte) error

func (ExtendParamEipChargingMode) Value added in v0.1.28

type ExtendParamEipChargingModeEnum added in v0.1.28

type ExtendParamEipChargingModeEnum struct {
	PRE_PAID  ExtendParamEipChargingMode
	POST_PAID ExtendParamEipChargingMode
}

func GetExtendParamEipChargingModeEnum added in v0.1.28

func GetExtendParamEipChargingModeEnum() ExtendParamEipChargingModeEnum

type ExtendParamPeriodType

type ExtendParamPeriodType struct {
	// contains filtered or unexported fields
}

func (ExtendParamPeriodType) MarshalJSON

func (c ExtendParamPeriodType) MarshalJSON() ([]byte, error)

func (*ExtendParamPeriodType) UnmarshalJSON

func (c *ExtendParamPeriodType) UnmarshalJSON(b []byte) error

func (ExtendParamPeriodType) Value added in v0.0.90

func (c ExtendParamPeriodType) Value() string

type ExtendParamPeriodTypeEnum

type ExtendParamPeriodTypeEnum struct {
	MONTH ExtendParamPeriodType
	YEAR  ExtendParamPeriodType
}

func GetExtendParamPeriodTypeEnum

func GetExtendParamPeriodTypeEnum() ExtendParamPeriodTypeEnum

type Fault

type Fault struct {

	// 故障信息
	Message *string `json:"message,omitempty"`

	// 故障code
	Code *int32 `json:"code,omitempty"`

	// 故障详情
	Details *string `json:"details,omitempty"`

	// 故障时间。时间戳格式为ISO 8601:YYYY-MM-DDTHH:MM:SSZ,例如:2019-05-22T03:30:52Z
	Created *sdktime.SdkTime `json:"created,omitempty"`
}

Fault fault字段数据结构说明

func (Fault) String

func (o Fault) String() string

type FixedIps

type FixedIps struct {

	// 网卡私网IP对应子网的子网ID(subnet_id)。
	SubnetId *string `json:"subnet_id,omitempty"`

	// 网卡私网IP信息
	IpAddress *string `json:"ip_address,omitempty"`
}

FixedIps fixed_ips字段数据结构说明

func (FixedIps) String

func (o FixedIps) String() string

type FlavorInfo

type FlavorInfo struct {

	// 规格ID
	Id *string `json:"id,omitempty"`

	// 规格相关信息快捷链接
	Links *[]Links `json:"links,omitempty"`
}

FlavorInfo flavor字段数据结构说明

func (FlavorInfo) String

func (o FlavorInfo) String() string

type FlavorInfos

type FlavorInfos struct {

	// 裸金属服务器规格ID
	Id *string `json:"id,omitempty"`

	// 裸金属服务器规格名称
	Name *string `json:"name,omitempty"`

	// 该裸金属服务器规格对应要求系统盘大小,0为不限制。
	Disk *string `json:"disk,omitempty"`

	// 该裸金属服务器规格对应的CPU核数
	Vcpus *string `json:"vcpus,omitempty"`

	// 该裸金属服务器规格对应的内存大小,单位为MB
	Ram *string `json:"ram,omitempty"`
}

FlavorInfos flavor数据结构说明

func (FlavorInfos) String

func (o FlavorInfos) String() string

type FlavorsResp

type FlavorsResp struct {

	// 裸金属服务器规格的ID
	Id string `json:"id"`

	// 裸金属服务器规格的名称
	Name string `json:"name"`

	// 该裸金属服务器规格对应的CPU核数。
	Vcpus *string `json:"vcpus,omitempty"`

	// 该裸金属服务器规格对应的内存大小,单位为MB。
	Ram *int32 `json:"ram,omitempty"`

	// 该裸金属服务器规格对应要求系统盘大小,0为不限制。
	Disk *string `json:"disk,omitempty"`

	// 未使用
	Swap *string `json:"swap,omitempty"`

	// 未使用
	OSFLVEXTDATAephemeral *int32 `json:"OS-FLV-EXT-DATA:ephemeral,omitempty"`

	// 未使用
	OSFLVDISABLEDdisabled *bool `json:"OS-FLV-DISABLED:disabled,omitempty"`

	// 未使用
	RxtxFactor *float32 `json:"rxtx_factor,omitempty"`

	// 未使用
	RxtxQuota *string `json:"rxtx_quota,omitempty"`

	// 未使用
	RxtxCap *string `json:"rxtx_cap,omitempty"`

	// 是否是公共规格。false:私有规格;true:公共规格
	OsFlavorAccessisPublic *bool `json:"os-flavor-access:is_public,omitempty"`

	// 规格相关快捷链接地址,详情请参见表3 links字段数据结构说明。
	Links *[]LinksInfo `json:"links,omitempty"`

	OsExtraSpecs *OsExtraSpecs `json:"os_extra_specs"`
}

FlavorsResp flavors数据结构说明

func (FlavorsResp) String

func (o FlavorsResp) String() string

type Image

type Image struct {

	// 裸金属服务器镜像ID
	Id *string `json:"id,omitempty"`

	// 裸金属服务器镜像相关快捷链接信息
	Links *[]Links `json:"links,omitempty"`
}

Image image字段数据结构说明

func (Image) String

func (o Image) String() string

type ImageInfo

type ImageInfo struct {

	// 镜像ID,格式为UUID。
	Id *string `json:"id,omitempty"`

	// 镜像的名称
	Name *string `json:"name,omitempty"`

	// 镜像的类型。取值为:Linux(包括SUSE/RedHat/CentOS/Oracle Linux/EulerOS/Ubuntu操作系统)Windows(Windows操作系统)Other(ESXi操作系统)
	OsType *ImageInfoOsType `json:"__os_type,omitempty"`

	// 镜像相关快捷链接地址。
	Links *[]Links `json:"links,omitempty"`
}

ImageInfo image数据结构说明

func (ImageInfo) String

func (o ImageInfo) String() string

type ImageInfoOsType

type ImageInfoOsType struct {
	// contains filtered or unexported fields
}

func (ImageInfoOsType) MarshalJSON

func (c ImageInfoOsType) MarshalJSON() ([]byte, error)

func (*ImageInfoOsType) UnmarshalJSON

func (c *ImageInfoOsType) UnmarshalJSON(b []byte) error

func (ImageInfoOsType) Value added in v0.0.90

func (c ImageInfoOsType) Value() string

type ImageInfoOsTypeEnum

type ImageInfoOsTypeEnum struct {
	LINUX   ImageInfoOsType
	WINDOWS ImageInfoOsType
	OTHER   ImageInfoOsType
}

func GetImageInfoOsTypeEnum

func GetImageInfoOsTypeEnum() ImageInfoOsTypeEnum

type InterfaceAttachments

type InterfaceAttachments struct {

	// 网卡端口状态。取值为:ACTIVE、BUILD、DOWN
	PortState *InterfaceAttachmentsPortState `json:"port_state,omitempty"`

	// 网卡私网IP信息列表,详情请参见表3 fixed_ips字段数据结构说明。
	FixedIps *[]FixedIps `json:"fixed_ips,omitempty"`

	// 网卡端口所属子网的网络ID(network_id)。
	NetId *string `json:"net_id,omitempty"`

	// 网卡端口ID。
	PortId *string `json:"port_id,omitempty"`

	// 网卡Mac地址信息
	MacAddr *string `json:"mac_addr,omitempty"`

	// 从guest os中,网卡的驱动类型
	DriverMode *string `json:"driver_mode,omitempty"`

	// 弹性网卡在Linux GuestOS里的BDF号
	PciAddress *string `json:"pci_address,omitempty"`
}

InterfaceAttachments interfaceAttachments字段数据结构说明

func (InterfaceAttachments) String

func (o InterfaceAttachments) String() string

type InterfaceAttachmentsPortState

type InterfaceAttachmentsPortState struct {
	// contains filtered or unexported fields
}

func (InterfaceAttachmentsPortState) MarshalJSON

func (c InterfaceAttachmentsPortState) MarshalJSON() ([]byte, error)

func (*InterfaceAttachmentsPortState) UnmarshalJSON

func (c *InterfaceAttachmentsPortState) UnmarshalJSON(b []byte) error

func (InterfaceAttachmentsPortState) Value added in v0.0.90

type InterfaceAttachmentsPortStateEnum

type InterfaceAttachmentsPortStateEnum struct {
	ACTIVE InterfaceAttachmentsPortState
	BUILD  InterfaceAttachmentsPortState
	DOWN   InterfaceAttachmentsPortState
}

func GetInterfaceAttachmentsPortStateEnum

func GetInterfaceAttachmentsPortStateEnum() InterfaceAttachmentsPortStateEnum

type InterfaceAttachmentsReq added in v0.1.6

type InterfaceAttachmentsReq struct {
	DeleteOnTermination bool `json:"delete_on_termination"`
}

InterfaceAttachmentsReq 删除裸金属服务器或解绑网卡时是否删除该网卡

func (InterfaceAttachmentsReq) String added in v0.1.6

func (o InterfaceAttachmentsReq) String() string
type Links struct {

	// 快捷链接标记名称
	Rel *string `json:"rel,omitempty"`

	// 对应快捷链接
	Href *string `json:"href,omitempty"`
}

Links links字段数据结构说明

func (Links) String

func (o Links) String() string

type LinksInfo

type LinksInfo struct {

	// 快捷链接标记名称。取值为:self:包含版本号的资源链接,需要立即跟踪时使用此类链接。bookmark:提供了适合长期存储的资源链接。
	Rel *string `json:"rel,omitempty"`

	// 对应快捷链接
	Href *string `json:"href,omitempty"`

	// 快捷链接类型
	Type *string `json:"type,omitempty"`
}

LinksInfo links字段数据结构说明

func (LinksInfo) String

func (o LinksInfo) String() string

type ListBareMetalServerDetailsRequest

type ListBareMetalServerDetailsRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`
}

ListBareMetalServerDetailsRequest Request Object

func (ListBareMetalServerDetailsRequest) String

type ListBareMetalServerDetailsResponse

type ListBareMetalServerDetailsResponse struct {
	Server         *ServerDetails `json:"server,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListBareMetalServerDetailsResponse Response Object

func (ListBareMetalServerDetailsResponse) String

type ListBareMetalServersRequest

type ListBareMetalServersRequest struct {

	// 裸金属服务器规格ID
	Flavor *string `json:"flavor,omitempty"`

	// 裸金属服务器名称
	Name *string `json:"name,omitempty"`

	// 裸金属服务器状态,只有管理员可以使用DELETED状态过滤查询已经删除的裸金属服务器。取值范围:ACTIVE、BUILD、ERROR、HARD_REBOOT、REBOOT、REBUILD、SHUTOFF
	Status *string `json:"status,omitempty"`

	// 每页返回裸金属服务器的条数,默认值是25,最大值为1000。limit为每页返回裸金属服务器详情的条数
	Limit *int32 `json:"limit,omitempty"`

	// 此接口为分页查询接口,offset为查询页码(起始页码为1),返回值包括总条数和裸金属服务器详情列表。传入offset:按limit值分页(limit默认为1000),返回第offset页裸金属服务器详情列表和总条数,总条数最大值为limit,不足按实际情况返回。不传入offset,传入limit:返回裸金属服务器详情列表和总条数,总条数最大值为limit,不足按实际情况返回。不传入offset,不传入limit:按25条分页,返回第1页裸金属服务器详情列表,总条数最大值为25,不足按实际情况返回。
	Offset *int32 `json:"offset,omitempty"`

	// 裸金属服务器标签:__type_baremetal
	Tags *string `json:"tags,omitempty"`

	// 批量创建裸金属服务器时,指定返回的ID,用于查询本次批量创建的裸金属服务器
	ReservationId *string `json:"reservation_id,omitempty"`

	// 查询裸金属服务器结果的详细级别,级别越高,查询到的裸金属服务器信息越多,默认为4。可使用的级别为 1,2,3,4
	Detail *string `json:"detail,omitempty"`

	// 查询绑定某个企业项目的裸金属服务器
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListBareMetalServersRequest Request Object

func (ListBareMetalServersRequest) String

type ListBareMetalServersResponse

type ListBareMetalServersResponse struct {

	// 裸金属服务器详情列表
	Servers *[]ServerDetails `json:"servers,omitempty"`

	// 裸金属服务器的列表总数
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListBareMetalServersResponse Response Object

func (ListBareMetalServersResponse) String

type ListBaremetalFlavorDetailExtendsRequest

type ListBaremetalFlavorDetailExtendsRequest struct {

	// 可用区,需要指定可用区(AZ)的名称。请参考地区和终端节点获取。
	AvailabilityZone *string `json:"availability_zone,omitempty"`
}

ListBaremetalFlavorDetailExtendsRequest Request Object

func (ListBaremetalFlavorDetailExtendsRequest) String

type ListBaremetalFlavorDetailExtendsResponse

type ListBaremetalFlavorDetailExtendsResponse struct {

	// 裸金属服务器规格列表,详情请参见表2 flavors数据结构说明。
	Flavors        *[]FlavorsResp `json:"flavors,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListBaremetalFlavorDetailExtendsResponse Response Object

func (ListBaremetalFlavorDetailExtendsResponse) String

type MetaDataInfo

type MetaDataInfo struct {

	// 用户ID(登录管理控制台,进入我的凭证,即可看到“用户ID”)。
	OpSvcUserid string `json:"op_svc_userid"`

	// 以Windows镜像创建的裸金属服务器Administrator用户的密码,示例:cloud.1234。密码复杂度要求:长度为8-26位。密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。
	AdminPass *string `json:"admin_pass,omitempty"`

	// 否自带许可,取值“true”或“false”。
	Byol *string `json:"BYOL,omitempty"`

	// 委托的名称。委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以作为其他租户访问此裸金属服务器的临时凭证。 说明:委托获取、更新请参考如下步骤:使用IAM服务提供的查询委托列表,获取有效可用的委托名称。使用更新裸金属服务器元数据接口,更新metadata中agency_name字段为新的委托名称。
	AgencyName *string `json:"agency_name,omitempty"`
}

MetaDataInfo metadata字段数据结构说明

func (MetaDataInfo) String

func (o MetaDataInfo) String() string

type MetadataInfos

type MetadataInfos struct {

	// metadata键、值。键、值长度均不大于255字节。
	Key *string `json:"key,omitempty"`
}

MetadataInfos metadata字段数据结构说明

func (MetadataInfos) String

func (o MetadataInfos) String() string

type MetadataInstall

type MetadataInstall struct {

	// 重装裸金属服务器过程中注入Linux镜像root密码,用户自定义初始化密码。注:修改密码脚本需经Base64编码。建议密码复杂度如下:长度为8-26位。密码至少必须包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(!@$%^-_=+[{}]:,./?)中的三种
	UserData *string `json:"user_data,omitempty"`
}

MetadataInstall metadata字段数据结构说明

func (MetadataInstall) String

func (o MetadataInstall) String() string

type MetadataList

type MetadataList struct {

	// 裸金属服务器的计费类型。1:按包年包月计费(即prePaid:预付费方式)。
	ChargingMode *MetadataListChargingMode `json:"chargingMode,omitempty"`

	// 按“包年/包月”计费的裸金属服务器对应的订单ID。
	MeteringOrderId *string `json:"metering.order_id,omitempty"`

	// 按“包年/包月”计费的裸金属服务器对应的产品ID
	MeteringProductId *string `json:"metering.product_id,omitempty"`

	// 裸金属服务器所属的虚拟私有云ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 裸金属服务器操作系统对应的镜像ID
	MeteringImageId *string `json:"metering.image_id,omitempty"`

	// 镜像类型,目前支持:公共镜像(gold)私有镜像(private)共享镜像(shared)
	MeteringImagetype *MetadataListMeteringImagetype `json:"metering.imagetype,omitempty"`

	// 裸金属服务器的网卡列表。
	BaremetalPortIDList *string `json:"baremetalPortIDList,omitempty"`

	// 裸金属服务器对应的资源规格编码,格式为:{规格ID}.{os_type},例如physical.o2.medium.linux。
	MeteringResourcespeccode *string `json:"metering.resourcespeccode,omitempty"`

	// 裸金属服务器对应的资源类型,取值为:hws.resource.type.pm
	MeteringResourcetype *string `json:"metering.resourcetype,omitempty"`

	// 裸金属服务器操作系统对应的镜像名称
	ImageName *string `json:"image_name,omitempty"`

	// 用户ID(登录管理控制台,进入我的凭证,即可看到“用户ID”)
	OpSvcUserid *string `json:"op_svc_userid,omitempty"`

	// 操作系统类型,取值为:Linux、Windows
	OsType *MetadataListOsType `json:"os_type,omitempty"`

	// 裸金属服务器是否支持EVS卷。
	BmsSupportEvs *string `json:"__bms_support_evs,omitempty"`

	// 操作系统位数,一般取值为“32”或者“64”。
	OsBit *MetadataListOsBit `json:"os_bit,omitempty"`
}

MetadataList metadata数据结构说明

func (MetadataList) String

func (o MetadataList) String() string

type MetadataListChargingMode

type MetadataListChargingMode struct {
	// contains filtered or unexported fields
}

func (MetadataListChargingMode) MarshalJSON

func (c MetadataListChargingMode) MarshalJSON() ([]byte, error)

func (*MetadataListChargingMode) UnmarshalJSON

func (c *MetadataListChargingMode) UnmarshalJSON(b []byte) error

func (MetadataListChargingMode) Value added in v0.0.90

func (c MetadataListChargingMode) Value() string

type MetadataListChargingModeEnum

type MetadataListChargingModeEnum struct {
	E_1 MetadataListChargingMode
}

func GetMetadataListChargingModeEnum

func GetMetadataListChargingModeEnum() MetadataListChargingModeEnum

type MetadataListMeteringImagetype

type MetadataListMeteringImagetype struct {
	// contains filtered or unexported fields
}

func (MetadataListMeteringImagetype) MarshalJSON

func (c MetadataListMeteringImagetype) MarshalJSON() ([]byte, error)

func (*MetadataListMeteringImagetype) UnmarshalJSON

func (c *MetadataListMeteringImagetype) UnmarshalJSON(b []byte) error

func (MetadataListMeteringImagetype) Value added in v0.0.90

type MetadataListMeteringImagetypeEnum

type MetadataListMeteringImagetypeEnum struct {
	GOLD    MetadataListMeteringImagetype
	PRIVATE MetadataListMeteringImagetype
	SHARED  MetadataListMeteringImagetype
}

func GetMetadataListMeteringImagetypeEnum

func GetMetadataListMeteringImagetypeEnum() MetadataListMeteringImagetypeEnum

type MetadataListOsBit

type MetadataListOsBit struct {
	// contains filtered or unexported fields
}

func (MetadataListOsBit) MarshalJSON

func (c MetadataListOsBit) MarshalJSON() ([]byte, error)

func (*MetadataListOsBit) UnmarshalJSON

func (c *MetadataListOsBit) UnmarshalJSON(b []byte) error

func (MetadataListOsBit) Value added in v0.0.90

func (c MetadataListOsBit) Value() string

type MetadataListOsBitEnum

type MetadataListOsBitEnum struct {
	E_32 MetadataListOsBit
	E_64 MetadataListOsBit
}

func GetMetadataListOsBitEnum

func GetMetadataListOsBitEnum() MetadataListOsBitEnum

type MetadataListOsType

type MetadataListOsType struct {
	// contains filtered or unexported fields
}

func (MetadataListOsType) MarshalJSON

func (c MetadataListOsType) MarshalJSON() ([]byte, error)

func (*MetadataListOsType) UnmarshalJSON

func (c *MetadataListOsType) UnmarshalJSON(b []byte) error

func (MetadataListOsType) Value added in v0.0.90

func (c MetadataListOsType) Value() string

type MetadataListOsTypeEnum

type MetadataListOsTypeEnum struct {
	LINUX   MetadataListOsType
	WINDOWS MetadataListOsType
}

func GetMetadataListOsTypeEnum

func GetMetadataListOsTypeEnum() MetadataListOsTypeEnum

type Nics

type Nics struct {

	// 裸金属服务器网卡所在的子网信息。需要指定vpcid对应VPC下已创建的子网(subnet)的网络ID(network_id),UUID格式。子网(subnet)的网络ID(network_id)可以从虚拟私有云控制台或者参考《虚拟私有云API参考》的“查询子网列表”章节获取。
	SubnetId string `json:"subnet_id"`

	// 创建裸金属服务器网卡的IP地址,IPv4格式,约束:不填或空字符串,默认在网络(network)对应的子网中自动分配一个未使用的IP作网卡的IP地址。若指定IP地址,该IP地址必须在网络(network)对应的子网的网段内,且未被使用。
	IpAddress *string `json:"ip_address,omitempty"`

	// IP/Mac对列表, 约束:IP地址不允许为 “0.0.0.0/0” 如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组 如果allowed_address_pairs为“1.1.1.1/0”,表示关闭源目地址检查开关 被绑定的云服务器网卡allowed_address_pairs填“1.1.1.1/0”
	AllowedAddressPairs *[]CreateServerNicAllowedAddressPairs `json:"allowed_address_pairs,omitempty"`
}

Nics nics字段数据结构说明

func (Nics) String

func (o Nics) String() string

type OsChange added in v0.0.49

type OsChange struct {

	// 裸金属服务器管理员帐号的初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。建议密码复杂度如下:长度为8-26位。密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。密码不能包含用户名或用户名的逆序。 说明:对于Windows裸金属服务器,不能包含用户名中超过两个连续字符的部分。对于Linux裸金属服务器也可使用user_data字段实现密码注入,此时adminpass字段无效。adminpass和keyname不能同时有值。adminpass和keyname如果同时为空,此时,metadata中的user_data属性必须有值。
	Adminpass *string `json:"adminpass,omitempty"`

	// 密钥名称。密钥可以通过7.10.3-创建和导入SSH密钥(OpenStack原生)API创建,或者使用7.10.1-查询SSH密钥列表(OpenStack原生)API查询已有的密钥。
	Keyname *string `json:"keyname,omitempty"`

	// 用户ID(登录管理控制台,进入我的凭证,即可看到“用户ID”)。
	Userid *string `json:"userid,omitempty"`

	// 镜像ID。镜像ID可以从镜像服务控制台获取,或者参考《镜像服务API参考》的“查询镜像列表”章节查询。在使用“查询镜像列表”API查询时,可以添加过滤字段“?virtual_env_type=Ironic”来筛选裸金属服务器镜像。
	Imageid string `json:"imageid"`

	Metadata *MetadataInstall `json:"metadata,omitempty"`
}

OsChange os-change字段数据结构说明

func (OsChange) String added in v0.0.49

func (o OsChange) String() string

type OsChangeReq added in v0.0.49

type OsChangeReq struct {
	OsChange *OsChange `json:"os-change"`
}

OsChangeReq 切换裸金属服务器操作系统接口请求结构体

func (OsChangeReq) String added in v0.0.49

func (o OsChangeReq) String() string

type OsExtendedVolumes

type OsExtendedVolumes struct {

	// 云硬盘ID
	Id *string `json:"id,omitempty"`

	// 删裸金属服务器时是否一并删除该卷。true:是false:否
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`
}

OsExtendedVolumes os-extended-volumes:volumes_attached字段数据结构说明

func (OsExtendedVolumes) String

func (o OsExtendedVolumes) String() string

type OsExtendedVolumesInfo

type OsExtendedVolumesInfo struct {

	// 磁盘ID,格式为UUID
	Id *string `json:"id,omitempty"`

	// 删裸金属服务器时是否一并删除该磁盘。true:是false:否
	DeleteOnTermination *string `json:"delete_on_termination,omitempty"`

	// 启动标识,“0”代表启动盘,“-1“代表非启动盘
	BootIndex *OsExtendedVolumesInfoBootIndex `json:"bootIndex,omitempty"`

	// 磁盘设备名称,例如“/dev/sdb”。
	Device *string `json:"device,omitempty"`
}

OsExtendedVolumesInfo os-extended-volumes:volumes_attached数据结构说明

func (OsExtendedVolumesInfo) String

func (o OsExtendedVolumesInfo) String() string

type OsExtendedVolumesInfoBootIndex

type OsExtendedVolumesInfoBootIndex struct {
	// contains filtered or unexported fields
}

func (OsExtendedVolumesInfoBootIndex) MarshalJSON

func (c OsExtendedVolumesInfoBootIndex) MarshalJSON() ([]byte, error)

func (*OsExtendedVolumesInfoBootIndex) UnmarshalJSON

func (c *OsExtendedVolumesInfoBootIndex) UnmarshalJSON(b []byte) error

func (OsExtendedVolumesInfoBootIndex) Value added in v0.0.90

type OsExtendedVolumesInfoBootIndexEnum

type OsExtendedVolumesInfoBootIndexEnum struct {
	E_0 OsExtendedVolumesInfoBootIndex
	E_1 OsExtendedVolumesInfoBootIndex
}

func GetOsExtendedVolumesInfoBootIndexEnum

func GetOsExtendedVolumesInfoBootIndexEnum() OsExtendedVolumesInfoBootIndexEnum

type OsExtraSpecs

type OsExtraSpecs struct {

	// 识该规格对应的资源类型,取值范围为“ironic”。
	ResourceType OsExtraSpecsResourceType `json:"resource_type"`

	// 裸金属服务器的CPU架构类型,取值为:x86_64(适用于x86机型)aarch64(适用于ARM机型)
	CapabilitiescpuArch OsExtraSpecsCapabilitiescpuArch `json:"capabilities:cpu_arch"`

	// 磁盘物理规格描述信息。
	BaremetaldiskDetail string `json:"baremetal:disk_detail"`

	// 标示ironic类型的规格。
	CapabilitieshypervisorType string `json:"capabilities:hypervisor_type"`

	// 标识当前的规格是否支持挂载EVS卷。truefalse
	BaremetalSupportEvs *string `json:"baremetal:__support_evs,omitempty"`

	// 裸金属服务器启动源。LocalDisk:本地盘Volume:云硬盘(快速发放)
	BaremetalextBootType *OsExtraSpecsBaremetalextBootType `json:"baremetal:extBootType,omitempty"`

	// 裸金属服务器的规格类型。格式为规格的缩写,例如规格名称为“physical.o2.medium”,则规格类型为“o2m”。
	CapabilitiesboardType string `json:"capabilities:board_type"`

	// 实际可挂载网络数量。
	BaremetalnetNum string `json:"baremetal:net_num"`

	// 网卡物理规格描述信息。
	BaremetalnetcardDetail string `json:"baremetal:netcard_detail"`

	// CPU物理规格描述信息。
	BaremetalcpuDetail string `json:"baremetal:cpu_detail"`

	// 内存物理规格描述信息
	BaremetalmemoryDetail string `json:"baremetal:memory_detail"`

	// 裸金属服务器规格状态。不配置时等同于normal。normal:正常商用abandon:下线(即不显示)sellout:售罄obt:公测promotion:推荐(等同normal,也是商用)
	Condoperationstatus *OsExtraSpecsCondoperationstatus `json:"cond:operation:status,omitempty"`

	// 在某个AZ的裸金属服务器规格状态。此参数是AZ级配置,某个AZ没有在此参数中配置时默认使用cond:operation:status参数的取值。格式:az(xx)。()内为某个AZ下的裸金属服务器规格状态,()内必须填写状态,不填为无效配置。例如:规格在某个区域的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为:“cond:operation:status”设置为“abandon”“cond:operation:az”设置为“az0(normal), az1(sellout), az2(obt), az3(promotion)” 说明:如果规格在某个AZ下的状态与cond:operation:status配置状态不同,必须配置该参数。
	Condoperationaz *string `json:"cond:operation:az,omitempty"`
}

OsExtraSpecs os_extra_specs数据结构说明

func (OsExtraSpecs) String

func (o OsExtraSpecs) String() string

type OsExtraSpecsBaremetalextBootType

type OsExtraSpecsBaremetalextBootType struct {
	// contains filtered or unexported fields
}

func (OsExtraSpecsBaremetalextBootType) MarshalJSON

func (c OsExtraSpecsBaremetalextBootType) MarshalJSON() ([]byte, error)

func (*OsExtraSpecsBaremetalextBootType) UnmarshalJSON

func (c *OsExtraSpecsBaremetalextBootType) UnmarshalJSON(b []byte) error

func (OsExtraSpecsBaremetalextBootType) Value added in v0.0.90

type OsExtraSpecsBaremetalextBootTypeEnum

type OsExtraSpecsBaremetalextBootTypeEnum struct {
	LOCAL_DISK OsExtraSpecsBaremetalextBootType
	VOLUME     OsExtraSpecsBaremetalextBootType
}

func GetOsExtraSpecsBaremetalextBootTypeEnum

func GetOsExtraSpecsBaremetalextBootTypeEnum() OsExtraSpecsBaremetalextBootTypeEnum

type OsExtraSpecsCapabilitiescpuArch

type OsExtraSpecsCapabilitiescpuArch struct {
	// contains filtered or unexported fields
}

func (OsExtraSpecsCapabilitiescpuArch) MarshalJSON

func (c OsExtraSpecsCapabilitiescpuArch) MarshalJSON() ([]byte, error)

func (*OsExtraSpecsCapabilitiescpuArch) UnmarshalJSON

func (c *OsExtraSpecsCapabilitiescpuArch) UnmarshalJSON(b []byte) error

func (OsExtraSpecsCapabilitiescpuArch) Value added in v0.0.90

type OsExtraSpecsCapabilitiescpuArchEnum

type OsExtraSpecsCapabilitiescpuArchEnum struct {
	X86_64  OsExtraSpecsCapabilitiescpuArch
	AARCH64 OsExtraSpecsCapabilitiescpuArch
}

func GetOsExtraSpecsCapabilitiescpuArchEnum

func GetOsExtraSpecsCapabilitiescpuArchEnum() OsExtraSpecsCapabilitiescpuArchEnum

type OsExtraSpecsCondoperationstatus

type OsExtraSpecsCondoperationstatus struct {
	// contains filtered or unexported fields
}

func (OsExtraSpecsCondoperationstatus) MarshalJSON

func (c OsExtraSpecsCondoperationstatus) MarshalJSON() ([]byte, error)

func (*OsExtraSpecsCondoperationstatus) UnmarshalJSON

func (c *OsExtraSpecsCondoperationstatus) UnmarshalJSON(b []byte) error

func (OsExtraSpecsCondoperationstatus) Value added in v0.0.90

type OsExtraSpecsResourceType

type OsExtraSpecsResourceType struct {
	// contains filtered or unexported fields
}

func (OsExtraSpecsResourceType) MarshalJSON

func (c OsExtraSpecsResourceType) MarshalJSON() ([]byte, error)

func (*OsExtraSpecsResourceType) UnmarshalJSON

func (c *OsExtraSpecsResourceType) UnmarshalJSON(b []byte) error

func (OsExtraSpecsResourceType) Value added in v0.0.90

func (c OsExtraSpecsResourceType) Value() string

type OsExtraSpecsResourceTypeEnum

type OsExtraSpecsResourceTypeEnum struct {
	IRONIC OsExtraSpecsResourceType
}

func GetOsExtraSpecsResourceTypeEnum

func GetOsExtraSpecsResourceTypeEnum() OsExtraSpecsResourceTypeEnum

type OsReinstall

type OsReinstall struct {

	// 裸金属服务器管理员帐号的初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。建议密码复杂度如下:长度为8-26位。密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。密码不能包含用户名或用户名的逆序。 说明:对于Windows裸金属服务器,不能包含用户名中超过两个连续字符的部分。对于Linux裸金属服务器也可使用user_data字段实现密码注入,此时adminpass字段无效。adminpass和keyname不能同时有值。adminpass和keyname如果同时为空,此时,metadata中的user_data属性必须有值。
	Adminpass *string `json:"adminpass,omitempty"`

	// 密钥名称。密钥可以通过7.10.3-创建和导入SSH密钥(OpenStack原生)API创建,或者使用7.10.1-查询SSH密钥列表(OpenStack原生)API查询已有的密钥。
	Keyname *string `json:"keyname,omitempty"`

	// 用户ID(登录管理控制台,进入我的凭证,即可看到“用户ID”)。
	Userid *string `json:"userid,omitempty"`

	Metadata *MetadataInstall `json:"metadata,omitempty"`
}

OsReinstall os-reinstall字段数据结构说明

func (OsReinstall) String

func (o OsReinstall) String() string

type OsReinstallBody

type OsReinstallBody struct {
	OsReinstall *OsReinstall `json:"os-reinstall"`
}

OsReinstallBody 重装裸金属服务器操作系统接口请求结构体

func (OsReinstallBody) String

func (o OsReinstallBody) String() string

type OsStartBody

type OsStartBody struct {
	OsStart *StartServersInfo `json:"os-start"`
}

OsStartBody 启动裸金属服务器接口请求结构体

func (OsStartBody) String

func (o OsStartBody) String() string

type OsStopBody

type OsStopBody struct {
	OsStop *OsStopBodyType `json:"os-stop"`
}

OsStopBody 关闭裸金属服务器接口请求结构体

func (OsStopBody) String

func (o OsStopBody) String() string

type OsStopBodyType

type OsStopBodyType struct {

	// 关机类型:SOFT:普通关机(不生效)。HARD:强制关机(默认)。
	Type OsStopBodyTypeType `json:"type"`

	// 裸金属服务器ID列表,详情请参见表3 servers字段数据结构说明。
	Servers []ServersList `json:"servers"`
}

OsStopBodyType 数据结构说明

func (OsStopBodyType) String

func (o OsStopBodyType) String() string

type OsStopBodyTypeType

type OsStopBodyTypeType struct {
	// contains filtered or unexported fields
}

func (OsStopBodyTypeType) MarshalJSON

func (c OsStopBodyTypeType) MarshalJSON() ([]byte, error)

func (*OsStopBodyTypeType) UnmarshalJSON

func (c *OsStopBodyTypeType) UnmarshalJSON(b []byte) error

func (OsStopBodyTypeType) Value added in v0.0.90

func (c OsStopBodyTypeType) Value() string

type OsStopBodyTypeTypeEnum

type OsStopBodyTypeTypeEnum struct {
	SOFT OsStopBodyTypeType
	HARD OsStopBodyTypeType
}

func GetOsStopBodyTypeTypeEnum

func GetOsStopBodyTypeTypeEnum() OsStopBodyTypeTypeEnum

type PublicIp

type PublicIp struct {

	// 创建裸金属服务器分配已有弹性公网IP时,分配的弹性公网IP的ID,UUID格式。弹性公网IP的ID可以从网络控制台或者参考《虚拟私有云API参考》的“查询弹性公网IP列表”章节获取。约束:只能分配状态(status)为DOWN的弹性公网IP。批量创建裸金属服务器时,不能使用已有弹性公网IP,即不支持此参数。
	Id *string `json:"id,omitempty"`

	Eip *Eip `json:"eip,omitempty"`
}

PublicIp publicip字段数据结构说明

func (PublicIp) String

func (o PublicIp) String() string

type RebootBody

type RebootBody struct {
	Reboot *ServersInfoType `json:"reboot"`
}

RebootBody 重启裸金属服务器接口请求结构体

func (RebootBody) String

func (o RebootBody) String() string

type ReinstallBaremetalServerOsRequest

type ReinstallBaremetalServerOsRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`

	Body *OsReinstallBody `json:"body,omitempty"`
}

ReinstallBaremetalServerOsRequest Request Object

func (ReinstallBaremetalServerOsRequest) String

type ReinstallBaremetalServerOsResponse

type ReinstallBaremetalServerOsResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ReinstallBaremetalServerOsResponse Response Object

func (ReinstallBaremetalServerOsResponse) String

type RemoteConsole added in v0.1.6

type RemoteConsole struct {

	// 远程登录的协议。
	Protocol string `json:"protocol"`

	// 远程登录的类型。
	Type string `json:"type"`
}

RemoteConsole

func (RemoteConsole) String added in v0.1.6

func (o RemoteConsole) String() string

type ResetPassword

type ResetPassword struct {

	// 裸金属服务器新密码。该接口不做密码安全性校验,设置的密码复杂度请遵循密码规则。密码规则:密码长度范围为8到26位。密码至少包含以下4种字符中的3种:大写字母小写字母数字特殊字符Windows:!@$%-_=+[]:./?Linux:!@%^-_=+[]{}:,./?密码不能包含用户名或用户名的逆序。Windows系统的裸金属服务器,不能包含用户名中超过两个连续字符的部分。
	NewPassword string `json:"new_password"`
}

ResetPassword reset-password信息详情

func (ResetPassword) String

func (o ResetPassword) String() string

type ResetPasswordBody

type ResetPasswordBody struct {
	ResetPassword *ResetPassword `json:"reset-password"`
}

ResetPasswordBody 一键重置裸金属服务器密码接口请求结构体

func (ResetPasswordBody) String

func (o ResetPasswordBody) String() string

type ResetPwdOneClickRequest

type ResetPwdOneClickRequest struct {

	// 裸金属服务器ID。可以从裸金属服务器控制台查询,或者通过调用7.3.4-查询裸金属服务器列表(OpenStack原生)API获取。
	ServerId string `json:"server_id"`

	Body *ResetPasswordBody `json:"body,omitempty"`
}

ResetPwdOneClickRequest Request Object

func (ResetPwdOneClickRequest) String

func (o ResetPwdOneClickRequest) String() string

type ResetPwdOneClickResponse

type ResetPwdOneClickResponse struct {
	HttpStatusCode int `json:"-"`
}

ResetPwdOneClickResponse Response Object

func (ResetPwdOneClickResponse) String

func (o ResetPwdOneClickResponse) String() string

type RootVolume

type RootVolume struct {

	// 裸金属服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型SAS:高IO磁盘类型SSD:超高IO磁盘类型
	Volumetype RootVolumeVolumetype `json:"volumetype"`

	// 系统盘大小,容量单位为GB,输入大小范围为[40-1024]。约束:系统盘大小取值应不小于镜像中系统盘的最小值(min_disk属性)。
	Size int32 `json:"size"`

	// 裸金属服务器系统盘对应的存储池的ID。 说明:使用专属分布式存储时需要该字段。存储池ID可以从管理控制台或者参考《专属分布式存储API参考》的“获取专属分布式存储池详情列表”章节获取。
	ClusterId *string `json:"cluster_id,omitempty"`

	// 裸金属服务器系统盘对应的磁盘存储类型。磁盘存储类型枚举值:DSS(专属分布式存储)。 说明:使用专属分布式存储时需要该字段。存储池类型可以从管理控制台或者参考《专属分布式存储API参考》的“获取专属分布式存储池详情列表”章节获取。
	ClusterType *RootVolumeClusterType `json:"cluster_type,omitempty"`
}

RootVolume root_volume字段数据结构说明

func (RootVolume) String

func (o RootVolume) String() string

type RootVolumeClusterType

type RootVolumeClusterType struct {
	// contains filtered or unexported fields
}

func (RootVolumeClusterType) MarshalJSON

func (c RootVolumeClusterType) MarshalJSON() ([]byte, error)

func (*RootVolumeClusterType) UnmarshalJSON

func (c *RootVolumeClusterType) UnmarshalJSON(b []byte) error

func (RootVolumeClusterType) Value added in v0.0.90

func (c RootVolumeClusterType) Value() string

type RootVolumeClusterTypeEnum

type RootVolumeClusterTypeEnum struct {
	DSS RootVolumeClusterType
}

func GetRootVolumeClusterTypeEnum

func GetRootVolumeClusterTypeEnum() RootVolumeClusterTypeEnum

type RootVolumeVolumetype

type RootVolumeVolumetype struct {
	// contains filtered or unexported fields
}

func (RootVolumeVolumetype) MarshalJSON

func (c RootVolumeVolumetype) MarshalJSON() ([]byte, error)

func (*RootVolumeVolumetype) UnmarshalJSON

func (c *RootVolumeVolumetype) UnmarshalJSON(b []byte) error

func (RootVolumeVolumetype) Value added in v0.0.90

func (c RootVolumeVolumetype) Value() string

type RootVolumeVolumetypeEnum

type RootVolumeVolumetypeEnum struct {
	GPSSD RootVolumeVolumetype
	SATA  RootVolumeVolumetype
	SAS   RootVolumeVolumetype
	SSD   RootVolumeVolumetype
}

func GetRootVolumeVolumetypeEnum

func GetRootVolumeVolumetypeEnum() RootVolumeVolumetypeEnum

type SchedulerHints

type SchedulerHints struct {

	// 是否在专属云中创建裸金属服务器,参数值为share或dedicate。约束:该值不传时默认为share。在专属云中创建裸金属服务器时,必须指定该字段为dedicate。
	DecBaremetal *[]SchedulerHintsDecBaremetal `json:"dec_baremetal,omitempty"`
}

SchedulerHints schedulerHints字段数据结构说明

func (SchedulerHints) String

func (o SchedulerHints) String() string

type SchedulerHintsDecBaremetal

type SchedulerHintsDecBaremetal struct {
	// contains filtered or unexported fields
}

func (SchedulerHintsDecBaremetal) MarshalJSON

func (c SchedulerHintsDecBaremetal) MarshalJSON() ([]byte, error)

func (*SchedulerHintsDecBaremetal) UnmarshalJSON

func (c *SchedulerHintsDecBaremetal) UnmarshalJSON(b []byte) error

func (SchedulerHintsDecBaremetal) Value added in v0.0.90

type SchedulerHintsDecBaremetalEnum

type SchedulerHintsDecBaremetalEnum struct {
	SHARE    SchedulerHintsDecBaremetal
	DEDICATE SchedulerHintsDecBaremetal
}

func GetSchedulerHintsDecBaremetalEnum

func GetSchedulerHintsDecBaremetalEnum() SchedulerHintsDecBaremetalEnum

type SecurityGroupInfo added in v0.1.6

type SecurityGroupInfo struct {

	// 安全组ID,UUID格式。
	Id string `json:"id"`
}

SecurityGroupInfo 安全组信息

func (SecurityGroupInfo) String added in v0.1.6

func (o SecurityGroupInfo) String() string

type SecurityGroups

type SecurityGroups struct {

	// 创建裸金属服务器时未指定安全组,该值为default。创建裸金属服务器时,需要指定已有安全组的ID(UUID格式)。
	Name *string `json:"name,omitempty"`
}

SecurityGroups security_groups字段数据结构说明

func (SecurityGroups) String

func (o SecurityGroups) String() string

type SecurityGroupsInfo

type SecurityGroupsInfo struct {

	// 裸金属服务器对应的安全组ID,对创建裸金属服务器中配置的所有网卡生效。当该参数未指定时默认给裸金属服务器绑定default安全组。当该参数传值(UUID格式)时需要指定已有安全组的ID。获取已有安全组的方法请参见《虚拟私有云API参考》的“查询安全组列表”章节。
	Id *string `json:"id,omitempty"`
}

SecurityGroupsInfo security_groups字段数据结构说明

func (SecurityGroupsInfo) String

func (o SecurityGroupsInfo) String() string

type SecurityGroupsList

type SecurityGroupsList struct {

	// 安全组名称或者UUID
	Name *string `json:"name,omitempty"`

	// 安全组ID。
	Id *string `json:"id,omitempty"`
}

SecurityGroupsList security_groups数据结构说明

func (SecurityGroupsList) String

func (o SecurityGroupsList) String() string

type ServerDetails

type ServerDetails struct {

	// 裸金属服务器ID,格式为UUID
	Id string `json:"id"`

	// 创建裸金属服务器的用户ID,格式为UUID。
	UserId *string `json:"user_id,omitempty"`

	// 裸金属服务器名称
	Name string `json:"name"`

	// 裸金属服务器创建时间。时间戳格式为ISO 8601:YYYY-MM-DDTHH:MM:SSZ,例如:2019-05-22T03:30:52Z
	Created *sdktime.SdkTime `json:"created,omitempty"`

	// 裸金属服务器更新时间。时间戳格式为ISO 8601:YYYY-MM-DDTHH:MM:SSZ,例如:2019-05-22T04:30:52Z
	Updated *sdktime.SdkTime `json:"updated,omitempty"`

	// 裸金属服务器所属租户ID,格式为UUID。该参数和project_id表示相同的概念。
	TenantId string `json:"tenant_id"`

	// 裸金属服务器对应的主机ID
	HostId *string `json:"hostId,omitempty"`

	// 裸金属服务器的网络属性。详情请参见表3 addresses数据结构说明。
	Addresses map[string][]AddressInfo `json:"addresses,omitempty"`

	// 裸金属服务器使用的密钥对名称
	KeyName *string `json:"key_name,omitempty"`

	Image *ImageInfo `json:"image,omitempty"`

	Flavor *FlavorInfos `json:"flavor,omitempty"`

	// 裸金属服务器所属安全组。详情请参见表7 security_groups数据结构说明。
	SecurityGroups *[]SecurityGroupsList `json:"security_groups,omitempty"`

	// 预留属性
	AccessIPv4 *string `json:"accessIPv4,omitempty"`

	// 预留属性
	AccessIPv6 *string `json:"accessIPv6,omitempty"`

	// 裸金属服务器当前状态信息。  取值范围:  ACTIVE:运行中/正在关机/删除中 BUILD:创建中 ERROR:故障 HARD_REBOOT:强制重启中 REBOOT:重启中 DELETED:实例已被正常删除 SHUTOFF:关机/正在开机/删除中/重建中/重装操作系统中/重装操作系统失败/冻结
	Status ServerDetailsStatus `json:"status"`

	// 预留属性
	Progress *int32 `json:"progress,omitempty"`

	// 是否为裸金属服务器配置config drive分区。取值为:True或空字符串
	ConfigDrive *string `json:"config_drive,omitempty"`

	Metadata *MetadataList `json:"metadata"`

	// 扩展属性,裸金属服务器当前的任务状态。例如:rebooting:重启中reboot_started:普通重启reboot_started_hard:强制重启powering-off:关机中powering-on:开机中rebuilding:重建中scheduling:调度中deleting:删除中
	OSEXTSTStaskState *ServerDetailsOSEXTSTStaskState `json:"OS-EXT-STS:task_state,omitempty"`

	// 扩展属性,裸金属服务器的稳定状态。例如:active:运行中shutoff:关机reboot:重启
	OSEXTSTSvmState *ServerDetailsOSEXTSTSvmState `json:"OS-EXT-STS:vm_state,omitempty"`

	// 扩展属性,裸金属服务器宿主名称
	OSEXTSRVATTRhost *string `json:"OS-EXT-SRV-ATTR:host,omitempty"`

	// 扩展属性,裸金属服务器实例ID
	OSEXTSRVATTRinstanceName *string `json:"OS-EXT-SRV-ATTR:instance_name,omitempty"`

	// 扩展属性,裸金属服务器电源状态。例如:0表示“NO STATE”1表示“RUNNING”4表示“SHUTDOWN”
	OSEXTSTSpowerState *int32 `json:"OS-EXT-STS:power_state,omitempty"`

	// 扩展属性,裸金属服务器所在虚拟化主机名。
	OSEXTSRVATTRhypervisorHostname *string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname,omitempty"`

	// 扩展属性,裸金属服务器所在可用分区名称。
	OSEXTAZavailabilityZone *string `json:"OS-EXT-AZ:availability_zone,omitempty"`

	// 扩展属性,磁盘配置,取值为以下两种:MANUAL:API使用镜像中的分区方案和文件系统创建裸金属服务器。如果目标flavor磁盘较大,则API不会对剩余磁盘空间进行分区。AUTO:API使用与目标flavor磁盘大小相同的单个分区创建裸金属服务器,API会自动调整文件系统以适应整个分区。
	OSDCFdiskConfig *ServerDetailsOSDCFdiskConfig `json:"OS-DCF:diskConfig,omitempty"`

	Fault *Fault `json:"fault,omitempty"`

	// 裸金属服务器启动时间。时间戳格式为ISO 8601,例如:2019-05-22T03:23:59.000000
	OSSRVUSGlaunchedAt *sdktime.SdkTime `json:"OS-SRV-USG:launched_at,omitempty"`

	// 裸金属服务器删除时间。时间戳格式为ISO 8601,例如:2019-05-22T04:23:59.000000
	OSSRVUSGterminatedAt *sdktime.SdkTime `json:"OS-SRV-USG:terminated_at,omitempty"`

	// 挂载到裸金属服务器上的磁盘。详情请参见表9 os-extended-volumes:volumes_attached 数据结构说明。
	OsExtendedVolumesvolumesAttached *[]OsExtendedVolumesInfo `json:"os-extended-volumes:volumes_attached,omitempty"`

	// 裸金属服务器的描述信息
	Description *string `json:"description,omitempty"`

	// 裸金属服务器宿主机状态。UP:服务正常UNKNOWN:状态未知DOWN:服务异常MAINTENANCE:维护状态空字符串:裸金属服务器无主机信息
	HostStatus *ServerDetailsHostStatus `json:"host_status,omitempty"`

	// 裸金属服务器的主机名
	OSEXTSRVATTRhostname *string `json:"OS-EXT-SRV-ATTR:hostname,omitempty"`

	// 批量创建场景,裸金属服务器的预留ID。当批量创建裸金属服务器时,这些服务器将拥有相同的reservation_id。您可以使用6.3.3-查询裸金属服务器详情列表API并指定reservation_id来过滤查询同一批创建的所有裸金属服务器。
	OSEXTSRVATTRreservationId *string `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"`

	// 批量创建场景,裸金属服务器的启动顺序
	OSEXTSRVATTRlaunchIndex *int32 `json:"OS-EXT-SRV-ATTR:launch_index,omitempty"`

	// 若使用AMI格式的镜像,则表示kernel image的UUID;否则,留空
	OSEXTSRVATTRkernelId *string `json:"OS-EXT-SRV-ATTR:kernel_id,omitempty"`

	// 若使用AMI格式镜像,则表示ramdisk image的UUID;否则,留空。
	OSEXTSRVATTRramdiskId *string `json:"OS-EXT-SRV-ATTR:ramdisk_id,omitempty"`

	// 裸金属服务器系统盘的设备名称,例如“/dev/sda”。
	OSEXTSRVATTRrootDeviceName *string `json:"OS-EXT-SRV-ATTR:root_device_name,omitempty"`

	// 创建裸金属服务器时指定的user_data,取值为base64编码后的结果或空字符串。
	OSEXTSRVATTRuserData *string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`

	// 裸金属服务器是否为锁定状态。true:锁定false:未锁定
	Locked *bool `json:"locked,omitempty"`

	// 裸金属服务器标签。
	Tags *[]string `json:"tags,omitempty"`

	OsschedulerHints *SchedulerHints `json:"os:scheduler_hints,omitempty"`

	// 裸金属服务器所属的企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 裸金属服务器系统标签。详情请参见表12 sys_tags数据结构说明。
	SysTags *[]SystemTags `json:"sys_tags,omitempty"`
}

ServerDetails server字段数据结构说明

func (ServerDetails) String

func (o ServerDetails) String() string

type ServerDetailsHostStatus

type ServerDetailsHostStatus struct {
	// contains filtered or unexported fields
}

func (ServerDetailsHostStatus) MarshalJSON

func (c ServerDetailsHostStatus) MarshalJSON() ([]byte, error)

func (*ServerDetailsHostStatus) UnmarshalJSON

func (c *ServerDetailsHostStatus) UnmarshalJSON(b []byte) error

func (ServerDetailsHostStatus) Value added in v0.0.90

func (c ServerDetailsHostStatus) Value() string

type ServerDetailsHostStatusEnum

type ServerDetailsHostStatusEnum struct {
	UP          ServerDetailsHostStatus
	UNKNOWN     ServerDetailsHostStatus
	DOWN        ServerDetailsHostStatus
	MAINTENANCE ServerDetailsHostStatus
}

func GetServerDetailsHostStatusEnum

func GetServerDetailsHostStatusEnum() ServerDetailsHostStatusEnum

type ServerDetailsOSDCFdiskConfig

type ServerDetailsOSDCFdiskConfig struct {
	// contains filtered or unexported fields
}

func (ServerDetailsOSDCFdiskConfig) MarshalJSON

func (c ServerDetailsOSDCFdiskConfig) MarshalJSON() ([]byte, error)

func (*ServerDetailsOSDCFdiskConfig) UnmarshalJSON

func (c *ServerDetailsOSDCFdiskConfig) UnmarshalJSON(b []byte) error

func (ServerDetailsOSDCFdiskConfig) Value added in v0.0.90

type ServerDetailsOSDCFdiskConfigEnum

type ServerDetailsOSDCFdiskConfigEnum struct {
	MANUAL ServerDetailsOSDCFdiskConfig
	AUTO   ServerDetailsOSDCFdiskConfig
}

func GetServerDetailsOSDCFdiskConfigEnum

func GetServerDetailsOSDCFdiskConfigEnum() ServerDetailsOSDCFdiskConfigEnum

type ServerDetailsOSEXTSTStaskState

type ServerDetailsOSEXTSTStaskState struct {
	// contains filtered or unexported fields
}

func (ServerDetailsOSEXTSTStaskState) MarshalJSON

func (c ServerDetailsOSEXTSTStaskState) MarshalJSON() ([]byte, error)

func (*ServerDetailsOSEXTSTStaskState) UnmarshalJSON

func (c *ServerDetailsOSEXTSTStaskState) UnmarshalJSON(b []byte) error

func (ServerDetailsOSEXTSTStaskState) Value added in v0.0.90

type ServerDetailsOSEXTSTSvmState

type ServerDetailsOSEXTSTSvmState struct {
	// contains filtered or unexported fields
}

func (ServerDetailsOSEXTSTSvmState) MarshalJSON

func (c ServerDetailsOSEXTSTSvmState) MarshalJSON() ([]byte, error)

func (*ServerDetailsOSEXTSTSvmState) UnmarshalJSON

func (c *ServerDetailsOSEXTSTSvmState) UnmarshalJSON(b []byte) error

func (ServerDetailsOSEXTSTSvmState) Value added in v0.0.90

type ServerDetailsOSEXTSTSvmStateEnum

type ServerDetailsOSEXTSTSvmStateEnum struct {
	ACTIVE  ServerDetailsOSEXTSTSvmState
	SHUTOFF ServerDetailsOSEXTSTSvmState
	REBOOT  ServerDetailsOSEXTSTSvmState
}

func GetServerDetailsOSEXTSTSvmStateEnum

func GetServerDetailsOSEXTSTSvmStateEnum() ServerDetailsOSEXTSTSvmStateEnum

type ServerDetailsStatus

type ServerDetailsStatus struct {
	// contains filtered or unexported fields
}

func (ServerDetailsStatus) MarshalJSON

func (c ServerDetailsStatus) MarshalJSON() ([]byte, error)

func (*ServerDetailsStatus) UnmarshalJSON

func (c *ServerDetailsStatus) UnmarshalJSON(b []byte) error

func (ServerDetailsStatus) Value added in v0.0.90

func (c ServerDetailsStatus) Value() string

type ServerDetailsStatusEnum

type ServerDetailsStatusEnum struct {
	ACTIVE      ServerDetailsStatus
	BUILD       ServerDetailsStatus
	ERROR       ServerDetailsStatus
	HARD_REBOOT ServerDetailsStatus
	REBOOT      ServerDetailsStatus
	DELETED     ServerDetailsStatus
	SHUTOFF     ServerDetailsStatus
}

func GetServerDetailsStatusEnum

func GetServerDetailsStatusEnum() ServerDetailsStatusEnum

type ServerNics added in v0.1.6

type ServerNics struct {
	Id string `json:"id"`
}

ServerNics 网卡Port ID

func (ServerNics) String added in v0.1.6

func (o ServerNics) String() string

type ServerNicsReq added in v0.1.6

type ServerNicsReq struct {

	// 网卡的子网ID
	SubnetId string `json:"subnet_id"`

	//
	IpAddress *string `json:"ip_address,omitempty"`

	//
	SecurityGroups *[]SecurityGroupInfo `json:"security_groups,omitempty"`
}

ServerNicsReq

func (ServerNicsReq) String added in v0.1.6

func (o ServerNicsReq) String() string

type ServerOsSchedulerHints added in v0.0.48

type ServerOsSchedulerHints struct {

	// 反亲和性组信息。  UUID格式。
	Group *[]string `json:"group,omitempty"`
}

func (ServerOsSchedulerHints) String added in v0.0.48

func (o ServerOsSchedulerHints) String() string

type ServerRemoteConsole added in v0.1.10

type ServerRemoteConsole struct {

	// 远程登录的协议。
	Protocol string `json:"protocol"`

	// 远程登录的类型。
	Type string `json:"type"`

	// 远程登录的url。
	Url string `json:"url"`
}

ServerRemoteConsole

func (ServerRemoteConsole) String added in v0.1.10

func (o ServerRemoteConsole) String() string

type ServersInfoType

type ServersInfoType struct {

	// 重启类型:SOFT:普通重启(不生效)。HARD:强制重启(默认)。
	Type ServersInfoTypeType `json:"type"`

	// 裸金属服务器ID列表,详情请参见表3 servers字段数据结构说明。
	Servers []ServersList `json:"servers"`
}

ServersInfoType 数据结构说明

func (ServersInfoType) String

func (o ServersInfoType) String() string

type ServersInfoTypeType

type ServersInfoTypeType struct {
	// contains filtered or unexported fields
}

func (ServersInfoTypeType) MarshalJSON

func (c ServersInfoTypeType) MarshalJSON() ([]byte, error)

func (*ServersInfoTypeType) UnmarshalJSON

func (c *ServersInfoTypeType) UnmarshalJSON(b []byte) error

func (ServersInfoTypeType) Value added in v0.0.90

func (c ServersInfoTypeType) Value() string

type ServersInfoTypeTypeEnum

type ServersInfoTypeTypeEnum struct {
	SOFT ServersInfoTypeType
	HARD ServersInfoTypeType
}

func GetServersInfoTypeTypeEnum

func GetServersInfoTypeTypeEnum() ServersInfoTypeTypeEnum

type ServersList

type ServersList struct {

	// 裸金属服务器ID。可以从裸金属服务器控制台查询,或者通过调用7.3.4-查询裸金属服务器列表(OpenStack原生)API获取。
	Id string `json:"id"`
}

ServersList servers字段数据结构说明

func (ServersList) String

func (o ServersList) String() string

type ShowBaremetalServerInterfaceAttachmentsRequest

type ShowBaremetalServerInterfaceAttachmentsRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`
}

ShowBaremetalServerInterfaceAttachmentsRequest Request Object

func (ShowBaremetalServerInterfaceAttachmentsRequest) String

type ShowBaremetalServerInterfaceAttachmentsResponse

type ShowBaremetalServerInterfaceAttachmentsResponse struct {

	// 裸金属服务器网卡信息列表,详情请参见表2 interfaceAttachments字段数据结构说明。
	InterfaceAttachments *[]InterfaceAttachments `json:"interfaceAttachments,omitempty"`
	HttpStatusCode       int                     `json:"-"`
}

ShowBaremetalServerInterfaceAttachmentsResponse Response Object

func (ShowBaremetalServerInterfaceAttachmentsResponse) String

type ShowBaremetalServerTagsRequest

type ShowBaremetalServerTagsRequest struct {
	ServerId string `json:"server_id"`
}

ShowBaremetalServerTagsRequest Request Object

func (ShowBaremetalServerTagsRequest) String

type ShowBaremetalServerTagsResponse

type ShowBaremetalServerTagsResponse struct {

	//
	Tags           *[]BaremetalServerTag `json:"tags,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ShowBaremetalServerTagsResponse Response Object

func (ShowBaremetalServerTagsResponse) String

type ShowBaremetalServerVolumeInfoRequest

type ShowBaremetalServerVolumeInfoRequest struct {

	// 裸金属服务器ID。可以从裸金属服务器控制台查询,或者通过调用7.3.4-查询裸金属服务器列表(OpenStack原生)API获取。
	ServerId string `json:"server_id"`
}

ShowBaremetalServerVolumeInfoRequest Request Object

func (ShowBaremetalServerVolumeInfoRequest) String

type ShowBaremetalServerVolumeInfoResponse

type ShowBaremetalServerVolumeInfoResponse struct {

	// 裸金属服务器挂载信息列表,详情请参见表2 volumeAttachments字段数据结构说明。
	VolumeAttachments *[]VolumeAttachments `json:"volumeAttachments,omitempty"`
	HttpStatusCode    int                  `json:"-"`
}

ShowBaremetalServerVolumeInfoResponse Response Object

func (ShowBaremetalServerVolumeInfoResponse) String

type ShowJobInfosRequest

type ShowJobInfosRequest struct {

	// Job ID
	JobId string `json:"job_id"`
}

ShowJobInfosRequest Request Object

func (ShowJobInfosRequest) String

func (o ShowJobInfosRequest) String() string

type ShowJobInfosResponse

type ShowJobInfosResponse struct {

	// Job的状态。SUCCESS:成功RUNNING:运行中FAIL:失败INIT:正在初始化
	Status *ShowJobInfosResponseStatus `json:"status,omitempty"`

	Entities *Entities `json:"entities,omitempty"`

	// Job ID
	JobId *string `json:"job_id,omitempty"`

	// Job的类型,包含以下类型:baremetalBatchCreate:批量创建裸金属服务器baremetalBatchOperate:批量修改裸金属服务器电源状态baremetalBatchCreate:批量创建裸金属服务器baremetalChangeOsVolumeBoot:切换快速发放裸金属服务器操作系统baremetalChangeOsLocalDisk:切换本地盘裸金属服务器操作系统baremetalVolumeBootReinstallOs:重装快速发放裸金属服务器操作系统baremetalReinstallOs:重装本地盘裸金属服务器操作系统baremetalAttachVolume:挂载单个磁盘baremetalDetachVolume:卸载单个磁盘baremetalBatchAttachVolume:裸金属服务器批量挂载共享磁盘
	JobType *string `json:"job_type,omitempty"`

	// 开始时间。时间戳格式为ISO 8601,例如:2019-04-25T20:04:47.591Z
	BeginTime *string `json:"begin_time,omitempty"`

	// 结束时间。时间戳格式为ISO 8601,例如:2019-04-26T20:04:47.591Z
	EndTime *string `json:"end_time,omitempty"`

	// Job执行失败时的错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// Job执行失败时的错误原因
	FailReason *string `json:"fail_reason,omitempty"`

	// 出现错误时,返回的错误消息
	Message *string `json:"message,omitempty"`

	// 出现错误时,返回的错误码。错误码和其对应的含义请参考8.1-状态码。
	Code           *string `json:"code,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowJobInfosResponse Response Object

func (ShowJobInfosResponse) String

func (o ShowJobInfosResponse) String() string

type ShowJobInfosResponseStatus

type ShowJobInfosResponseStatus struct {
	// contains filtered or unexported fields
}

func (ShowJobInfosResponseStatus) MarshalJSON

func (c ShowJobInfosResponseStatus) MarshalJSON() ([]byte, error)

func (*ShowJobInfosResponseStatus) UnmarshalJSON

func (c *ShowJobInfosResponseStatus) UnmarshalJSON(b []byte) error

func (ShowJobInfosResponseStatus) Value added in v0.0.90

type ShowJobInfosResponseStatusEnum

type ShowJobInfosResponseStatusEnum struct {
	SUCCESS ShowJobInfosResponseStatus
	RUNNING ShowJobInfosResponseStatus
	FAIL    ShowJobInfosResponseStatus
	INIT    ShowJobInfosResponseStatus
}

func GetShowJobInfosResponseStatusEnum

func GetShowJobInfosResponseStatusEnum() ShowJobInfosResponseStatusEnum

type ShowResetPwdRequest

type ShowResetPwdRequest struct {

	// 裸金属服务器ID。可以从裸金属服务器控制台查询,或者通过调用7.3.4-查询裸金属服务器列表(OpenStack原生)API获取。
	ServerId string `json:"server_id"`
}

ShowResetPwdRequest Request Object

func (ShowResetPwdRequest) String

func (o ShowResetPwdRequest) String() string

type ShowResetPwdResponse

type ShowResetPwdResponse struct {

	// 是否支持重置密码。True:支持一键重置密码。False:不支持一键重置密码
	ResetpwdFlag   *string `json:"resetpwd_flag,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowResetPwdResponse Response Object

func (ShowResetPwdResponse) String

func (o ShowResetPwdResponse) String() string

type ShowServerRemoteConsoleReq added in v0.1.6

type ShowServerRemoteConsoleReq struct {
	RemoteConsole *RemoteConsole `json:"remote_console"`
}

ShowServerRemoteConsoleReq This is a auto create Body Object

func (ShowServerRemoteConsoleReq) String added in v0.1.6

type ShowServerRemoteConsoleRequest added in v0.1.6

type ShowServerRemoteConsoleRequest struct {
	ServerId string `json:"server_id"`

	Body *ShowServerRemoteConsoleReq `json:"body,omitempty"`
}

ShowServerRemoteConsoleRequest Request Object

func (ShowServerRemoteConsoleRequest) String added in v0.1.6

type ShowServerRemoteConsoleResponse added in v0.1.6

type ShowServerRemoteConsoleResponse struct {
	RemoteConsole  *ServerRemoteConsole `json:"remote_console,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ShowServerRemoteConsoleResponse Response Object

func (ShowServerRemoteConsoleResponse) String added in v0.1.6

type ShowSpecifiedVersionRequest

type ShowSpecifiedVersionRequest struct {

	// API版本号
	ApiVersion string `json:"api_version"`
}

ShowSpecifiedVersionRequest Request Object

func (ShowSpecifiedVersionRequest) String

type ShowSpecifiedVersionResponse

type ShowSpecifiedVersionResponse struct {
	Version        *Versions `json:"version,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ShowSpecifiedVersionResponse Response Object

func (ShowSpecifiedVersionResponse) String

type ShowTenantQuotaRequest

type ShowTenantQuotaRequest struct {
}

ShowTenantQuotaRequest Request Object

func (ShowTenantQuotaRequest) String

func (o ShowTenantQuotaRequest) String() string

type ShowTenantQuotaResponse

type ShowTenantQuotaResponse struct {
	Absolute       *Absolute `json:"absolute,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ShowTenantQuotaResponse Response Object

func (ShowTenantQuotaResponse) String

func (o ShowTenantQuotaResponse) String() string

type ShowWindowsBaremetalServerPwdRequest

type ShowWindowsBaremetalServerPwdRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`
}

ShowWindowsBaremetalServerPwdRequest Request Object

func (ShowWindowsBaremetalServerPwdRequest) String

type ShowWindowsBaremetalServerPwdResponse

type ShowWindowsBaremetalServerPwdResponse struct {

	// 加密后的密码
	Password       *string `json:"password,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowWindowsBaremetalServerPwdResponse Response Object

func (ShowWindowsBaremetalServerPwdResponse) String

type StartServersInfo

type StartServersInfo struct {

	// 裸金属服务器ID列表,详情请参见表3 servers字段数据结构说明
	Servers []ServersList `json:"servers"`
}

StartServersInfo os-start字段数据结构说明

func (StartServersInfo) String

func (o StartServersInfo) String() string

type SubJobs

type SubJobs struct {

	// Job的状态。SUCCESS:成功RUNNING:运行中FAIL:失败INIT:正在初始化
	Status *SubJobsStatus `json:"status,omitempty"`

	Entities *Entitie `json:"entities,omitempty"`

	// Job ID
	JobId *string `json:"job_id,omitempty"`

	// Job的类型,包含以下类型:baremetalSingleCreate:创建单个裸金属服务器;baremetalSingleOperate:修改单个裸金属服务器电源状态;baremetalAttachSingleVolume:挂载单个共享磁盘
	JobType *string `json:"job_type,omitempty"`

	// 开始时间。时间戳格式为ISO 8601,例如:2019-04-25T20:04:47.591Z
	BeginTime *string `json:"begin_time,omitempty"`

	// 结束时间。时间戳格式为ISO 8601,例如:2019-04-26T20:04:47.591Z
	EndTime *string `json:"end_time,omitempty"`

	// Job执行失败时的错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// Job执行失败时的错误原因
	FailReason *string `json:"fail_reason,omitempty"`

	// 出现错误时,返回的错误消息
	Message *string `json:"message,omitempty"`

	// 出现错误时,返回的错误码
	Code *string `json:"code,omitempty"`
}

SubJobs sub_jobs字段数据结构说明

func (SubJobs) String

func (o SubJobs) String() string

type SubJobsStatus

type SubJobsStatus struct {
	// contains filtered or unexported fields
}

func (SubJobsStatus) MarshalJSON

func (c SubJobsStatus) MarshalJSON() ([]byte, error)

func (*SubJobsStatus) UnmarshalJSON

func (c *SubJobsStatus) UnmarshalJSON(b []byte) error

func (SubJobsStatus) Value added in v0.0.90

func (c SubJobsStatus) Value() string

type SubJobsStatusEnum

type SubJobsStatusEnum struct {
	SUCCESS SubJobsStatus
	RUNNING SubJobsStatus
	FAIL    SubJobsStatus
	INIT    SubJobsStatus
}

func GetSubJobsStatusEnum

func GetSubJobsStatusEnum() SubJobsStatusEnum

type SystemTags

type SystemTags struct {

	// 键。最大长度36个unicode字符。key不能为空。不能包含非打印字符ASCII(0-31),以及特殊字符同一资源的key值不能重复。
	Key *string `json:"key,omitempty"`

	// 值。每个值最大长度43个unicode字符,可以为空字符串。不能包含非打印字符ASCII(0-31),以及特殊字符
	Value *string `json:"value,omitempty"`
}

SystemTags 裸金属服务器的标签。详情请参见表 server_tags字段数据结构说明。 说明:创建裸金属服务器时,一台裸金属服务器最多可以添加10个标签。其中,__type_baremetal为系统内部标签,因此实际能添加的标签为9个。

func (SystemTags) String

func (o SystemTags) String() string

type UpdateBaremetalServerInterfaceAttachmentsReq added in v0.1.6

type UpdateBaremetalServerInterfaceAttachmentsReq struct {
	InterfaceAttachment *InterfaceAttachmentsReq `json:"interface_attachment"`
}

UpdateBaremetalServerInterfaceAttachmentsReq 修改裸金属服务器所绑定的弹性网卡属性:终止时删除,即删除裸金属服务器,或者解绑网卡时是否删除该网卡

func (UpdateBaremetalServerInterfaceAttachmentsReq) String added in v0.1.6

type UpdateBaremetalServerInterfaceAttachmentsRequest added in v0.1.6

type UpdateBaremetalServerInterfaceAttachmentsRequest struct {
	PortId string `json:"port_id"`

	ServerId string `json:"server_id"`

	Body *UpdateBaremetalServerInterfaceAttachmentsReq `json:"body,omitempty"`
}

UpdateBaremetalServerInterfaceAttachmentsRequest Request Object

func (UpdateBaremetalServerInterfaceAttachmentsRequest) String added in v0.1.6

type UpdateBaremetalServerInterfaceAttachmentsResponse added in v0.1.6

type UpdateBaremetalServerInterfaceAttachmentsResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateBaremetalServerInterfaceAttachmentsResponse Response Object

func (UpdateBaremetalServerInterfaceAttachmentsResponse) String added in v0.1.6

type UpdateBaremetalServerMetadataReq added in v0.0.78

type UpdateBaremetalServerMetadataReq struct {

	// 用户自定义metadata键值对。  结构体允许为空,取值为空时不更新数据。
	Metadata map[string]string `json:"metadata"`
}

UpdateBaremetalServerMetadataReq This is a auto create Body Object

func (UpdateBaremetalServerMetadataReq) String added in v0.0.78

type UpdateBaremetalServerMetadataRequest

type UpdateBaremetalServerMetadataRequest struct {

	// 裸金属服务器ID
	ServerId string `json:"server_id"`

	Body *UpdateBaremetalServerMetadataReq `json:"body,omitempty"`
}

UpdateBaremetalServerMetadataRequest Request Object

func (UpdateBaremetalServerMetadataRequest) String

type UpdateBaremetalServerMetadataResponse

type UpdateBaremetalServerMetadataResponse struct {

	//
	Metadata       map[string]string `json:"metadata,omitempty"`
	HttpStatusCode int               `json:"-"`
}

UpdateBaremetalServerMetadataResponse Response Object

func (UpdateBaremetalServerMetadataResponse) String

type VersionLinks struct {

	// API的url地址
	Href *string `json:"href,omitempty"`

	// API的url地址依赖
	Rel *string `json:"rel,omitempty"`
}

VersionLinks API的url地址

func (VersionLinks) String

func (o VersionLinks) String() string

type Versions

type Versions struct {

	// API版本ID
	Id *VersionsId `json:"id,omitempty"`

	// API的url地址
	Links *[]VersionLinks `json:"links,omitempty"`

	// API支持的最小微版本号
	MinVersion *string `json:"min_version,omitempty"`

	// 这个是API版本的状态。可以是:CURRENT这是使用的API的首选版本;SUPPORTED:这是一个较老的,但仍然支持的API版本;DEPRECATED:一个被废弃的API版本,该版本将被删除
	Status *VersionsStatus `json:"status,omitempty"`

	// API支持的最大微版本号
	Version *string `json:"version,omitempty"`

	// API版本发布时间
	Updated *sdktime.SdkTime `json:"updated,omitempty"`
}

Versions 描述裸金属服务器API版本信息列表

func (Versions) String

func (o Versions) String() string

type VersionsId

type VersionsId struct {
	// contains filtered or unexported fields
}

func (VersionsId) MarshalJSON

func (c VersionsId) MarshalJSON() ([]byte, error)

func (*VersionsId) UnmarshalJSON

func (c *VersionsId) UnmarshalJSON(b []byte) error

func (VersionsId) Value added in v0.0.90

func (c VersionsId) Value() string

type VersionsIdEnum

type VersionsIdEnum struct {
	V1 VersionsId
}

func GetVersionsIdEnum

func GetVersionsIdEnum() VersionsIdEnum

type VersionsStatus

type VersionsStatus struct {
	// contains filtered or unexported fields
}

func (VersionsStatus) MarshalJSON

func (c VersionsStatus) MarshalJSON() ([]byte, error)

func (*VersionsStatus) UnmarshalJSON

func (c *VersionsStatus) UnmarshalJSON(b []byte) error

func (VersionsStatus) Value added in v0.0.90

func (c VersionsStatus) Value() string

type VersionsStatusEnum

type VersionsStatusEnum struct {
	CURRENT    VersionsStatus
	SUPPORTED  VersionsStatus
	DEPRECATED VersionsStatus
}

func GetVersionsStatusEnum

func GetVersionsStatusEnum() VersionsStatusEnum

type VolumeAttachment

type VolumeAttachment struct {

	// 要挂卷的卷ID。可以从云硬盘控制台查询,或者通过调用“查询云硬盘列表”API获取。
	VolumeId string `json:"volumeId"`

	// 磁盘挂载点,如/dev/sda、/dev/sdb。新增加的磁盘挂载点不能和已有的磁盘挂载点相同。需要根据已有设备名称顺序指定,否则不写device或device的值为空时,由系统自动生成。
	Device *string `json:"device,omitempty"`
}

VolumeAttachment volumeAttachment数据结构说明

func (VolumeAttachment) String

func (o VolumeAttachment) String() string

type VolumeAttachments

type VolumeAttachments struct {

	// 挂载资源ID
	Id *string `json:"id,omitempty"`

	// 所属裸金属服务器ID
	ServerId *string `json:"serverId,omitempty"`

	// 挂载云磁盘ID
	VolumeId *string `json:"volumeId,omitempty"`

	// 挂载目录,例如“/dev/sdd”。
	Device *string `json:"device,omitempty"`
}

VolumeAttachments 裸金属服务器挂载信息列表

func (VolumeAttachments) String

func (o VolumeAttachments) String() string

Source Files

Jump to

Keyboard shortcuts

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