cdh

package
v1.81.139 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CDH_CHARGE_TYPE_PREPAID = "PREPAID"

	CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_AUTO_RENEW           = "NOTIFY_AND_AUTO_RENEW"
	CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW         = "NOTIFY_AND_MANUAL_RENEW"
	CDH_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW = "DISABLE_NOTIFY_AND_MANUAL_RENEW"

	CDH_HOST_STATE_PENDING        = "PENDING"
	CDH_HOST_STATE_LAUNCH_FAILURE = "LAUNCH_FAILURE"
	CDH_HOST_RUNNING              = "RUNNING"
	CDH_HOST_EXPIRED              = "EXPIRED"

	CDH_ZONE_SOLD_OUT_FOR_SPECIFIED_INSTANCE_ERROR = "ResourceInsufficient.ZoneSoldOutForSpecifiedInstance"
)

Variables

View Source
var CDH_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}

Functions

func DataSourceTencentCloudCdhInstances

func DataSourceTencentCloudCdhInstances() *schema.Resource

func ResourceTencentCloudCdhInstance

func ResourceTencentCloudCdhInstance() *schema.Resource

Types

type CdhService

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

func NewCdhService

func NewCdhService(client *connectivity.TencentCloudClient) CdhService

func (*CdhService) CreateCdhInstance

func (me *CdhService) CreateCdhInstance(ctx context.Context, placement *cvm.Placement, hostChargePrepaid *cvm.ChargePrepaid, hostChargeType, hostType string) (hostId string, errRet error)

func (*CdhService) DescribeCdhInstanceByFilter

func (me *CdhService) DescribeCdhInstanceByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.HostItem, errRet error)

func (*CdhService) DescribeCdhInstanceById

func (me *CdhService) DescribeCdhInstanceById(ctx context.Context, hostId string) (instance *cvm.HostItem, errRet error)

func (*CdhService) ModifyHostName

func (me *CdhService) ModifyHostName(ctx context.Context, hostId, hostName string) (errRet error)

func (*CdhService) ModifyPrepaidRenewFlag

func (me *CdhService) ModifyPrepaidRenewFlag(ctx context.Context, hostId, renewFlag string) (errRet error)

func (*CdhService) ModifyProject

func (me *CdhService) ModifyProject(ctx context.Context, hostId string, projectId int) (errRet error)

Jump to

Keyboard shortcuts

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