func resourceVSphereComputeClusterVMDependencyRuleParseID(id string) (string, int32, error) {
	parts := strings.SplitN(id, ":", 3)
	if len(parts) < 2 {
		return "", 0, fmt.Errorf("bad ID %q", id)
	}

	key, err := strconv.Atoi(parts[1])
	if err != nil {
		return "", 0, fmt.Errorf("bad key in ID %q: %s", parts[1], err)
	}

	return parts[0], int32(key), nil
}
func resourceVSphereComputeClusterVMDependencyRuleParseID(id string) (string, int32, error) {
	parts := strings.SplitN(id, ":", 3)
	if len(parts) < 2 {
		return "", 0, fmt.Errorf("bad ID %q", id)
	}

	key, err := strconv.Atoi(parts[1])
	if err != nil {
		return "", 0, fmt.Errorf("bad key in ID %q: %s", parts[1], err)
	}

	return parts[0], int32(key), nil
}
func resourceVSphereComputeClusterVMDependencyRuleParseID ( id string ) ( string , int32 , error ) { parts := strings . SplitN ( id , " " , 3 ) if len ( parts ) < 2 { return " " , 0 , fmt . Errorf ( " " , id ) } key , err := strconv . Atoi ( parts [ 1 ] ) if err != nil { return " " , 0 , fmt . Errorf ( " " , parts [ 1 ] , err ) } return parts [ 0 ] , int32 ( key ) , nil }
// resourceVSphereComputeClusterVMDependencyRuleParseID parses an ID for the
// vsphere_compute_cluster_vm_dependency_rule and outputs its parts.
resourceVSphereComputeClusterVMDependencyRuleParseID parses an ID for the vsphere_compute_cluster_vm_dependency_rule and outputs its parts .