model

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 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 {
	DedicatedHostId string `json:"dedicated_host_id"`

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

Request Object

func (BatchCreateDedicatedHostTagsRequest) String

type BatchCreateDedicatedHostTagsResponse

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

Response Object

func (BatchCreateDedicatedHostTagsResponse) String

type BatchDeleteDedicatedHostTagsRequest

type BatchDeleteDedicatedHostTagsRequest struct {
	DedicatedHostId string `json:"dedicated_host_id"`

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

Request Object

func (BatchDeleteDedicatedHostTagsRequest) String

type BatchDeleteDedicatedHostTagsResponse

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

Response Object

func (BatchDeleteDedicatedHostTagsResponse) String

type CreateDedicatedHostRequest

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

Request Object

func (CreateDedicatedHostRequest) String

type CreateDedicatedHostResponse

type CreateDedicatedHostResponse struct {
	DedicatedHostIds *[]string `json:"dedicated_host_ids,omitempty"`
	HttpStatusCode   int       `json:"-"`
}

Response Object

func (CreateDedicatedHostResponse) String

type DeleteDedicatedHostRequest

type DeleteDedicatedHostRequest struct {
	DedicatedHostId string `json:"dedicated_host_id"`
}

Request Object

func (DeleteDedicatedHostRequest) String

type DeleteDedicatedHostResponse

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

Response Object

func (DeleteDedicatedHostResponse) String

type ListDedicatedHostTypesRequest

type ListDedicatedHostTypesRequest struct {
	AvailabilityZone string `json:"availability_zone"`
}

Request Object

func (ListDedicatedHostTypesRequest) String

type ListDedicatedHostTypesResponse

type ListDedicatedHostTypesResponse struct {
	DedicatedHostTypes *[]RespHostType `json:"dedicated_host_types,omitempty"`
	HttpStatusCode     int             `json:"-"`
}

Response Object

func (ListDedicatedHostTypesResponse) String

type ListDedicatedHostsByTagsRequest

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

Request Object

func (ListDedicatedHostsByTagsRequest) String

type ListDedicatedHostsByTagsResponse

type ListDedicatedHostsByTagsResponse struct {
	Resources *[]RespDeh `json:"resources,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDedicatedHostsByTagsResponse) String

type ListDedicatedHostsRequest

type ListDedicatedHostsRequest struct {
	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"`

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

	State *ListDedicatedHostsRequestState `json:"state,omitempty"`

	Tenant *string `json:"tenant,omitempty"`

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

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

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

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

	InstanceUuid *string `json:"instance_uuid,omitempty"`

	ReleasedAt *string `json:"released_at,omitempty"`

	ChangesSince *string `json:"changes-since,omitempty"`
}

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

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

Response Object

func (ListDedicatedHostsResponse) String

type ListServersDedicatedHostRequest

type ListServersDedicatedHostRequest struct {
	DedicatedHostId string `json:"dedicated_host_id"`

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

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

Request Object

func (ListServersDedicatedHostRequest) String

type ListServersDedicatedHostResponse

type ListServersDedicatedHostResponse struct {
	Servers        *[]RespServer `json:"servers,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListServersDedicatedHostResponse) String

type Match

type Match struct {
	Key MatchKey `json:"key"`

	Value string `json:"value"`
}

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

type MatchKeyEnum

type MatchKeyEnum struct {
	RESOURCE_NAME MatchKey
}

func GetMatchKeyEnum

func GetMatchKeyEnum() MatchKeyEnum

type ReqAllocateDeh

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

	AutoPlacement *ReqAllocateDehAutoPlacement `json:"auto_placement,omitempty"`

	AvailabilityZone string `json:"availability_zone"`

	HostType string `json:"host_type"`

	Quantity int32 `json:"quantity"`

	Tags *[]ResourceTag `json:"tags,omitempty"`
}

创建专属主机消息体。

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

type ReqAllocateDehAutoPlacementEnum

type ReqAllocateDehAutoPlacementEnum struct {
	OFF ReqAllocateDehAutoPlacement
	ON  ReqAllocateDehAutoPlacement
}

func GetReqAllocateDehAutoPlacementEnum

func GetReqAllocateDehAutoPlacementEnum() ReqAllocateDehAutoPlacementEnum

type ReqListDehByTags

type ReqListDehByTags struct {
	Tags *[]Tag `json:"tags,omitempty"`

	NotTags *[]Tag `json:"not_tags,omitempty"`

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

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

	Action ReqListDehByTagsAction `json:"action"`

	TagsAny *[]Tag `json:"tags_any,omitempty"`

	NotTagsAny *[]Tag `json:"not_tags_any,omitempty"`

	Matches *[]Match `json:"matches,omitempty"`
}

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

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

type ReqListDehByTagsActionEnum

type ReqListDehByTagsActionEnum struct {
	FILTER ReqListDehByTagsAction
	COUNT  ReqListDehByTagsAction
}

func GetReqListDehByTagsActionEnum

func GetReqListDehByTagsActionEnum() ReqListDehByTagsActionEnum

type ReqSetOrDeleteTags

type ReqSetOrDeleteTags struct {
	Tags []ResourceTag `json:"tags"`

	Action ReqSetOrDeleteTagsAction `json:"action"`
}

批量添加的标签。

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

type ReqSetOrDeleteTagsActionEnum

type ReqSetOrDeleteTagsActionEnum struct {
	CREATE ReqSetOrDeleteTagsAction
	DELETE ReqSetOrDeleteTagsAction
}

func GetReqSetOrDeleteTagsActionEnum

func GetReqSetOrDeleteTagsActionEnum() ReqSetOrDeleteTagsActionEnum

type ReqUpdateDeh

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

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

func (ReqUpdateDeh) String

func (o ReqUpdateDeh) String() string

type ReqUpdateDehMessage

type ReqUpdateDehMessage struct {
	AutoPlacement *ReqUpdateDehMessageAutoPlacement `json:"auto_placement,omitempty"`

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

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

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

type ReqUpdateDehMessageAutoPlacementEnum

type ReqUpdateDehMessageAutoPlacementEnum struct {
	ON  ReqUpdateDehMessageAutoPlacement
	OFF ReqUpdateDehMessageAutoPlacement
}

func GetReqUpdateDehMessageAutoPlacementEnum

func GetReqUpdateDehMessageAutoPlacementEnum() ReqUpdateDehMessageAutoPlacementEnum

type ResourceTag

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

	Value string `json:"value"`
}

专属主机标签结构体

func (ResourceTag) String

func (o ResourceTag) String() string

type RespAddr

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

	Version string `json:"version"`
}

云服务器的vpc信息。

func (RespAddr) String

func (o RespAddr) String() string

type RespAddresses

type RespAddresses struct {
	VpcId []RespAddr `json:"vpc_id"`
}

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

func (RespAddresses) String

func (o RespAddresses) String() string

type RespDedicatedHost

type RespDedicatedHost struct {
	DedicatedHostId string `json:"dedicated_host_id"`

	Name string `json:"name"`

	AutoPlacement RespDedicatedHostAutoPlacement `json:"auto_placement"`

	AvailabilityZone string `json:"availability_zone"`

	ProjectId string `json:"project_id"`

	HostProperties *RespHostProperty `json:"host_properties"`

	State RespDedicatedHostState `json:"state"`

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

	InstanceUuids []string `json:"instance_uuids"`

	Tags *interface{} `json:"tags"`

	SysTags *interface{} `json:"sys_tags"`
}

专属主机结构体。

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

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

type RespDedicatedHostStateEnum

type RespDedicatedHostStateEnum struct {
	AVAILABLE RespDedicatedHostState
	RELEASED  RespDedicatedHostState
	FAULT     RespDedicatedHostState
}

func GetRespDedicatedHostStateEnum

func GetRespDedicatedHostStateEnum() RespDedicatedHostStateEnum

type RespDeh

type RespDeh struct {
	ResourceId string `json:"resource_id"`

	ResouceDetail string `json:"resouce_detail"`

	Tags []ResourceTag `json:"tags"`

	ResourceName string `json:"resource_name"`
}

resource字段数据结构。

func (RespDeh) String

func (o RespDeh) String() string

type RespFlavor

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

弹性云服务器规格信息。

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 int32 `json:"vcpus"`

	Cores int32 `json:"cores"`

	Sockets int32 `json:"sockets"`

	Memory int32 `json:"memory"`

	AvailableInstanceCapacities []RespInstanceCapacity `json:"available_instance_capacities"`
}

专属主机属性。

func (RespHostProperty) String

func (o RespHostProperty) String() string

type RespHostType

type RespHostType struct {
	HostType string `json:"host_type"`

	HostTypeName string `json:"host_type_name"`
}

可用的专属主机类型。

func (RespHostType) String

func (o RespHostType) String() string

type RespImage

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

弹性云服务器镜像信息。

func (RespImage) String

func (o RespImage) String() string

type RespInstanceCapacity

type RespInstanceCapacity struct {
	Flavor string `json:"flavor"`
}

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

func (RespInstanceCapacity) String

func (o RespInstanceCapacity) String() string

type RespMetadata

type RespMetadata struct {
	OsType *string `json:"os_type,omitempty"`
}

弹性云服务器元数据。

func (RespMetadata) String

func (o RespMetadata) String() string

type RespQuotaSet

type RespQuotaSet struct {
	Resource string `json:"resource"`

	HardLimit int32 `json:"hard_limit"`

	Used int32 `json:"used"`
}

专属主机的配额。

func (RespQuotaSet) String

func (o RespQuotaSet) String() string

type RespServer

type RespServer struct {
	Addresses *RespAddresses `json:"addresses"`

	Created string `json:"created"`

	Flavor *RespFlavor `json:"flavor"`

	Id string `json:"id"`

	Name string `json:"name"`

	Status string `json:"status"`

	TenantId string `json:"tenant_id"`

	Updated string `json:"updated"`

	UserId string `json:"user_id"`

	TaskState string `json:"task_state"`

	Image *RespImage `json:"image"`

	Metadata *RespMetadata `json:"metadata"`
}

server字段数据结构说明。

func (RespServer) String

func (o RespServer) String() string

type ShowDedicatedHostRequest

type ShowDedicatedHostRequest struct {
	DedicatedHostId string `json:"dedicated_host_id"`
}

Request Object

func (ShowDedicatedHostRequest) String

func (o ShowDedicatedHostRequest) String() string

type ShowDedicatedHostResponse

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

Response Object

func (ShowDedicatedHostResponse) String

func (o ShowDedicatedHostResponse) String() string

type ShowDedicatedHostTagsRequest

type ShowDedicatedHostTagsRequest struct {
	DedicatedHostId string `json:"dedicated_host_id"`
}

Request Object

func (ShowDedicatedHostTagsRequest) String

type ShowDedicatedHostTagsResponse

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

Response Object

func (ShowDedicatedHostTagsResponse) String

type ShowQuotaSetsRequest

type ShowQuotaSetsRequest struct {
	TenantId string `json:"tenant_id"`

	Resource *string `json:"resource,omitempty"`
}

Request Object

func (ShowQuotaSetsRequest) String

func (o ShowQuotaSetsRequest) String() string

type ShowQuotaSetsResponse

type ShowQuotaSetsResponse struct {
	QuotaSet       *[]RespQuotaSet `json:"quota_set,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ShowQuotaSetsResponse) String

func (o ShowQuotaSetsResponse) String() string

type Tag

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

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

tag字段数据结构。

func (Tag) String

func (o Tag) String() string

type UpdateDedicatedHostRequest

type UpdateDedicatedHostRequest struct {
	DedicatedHostId string `json:"dedicated_host_id"`

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

Request Object

func (UpdateDedicatedHostRequest) String

type UpdateDedicatedHostResponse

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

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