model

package
v0.0.0-...-66c13d8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0, Apache-2.0, BSD-2-Clause, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddServerGroupMemberRequest

type AddServerGroupMemberRequest struct {
	ServerGroupId string `json:"server_group_id"`

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

Request Object

func (AddServerGroupMemberRequest) String

type AddServerGroupMemberRequestBody

type AddServerGroupMemberRequestBody struct {
	AddMember *ServerGroupMember `json:"add_member"`
}

This is a auto create Body Object

func (AddServerGroupMemberRequestBody) String

type AddServerGroupMemberResponse

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

Response Object

func (AddServerGroupMemberResponse) String

type AssociateServerVirtualIpOption

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

	IpAddress string `json:"ip_address"`

	ReverseBinding *bool `json:"reverse_binding,omitempty"`
}

func (AssociateServerVirtualIpOption) String

type AssociateServerVirtualIpRequest

type AssociateServerVirtualIpRequest struct {
	NicId string `json:"nic_id"`

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

Request Object

func (AssociateServerVirtualIpRequest) String

type AssociateServerVirtualIpRequestBody

type AssociateServerVirtualIpRequestBody struct {
	Nic *AssociateServerVirtualIpOption `json:"nic"`
}

This is a auto create Body Object

func (AssociateServerVirtualIpRequestBody) String

type AssociateServerVirtualIpResponse

type AssociateServerVirtualIpResponse struct {
	PortId         *string `json:"port_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AssociateServerVirtualIpResponse) String

type AttachServerVolumeOption

type AttachServerVolumeOption struct {
	Device *string `json:"device,omitempty"`

	VolumeId string `json:"volumeId"`
}

func (AttachServerVolumeOption) String

func (o AttachServerVolumeOption) String() string

type AttachServerVolumeRequest

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

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

Request Object

func (AttachServerVolumeRequest) String

func (o AttachServerVolumeRequest) String() string

type AttachServerVolumeRequestBody

type AttachServerVolumeRequestBody struct {
	VolumeAttachment *AttachServerVolumeOption `json:"volumeAttachment"`
}

This is a auto create Body Object

func (AttachServerVolumeRequestBody) String

type AttachServerVolumeResponse

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

Response Object

func (AttachServerVolumeResponse) String

type BatchAddServerNicOption

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

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

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

	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *Ipv6Bandwidth `json:"ipv6_bandwidth,omitempty"`
}

func (BatchAddServerNicOption) String

func (o BatchAddServerNicOption) String() string

type BatchAddServerNicsRequest

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

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

Request Object

func (BatchAddServerNicsRequest) String

func (o BatchAddServerNicsRequest) String() string

type BatchAddServerNicsRequestBody

type BatchAddServerNicsRequestBody struct {
	Nics []BatchAddServerNicOption `json:"nics"`
}

This is a auto create Body Object

func (BatchAddServerNicsRequestBody) String

type BatchAddServerNicsResponse

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

Response Object

func (BatchAddServerNicsResponse) String

type BatchAttachSharableVolumesOption

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

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

func (BatchAttachSharableVolumesOption) String

type BatchAttachSharableVolumesRequest

type BatchAttachSharableVolumesRequest struct {
	VolumeId string `json:"volume_id"`

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

Request Object

func (BatchAttachSharableVolumesRequest) String

type BatchAttachSharableVolumesRequestBody

type BatchAttachSharableVolumesRequestBody struct {
	Serverinfo []BatchAttachSharableVolumesOption `json:"serverinfo"`
}

This is a auto create Body Object

func (BatchAttachSharableVolumesRequestBody) String

type BatchAttachSharableVolumesResponse

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

Response Object

func (BatchAttachSharableVolumesResponse) String

type BatchCreateServerTagsRequest

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

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

Request Object

func (BatchCreateServerTagsRequest) String

type BatchCreateServerTagsRequestBody

type BatchCreateServerTagsRequestBody struct {
	Action BatchCreateServerTagsRequestBodyAction `json:"action"`

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

This is a auto create Body Object

func (BatchCreateServerTagsRequestBody) String

type BatchCreateServerTagsRequestBodyAction

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

func (BatchCreateServerTagsRequestBodyAction) MarshalJSON

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

func (*BatchCreateServerTagsRequestBodyAction) UnmarshalJSON

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

type BatchCreateServerTagsRequestBodyActionEnum

type BatchCreateServerTagsRequestBodyActionEnum struct {
	CREATE BatchCreateServerTagsRequestBodyAction
}

func GetBatchCreateServerTagsRequestBodyActionEnum

func GetBatchCreateServerTagsRequestBodyActionEnum() BatchCreateServerTagsRequestBodyActionEnum

type BatchCreateServerTagsResponse

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

Response Object

func (BatchCreateServerTagsResponse) String

type BatchDeleteServerNicOption

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

func (BatchDeleteServerNicOption) String

type BatchDeleteServerNicsRequest

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

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

Request Object

func (BatchDeleteServerNicsRequest) String

type BatchDeleteServerNicsRequestBody

type BatchDeleteServerNicsRequestBody struct {
	Nics []BatchDeleteServerNicOption `json:"nics"`
}

This is a auto create Body Object

func (BatchDeleteServerNicsRequestBody) String

type BatchDeleteServerNicsResponse

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

Response Object

func (BatchDeleteServerNicsResponse) String

type BatchDeleteServerTagsRequest

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

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

Request Object

func (BatchDeleteServerTagsRequest) String

type BatchDeleteServerTagsRequestBody

type BatchDeleteServerTagsRequestBody struct {
	Action BatchDeleteServerTagsRequestBodyAction `json:"action"`

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

This is a auto create Body Object

func (BatchDeleteServerTagsRequestBody) String

type BatchDeleteServerTagsRequestBodyAction

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

func (BatchDeleteServerTagsRequestBodyAction) MarshalJSON

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

func (*BatchDeleteServerTagsRequestBodyAction) UnmarshalJSON

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

type BatchDeleteServerTagsRequestBodyActionEnum

type BatchDeleteServerTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteServerTagsRequestBodyAction
}

func GetBatchDeleteServerTagsRequestBodyActionEnum

func GetBatchDeleteServerTagsRequestBodyActionEnum() BatchDeleteServerTagsRequestBodyActionEnum

type BatchDeleteServerTagsResponse

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

Response Object

func (BatchDeleteServerTagsResponse) String

type BatchRebootServersRequest

type BatchRebootServersRequest struct {
	Body *BatchRebootServersRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchRebootServersRequest) String

func (o BatchRebootServersRequest) String() string

type BatchRebootServersRequestBody

type BatchRebootServersRequestBody struct {
	Reboot *BatchRebootSeversOption `json:"reboot"`
}

This is a auto create Body Object

func (BatchRebootServersRequestBody) String

type BatchRebootServersResponse

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

Response Object

func (BatchRebootServersResponse) String

type BatchRebootSeversOption

type BatchRebootSeversOption struct {
	Servers []ServerId `json:"servers"`

	Type BatchRebootSeversOptionType `json:"type"`
}

func (BatchRebootSeversOption) String

func (o BatchRebootSeversOption) String() string

type BatchRebootSeversOptionType

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

func (BatchRebootSeversOptionType) MarshalJSON

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

func (*BatchRebootSeversOptionType) UnmarshalJSON

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

type BatchRebootSeversOptionTypeEnum

type BatchRebootSeversOptionTypeEnum struct {
	SOFT BatchRebootSeversOptionType
	HARD BatchRebootSeversOptionType
}

func GetBatchRebootSeversOptionTypeEnum

func GetBatchRebootSeversOptionTypeEnum() BatchRebootSeversOptionTypeEnum

type BatchResetServersPasswordRequest

type BatchResetServersPasswordRequest struct {
	Body *BatchResetServersPasswordRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchResetServersPasswordRequest) String

type BatchResetServersPasswordRequestBody

type BatchResetServersPasswordRequestBody struct {
	NewPassword string `json:"new_password"`

	DryRun *bool `json:"dry_run,omitempty"`

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

This is a auto create Body Object

func (BatchResetServersPasswordRequestBody) String

type BatchResetServersPasswordResponse

type BatchResetServersPasswordResponse struct {
	Response       *[]ServerId `json:"response,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (BatchResetServersPasswordResponse) String

type BatchStartServersOption

type BatchStartServersOption struct {
	Servers []ServerId `json:"servers"`
}

func (BatchStartServersOption) String

func (o BatchStartServersOption) String() string

type BatchStartServersRequest

type BatchStartServersRequest struct {
	Body *BatchStartServersRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchStartServersRequest) String

func (o BatchStartServersRequest) String() string

type BatchStartServersRequestBody

type BatchStartServersRequestBody struct {
	OsStart *BatchStartServersOption `json:"os-start"`
}

This is a auto create Body Object

func (BatchStartServersRequestBody) String

type BatchStartServersResponse

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

Response Object

func (BatchStartServersResponse) String

func (o BatchStartServersResponse) String() string

type BatchStopServersOption

type BatchStopServersOption struct {
	Servers []ServerId `json:"servers"`

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

func (BatchStopServersOption) String

func (o BatchStopServersOption) String() string

type BatchStopServersOptionType

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

func (BatchStopServersOptionType) MarshalJSON

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

func (*BatchStopServersOptionType) UnmarshalJSON

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

type BatchStopServersOptionTypeEnum

type BatchStopServersOptionTypeEnum struct {
	SOFT BatchStopServersOptionType
	HARD BatchStopServersOptionType
}

func GetBatchStopServersOptionTypeEnum

func GetBatchStopServersOptionTypeEnum() BatchStopServersOptionTypeEnum

type BatchStopServersRequest

type BatchStopServersRequest struct {
	Body *BatchStopServersRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchStopServersRequest) String

func (o BatchStopServersRequest) String() string

type BatchStopServersRequestBody

type BatchStopServersRequestBody struct {
	OsStop *BatchStopServersOption `json:"os-stop"`
}

This is a auto create Body Object

func (BatchStopServersRequestBody) String

type BatchStopServersResponse

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

Response Object

func (BatchStopServersResponse) String

func (o BatchStopServersResponse) String() string

type BatchUpdateServersNameRequest

type BatchUpdateServersNameRequest struct {
	Body *BatchUpdateServersNameRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchUpdateServersNameRequest) String

type BatchUpdateServersNameRequestBody

type BatchUpdateServersNameRequestBody struct {
	Name string `json:"name"`

	DryRun *bool `json:"dry_run,omitempty"`

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

This is a auto create Body Object

func (BatchUpdateServersNameRequestBody) String

type BatchUpdateServersNameResponse

type BatchUpdateServersNameResponse struct {
	Response       *[]ServerId `json:"response,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (BatchUpdateServersNameResponse) String

type BlockDeviceAttachableQuantity

type BlockDeviceAttachableQuantity struct {
	FreeScsi *int32 `json:"free_scsi,omitempty"`

	FreeBlk *int32 `json:"free_blk,omitempty"`

	FreeDisk *int32 `json:"free_disk,omitempty"`
}

云服务器可挂载磁盘数量。

func (BlockDeviceAttachableQuantity) String

type ChangeServerOsWithCloudInitOption

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

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

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

	Imageid string `json:"imageid"`

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

	Mode *string `json:"mode,omitempty"`
}

重装操作系统body体。

func (ChangeServerOsWithCloudInitOption) String

type ChangeServerOsWithCloudInitRequest

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

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

Request Object

func (ChangeServerOsWithCloudInitRequest) String

type ChangeServerOsWithCloudInitRequestBody

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

This is a auto create Body Object

func (ChangeServerOsWithCloudInitRequestBody) String

type ChangeServerOsWithCloudInitResponse

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

Response Object

func (ChangeServerOsWithCloudInitResponse) String

type ChangeServerOsWithoutCloudInitOption

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

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

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

	Imageid string `json:"imageid"`

	Mode *string `json:"mode,omitempty"`
}

重装操作系统body体。

func (ChangeServerOsWithoutCloudInitOption) String

type ChangeServerOsWithoutCloudInitRequest

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

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

Request Object

func (ChangeServerOsWithoutCloudInitRequest) String

type ChangeServerOsWithoutCloudInitRequestBody

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

This is a auto create Body Object

func (ChangeServerOsWithoutCloudInitRequestBody) String

type ChangeServerOsWithoutCloudInitResponse

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

Response Object

func (ChangeServerOsWithoutCloudInitResponse) String

type ChangeSeversOsMetadata

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

func (ChangeSeversOsMetadata) String

func (o ChangeSeversOsMetadata) String() string

type CpuOptions

type CpuOptions struct {
	HwcpuThreads *int32 `json:"hw:cpu_threads,omitempty"`
}

自定义CPU选项。

func (CpuOptions) String

func (o CpuOptions) String() string

type CreatePostPaidServersRequest

type CreatePostPaidServersRequest struct {
	Body *CreatePostPaidServersRequestBody `json:"body,omitempty"`
}

Request Object

func (CreatePostPaidServersRequest) String

type CreatePostPaidServersRequestBody

type CreatePostPaidServersRequestBody struct {
	DryRun *bool `json:"dry_run,omitempty"`

	Server *PostPaidServer `json:"server"`
}

This is a auto create Body Object

func (CreatePostPaidServersRequestBody) String

type CreatePostPaidServersResponse

type CreatePostPaidServersResponse struct {
	JobId *string `json:"job_id,omitempty"`

	ServerIds      *[]string `json:"serverIds,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreatePostPaidServersResponse) String

type CreateServerGroupOption

type CreateServerGroupOption struct {
	Name string `json:"name"`

	Policies []CreateServerGroupOptionPolicies `json:"policies"`
}

func (CreateServerGroupOption) String

func (o CreateServerGroupOption) String() string

type CreateServerGroupOptionPolicies

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

func (CreateServerGroupOptionPolicies) MarshalJSON

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

func (*CreateServerGroupOptionPolicies) UnmarshalJSON

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

type CreateServerGroupOptionPoliciesEnum

type CreateServerGroupOptionPoliciesEnum struct {
	ANTI_AFFINITY CreateServerGroupOptionPolicies
}

func GetCreateServerGroupOptionPoliciesEnum

func GetCreateServerGroupOptionPoliciesEnum() CreateServerGroupOptionPoliciesEnum

type CreateServerGroupRequest

type CreateServerGroupRequest struct {
	Body *CreateServerGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateServerGroupRequest) String

func (o CreateServerGroupRequest) String() string

type CreateServerGroupRequestBody

type CreateServerGroupRequestBody struct {
	ServerGroup *CreateServerGroupOption `json:"server_group"`
}

This is a auto create Body Object

func (CreateServerGroupRequestBody) String

type CreateServerGroupResponse

type CreateServerGroupResponse struct {
	ServerGroup    *CreateServerGroupResult `json:"server_group,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (CreateServerGroupResponse) String

func (o CreateServerGroupResponse) String() string

type CreateServerGroupResult

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

	Members []string `json:"members"`

	Metadata map[string]string `json:"metadata"`

	Name string `json:"name"`

	Policies []string `json:"policies"`
}

func (CreateServerGroupResult) String

func (o CreateServerGroupResult) String() string

type CreateServersRequest

type CreateServersRequest struct {
	Body *CreateServersRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateServersRequest) String

func (o CreateServersRequest) String() string

type CreateServersRequestBody

type CreateServersRequestBody struct {
	DryRun *bool `json:"dry_run,omitempty"`

	Server *PrePaidServer `json:"server"`
}

This is a auto create Body Object

func (CreateServersRequestBody) String

func (o CreateServersRequestBody) String() string

type CreateServersResponse

type CreateServersResponse struct {
	JobId *string `json:"job_id,omitempty"`

	OrderId *string `json:"order_id,omitempty"`

	ServerIds      *[]string `json:"serverIds,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreateServersResponse) String

func (o CreateServersResponse) String() string

type DeleteServerGroupMemberRequest

type DeleteServerGroupMemberRequest struct {
	ServerGroupId string `json:"server_group_id"`

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

Request Object

func (DeleteServerGroupMemberRequest) String

type DeleteServerGroupMemberRequestBody

type DeleteServerGroupMemberRequestBody struct {
	RemoveMember *ServerGroupMember `json:"remove_member"`
}

This is a auto create Body Object

func (DeleteServerGroupMemberRequestBody) String

type DeleteServerGroupMemberResponse

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

Response Object

func (DeleteServerGroupMemberResponse) String

type DeleteServerGroupRequest

type DeleteServerGroupRequest struct {
	ServerGroupId string `json:"server_group_id"`
}

Request Object

func (DeleteServerGroupRequest) String

func (o DeleteServerGroupRequest) String() string

type DeleteServerGroupResponse

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

Response Object

func (DeleteServerGroupResponse) String

func (o DeleteServerGroupResponse) String() string

type DeleteServerMetadataRequest

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

	ServerId string `json:"server_id"`
}

Request Object

func (DeleteServerMetadataRequest) String

type DeleteServerMetadataResponse

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

Response Object

func (DeleteServerMetadataResponse) String

type DeleteServerPasswordRequest

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

Request Object

func (DeleteServerPasswordRequest) String

type DeleteServerPasswordResponse

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

Response Object

func (DeleteServerPasswordResponse) String

type DeleteServersRequest

type DeleteServersRequest struct {
	Body *DeleteServersRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteServersRequest) String

func (o DeleteServersRequest) String() string

type DeleteServersRequestBody

type DeleteServersRequestBody struct {
	DeletePublicip *bool `json:"delete_publicip,omitempty"`

	DeleteVolume *bool `json:"delete_volume,omitempty"`

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

This is a auto create Body Object

func (DeleteServersRequestBody) String

func (o DeleteServersRequestBody) String() string

type DeleteServersResponse

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

Response Object

func (DeleteServersResponse) String

func (o DeleteServersResponse) String() string

type DetachServerVolumeRequest

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

	VolumeId string `json:"volume_id"`

	DeleteFlag *DetachServerVolumeRequestDeleteFlag `json:"delete_flag,omitempty"`
}

Request Object

func (DetachServerVolumeRequest) String

func (o DetachServerVolumeRequest) String() string

type DetachServerVolumeRequestDeleteFlag

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

func (DetachServerVolumeRequestDeleteFlag) MarshalJSON

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

func (*DetachServerVolumeRequestDeleteFlag) UnmarshalJSON

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

type DetachServerVolumeRequestDeleteFlagEnum

type DetachServerVolumeRequestDeleteFlagEnum struct {
	E_0 DetachServerVolumeRequestDeleteFlag
	E_1 DetachServerVolumeRequestDeleteFlag
}

func GetDetachServerVolumeRequestDeleteFlagEnum

func GetDetachServerVolumeRequestDeleteFlagEnum() DetachServerVolumeRequestDeleteFlagEnum

type DetachServerVolumeResponse

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

Response Object

func (DetachServerVolumeResponse) String

type DisassociateServerVirtualIpOption

type DisassociateServerVirtualIpOption struct {
	SubnetId DisassociateServerVirtualIpOptionSubnetId `json:"subnet_id"`

	IpAddress DisassociateServerVirtualIpOptionIpAddress `json:"ip_address"`

	ReverseBinding *bool `json:"reverse_binding,omitempty"`
}

func (DisassociateServerVirtualIpOption) String

type DisassociateServerVirtualIpOptionIpAddress

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

func (DisassociateServerVirtualIpOptionIpAddress) MarshalJSON

func (*DisassociateServerVirtualIpOptionIpAddress) UnmarshalJSON

type DisassociateServerVirtualIpOptionIpAddressEnum

type DisassociateServerVirtualIpOptionIpAddressEnum struct {
	EMPTY DisassociateServerVirtualIpOptionIpAddress
}

func GetDisassociateServerVirtualIpOptionIpAddressEnum

func GetDisassociateServerVirtualIpOptionIpAddressEnum() DisassociateServerVirtualIpOptionIpAddressEnum

type DisassociateServerVirtualIpOptionSubnetId

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

func (DisassociateServerVirtualIpOptionSubnetId) MarshalJSON

func (*DisassociateServerVirtualIpOptionSubnetId) UnmarshalJSON

type DisassociateServerVirtualIpOptionSubnetIdEnum

type DisassociateServerVirtualIpOptionSubnetIdEnum struct {
	EMPTY DisassociateServerVirtualIpOptionSubnetId
}

func GetDisassociateServerVirtualIpOptionSubnetIdEnum

func GetDisassociateServerVirtualIpOptionSubnetIdEnum() DisassociateServerVirtualIpOptionSubnetIdEnum

type DisassociateServerVirtualIpRequest

type DisassociateServerVirtualIpRequest struct {
	NicId string `json:"nic_id"`

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

Request Object

func (DisassociateServerVirtualIpRequest) String

type DisassociateServerVirtualIpRequestBody

type DisassociateServerVirtualIpRequestBody struct {
	Nic *DisassociateServerVirtualIpOption `json:"nic"`
}

This is a auto create Body Object

func (DisassociateServerVirtualIpRequestBody) String

type DisassociateServerVirtualIpResponse

type DisassociateServerVirtualIpResponse struct {
	PortId         *string `json:"port_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DisassociateServerVirtualIpResponse) String

type Flavor

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

	Name string `json:"name"`

	Vcpus string `json:"vcpus"`

	Ram int32 `json:"ram"`

	Disk string `json:"disk"`

	Swap string `json:"swap"`

	OSFLVEXTDATAephemeral int32 `json:"OS-FLV-EXT-DATA:ephemeral"`

	OSFLVDISABLEDdisabled bool `json:"OS-FLV-DISABLED:disabled"`

	RxtxFactor float32 `json:"rxtx_factor"`

	RxtxQuota string `json:"rxtx_quota"`

	RxtxCap string `json:"rxtx_cap"`

	OsFlavorAccessisPublic bool `json:"os-flavor-access:is_public"`

	Links []FlavorLink `json:"links"`

	OsExtraSpecs *FlavorExtraSpec `json:"os_extra_specs"`

	AttachableQuantity *ServerAttachableQuantity `json:"attachableQuantity,omitempty"`
}

云服务器规格。

func (Flavor) String

func (o Flavor) String() string

type FlavorExtraSpec

type FlavorExtraSpec struct {
	Ecsperformancetype *string `json:"ecs:performancetype,omitempty"`

	HwnumaNodes *string `json:"hw:numa_nodes,omitempty"`

	ResourceType *string `json:"resource_type,omitempty"`

	HpetSupport *string `json:"hpet_support,omitempty"`

	InstanceVnictype *string `json:"instance_vnic:type,omitempty"`

	InstanceVnicinstanceBandwidth *string `json:"instance_vnic:instance_bandwidth,omitempty"`

	InstanceVnicmaxCount *string `json:"instance_vnic:max_count,omitempty"`

	QuotalocalDisk *string `json:"quota:local_disk,omitempty"`

	QuotanvmeSsd *string `json:"quota:nvme_ssd,omitempty"`

	ExtraSpeciopersistentGrant *string `json:"extra_spec:io:persistent_grant,omitempty"`

	Ecsgeneration *string `json:"ecs:generation,omitempty"`

	EcsvirtualizationEnvTypes *string `json:"ecs:virtualization_env_types,omitempty"`

	PciPassthroughenableGpu *string `json:"pci_passthrough:enable_gpu,omitempty"`

	PciPassthroughgpuSpecs *string `json:"pci_passthrough:gpu_specs,omitempty"`

	PciPassthroughalias *string `json:"pci_passthrough:alias,omitempty"`

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

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

	QuotamaxRate *string `json:"quota:max_rate,omitempty"`

	QuotaminRate *string `json:"quota:min_rate,omitempty"`

	QuotamaxPps *string `json:"quota:max_pps,omitempty"`

	Condoperationcharge *string `json:"cond:operation:charge,omitempty"`

	Condoperationchargestop *string `json:"cond:operation:charge:stop,omitempty"`

	Condspotoperationaz *string `json:"cond:spot:operation:az,omitempty"`

	Condoperationroles *string `json:"cond:operation:roles,omitempty"`

	Condspotoperationstatus *string `json:"cond:spot:operation:status,omitempty"`

	Condnetwork *string `json:"cond:network,omitempty"`

	Condstorage *string `json:"cond:storage,omitempty"`

	CondcomputeliveResizable *string `json:"cond:compute:live_resizable,omitempty"`

	Condcompute *string `json:"cond:compute,omitempty"`

	Infogpuname *string `json:"info:gpu:name,omitempty"`

	Infocpuname *string `json:"info:cpu:name,omitempty"`

	Quotagpu *string `json:"quota:gpu,omitempty"`

	EcsinstanceArchitecture *string `json:"ecs:instance_architecture,omitempty"`
}

云服务器规格的扩展字段。

func (FlavorExtraSpec) String

func (o FlavorExtraSpec) String() string
type FlavorLink struct {
	Href string `json:"href"`

	Rel string `json:"rel"`

	Type string `json:"type"`
}

规格相关快捷链接地址。

func (FlavorLink) String

func (o FlavorLink) String() string

type GetServerRemoteConsoleOption

type GetServerRemoteConsoleOption struct {
	Protocol GetServerRemoteConsoleOptionProtocol `json:"protocol"`

	Type GetServerRemoteConsoleOptionType `json:"type"`
}

func (GetServerRemoteConsoleOption) String

type GetServerRemoteConsoleOptionProtocol

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

func (GetServerRemoteConsoleOptionProtocol) MarshalJSON

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

func (*GetServerRemoteConsoleOptionProtocol) UnmarshalJSON

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

type GetServerRemoteConsoleOptionProtocolEnum

type GetServerRemoteConsoleOptionProtocolEnum struct {
	VNC GetServerRemoteConsoleOptionProtocol
}

func GetGetServerRemoteConsoleOptionProtocolEnum

func GetGetServerRemoteConsoleOptionProtocolEnum() GetServerRemoteConsoleOptionProtocolEnum

type GetServerRemoteConsoleOptionType

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

func (GetServerRemoteConsoleOptionType) MarshalJSON

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

func (*GetServerRemoteConsoleOptionType) UnmarshalJSON

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

type GetServerRemoteConsoleOptionTypeEnum

type GetServerRemoteConsoleOptionTypeEnum struct {
	NOVNC GetServerRemoteConsoleOptionType
}

func GetGetServerRemoteConsoleOptionTypeEnum

func GetGetServerRemoteConsoleOptionTypeEnum() GetServerRemoteConsoleOptionTypeEnum

type Hypervisor

type Hypervisor struct {
	HypervisorType *string `json:"hypervisor_type,omitempty"`

	CsdHypervisor *string `json:"csd_hypervisor,omitempty"`
}

hypervisor信息。

func (Hypervisor) String

func (o Hypervisor) String() string

type InterfaceAttachableQuantity

type InterfaceAttachableQuantity struct {
	FreeNic *int32 `json:"free_nic,omitempty"`
}

func (InterfaceAttachableQuantity) String

type InterfaceAttachment

type InterfaceAttachment struct {
	FixedIps *[]ServerInterfaceFixedIp `json:"fixed_ips,omitempty"`

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

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

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

	PortState *string `json:"port_state,omitempty"`

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

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

	MinRate *int32 `json:"min_rate,omitempty"`

	MultiqueueNum *int32 `json:"multiqueue_num,omitempty"`

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

func (InterfaceAttachment) String

func (o InterfaceAttachment) String() string

type Ipv6Bandwidth

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

func (Ipv6Bandwidth) String

func (o Ipv6Bandwidth) String() string

type JobEntities

type JobEntities struct {
	SubJobs *[]SubJob `json:"sub_jobs,omitempty"`

	SubJobsTotal *int32 `json:"sub_jobs_total,omitempty"`
}

func (JobEntities) String

func (o JobEntities) String() string
type Link struct {
	Href string `json:"href"`

	Rel string `json:"rel"`
}

相关快捷链接地址。

func (Link) String

func (o Link) String() string

type ListFlavorsRequest

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

Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsResponse

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

Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListResizeFlavorsRequest

type ListResizeFlavorsRequest struct {
	InstanceUuid *string `json:"instance_uuid,omitempty"`

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

	Marker *string `json:"marker,omitempty"`

	SortDir *ListResizeFlavorsRequestSortDir `json:"sort_dir,omitempty"`

	SortKey *ListResizeFlavorsRequestSortKey `json:"sort_key,omitempty"`

	SourceFlavorId *string `json:"source_flavor_id,omitempty"`

	SourceFlavorName *string `json:"source_flavor_name,omitempty"`
}

Request Object

func (ListResizeFlavorsRequest) String

func (o ListResizeFlavorsRequest) String() string

type ListResizeFlavorsRequestSortDir

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

func (ListResizeFlavorsRequestSortDir) MarshalJSON

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

func (*ListResizeFlavorsRequestSortDir) UnmarshalJSON

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

type ListResizeFlavorsRequestSortDirEnum

type ListResizeFlavorsRequestSortDirEnum struct {
	ASC  ListResizeFlavorsRequestSortDir
	DESC ListResizeFlavorsRequestSortDir
}

func GetListResizeFlavorsRequestSortDirEnum

func GetListResizeFlavorsRequestSortDirEnum() ListResizeFlavorsRequestSortDirEnum

type ListResizeFlavorsRequestSortKey

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

func (ListResizeFlavorsRequestSortKey) MarshalJSON

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

func (*ListResizeFlavorsRequestSortKey) UnmarshalJSON

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

type ListResizeFlavorsResponse

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

Response Object

func (ListResizeFlavorsResponse) String

func (o ListResizeFlavorsResponse) String() string

type ListResizeFlavorsResult

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

	Name string `json:"name"`

	Vcpus string `json:"vcpus"`

	Ram int32 `json:"ram"`

	Disk string `json:"disk"`

	Swap string `json:"swap"`

	OSFLVEXTDATAephemeral int32 `json:"OS-FLV-EXT-DATA:ephemeral"`

	OSFLVDISABLEDdisabled bool `json:"OS-FLV-DISABLED:disabled"`

	RxtxFactor float32 `json:"rxtx_factor"`

	RxtxQuota string `json:"rxtx_quota"`

	RxtxCap string `json:"rxtx_cap"`

	OsFlavorAccessisPublic bool `json:"os-flavor-access:is_public"`

	Links []FlavorLink `json:"links"`

	ExtraSpecs *FlavorExtraSpec `json:"extra_specs"`

	InstanceQuota *interface{} `json:"instance_quota"`
}

云服务器规格。

func (ListResizeFlavorsResult) String

func (o ListResizeFlavorsResult) String() string

type ListServerBlockDevicesRequest

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

Request Object

func (ListServerBlockDevicesRequest) String

type ListServerBlockDevicesResponse

type ListServerBlockDevicesResponse struct {
	AttachableQuantity *BlockDeviceAttachableQuantity `json:"attachableQuantity,omitempty"`

	VolumeAttachments *[]ServerBlockDevice `json:"volumeAttachments,omitempty"`
	HttpStatusCode    int                  `json:"-"`
}

Response Object

func (ListServerBlockDevicesResponse) String

type ListServerGroupsPageInfoResult

type ListServerGroupsPageInfoResult struct {
	NextMarker *string `json:"next_marker,omitempty"`
}

func (ListServerGroupsPageInfoResult) String

type ListServerGroupsRequest

type ListServerGroupsRequest struct {
	Limit *int32 `json:"limit,omitempty"`

	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListServerGroupsRequest) String

func (o ListServerGroupsRequest) String() string

type ListServerGroupsResponse

type ListServerGroupsResponse struct {
	ServerGroups *[]ListServerGroupsResult `json:"server_groups,omitempty"`

	PageInfo       *ListServerGroupsPageInfoResult `json:"page_info,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (ListServerGroupsResponse) String

func (o ListServerGroupsResponse) String() string

type ListServerGroupsResult

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

	Members []string `json:"members"`

	Metadata map[string]string `json:"metadata"`

	Name string `json:"name"`

	Policies []string `json:"policies"`
}

func (ListServerGroupsResult) String

func (o ListServerGroupsResult) String() string

type ListServerInterfacesRequest

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

Request Object

func (ListServerInterfacesRequest) String

type ListServerInterfacesResponse

type ListServerInterfacesResponse struct {
	AttachableQuantity *InterfaceAttachableQuantity `json:"attachableQuantity,omitempty"`

	InterfaceAttachments *[]InterfaceAttachment `json:"interfaceAttachments,omitempty"`
	HttpStatusCode       int                    `json:"-"`
}

Response Object

func (ListServerInterfacesResponse) String

type ListServerTagsRequest

type ListServerTagsRequest struct {
}

Request Object

func (ListServerTagsRequest) String

func (o ListServerTagsRequest) String() string

type ListServerTagsResponse

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

Response Object

func (ListServerTagsResponse) String

func (o ListServerTagsResponse) String() string

type ListServersDetailsRequest

type ListServersDetailsRequest struct {
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

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

	Ip *string `json:"ip,omitempty"`

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

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

	NotTags *string `json:"not-tags,omitempty"`

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

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

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

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

Request Object

func (ListServersDetailsRequest) String

func (o ListServersDetailsRequest) String() string

type ListServersDetailsResponse

type ListServersDetailsResponse struct {
	Count *int32 `json:"count,omitempty"`

	Servers        *[]ServerDetail `json:"servers,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListServersDetailsResponse) String

type MigrateServerOption

type MigrateServerOption struct {
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`
}

冷迁移云服务器请求结构

func (MigrateServerOption) String

func (o MigrateServerOption) String() string

type MigrateServerRequest

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

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

Request Object

func (MigrateServerRequest) String

func (o MigrateServerRequest) String() string

type MigrateServerRequestBody

type MigrateServerRequestBody struct {
	Migrate *MigrateServerOption `json:"migrate"`
}

This is a auto create Body Object

func (MigrateServerRequestBody) String

func (o MigrateServerRequestBody) String() string

type MigrateServerResponse

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

Response Object

func (MigrateServerResponse) String

func (o MigrateServerResponse) String() string

type NovaAddSecurityGroupOption

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

func (NovaAddSecurityGroupOption) String

type NovaAssociateSecurityGroupRequest

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

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

Request Object

func (NovaAssociateSecurityGroupRequest) String

type NovaAssociateSecurityGroupRequestBody

type NovaAssociateSecurityGroupRequestBody struct {
	AddSecurityGroup *NovaAddSecurityGroupOption `json:"addSecurityGroup"`
}

This is a auto create Body Object

func (NovaAssociateSecurityGroupRequestBody) String

type NovaAssociateSecurityGroupResponse

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

Response Object

func (NovaAssociateSecurityGroupResponse) String

type NovaAvailabilityZone

type NovaAvailabilityZone struct {
	Hosts []string `json:"hosts"`

	ZoneName string `json:"zoneName"`

	ZoneState *NovaAvailabilityZoneState `json:"zoneState"`
}

可用域信息

func (NovaAvailabilityZone) String

func (o NovaAvailabilityZone) String() string

type NovaAvailabilityZoneState

type NovaAvailabilityZoneState struct {
	Available bool `json:"available"`
}

可用域的状态

func (NovaAvailabilityZoneState) String

func (o NovaAvailabilityZoneState) String() string

type NovaCreateKeypairOption

type NovaCreateKeypairOption struct {
	PublicKey *string `json:"public_key,omitempty"`

	Type *NovaCreateKeypairOptionType `json:"type,omitempty"`

	Name string `json:"name"`

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

func (NovaCreateKeypairOption) String

func (o NovaCreateKeypairOption) String() string

type NovaCreateKeypairOptionType

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

func (NovaCreateKeypairOptionType) MarshalJSON

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

func (*NovaCreateKeypairOptionType) UnmarshalJSON

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

type NovaCreateKeypairOptionTypeEnum

type NovaCreateKeypairOptionTypeEnum struct {
	SSH  NovaCreateKeypairOptionType
	X509 NovaCreateKeypairOptionType
}

func GetNovaCreateKeypairOptionTypeEnum

func GetNovaCreateKeypairOptionTypeEnum() NovaCreateKeypairOptionTypeEnum

type NovaCreateKeypairRequest

type NovaCreateKeypairRequest struct {
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`

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

Request Object

func (NovaCreateKeypairRequest) String

func (o NovaCreateKeypairRequest) String() string

type NovaCreateKeypairRequestBody

type NovaCreateKeypairRequestBody struct {
	Keypair *NovaCreateKeypairOption `json:"keypair"`
}

This is a auto create Body Object

func (NovaCreateKeypairRequestBody) String

type NovaCreateKeypairResponse

type NovaCreateKeypairResponse struct {
	Keypair        *NovaKeypair `json:"keypair,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (NovaCreateKeypairResponse) String

func (o NovaCreateKeypairResponse) String() string

type NovaCreateServersOption

type NovaCreateServersOption struct {
	AutoTerminateTime *string `json:"auto_terminate_time,omitempty"`

	ImageRef *string `json:"imageRef,omitempty"`

	FlavorRef string `json:"flavorRef"`

	Name string `json:"name"`

	Metadata map[string]string `json:"metadata,omitempty"`

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

	BlockDeviceMappingV2 *[]NovaServerBlockDeviceMapping `json:"block_device_mapping_v2,omitempty"`

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

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

	Networks []NovaServerNetwork `json:"networks"`

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

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

	AvailabilityZone *string `json:"availability_zone,omitempty"`

	ReturnReservationId *bool `json:"return_reservation_id,omitempty"`

	MinCount *int32 `json:"min_count,omitempty"`

	MaxCount *int32 `json:"max_count,omitempty"`

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

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

弹性云服务器信息

func (NovaCreateServersOption) String

func (o NovaCreateServersOption) String() string

type NovaCreateServersOptionOSDCFdiskConfig

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

func (NovaCreateServersOptionOSDCFdiskConfig) MarshalJSON

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

func (*NovaCreateServersOptionOSDCFdiskConfig) UnmarshalJSON

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

type NovaCreateServersOptionOSDCFdiskConfigEnum

type NovaCreateServersOptionOSDCFdiskConfigEnum struct {
	AUTO   NovaCreateServersOptionOSDCFdiskConfig
	MANUAL NovaCreateServersOptionOSDCFdiskConfig
}

func GetNovaCreateServersOptionOSDCFdiskConfigEnum

func GetNovaCreateServersOptionOSDCFdiskConfigEnum() NovaCreateServersOptionOSDCFdiskConfigEnum

type NovaCreateServersRequest

type NovaCreateServersRequest struct {
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`

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

Request Object

func (NovaCreateServersRequest) String

func (o NovaCreateServersRequest) String() string

type NovaCreateServersRequestBody

type NovaCreateServersRequestBody struct {
	Server *NovaCreateServersOption `json:"server"`

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

This is a auto create Body Object

func (NovaCreateServersRequestBody) String

type NovaCreateServersResponse

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

Response Object

func (NovaCreateServersResponse) String

func (o NovaCreateServersResponse) String() string

type NovaCreateServersResult

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

	Links []NovaLink `json:"links"`

	SecurityGroups []NovaServerSecurityGroup `json:"security_groups"`

	OSDCFdiskConfig NovaCreateServersResultOSDCFdiskConfig `json:"OS-DCF:diskConfig"`

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

	AdminPass string `json:"adminPass"`
}

func (NovaCreateServersResult) String

func (o NovaCreateServersResult) String() string

type NovaCreateServersResultOSDCFdiskConfig

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

func (NovaCreateServersResultOSDCFdiskConfig) MarshalJSON

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

func (*NovaCreateServersResultOSDCFdiskConfig) UnmarshalJSON

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

type NovaCreateServersResultOSDCFdiskConfigEnum

type NovaCreateServersResultOSDCFdiskConfigEnum struct {
	MANUAL NovaCreateServersResultOSDCFdiskConfig
	AUTO   NovaCreateServersResultOSDCFdiskConfig
}

func GetNovaCreateServersResultOSDCFdiskConfigEnum

func GetNovaCreateServersResultOSDCFdiskConfigEnum() NovaCreateServersResultOSDCFdiskConfigEnum

type NovaCreateServersSchedulerHint

type NovaCreateServersSchedulerHint struct {
	Group *string `json:"group,omitempty"`

	DifferentHost *[]string `json:"different_host,omitempty"`

	SameHost *[]string `json:"same_host,omitempty"`

	Cidr *string `json:"cidr,omitempty"`

	BuildNearHostIp *string `json:"build_near_host_ip,omitempty"`

	Tenancy *string `json:"tenancy,omitempty"`

	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`
}

弹性云服务器调度信息。 裸金属服务器场景不支持。

func (NovaCreateServersSchedulerHint) String

type NovaDeleteKeypairRequest

type NovaDeleteKeypairRequest struct {
	KeypairName string `json:"keypair_name"`
}

Request Object

func (NovaDeleteKeypairRequest) String

func (o NovaDeleteKeypairRequest) String() string

type NovaDeleteKeypairResponse

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

Response Object

func (NovaDeleteKeypairResponse) String

func (o NovaDeleteKeypairResponse) String() string

type NovaDeleteServerRequest

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

Request Object

func (NovaDeleteServerRequest) String

func (o NovaDeleteServerRequest) String() string

type NovaDeleteServerResponse

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

Response Object

func (NovaDeleteServerResponse) String

func (o NovaDeleteServerResponse) String() string

type NovaDisassociateSecurityGroupRequest

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

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

Request Object

func (NovaDisassociateSecurityGroupRequest) String

type NovaDisassociateSecurityGroupRequestBody

type NovaDisassociateSecurityGroupRequestBody struct {
	RemoveSecurityGroup *NovaRemoveSecurityGroupOption `json:"removeSecurityGroup"`
}

This is a auto create Body Object

func (NovaDisassociateSecurityGroupRequestBody) String

type NovaDisassociateSecurityGroupResponse

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

Response Object

func (NovaDisassociateSecurityGroupResponse) String

type NovaKeypair

type NovaKeypair struct {
	Fingerprint string `json:"fingerprint"`

	Name string `json:"name"`

	PublicKey string `json:"public_key"`

	PrivateKey string `json:"private_key"`

	UserId string `json:"user_id"`

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

func (NovaKeypair) String

func (o NovaKeypair) String() string

type NovaKeypairDetail

type NovaKeypairDetail struct {
	PublicKey string `json:"public_key"`

	Name string `json:"name"`

	Fingerprint string `json:"fingerprint"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`

	Deleted bool `json:"deleted"`

	DeletedAt *sdktime.SdkTime `json:"deleted_at"`

	Id int32 `json:"id"`

	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	UserId string `json:"user_id"`

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

func (NovaKeypairDetail) String

func (o NovaKeypairDetail) String() string
type NovaLink struct {
	Href string `json:"href"`

	Rel NovaLinkRel `json:"rel"`
}

func (NovaLink) String

func (o NovaLink) String() string

type NovaLinkRel

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

func (NovaLinkRel) MarshalJSON

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

func (*NovaLinkRel) UnmarshalJSON

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

type NovaLinkRelEnum

type NovaLinkRelEnum struct {
	SELF        NovaLinkRel
	BOOKMARK    NovaLinkRel
	ALTERNATE   NovaLinkRel
	DESCRIBEDBY NovaLinkRel
}

func GetNovaLinkRelEnum

func GetNovaLinkRelEnum() NovaLinkRelEnum

type NovaListAvailabilityZonesRequest

type NovaListAvailabilityZonesRequest struct {
}

Request Object

func (NovaListAvailabilityZonesRequest) String

type NovaListAvailabilityZonesResponse

type NovaListAvailabilityZonesResponse struct {
	AvailabilityZoneInfo *[]NovaAvailabilityZone `json:"availabilityZoneInfo,omitempty"`
	HttpStatusCode       int                     `json:"-"`
}

Response Object

func (NovaListAvailabilityZonesResponse) String

type NovaListKeypairsRequest

type NovaListKeypairsRequest struct {
	Limit *int32 `json:"limit,omitempty"`

	Marker *string `json:"marker,omitempty"`

	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

Request Object

func (NovaListKeypairsRequest) String

func (o NovaListKeypairsRequest) String() string

type NovaListKeypairsResponse

type NovaListKeypairsResponse struct {
	Keypairs       *[]NovaListKeypairsResult `json:"keypairs,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (NovaListKeypairsResponse) String

func (o NovaListKeypairsResponse) String() string

type NovaListKeypairsResult

type NovaListKeypairsResult struct {
	Keypair *NovaSimpleKeypair `json:"keypair"`
}

func (NovaListKeypairsResult) String

func (o NovaListKeypairsResult) String() string

type NovaListServerSecurityGroupsRequest

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

Request Object

func (NovaListServerSecurityGroupsRequest) String

type NovaListServerSecurityGroupsResponse

type NovaListServerSecurityGroupsResponse struct {
	SecurityGroups *[]NovaSecurityGroup `json:"security_groups,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (NovaListServerSecurityGroupsResponse) String

type NovaListServersDetailsRequest

type NovaListServersDetailsRequest struct {
	ChangesSince *string `json:"changes-since,omitempty"`

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

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

	Ip *string `json:"ip,omitempty"`

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

	Marker *string `json:"marker,omitempty"`

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

	NotTags *string `json:"not-tags,omitempty"`

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

	SortKey *NovaListServersDetailsRequestSortKey `json:"sort_key,omitempty"`

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

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

	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

Request Object

func (NovaListServersDetailsRequest) String

type NovaListServersDetailsRequestSortKey

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

func (NovaListServersDetailsRequestSortKey) MarshalJSON

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

func (*NovaListServersDetailsRequestSortKey) UnmarshalJSON

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

type NovaListServersDetailsRequestStatus

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

func (NovaListServersDetailsRequestStatus) MarshalJSON

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

func (*NovaListServersDetailsRequestStatus) UnmarshalJSON

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

type NovaListServersDetailsResponse

type NovaListServersDetailsResponse struct {
	Servers *[]NovaServer `json:"servers,omitempty"`

	ServersLinks   *[]PageLink `json:"servers_links,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (NovaListServersDetailsResponse) String

type NovaNetwork

type NovaNetwork struct {
	Addr string `json:"addr"`

	Version int32 `json:"version"`

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

	OSEXTIPStype string `json:"OS-EXT-IPS:type"`
}

func (NovaNetwork) String

func (o NovaNetwork) String() string

type NovaRemoveSecurityGroupOption

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

func (NovaRemoveSecurityGroupOption) String

type NovaSecurityGroup

type NovaSecurityGroup struct {
	Description string `json:"description"`

	Id string `json:"id"`

	Name string `json:"name"`

	TenantId string `json:"tenant_id"`

	Rules []NovaSecurityGroupCommonRule `json:"rules"`
}

func (NovaSecurityGroup) String

func (o NovaSecurityGroup) String() string

type NovaSecurityGroupCommonGroup

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

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

func (NovaSecurityGroupCommonGroup) String

type NovaSecurityGroupCommonIpRange

type NovaSecurityGroupCommonIpRange struct {
	Cidr *string `json:"cidr,omitempty"`
}

func (NovaSecurityGroupCommonIpRange) String

type NovaSecurityGroupCommonRule

type NovaSecurityGroupCommonRule struct {
	FromPort int32 `json:"from_port"`

	Group *NovaSecurityGroupCommonGroup `json:"group"`

	Id string `json:"id"`

	IpProtocol string `json:"ip_protocol"`

	IpRange *NovaSecurityGroupCommonIpRange `json:"ip_range"`

	ParentGroupId string `json:"parent_group_id"`

	ToPort int32 `json:"to_port"`
}

func (NovaSecurityGroupCommonRule) String

type NovaServer

type NovaServer struct {
	Name string `json:"name"`

	Id string `json:"id"`

	Status NovaServerStatus `json:"status"`

	Created string `json:"created"`

	Updated string `json:"updated"`

	Flavor *NovaServerFlavor `json:"flavor"`

	Image *NovaServerImage `json:"image"`

	TenantId string `json:"tenant_id"`

	KeyName string `json:"key_name"`

	UserId string `json:"user_id"`

	Metadata map[string]string `json:"metadata"`

	HostId string `json:"hostId"`

	Addresses map[string][]NovaNetwork `json:"addresses"`

	SecurityGroups []NovaServerSecurityGroup `json:"security_groups"`

	Links []NovaLink `json:"links"`

	OSDCFdiskConfig NovaServerOSDCFdiskConfig `json:"OS-DCF:diskConfig"`

	OSEXTAZavailabilityZone string `json:"OS-EXT-AZ:availability_zone"`

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

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

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

	OSEXTSTSpowerState int32 `json:"OS-EXT-STS:power_state"`

	OSEXTSTStaskState NovaServerOSEXTSTStaskState `json:"OS-EXT-STS:task_state"`

	OSEXTSTSvmState NovaServerOSEXTSTSvmState `json:"OS-EXT-STS:vm_state"`

	OSSRVUSGlaunchedAt string `json:"OS-SRV-USG:launched_at"`

	OSSRVUSGterminatedAt string `json:"OS-SRV-USG:terminated_at"`

	OsExtendedVolumesvolumesAttached []NovaServerVolume `json:"os-extended-volumes:volumes_attached"`

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

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

	HostStatus NovaServerHostStatus `json:"host_status"`

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

	Tags []string `json:"tags"`

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

	AccessIPv4 string `json:"accessIPv4"`

	AccessIPv6 string `json:"accessIPv6"`

	ConfigDrive string `json:"config_drive"`

	Progress int32 `json:"progress"`

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

func (NovaServer) String

func (o NovaServer) String() string

type NovaServerBlockDeviceMapping

type NovaServerBlockDeviceMapping struct {
	SourceType NovaServerBlockDeviceMappingSourceType `json:"source_type"`

	DestinationType *NovaServerBlockDeviceMappingDestinationType `json:"destination_type,omitempty"`

	GuestFormat *string `json:"guest_format,omitempty"`

	DeviceName *string `json:"device_name,omitempty"`

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

	BootIndex *string `json:"boot_index,omitempty"`

	Uuid *string `json:"uuid,omitempty"`

	VolumeSize *int32 `json:"volume_size,omitempty"`

	VolumeType *string `json:"volume_type,omitempty"`
}

扩展属性,指定弹性云服务器存储设备的v2接口。是存储资源的新版本接口,指定卷场景不能批创弹性云服务器。 裸金属服务器场景不支持。

func (NovaServerBlockDeviceMapping) String

type NovaServerBlockDeviceMappingDestinationType

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

func (NovaServerBlockDeviceMappingDestinationType) MarshalJSON

func (*NovaServerBlockDeviceMappingDestinationType) UnmarshalJSON

type NovaServerBlockDeviceMappingDestinationTypeEnum

type NovaServerBlockDeviceMappingDestinationTypeEnum struct {
	VOLUME NovaServerBlockDeviceMappingDestinationType
}

func GetNovaServerBlockDeviceMappingDestinationTypeEnum

func GetNovaServerBlockDeviceMappingDestinationTypeEnum() NovaServerBlockDeviceMappingDestinationTypeEnum

type NovaServerBlockDeviceMappingSourceType

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

func (NovaServerBlockDeviceMappingSourceType) MarshalJSON

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

func (*NovaServerBlockDeviceMappingSourceType) UnmarshalJSON

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

type NovaServerFault

type NovaServerFault struct {
	Code *int32 `json:"code,omitempty"`

	Created *string `json:"created,omitempty"`

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

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

func (NovaServerFault) String

func (o NovaServerFault) String() string

type NovaServerFlavor

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

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

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

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

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

	Ephemeral *int32 `json:"ephemeral,omitempty"`

	Swap *int32 `json:"swap,omitempty"`

	OriginalName *string `json:"original_name,omitempty"`

	ExtraSpecs map[string]string `json:"extra_specs,omitempty"`
}

func (NovaServerFlavor) String

func (o NovaServerFlavor) String() string

type NovaServerHostStatus

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

func (NovaServerHostStatus) MarshalJSON

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

func (*NovaServerHostStatus) UnmarshalJSON

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

type NovaServerHostStatusEnum

type NovaServerHostStatusEnum struct {
	UP          NovaServerHostStatus
	UNKNOWN     NovaServerHostStatus
	DOWN        NovaServerHostStatus
	MAINTENANCE NovaServerHostStatus
}

func GetNovaServerHostStatusEnum

func GetNovaServerHostStatusEnum() NovaServerHostStatusEnum

type NovaServerImage

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

	Links []NovaLink `json:"links"`
}

func (NovaServerImage) String

func (o NovaServerImage) String() string

type NovaServerNetwork

type NovaServerNetwork struct {
	Port *string `json:"port,omitempty"`

	Uuid *string `json:"uuid,omitempty"`

	FixedIp *string `json:"fixed_ip,omitempty"`
}

func (NovaServerNetwork) String

func (o NovaServerNetwork) String() string

type NovaServerOSDCFdiskConfig

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

func (NovaServerOSDCFdiskConfig) MarshalJSON

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

func (*NovaServerOSDCFdiskConfig) UnmarshalJSON

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

type NovaServerOSDCFdiskConfigEnum

type NovaServerOSDCFdiskConfigEnum struct {
	AUTO   NovaServerOSDCFdiskConfig
	MANUAL NovaServerOSDCFdiskConfig
}

func GetNovaServerOSDCFdiskConfigEnum

func GetNovaServerOSDCFdiskConfigEnum() NovaServerOSDCFdiskConfigEnum

type NovaServerOSEXTSTStaskState

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

func (NovaServerOSEXTSTStaskState) MarshalJSON

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

func (*NovaServerOSEXTSTStaskState) UnmarshalJSON

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

type NovaServerOSEXTSTSvmState

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

func (NovaServerOSEXTSTSvmState) MarshalJSON

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

func (*NovaServerOSEXTSTSvmState) UnmarshalJSON

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

type NovaServerSchedulerHints

type NovaServerSchedulerHints struct {
	Tenancy *[]NovaServerSchedulerHintsTenancy `json:"tenancy,omitempty"`

	DedicatedHostId *[]string `json:"dedicated_host_id,omitempty"`
}

func (NovaServerSchedulerHints) String

func (o NovaServerSchedulerHints) String() string

type NovaServerSchedulerHintsTenancy

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

func (NovaServerSchedulerHintsTenancy) MarshalJSON

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

func (*NovaServerSchedulerHintsTenancy) UnmarshalJSON

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

type NovaServerSchedulerHintsTenancyEnum

type NovaServerSchedulerHintsTenancyEnum struct {
	SHARED    NovaServerSchedulerHintsTenancy
	DEDICATED NovaServerSchedulerHintsTenancy
}

func GetNovaServerSchedulerHintsTenancyEnum

func GetNovaServerSchedulerHintsTenancyEnum() NovaServerSchedulerHintsTenancyEnum

type NovaServerSecurityGroup

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

func (NovaServerSecurityGroup) String

func (o NovaServerSecurityGroup) String() string

type NovaServerStatus

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

func (NovaServerStatus) MarshalJSON

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

func (*NovaServerStatus) UnmarshalJSON

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

type NovaServerStatusEnum

type NovaServerStatusEnum struct {
	ACTIVE            NovaServerStatus
	BUILD             NovaServerStatus
	DELETED           NovaServerStatus
	ERROR             NovaServerStatus
	HARD_REBOOT       NovaServerStatus
	MIGRATING         NovaServerStatus
	REBOOT            NovaServerStatus
	RESIZE            NovaServerStatus
	REVERT_RESIZE     NovaServerStatus
	SHELVED           NovaServerStatus
	SHELVED_OFFLOADED NovaServerStatus
	SHUTOFF           NovaServerStatus
	UNKNOWN           NovaServerStatus
	VERIFY_RESIZE     NovaServerStatus
}

func GetNovaServerStatusEnum

func GetNovaServerStatusEnum() NovaServerStatusEnum

type NovaServerVolume

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

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

func (NovaServerVolume) String

func (o NovaServerVolume) String() string

type NovaShowKeypairRequest

type NovaShowKeypairRequest struct {
	KeypairName string `json:"keypair_name"`

	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

Request Object

func (NovaShowKeypairRequest) String

func (o NovaShowKeypairRequest) String() string

type NovaShowKeypairResponse

type NovaShowKeypairResponse struct {
	Keypair        *NovaKeypairDetail `json:"keypair,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (NovaShowKeypairResponse) String

func (o NovaShowKeypairResponse) String() string

type NovaShowServerRequest

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

	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

Request Object

func (NovaShowServerRequest) String

func (o NovaShowServerRequest) String() string

type NovaShowServerResponse

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

Response Object

func (NovaShowServerResponse) String

func (o NovaShowServerResponse) String() string

type NovaSimpleKeypair

type NovaSimpleKeypair struct {
	Fingerprint string `json:"fingerprint"`

	Name string `json:"name"`

	PublicKey string `json:"public_key"`

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

func (NovaSimpleKeypair) String

func (o NovaSimpleKeypair) String() string
type PageLink struct {
	Href string `json:"href"`

	Rel string `json:"rel"`
}

func (PageLink) String

func (o PageLink) String() string

type PostPaidServer

type PostPaidServer struct {
	AutoTerminateTime *string `json:"auto_terminate_time,omitempty"`

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

	AvailabilityZone *string `json:"availability_zone,omitempty"`

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

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

	Extendparam *PostPaidServerExtendParam `json:"extendparam,omitempty"`

	FlavorRef string `json:"flavorRef"`

	ImageRef string `json:"imageRef"`

	IsAutoRename *bool `json:"isAutoRename,omitempty"`

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

	Metadata map[string]string `json:"metadata,omitempty"`

	Name string `json:"name"`

	Nics []PostPaidServerNic `json:"nics"`

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

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

	RootVolume *PostPaidServerRootVolume `json:"root_volume"`

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

	ServerTags *[]PostPaidServerTag `json:"server_tags,omitempty"`

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

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

	Vpcid string `json:"vpcid"`

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

创建弹性云服务器(按需)接口Body体。

func (PostPaidServer) String

func (o PostPaidServer) String() string

type PostPaidServerDataVolume

type PostPaidServerDataVolume struct {
	Volumetype PostPaidServerDataVolumeVolumetype `json:"volumetype"`

	Size int32 `json:"size"`

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

	Multiattach *bool `json:"multiattach,omitempty"`

	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	Extendparam *PostPaidServerDataVolumeExtendParam `json:"extendparam,omitempty"`

	ClusterType *PostPaidServerDataVolumeClusterType `json:"cluster_type,omitempty"`

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

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

	DataImageId *string `json:"data_image_id,omitempty"`
}

云服务器对应数据盘相关配置。

func (PostPaidServerDataVolume) String

func (o PostPaidServerDataVolume) String() string

type PostPaidServerDataVolumeClusterType

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

func (PostPaidServerDataVolumeClusterType) MarshalJSON

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

func (*PostPaidServerDataVolumeClusterType) UnmarshalJSON

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

type PostPaidServerDataVolumeClusterTypeEnum

type PostPaidServerDataVolumeClusterTypeEnum struct {
	DSS PostPaidServerDataVolumeClusterType
}

func GetPostPaidServerDataVolumeClusterTypeEnum

func GetPostPaidServerDataVolumeClusterTypeEnum() PostPaidServerDataVolumeClusterTypeEnum

type PostPaidServerDataVolumeExtendParam

type PostPaidServerDataVolumeExtendParam struct {
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	ResourceType *string `json:"resourceType,omitempty"`

	SnapshotId *string `json:"snapshotId,omitempty"`
}

创建磁盘的extendparam字段

func (PostPaidServerDataVolumeExtendParam) String

type PostPaidServerDataVolumeMetadata

type PostPaidServerDataVolumeMetadata struct {
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

> 说明: > > 如果是从镜像创建云硬盘,则不支持传入“__system__encrypted”和“__system__cmkid”字段,创建出来的云硬盘与镜像的加密属性一致。

func (PostPaidServerDataVolumeMetadata) String

type PostPaidServerDataVolumeVolumetype

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

func (PostPaidServerDataVolumeVolumetype) MarshalJSON

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

func (*PostPaidServerDataVolumeVolumetype) UnmarshalJSON

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

type PostPaidServerEip

type PostPaidServerEip struct {
	Iptype string `json:"iptype"`

	Bandwidth *PostPaidServerEipBandwidth `json:"bandwidth"`

	Extendparam *PostPaidServerEipExtendParam `json:"extendparam,omitempty"`
}

func (PostPaidServerEip) String

func (o PostPaidServerEip) String() string

type PostPaidServerEipBandwidth

type PostPaidServerEipBandwidth struct {
	Size *int32 `json:"size,omitempty"`

	Sharetype PostPaidServerEipBandwidthSharetype `json:"sharetype"`

	Chargemode *string `json:"chargemode,omitempty"`

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

func (PostPaidServerEipBandwidth) String

type PostPaidServerEipBandwidthSharetype

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

func (PostPaidServerEipBandwidthSharetype) MarshalJSON

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

func (*PostPaidServerEipBandwidthSharetype) UnmarshalJSON

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

type PostPaidServerEipBandwidthSharetypeEnum

type PostPaidServerEipBandwidthSharetypeEnum struct {
	PER   PostPaidServerEipBandwidthSharetype
	WHOLE PostPaidServerEipBandwidthSharetype
}

func GetPostPaidServerEipBandwidthSharetypeEnum

func GetPostPaidServerEipBandwidthSharetypeEnum() PostPaidServerEipBandwidthSharetypeEnum

type PostPaidServerEipExtendParam

type PostPaidServerEipExtendParam struct {
	ChargingMode *PostPaidServerEipExtendParamChargingMode `json:"chargingMode,omitempty"`
}

func (PostPaidServerEipExtendParam) String

type PostPaidServerEipExtendParamChargingMode

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

func (PostPaidServerEipExtendParamChargingMode) MarshalJSON

func (*PostPaidServerEipExtendParamChargingMode) UnmarshalJSON

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

type PostPaidServerEipExtendParamChargingModeEnum

type PostPaidServerEipExtendParamChargingModeEnum struct {
	PRE_PAID  PostPaidServerEipExtendParamChargingMode
	POST_PAID PostPaidServerEipExtendParamChargingMode
}

func GetPostPaidServerEipExtendParamChargingModeEnum

func GetPostPaidServerEipExtendParamChargingModeEnum() PostPaidServerEipExtendParamChargingModeEnum

type PostPaidServerExtendParam

type PostPaidServerExtendParam struct {
	ChargingMode *int32 `json:"chargingMode,omitempty"`

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

	SupportAutoRecovery *bool `json:"support_auto_recovery,omitempty"`

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

	MarketType *string `json:"marketType,omitempty"`

	SpotPrice *string `json:"spotPrice,omitempty"`

	DiskPrior *string `json:"diskPrior,omitempty"`

	SpotDurationHours *int32 `json:"spot_duration_hours,omitempty"`

	InterruptionPolicy *PostPaidServerExtendParamInterruptionPolicy `json:"interruption_policy,omitempty"`

	SpotDurationCount *int32 `json:"spot_duration_count,omitempty"`

	CbCsbsBackup *string `json:"CB_CSBS_BACKUP,omitempty"`
}

func (PostPaidServerExtendParam) String

func (o PostPaidServerExtendParam) String() string

type PostPaidServerExtendParamInterruptionPolicy

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

func (PostPaidServerExtendParamInterruptionPolicy) MarshalJSON

func (*PostPaidServerExtendParamInterruptionPolicy) UnmarshalJSON

type PostPaidServerExtendParamInterruptionPolicyEnum

type PostPaidServerExtendParamInterruptionPolicyEnum struct {
	IMMEDIATE PostPaidServerExtendParamInterruptionPolicy
}

func GetPostPaidServerExtendParamInterruptionPolicyEnum

func GetPostPaidServerExtendParamInterruptionPolicyEnum() PostPaidServerExtendParamInterruptionPolicyEnum

type PostPaidServerIpv6Bandwidth

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

IPV6共享带宽。

func (PostPaidServerIpv6Bandwidth) String

type PostPaidServerNic

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

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

	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *PostPaidServerIpv6Bandwidth `json:"ipv6_bandwidth,omitempty"`
}

待创建云服务器的网卡信息。

func (PostPaidServerNic) String

func (o PostPaidServerNic) String() string

type PostPaidServerPublicip

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

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

func (PostPaidServerPublicip) String

func (o PostPaidServerPublicip) String() string

type PostPaidServerRootVolume

type PostPaidServerRootVolume struct {
	Volumetype PostPaidServerRootVolumeVolumetype `json:"volumetype"`

	Size *int32 `json:"size,omitempty"`

	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	ClusterType *PostPaidServerRootVolumeClusterType `json:"cluster_type,omitempty"`

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

	Extendparam *PostPaidServerRootVolumeExtendParam `json:"extendparam,omitempty"`
}

func (PostPaidServerRootVolume) String

func (o PostPaidServerRootVolume) String() string

type PostPaidServerRootVolumeClusterType

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

func (PostPaidServerRootVolumeClusterType) MarshalJSON

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

func (*PostPaidServerRootVolumeClusterType) UnmarshalJSON

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

type PostPaidServerRootVolumeClusterTypeEnum

type PostPaidServerRootVolumeClusterTypeEnum struct {
	DSS PostPaidServerRootVolumeClusterType
}

func GetPostPaidServerRootVolumeClusterTypeEnum

func GetPostPaidServerRootVolumeClusterTypeEnum() PostPaidServerRootVolumeClusterTypeEnum

type PostPaidServerRootVolumeExtendParam

type PostPaidServerRootVolumeExtendParam struct {
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	ResourceType *string `json:"resourceType,omitempty"`

	SnapshotId *string `json:"snapshotId,omitempty"`
}

func (PostPaidServerRootVolumeExtendParam) String

type PostPaidServerRootVolumeVolumetype

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

func (PostPaidServerRootVolumeVolumetype) MarshalJSON

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

func (*PostPaidServerRootVolumeVolumetype) UnmarshalJSON

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

type PostPaidServerSchedulerHints

type PostPaidServerSchedulerHints struct {
	Group *string `json:"group,omitempty"`

	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	Tenancy *string `json:"tenancy,omitempty"`
}

func (PostPaidServerSchedulerHints) String

type PostPaidServerSecurityGroup

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

func (PostPaidServerSecurityGroup) String

type PostPaidServerTag

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

	Value string `json:"value"`
}

弹性云服务器的标签。

func (PostPaidServerTag) String

func (o PostPaidServerTag) String() string

type PrePaidServer

type PrePaidServer struct {
	AutoTerminateTime *string `json:"auto_terminate_time,omitempty"`

	ImageRef string `json:"imageRef"`

	FlavorRef string `json:"flavorRef"`

	Name string `json:"name"`

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

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

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

	Vpcid string `json:"vpcid"`

	Nics []PrePaidServerNic `json:"nics"`

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

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

	IsAutoRename *bool `json:"isAutoRename,omitempty"`

	RootVolume *PrePaidServerRootVolume `json:"root_volume"`

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

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

	AvailabilityZone *string `json:"availability_zone,omitempty"`

	Extendparam *PrePaidServerExtendParam `json:"extendparam,omitempty"`

	Metadata map[string]string `json:"metadata,omitempty"`

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

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

	ServerTags *[]PrePaidServerTag `json:"server_tags,omitempty"`

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

创建弹性云服务器(包周期)接口Body体。

func (PrePaidServer) String

func (o PrePaidServer) String() string

type PrePaidServerDataVolume

type PrePaidServerDataVolume struct {
	Volumetype PrePaidServerDataVolumeVolumetype `json:"volumetype"`

	Size int32 `json:"size"`

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

	Multiattach *bool `json:"multiattach,omitempty"`

	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	Extendparam *PrePaidServerDataVolumeExtendParam `json:"extendparam,omitempty"`

	ClusterType *PrePaidServerDataVolumeClusterType `json:"cluster_type,omitempty"`

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

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

	DataImageId *string `json:"data_image_id,omitempty"`
}

云服务器对应数据盘相关配置。

func (PrePaidServerDataVolume) String

func (o PrePaidServerDataVolume) String() string

type PrePaidServerDataVolumeClusterType

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

func (PrePaidServerDataVolumeClusterType) MarshalJSON

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

func (*PrePaidServerDataVolumeClusterType) UnmarshalJSON

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

type PrePaidServerDataVolumeClusterTypeEnum

type PrePaidServerDataVolumeClusterTypeEnum struct {
	DSS PrePaidServerDataVolumeClusterType
}

func GetPrePaidServerDataVolumeClusterTypeEnum

func GetPrePaidServerDataVolumeClusterTypeEnum() PrePaidServerDataVolumeClusterTypeEnum

type PrePaidServerDataVolumeExtendParam

type PrePaidServerDataVolumeExtendParam struct {
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	ResourceType *string `json:"resourceType,omitempty"`

	SnapshotId *string `json:"snapshotId,omitempty"`
}

创建磁盘的extendparam字段

func (PrePaidServerDataVolumeExtendParam) String

type PrePaidServerDataVolumeMetadata

type PrePaidServerDataVolumeMetadata struct {
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

> 说明: > > 如果是从镜像创建云硬盘,则不支持传入“__system__encrypted”和“__system__cmkid”字段,创建出来的云硬盘与镜像的加密属性一致。

func (PrePaidServerDataVolumeMetadata) String

type PrePaidServerDataVolumeVolumetype

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

func (PrePaidServerDataVolumeVolumetype) MarshalJSON

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

func (*PrePaidServerDataVolumeVolumetype) UnmarshalJSON

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

type PrePaidServerEip

type PrePaidServerEip struct {
	Iptype string `json:"iptype"`

	Bandwidth *PrePaidServerEipBandwidth `json:"bandwidth"`

	Extendparam *PrePaidServerEipExtendParam `json:"extendparam,omitempty"`
}

func (PrePaidServerEip) String

func (o PrePaidServerEip) String() string

type PrePaidServerEipBandwidth

type PrePaidServerEipBandwidth struct {
	Size *int32 `json:"size,omitempty"`

	Sharetype PrePaidServerEipBandwidthSharetype `json:"sharetype"`

	Chargemode *string `json:"chargemode,omitempty"`

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

func (PrePaidServerEipBandwidth) String

func (o PrePaidServerEipBandwidth) String() string

type PrePaidServerEipBandwidthSharetype

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

func (PrePaidServerEipBandwidthSharetype) MarshalJSON

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

func (*PrePaidServerEipBandwidthSharetype) UnmarshalJSON

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

type PrePaidServerEipBandwidthSharetypeEnum

type PrePaidServerEipBandwidthSharetypeEnum struct {
	PER   PrePaidServerEipBandwidthSharetype
	WHOLE PrePaidServerEipBandwidthSharetype
}

func GetPrePaidServerEipBandwidthSharetypeEnum

func GetPrePaidServerEipBandwidthSharetypeEnum() PrePaidServerEipBandwidthSharetypeEnum

type PrePaidServerEipExtendParam

type PrePaidServerEipExtendParam struct {
	ChargingMode *PrePaidServerEipExtendParamChargingMode `json:"chargingMode,omitempty"`
}

func (PrePaidServerEipExtendParam) String

type PrePaidServerEipExtendParamChargingMode

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

func (PrePaidServerEipExtendParamChargingMode) MarshalJSON

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

func (*PrePaidServerEipExtendParamChargingMode) UnmarshalJSON

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

type PrePaidServerEipExtendParamChargingModeEnum

type PrePaidServerEipExtendParamChargingModeEnum struct {
	PRE_PAID  PrePaidServerEipExtendParamChargingMode
	POST_PAID PrePaidServerEipExtendParamChargingMode
}

func GetPrePaidServerEipExtendParamChargingModeEnum

func GetPrePaidServerEipExtendParamChargingModeEnum() PrePaidServerEipExtendParamChargingModeEnum

type PrePaidServerExtendParam

type PrePaidServerExtendParam struct {
	ChargingMode *PrePaidServerExtendParamChargingMode `json:"chargingMode,omitempty"`

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

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

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

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

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

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

	SupportAutoRecovery *bool `json:"support_auto_recovery,omitempty"`

	MarketType *string `json:"marketType,omitempty"`

	SpotPrice *string `json:"spotPrice,omitempty"`

	DiskPrior *string `json:"diskPrior,omitempty"`

	SpotDurationHours *int32 `json:"spot_duration_hours,omitempty"`

	InterruptionPolicy *PrePaidServerExtendParamInterruptionPolicy `json:"interruption_policy,omitempty"`

	SpotDurationCount *int32 `json:"spot_duration_count,omitempty"`
}

func (PrePaidServerExtendParam) String

func (o PrePaidServerExtendParam) String() string

type PrePaidServerExtendParamChargingMode

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

func (PrePaidServerExtendParamChargingMode) MarshalJSON

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

func (*PrePaidServerExtendParamChargingMode) UnmarshalJSON

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

type PrePaidServerExtendParamChargingModeEnum

type PrePaidServerExtendParamChargingModeEnum struct {
	PRE_PAID  PrePaidServerExtendParamChargingMode
	POST_PAID PrePaidServerExtendParamChargingMode
}

func GetPrePaidServerExtendParamChargingModeEnum

func GetPrePaidServerExtendParamChargingModeEnum() PrePaidServerExtendParamChargingModeEnum

type PrePaidServerExtendParamInterruptionPolicy

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

func (PrePaidServerExtendParamInterruptionPolicy) MarshalJSON

func (*PrePaidServerExtendParamInterruptionPolicy) UnmarshalJSON

type PrePaidServerExtendParamInterruptionPolicyEnum

type PrePaidServerExtendParamInterruptionPolicyEnum struct {
	IMMEDIATE PrePaidServerExtendParamInterruptionPolicy
}

func GetPrePaidServerExtendParamInterruptionPolicyEnum

func GetPrePaidServerExtendParamInterruptionPolicyEnum() PrePaidServerExtendParamInterruptionPolicyEnum

type PrePaidServerExtendParamIsAutoPay

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

func (PrePaidServerExtendParamIsAutoPay) MarshalJSON

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

func (*PrePaidServerExtendParamIsAutoPay) UnmarshalJSON

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

type PrePaidServerExtendParamIsAutoPayEnum

type PrePaidServerExtendParamIsAutoPayEnum struct {
	TRUE  PrePaidServerExtendParamIsAutoPay
	FALSE PrePaidServerExtendParamIsAutoPay
}

func GetPrePaidServerExtendParamIsAutoPayEnum

func GetPrePaidServerExtendParamIsAutoPayEnum() PrePaidServerExtendParamIsAutoPayEnum

type PrePaidServerExtendParamIsAutoRenew

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

func (PrePaidServerExtendParamIsAutoRenew) MarshalJSON

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

func (*PrePaidServerExtendParamIsAutoRenew) UnmarshalJSON

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

type PrePaidServerExtendParamIsAutoRenewEnum

type PrePaidServerExtendParamIsAutoRenewEnum struct {
	TRUE  PrePaidServerExtendParamIsAutoRenew
	FALSE PrePaidServerExtendParamIsAutoRenew
}

func GetPrePaidServerExtendParamIsAutoRenewEnum

func GetPrePaidServerExtendParamIsAutoRenewEnum() PrePaidServerExtendParamIsAutoRenewEnum

type PrePaidServerExtendParamPeriodType

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

func (PrePaidServerExtendParamPeriodType) MarshalJSON

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

func (*PrePaidServerExtendParamPeriodType) UnmarshalJSON

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

type PrePaidServerExtendParamPeriodTypeEnum

type PrePaidServerExtendParamPeriodTypeEnum struct {
	MONTH PrePaidServerExtendParamPeriodType
	YEAR  PrePaidServerExtendParamPeriodType
}

func GetPrePaidServerExtendParamPeriodTypeEnum

func GetPrePaidServerExtendParamPeriodTypeEnum() PrePaidServerExtendParamPeriodTypeEnum

type PrePaidServerIpv6Bandwidth

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

IPV6共享带宽。

func (PrePaidServerIpv6Bandwidth) String

type PrePaidServerNic

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

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

	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *PrePaidServerIpv6Bandwidth `json:"ipv6_bandwidth,omitempty"`
}

待创建云服务器的网卡信息。

func (PrePaidServerNic) String

func (o PrePaidServerNic) String() string

type PrePaidServerPublicip

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

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

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

func (PrePaidServerPublicip) String

func (o PrePaidServerPublicip) String() string

type PrePaidServerRootVolume

type PrePaidServerRootVolume struct {
	Volumetype PrePaidServerRootVolumeVolumetype `json:"volumetype"`

	Size *int32 `json:"size,omitempty"`

	Extendparam *PrePaidServerRootVolumeExtendParam `json:"extendparam,omitempty"`

	ClusterType *PrePaidServerRootVolumeClusterType `json:"cluster_type,omitempty"`

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

	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`
}

func (PrePaidServerRootVolume) String

func (o PrePaidServerRootVolume) String() string

type PrePaidServerRootVolumeClusterType

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

func (PrePaidServerRootVolumeClusterType) MarshalJSON

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

func (*PrePaidServerRootVolumeClusterType) UnmarshalJSON

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

type PrePaidServerRootVolumeClusterTypeEnum

type PrePaidServerRootVolumeClusterTypeEnum struct {
	DSS PrePaidServerRootVolumeClusterType
}

func GetPrePaidServerRootVolumeClusterTypeEnum

func GetPrePaidServerRootVolumeClusterTypeEnum() PrePaidServerRootVolumeClusterTypeEnum

type PrePaidServerRootVolumeExtendParam

type PrePaidServerRootVolumeExtendParam struct {
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	ResourceType *string `json:"resourceType,omitempty"`

	SnapshotId *string `json:"snapshotId,omitempty"`
}

func (PrePaidServerRootVolumeExtendParam) String

type PrePaidServerRootVolumeVolumetype

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

func (PrePaidServerRootVolumeVolumetype) MarshalJSON

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

func (*PrePaidServerRootVolumeVolumetype) UnmarshalJSON

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

type PrePaidServerSchedulerHints

type PrePaidServerSchedulerHints struct {
	Group *string `json:"group,omitempty"`

	Tenancy *PrePaidServerSchedulerHintsTenancy `json:"tenancy,omitempty"`

	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`
}

func (PrePaidServerSchedulerHints) String

type PrePaidServerSchedulerHintsTenancy

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

func (PrePaidServerSchedulerHintsTenancy) MarshalJSON

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

func (*PrePaidServerSchedulerHintsTenancy) UnmarshalJSON

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

type PrePaidServerSchedulerHintsTenancyEnum

type PrePaidServerSchedulerHintsTenancyEnum struct {
	SHARED    PrePaidServerSchedulerHintsTenancy
	DEDICATED PrePaidServerSchedulerHintsTenancy
}

func GetPrePaidServerSchedulerHintsTenancyEnum

func GetPrePaidServerSchedulerHintsTenancyEnum() PrePaidServerSchedulerHintsTenancyEnum

type PrePaidServerSecurityGroup

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

func (PrePaidServerSecurityGroup) String

type PrePaidServerTag

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

	Value string `json:"value"`
}

弹性云服务器的标签。

func (PrePaidServerTag) String

func (o PrePaidServerTag) String() string

type ProjectFlavorLimit

type ProjectFlavorLimit struct {
}

func (ProjectFlavorLimit) String

func (o ProjectFlavorLimit) String() string

type ProjectTag

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

	Values *[]string `json:"values,omitempty"`
}

项目标签列表。

func (ProjectTag) String

func (o ProjectTag) String() string

type RegisterServerAutoRecoveryRequest

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

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

Request Object

func (RegisterServerAutoRecoveryRequest) String

type RegisterServerAutoRecoveryRequestBody

type RegisterServerAutoRecoveryRequestBody struct {
	SupportAutoRecovery string `json:"support_auto_recovery"`
}

This is a auto create Body Object

func (RegisterServerAutoRecoveryRequestBody) String

type RegisterServerAutoRecoveryResponse

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

Response Object

func (RegisterServerAutoRecoveryResponse) String

type ReinstallServerWithCloudInitOption

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

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

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

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

	Mode *string `json:"mode,omitempty"`
}

重装操作系统body。

func (ReinstallServerWithCloudInitOption) String

type ReinstallServerWithCloudInitRequest

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

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

Request Object

func (ReinstallServerWithCloudInitRequest) String

type ReinstallServerWithCloudInitRequestBody

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

This is a auto create Body Object

func (ReinstallServerWithCloudInitRequestBody) String

type ReinstallServerWithCloudInitResponse

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

Response Object

func (ReinstallServerWithCloudInitResponse) String

type ReinstallServerWithoutCloudInitOption

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

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

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

	Mode *string `json:"mode,omitempty"`
}

重装操作系统body。

func (ReinstallServerWithoutCloudInitOption) String

type ReinstallServerWithoutCloudInitRequest

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

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

Request Object

func (ReinstallServerWithoutCloudInitRequest) String

type ReinstallServerWithoutCloudInitRequestBody

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

This is a auto create Body Object

func (ReinstallServerWithoutCloudInitRequestBody) String

type ReinstallServerWithoutCloudInitResponse

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

Response Object

func (ReinstallServerWithoutCloudInitResponse) String

type ReinstallSeverMetadata

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

func (ReinstallSeverMetadata) String

func (o ReinstallSeverMetadata) String() string

type ResetServerPasswordOption

type ResetServerPasswordOption struct {
	NewPassword string `json:"new_password"`

	IsCheckPassword *bool `json:"is_check_password,omitempty"`
}

func (ResetServerPasswordOption) String

func (o ResetServerPasswordOption) String() string

type ResetServerPasswordRequest

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

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

Request Object

func (ResetServerPasswordRequest) String

type ResetServerPasswordRequestBody

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

This is a auto create Body Object

func (ResetServerPasswordRequestBody) String

type ResetServerPasswordResponse

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

Response Object

func (ResetServerPasswordResponse) String

type ResizePostPaidServerOption

type ResizePostPaidServerOption struct {
	FlavorRef string `json:"flavorRef"`

	Mode *string `json:"mode,omitempty"`
}

func (ResizePostPaidServerOption) String

type ResizePostPaidServerRequest

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

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

Request Object

func (ResizePostPaidServerRequest) String

type ResizePostPaidServerRequestBody

type ResizePostPaidServerRequestBody struct {
	Resize *ResizePostPaidServerOption `json:"resize"`
}

This is a auto create Body Object

func (ResizePostPaidServerRequestBody) String

type ResizePostPaidServerResponse

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

Response Object

func (ResizePostPaidServerResponse) String

type ResizePrePaidServerOption

type ResizePrePaidServerOption struct {
	FlavorRef string `json:"flavorRef"`

	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	Extendparam *ResizeServerExtendParam `json:"extendparam,omitempty"`

	Mode *string `json:"mode,omitempty"`
}

func (ResizePrePaidServerOption) String

func (o ResizePrePaidServerOption) String() string

type ResizeServerExtendParam

type ResizeServerExtendParam struct {
	IsAutoPay *string `json:"isAutoPay,omitempty"`
}

func (ResizeServerExtendParam) String

func (o ResizeServerExtendParam) String() string

type ResizeServerRequest

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

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

Request Object

func (ResizeServerRequest) String

func (o ResizeServerRequest) String() string

type ResizeServerRequestBody

type ResizeServerRequestBody struct {
	Resize *ResizePrePaidServerOption `json:"resize"`
}

This is a auto create Body Object

func (ResizeServerRequestBody) String

func (o ResizeServerRequestBody) String() string

type ResizeServerResponse

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

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

Response Object

func (ResizeServerResponse) String

func (o ResizeServerResponse) String() string

type ServerAddress

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

	Addr string `json:"addr"`

	OSEXTIPStype *ServerAddressOSEXTIPStype `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"`
}

弹性云服务器的网络属性。

func (ServerAddress) String

func (o ServerAddress) String() string

type ServerAddressOSEXTIPStype

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

func (ServerAddressOSEXTIPStype) MarshalJSON

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

func (*ServerAddressOSEXTIPStype) UnmarshalJSON

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

type ServerAddressOSEXTIPStypeEnum

type ServerAddressOSEXTIPStypeEnum struct {
	FIXED    ServerAddressOSEXTIPStype
	FLOATING ServerAddressOSEXTIPStype
}

func GetServerAddressOSEXTIPStypeEnum

func GetServerAddressOSEXTIPStypeEnum() ServerAddressOSEXTIPStypeEnum

type ServerAttachableQuantity

type ServerAttachableQuantity struct {
	FreeScsi int32 `json:"free_scsi"`

	FreeBlk int32 `json:"free_blk"`

	FreeDisk int32 `json:"free_disk"`

	FreeNic int32 `json:"free_nic"`
}

云服务器可挂载网卡和卷数。

func (ServerAttachableQuantity) String

func (o ServerAttachableQuantity) String() string

type ServerBlockDevice

type ServerBlockDevice struct {
	BootIndex *int32 `json:"bootIndex,omitempty"`

	PciAddress *string `json:"pciAddress,omitempty"`

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

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

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

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

	Size *int32 `json:"size,omitempty"`

	Bus *string `json:"bus,omitempty"`
}

查询云服务器指定磁盘挂载信息响应信息

func (ServerBlockDevice) String

func (o ServerBlockDevice) String() string

type ServerDetail

type ServerDetail struct {
	Status string `json:"status"`

	Updated string `json:"updated"`

	AutoTerminateTime string `json:"auto_terminate_time"`

	HostId string `json:"hostId"`

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

	Addresses map[string][]ServerAddress `json:"addresses"`

	KeyName string `json:"key_name"`

	Image *ServerImage `json:"image"`

	OSEXTSTStaskState string `json:"OS-EXT-STS:task_state"`

	OSEXTSTSvmState string `json:"OS-EXT-STS:vm_state"`

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

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

	Flavor *ServerFlavor `json:"flavor"`

	Id string `json:"id"`

	SecurityGroups []ServerSecurityGroup `json:"security_groups"`

	OSEXTAZavailabilityZone string `json:"OS-EXT-AZ:availability_zone"`

	UserId string `json:"user_id"`

	Name string `json:"name"`

	Created string `json:"created"`

	TenantId string `json:"tenant_id"`

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

	AccessIPv4 string `json:"accessIPv4"`

	AccessIPv6 string `json:"accessIPv6"`

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

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

	OSEXTSTSpowerState int32 `json:"OS-EXT-STS:power_state"`

	ConfigDrive string `json:"config_drive"`

	Metadata map[string]string `json:"metadata"`

	OSSRVUSGlaunchedAt string `json:"OS-SRV-USG:launched_at"`

	OSSRVUSGterminatedAt string `json:"OS-SRV-USG:terminated_at"`

	OsExtendedVolumesvolumesAttached []ServerExtendVolumeAttachment `json:"os-extended-volumes:volumes_attached"`

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

	HostStatus string `json:"host_status"`

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

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

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

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

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

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

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

	Locked bool `json:"locked"`

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

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

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

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

	CpuOptions *CpuOptions `json:"cpu_options,omitempty"`

	Hypervisor *Hypervisor `json:"hypervisor,omitempty"`
}

云服务器详情。

func (ServerDetail) String

func (o ServerDetail) String() string

type ServerExtendVolumeAttachment

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

	DeleteOnTermination string `json:"delete_on_termination"`

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

	Device string `json:"device"`
}

挂载到弹性云服务器上的磁盘。

func (ServerExtendVolumeAttachment) String

type ServerFault

type ServerFault struct {
	Code *int32 `json:"code,omitempty"`

	Created *string `json:"created,omitempty"`

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

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

弹性云服务器故障信息。

func (ServerFault) String

func (o ServerFault) String() string

type ServerFlavor

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

	Name string `json:"name"`

	Disk string `json:"disk"`

	Vcpus string `json:"vcpus"`

	Ram string `json:"ram"`
}

弹性云服务器规格信息。

func (ServerFlavor) String

func (o ServerFlavor) String() string

type ServerGroupMember

type ServerGroupMember struct {
	InstanceUuid string `json:"instance_uuid"`
}

云服务器组添加、删除成员列表

func (ServerGroupMember) String

func (o ServerGroupMember) String() string

type ServerId

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

func (ServerId) String

func (o ServerId) String() string

type ServerImage

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

弹性云服务器镜像信息。

func (ServerImage) String

func (o ServerImage) String() string

type ServerInterfaceFixedIp

type ServerInterfaceFixedIp struct {
	IpAddress *string `json:"ip_address,omitempty"`

	SubnetId *string `json:"subnet_id,omitempty"`
}

func (ServerInterfaceFixedIp) String

func (o ServerInterfaceFixedIp) String() string

type ServerLimits

type ServerLimits struct {
	MaxImageMeta int32 `json:"maxImageMeta"`

	MaxPersonality int32 `json:"maxPersonality"`

	MaxPersonalitySize int32 `json:"maxPersonalitySize"`

	MaxSecurityGroupRules int32 `json:"maxSecurityGroupRules"`

	MaxSecurityGroups int32 `json:"maxSecurityGroups"`

	MaxServerGroupMembers int32 `json:"maxServerGroupMembers"`

	MaxServerGroups int32 `json:"maxServerGroups"`

	MaxServerMeta int32 `json:"maxServerMeta"`

	MaxTotalCores int32 `json:"maxTotalCores"`

	MaxTotalFloatingIps int32 `json:"maxTotalFloatingIps"`

	MaxTotalInstances int32 `json:"maxTotalInstances"`

	MaxTotalKeypairs int32 `json:"maxTotalKeypairs"`

	MaxTotalRAMSize int32 `json:"maxTotalRAMSize"`

	TotalCoresUsed int32 `json:"totalCoresUsed"`

	TotalFloatingIpsUsed int32 `json:"totalFloatingIpsUsed"`

	TotalInstancesUsed int32 `json:"totalInstancesUsed"`

	TotalRAMUsed int32 `json:"totalRAMUsed"`

	TotalSecurityGroupsUsed int32 `json:"totalSecurityGroupsUsed"`

	TotalServerGroupsUsed int32 `json:"totalServerGroupsUsed"`

	MaxTotalSpotInstances *int32 `json:"maxTotalSpotInstances,omitempty"`

	MaxTotalSpotCores *int32 `json:"maxTotalSpotCores,omitempty"`

	MaxTotalSpotRAMSize *int32 `json:"maxTotalSpotRAMSize,omitempty"`

	TotalSpotInstancesUsed *int32 `json:"totalSpotInstancesUsed,omitempty"`

	TotalSpotCoresUsed *int32 `json:"totalSpotCoresUsed,omitempty"`

	TotalSpotRAMUsed *int32 `json:"totalSpotRAMUsed,omitempty"`

	LimitByFlavor *[]ProjectFlavorLimit `json:"limit_by_flavor,omitempty"`
}

func (ServerLimits) String

func (o ServerLimits) String() string

type ServerNicSecurityGroup

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

func (ServerNicSecurityGroup) String

func (o ServerNicSecurityGroup) String() string

type ServerRemoteConsole

type ServerRemoteConsole struct {
	Protocol string `json:"protocol"`

	Type string `json:"type"`

	Url string `json:"url"`
}

func (ServerRemoteConsole) String

func (o ServerRemoteConsole) String() string

type ServerSchedulerHints

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

	Tenancy *[]string `json:"tenancy,omitempty"`

	DedicatedHostId *[]string `json:"dedicated_host_id,omitempty"`
}

弹性云服务器调度信息。

func (ServerSchedulerHints) String

func (o ServerSchedulerHints) String() string

type ServerSecurityGroup

type ServerSecurityGroup struct {
	Name string `json:"name"`

	Id string `json:"id"`
}

弹性云服务器所属安全组列表。

func (ServerSecurityGroup) String

func (o ServerSecurityGroup) String() string

type ServerSystemTag

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

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

弹性云服务器系统标签。

func (ServerSystemTag) String

func (o ServerSystemTag) String() string

type ServerTag

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

	Value string `json:"value"`
}

云服务器标签。

func (ServerTag) String

func (o ServerTag) String() string

type ShowJobRequest

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

Request Object

func (ShowJobRequest) String

func (o ShowJobRequest) String() string

type ShowJobResponse

type ShowJobResponse struct {
	BeginTime *string `json:"begin_time,omitempty"`

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

	EndTime *string `json:"end_time,omitempty"`

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

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

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

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

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

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

	Status         *ShowJobResponseStatus `json:"status,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowJobResponse) String

func (o ShowJobResponse) String() string

type ShowJobResponseStatus

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

func (ShowJobResponseStatus) MarshalJSON

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

func (*ShowJobResponseStatus) UnmarshalJSON

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

type ShowJobResponseStatusEnum

type ShowJobResponseStatusEnum struct {
	SUCCESS ShowJobResponseStatus
	RUNNING ShowJobResponseStatus
	FAIL    ShowJobResponseStatus
	INIT    ShowJobResponseStatus
}

func GetShowJobResponseStatusEnum

func GetShowJobResponseStatusEnum() ShowJobResponseStatusEnum

type ShowResetPasswordFlagRequest

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

Request Object

func (ShowResetPasswordFlagRequest) String

type ShowResetPasswordFlagResponse

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

Response Object

func (ShowResetPasswordFlagResponse) String

type ShowServerAutoRecoveryRequest

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

Request Object

func (ShowServerAutoRecoveryRequest) String

type ShowServerAutoRecoveryResponse

type ShowServerAutoRecoveryResponse struct {
	SupportAutoRecovery *string `json:"support_auto_recovery,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

Response Object

func (ShowServerAutoRecoveryResponse) String

type ShowServerBlockDeviceRequest

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

	VolumeId string `json:"volume_id"`
}

Request Object

func (ShowServerBlockDeviceRequest) String

type ShowServerBlockDeviceResponse

type ShowServerBlockDeviceResponse struct {
	VolumeAttachment *ServerBlockDevice `json:"volumeAttachment,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

Response Object

func (ShowServerBlockDeviceResponse) String

type ShowServerGroupRequest

type ShowServerGroupRequest struct {
	ServerGroupId string `json:"server_group_id"`
}

Request Object

func (ShowServerGroupRequest) String

func (o ShowServerGroupRequest) String() string

type ShowServerGroupResponse

type ShowServerGroupResponse struct {
	ServerGroup    *ShowServerGroupResult `json:"server_group,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowServerGroupResponse) String

func (o ShowServerGroupResponse) String() string

type ShowServerGroupResult

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

	Members []string `json:"members"`

	Metadata map[string]string `json:"metadata"`

	Name string `json:"name"`

	Policies []string `json:"policies"`
}

func (ShowServerGroupResult) String

func (o ShowServerGroupResult) String() string

type ShowServerLimitsRequest

type ShowServerLimitsRequest struct {
}

Request Object

func (ShowServerLimitsRequest) String

func (o ShowServerLimitsRequest) String() string

type ShowServerLimitsResponse

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

Response Object

func (ShowServerLimitsResponse) String

func (o ShowServerLimitsResponse) String() string

type ShowServerPasswordRequest

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

Request Object

func (ShowServerPasswordRequest) String

func (o ShowServerPasswordRequest) String() string

type ShowServerPasswordResponse

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

Response Object

func (ShowServerPasswordResponse) String

type ShowServerRemoteConsoleRequest

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

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

Request Object

func (ShowServerRemoteConsoleRequest) String

type ShowServerRemoteConsoleRequestBody

type ShowServerRemoteConsoleRequestBody struct {
	RemoteConsole *GetServerRemoteConsoleOption `json:"remote_console"`
}

This is a auto create Body Object

func (ShowServerRemoteConsoleRequestBody) String

type ShowServerRemoteConsoleResponse

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

Response Object

func (ShowServerRemoteConsoleResponse) String

type ShowServerRequest

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

Request Object

func (ShowServerRequest) String

func (o ShowServerRequest) String() string

type ShowServerResponse

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

Response Object

func (ShowServerResponse) String

func (o ShowServerResponse) String() string

type ShowServerTagsRequest

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

Request Object

func (ShowServerTagsRequest) String

func (o ShowServerTagsRequest) String() string

type ShowServerTagsResponse

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

Response Object

func (ShowServerTagsResponse) String

func (o ShowServerTagsResponse) String() string

type SimpleFlavor

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

	Links []Link `json:"links"`
}

云服务器规格。

func (SimpleFlavor) String

func (o SimpleFlavor) String() string

type SubJob

type SubJob struct {
	Status *SubJobStatus `json:"status,omitempty"`

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

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

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

	BeginTime *string `json:"begin_time,omitempty"`

	EndTime *string `json:"end_time,omitempty"`

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

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

func (SubJob) String

func (o SubJob) String() string

type SubJobEntities

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

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

	ErrorcodeMessage *string `json:"errorcode_message,omitempty"`
}

func (SubJobEntities) String

func (o SubJobEntities) String() string

type SubJobStatus

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

func (SubJobStatus) MarshalJSON

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

func (*SubJobStatus) UnmarshalJSON

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

type SubJobStatusEnum

type SubJobStatusEnum struct {
	SUCCESS SubJobStatus
	RUNNING SubJobStatus
	FAIL    SubJobStatus
	INIT    SubJobStatus
}

func GetSubJobStatusEnum

func GetSubJobStatusEnum() SubJobStatusEnum

type UpdateServerAddress

type UpdateServerAddress struct {
	Version int32 `json:"version"`

	Addr string `json:"addr"`
}

弹性云服务器的网络属性。

func (UpdateServerAddress) String

func (o UpdateServerAddress) String() string

type UpdateServerAutoTerminateTimeRequest

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

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

Request Object

func (UpdateServerAutoTerminateTimeRequest) String

type UpdateServerAutoTerminateTimeRequestBody

type UpdateServerAutoTerminateTimeRequestBody struct {
	AutoTerminateTime string `json:"auto_terminate_time"`
}

This is a auto create Body Object

func (UpdateServerAutoTerminateTimeRequestBody) String

type UpdateServerAutoTerminateTimeResponse

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

Response Object

func (UpdateServerAutoTerminateTimeResponse) String

type UpdateServerMetadataRequest

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

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

Request Object

func (UpdateServerMetadataRequest) String

type UpdateServerMetadataRequestBody

type UpdateServerMetadataRequestBody struct {
	Metadata map[string]string `json:"metadata"`
}

This is a auto create Body Object

func (UpdateServerMetadataRequestBody) String

type UpdateServerMetadataResponse

type UpdateServerMetadataResponse struct {
	Metadata       map[string]string `json:"metadata,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (UpdateServerMetadataResponse) String

type UpdateServerOption

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

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

	Hostname *string `json:"hostname,omitempty"`
}

更新云服务器Body体。

func (UpdateServerOption) String

func (o UpdateServerOption) String() string

type UpdateServerRequest

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

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

Request Object

func (UpdateServerRequest) String

func (o UpdateServerRequest) String() string

type UpdateServerRequestBody

type UpdateServerRequestBody struct {
	Server *UpdateServerOption `json:"server"`
}

This is a auto create Body Object

func (UpdateServerRequestBody) String

func (o UpdateServerRequestBody) String() string

type UpdateServerResponse

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

Response Object

func (UpdateServerResponse) String

func (o UpdateServerResponse) String() string

type UpdateServerResult

type UpdateServerResult struct {
	TenantId string `json:"tenant_id"`

	Image string `json:"image"`

	AccessIPv4 string `json:"accessIPv4"`

	AccessIPv6 string `json:"accessIPv6"`

	Metadata map[string]string `json:"metadata"`

	Addresses map[string][]UpdateServerAddress `json:"addresses"`

	Created string `json:"created"`

	HostId string `json:"hostId"`

	Flavor *SimpleFlavor `json:"flavor"`

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

	UserId string `json:"user_id"`

	Name string `json:"name"`

	Progress int32 `json:"progress"`

	Links []Link `json:"links"`

	Id string `json:"id"`

	Updated string `json:"updated"`

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

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

	Tags []string `json:"tags"`

	Status string `json:"status"`

	OSEXTSRVATTRhostname string `json:"OS-EXT-SRV-ATTR:hostname"`
}

云服务器详情。

func (UpdateServerResult) String

func (o UpdateServerResult) String() string

Source Files

Jump to

Keyboard shortcuts

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