model

package
v0.1.112 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCreateDedicatedHostTagsRequest

type BatchCreateDedicatedHostTagsRequest struct {

	// 专属主机ID。  可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。
	DedicatedHostId string `json:"dedicated_host_id"`

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

BatchCreateDedicatedHostTagsRequest Request Object

func (BatchCreateDedicatedHostTagsRequest) String

type BatchCreateDedicatedHostTagsResponse

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

BatchCreateDedicatedHostTagsResponse Response Object

func (BatchCreateDedicatedHostTagsResponse) String

type BatchDeleteDedicatedHostTagsRequest

type BatchDeleteDedicatedHostTagsRequest struct {

	// 专属主机ID。  可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。
	DedicatedHostId string `json:"dedicated_host_id"`

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

BatchDeleteDedicatedHostTagsRequest Request Object

func (BatchDeleteDedicatedHostTagsRequest) String

type BatchDeleteDedicatedHostTagsResponse

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

BatchDeleteDedicatedHostTagsResponse Response Object

func (BatchDeleteDedicatedHostTagsResponse) String

type CreateDedicatedHostRequest

type CreateDedicatedHostRequest struct {
	Body *ReqAllocateDeh `json:"body,omitempty"`
}

CreateDedicatedHostRequest Request Object

func (CreateDedicatedHostRequest) String

type CreateDedicatedHostResponse

type CreateDedicatedHostResponse struct {

	// 已分配的专属主机ID数组。租户可以在这些专属主机上创建云服务器。
	DedicatedHostIds *[]string `json:"dedicated_host_ids,omitempty"`
	HttpStatusCode   int       `json:"-"`
}

CreateDedicatedHostResponse Response Object

func (CreateDedicatedHostResponse) String

type DeleteDedicatedHostRequest

type DeleteDedicatedHostRequest struct {

	// 专属主机ID。
	DedicatedHostId string `json:"dedicated_host_id"`
}

DeleteDedicatedHostRequest Request Object

func (DeleteDedicatedHostRequest) String

type DeleteDedicatedHostResponse

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

DeleteDedicatedHostResponse Response Object

func (DeleteDedicatedHostResponse) String

type ListDedicatedHostTypesRequest

type ListDedicatedHostTypesRequest struct {

	// AZ。
	AvailabilityZone string `json:"availability_zone"`
}

ListDedicatedHostTypesRequest Request Object

func (ListDedicatedHostTypesRequest) String

type ListDedicatedHostTypesResponse

type ListDedicatedHostTypesResponse struct {

	// 可用的专属主机类型。
	DedicatedHostTypes *[]RespHostType `json:"dedicated_host_types,omitempty"`
	HttpStatusCode     int             `json:"-"`
}

ListDedicatedHostTypesResponse Response Object

func (ListDedicatedHostTypesResponse) String

type ListDedicatedHostsByTagsRequest

type ListDedicatedHostsByTagsRequest struct {
	Body *ReqListDehByTags `json:"body,omitempty"`
}

ListDedicatedHostsByTagsRequest Request Object

func (ListDedicatedHostsByTagsRequest) String

type ListDedicatedHostsByTagsResponse

type ListDedicatedHostsByTagsResponse struct {

	// 返回的专属主机列表。
	Resources *[]RespDeh `json:"resources,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListDedicatedHostsByTagsResponse Response Object

func (ListDedicatedHostsByTagsResponse) String

type ListDedicatedHostsRequest

type ListDedicatedHostsRequest struct {

	// 专属主机ID。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	// 专属主机名称。
	Name *string `json:"name,omitempty"`

	// 专属主机类型。
	HostType *string `json:"host_type,omitempty"`

	// 专属主机类型的名称。
	HostTypeName *string `json:"host_type_name,omitempty"`

	// 规格ID。
	Flavor *string `json:"flavor,omitempty"`

	// 专属主机状态。  取值范围:“available”、“fault”或“released”。
	State *ListDedicatedHostsRequestState `json:"state,omitempty"`

	// 取值范围:租户ID或“all”。  只有管理员可以指定该参数。
	Tenant *string `json:"tenant,omitempty"`

	// 专属主机所属AZ。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 每个页面上显示的条目数。
	Limit *int32 `json:"limit,omitempty"`

	// 该值是上一页最后一条记录的ID。  如果“marker”取值无效,将会返回“400”错误码。
	Marker *string `json:"marker,omitempty"`

	// 专属主机标签。
	Tags *string `json:"tags,omitempty"`

	// 专属主机上的云服务器ID。
	InstanceUuid *string `json:"instance_uuid,omitempty"`

	// 专属主机的释放时间。
	ReleasedAt *string `json:"released_at,omitempty"`

	// 当专属主机更新了状态时,按日期和时间戳过滤响应。为了便于记录更改,还可能返回最近删除的专属主机。  日期和时间戳的格式为ISO 8601:CCYY-MM-DDThh:mm:ss±hh:mm  如果包含“hh:mm”值,则将时区作为UTC的偏移量返回。例如,“2015-08-27T09:49:58-05:00”。如果您省略时区,则假定为UTC时区。
	ChangesSince *string `json:"changes-since,omitempty"`
}

ListDedicatedHostsRequest Request Object

func (ListDedicatedHostsRequest) String

func (o ListDedicatedHostsRequest) String() string

type ListDedicatedHostsRequestState

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

func (ListDedicatedHostsRequestState) MarshalJSON

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

func (*ListDedicatedHostsRequestState) UnmarshalJSON

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

func (ListDedicatedHostsRequestState) Value added in v0.0.90

type ListDedicatedHostsRequestStateEnum

type ListDedicatedHostsRequestStateEnum struct {
	AVAILABLE ListDedicatedHostsRequestState
	FAULT     ListDedicatedHostsRequestState
	RELEASED  ListDedicatedHostsRequestState
}

func GetListDedicatedHostsRequestStateEnum

func GetListDedicatedHostsRequestStateEnum() ListDedicatedHostsRequestStateEnum

type ListDedicatedHostsResponse

type ListDedicatedHostsResponse struct {

	// 满足查询条件的专属主机。
	DedicatedHosts *[]RespDedicatedHost `json:"dedicated_hosts,omitempty"`

	// 满足查询条件的专属主机数量。
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListDedicatedHostsResponse Response Object

func (ListDedicatedHostsResponse) String

type ListServersDedicatedHostRequest

type ListServersDedicatedHostRequest struct {

	// 专属主机ID。  可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。
	DedicatedHostId string `json:"dedicated_host_id"`

	// 每个页面上显示的条目数。
	Limit *int32 `json:"limit,omitempty"`

	// 该值是上一页最后一条记录的ID。  如果“marker”取值无效,将会返回“400”错误码。
	Marker *string `json:"marker,omitempty"`
}

ListServersDedicatedHostRequest Request Object

func (ListServersDedicatedHostRequest) String

type ListServersDedicatedHostResponse

type ListServersDedicatedHostResponse struct {

	// server字段数据结构说明
	Servers        *[]RespServer `json:"servers,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListServersDedicatedHostResponse Response Object

func (ListServersDedicatedHostResponse) String

type Match

type Match struct {

	// 键,表示要匹配的字段。  key不能重复,value为匹配的值。  此字段为固定字典值。  不允许为空字符串。  当前key的参数值仅支持resource_name,此时value的参数值为专属主机名称。
	Key MatchKey `json:"key"`

	// 值。  每个值最大长度为255个unicode字符。  不可以为空 。
	Value string `json:"value"`
}

Match match字段数据结构。

func (Match) String

func (o Match) String() string

type MatchKey

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

func (MatchKey) MarshalJSON

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

func (*MatchKey) UnmarshalJSON

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

func (MatchKey) Value added in v0.0.90

func (c MatchKey) Value() string

type MatchKeyEnum

type MatchKeyEnum struct {
	RESOURCE_NAME MatchKey
}

func GetMatchKeyEnum

func GetMatchKeyEnum() MatchKeyEnum

type ReqAllocateDeh

type ReqAllocateDeh struct {

	// 专属主机名称。
	Name string `json:"name"`

	// 在创建云服务器时(未指定专属主机ID),是否允许云服务器自动分配在一台可用的专属主机上。 取值范围:“on”或“off”。 默认值:“on”。
	AutoPlacement *ReqAllocateDehAutoPlacement `json:"auto_placement,omitempty"`

	// 专属主机所属AZ。
	AvailabilityZone string `json:"availability_zone"`

	// 专属主机类型。
	HostType string `json:"host_type"`

	// 待分配的专属主机数量。
	Quantity int32 `json:"quantity"`

	// 专属主机标签列表。
	Tags *[]ResourceTag `json:"tags,omitempty"`
}

ReqAllocateDeh 创建专属主机消息体。

func (ReqAllocateDeh) String

func (o ReqAllocateDeh) String() string

type ReqAllocateDehAutoPlacement

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

func (ReqAllocateDehAutoPlacement) MarshalJSON

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

func (*ReqAllocateDehAutoPlacement) UnmarshalJSON

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

func (ReqAllocateDehAutoPlacement) Value added in v0.0.90

type ReqAllocateDehAutoPlacementEnum

type ReqAllocateDehAutoPlacementEnum struct {
	OFF ReqAllocateDehAutoPlacement
	ON  ReqAllocateDehAutoPlacement
}

func GetReqAllocateDehAutoPlacementEnum

func GetReqAllocateDehAutoPlacementEnum() ReqAllocateDehAutoPlacementEnum

type ReqListDehByTags

type ReqListDehByTags struct {

	// 查询包含所有指定标签的专属主机结构体不能缺失。 1.最多包含10个key,每个key下面的value最多10个。 2.结构体不能缺失。 3.key不能为空或者空字符串。 4.key不能重复。 5.同一个key中value不能重复。
	Tags *[]Tag `json:"tags,omitempty"`

	// 查询不包含所有指定标签的专属主机。 1.最多包含10个key,每个key下面的value最多10个。 2.结构体不能缺失。 3.key不能为空或者空字符串。 4.key不能重复。 5.同一个key中value不能重复。
	NotTags *[]Tag `json:"not_tags,omitempty"`

	// 查询返回的专属主机数量限制,最多为1000,不能为负数。 1.如果action的值为count,此参数无效。 2.如果action的值为filter,limit默认为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 索引位置,从offset指定的下一条数据开始查询。必须为数字,不能为负数。 查询第一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数。 1.如果action的值为count,此参数无效。 2.如果action的值为filter,offset默认为0。
	Offset *int32 `json:"offset,omitempty"`

	// 操作标识,包括filter和count两种。 1.filter:表示按标签过滤专属主机,返回符合条件的专属主机列表。此时,为分页查询。 2.count:表示按标签搜索专属主机,返回符合条件的专属主机个数。
	Action ReqListDehByTagsAction `json:"action"`

	// 包含任意标签。 1.最多包含10个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失。 2.key不能重复,同一个key中value不能重复。 3.结果返回包含标签的资源列表,key之间是“或”的关系,key-value结构中value是“或”的关系。 4.无过滤条件时返回全量数据。
	TagsAny *[]Tag `json:"tags_any,omitempty"`

	// 不包含任意标签。 1.最多包含10个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失。 2.key不能重复,同一个key中value不能重复。 3.结果返回不包含标签的资源列表,key之间是“或”的关系,key-value结构中value是或的关系。 4.无过滤条件时返回全量数据。
	NotTagsAny *[]Tag `json:"not_tags_any,omitempty"`

	// 搜索字段,用于按条件搜索专属主机。  当前仅支持按resource_name进行搜索。
	Matches *[]Match `json:"matches,omitempty"`
}

ReqListDehByTags 按标签查询专属主机列表请求参数。

func (ReqListDehByTags) String

func (o ReqListDehByTags) String() string

type ReqListDehByTagsAction

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

func (ReqListDehByTagsAction) MarshalJSON

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

func (*ReqListDehByTagsAction) UnmarshalJSON

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

func (ReqListDehByTagsAction) Value added in v0.0.90

func (c ReqListDehByTagsAction) Value() string

type ReqListDehByTagsActionEnum

type ReqListDehByTagsActionEnum struct {
	FILTER ReqListDehByTagsAction
	COUNT  ReqListDehByTagsAction
}

func GetReqListDehByTagsActionEnum

func GetReqListDehByTagsActionEnum() ReqListDehByTagsActionEnum

type ReqSetOrDeleteTags

type ReqSetOrDeleteTags struct {

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

	// 操作标识(仅支持小写):create(创建),delete(删除)。
	Action ReqSetOrDeleteTagsAction `json:"action"`
}

ReqSetOrDeleteTags 批量添加的标签。

func (ReqSetOrDeleteTags) String

func (o ReqSetOrDeleteTags) String() string

type ReqSetOrDeleteTagsAction

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

func (ReqSetOrDeleteTagsAction) MarshalJSON

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

func (*ReqSetOrDeleteTagsAction) UnmarshalJSON

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

func (ReqSetOrDeleteTagsAction) Value added in v0.0.90

func (c ReqSetOrDeleteTagsAction) Value() string

type ReqSetOrDeleteTagsActionEnum

type ReqSetOrDeleteTagsActionEnum struct {
	CREATE ReqSetOrDeleteTagsAction
	DELETE ReqSetOrDeleteTagsAction
}

func GetReqSetOrDeleteTagsActionEnum

func GetReqSetOrDeleteTagsActionEnum() ReqSetOrDeleteTagsActionEnum

type ReqUpdateDeh

type ReqUpdateDeh struct {
	DedicatedHost *ReqUpdateDehMessage `json:"dedicated_host"`
}

ReqUpdateDeh 更新专属主机属性消息体。

func (ReqUpdateDeh) String

func (o ReqUpdateDeh) String() string

type ReqUpdateDehMessage

type ReqUpdateDehMessage struct {

	// 在创建云服务器时(未指定专属主机ID),是否允许云服务器自动分配在一台可用的专属主机上。  取值范围:“on”或“off”。
	AutoPlacement *ReqUpdateDehMessageAutoPlacement `json:"auto_placement,omitempty"`

	// 专属主机名称。
	Name *string `json:"name,omitempty"`
}

ReqUpdateDehMessage 更新专属主机属性消息体。

func (ReqUpdateDehMessage) String

func (o ReqUpdateDehMessage) String() string

type ReqUpdateDehMessageAutoPlacement

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

func (ReqUpdateDehMessageAutoPlacement) MarshalJSON

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

func (*ReqUpdateDehMessageAutoPlacement) UnmarshalJSON

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

func (ReqUpdateDehMessageAutoPlacement) Value added in v0.0.90

type ReqUpdateDehMessageAutoPlacementEnum

type ReqUpdateDehMessageAutoPlacementEnum struct {
	ON  ReqUpdateDehMessageAutoPlacement
	OFF ReqUpdateDehMessageAutoPlacement
}

func GetReqUpdateDehMessageAutoPlacementEnum

func GetReqUpdateDehMessageAutoPlacementEnum() ReqUpdateDehMessageAutoPlacementEnum

type ResourceTag

type ResourceTag struct {

	// 键。 长度不超过36个Unicode字符。 不能为空。 不能包含以下ASCII非打印字符:“=”,“*”,“<”,“>”,“\\”,“|”,“/”,“,”。
	Key string `json:"key"`

	// 值。 长度不超过43个Unicode字符。 不能包含以下ASCII非打印字符:“=”,“*”,“<”,“>”,“\\”,“|”,“/”,“,”。
	Value string `json:"value"`
}

ResourceTag 专属主机标签结构体

func (ResourceTag) String

func (o ResourceTag) String() string

type RespAddr

type RespAddr struct {

	// 云服务器的vpc ip。
	Addr string `json:"addr"`

	// 云服务器的vpc版本。
	Version int32 `json:"version"`

	// 扩展属性,分配IP地址方式。
	OSEXTIPStype *string `json:"OS-EXT-IPS:type,omitempty"`

	// 扩展属性,MAC地址。
	OSEXTIPSMACmacAddr *string `json:"OS-EXT-IPS-MAC:mac_addr,omitempty"`
}

RespAddr 云服务器的vpc信息。

func (RespAddr) String

func (o RespAddr) String() string

type RespDedicatedHost

type RespDedicatedHost struct {

	// 专属主机ID。
	DedicatedHostId string `json:"dedicated_host_id"`

	// 专属主机的名称。  长度限制在255个字符以内,并且不能以空格开头或结尾。
	Name string `json:"name"`

	// 在创建云服务器时(未指定专属主机ID),是否允许云服务器自动分配在一台可用的专属主机上。
	AutoPlacement RespDedicatedHostAutoPlacement `json:"auto_placement"`

	// 专属主机所属的可用区。
	AvailabilityZone string `json:"availability_zone"`

	// 专属主机所属的租户ID。
	ProjectId string `json:"project_id"`

	HostProperties *RespHostProperty `json:"host_properties"`

	// 专属主机状态。
	State RespDedicatedHostState `json:"state"`

	// 专属主机可用的vCPU核数。
	AvailableVcpus int32 `json:"available_vcpus"`

	// 专属主机可用的内存大小。
	AvailableMemory int32 `json:"available_memory"`

	// 专属主机的分配时间。
	AllocatedAt string `json:"allocated_at"`

	// 专属主机的释放时间。
	ReleasedAt string `json:"released_at"`

	// 专属主机上的实例总数。
	InstanceTotal int32 `json:"instance_total"`

	// 专属主机上的实例UUID。  查询专属主机列表接口不显示此参数。
	InstanceUuids []string `json:"instance_uuids"`

	// 专属主机标签。
	Tags *interface{} `json:"tags"`

	// 专属主机系统标签。
	SysTags *interface{} `json:"sys_tags"`
}

RespDedicatedHost 专属主机结构体。

func (RespDedicatedHost) String

func (o RespDedicatedHost) String() string

type RespDedicatedHostAutoPlacement

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

func (RespDedicatedHostAutoPlacement) MarshalJSON

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

func (*RespDedicatedHostAutoPlacement) UnmarshalJSON

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

func (RespDedicatedHostAutoPlacement) Value added in v0.0.90

type RespDedicatedHostAutoPlacementEnum

type RespDedicatedHostAutoPlacementEnum struct {
	ON  RespDedicatedHostAutoPlacement
	OFF RespDedicatedHostAutoPlacement
}

func GetRespDedicatedHostAutoPlacementEnum

func GetRespDedicatedHostAutoPlacementEnum() RespDedicatedHostAutoPlacementEnum

type RespDedicatedHostState

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

func (RespDedicatedHostState) MarshalJSON

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

func (*RespDedicatedHostState) UnmarshalJSON

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

func (RespDedicatedHostState) Value added in v0.0.90

func (c RespDedicatedHostState) Value() string

type RespDedicatedHostStateEnum

type RespDedicatedHostStateEnum struct {
	AVAILABLE RespDedicatedHostState
	RELEASED  RespDedicatedHostState
	FAULT     RespDedicatedHostState
}

func GetRespDedicatedHostStateEnum

func GetRespDedicatedHostStateEnum() RespDedicatedHostStateEnum

type RespDeh

type RespDeh struct {

	// 专属主机ID。
	ResourceId string `json:"resource_id"`

	// 专属主机详情。  该字段用于后续扩展,默认为空。
	ResouceDetail string `json:"resouce_detail"`

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

	// 资源名称。
	ResourceName string `json:"resource_name"`
}

RespDeh resource字段数据结构。

func (RespDeh) String

func (o RespDeh) String() string

type RespFlavor

type RespFlavor struct {

	// 弹性云服务器规格ID。
	Id string `json:"id"`
}

RespFlavor 弹性云服务器规格信息。

func (RespFlavor) String

func (o RespFlavor) String() string

type RespHostProperty

type RespHostProperty struct {

	// 专属主机类型。
	HostType string `json:"host_type"`

	// 专属主机类型的名称。
	HostTypeName string `json:"host_type_name"`

	// 专属主机的vCPUs个数。
	Vcpus int32 `json:"vcpus"`

	// 专属主机的物理核数。
	Cores int32 `json:"cores"`

	// 专属主机的物理套接字数量。
	Sockets int32 `json:"sockets"`

	// 专属主机的物理内存大小。
	Memory int32 `json:"memory"`

	// 专属主机上创建的云服务器规格。
	AvailableInstanceCapacities []RespInstanceCapacity `json:"available_instance_capacities"`
}

RespHostProperty 专属主机属性。

func (RespHostProperty) String

func (o RespHostProperty) String() string

type RespHostType

type RespHostType struct {

	// 专属主机类型。
	HostType string `json:"host_type"`

	// 专属主机类型名字。
	HostTypeName string `json:"host_type_name"`
}

RespHostType 可用的专属主机类型。

func (RespHostType) String

func (o RespHostType) String() string

type RespImage

type RespImage struct {

	// 弹性云服务器镜像ID。
	Id *string `json:"id,omitempty"`
}

RespImage 弹性云服务器镜像信息。

func (RespImage) String

func (o RespImage) String() string

type RespInstanceCapacity

type RespInstanceCapacity struct {

	// 支持创建的云服务器规格。
	Flavor string `json:"flavor"`
}

RespInstanceCapacity 专属主机上创建的云服务器规格。

func (RespInstanceCapacity) String

func (o RespInstanceCapacity) String() string

type RespMetadata

type RespMetadata struct {

	// 弹性云服务器系统类型。
	OsType *string `json:"os_type,omitempty"`
}

RespMetadata 弹性云服务器元数据。

func (RespMetadata) String

func (o RespMetadata) String() string

type RespQuotaSet

type RespQuotaSet struct {

	// 配额类别。
	Resource string `json:"resource"`

	// 配额最大限制。  “-1”表示资源配额不受限制。
	HardLimit int32 `json:"hard_limit"`

	// 已使用配额数量。
	Used int32 `json:"used"`
}

RespQuotaSet 专属主机的配额。

func (RespQuotaSet) String

func (o RespQuotaSet) String() string

type RespServer

type RespServer struct {

	// 弹性云服务器的网络属性。
	Addresses map[string][]RespAddr `json:"addresses"`

	// 弹性云服务器创建时间。
	Created string `json:"created"`

	Flavor *RespFlavor `json:"flavor"`

	// 弹性云服务器ID,格式为UUID。
	Id string `json:"id"`

	// 弹性云服务器名称。
	Name string `json:"name"`

	// 弹性云服务器状态。  取值范围:ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PASSWORD、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE
	Status string `json:"status"`

	// 弹性云服务器所属租户ID,格式为UUID。
	TenantId string `json:"tenant_id"`

	// 弹性云服务器更新时间。
	Updated string `json:"updated"`

	// 创建弹性云服务器的用户ID,格式为UUID。
	UserId string `json:"user_id"`

	// 弹性云服务器当前任务的状态。
	TaskState string `json:"task_state"`

	Image *RespImage `json:"image"`

	Metadata *RespMetadata `json:"metadata"`
}

RespServer server字段数据结构说明。

func (RespServer) String

func (o RespServer) String() string

type ShowDedicatedHostRequest

type ShowDedicatedHostRequest struct {

	// 专属主机ID。  可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。
	DedicatedHostId string `json:"dedicated_host_id"`
}

ShowDedicatedHostRequest Request Object

func (ShowDedicatedHostRequest) String

func (o ShowDedicatedHostRequest) String() string

type ShowDedicatedHostResponse

type ShowDedicatedHostResponse struct {
	DedicatedHost  *RespDedicatedHost `json:"dedicated_host,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ShowDedicatedHostResponse Response Object

func (ShowDedicatedHostResponse) String

func (o ShowDedicatedHostResponse) String() string

type ShowDedicatedHostTagsRequest

type ShowDedicatedHostTagsRequest struct {

	// 专属主机ID。  可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。
	DedicatedHostId string `json:"dedicated_host_id"`
}

ShowDedicatedHostTagsRequest Request Object

func (ShowDedicatedHostTagsRequest) String

type ShowDedicatedHostTagsResponse

type ShowDedicatedHostTagsResponse struct {

	// 专属主机标签列表。
	Tags           *[]ResourceTag `json:"tags,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowDedicatedHostTagsResponse Response Object

func (ShowDedicatedHostTagsResponse) String

type ShowQuotaSetsRequest

type ShowQuotaSetsRequest struct {

	// 租户ID。  可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。
	TenantId string `json:"tenant_id"`

	// 配额类别。
	Resource *string `json:"resource,omitempty"`
}

ShowQuotaSetsRequest Request Object

func (ShowQuotaSetsRequest) String

func (o ShowQuotaSetsRequest) String() string

type ShowQuotaSetsResponse

type ShowQuotaSetsResponse struct {

	// 专属主机的配额。
	QuotaSet       *[]RespQuotaSet `json:"quota_set,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowQuotaSetsResponse Response Object

func (ShowQuotaSetsResponse) String

func (o ShowQuotaSetsResponse) String() string

type Tag

type Tag struct {

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

	// 值列表。  最多10个value。  value不允许重复。  每个值最大长度255个unicode字符。  如果value缺失则表示any_value。  value之间为“或”的关系。
	Values *[]string `json:"values,omitempty"`
}

Tag tag字段数据结构。

func (Tag) String

func (o Tag) String() string

type UpdateDedicatedHostRequest

type UpdateDedicatedHostRequest struct {

	// 专属主机ID。  可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。
	DedicatedHostId string `json:"dedicated_host_id"`

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

UpdateDedicatedHostRequest Request Object

func (UpdateDedicatedHostRequest) String

type UpdateDedicatedHostResponse

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

UpdateDedicatedHostResponse Response Object

func (UpdateDedicatedHostResponse) String

Source Files

Jump to

Keyboard shortcuts

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