public AddEnvironmentStep4Model(RenderingEnvironment environment)
        {
            EnvironmentName    = environment.Name;
            RenderManager      = environment.RenderManager;
            JoinDomain         = environment.Domain?.JoinDomain ?? false;
            DomainName         = environment.Domain?.DomainName;
            DomainWorkerOuPath = environment.Domain?.DomainWorkerOuPath;
            DomainJoinUsername = environment.Domain?.DomainJoinUsername;
            DomainJoinPassword = environment.Domain?.DomainJoinPassword;

            switch (RenderManager)
            {
            case RenderManagerType.Deadline:
                DeadlineEnvironment = new DeadlineEnvironment
                {
                    WindowsDeadlineRepositoryShare = environment.RenderManagerConfig?.Deadline?.WindowsRepositoryPath,
                    RepositoryUser         = environment.RenderManagerConfig?.Deadline?.RepositoryUser,
                    RepositoryPassword     = environment.RenderManagerConfig?.Deadline?.RepositoryPassword,
                    InstallDeadlineClient  = environment.RenderManagerConfig?.Deadline?.LicenseServer != null,
                    DeadlineRegion         = environment.RenderManagerConfig?.Deadline?.DeadlineRegion,
                    ExcludeFromLimitGroups = environment.RenderManagerConfig?.Deadline?.ExcludeFromLimitGroups,
                    LicenseMode            = environment.RenderManagerConfig?.Deadline?.LicenseMode,
                    LicenseServer          = environment.RenderManagerConfig?.Deadline?.LicenseServer,
                    RunAsService           = environment.RenderManagerConfig?.Deadline?.RunAsService ?? false,
                    ServiceUser            = environment.RenderManagerConfig?.Deadline?.ServiceUser,
                    ServicePassword        = environment.RenderManagerConfig?.Deadline?.ServicePassword,
                };
                break;

            case RenderManagerType.Qube610:
            case RenderManagerType.Qube70:
                QubeEnvironment = new QubeEnvironment
                {
                    QubeSupervisor = environment.RenderManagerConfig?.Qube?.SupervisorIp,
                };
                break;

            case RenderManagerType.Tractor2:
                TractorEnvironment = new TractorEnvironment
                {
                    EngineIpOrHostnameAndPort = environment.RenderManagerConfig?.Tractor?.EngineIpOrHostnameAndPort
                };
                break;

            case RenderManagerType.OpenCue:
                OpenCueEnvironment = new OpenCueEnvironment
                {
                    CuebotHostnameOrIp = environment.RenderManagerConfig?.OpenCue?.CuebotHostnameOrIp,
                    Facility           = environment.RenderManagerConfig?.OpenCue?.Facility,
                };
                break;

            case RenderManagerType.BYOS:
                BYOSEnvironment = new BYOSEnvironment
                {
                    SchedulerHostnameOrIp = environment.RenderManagerConfig?.BYOS?.SchedulerHostnameOrIp,
                };
                break;
            }
        }
        public AddEnvironmentStep4Model(RenderingEnvironment environment)
        {
            EnvironmentName    = environment.Name;
            RenderManager      = environment.RenderManager;
            JoinDomain         = environment.Domain?.JoinDomain ?? false;
            DomainName         = environment.Domain?.DomainName;
            DomainWorkerOuPath = environment.Domain?.DomainWorkerOuPath;
            DomainJoinUsername = environment.Domain?.DomainJoinUsername;
            DomainJoinPassword = environment.Domain?.DomainJoinPassword;

            switch (RenderManager)
            {
            case RenderManagerType.Deadline:
                DeadlineEnvironment = new DeadlineEnvironment
                {
                    WindowsDeadlineRepositoryShare = environment.RenderManagerConfig?.Deadline?.WindowsRepositoryPath
                };
                break;

            case RenderManagerType.Qube610:
            case RenderManagerType.Qube70:
                QubeEnvironment = new QubeEnvironment
                {
                    QubeSupervisor = environment.RenderManagerConfig?.Qube?.SupervisorIp,
                };
                break;

            case RenderManagerType.Tractor:
                TractorEnvironment = new TractorEnvironment
                {
                    TractorSettings = environment.RenderManagerConfig?.Tractor?.TractorSettings
                };
                break;
            }
        }
Beispiel #3
0
        public AddEnvironmentStep4Model(RenderingEnvironment environment)
        {
            EnvironmentName    = environment.Name;
            RenderManager      = environment.RenderManager;
            JoinDomain         = environment.Domain?.JoinDomain ?? false;
            DomainName         = environment.Domain?.DomainName;
            DomainWorkerOuPath = environment.Domain?.DomainWorkerOuPath;
            DomainJoinUsername = environment.Domain?.DomainJoinUsername;
            DomainJoinPassword = environment.Domain?.DomainJoinPassword;

            switch (RenderManager)
            {
            case RenderManagerType.Deadline:
                DeadlineEnvironment = new DeadlineEnvironment
                {
                    WindowsDeadlineRepositoryShare = environment.RenderManagerConfig?.Deadline?.WindowsRepositoryPath,
                    RepositoryUser         = environment.RenderManagerConfig?.Deadline?.RepositoryUser,
                    RepositoryPassword     = environment.RenderManagerConfig?.Deadline?.RepositoryPassword,
                    InstallDeadlineClient  = environment.RenderManagerConfig?.Deadline?.LicenseServer != null,
                    DeadlineRegion         = environment.RenderManagerConfig?.Deadline?.DeadlineRegion,
                    ExcludeFromLimitGroups = environment.RenderManagerConfig?.Deadline?.ExcludeFromLimitGroups,
                    LicenseMode            = environment.RenderManagerConfig?.Deadline?.LicenseMode,
                    LicenseServer          = environment.RenderManagerConfig?.Deadline?.LicenseServer,
                    RunAsService           = environment.RenderManagerConfig?.Deadline?.RunAsService ?? false,
                    ServiceUser            = environment.RenderManagerConfig?.Deadline?.ServiceUser,
                    ServicePassword        = environment.RenderManagerConfig?.Deadline?.ServicePassword,
                };
                break;

            case RenderManagerType.Qube610:
            case RenderManagerType.Qube70:
                QubeEnvironment = new QubeEnvironment
                {
                    QubeSupervisor = environment.RenderManagerConfig?.Qube?.SupervisorIp,
                };
                break;

            case RenderManagerType.Tractor:
                TractorEnvironment = new TractorEnvironment
                {
                    TractorSettings = environment.RenderManagerConfig?.Tractor?.TractorSettings
                };
                break;
            }
        }