model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

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

	MaxTotalCores *int32 `json:"maxTotalCores,omitempty"`

	MaxTotalRAMSize *int32 `json:"maxTotalRAMSize,omitempty"`

	MaxTotalKeypairs *int32 `json:"maxTotalKeypairs,omitempty"`

	MaxServerMeta *int32 `json:"maxServerMeta,omitempty"`

	MaxPersonality *int32 `json:"maxPersonality,omitempty"`

	MaxPersonalitySize *int32 `json:"maxPersonalitySize,omitempty"`

	MaxServerGroups *int32 `json:"maxServerGroups,omitempty"`

	MaxServerGroupMembers *int32 `json:"maxServerGroupMembers,omitempty"`

	TotalServerGroupsUsed *int32 `json:"totalServerGroupsUsed,omitempty"`

	MaxSecurityGroups *int32 `json:"maxSecurityGroups,omitempty"`

	MaxSecurityGroupRules *int32 `json:"maxSecurityGroupRules,omitempty"`

	MaxTotalFloatingIps *int32 `json:"maxTotalFloatingIps,omitempty"`

	MaxImageMeta *int32 `json:"maxImageMeta,omitempty"`

	TotalInstancesUsed *int32 `json:"totalInstancesUsed,omitempty"`

	TotalCoresUsed *int32 `json:"totalCoresUsed,omitempty"`

	TotalRAMUsed *int32 `json:"totalRAMUsed,omitempty"`

	TotalSecurityGroupsUsed *int32 `json:"totalSecurityGroupsUsed,omitempty"`

	TotalFloatingIpsUsed *int32 `json:"totalFloatingIpsUsed,omitempty"`
}

absolute数据结构说明

func (Absolute) String

func (o Absolute) String() string

type Address

type Address struct {
	Version *AddressVersion `json:"version,omitempty"`

	Addr *string `json:"addr,omitempty"`

	OSEXTIPStype *AddressOSEXTIPStype `json:"OS-EXT-IPS:type,omitempty"`

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

	OSEXTIPSportId *string `json:"OS-EXT-IPS:port_id,omitempty"`
}

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

func (Address) String

func (o Address) String() string

type AddressInfo

type AddressInfo struct {
	Version string `json:"version"`

	Addr string `json:"addr"`

	OSEXTIPStype *AddressInfoOSEXTIPStype `json:"OS-EXT-IPS:type,omitempty"`

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

	OSEXTIPSportId *string `json:"OS-EXT-IPS:port_id,omitempty"`
}

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

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

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

type AddressVersionEnum

type AddressVersionEnum struct {
	E_4 AddressVersion
	E_6 AddressVersion
}

func GetAddressVersionEnum

func GetAddressVersionEnum() AddressVersionEnum

type Addresses

type Addresses struct {
	VpcId []Address `json:"vpc_id"`
}

addresses字段数据结构说明

func (Addresses) String

func (o Addresses) String() string

type AttachBaremetalServerVolumeRequest

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

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

Request Object

func (AttachBaremetalServerVolumeRequest) String

type AttachBaremetalServerVolumeResponse

type AttachBaremetalServerVolumeResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AttachBaremetalServerVolumeResponse) String

type AttachVolumeBody

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

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

func (AttachVolumeBody) String

func (o AttachVolumeBody) String() string

type BandWidth

type BandWidth struct {
	Name *string `json:"name,omitempty"`

	Sharetype BandWidthSharetype `json:"sharetype"`

	Id *string `json:"id,omitempty"`

	Size int32 `json:"size"`

	Chargemode *BandWidthChargemode `json:"chargemode,omitempty"`
}

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

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

type BandWidthSharetypeEnum

type BandWidthSharetypeEnum struct {
	PER   BandWidthSharetype
	WHOLE BandWidthSharetype
}

func GetBandWidthSharetypeEnum

func GetBandWidthSharetypeEnum() BandWidthSharetypeEnum

type BaremetalServerTag

type BaremetalServerTag struct {
	Key string `json:"key"`

	Value string `json:"value"`
}

func (BaremetalServerTag) String

func (o BaremetalServerTag) String() string

type BatchCreateBaremetalServerTagsRequest

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

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

Request Object

func (BatchCreateBaremetalServerTagsRequest) String

type BatchCreateBaremetalServerTagsRequestBody

type BatchCreateBaremetalServerTagsRequestBody struct {
	Action BatchCreateBaremetalServerTagsRequestBodyAction `json:"action"`

	Tags []BaremetalServerTag `json:"tags"`
}

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

type BatchCreateBaremetalServerTagsRequestBodyActionEnum

type BatchCreateBaremetalServerTagsRequestBodyActionEnum struct {
	CREATE BatchCreateBaremetalServerTagsRequestBodyAction
}

type BatchCreateBaremetalServerTagsResponse

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

Response Object

func (BatchCreateBaremetalServerTagsResponse) String

type BatchDeleteBaremetalServerTagsRequest

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

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

Request Object

func (BatchDeleteBaremetalServerTagsRequest) String

type BatchDeleteBaremetalServerTagsRequestBody

type BatchDeleteBaremetalServerTagsRequestBody struct {
	Action BatchDeleteBaremetalServerTagsRequestBodyAction `json:"action"`

	Tags []BaremetalServerTag `json:"tags"`
}

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

type BatchDeleteBaremetalServerTagsRequestBodyActionEnum

type BatchDeleteBaremetalServerTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteBaremetalServerTagsRequestBodyAction
}

