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>main_resource = kwargs.pop('<STR_LIT>', None) or (<EOL>getattr(parent, '<STR_LIT>', None) if parent else None)<EOL>super().__init__(<EOL>protocol=parent.protocol if parent else kwargs.get('<STR_LIT>'),<EOL>main_resource=main_resource)<EOL>cloud_data = kwargs.get(self._cloud_data_key, {})<EOL>self.name = cloud_data.get(self._cc('<STR_LIT:name>'), '<STR_LIT>')<EOL>self.calendar_id = cloud_data.get(self._cc('<STR_LIT:id>'), None)<EOL>self.__owner = self._recipient_from_cloud(<EOL>cloud_data.get(self._cc('<STR_LIT>'), {}), field='<STR_LIT>')<EOL>color = cloud_data.get(self._cc('<STR_LIT>'), '<STR_LIT>')<EOL>try:<EOL><INDENT>self.color = CalendarColor.from_value(color)<EOL><DEDENT>except:<EOL><INDENT>self.color = CalendarColor.from_value('<STR_LIT>')<EOL><DEDENT>self.can_edit = cloud_data.get(self._cc('<STR_LIT>'), False)<EOL>self.can_share = cloud_data.get(self._cc('<STR_LIT>'), False)<EOL>self.can_view_private_items = cloud_data.get(<EOL>self._cc('<STR_LIT>'), False)<EOL>
Create a Calendar Representation

        :param parent: parent for this operation
        :type parent: Schedule
        :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)