private renderOciTreeContextMenus()

in gui/frontend/src/modules/db-editor/DocumentSideBar/DocumentSideBar.tsx [1175:1334]


    private renderOciTreeContextMenus(): ComponentChild {
        return (
            <>
                <Menu
                    id="ociProfileMenu"
                    ref={this.ociTypeToMenuRefMap.get(OciDmEntityType.ConfigurationProfile)}
                    placement={ComponentPlacement.BottomLeft}
                    onItemClick={this.handleOciContextMenuItemClick}
                >
                    <MenuItem command={{
                        title: "View Config Profile Information",
                        command: "msg.mds.getProfileInfo",
                    }} />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem command={{
                        title: "Set as New Default Config Profile",
                        command: "msg.mds.setDefaultProfile",
                    }} />
                </Menu>

                <Menu
                    id="ociCompartmentMenu"
                    ref={this.ociTypeToMenuRefMap.get(OciDmEntityType.Compartment)}
                    placement={ComponentPlacement.BottomLeft}
                    onItemClick={this.handleOciContextMenuItemClick}
                >
                    <MenuItem command={{
                        title: "View Compartment Information",
                        command: "msg.mds.getCompartmentInfo",
                    }} />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem command={{
                        title: "Set as Current Compartment",
                        command: "msg.mds.setCurrentCompartment",
                    }} />
                </Menu>

                <Menu
                    id="ociDbSystemMenu"
                    ref={this.ociTypeToMenuRefMap.get(OciDmEntityType.DbSystem)}
                    placement={ComponentPlacement.BottomLeft}
                    onItemClick={this.handleOciContextMenuItemClick}
                >
                    <MenuItem command={{
                        title: "View DB System Information",
                        command: "msg.mds.getDbSystemInfo",
                    }} />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem command={{
                        title: "Create Connection with Bastion Service",
                        command: "msg.mds.createConnectionViaBastionService",
                    }} />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{ title: "Start the DB System", command: "msg.mds.startDbSystem" }}
                        disabled
                    />
                    <MenuItem
                        command={{ title: "Restart the DB System", command: "msg.mds.restartDbSystem" }}
                        disabled
                    />
                    <MenuItem
                        command={{ title: "Stop the DB System", command: "msg.mds.stopDbSystem" }}
                        disabled
                    />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{ title: "Delete the DB System", command: "msg.mds.deleteDbSystem" }}
                        disabled
                    />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{
                            title: "Create MySQL Router Endpoint on new Compute Instance",
                            command: "msg.mds.createRouterEndpoint",
                        }}
                        disabled
                    />
                </Menu>

                <Menu
                    id="ociComputeInstanceMenu"
                    ref={this.ociTypeToMenuRefMap.get(OciDmEntityType.ComputeInstance)}
                    placement={ComponentPlacement.BottomLeft}
                    onItemClick={this.handleOciContextMenuItemClick}
                >
                    <MenuItem command={{
                        title: "View Compute Instance Information",
                        command: "msg.mds.getComputeInstance",
                    }} />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{ title: "Open SSH Bastion Session", command: "msg.mds.openBastionSshSession" }}
                        disabled
                    />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{ title: "Delete Compute Instance", command: "msg.mds.deleteComputeInstance" }}
                        disabled
                    />
                </Menu>

                <Menu
                    id="HeatWaveClusterMenu"
                    ref={this.ociTypeToMenuRefMap.get(OciDmEntityType.HeatWaveCluster)}
                    placement={ComponentPlacement.BottomLeft}
                    onItemClick={this.handleOciContextMenuItemClick}
                >
                    <MenuItem
                        command={{ title: "Start the HeatWave Cluster", command: "msg.mds.startHWCluster" }}
                        disabled
                    />
                    <MenuItem
                        command={{ title: "Stop the HeatWave Cluster", command: "msg.mds.stopHWCluster" }}
                        disabled
                    />
                    <MenuItem
                        command={{ title: "Restart the HeatWave Cluster", command: "msg.mds.restartHWCluster" }}
                        disabled
                    />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{ title: "Rescale the HeatWave Cluster", command: "msg.mds.rescaleHWCluster" }}
                        disabled
                    />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{ title: "Delete the HeatWave Cluster", command: "msg.mds.deleteHWCluster" }}
                        disabled
                    />
                </Menu>

                <Menu
                    id="ociBastionMenu"
                    ref={this.ociTypeToMenuRefMap.get(OciDmEntityType.Bastion)}
                    placement={ComponentPlacement.BottomLeft}
                    onItemClick={this.handleOciContextMenuItemClick}
                >
                    <MenuItem command={{
                        title: "Get Bastion Information",
                        command: "msg.mds.getBastion",
                    }} />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem command={{ title: "Set as Current Bastion", command: "msg.mds.setCurrentBastion" }} />
                    <MenuItem command={{ title: "-", command: "" }} disabled />
                    <MenuItem
                        command={{ title: "Delete Bastion", command: "msg.mds.deleteBastion" }}
                        disabled
                    />
                    <MenuItem
                        command={{
                            title: "Refresh When Bastion Reaches Active State",
                            command: "msg.mds.refreshOnBastionActiveState",
                        }}
                        disabled
                    />
                </Menu>
            </>
        );
    }