type BatchDeleteBaremetalServerTagsResponse

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

Response Object

func (BatchDeleteBaremetalServerTagsResponse) String

type BatchRebootBaremetalServersRequest

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

Request Object

func (BatchRebootBaremetalServersRequest) String

type BatchRebootBaremetalServersResponse

type BatchRebootBaremetalServersResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchRebootBaremetalServersResponse) String

type BatchStartBaremetalServersRequest

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

Request Object

func (BatchStartBaremetalServersRequest) String

type BatchStartBaremetalServersResponse

type BatchStartBaremetalServersResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchStartBaremetalServersResponse) String

type BatchStopBaremetalServersRequest

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

Request Object

func (BatchStopBaremetalServersRequest) String

type BatchStopBaremetalServersResponse

type BatchStopBaremetalServersResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchStopBaremetalServersResponse) String

type ChangeBaremetalNameBody

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

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

func (ChangeBaremetalNameBody) String

func (o ChangeBaremetalNameBody) String() string

type ChangeBaremetalNameResponsesServers

type ChangeBaremetalNameResponsesServers struct {
	Name *string `json:"name,omitempty"`

	Id *string `json:"id,omitempty"`

	Status *ChangeBaremetalNameResponsesServersStatus `json:"status,omitempty"`

	Created *sdktime.SdkTime `json:"created,omitempty"`

	Updated *sdktime.SdkTime `json:"updated,omitempty"`

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

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

	TenantId *string `json:"tenant_id,omitempty"`

	KeyName *string `json:"key_name,omitempty"`

	UserId *string `json:"user_id,omitempty"`

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

	HostId *string `json:"hostId,omitempty"`

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

	SecurityGroups *[]SecurityGroups `json:"security_groups,omitempty"`

	Links *[]Links `json:"links,omitempty"`

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

	OSEXTSRVATTRhypervisorHostname *string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname,omitempty"`

	OSEXTSRVATTRinstanceName *string `json:"OS-EXT-SRV-ATTR:instance_name,omitempty"`

	OSEXTSTSpowerState *int32 `json:"OS-EXT-STS:power_state,omitempty"`

	OSEXTSTStaskState *ChangeBaremetalNameResponsesServersOSEXTSTStaskState `json:"OS-EXT-STS:task_state,omitempty"`

	OSEXTSTSvmState *ChangeBaremetalNameResponsesServersOSEXTSTSvmState `json:"OS-EXT-STS:vm_state,omitempty"`

	OSSRVUSGlaunchedAt *sdktime.SdkTime `json:"OS-SRV-USG:launched_at,omitempty"`

	OSSRVUSGterminatedAt *sdktime.SdkTime `json:"OS-SRV-USG:terminated_at,omitempty"`

	OsExtendedVolumesvolumesAttached *[]OsExtendedVolumes `json:"os-extended-volumes:volumes_attached,omitempty"`

	AccessIPv4 *string `json:"accessIPv4,omitempty"`

	AccessIPv6 *string `json:"accessIPv6,omitempty"`

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

	ConfigDrive *string `json:"config_drive,omitempty"`

	Progress *int32 `json:"progress,omitempty"`

	Description *string `json:"description,omitempty"`

	HostStatus *ChangeBaremetalNameResponsesServersHostStatus `json:"host_status,omitempty"`

	OSEXTSRVATTRhostname *string `json:"OS-EXT-SRV-ATTR:hostname,omitempty"`

	OSEXTSRVATTRreservationId *string `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"`

	OSEXTSRVATTRlaunchIndex *int32 `json:"OS-EXT-SRV-ATTR:launch_index,omitempty"`

	OSEXTSRVATTRkernelId *string `json:"OS-EXT-SRV-ATTR:kernel_id,omitempty"`

	OSEXTSRVATTRramdiskId *string `json:"OS-EXT-SRV-ATTR:ramdisk_id,omitempty"`

	OSEXTSRVATTRrootDeviceName *string `json:"OS-EXT-SRV-ATTR:root_device_name,omitempty"`

	OSEXTSRVATTRuserData *string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`

	Locked *bool `json:"locked,omitempty"`

	Tags *[]string `json:"tags,omitempty"`

	SysTags *[]SystemTags `json:"sys_tags,omitempty"`

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

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

server字段数据结构说明

func (ChangeBaremetalNameResponsesServers) String

type ChangeBaremetalNameResponsesServersHostStatus

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

func (ChangeBaremetalNameResponsesServersHostStatus) MarshalJSON

func (*ChangeBaremetalNameResponsesServersHostStatus) UnmarshalJSON

type ChangeBaremetalNameResponsesServersOSDCFdiskConfig

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

func (ChangeBaremetalNameResponsesServersOSDCFdiskConfig) MarshalJSON

func (*ChangeBaremetalNameResponsesServersOSDCFdiskConfig) UnmarshalJSON

type ChangeBaremetalNameResponsesServersOSEXTSTStaskState

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

func (ChangeBaremetalNameResponsesServersOSEXTSTStaskState) MarshalJSON

func (*ChangeBaremetalNameResponsesServersOSEXTSTStaskState) UnmarshalJSON

type ChangeBaremetalNameResponsesServersOSEXTSTSvmState

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

func (ChangeBaremetalNameResponsesServersOSEXTSTSvmState) MarshalJSON

func (*ChangeBaremetalNameResponsesServersOSEXTSTSvmState) UnmarshalJSON

type ChangeBaremetalNameResponsesServersStatus

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

func (ChangeBaremetalNameResponsesServersStatus) MarshalJSON

func (*ChangeBaremetalNameResponsesServersStatus) UnmarshalJSON

type ChangeBaremetalNameServer

type ChangeBaremetalNameServer struct {
	Name string `json:"name"`
}

server字段数据结构说明

func (ChangeBaremetalNameServer) String

func (o ChangeBaremetalNameServer) String() string

type ChangeBaremetalServerNameRequest

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

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

Request Object

func (ChangeBaremetalServerNameRequest) String

type ChangeBaremetalServerNameResponse

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

Response Object

func (ChangeBaremetalServerNameResponse) String

type ChangeBaremetalServerOsRequest

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

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

Request Object

func (ChangeBaremetalServerOsRequest) String

type ChangeBaremetalServerOsResponse

type ChangeBaremetalServerOsResponse struct {
	JobId          *string `json:"jobId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ChangeBaremetalServerOsResponse) String

type CreateBareMetalServersRequest

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

Request Object

func (CreateBareMetalServersRequest) String

type CreateBareMetalServersResponse

type CreateBareMetalServersResponse struct {
	OrderId *string `json:"order_id,omitempty"`

	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateBareMetalServersResponse) String

type CreateBaremetalServersBody

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

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

func (CreateBaremetalServersBody) String

type CreateSchedulerHints

type CreateSchedulerHints struct {
	DecBaremetal *CreateSchedulerHintsDecBaremetal `json:"dec_baremetal,omitempty"`
}

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

type CreateSchedulerHintsDecBaremetalEnum

type CreateSchedulerHintsDecBaremetalEnum struct {
	SHARE    CreateSchedulerHintsDecBaremetal
	DEDICATE CreateSchedulerHintsDecBaremetal
}

func GetCreateSchedulerHintsDecBaremetalEnum

func GetCreateSchedulerHintsDecBaremetalEnum() CreateSchedulerHintsDecBaremetalEnum

type CreateServers

type CreateServers struct {
	ImageRef string `json:"imageRef"`

	FlavorRef string `json:"flavorRef"`

	Name string `json:"name"`

	Metadata *MetaDataInfo `json:"metadata"`

	UserData *string `json:"user_data,omitempty"`

	AdminPass *string `json:"adminPass,omitempty"`

	KeyName *string `json:"key_name,omitempty"`

	SecurityGroups *[]SecurityGroupsInfo `json:"security_groups,omitempty"`

	Nics []Nics `json:"nics"`

	AvailabilityZone string `json:"availability_zone"`

	Vpcid string `json:"vpcid"`

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

	Count *int32 `json:"count,omitempty"`

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

	DataVolumes *[]DataVolumes `json:"data_volumes,omitempty"`

	Extendparam *ExtendParam `json:"extendparam"`

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

	ServerTags *[]SystemTags `json:"server_tags,omitempty"`
}

server字段数据结构说明

func (CreateServers) String

func (o CreateServers) String() string

type DataVolumes

type DataVolumes struct {
	Volumetype DataVolumesVolumetype `json:"volumetype"`

	Size int32 `json:"size"`

	Shareable *bool `json:"shareable,omitempty"`

	ClusterId *string `json:"cluster_id,omitempty"`

	ClusterType *DataVolumesClusterType `json:"cluster_type,omitempty"`
}

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

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

type DataVolumesVolumetypeEnum

type DataVolumesVolumetypeEnum struct {
	SATA DataVolumesVolumetype
	SAS  DataVolumesVolumetype
	SSD  DataVolumesVolumetype
}

func GetDataVolumesVolumetypeEnum

func GetDataVolumesVolumetypeEnum() DataVolumesVolumetypeEnum

type DeleteWindowsBareMetalServerPasswordRequest

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

Request Object

func (DeleteWindowsBareMetalServerPasswordRequest) String

type DeleteWindowsBareMetalServerPasswordResponse

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

Response Object

func (DeleteWindowsBareMetalServerPasswordResponse) String

type DetachBaremetalServerVolumeRequest

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

	AttachmentId string `json:"attachment_id"`
}

