def __init__(self, *, parent=None, con=None, **kwargs):
if parent and con:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self.con = parent.con if parent else con<EOL>self._parent = parent if isinstance(parent, DriveItem) else None<EOL>protocol = parent.protocol if parent else kwargs.get('<STR_LIT>')<EOL>main_resource = kwargs.pop('<STR_LIT>', None) or (<EOL>getattr(parent, '<STR_LIT>', None) if parent else None)<EOL>resource_prefix = '<STR_LIT>'.format(<EOL>item_id=self._parent.object_id)<EOL>main_resource = '<STR_LIT>'.format(<EOL>main_resource or (protocol.default_resource if protocol else '<STR_LIT>'),<EOL>resource_prefix)<EOL>super().__init__(protocol=protocol, main_resource=main_resource)<EOL>cloud_data = kwargs.get(self._cloud_data_key, {})<EOL>self.driveitem_id = self._parent.object_id<EOL>self.object_id = cloud_data.get('<STR_LIT:id>', '<STR_LIT:1.0>')<EOL>self.name = self.object_id<EOL>modified = cloud_data.get(self._cc('<STR_LIT>'), None)<EOL>local_tz = self.protocol.timezone<EOL>self.modified = parse(modified).astimezone(<EOL>local_tz) if modified else None<EOL>self.size = cloud_data.get('<STR_LIT:size>', <NUM_LIT:0>)<EOL>modified_by = cloud_data.get(self._cc('<STR_LIT>'), {}).get('<STR_LIT:user>',<EOL>None)<EOL>self.modified_by = Contact(con=self.con, protocol=self.protocol, **{<EOL>self._cloud_data_key: modified_by}) if modified_by else None<EOL>
Version of DriveItem

        :param parent: parent for this operation
        :type parent: DriveItem
        :param Connection con: connection to use if no parent specified
        :param Protocol protocol: protocol to use if no parent specified
         (kwargs)
        :param str main_resource: use this resource instead of parent resource
         (kwargs)