code: func flattenClusterVMHostRuleInfo(d *schema.ResourceData, obj *types.ClusterVmHostRuleInfo) error {
  	return structure.SetBatch(d, map[string]interface{}{
  		"enabled":                       obj.Enabled,
  		"mandatory":                     obj.Mandatory,
  		"name":                          obj.Name,
  		"affinity_host_group_name":      obj.AffineHostGroupName,
  		"anti_affinity_host_group_name": obj.AntiAffineHostGroupName,
  		"vm_group_name":                 obj.VmGroupName,
  	})
  }
docs: // flattenClusterVMHostRuleInfo saves a ClusterVmHostRuleInfo into the supplied ResourceData.