Request Object

func (DetachBaremetalServerVolumeRequest) String

type DetachBaremetalServerVolumeResponse

type DetachBaremetalServerVolumeResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DetachBaremetalServerVolumeResponse) String

type Eip

type Eip struct {
	Iptype EipIptype `json:"iptype"`

	Bandwidth *BandWidth `json:"bandwidth"`

	Extendparam *ExtendParamEip `json:"extendparam"`
}

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

type EipIptypeEnum

type EipIptypeEnum struct {
	E_5_BGP  EipIptype
	E_5_SBGP EipIptype
}

func GetEipIptypeEnum

func GetEipIptypeEnum() EipIptypeEnum

type Entitie

type Entitie struct {
	ServerId *string `json:"server_id,omitempty"`

	NicId *string `json:"nic_id,omitempty"`
}

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

func (Entitie) String

func (o Entitie) String() string

type Entities

type Entities struct {
	SubJobsTotal *int32 `json:"sub_jobs_total,omitempty"`

	SubJobs *[]SubJobs `json:"sub_jobs,omitempty"`
}

entities字段数据结构说明

func (Entities) String

func (o Entities) String() string

type ExtendParam

type ExtendParam struct {
	ChargingMode *ExtendParamChargingMode `json:"chargingMode,omitempty"`

	RegionID *string `json:"regionID,omitempty"`

	PeriodType *ExtendParamPeriodType `json:"periodType,omitempty"`

	PeriodNum *int32 `json:"periodNum,omitempty"`

	IsAutoRenew *string `json:"isAutoRenew,omitempty"`

	IsAutoPay *string `json:"isAutoPay,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

创建裸金属服务器的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

type ExtendParamChargingModeEnum

type ExtendParamChargingModeEnum struct {
	PRE_PAID ExtendParamChargingMode
}

func GetExtendParamChargingModeEnum

func GetExtendParamChargingModeEnum() ExtendParamChargingModeEnum

type ExtendParamEip

type ExtendParamEip struct {
	Chargingmode ExtendParamEipChargingmode `json:"chargingmode"`
}

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

func (ExtendParamEip) String

func (o ExtendParamEip) String() string

type ExtendParamEipChargingmode

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

func (ExtendParamEipChargingmode) MarshalJSON

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

func (*ExtendParamEipChargingmode) UnmarshalJSON

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

type ExtendParamEipChargingmodeEnum

type ExtendParamEipChargingmodeEnum struct {
	PRE_PAID  ExtendParamEipChargingmode
	POST_PAID ExtendParamEipChargingmode
}

func GetExtendParamEipChargingmodeEnum

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

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 *int32 `json:"code,omitempty"`

	Details *string `json:"details,omitempty"`

	Created *sdktime.SdkTime `json:"created,omitempty"`
}

fault字段数据结构说明

func (Fault) String

func (o Fault) String() string

type FixedIps

type FixedIps struct {
	SubnetId *string `json:"subnet_id,omitempty"`

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

fixed_ips字段数据结构说明

func (FixedIps) String

func (o FixedIps) String() string

type FlavorInfo

type FlavorInfo struct {
	Id *string `json:"id,omitempty"`

	Links *[]Links `json:"links,omitempty"`
}

flavor字段数据结构说明

func (FlavorInfo) String

func (o FlavorInfo) String() string

type FlavorInfos

type FlavorInfos struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Disk *string `json:"disk,omitempty"`

	Vcpus *string `json:"vcpus,omitempty"`

	Ram *string `json:"ram,omitempty"`
}

flavor数据结构说明

func (FlavorInfos) String

func (o FlavorInfos) String() string

type FlavorsResp

type FlavorsResp struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Vcpus *string `json:"vcpus,omitempty"`

	Ram *int32 `json:"ram,omitempty"`

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

	OsFlavorAccessisPublic *bool `json:"os-flavor-access:is_public,omitempty"`

	Links *[]LinksInfo `json:"links,omitempty"`

	OsExtraSpecs *OsExtraSpecs `json:"os_extra_specs"`
}

flavors数据结构说明

func (FlavorsResp) String

func (o FlavorsResp) String() string

type Image

type Image struct {
	Id *string `json:"id,omitempty"`

	Links *[]Links `json:"links,omitempty"`
}

image字段数据结构说明

func (Image) String

func (o Image) String() string

type ImageInfo

type ImageInfo struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	OsType *ImageInfoOsType `json:"__os_type,omitempty"`

	Links *[]Links `json:"links,omitempty"`
}

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

type ImageInfoOsTypeEnum

type ImageInfoOsTypeEnum struct {
	LINUX   ImageInfoOsType
	WINDOWS ImageInfoOsType
	OTHER   ImageInfoOsType
}

func GetImageInfoOsTypeEnum

func GetImageInfoOsTypeEnum() ImageInfoOsTypeEnum

type InterfaceAttachments

type InterfaceAttachments struct {
	PortState *InterfaceAttachmentsPortState `json:"port_state,omitempty"`

	FixedIps *[]FixedIps `json:"fixed_ips,omitempty"`

	NetId *string `json:"net_id,omitempty"`

	PortId *string `json:"port_id,omitempty"`

	MacAddr *string `json:"mac_addr,omitempty"`

	DriverMode *string `json:"driver_mode,omitempty"`

	PciAddress *string `json:"pci_address,omitempty"`
}

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

type InterfaceAttachmentsPortStateEnum

type InterfaceAttachmentsPortStateEnum struct {
	ACTIVE InterfaceAttachmentsPortState
	BUILD  InterfaceAttachmentsPortState
	DOWN   InterfaceAttachmentsPortState
}

func GetInterfaceAttachmentsPortStateEnum

func GetInterfaceAttachmentsPortStateEnum() InterfaceAttachmentsPortStateEnum

type KeyValue

type KeyValue struct {
	Key string `json:"key"`
}

metadata数据结构说明

func (KeyValue) String

func (o KeyValue) String() string
type Links struct {
	Rel *string `json:"rel,omitempty"`

	Href *string `json:"href,omitempty"`
}

links字段数据结构说明

func (Links) String

func (o Links) String() string

type LinksInfo

type LinksInfo struct {
	Rel *string `json:"rel,omitempty"`

	Href *string `json:"href,omitempty"`

	Type *string `json:"type,omitempty"`
}

links字段数据结构说明

func (LinksInfo) String

func (o LinksInfo) String() string

type ListBareMetalServerDetailsRequest

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

Request Object

func (ListBareMetalServerDetailsRequest) String

type ListBareMetalServerDetailsResponse

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

Response Object

func (ListBareMetalServerDetailsResponse) String

type ListBareMetalServersRequest

type ListBareMetalServersRequest struct {
	Flavor *string `json:"flavor,omitempty"`

	Name *string `json:"name,omitempty"`

	Status *string `json:"status,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	Tags *string `json:"tags,omitempty"`

	ReservationId *string `json:"reservation_id,omitempty"`

	Detail *string `json:"detail,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListBareMetalServersRequest) String

type ListBareMetalServersResponse

type ListBareMetalServersResponse struct {
	Servers *[]ServerDetails `json:"servers,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListBareMetalServersResponse) String

type ListBaremetalFlavorDetailExtendsRequest

type ListBaremetalFlavorDetailExtendsRequest struct {
	AvailabilityZone *string `json:"availability_zone,omitempty"`
}

Request Object

func (ListBaremetalFlavorDetailExtendsRequest) String

type ListBaremetalFlavorDetailExtendsResponse

type ListBaremetalFlavorDetailExtendsResponse struct {
	Flavors        *[]FlavorsResp `json:"flavors,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListBaremetalFlavorDetailExtendsResponse) String

type MetaData

type MetaData struct {
	Metadata *KeyValue `json:"metadata"`
}

更新裸金属服务器元数据

func (MetaData) String

func (o MetaData) String() string

type MetaDataInfo

type MetaDataInfo struct {
	OpSvcUserid string `json:"op_svc_userid"`

	AdminPass *string `json:"admin_pass,omitempty"`

	Byol *string `json:"BYOL,omitempty"`

	AgencyName *string `json:"agency_name,omitempty"`
}

metadata字段数据结构说明

func (MetaDataInfo) String

func (o MetaDataInfo) String() string

type MetadataInfos

type MetadataInfos struct {
	Key *string `json:"key,omitempty"`
}

metadata字段数据结构说明

func (MetadataInfos) String

func (o MetadataInfos) String() string

type MetadataInstall

type MetadataInstall struct {
	UserData *string `json:"user_data,omitempty"`
}

metadata字段数据结构说明

func (MetadataInstall) String

func (o MetadataInstall) String() string

type MetadataList

type MetadataList struct {
	ChargingMode *MetadataListChargingMode `json:"chargingMode,omitempty"`

	MeteringOrderId *string `json:"metering.order_id,omitempty"`

	MeteringProductId *string `json:"metering.product_id,omitempty"`

	VpcId *string `json:"vpc_id,omitempty"`

	MeteringImageId *string `json:"metering.image_id,omitempty"`

	MeteringImagetype *MetadataListMeteringImagetype `json:"metering.imagetype,omitempty"`

	BaremetalPortIDList *string `json:"baremetalPortIDList,omitempty"`

	MeteringResourcespeccode *string `json:"metering.resourcespeccode,omitempty"`

	MeteringResourcetype *string `json:"metering.resourcetype,omitempty"`

	ImageName *string `json:"image_name,omitempty"`

	OpSvcUserid *string `json:"op_svc_userid,omitempty"`

	OsType *MetadataListOsType `json:"os_type,omitempty"`

	BmsSupportEvs *string `json:"__bms_support_evs,omitempty"`

	OsBit *MetadataListOsBit `json:"os_bit,omitempty"`
}

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

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

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

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

type MetadataListOsTypeEnum

type MetadataListOsTypeEnum struct {
	LINUX   MetadataListOsType
	WINDOWS MetadataListOsType
}

func GetMetadataListOsTypeEnum

func GetMetadataListOsTypeEnum() MetadataListOsTypeEnum

type Nics

type Nics struct {
	SubnetId string `json:"subnet_id"`

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

nics字段数据结构说明

func (Nics) String

func (o Nics) String() string

type OsChange

type OsChange struct {
	Adminpass *string `json:"adminpass,omitempty"`

	Keyname *string `json:"keyname,omitempty"`

	Userid *string `json:"userid,omitempty"`

	Imageid string `json:"imageid"`

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

os-change字段数据结构说明

func (OsChange) String

func (o OsChange) String() string

type OsChangeReq

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

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

func (OsChangeReq) String

func (o OsChangeReq) String() string

type OsExtendedVolumes

type OsExtendedVolumes struct {
	Id *string `json:"id,omitempty"`

	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`
}

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

func (OsExtendedVolumes) String

func (o OsExtendedVolumes) String() string

type OsExtendedVolumesInfo

type OsExtendedVolumesInfo struct {
	Id *string `json:"id,omitempty"`

	DeleteOnTermination *string `json:"delete_on_termination,omitempty"`

	BootIndex *OsExtendedVolumesInfoBootIndex `json:"bootIndex,omitempty"`

	Device *string `json:"device,omitempty"`
}

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

type OsExtendedVolumesInfoBootIndexEnum

type OsExtendedVolumesInfoBootIndexEnum struct {
	E_0 OsExtendedVolumesInfoBootIndex
	E_1 OsExtendedVolumesInfoBootIndex
}

func GetOsExtendedVolumesInfoBootIndexEnum

func GetOsExtendedVolumesInfoBootIndexEnum() OsExtendedVolumesInfoBootIndexEnum

type OsExtraSpecs

type OsExtraSpecs struct {
	ResourceType OsExtraSpecsResourceType `json:"resource_type"`

	CapabilitiescpuArch OsExtraSpecsCapabilitiescpuArch `json:"capabilities:cpu_arch"`

	BaremetaldiskDetail string `json:"baremetal:disk_detail"`

	CapabilitieshypervisorType string `json:"capabilities:hypervisor_type"`

	BaremetalSupportEvs *string `json:"baremetal:__support_evs,omitempty"`

	BaremetalextBootType *OsExtraSpecsBaremetalextBootType `json:"baremetal:extBootType,omitempty"`

	CapabilitiesboardType string `json:"capabilities:board_type"`

	BaremetalnetNum string `json:"baremetal:net_num"`

	BaremetalnetcardDetail string `json:"baremetal:netcard_detail"`

	BaremetalcpuDetail string `json:"baremetal:cpu_detail"`

	BaremetalmemoryDetail string `json:"baremetal:memory_detail"`

	Condoperationstatus *OsExtraSpecsCondoperationstatus `json:"cond:operation:status,omitempty"`

	Condoperationaz *string `json:"cond:operation:az,omitempty"`
}

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

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

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

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

type OsExtraSpecsResourceTypeEnum

type OsExtraSpecsResourceTypeEnum struct {
	IRONIC OsExtraSpecsResourceType
}

func GetOsExtraSpecsResourceTypeEnum

func GetOsExtraSpecsResourceTypeEnum() OsExtraSpecsResourceTypeEnum

type OsReinstall

type OsReinstall struct {
	Adminpass *string `json:"adminpass,omitempty"`

	Keyname *string `json:"keyname,omitempty"`

	Userid *string `json:"userid,omitempty"`

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

os-reinstall字段数据结构说明

func (OsReinstall) String

func (o OsReinstall) String() string

type OsReinstallBody

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

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

func (OsReinstallBody) String

func (o OsReinstallBody) String() string

type OsStartBody

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

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

func (OsStartBody) String

func (o OsStartBody) String() string

type OsStopBody

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

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

func (OsStopBody) String

func (o OsStopBody) String() string

type OsStopBodyType

type OsStopBodyType struct {
	Type OsStopBodyTypeType `json:"type"`

	Servers []ServersList `json:"servers"`
}

数据结构说明

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

type OsStopBodyTypeTypeEnum

type OsStopBodyTypeTypeEnum struct {
	SOFT OsStopBodyTypeType
	HARD OsStopBodyTypeType
}

func GetOsStopBodyTypeTypeEnum

func GetOsStopBodyTypeTypeEnum() OsStopBodyTypeTypeEnum

type PublicIp

type PublicIp struct {
	Id *string `json:"id,omitempty"`

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

publicip字段数据结构说明

func (PublicIp) String

func (o PublicIp) String() string

type RebootBody

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

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

func (RebootBody) String

func (o RebootBody) String() string

type ReinstallBaremetalServerOsRequest

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

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

Request Object

func (ReinstallBaremetalServerOsRequest) String

type ReinstallBaremetalServerOsResponse

type ReinstallBaremetalServerOsResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ReinstallBaremetalServerOsResponse) String

type ResetPassword

type ResetPassword struct {
	NewPassword string `json:"new_password"`
}

reset-password信息详情

func (ResetPassword) String

func (o ResetPassword) String() string

type ResetPasswordBody

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

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

func (ResetPasswordBody) String

func (o ResetPasswordBody) String() string

type ResetPwdOneClickRequest

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

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

Request Object

func (ResetPwdOneClickRequest) String

func (o ResetPwdOneClickRequest) String() string

type ResetPwdOneClickResponse

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

Response Object

func (ResetPwdOneClickResponse) String

func (o ResetPwdOneClickResponse) String() string

type RootVolume

type RootVolume struct {
	Volumetype RootVolumeVolumetype `json:"volumetype"`

	Size int32 `json:"size"`

	ClusterId *string `json:"cluster_id,omitempty"`

	ClusterType *RootVolumeClusterType `json:"cluster_type,omitempty"`
}

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

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

type RootVolumeVolumetypeEnum

type RootVolumeVolumetypeEnum struct {
	SATA RootVolumeVolumetype
	SAS  RootVolumeVolumetype
	SSD  RootVolumeVolumetype
}

func GetRootVolumeVolumetypeEnum

func GetRootVolumeVolumetypeEnum() RootVolumeVolumetypeEnum

type SchedulerHints

type SchedulerHints struct {
	DecBaremetal *[]SchedulerHintsDecBaremetal `json:"dec_baremetal,omitempty"`
}

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

type SchedulerHintsDecBaremetalEnum

type SchedulerHintsDecBaremetalEnum struct {
	SHARE    SchedulerHintsDecBaremetal
	DEDICATE SchedulerHintsDecBaremetal
}

func GetSchedulerHintsDecBaremetalEnum

func GetSchedulerHintsDecBaremetalEnum() SchedulerHintsDecBaremetalEnum

type SecurityGroups

type SecurityGroups struct {
	Name *string `json:"name,omitempty"`
}

security_groups字段数据结构说明

func (SecurityGroups) String

func (o SecurityGroups) String() string

type SecurityGroupsInfo

type SecurityGroupsInfo struct {
	Id *string `json:"id,omitempty"`
}

security_groups字段数据结构说明

func (SecurityGroupsInfo) String

func (o SecurityGroupsInfo) String() string

type SecurityGroupsList

type SecurityGroupsList struct {
	Name *string `json:"name,omitempty"`

	Id *string `json:"id,omitempty"`
}

security_groups数据结构说明

func (SecurityGroupsList) String

func (o SecurityGroupsList) String() string

type ServerDetails

type ServerDetails struct {
	Id string `json:"id"`

	UserId *string `json:"user_id,omitempty"`

	Name string `json:"name"`

	Created *sdktime.SdkTime `json:"created,omitempty"`

	Updated *sdktime.SdkTime `json:"updated,omitempty"`

	TenantId string `json:"tenant_id"`

	HostId *string `json:"hostId,omitempty"`

	Addresses map[string][]AddressInfo `json:"addresses,omitempty"`

	KeyName *string `json:"key_name,omitempty"`

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

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

	SecurityGroups *[]SecurityGroupsList `json:"security_groups,omitempty"`

	AccessIPv4 *string `json:"accessIPv4,omitempty"`

	AccessIPv6 *string `json:"accessIPv6,omitempty"`

	Status ServerDetailsStatus `json:"status"`

	Progress *int32 `json:"progress,omitempty"`

	ConfigDrive *string `json:"config_drive,omitempty"`

	Metadata *MetadataList `json:"metadata"`

	OSEXTSTStaskState *ServerDetailsOSEXTSTStaskState `json:"OS-EXT-STS:task_state,omitempty"`

	OSEXTSTSvmState *ServerDetailsOSEXTSTSvmState `json:"OS-EXT-STS:vm_state,omitempty"`

	OSEXTSRVATTRhost *string `json:"OS-EXT-SRV-ATTR:host,omitempty"`

	OSEXTSRVATTRinstanceName *string `json:"OS-EXT-SRV-ATTR:instance_name,omitempty"`

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

	OSDCFdiskConfig *ServerDetailsOSDCFdiskConfig `json:"OS-DCF:diskConfig,omitempty"`

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

	OSSRVUSGlaunchedAt *sdktime.SdkTime `json:"OS-SRV-USG:launched_at,omitempty"`

	OSSRVUSGterminatedAt *sdktime.SdkTime `json:"OS-SRV-USG:terminated_at,omitempty"`

	OsExtendedVolumesvolumesAttached *[]OsExtendedVolumesInfo `json:"os-extended-volumes:volumes_attached,omitempty"`

	Description *string `json:"description,omitempty"`

	HostStatus *ServerDetailsHostStatus `json:"host_status,omitempty"`

	OSEXTSRVATTRhostname *string `json:"OS-EXT-SRV-ATTR:hostname,omitempty"`

	OSEXTSRVATTRreservationId *string `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"`

	OSEXTSRVATTRlaunchIndex *int32 `json:"OS-EXT-SRV-ATTR:launch_index,omitempty"`

	OSEXTSRVATTRkernelId *string `json:"OS-EXT-SRV-ATTR:kernel_id,omitempty"`

	OSEXTSRVATTRramdiskId *string `json:"OS-EXT-SRV-ATTR:ramdisk_id,omitempty"`

	OSEXTSRVATTRrootDeviceName *string `json:"OS-EXT-SRV-ATTR:root_device_name,omitempty"`

	OSEXTSRVATTRuserData *string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`

	Locked *bool `json:"locked,omitempty"`

	Tags *[]string `json:"tags,omitempty"`

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

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

	SysTags *[]SystemTags `json:"sys_tags,omitempty"`
}

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

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

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

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

type ServerDetailsOSEXTSTSvmStateEnum

type ServerDetailsOSEXTSTSvmStateEnum struct {
	ACTIVE    ServerDetailsOSEXTSTSvmState
	SHUTOFF   ServerDetailsOSEXTSTSvmState
	SUSPENDED 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

type ServerDetailsStatusEnum

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

func GetServerDetailsStatusEnum

func GetServerDetailsStatusEnum() ServerDetailsStatusEnum

type ServerOsSchedulerHints

type ServerOsSchedulerHints struct {
	Group *[]string `json:"group,omitempty"`
}

func (ServerOsSchedulerHints) String

func (o ServerOsSchedulerHints) String() string

type ServersInfoType

type ServersInfoType struct {
	Type ServersInfoTypeType `json:"type"`

	Servers []ServersList `json:"servers"`
}

数据结构说明

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

type ServersInfoTypeTypeEnum

type ServersInfoTypeTypeEnum struct {
	SOFT ServersInfoTypeType
	HARD ServersInfoTypeType
}

func GetServersInfoTypeTypeEnum

func GetServersInfoTypeTypeEnum() ServersInfoTypeTypeEnum

type ServersList

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

servers字段数据结构说明

func (ServersList) String

func (o ServersList) String() string

type ShowBaremetalServerInterfaceAttachmentsRequest

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

Request Object

func (ShowBaremetalServerInterfaceAttachmentsRequest) String

type ShowBaremetalServerInterfaceAttachmentsResponse

type ShowBaremetalServerInterfaceAttachmentsResponse struct {
	InterfaceAttachments *[]InterfaceAttachments `json:"interfaceAttachments,omitempty"`
	HttpStatusCode       int                     `json:"-"`
}

Response Object

func (ShowBaremetalServerInterfaceAttachmentsResponse) String

type ShowBaremetalServerTagsRequest

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

Request Object

func (ShowBaremetalServerTagsRequest) String

type ShowBaremetalServerTagsResponse

type ShowBaremetalServerTagsResponse struct {
	Tags           *[]BaremetalServerTag `json:"tags,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ShowBaremetalServerTagsResponse) String

type ShowBaremetalServerVolumeInfoRequest

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

Request Object

func (ShowBaremetalServerVolumeInfoRequest) String

type ShowBaremetalServerVolumeInfoResponse

type ShowBaremetalServerVolumeInfoResponse struct {
	VolumeAttachments *[]VolumeAttachments `json:"volumeAttachments,omitempty"`
	HttpStatusCode    int                  `json:"-"`
}

Response Object

func (ShowBaremetalServerVolumeInfoResponse) String

type ShowJobInfosRequest

type ShowJobInfosRequest struct {
	JobId string `json:"job_id"`
}

Request Object

func (ShowJobInfosRequest) String

func (o ShowJobInfosRequest) String() string

type ShowJobInfosResponse

type ShowJobInfosResponse struct {
	Status *ShowJobInfosResponseStatus `json:"status,omitempty"`

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

	JobId *string `json:"job_id,omitempty"`

	JobType *string `json:"job_type,omitempty"`

	BeginTime *sdktime.SdkTime `json:"begin_time,omitempty"`

	EndTime *sdktime.SdkTime `json:"end_time,omitempty"`

	ErrorCode *string `json:"error_code,omitempty"`

	FailReason *string `json:"fail_reason,omitempty"`

	Message *string `json:"message,omitempty"`

	Code           *string `json:"code,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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

type ShowJobInfosResponseStatusEnum

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

func GetShowJobInfosResponseStatusEnum

func GetShowJobInfosResponseStatusEnum() ShowJobInfosResponseStatusEnum

type ShowResetPwdRequest

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

Request Object

func (ShowResetPwdRequest) String

func (o ShowResetPwdRequest) String() string

type ShowResetPwdResponse

type ShowResetPwdResponse struct {
	ResetpwdFlag   *string `json:"resetpwd_flag,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowResetPwdResponse) String

func (o ShowResetPwdResponse) String() string

type ShowSpecifiedVersionRequest

type ShowSpecifiedVersionRequest struct {
	ApiVersion string `json:"api_version"`
}

Request Object

func (ShowSpecifiedVersionRequest) String

type ShowSpecifiedVersionResponse

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

Response Object

func (ShowSpecifiedVersionResponse) String

type ShowTenantQuotaRequest

type ShowTenantQuotaRequest struct {
}

Request Object

func (ShowTenantQuotaRequest) String

func (o ShowTenantQuotaRequest) String() string

type ShowTenantQuotaResponse

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

Response Object

func (ShowTenantQuotaResponse) String

func (o ShowTenantQuotaResponse) String() string

type ShowWindowsBaremetalServerPwdRequest

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

Request Object

func (ShowWindowsBaremetalServerPwdRequest) String

type ShowWindowsBaremetalServerPwdResponse

type ShowWindowsBaremetalServerPwdResponse struct {
	Password       *string `json:"password,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowWindowsBaremetalServerPwdResponse) String

type StartServersInfo

type StartServersInfo struct {
	Servers []ServersList `json:"servers"`
}

os-start字段数据结构说明

func (StartServersInfo) String

func (o StartServersInfo) String() string

type SubJobs

type SubJobs struct {
	Status *SubJobsStatus `json:"status,omitempty"`

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

	JobId *string `json:"job_id,omitempty"`

	JobType *string `json:"job_type,omitempty"`

	BeginTime *sdktime.SdkTime `json:"begin_time,omitempty"`

	EndTime *sdktime.SdkTime `json:"end_time,omitempty"`

	ErrorCode *string `json:"error_code,omitempty"`

	FailReason *string `json:"fail_reason,omitempty"`

	Message *string `json:"message,omitempty"`

	Code *string `json:"code,omitempty"`
}

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

type SubJobsStatusEnum

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

func GetSubJobsStatusEnum

func GetSubJobsStatusEnum() SubJobsStatusEnum

type SystemTags

type SystemTags struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

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

func (SystemTags) String

func (o SystemTags) String() string

type UpdateBaremetalServerMetadataRequest

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

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

Request Object

func (UpdateBaremetalServerMetadataRequest) String

type UpdateBaremetalServerMetadataResponse

type UpdateBaremetalServerMetadataResponse struct {
	Metadata       *KeyValue `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdateBaremetalServerMetadataResponse) String

type VersionLinks struct {
	Href *string `json:"href,omitempty"`

	Rel *string `json:"rel,omitempty"`
}

API的url地址

func (VersionLinks) String

func (o VersionLinks) String() string

type Versions

type Versions struct {
	Id *VersionsId `json:"id,omitempty"`

	Links *[]VersionLinks `json:"links,omitempty"`

	MinVersion *string `json:"min_version,omitempty"`

	Status *VersionsStatus `json:"status,omitempty"`

	Version *string `json:"version,omitempty"`

	Updated *sdktime.SdkTime `json:"updated,omitempty"`
}

描述裸金属服务器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

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

type VersionsStatusEnum

type VersionsStatusEnum struct {
	CURRENT    VersionsStatus
	SUPPORTED  VersionsStatus
	DEPRECATED VersionsStatus
}

func GetVersionsStatusEnum

func GetVersionsStatusEnum() VersionsStatusEnum

type VolumeAttachment

type VolumeAttachment struct {
	VolumeId string `json:"volumeId"`

	Device *string `json:"device,omitempty"`
}

volumeAttachment数据结构说明

func (VolumeAttachment) String

func (o VolumeAttachment) String() string

type VolumeAttachments

type VolumeAttachments struct {
	Id *string `json:"id,omitempty"`

	ServerId *string `json:"serverId,omitempty"`

	VolumeId *string `json:"volumeId,omitempty"`

	Device *string `json:"device,omitempty"`
}

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

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