These docs are for an old release. Info on upgrading to v6

Resource::setProp

Modifies any of the properties of a Resource Object.

resource.setProp( name, value )

To modify any of the extendedProps, use setExtendedProp.