1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3# Copyright (c) 2024 Huawei Device Co., Ltd. 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16import enum 17 18 19class Output: 20 platform = '' 21 file_path = '' 22 old_is_exist = '' 23 new_is_exist = '' 24 25 def __init__(self, platform, file_path, old_is_exist, new_is_exist): 26 self.platform = platform 27 self.file_path = file_path 28 self.old_is_exist = old_is_exist 29 self.new_is_exist = new_is_exist 30 31 32class DoesItExist(enum.Enum): 33 EXIST = 'TRUE' 34 ABSENT = 'FALSE' 35 36 37