Versions in this module Expand all Collapse all v0 v0.9.7 Mar 18, 2020 Changes in this version + const DefaultEndpoint + type Billing struct + PaymentTiming string + Reservation Reservation + type BindTagArgs struct + ChangeTags []TagModel + type Client struct + func NewClient(ak, sk, endPoint string) (ret *Client, err error) + func (c *Client) BindTag(dccID string, args *BindTagArgs) (err error) + func (c *Client) BindTagforInstance(instanceID string, args *BindTagArgs) error + func (c *Client) Create(args *CreateArgs) (ret *CreateResult, err error) + func (c *Client) CreateInstance(args *CreateInstanceArgs) (ret *CreateInstanceResult, err error) + func (c *Client) GetDedicatedHostDetail(hostID string) (ret *GetDedicatedHostDetailResult, err error) + func (c *Client) ListDedicatedHosts(args *ListDedicatedHostArgs) (list *ListDedicatedHostResult, err error) + func (c *Client) ModityInstance(instanceID string, args *ModityInstanceArgs) (err error) + func (c *Client) PurchaseReserved(hostID string, args *PurchaseReservedArgs) (err error) + func (c *Client) UnbindTag(dccID string, args *BindTagArgs) (err error) + func (c *Client) UnbindTagforInstance(instanceID string, args *BindTagArgs) error + type CreateArgs struct + Billing Billing + ClientToken string + FlavorName string + Name string + PurchaseCount int + VCPU int + Version string + ZoneName string + type CreateInstanceArgs struct + AdminPass string + Billing Billing + CPUCount int + CardCount string + ClientToken string + CreateCdsList []bcc.CreateCdsModel + DedicatedHostID string + EphemeralDisks []EphemeralDisk + FpgaCard string + GpuCard string + ImageID string + InstanceType string + InternetChargeType string + LocalDiskSizeInGB int + MemoryCapacityInGB int + Name string + NetworkCapacityInMbps int + PurchaseCount int + RootDiskSizeInGb int + RootDiskStorageType string + SecurityGroupID string + SubnetID string + ZoneName string + type CreateInstanceResult struct + InstanceIds []string + type CreateResult struct + DedicatedHostIds []string + type DedicatedHostModel struct + CreateTime string + Desc string + ExpireTime string + FlavorName string + ID string + Name string + PaymentTiming string + ResourceUsage ResourceUsage + Status DedicatedHostStatus + Tags []TagModel + ZoneName string + type DedicatedHostStatus string + const DedicatedHostStatusError + const DedicatedHostStatusExpired + const DedicatedHostStatusRunning + const DedicatedHostStatusStarting + type EphemeralDisk struct + FreeSizeInGB int + SizeInGB int + StorageType StorageType + type GetDedicatedHostDetailResult struct + DedicatedHost DedicatedHostModel + type ListDedicatedHostArgs struct + Marker string + MaxKeys int + ZoneName string + type ListDedicatedHostResult struct + DedicatedHosts []*DedicatedHostModel + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + type ModityInstanceArgs struct + Name string + type PurchaseReservedArgs struct + Billing Billing + ClientToken string + type Reservation struct + Length int + TimeUnit string + type ResourceUsage struct + CPUCount int + EphemeralDisks []EphemeralDisk + FreeCPUCount int + FreeMemoryCapacityInGB int + MemoryCapacityInGB int + type StorageType string + const StorageTypeSSD + const StorageTypeSata + type TagModel struct + TagKey string + TagValue string