Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudCdhInstances() *schema.Resource
- func ResourceTencentCloudCdhInstance() *schema.Resource
- type CdhService
- func (me *CdhService) CreateCdhInstance(ctx context.Context, placement *cvm.Placement, ...) (hostId string, errRet error)
- func (me *CdhService) DescribeCdhInstanceByFilter(ctx context.Context, filters map[string]string) (instances []*cvm.HostItem, errRet error)
- func (me *CdhService) DescribeCdhInstanceById(ctx context.Context, hostId string) (instance *cvm.HostItem, errRet error)
- func (me *CdhService) ModifyHostName(ctx context.Context, hostId, hostName string) (errRet error)
- func (me *CdhService) ModifyPrepaidRenewFlag(ctx context.Context, hostId, renewFlag string) (errRet error)
- func (me *CdhService) ModifyProject(ctx context.Context, hostId string, projectId int) (errRet error)
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}
View Source
var CDH_PREPAID_RENEW_FLAG = []string{ CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_AUTO_RENEW, CDH_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW, CDH_PREPAID_RENEW_FLAG_DISABLE_NOTIFY_AND_MANUAL_RENEW, }
Functions ¶
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 (*CdhService) DescribeCdhInstanceById ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.