Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudEmr() *schema.Resource
- func DataSourceTencentCloudEmrAutoScaleRecords() *schema.Resource
- func DataSourceTencentCloudEmrCvmQuota() *schema.Resource
- func DataSourceTencentCloudEmrNodes() *schema.Resource
- func ParseMultiDisks(_multiDisks []map[string]interface{}) []*emr.MultiDisk
- func ParseResource(_resource map[string]interface{}) *emr.Resource
- func ParseTags(_tags []map[string]string) []*emr.Tag
- func ResourceTencentCloudEmrCluster() *schema.Resource
- func ResourceTencentCloudEmrUserManager() *schema.Resource
- type EMRService
- func (me *EMRService) CreateInstance(ctx context.Context, d *schema.ResourceData) (id string, err error)
- func (me *EMRService) DeleteEmrUserManagerById(ctx context.Context, instanceId string, userName string) (errRet error)
- func (me *EMRService) DeleteInstance(ctx context.Context, d *schema.ResourceData) error
- func (me *EMRService) DescribeClusterNodes(ctx context.Context, instanceId, nodeFlag, hardwareResourceType string, ...) (nodes []*emr.NodeHardwareInfo, errRet error)
- func (me *EMRService) DescribeEmrAutoScaleRecordsByFilter(ctx context.Context, param map[string]interface{}) (autoScaleRecords []*emr.AutoScaleRecord, errRet error)
- func (me *EMRService) DescribeEmrCvmQuotaByFilter(ctx context.Context, param map[string]interface{}) (cvmQuota *emr.DescribeCvmQuotaResponseParams, errRet error)
- func (me *EMRService) DescribeEmrUserManagerById(ctx context.Context, instanceId string, userName string) (userManager *emr.DescribeUsersForUserManagerResponseParams, errRet error)
- func (me *EMRService) DescribeInstances(ctx context.Context, filters map[string]interface{}) (clusters []*emr.ClusterInstancesInfo, errRet error)
- func (me *EMRService) DescribeInstancesById(ctx context.Context, instanceId string, displayStrategy string) (clusters []*emr.ClusterInstancesInfo, errRet error)
- func (me *EMRService) ModifyResourcesTags(ctx context.Context, region string, instanceId string, ...) error
- func (me *EMRService) UpdateInstance(ctx context.Context, request *emr.ScaleOutInstanceRequest) (id string, err error)
Constants ¶
View Source
const ( EmrInternetStatusCreated int64 = 2 EmrInternetStatusDeleted int64 = 201 )
View Source
const ( EMR_MASTER_WAN_TYPE_NEED_MASTER_WAN = "NEED_MASTER_WAN" EMR_MASTER_WAN_TYPE_NOT_NEED_MASTER_WAN = "NOT_NEED_MASTER_WAN" )
View Source
const (
DisplayStrategyIsclusterList = "clusterList"
)
Variables ¶
View Source
var EMR_MASTER_WAN_TYPES = []string{EMR_MASTER_WAN_TYPE_NEED_MASTER_WAN, EMR_MASTER_WAN_TYPE_NOT_NEED_MASTER_WAN}
Functions ¶
func ParseMultiDisks ¶
func ParseResource ¶
Types ¶
type EMRService ¶
type EMRService struct {
// contains filtered or unexported fields
}
func NewEMRService ¶
func NewEMRService(client *connectivity.TencentCloudClient) EMRService
func (*EMRService) CreateInstance ¶
func (me *EMRService) CreateInstance(ctx context.Context, d *schema.ResourceData) (id string, err error)
func (*EMRService) DeleteEmrUserManagerById ¶
func (*EMRService) DeleteInstance ¶
func (me *EMRService) DeleteInstance(ctx context.Context, d *schema.ResourceData) error
func (*EMRService) DescribeClusterNodes ¶
func (me *EMRService) DescribeClusterNodes(ctx context.Context, instanceId, nodeFlag, hardwareResourceType string, offset, limit int) (nodes []*emr.NodeHardwareInfo, errRet error)
func (*EMRService) DescribeEmrAutoScaleRecordsByFilter ¶
func (me *EMRService) DescribeEmrAutoScaleRecordsByFilter(ctx context.Context, param map[string]interface{}) (autoScaleRecords []*emr.AutoScaleRecord, errRet error)
func (*EMRService) DescribeEmrCvmQuotaByFilter ¶
func (me *EMRService) DescribeEmrCvmQuotaByFilter(ctx context.Context, param map[string]interface{}) (cvmQuota *emr.DescribeCvmQuotaResponseParams, errRet error)
func (*EMRService) DescribeEmrUserManagerById ¶
func (me *EMRService) DescribeEmrUserManagerById(ctx context.Context, instanceId string, userName string) (userManager *emr.DescribeUsersForUserManagerResponseParams, errRet error)
func (*EMRService) DescribeInstances ¶
func (me *EMRService) DescribeInstances(ctx context.Context, filters map[string]interface{}) (clusters []*emr.ClusterInstancesInfo, errRet error)
func (*EMRService) DescribeInstancesById ¶
func (me *EMRService) DescribeInstancesById(ctx context.Context, instanceId string, displayStrategy string) (clusters []*emr.ClusterInstancesInfo, errRet error)
func (*EMRService) ModifyResourcesTags ¶
func (*EMRService) UpdateInstance ¶
func (me *EMRService) UpdateInstance(ctx context.Context, request *emr.ScaleOutInstanceRequest) (id string, err error)
Click to show internal directories.
Click to hide internal directories.