def thin_clone(self, name, io_limit_policy=None, description=None): if self.is_cg_member: raise UnityCGMemberActionNotSupportError() if not self.is_thin_enabled: raise UnityThinCloneNotAllowedError() return TCHelper.thin_clone(self._cli, self, name, io_limit_policy, description)
def thin_clone(self, name, io_limit_policy=None, description=None): """Creates a new thin clone from this snapshot. .. note:: this snapshot should not enable Auto-Delete. """ if self.is_member_snap(): raise UnityCGMemberActionNotSupportError() if self.lun and not self.lun.is_thin_enabled: raise UnityThinCloneNotAllowedError() return TCHelper.thin_clone(self._cli, self, name, io_limit_policy, description)
def create_snap(self, name=None, description=None, is_auto_delete=None, retention_duration=None): if self.is_cg_member: raise UnityCGMemberActionNotSupportError() return UnitySnap.create(self._cli, self.storage_resource, name=name, description=description, is_auto_delete=is_auto_delete, retention_duration=retention_duration, is_read_only=None, fs_access_type=None)