There is a difference. An object in a data warehouse is identified by a combination of its Kind, its parent, and its identifier. ( link ). The identifier can be either a number or a string. The Key object contains both identifier and parent information. Therefore, when you call get (), there is only one argument - the Key object. When you call get_by_key_name, note that there are two arguments: one is key_name, one is parent.
So, the key is an object with several parts, while the key name is just a string. To make things more confusing, the Key object can be encoded as a string.
Peter Recore
source share