Added deprecation message for use of parent in new type

Is the implementation of [issu 23305](https://projects.puppetlabs.com/issues/23305)