Documentation ¶
Index ¶
- type Absolute
- type Address
- type AddressInfo
- type AddressInfoOSEXTIPStype
- type AddressInfoOSEXTIPStypeEnum
- type AddressOSEXTIPStype
- type AddressOSEXTIPStypeEnum
- type AddressVersion
- type AddressVersionEnum
- type Addresses
- type AttachBaremetalServerVolumeRequest
- type AttachBaremetalServerVolumeResponse
- type AttachVolumeBody
- type BandWidth
- type BandWidthChargemode
- type BandWidthChargemodeEnum
- type BandWidthSharetype
- type BandWidthSharetypeEnum
- type BaremetalServerTag
- type BatchCreateBaremetalServerTagsRequest
- type BatchCreateBaremetalServerTagsRequestBody
- type BatchCreateBaremetalServerTagsRequestBodyAction
- type BatchCreateBaremetalServerTagsRequestBodyActionEnum
- type BatchCreateBaremetalServerTagsResponse
- type BatchDeleteBaremetalServerTagsRequest
- type BatchDeleteBaremetalServerTagsRequestBody
- type BatchDeleteBaremetalServerTagsRequestBodyAction
- type BatchDeleteBaremetalServerTagsRequestBodyActionEnum
- type BatchDeleteBaremetalServerTagsResponse
- type BatchRebootBaremetalServersRequest
- type BatchRebootBaremetalServersResponse
- type BatchStartBaremetalServersRequest
- type BatchStartBaremetalServersResponse
- type BatchStopBaremetalServersRequest
- type BatchStopBaremetalServersResponse
- type ChangeBaremetalNameBody
- type ChangeBaremetalNameResponsesServers
- type ChangeBaremetalNameResponsesServersHostStatus
- type ChangeBaremetalNameResponsesServersHostStatusEnum
- type ChangeBaremetalNameResponsesServersOSDCFdiskConfig
- type ChangeBaremetalNameResponsesServersOSDCFdiskConfigEnum
- type ChangeBaremetalNameResponsesServersOSEXTSTStaskState
- type ChangeBaremetalNameResponsesServersOSEXTSTStaskStateEnum
- type ChangeBaremetalNameResponsesServersOSEXTSTSvmState
- type ChangeBaremetalNameResponsesServersOSEXTSTSvmStateEnum
- type ChangeBaremetalNameResponsesServersStatus
- type ChangeBaremetalNameResponsesServersStatusEnum
- type ChangeBaremetalNameServer
- type ChangeBaremetalServerNameRequest
- type ChangeBaremetalServerNameResponse
- type ChangeBaremetalServerOsRequest
- type ChangeBaremetalServerOsResponse
- type CreateBareMetalServersRequest
- type CreateBareMetalServersResponse
- type CreateBaremetalServersBody
- type CreateSchedulerHints
- type CreateSchedulerHintsDecBaremetal
- type CreateSchedulerHintsDecBaremetalEnum
- type CreateServers
- type DataVolumes
- type DataVolumesClusterType
- type DataVolumesClusterTypeEnum
- type DataVolumesVolumetype
- type DataVolumesVolumetypeEnum
- type DeleteWindowsBareMetalServerPasswordRequest
- type DeleteWindowsBareMetalServerPasswordResponse
- type DetachBaremetalServerVolumeRequest
- type DetachBaremetalServerVolumeResponse
- type Eip
- type EipIptype
- type EipIptypeEnum
- type Entitie
- type Entities
- type ExtendParam
- type ExtendParamChargingMode
- type ExtendParamChargingModeEnum
- type ExtendParamEip
- type ExtendParamEipChargingmode
- type ExtendParamEipChargingmodeEnum
- type ExtendParamPeriodType
- type ExtendParamPeriodTypeEnum
- type Fault
- type FixedIps
- type FlavorInfo
- type FlavorInfos
- type FlavorsResp
- type Image
- type ImageInfo
- type ImageInfoOsType
- type ImageInfoOsTypeEnum
- type InterfaceAttachments
- type InterfaceAttachmentsPortState
- type InterfaceAttachmentsPortStateEnum
- type KeyValue
- type Links
- type LinksInfo
- type ListBareMetalServerDetailsRequest
- type ListBareMetalServerDetailsResponse
- type ListBareMetalServersRequest
- type ListBareMetalServersResponse
- type ListBaremetalFlavorDetailExtendsRequest
- type ListBaremetalFlavorDetailExtendsResponse
- type MetaData
- type MetaDataInfo
- type MetadataInfos
- type MetadataInstall
- type MetadataList
- type MetadataListChargingMode
- type MetadataListChargingModeEnum
- type MetadataListMeteringImagetype
- type MetadataListMeteringImagetypeEnum
- type MetadataListOsBit
- type MetadataListOsBitEnum
- type MetadataListOsType
- type MetadataListOsTypeEnum
- type Nics
- type OsChange
- type OsChangeReq
- type OsExtendedVolumes
- type OsExtendedVolumesInfo
- type OsExtendedVolumesInfoBootIndex
- type OsExtendedVolumesInfoBootIndexEnum
- type OsExtraSpecs
- type OsExtraSpecsBaremetalextBootType
- type OsExtraSpecsBaremetalextBootTypeEnum
- type OsExtraSpecsCapabilitiescpuArch
- type OsExtraSpecsCapabilitiescpuArchEnum
- type OsExtraSpecsCondoperationstatus
- type OsExtraSpecsCondoperationstatusEnum
- type OsExtraSpecsResourceType
- type OsExtraSpecsResourceTypeEnum
- type OsReinstall
- type OsReinstallBody
- type OsStartBody
- type OsStopBody
- type OsStopBodyType
- type OsStopBodyTypeType
- type OsStopBodyTypeTypeEnum
- type PublicIp
- type RebootBody
- type ReinstallBaremetalServerOsRequest
- type ReinstallBaremetalServerOsResponse
- type ResetPassword
- type ResetPasswordBody
- type ResetPwdOneClickRequest
- type ResetPwdOneClickResponse
- type RootVolume
- type RootVolumeClusterType
- type RootVolumeClusterTypeEnum
- type RootVolumeVolumetype
- type RootVolumeVolumetypeEnum
- type SchedulerHints
- type SchedulerHintsDecBaremetal
- type SchedulerHintsDecBaremetalEnum
- type SecurityGroups
- type SecurityGroupsInfo
- type SecurityGroupsList
- type ServerDetails
- type ServerDetailsHostStatus
- type ServerDetailsHostStatusEnum
- type ServerDetailsOSDCFdiskConfig
- type ServerDetailsOSDCFdiskConfigEnum
- type ServerDetailsOSEXTSTStaskState
- type ServerDetailsOSEXTSTStaskStateEnum
- type ServerDetailsOSEXTSTSvmState
- type ServerDetailsOSEXTSTSvmStateEnum
- type ServerDetailsStatus
- type ServerDetailsStatusEnum
- type ServerOsSchedulerHints
- type ServersInfoType
- type ServersInfoTypeType
- type ServersInfoTypeTypeEnum
- type ServersList
- type ShowBaremetalServerInterfaceAttachmentsRequest
- type ShowBaremetalServerInterfaceAttachmentsResponse
- type ShowBaremetalServerTagsRequest
- type ShowBaremetalServerTagsResponse
- type ShowBaremetalServerVolumeInfoRequest
- type ShowBaremetalServerVolumeInfoResponse
- type ShowJobInfosRequest
- type ShowJobInfosResponse
- type ShowJobInfosResponseStatus
- type ShowJobInfosResponseStatusEnum
- type ShowResetPwdRequest
- type ShowResetPwdResponse
- type ShowSpecifiedVersionRequest
- type ShowSpecifiedVersionResponse
- type ShowTenantQuotaRequest
- type ShowTenantQuotaResponse
- type ShowWindowsBaremetalServerPwdRequest
- type ShowWindowsBaremetalServerPwdResponse
- type StartServersInfo
- type SubJobs
- type SubJobsStatus
- type SubJobsStatusEnum
- type SystemTags
- type UpdateBaremetalServerMetadataRequest
- type UpdateBaremetalServerMetadataResponse
- type VersionLinks
- type Versions
- type VersionsId
- type VersionsIdEnum
- type VersionsStatus
- type VersionsStatusEnum
- type VolumeAttachment
- type VolumeAttachments
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数据结构说明
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字段数据结构说明
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 AttachBaremetalServerVolumeRequest ¶
type AttachBaremetalServerVolumeRequest struct { ServerId string `json:"server_id"` Body *AttachVolumeBody `json:"body,omitempty"` }
Request Object
func (AttachBaremetalServerVolumeRequest) String ¶
func (o AttachBaremetalServerVolumeRequest) String() string
type AttachBaremetalServerVolumeResponse ¶
type AttachBaremetalServerVolumeResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (AttachBaremetalServerVolumeResponse) String ¶
func (o AttachBaremetalServerVolumeResponse) String() 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"` Id *string `json:"id,omitempty"` Size int32 `json:"size"` Chargemode *BandWidthChargemode `json:"chargemode,omitempty"` }
bandwidth字段数据结构说明
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 {}
func GetBandWidthSharetypeEnum ¶
func GetBandWidthSharetypeEnum() BandWidthSharetypeEnum
type BaremetalServerTag ¶
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 ¶
func (o BatchCreateBaremetalServerTagsRequest) String() string
type BatchCreateBaremetalServerTagsRequestBody ¶
type BatchCreateBaremetalServerTagsRequestBody struct { Action BatchCreateBaremetalServerTagsRequestBodyAction `json:"action"` Tags []BaremetalServerTag `json:"tags"` }
This is a auto create Body Object
func (BatchCreateBaremetalServerTagsRequestBody) String ¶
func (o BatchCreateBaremetalServerTagsRequestBody) String() string
type BatchCreateBaremetalServerTagsRequestBodyAction ¶
type BatchCreateBaremetalServerTagsRequestBodyAction struct {
// contains filtered or unexported fields
}
func (BatchCreateBaremetalServerTagsRequestBodyAction) MarshalJSON ¶
func (c BatchCreateBaremetalServerTagsRequestBodyAction) MarshalJSON() ([]byte, error)
func (*BatchCreateBaremetalServerTagsRequestBodyAction) UnmarshalJSON ¶
func (c *BatchCreateBaremetalServerTagsRequestBodyAction) UnmarshalJSON(b []byte) error
type BatchCreateBaremetalServerTagsRequestBodyActionEnum ¶
type BatchCreateBaremetalServerTagsRequestBodyActionEnum struct {
CREATE BatchCreateBaremetalServerTagsRequestBodyAction
}
func GetBatchCreateBaremetalServerTagsRequestBodyActionEnum ¶
func GetBatchCreateBaremetalServerTagsRequestBodyActionEnum() BatchCreateBaremetalServerTagsRequestBodyActionEnum
type BatchCreateBaremetalServerTagsResponse ¶
type BatchCreateBaremetalServerTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchCreateBaremetalServerTagsResponse) String ¶
func (o BatchCreateBaremetalServerTagsResponse) String() string
type BatchDeleteBaremetalServerTagsRequest ¶
type BatchDeleteBaremetalServerTagsRequest struct { ServerId string `json:"server_id"` Body *BatchDeleteBaremetalServerTagsRequestBody `json:"body,omitempty"` }
Request Object
func (BatchDeleteBaremetalServerTagsRequest) String ¶
func (o BatchDeleteBaremetalServerTagsRequest) String() string
type BatchDeleteBaremetalServerTagsRequestBody ¶
type BatchDeleteBaremetalServerTagsRequestBody struct { Action BatchDeleteBaremetalServerTagsRequestBodyAction `json:"action"` Tags []BaremetalServerTag `json:"tags"` }
This is a auto create Body Object
func (BatchDeleteBaremetalServerTagsRequestBody) String ¶
func (o BatchDeleteBaremetalServerTagsRequestBody) String() string
type BatchDeleteBaremetalServerTagsRequestBodyAction ¶
type BatchDeleteBaremetalServerTagsRequestBodyAction struct {
// contains filtered or unexported fields
}
func (BatchDeleteBaremetalServerTagsRequestBodyAction) MarshalJSON ¶
func (c BatchDeleteBaremetalServerTagsRequestBodyAction) MarshalJSON() ([]byte, error)
func (*BatchDeleteBaremetalServerTagsRequestBodyAction) UnmarshalJSON ¶
func (c *BatchDeleteBaremetalServerTagsRequestBodyAction) UnmarshalJSON(b []byte) error
type BatchDeleteBaremetalServerTagsRequestBodyActionEnum ¶
type BatchDeleteBaremetalServerTagsRequestBodyActionEnum struct {
DELETE BatchDeleteBaremetalServerTagsRequestBodyAction
}
func GetBatchDeleteBaremetalServerTagsRequestBodyActionEnum ¶
func GetBatchDeleteBaremetalServerTagsRequestBodyActionEnum() BatchDeleteBaremetalServerTagsRequestBodyActionEnum
type BatchDeleteBaremetalServerTagsResponse ¶
type BatchDeleteBaremetalServerTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchDeleteBaremetalServerTagsResponse) String ¶
func (o BatchDeleteBaremetalServerTagsResponse) String() string
type BatchRebootBaremetalServersRequest ¶
type BatchRebootBaremetalServersRequest struct {
Body *RebootBody `json:"body,omitempty"`
}
Request Object
func (BatchRebootBaremetalServersRequest) String ¶
func (o BatchRebootBaremetalServersRequest) String() string
type BatchRebootBaremetalServersResponse ¶
type BatchRebootBaremetalServersResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (BatchRebootBaremetalServersResponse) String ¶
func (o BatchRebootBaremetalServersResponse) String() string
type BatchStartBaremetalServersRequest ¶
type BatchStartBaremetalServersRequest struct {
Body *OsStartBody `json:"body,omitempty"`
}
Request Object
func (BatchStartBaremetalServersRequest) String ¶
func (o BatchStartBaremetalServersRequest) String() string
type BatchStartBaremetalServersResponse ¶
type BatchStartBaremetalServersResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (BatchStartBaremetalServersResponse) String ¶
func (o BatchStartBaremetalServersResponse) String() string
type BatchStopBaremetalServersRequest ¶
type BatchStopBaremetalServersRequest struct {
Body *OsStopBody `json:"body,omitempty"`
}
Request Object
func (BatchStopBaremetalServersRequest) String ¶
func (o BatchStopBaremetalServersRequest) String() string
type BatchStopBaremetalServersResponse ¶
type BatchStopBaremetalServersResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (BatchStopBaremetalServersResponse) String ¶
func (o BatchStopBaremetalServersResponse) String() 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 ¶
func (o ChangeBaremetalNameResponsesServers) String() string
type ChangeBaremetalNameResponsesServersHostStatus ¶
type ChangeBaremetalNameResponsesServersHostStatus struct {
// contains filtered or unexported fields
}
func (ChangeBaremetalNameResponsesServersHostStatus) MarshalJSON ¶
func (c ChangeBaremetalNameResponsesServersHostStatus) MarshalJSON() ([]byte, error)
func (*ChangeBaremetalNameResponsesServersHostStatus) UnmarshalJSON ¶
func (c *ChangeBaremetalNameResponsesServersHostStatus) UnmarshalJSON(b []byte) error
type ChangeBaremetalNameResponsesServersHostStatusEnum ¶
type ChangeBaremetalNameResponsesServersHostStatusEnum struct { UP ChangeBaremetalNameResponsesServersHostStatus UNKNOWN ChangeBaremetalNameResponsesServersHostStatus DOWN ChangeBaremetalNameResponsesServersHostStatus MAINTENANCE ChangeBaremetalNameResponsesServersHostStatus }
func GetChangeBaremetalNameResponsesServersHostStatusEnum ¶
func GetChangeBaremetalNameResponsesServersHostStatusEnum() ChangeBaremetalNameResponsesServersHostStatusEnum
type ChangeBaremetalNameResponsesServersOSDCFdiskConfig ¶
type ChangeBaremetalNameResponsesServersOSDCFdiskConfig struct {
// contains filtered or unexported fields
}
func (ChangeBaremetalNameResponsesServersOSDCFdiskConfig) MarshalJSON ¶
func (c ChangeBaremetalNameResponsesServersOSDCFdiskConfig) MarshalJSON() ([]byte, error)
func (*ChangeBaremetalNameResponsesServersOSDCFdiskConfig) UnmarshalJSON ¶
func (c *ChangeBaremetalNameResponsesServersOSDCFdiskConfig) UnmarshalJSON(b []byte) error
type ChangeBaremetalNameResponsesServersOSDCFdiskConfigEnum ¶
type ChangeBaremetalNameResponsesServersOSDCFdiskConfigEnum struct { MANUAL ChangeBaremetalNameResponsesServersOSDCFdiskConfig AUTO ChangeBaremetalNameResponsesServersOSDCFdiskConfig }
func GetChangeBaremetalNameResponsesServersOSDCFdiskConfigEnum ¶
func GetChangeBaremetalNameResponsesServersOSDCFdiskConfigEnum() ChangeBaremetalNameResponsesServersOSDCFdiskConfigEnum
type ChangeBaremetalNameResponsesServersOSEXTSTStaskState ¶
type ChangeBaremetalNameResponsesServersOSEXTSTStaskState struct {
// contains filtered or unexported fields
}
func (ChangeBaremetalNameResponsesServersOSEXTSTStaskState) MarshalJSON ¶
func (c ChangeBaremetalNameResponsesServersOSEXTSTStaskState) MarshalJSON() ([]byte, error)
func (*ChangeBaremetalNameResponsesServersOSEXTSTStaskState) UnmarshalJSON ¶
func (c *ChangeBaremetalNameResponsesServersOSEXTSTStaskState) UnmarshalJSON(b []byte) error
type ChangeBaremetalNameResponsesServersOSEXTSTStaskStateEnum ¶
type ChangeBaremetalNameResponsesServersOSEXTSTStaskStateEnum struct { REBOOTING ChangeBaremetalNameResponsesServersOSEXTSTStaskState REBOOT_STARTED ChangeBaremetalNameResponsesServersOSEXTSTStaskState REBOOT_STARTED_HARD ChangeBaremetalNameResponsesServersOSEXTSTStaskState POWERING_OFF ChangeBaremetalNameResponsesServersOSEXTSTStaskState POWERING_ON ChangeBaremetalNameResponsesServersOSEXTSTStaskState REBUILDING ChangeBaremetalNameResponsesServersOSEXTSTStaskState SCHEDULING ChangeBaremetalNameResponsesServersOSEXTSTStaskState DELETING ChangeBaremetalNameResponsesServersOSEXTSTStaskState }
func GetChangeBaremetalNameResponsesServersOSEXTSTStaskStateEnum ¶
func GetChangeBaremetalNameResponsesServersOSEXTSTStaskStateEnum() ChangeBaremetalNameResponsesServersOSEXTSTStaskStateEnum
type ChangeBaremetalNameResponsesServersOSEXTSTSvmState ¶
type ChangeBaremetalNameResponsesServersOSEXTSTSvmState struct {
// contains filtered or unexported fields
}
func (ChangeBaremetalNameResponsesServersOSEXTSTSvmState) MarshalJSON ¶
func (c ChangeBaremetalNameResponsesServersOSEXTSTSvmState) MarshalJSON() ([]byte, error)
func (*ChangeBaremetalNameResponsesServersOSEXTSTSvmState) UnmarshalJSON ¶
func (c *ChangeBaremetalNameResponsesServersOSEXTSTSvmState) UnmarshalJSON(b []byte) error
type ChangeBaremetalNameResponsesServersOSEXTSTSvmStateEnum ¶
type ChangeBaremetalNameResponsesServersOSEXTSTSvmStateEnum struct { RUNNING ChangeBaremetalNameResponsesServersOSEXTSTSvmState SHUTOFF ChangeBaremetalNameResponsesServersOSEXTSTSvmState SUSPENDED ChangeBaremetalNameResponsesServersOSEXTSTSvmState REBOOT ChangeBaremetalNameResponsesServersOSEXTSTSvmState }
func GetChangeBaremetalNameResponsesServersOSEXTSTSvmStateEnum ¶
func GetChangeBaremetalNameResponsesServersOSEXTSTSvmStateEnum() ChangeBaremetalNameResponsesServersOSEXTSTSvmStateEnum
type ChangeBaremetalNameResponsesServersStatus ¶
type ChangeBaremetalNameResponsesServersStatus struct {
// contains filtered or unexported fields
}
func (ChangeBaremetalNameResponsesServersStatus) MarshalJSON ¶
func (c ChangeBaremetalNameResponsesServersStatus) MarshalJSON() ([]byte, error)
func (*ChangeBaremetalNameResponsesServersStatus) UnmarshalJSON ¶
func (c *ChangeBaremetalNameResponsesServersStatus) UnmarshalJSON(b []byte) error
type ChangeBaremetalNameResponsesServersStatusEnum ¶
type ChangeBaremetalNameResponsesServersStatusEnum struct { ACTIVE ChangeBaremetalNameResponsesServersStatus BUILD ChangeBaremetalNameResponsesServersStatus DELETED ChangeBaremetalNameResponsesServersStatus ERROR ChangeBaremetalNameResponsesServersStatus HARD_REBOOT ChangeBaremetalNameResponsesServersStatus REBOOT ChangeBaremetalNameResponsesServersStatus REBUILD ChangeBaremetalNameResponsesServersStatus SHUTOFF ChangeBaremetalNameResponsesServersStatus }
func GetChangeBaremetalNameResponsesServersStatusEnum ¶
func GetChangeBaremetalNameResponsesServersStatusEnum() ChangeBaremetalNameResponsesServersStatusEnum
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 ¶
func (o ChangeBaremetalServerNameRequest) String() string
type ChangeBaremetalServerNameResponse ¶
type ChangeBaremetalServerNameResponse struct { Server *ChangeBaremetalNameResponsesServers `json:"server,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ChangeBaremetalServerNameResponse) String ¶
func (o ChangeBaremetalServerNameResponse) String() string
type ChangeBaremetalServerOsRequest ¶ added in v0.0.49
type ChangeBaremetalServerOsRequest struct { ServerId string `json:"server_id"` Body *OsChangeReq `json:"body,omitempty"` }
Request Object
func (ChangeBaremetalServerOsRequest) String ¶ added in v0.0.49
func (o ChangeBaremetalServerOsRequest) String() string
type ChangeBaremetalServerOsResponse ¶ added in v0.0.49
type ChangeBaremetalServerOsResponse struct { JobId *string `json:"jobId,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ChangeBaremetalServerOsResponse) String ¶ added in v0.0.49
func (o ChangeBaremetalServerOsResponse) String() string
type CreateBareMetalServersRequest ¶
type CreateBareMetalServersRequest struct {
Body *CreateBaremetalServersBody `json:"body,omitempty"`
}
Request Object
func (CreateBareMetalServersRequest) String ¶
func (o CreateBareMetalServersRequest) String() 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 ¶
func (o CreateBareMetalServersResponse) String() string
type CreateBaremetalServersBody ¶
type CreateBaremetalServersBody struct {
Server *CreateServers `json:"server"`
}
创建裸金属服务器接口请求结构体
func (CreateBaremetalServersBody) String ¶
func (o CreateBaremetalServersBody) String() 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"` 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 ¶
func (o DeleteWindowsBareMetalServerPasswordRequest) String() string
type DeleteWindowsBareMetalServerPasswordResponse ¶
type DeleteWindowsBareMetalServerPasswordResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteWindowsBareMetalServerPasswordResponse) String ¶
func (o DeleteWindowsBareMetalServerPasswordResponse) String() string
type DetachBaremetalServerVolumeRequest ¶
type DetachBaremetalServerVolumeRequest struct { ServerId string `json:"server_id"` AttachmentId string `json:"attachment_id"` }
Request Object
func (DetachBaremetalServerVolumeRequest) String ¶
func (o DetachBaremetalServerVolumeRequest) String() string
type DetachBaremetalServerVolumeResponse ¶
type DetachBaremetalServerVolumeResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DetachBaremetalServerVolumeResponse) String ¶
func (o DetachBaremetalServerVolumeResponse) String() string
type Eip ¶
type Eip struct { Iptype EipIptype `json:"iptype"` Bandwidth *BandWidth `json:"bandwidth"` Extendparam *ExtendParamEip `json:"extendparam"` }
eip字段数据结构说明
type EipIptype ¶
type EipIptype struct {
// contains filtered or unexported fields
}
func (EipIptype) MarshalJSON ¶
func (*EipIptype) UnmarshalJSON ¶
type EipIptypeEnum ¶
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
type Entities ¶
type Entities struct { SubJobsTotal *int32 `json:"sub_jobs_total,omitempty"` SubJobs *[]SubJobs `json:"sub_jobs,omitempty"` }
entities字段数据结构说明
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字段数据结构说明
type FixedIps ¶
type FixedIps struct { SubnetId *string `json:"subnet_id,omitempty"` IpAddress *string `json:"ip_address,omitempty"` }
fixed_ips字段数据结构说明
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 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数据结构说明
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 LinksInfo ¶
type LinksInfo struct { Rel *string `json:"rel,omitempty"` Href *string `json:"href,omitempty"` Type *string `json:"type,omitempty"` }
links字段数据结构说明
type ListBareMetalServerDetailsRequest ¶
type ListBareMetalServerDetailsRequest struct {
ServerId string `json:"server_id"`
}
Request Object
func (ListBareMetalServerDetailsRequest) String ¶
func (o ListBareMetalServerDetailsRequest) String() string
type ListBareMetalServerDetailsResponse ¶
type ListBareMetalServerDetailsResponse struct { Server *ServerDetails `json:"server,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListBareMetalServerDetailsResponse) String ¶
func (o ListBareMetalServerDetailsResponse) String() 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 ¶
func (o ListBareMetalServersRequest) String() string
type ListBareMetalServersResponse ¶
type ListBareMetalServersResponse struct { Servers *[]ServerDetails `json:"servers,omitempty"` Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListBareMetalServersResponse) String ¶
func (o ListBareMetalServersResponse) String() string
type ListBaremetalFlavorDetailExtendsRequest ¶
type ListBaremetalFlavorDetailExtendsRequest struct {
AvailabilityZone *string `json:"availability_zone,omitempty"`
}
Request Object
func (ListBaremetalFlavorDetailExtendsRequest) String ¶
func (o ListBaremetalFlavorDetailExtendsRequest) String() string
type ListBaremetalFlavorDetailExtendsResponse ¶
type ListBaremetalFlavorDetailExtendsResponse struct { Flavors *[]FlavorsResp `json:"flavors,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListBaremetalFlavorDetailExtendsResponse) String ¶
func (o ListBaremetalFlavorDetailExtendsResponse) 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字段数据结构说明
type OsChange ¶ added in v0.0.49
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字段数据结构说明
type OsChangeReq ¶ added in v0.0.49
type OsChangeReq struct {
OsChange *OsChange `json:"os-change"`
}
切换裸金属服务器操作系统接口请求结构体
func (OsChangeReq) String ¶ added in v0.0.49
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 OsExtraSpecsCondoperationstatusEnum ¶
type OsExtraSpecsCondoperationstatusEnum struct { NORMAL OsExtraSpecsCondoperationstatus ABANDON OsExtraSpecsCondoperationstatus SELLOUT OsExtraSpecsCondoperationstatus OBT OsExtraSpecsCondoperationstatus PROMOTION OsExtraSpecsCondoperationstatus }
func GetOsExtraSpecsCondoperationstatusEnum ¶
func GetOsExtraSpecsCondoperationstatusEnum() OsExtraSpecsCondoperationstatusEnum
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 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 ¶
func (o ReinstallBaremetalServerOsRequest) String() string
type ReinstallBaremetalServerOsResponse ¶
type ReinstallBaremetalServerOsResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ReinstallBaremetalServerOsResponse) String ¶
func (o ReinstallBaremetalServerOsResponse) String() 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 ServerDetailsOSEXTSTStaskStateEnum ¶
type ServerDetailsOSEXTSTStaskStateEnum struct { REBOOTING ServerDetailsOSEXTSTStaskState REBOOT_STARTED ServerDetailsOSEXTSTStaskState REBOOT_STARTED_HARD ServerDetailsOSEXTSTStaskState POWERING_OFF ServerDetailsOSEXTSTStaskState POWERING_ON ServerDetailsOSEXTSTStaskState REBUILDING ServerDetailsOSEXTSTStaskState SCHEDULING ServerDetailsOSEXTSTStaskState DELETING ServerDetailsOSEXTSTStaskState }
func GetServerDetailsOSEXTSTStaskStateEnum ¶
func GetServerDetailsOSEXTSTStaskStateEnum() ServerDetailsOSEXTSTStaskStateEnum
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 ¶ added in v0.0.48
type ServerOsSchedulerHints struct {
Group *[]string `json:"group,omitempty"`
}
func (ServerOsSchedulerHints) String ¶ added in v0.0.48
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 ¶
func (o ShowBaremetalServerInterfaceAttachmentsRequest) String() string
type ShowBaremetalServerInterfaceAttachmentsResponse ¶
type ShowBaremetalServerInterfaceAttachmentsResponse struct { InterfaceAttachments *[]InterfaceAttachments `json:"interfaceAttachments,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowBaremetalServerInterfaceAttachmentsResponse) String ¶
func (o ShowBaremetalServerInterfaceAttachmentsResponse) String() string
type ShowBaremetalServerTagsRequest ¶
type ShowBaremetalServerTagsRequest struct {
ServerId string `json:"server_id"`
}
Request Object
func (ShowBaremetalServerTagsRequest) String ¶
func (o ShowBaremetalServerTagsRequest) String() string
type ShowBaremetalServerTagsResponse ¶
type ShowBaremetalServerTagsResponse struct { Tags *[]BaremetalServerTag `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowBaremetalServerTagsResponse) String ¶
func (o ShowBaremetalServerTagsResponse) String() string
type ShowBaremetalServerVolumeInfoRequest ¶
type ShowBaremetalServerVolumeInfoRequest struct {
ServerId string `json:"server_id"`
}
Request Object
func (ShowBaremetalServerVolumeInfoRequest) String ¶
func (o ShowBaremetalServerVolumeInfoRequest) String() string
type ShowBaremetalServerVolumeInfoResponse ¶
type ShowBaremetalServerVolumeInfoResponse struct { VolumeAttachments *[]VolumeAttachments `json:"volumeAttachments,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowBaremetalServerVolumeInfoResponse) String ¶
func (o ShowBaremetalServerVolumeInfoResponse) String() 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 ¶
func (o ShowSpecifiedVersionRequest) String() string
type ShowSpecifiedVersionResponse ¶
type ShowSpecifiedVersionResponse struct { Version *Versions `json:"version,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowSpecifiedVersionResponse) String ¶
func (o ShowSpecifiedVersionResponse) String() 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 ¶
func (o ShowWindowsBaremetalServerPwdRequest) String() string
type ShowWindowsBaremetalServerPwdResponse ¶
type ShowWindowsBaremetalServerPwdResponse struct { Password *string `json:"password,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowWindowsBaremetalServerPwdResponse) String ¶
func (o ShowWindowsBaremetalServerPwdResponse) String() 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字段数据结构说明
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 ¶
func (o UpdateBaremetalServerMetadataRequest) String() string
type UpdateBaremetalServerMetadataResponse ¶
type UpdateBaremetalServerMetadataResponse struct { Metadata *KeyValue `json:"metadata,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateBaremetalServerMetadataResponse) String ¶
func (o UpdateBaremetalServerMetadataResponse) String() string
type VersionLinks ¶
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版本信息列表
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 ¶
- model_absolute.go
- model_address.go
- model_address_info.go
- model_addresses.go
- model_attach_baremetal_server_volume_request.go
- model_attach_baremetal_server_volume_response.go
- model_attach_volume_body.go
- model_band_width.go
- model_baremetal_server_tag.go
- model_batch_create_baremetal_server_tags_request.go
- model_batch_create_baremetal_server_tags_request_body.go
- model_batch_create_baremetal_server_tags_response.go
- model_batch_delete_baremetal_server_tags_request.go
- model_batch_delete_baremetal_server_tags_request_body.go
- model_batch_delete_baremetal_server_tags_response.go
- model_batch_reboot_baremetal_servers_request.go
- model_batch_reboot_baremetal_servers_response.go
- model_batch_start_baremetal_servers_request.go
- model_batch_start_baremetal_servers_response.go
- model_batch_stop_baremetal_servers_request.go
- model_batch_stop_baremetal_servers_response.go
- model_change_baremetal_name_body.go
- model_change_baremetal_name_responses_servers.go
- model_change_baremetal_name_server.go
- model_change_baremetal_server_name_request.go
- model_change_baremetal_server_name_response.go
- model_change_baremetal_server_os_request.go
- model_change_baremetal_server_os_response.go
- model_create_bare_metal_servers_request.go
- model_create_bare_metal_servers_response.go
- model_create_baremetal_servers_body.go
- model_create_scheduler_hints.go
- model_create_servers.go
- model_data_volumes.go
- model_delete_windows_bare_metal_server_password_request.go
- model_delete_windows_bare_metal_server_password_response.go
- model_detach_baremetal_server_volume_request.go
- model_detach_baremetal_server_volume_response.go
- model_eip.go
- model_entitie.go
- model_entities.go
- model_extend_param.go
- model_extend_param_eip.go
- model_fault.go
- model_fixed_ips.go
- model_flavor_info.go
- model_flavor_infos.go
- model_flavors_resp.go
- model_image.go
- model_image_info.go
- model_interface_attachments.go
- model_key_value.go
- model_links.go
- model_links_info.go
- model_list_bare_metal_server_details_request.go
- model_list_bare_metal_server_details_response.go
- model_list_bare_metal_servers_request.go
- model_list_bare_metal_servers_response.go
- model_list_baremetal_flavor_detail_extends_request.go
- model_list_baremetal_flavor_detail_extends_response.go
- model_meta_data.go
- model_meta_data_info.go
- model_metadata_infos.go
- model_metadata_install.go
- model_metadata_list.go
- model_nics.go
- model_os_change.go
- model_os_change_req.go
- model_os_extended_volumes.go
- model_os_extended_volumes_info.go
- model_os_extra_specs.go
- model_os_reinstall.go
- model_os_reinstall_body.go
- model_os_start_body.go
- model_os_stop_body.go
- model_os_stop_body_type.go
- model_public_ip.go
- model_reboot_body.go
- model_reinstall_baremetal_server_os_request.go
- model_reinstall_baremetal_server_os_response.go
- model_reset_password.go
- model_reset_password_body.go
- model_reset_pwd_one_click_request.go
- model_reset_pwd_one_click_response.go
- model_root_volume.go
- model_scheduler_hints.go
- model_security_groups.go
- model_security_groups_info.go
- model_security_groups_list.go
- model_server_details.go
- model_server_os_scheduler_hints.go
- model_servers_info_type.go
- model_servers_list.go
- model_show_baremetal_server_interface_attachments_request.go
- model_show_baremetal_server_interface_attachments_response.go
- model_show_baremetal_server_tags_request.go
- model_show_baremetal_server_tags_response.go
- model_show_baremetal_server_volume_info_request.go
- model_show_baremetal_server_volume_info_response.go
- model_show_job_infos_request.go
- model_show_job_infos_response.go
- model_show_reset_pwd_request.go
- model_show_reset_pwd_response.go
- model_show_specified_version_request.go
- model_show_specified_version_response.go
- model_show_tenant_quota_request.go
- model_show_tenant_quota_response.go
- model_show_windows_baremetal_server_pwd_request.go
- model_show_windows_baremetal_server_pwd_response.go
- model_start_servers_info.go
- model_sub_jobs.go
- model_system_tags.go
- model_update_baremetal_server_metadata_request.go
- model_update_baremetal_server_metadata_response.go
- model_version_links.go
- model_versions.go
- model_volume_attachment.go
- model_volume_attachments.go