Ejemplo n.º 1
0
    def market_service_and_create_backup(tenant, service, version):
        """创建组件升级接口并创建备份"""
        from console.services.app_actions.app_deploy import MarketService

        market_service = MarketService(tenant, service, version)
        market_service.create_backup()
        return market_service
Ejemplo n.º 2
0
    def market_service_and_create_backup(tenant,
                                         service,
                                         version,
                                         all_component_one_model=None,
                                         component_change_info=None,
                                         app_version=None):
        """创建组件升级接口并创建备份"""
        from console.services.app_actions.app_deploy import MarketService

        market_service = MarketService(tenant, service, version, all_component_one_model, component_change_info, app_version)
        market_service.create_backup()
        return market_service