-- Copyright (c) Huawei Technologies Co., Ltd. 2026. All rights reserved.
--
-- this file licensed under the Mulan PSL v2.
-- You can use this software according to the terms and conditions of the Mulan PSL v2.
-- You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
--
-- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
-- PURPOSE.
-- See the Mulan PSL v2 for more details.
--
-- Author: auto generate
-- Create: 2026-2-12
-- Description: DO NOT EDIT; Code generated by "service.lua.mako"
local mdb = require 'mc.mdb'
local class = require 'mc.class'
local object_manage = require 'mc.mdb.object_manage'

local PCIeMockTypes = require 'debug.json_types.PCIeMock'
local PropertiesTypes = require 'mdb.bmc.kepler.Object.PropertiesInterface'

local PCIeMock = mdb.register_object('/bmc/kepler/Debug/PCIeMock', {
    {name = 'bmc.kepler.Debug.PCIeMock', interface = PCIeMockTypes.interface},
    {name = 'bmc.kepler.Object.Properties', interface = PropertiesTypes.interface}
})

function PCIeMock:ctor()
    self.path = '/bmc/kepler/Debug/PCIeMock'
end

local model = require 'debug.class.model'

local pcie_device_service = class()

pcie_device_service.package = 'pcie_device'

function pcie_device_service:CreatePCIeMock(prop_setting_cb)
    return object_manage.create_object('PCIeMock', 'PCIeMock_0', '/bmc/kepler/Debug/PCIeMock', prop_setting_cb)
end

function pcie_device_service:ImplPCIeMockPCIeMockGetConnectors(cb)
    model.ImplPCIeMockPCIeMockGetConnectors(cb)
end

function pcie_device_service:ImplPCIeMockPCIeMockLoadDevice(cb)
    model.ImplPCIeMockPCIeMockLoadDevice(cb)
end

function pcie_device_service:ImplPCIeMockPCIeMockUnloadDevice(cb)
    model.ImplPCIeMockPCIeMockUnloadDevice(cb)
end

function pcie_device_service:get_bus()
    return self.bus
end

function pcie_device_service:ctor(bus)
    self.bus = bus
    self.signal_slots = {}
    self.name = self.name or pcie_device_service.package

    model.init(self.bus)
    pcie_device_service.bus = self.bus
end

function pcie_device_service:init()
end

return pcie_device_service
