public virtual async Task AddIoTInfrastructure(DevOpsArchitectClient devOpsArch, string entApiKey, string username) { var resp = await devOpsArch.SetEnvironmentInfrastructure(new Personas.DevOps.SetEnvironmentInfrastructureRequest() { Template = "fathym\\daf-iot-setup" }, entApiKey, State.EnvironmentLookup, username); }
public ForgeInfrastructureStateHarness(HttpRequest req, ILogger logger, ForgeInfrastructureState state) : base(req, logger, state) { devOpsArch = req.ResolveClient <DevOpsArchitectClient>(logger); entMgr = req.ResolveClient <EnterpriseManagerClient>(logger); secMgr = req.ResolveClient <SecurityManagerClient>(logger); }
public NapkinIDESetupStateHarness(HttpRequest req, ILogger logger, NapkinIDESetupState state) : base(req, logger, state) { devOpsArch = req.ResolveClient <DevOpsArchitectClient>(logger); entArch = req.ResolveClient <EnterpriseArchitectClient>(logger); entMgr = req.ResolveClient <EnterpriseManagerClient>(logger); idMgr = req.ResolveClient <IdentityManagerClient>(logger); }
public BootOrganizationOrchestration(ApplicationDeveloperClient appDev, DevOpsArchitectClient devOpsArch, EnterpriseArchitectClient entArch, EnterpriseManagerClient entMgr) { this.appDev = appDev; this.devOpsArch = devOpsArch; this.entArch = entArch; this.entMgr = entMgr; }
public virtual async Task AddIoTInfrastructure(DevOpsArchitectClient devOpsArch, string entLookup, string username) { // TODO: Handle the fact that we don't have ProjectID var resp = await devOpsArch.SetEnvironmentInfrastructure(new Personas.DevOps.SetEnvironmentInfrastructureRequest() { Template = "fathym\\daf-iot-setup", EnvironmentLookup = State.EnvironmentLookup, ProjectID = null, Username = username }, entLookup); }
public DataFlowManagerStateHarness(HttpRequest req, ILogger logger, DataFlowManagerState state) : base(req, logger, state) { appMgr = req.ResolveClient <ApplicationManagerClient>(logger); devOpsArch = req.ResolveClient <DevOpsArchitectClient>(logger); entArch = req.ResolveClient <EnterpriseArchitectClient>(logger); entMgr = req.ResolveClient <EnterpriseManagerClient>(logger); idMgr = req.ResolveClient <IdentityManagerClient>(logger); }
public virtual async Task <Status> BootTaskLibrary(DevOpsArchitectClient devOpsArch, string parentEntApiKey, string username) { if (!State.NewEnterpriseAPIKey.IsNullOrEmpty() && !State.EnvironmentLookup.IsNullOrEmpty()) { var resp = await devOpsArch.EnsureTaskTlibrary(State.NewEnterpriseAPIKey, username, State.EnvironmentLookup, devOpsEntApiKey : parentEntApiKey); return(resp.Status); } else { return(Status.GeneralError.Clone("Boot not properly configured.")); } }
public virtual async Task <Status> BootLCUFeeds(DevOpsArchitectClient devOpsArch, string parentEntApiKey, string username) { if (!State.NewEnterpriseAPIKey.IsNullOrEmpty() && !State.EnvironmentLookup.IsNullOrEmpty()) { var resp = await devOpsArch.EnsureLCUFeed(new Personas.DevOps.EnsureLCUFeedRequest() { EnvironmentLookup = State.EnvironmentLookup }, State.NewEnterpriseAPIKey, username, devOpsEntApiKey : parentEntApiKey); return(resp.Status); } else { return(Status.GeneralError.Clone("Boot not properly configured.")); } }
public virtual async Task <Status> BootDAFInfrastructure(DevOpsArchitectClient devOpsArch, string parentEntApiKey, string username) { if (!State.NewEnterpriseAPIKey.IsNullOrEmpty() && !State.EnvironmentLookup.IsNullOrEmpty()) { var resp = await devOpsArch.SetEnvironmentInfrastructure(new Personas.DevOps.SetEnvironmentInfrastructureRequest() { Template = State.Template }, State.NewEnterpriseAPIKey, State.EnvironmentLookup, username, devOpsEntApiKey : parentEntApiKey); return(resp.Status); } else { return(Status.GeneralError.Clone("Boot not properly configured.")); } }
public virtual async Task <Status> BootOrganizationEnvironment(EnterpriseArchitectClient entArch, EnterpriseManagerClient entMgr, DevOpsArchitectClient devOpsArch, string parentEntApiKey, string username) { var status = Status.Success; if (State.NewEnterpriseAPIKey.IsNullOrEmpty()) { var entRes = await entArch.CreateEnterprise(new CreateEnterpriseRequest() { Description = State.OrganizationDescription ?? State.OrganizationName, Host = State.Host, Name = State.OrganizationName }, parentEntApiKey, username); State.NewEnterpriseAPIKey = entRes.Model?.PrimaryAPIKey; status = entRes.Status; } if (status && !State.NewEnterpriseAPIKey.IsNullOrEmpty() && State.EnvironmentLookup.IsNullOrEmpty()) { var envResp = await devOpsArch.EnsureEnvironment(new Personas.DevOps.EnsureEnvironmentRequest() { EnvSettings = State.EnvSettings, OrganizationLookup = State.OrganizationLookup, }, State.NewEnterpriseAPIKey); State.EnvironmentLookup = envResp.Model?.Lookup; status = envResp.Status; } else if (!State.NewEnterpriseAPIKey.IsNullOrEmpty() && !State.EnvironmentLookup.IsNullOrEmpty()) { await entMgr.SaveEnvironmentSettings(State.EnvSettings, State.NewEnterpriseAPIKey, State.EnvironmentLookup); } UpdateStatus(status); return(status); }
public AddIoTInfrastructure(DevOpsArchitectClient devOpsArch) { this.devOpsArch = devOpsArch; }