Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

feat/app-deployment-plugin (#390)

Athulb3afbccf9535
diff --git a/backend/backend/urls.py b/backend/backend/urls.py
index 725a8f7b6..9a4f70bc5 100644
--- a/backend/backend/urls.py
+++ b/backend/backend/urls.py
@@ -30,6 +30,7 @@ urlpatterns = [
path("", include("tool_instance.urls")),
path("", include("pipeline.urls")),
path("", include("apps.urls")),
+ path("", include("feature_flag.urls")),
path("workflow/", include("workflow_manager.urls")),
path("platform/", include("platform_settings.urls")),
path("api/", include("api.urls")),
diff --git a/backend/feature_flag/urls.py b/backend/feature_flag/urls.py
index c90426d1e..3952e27f9 100644
--- a/backend/feature_flag/urls.py
+++ b/backend/feature_flag/urls.py
@@ -3,9 +3,20 @@
This module defines the URL patterns for the feature_flags app.
"""
-import feature_flag.views as views
from django.urls import path
+from feature_flag.views import FeatureFlagViewSet
+from rest_framework.urlpatterns import format_suffix_patterns
-urlpatterns = [
- path("evaluate/", views.evaluate_feature_flag, name="evaluate_feature_flag"),
-]
+feature_flags_list = FeatureFlagViewSet.as_view(
+ {
+ "post": "evaluate",
+ "get": "list",
+ }
+)
+
+urlpatterns = format_suffix_patterns(
+ [
+ path("evaluate/", feature_flags_list, name="evaluate_feature_flag"),
+ path("flags/", feature_flags_list, name="list_feature_flags"),
+ ]
+)
diff --git a/backend/feature_flag/views.py b/backend/feature_flag/views.py
index 6e155f5e3..ab318c112 100644
--- a/backend/feature_flag/views.py
+++ b/backend/feature_flag/views.py
@@ -6,52 +6,43 @@ Returns:
import logging
-from rest_framework import status
-from rest_framework.decorators import api_view
-from rest_framework.request import Request
+from rest_framework import status, viewsets
from rest_framework.response import Response
-
-from unstract.flags.client import EvaluationClient
+from utils.request.feature_flag import check_feature_flag_status, list_all_flags
logger = logging.getLogger(__name__)
-@api_view(["POST"])
-def evaluate_feature_flag(request: Request) -> Response:
- """Function to evaluate the feature flag.
-
- To-Do: Refactor to a class based view, use serializers (DRF).
+class FeatureFlagViewSet(viewsets.ViewSet):
+ """A simple ViewSet for evaluating feature flag."""
- Args:
- request: request object
+ def evaluate(self, request):
+ try:
+ flag_key = request.data.get("flag_key")
- Returns:
- evaluate response
- """
- try:
- namespace_key = request.data.get("namespace_key")
- flag_key = request.data.get("flag_key")
- entity_id = request.data.get("entity_id")
- context = request.data.get("context")
+ if not flag_key:
+ return Response(
+ {"message": "Request parameters are missing."},
+ status=status.HTTP_400_BAD_REQUEST,
+ )
- if not namespace_key or not flag_key or not entity_id:
+ flag_enabled = check_feature_flag_status(flag_key)
+ return Response({"flag_status": flag_enabled}, status=status.HTTP_200_OK)
+ except Exception as e:
+ logger.error("No response from server: %s", e)
return Response(
- {"message": "Request paramteres are missing."},
- status=status.HTTP_400_BAD_REQUEST,
+ {"message": "No response from server"},
+ status=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
- evaluation_client = EvaluationClient()
- response = evaluation_client.boolean_evaluate_feature_flag(
- namespace_key=namespace_key,
- flag_key=flag_key,
- entity_id=entity_id,
- context=context,
- )
-
- return Response({"enabled": response}, status=status.HTTP_200_OK)
- except Exception as e:
- logger.error("No response from server: %s", e)
- return Response(
- {"message": "No response from server"},
- status=status.HTTP_500_INTERNAL_SERVER_ERROR,
- )
+ def list(self, request):
+ try:
+ namespace_key = request.query_params.get("namespace", "default")
+ feature_flags = list_all_flags(namespace_key)
+ return Response({"feature_flags": feature_flags}, status=status.HTTP_200_OK)
+ except Exception as e:
+ logger.error("No response from server: %s", e)
+ return Response(
+ {"message": "No response from server"},
+ status=status.HTTP_500_INTERNAL_SERVER_ERROR,
+ )
diff --git a/backend/utils/request/feature_flag.py b/backend/utils/request/feature_flag.py
index a62d5a790..d258b377e 100644
--- a/backend/utils/request/feature_flag.py
+++ b/backend/utils/request/feature_flag.py
@@ -2,7 +2,8 @@
from typing import Optional
-from unstract.flags.client import EvaluationClient
+from unstract.flags.client.evaluation import EvaluationClient
+from unstract.flags.client.flipt import FliptClient
def check_feature_flag_status(
@@ -38,3 +39,17 @@ def check_feature_flag_status(
except Exception as e:
print(f"Error: {str(e)}")
return False
+
+
+def list_all_flags(
+ namespace_key: str,
+) -> dict:
+ try:
+ flipt_client = FliptClient()
+ response = flipt_client.list_feature_flags(
+ namespace_key=namespace_key,
+ )
+ return response
+ except Exception as e:
+ print(f"Error: {str(e)}")
+ return {}
diff --git a/frontend/src/assets/index.js b/frontend/src/assets/index.js
index eb10ae3fc..5115b0663 100644
--- a/frontend/src/assets/index.js
+++ b/frontend/src/assets/index.js
@@ -31,6 +31,7 @@ import { ReactComponent as OrgSelection } from "./org-selection.svg";
import { ReactComponent as RedGradCircle } from "./red-grad-circle.svg";
import { ReactComponent as YellowGradCircle } from "./yellow-grad-circle.svg";
import { ReactComponent as ExportToolIcon } from "./export-tool.svg";
+import { ReactComponent as PlaceholderImg } from "./placeholder.svg";
export {
SunIcon,
@@ -66,4 +67,5 @@ export {
RedGradCircle,
YellowGradCircle,
ExportToolIcon,
+ PlaceholderImg,
};
diff --git a/frontend/src/assets/placeholder.svg b/frontend/src/assets/placeholder.svg
new file mode 100644
index 000000000..fc76cc7a7
--- /dev/null
+++ b/frontend/src/assets/placeholder.svg
@@ -0,0 +1,20 @@
+<svg width="140" height="103" viewBox="0 0 140 103" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M105 100.7L20.0003 100.7C9.12033 100.7 0.300361 91.88 0.30036 81L0.300356 15.0429L124.7 15.0429L124.7 81C124.7 91.88 115.88 100.7 105 100.7Z" fill="white" stroke="#D2DBE2" stroke-width="0.6"/>
+<path d="M16.0818 0.3L108.918 0.3C117.534 0.3 124.537 7.20421 124.697 15.7818L0.302794 15.7818C0.462709 7.20421 7.46598 0.3 16.0818 0.3Z" fill="#EBF2F9" stroke="#D2DBE2" stroke-width="0.6"/>
+<circle cx="10.9645" cy="8.04088" r="1.89298" fill="#EBF2F9" stroke="#D2DBE2" stroke-width="0.6"/>
+<circle cx="18.275" cy="8.04088" r="1.89298" fill="#EBF2F9" stroke="#D2DBE2" stroke-width="0.6"/>
+<circle cx="25.5846" cy="8.04088" r="1.89298" fill="#EBF2F9" stroke="#D2DBE2" stroke-width="0.6"/>
+<path d="M75.0977 78.5H49.9023C48.0945 78.5 46.623 77.0285 46.623 75.2207V39.7793C46.623 37.9715 48.0945 36.5 49.9023 36.5H65.7793V44.8184C65.7793 47.1785 67.6985 49.0977 70.0586 49.0977H78.377V75.2207C78.377 77.0285 76.9055 78.5 75.0977 78.5ZM70.0586 53.2207H54.9414C53.9689 53.2207 53.1816 54.008 53.1816 54.9805C53.1816 55.9529 53.9689 56.7402 54.9414 56.7402H70.0586C71.031 56.7402 71.8184 55.9529 71.8184 54.9805C71.8184 54.008 71.031 53.2207 70.0586 53.2207ZM70.0586 58.2598H54.9414C53.9689 58.2598 53.1816 59.0471 53.1816 60.0195C53.1816 60.992 53.9689 61.7793 54.9414 61.7793H70.0586C71.031 61.7793 71.8184 60.992 71.8184 60.0195C71.8184 59.0471 71.031 58.2598 70.0586 58.2598ZM70.0586 63.2988H54.9414C53.9689 63.2988 53.1816 64.0861 53.1816 65.0586C53.1816 66.031 53.9689 66.8184 54.9414 66.8184H70.0586C71.031 66.8184 71.8184 66.031 71.8184 65.0586C71.8184 64.0861 71.031 63.2988 70.0586 63.2988ZM65.0195 68.3379H54.9414C53.9689 68.3379 53.1816 69.1252 53.1816 70.0977C53.1816 71.0701 53.9689 71.8574 54.9414 71.8574H65.0195C65.992 71.8574 66.7793 71.0701 66.7793 70.0977C66.7793 69.1252 65.992 68.3379 65.0195 68.3379Z" fill="#EBF2F9" stroke="#D2DBE2"/>
+<path d="M76.9317 45.578H70.0586C69.6397 45.578 69.2988 45.2372 69.2988 44.8183V37.9451L76.9317 45.578Z" fill="#EBF2F9" stroke="#D2DBE2"/>
+<g clip-path="url(#clip0_2940_2764)">
+<path d="M125.239 73C117.387 73 111 79.6294 111 87.7788C111 95.9281 117.387 102.558 125.239 102.558C133.091 102.558 139.478 95.9281 139.478 87.7788C139.478 79.6294 133.091 73 125.239 73Z" fill="#EBF2F9"/>
+<path d="M125.239 102.558C117.387 102.558 111 95.9281 111 87.7788C111 79.6294 117.387 73 125.239 73C133.091 73 139.478 79.6294 139.478 87.7788C139.478 95.9281 133.091 102.558 125.239 102.558ZM125.239 74.8473C118.369 74.8473 112.78 80.648 112.78 87.7788C112.78 94.9095 118.369 100.71 125.239 100.71C132.109 100.71 137.698 94.9095 137.698 87.7788C137.698 80.648 132.109 74.8473 125.239 74.8473Z" fill="#D2DBE2"/>
+<path d="M131.468 88.7026H119.009C118.518 88.7026 118.119 88.2888 118.119 87.7789C118.119 87.269 118.518 86.8552 119.009 86.8552H131.468C131.96 86.8552 132.358 87.269 132.358 87.7789C132.358 88.2888 131.96 88.7026 131.468 88.7026Z" fill="#D2DBE2"/>
+<path d="M125.24 95.1682C124.748 95.1682 124.35 94.7544 124.35 94.2445V81.3131C124.35 80.8032 124.748 80.3894 125.24 80.3894C125.731 80.3894 126.13 80.8032 126.13 81.3131V94.2445C126.13 94.7544 125.731 95.1682 125.24 95.1682Z" fill="#D2DBE2"/>
+</g>
+<defs>
+<clipPath id="clip0_2940_2764">
+<rect width="28.4783" height="29.5576" fill="white" transform="translate(111 73)"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/frontend/src/components/navigations/side-nav-bar/SideNavBar.jsx b/frontend/src/components/navigations/side-nav-bar/SideNavBar.jsx
index 9c1add0ce..2e881a32b 100644
--- a/frontend/src/components/navigations/side-nav-bar/SideNavBar.jsx
+++ b/frontend/src/components/navigations/side-nav-bar/SideNavBar.jsx
@@ -7,7 +7,6 @@ const { Sider } = Layout;
import Workflows from "../../../assets/Workflows.svg";
import apiDeploy from "../../../assets/api-deployments.svg";
-import appdev from "../../../assets/appdev.svg";
import CustomTools from "../../../assets/custom-tools-icon.svg";
import EmbeddingIcon from "../../../assets/embedding.svg";
import etl from "../../../assets/etl.svg";
@@ -18,10 +17,17 @@ import VectorDbIcon from "../../../assets/vector-db.svg";
import TextExtractorIcon from "../../../assets/text-extractor.svg";
import { useSessionStore } from "../../../store/session-store";
+let getMenuItem;
+try {
+ getMenuItem = require("../../../plugins/app-deployments/app-deployment-components/helpers/getMenuItem");
+} catch (err) {
+ // Plugin unavailable.
+}
+
const SideNavBar = ({ collapsed }) => {
const navigate = useNavigate();
const { sessionDetails } = useSessionStore();
- const { orgName } = sessionDetails;
+ const { orgName, flags } = sessionDetails;
const data = [
{
@@ -36,15 +42,6 @@ const SideNavBar = ({ collapsed }) => {
path: `/${orgName}/api`,
active: window.location.pathname.startsWith(`/${orgName}/api`),
},
- {
- id: 1.2,
- title: "App Deployments",
- description: "Standalone unstructured data apps",
- icon: BranchesOutlined,
- image: appdev,
- path: `/${orgName}/app`,
- active: window.location.pathname.startsWith(`/${orgName}/app`),
- },
{
id: 1.3,
title: "ETL Pipelines",
@@ -147,6 +144,10 @@ const SideNavBar = ({ collapsed }) => {
},
];
+ if (getMenuItem && flags.app_deployment) {
+ data[0].subMenu.splice(1, 0, getMenuItem.default(orgName));
+ }
+
return (
<Sider
trigger={null}
diff --git a/frontend/src/components/pipelines-or-deployments/app-deploy/AppDeploy.jsx b/frontend/src/components/pipelines-or-deployments/app-deploy/AppDeploy.jsx
deleted file mode 100644
index 412df7531..000000000
--- a/frontend/src/components/pipelines-or-deployments/app-deploy/AppDeploy.jsx
+++ /dev/null
@@ -1,92 +0,0 @@
-import { ScheduleOutlined } from "@ant-design/icons";
-import { Button, Input, Modal, Select, Space } from "antd";
-import Typography from "antd/es/typography/Typography";
-import PropTypes from "prop-types";
-
-import { ToolInfoCard } from "../../agency/tool-info-card/ToolInfoCard";
-import "../etl-task-deploy/EtlTaskDeploy.css";
-
-const AppDeploy = ({ open, setOpen }) => {
- const { Option } = Select;
- const { TextArea } = Input;
-
- return (
- <Modal
- title="Deploy App Development"
- centered
- open={open}
- onOk={() => setOpen(false)}
- onCancel={() => setOpen(false)}
- okText="Save and Deploy"
- okButtonProps={{ style: { background: "#092C4C" } }}
- width={800}
- closable={true}
- maskClosable={false}
- >
- <div
- style={{
- display: "flex",
- width: "100%",
- justifyContent: "space-between",
- }}
- >
- <div style={{ width: "46%" }}>
- <Typography className="formLabel">Project Name</Typography>
- <Input placeholder="Name"></Input>
- <br />
- <Typography className="formLabel">Workflow</Typography>
- <Select
- defaultValue="lucy"
- style={{
- width: "100%",
- }}
- >
- <Option value="jack">Jack</Option>
-
- <Option value="lucy">Lucy</Option>
-
- <Option value="Yiminghe">yiminghe</Option>
- </Select>
- <br />
- <Typography className="formLabel">Frequency of runs</Typography>
- <TextArea rows={2} />
- </div>
- <div style={{ width: "46%" }}>
- <Typography style={{ padding: "4px" }}>App Template</Typography>
- <div>
- <ToolInfoCard
- toolInfo={{
- name: "Document Q&A",
- description:
- "Two liner explanatory text can go here. In case if there is any.",
- icon: "https://storage.googleapis.com/pandora-static/tool-icons/ZSDBWriter.svg",
- }}
- />
-
- <ToolInfoCard
- toolInfo={{
- name: "Semantic Search",
- description:
- "Two liner explanatory text can go here. In case if there is any.",
- icon: "https://storage.googleapis.com/pandora-static/tool-icons/ZSFileOps.svg",
- }}
- />
- </div>
- </div>
- </div>
- <Space style={{ margin: "20px 0px" }}>
- <Button icon={<ScheduleOutlined />}></Button>
- <Typography.Text style={{ fontSize: "10px", opacity: 0.6 }}>
- The task will run at the start of every third hour, every day, every
- month, regardless of the day of the week
- </Typography.Text>
- </Space>
- </Modal>
- );
-};
-AppDeploy.propTypes = {
- setOpen: PropTypes.func.isRequired,
- onOk: PropTypes.func.isRequired,
- open: PropTypes.bool.isRequired,
-};
-export default AppDeploy;
diff --git a/frontend/src/components/pipelines-or-deployments/header/Header.css b/frontend/src/components/pipelines-or-deployments/header/Header.css
deleted file mode 100644
index 13abd5edd..000000000
--- a/frontend/src/components/pipelines-or-deployments/header/Header.css
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Styles for Header */
-
-.header-layout {
- padding: 8px;
- background-color: #F5F7F9;
- display: flex;
- align-items: center;
-}
-
-.header-btns {
- display: flex;
- justify-content: space-between;
- margin-left: auto;
-}
-
-.header-btns > div {
- padding: 0px 5px;
-}
-
-.header-name {
- padding: 0px 8px;
-}
diff --git a/frontend/src/components/pipelines-or-deployments/header/Header.jsx b/frontend/src/components/pipelines-or-deployments/header/Header.jsx
deleted file mode 100644
index f13c30b06..000000000
--- a/frontend/src/components/pipelines-or-deployments/header/Header.jsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import { ArrowLeftOutlined, PlusOutlined } from "@ant-design/icons";
-import { Button, Typography } from "antd";
-import { useNavigate } from "react-router-dom";
-import PropTypes from "prop-types";
-
-import { useSessionStore } from "../../../store/session-store.js";
-import { CustomButton } from "../../widgets/custom-button/CustomButton.jsx";
-
-import "./Header.css";
-
-function Header({ headerText, buttonText, openAddModal, previousPage }) {
- const navigate = useNavigate();
- const { sessionDetails } = useSessionStore();
- return (
- <div className="header-layout">
- {previousPage && (
- <div>
- <Button size="small" type="text">
- <ArrowLeftOutlined
- onClick={() =>
- navigate(`/${sessionDetails.orgName}/${previousPage}`)
- }
- />
- </Button>
- </div>
- )}
- <div className="header-name">
- <Typography.Text strong>{headerText}</Typography.Text>
- </div>
- <div className="header-btns">
- <div>
- <CustomButton
- type="primary"
- icon={<PlusOutlined />}
- onClick={() => {
- openAddModal(true);
- }}
- >
- {buttonText}
- </CustomButton>
- </div>
- </div>
- </div>
- );
-}
-
-Header.propTypes = {
- headerText: PropTypes.string.isRequired,
- buttonText: PropTypes.string.isRequired,
- openAddModal: PropTypes.func.isRequired,
- previousPage: PropTypes.string,
-};
-
-export { Header };
diff --git a/frontend/src/components/pipelines-or-deployments/pipelines-or-deployments/PipelinesOrDeployments.css b/frontend/src/components/pipelines-or-deployments/pipelines-or-deployments/PipelinesOrDeployments.css
deleted file mode 100644
index 48ff5951b..000000000
--- a/frontend/src/components/pipelines-or-deployments/pipelines-or-deployments/PipelinesOrDeployments.css
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Styles for PipelinesOrDeployments */
-
-.p-or-d-layout {
- background-color: var(--page-bg-2);
- height: 100%;
- display: flex;
- flex-direction: column;
-}
-
-.p-or-d-body1 {
- flex: 1;
- padding: 12px;
- overflow-y: auto;
-}
-
-.p-or-d-body2 {
- background-color: var(--white);
- height: 100%;
- padding: 12px;
- display: flex;
- flex-direction: column;
-}
-
-.p-or-d-footer {
- padding: 0px 12px 12px;
-}
-
-.p-or-d-header {
- display: flex;
- margin-bottom: 12px;
-}
-
-.p-or-d-header .header-text .typo-text {
- font-size: 18px;
-}
-
-.p-or-d-header .header-btn {
- margin-left: auto;
-}
-
-.p-or-d-table {
- flex: 1;
- overflow-y: auto;
-}
-
-.p-or-d-typography {
- font-size: 12px;
-}
-
-.p-or-d-actions {
- cursor: pointer;
-}
-
-.action-items {
- display: flex;
-}
diff --git a/frontend/src/components/pipelines-or-deployments/pipelines-or-deployments/PipelinesOrDeployments.jsx b/frontend/src/components/pipelines-or-deployments/pipelines-or-deployments/PipelinesOrDeployments.jsx
deleted file mode 100644
index 698277502..000000000
--- a/frontend/src/components/pipelines-or-deployments/pipelines-or-deployments/PipelinesOrDeployments.jsx
+++ /dev/null
@@ -1,264 +0,0 @@
-import {
- ArrowRightOutlined,
- DeleteOutlined,
- EditOutlined,
- EllipsisOutlined,
- InfoCircleOutlined,
- PlusOutlined,
- SyncOutlined,
-} from "@ant-design/icons";
-import { Dropdown, Image, Space, Switch, Table, Typography } from "antd";
-import PropTypes from "prop-types";
-import { useEffect, useState } from "react";
-
-import { CustomButton } from "../../widgets/custom-button/CustomButton.jsx";
-import "./PipelinesOrDeployments.css";
-import { EmptyState } from "../../widgets/empty-state/EmptyState";
-import { SpinnerLoader } from "../../widgets/spinner-loader/SpinnerLoader.jsx";
-import { DeleteModal } from "../delete-modal/DeleteModal.jsx";
-import { EtlTaskDeploy } from "../etl-task-deploy/EtlTaskDeploy.jsx";
-import { ToolNavBar } from "../../navigations/tool-nav-bar/ToolNavBar.jsx";
-
-function PipelinesOrDeployments({ type }) {
- const [headerText, setHeaderText] = useState("");
- const [modalTitle, setModalTitle] = useState("");
- const [tableData, setTableData] = useState([]);
- const [openEtlOrTaskModal, setOpenEtlOrTaskModal] = useState(false);
- const [openDeleteModal, setOpenDeleteModal] = useState(false);
- const [selectedPorD, setSelectedPorD] = useState({});
-
- // TODO: add appdeployment management logic when it is available
- useEffect(() => {
- setHeaderText("App Deployments");
- setModalTitle("Deploy App");
- }, [type]);
-
- const actionItems = [
- {
- key: "1",
- label: (
- <Space direction="horizontal" className="action-items">
- <div>
- <EditOutlined />
- </div>
- <div>
- <Typography.Text>Edit</Typography.Text>
- </div>
- </Space>
- ),
- },
- {
- key: "2",
- label: (
- <Space
- direction="horizontal"
- className="action-items"
- onClick={() => setOpenDeleteModal(true)}
- >
- <div>
- <DeleteOutlined />
- </div>
- <div>
- <Typography.Text>Delete</Typography.Text>
- </div>
- </Space>
- ),
- },
- {
- key: "3",
- label: (
- <Space direction="horizontal" className="action-items">
- <div>
- <InfoCircleOutlined />
- </div>
- <div>
- <Typography.Text>View Information</Typography.Text>
- </div>
- </Space>
- ),
- },
- {
- key: "4",
- label: (
- <Space direction="horizontal" className="action-items">
- <div>
- <SyncOutlined />
- </div>
- <div>
- <Typography.Text>Sync Now</Typography.Text>
- </div>
- </Space>
- ),
- },
- {
- key: "5",
- label: (
- <Space
- direction="horizontal"
- className="action-items"
- // TODO: Handle the link dynamically
- onClick={() => window.open(selectedPorD?.goto, "_blank")}
- >
- <div>
- <ArrowRightOutlined />
- </div>
- <div>
- <Typography.Text disabled={type !== "app"}>
- Go to App
- </Typography.Text>
- </div>
- </Space>
- ),
- disabled: type !== "app",
- },
- ];
-
- const columns = [
- {
- title: "Source",
- render: (_, record) => (
- <div>
- <div>
- <Image src={record?.source_icon} preview={false} width={30} />
- </div>
- <Typography.Text className="p-or-d-typography" strong>
- {record?.source_name}
- </Typography.Text>
- </div>
- ),
- key: "source",
- align: "center",
- },
- {
- title: "Pipeline",
- key: "pipeline_name",
- render: (_, record) => (
- <>
- <Typography.Text strong>{record?.pipeline_name}</Typography.Text>
- <br />
- <Typography.Text type="secondary" className="p-or-d-typography">
- from {record?.workflow_name}
- </Typography.Text>
- </>
- ),
- align: "center",
- },
- {
- title: "Destination",
- render: (_, record) => (
- <div>
- <div>
- <Image src={record?.destination_icon} preview={false} width={30} />
- </div>
- <Typography.Text className="p-or-d-typography" strong>
- {record?.destination_name}
- </Typography.Text>
- </div>
- ),
- key: "destination",
- align: "center",
- },
- {
- title: "Status",
- dataIndex: "last_run_status",
- key: "last_run_status",
- align: "center",
- render: (_, record) => (
- <>
- {record.last_run_status === "processing" ? (
- <SpinnerLoader />
- ) : (
- <Typography.Text className="p-or-d-typography" strong>
- {record?.last_run_status}
- </Typography.Text>
- )}
- </>
- ),
- },
- {
- title: "Last Run",
- key: "last_run_time",
- dataIndex: "last_run_time",
- align: "center",
- render: (_, record) => (
- <div>
- <Typography.Text className="p-or-d-typography" strong>
- {record?.last_run_time}
- </Typography.Text>
- </div>
- ),
- },
- {
- title: "Enabled",
- key: "active",
- dataIndex: "active",
- align: "center",
- render: (_, record) => <Switch checked={record.active} />,
- },
- {
- title: "Actions",
- key: "pipeline_id",
- align: "center",
- render: (_, record) => (
- <Dropdown
- menu={{ items: actionItems }}
- placement="bottomLeft"
- onOpenChange={() => setSelectedPorD(record)}
- >
- <EllipsisOutlined rotate={90} className="p-or-d-actions" />
- </Dropdown>
- ),
- },
- ];
- return (
- <div className="p-or-d-layout">
- <ToolNavBar
- title={headerText}
- CustomButtons={() => {
- return (
- <CustomButton
- type="primary"
- icon={<PlusOutlined />}
- onClick={() => setOpenEtlOrTaskModal(true)}
- disabled={true}
- >
- App Deployment
- </CustomButton>
- );
- }}
- />
- <div className="p-or-d-body1">
- <div className="p-or-d-body2">
- <div className="p-or-d-table">
- {!tableData || tableData?.length === 0 ? (
- <EmptyState text="Coming soon" />
- ) : (
- <div>
- <Table
- size="small"
- columns={columns}
- dataSource={tableData}
- rowKey="id"
- />
- </div>
- )}
- </div>
- </div>
- </div>
- <EtlTaskDeploy
- open={openEtlOrTaskModal}
- setOpen={setOpenEtlOrTaskModal}
- setTableData={setTableData}
- type={type}
- title={modalTitle}
- />
- <DeleteModal open={openDeleteModal} setOpen={setOpenDeleteModal} />
- </div>
- );
-}
-
-PipelinesOrDeployments.propTypes = {
- type: PropTypes.string.isRequired,
-};
-
-export { PipelinesOrDeployments };
diff --git a/frontend/src/helpers/FeatureFlagsData.js b/frontend/src/helpers/FeatureFlagsData.js
new file mode 100644
index 000000000..ab95433e1
--- /dev/null
+++ b/frontend/src/helpers/FeatureFlagsData.js
@@ -0,0 +1,32 @@
+import axios from "axios";
+
+async function makeApiCall(method, url, data, csrfToken) {
+ const headers = {
+ "X-CSRFToken": csrfToken,
+ };
+
+ try {
+ const response = await axios({ method, url, data, headers });
+ return response?.data;
+ } catch (error) {
+ console.error(`Error making API call to ${url}: ${error}`);
+ return null;
+ }
+}
+
+export async function evaluateFeatureFlag(orgId, csrfToken, featureFlag) {
+ const url = `/api/v1/unstract/${orgId}/evaluate/`;
+ const data = {
+ flag_key: featureFlag,
+ };
+
+ const response = await makeApiCall("POST", url, data, csrfToken);
+ return response?.flag_status ?? false;
+}
+
+export async function listFlags(orgId, csrfToken, namespace = "default") {
+ const url = `/api/v1/unstract/${orgId}/flags/?namespace=${namespace}`;
+
+ const response = await makeApiCall("GET", url, null, csrfToken);
+ return response.feature_flags.flags ?? {};
+}
diff --git a/frontend/src/helpers/GetSessionData.js b/frontend/src/helpers/GetSessionData.js
index 0de53d6e6..f5b8c288b 100644
--- a/frontend/src/helpers/GetSessionData.js
+++ b/frontend/src/helpers/GetSessionData.js
@@ -25,6 +25,7 @@ function getSessionData(sessionData) {
isPlatformAdmin: sessionData?.isPlatformAdmin,
loginOnboardingMessage: sessionData?.loginOnboardingMessage,
promptOnboardingMessage: sessionData?.promptOnboardingMessage,
+ flags: sessionData?.flags,
};
}
diff --git a/frontend/src/hooks/useSessionValid.js b/frontend/src/hooks/useSessionValid.js
index cb9177693..f448d8177 100644
--- a/frontend/src/hooks/useSessionValid.js
+++ b/frontend/src/hooks/useSessionValid.js
@@ -3,10 +3,10 @@ import Cookies from "js-cookie";
import { useNavigate } from "react-router-dom";
import { getSessionData } from "../helpers/GetSessionData";
-
import { useExceptionHandler } from "../hooks/useExceptionHandler.jsx";
import { useSessionStore } from "../store/session-store";
import { useUserSession } from "./useUserSession.js";
+import { listFlags } from "../helpers/FeatureFlagsData.js";
let getTrialDetails;
let isPlatformAdmin;
@@ -105,6 +105,10 @@ function useSessionValid() {
if (remainingTrialDays)
userAndOrgDetails["remainingTrialDays"] = remainingTrialDays;
}
+
+ const flags = await listFlags(orgId, csrfToken);
+ userAndOrgDetails["flags"] = flags;
+
userAndOrgDetails["allOrganization"] = orgs;
if (isPlatformAdmin) {
userAndOrgDetails["isPlatformAdmin"] = await isPlatformAdmin();
diff --git a/frontend/src/pages/PipelinesOrDeploymentsPage.jsx b/frontend/src/pages/PipelinesOrDeploymentsPage.jsx
deleted file mode 100644
index fb0b5b5cf..000000000
--- a/frontend/src/pages/PipelinesOrDeploymentsPage.jsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import PropTypes from "prop-types";
-
-import { PipelinesOrDeployments } from "../components/pipelines-or-deployments/pipelines-or-deployments/PipelinesOrDeployments";
-
-function PipelinesOrDeploymentsPage({ type }) {
- return <PipelinesOrDeployments type={type} />;
-}
-
-PipelinesOrDeploymentsPage.propTypes = {
- type: PropTypes.string.isRequired,
-};
-export { PipelinesOrDeploymentsPage };
diff --git a/frontend/src/routes/Router.jsx b/frontend/src/routes/Router.jsx
index 2def3ab18..7d4ab0cec 100644
--- a/frontend/src/routes/Router.jsx
+++ b/frontend/src/routes/Router.jsx
@@ -21,7 +21,6 @@ import { InviteEditUserPage } from "../pages/InviteEditUserPage.jsx";
import { LandingPage } from "../pages/LandingPage.jsx";
import { OnBoardPage } from "../pages/OnBoardPage.jsx";
import { OutputAnalyzerPage } from "../pages/OutputAnalyzerPage.jsx";
-import { PipelinesOrDeploymentsPage } from "../pages/PipelinesOrDeploymentsPage.jsx";
import { ProfilePage } from "../pages/ProfilePage.jsx";
import { SetOrgPage } from "../pages/SetOrgPage.jsx";
import { SettingsPage } from "../pages/SettingsPage.jsx";
@@ -33,6 +32,9 @@ import { WorkflowsPage } from "../pages/WorkflowsPage.jsx";
let TrialRoutes;
let RequirePlatformAdmin;
let PlatformAdminPage;
+let AppDeployments;
+let ChatAppPage;
+let ChatAppLayout;
try {
TrialRoutes =
require("../plugins/subscription/trial-page/TrialEndPage.jsx").TrialEndPage;
@@ -40,6 +42,12 @@ try {
require("../plugins/frictionless-onboard/RequirePlatformAdmin.jsx").RequirePlatformAdmin;
PlatformAdminPage =
require("../plugins/frictionless-onboard/platform-admin-page/PlatformAdminPage.jsx").PlatformAdminPage;
+ AppDeployments =
+ require("../plugins/app-deployment/AppDeployments.jsx").AppDeployments;
+ ChatAppPage =
+ require("../plugins/app-deployment/chat-app/ChatAppPage.jsx").ChatAppPage;
+ ChatAppLayout =
+ require("../plugins/app-deployment/chat-app/ChatAppLayout.jsx").ChatAppLayout;
} catch (err) {
TrialRoutes = NotFound;
}
@@ -59,6 +67,11 @@ function Router() {
<Route path=":orgName" element={<FullPageLayout />}>
<Route path="onboard" element={<OnBoardPage />} />
</Route>
+ {ChatAppLayout && ChatAppPage && (
+ <Route path=":orgName" element={<ChatAppLayout />}>
+ <Route path="app/:id" element={<ChatAppPage />} />
+ </Route>
+ )}
<Route path=":orgName" element={<PageLayout />}>
<Route path="profile" element={<ProfilePage />} />
<Route
@@ -73,10 +86,9 @@ function Router() {
path="task"
element={<DeploymentsPage type={deploymentTypes.task} />}
/>
- <Route
- path="app"
- element={<PipelinesOrDeploymentsPage type="app" />}
- />
+ {AppDeployments && (
+ <Route path="app" element={<AppDeployments type="app" />} />
+ )}
<Route path="workflows" element={<WorkflowsPage />} />
<Route path="workflows/:id" element={<ProjectHelper />}>
<Route path="" element={<AgencyPage />} />
diff --git a/unstract/flags/src/unstract/flags/client.py b/unstract/flags/src/unstract/flags/client.py
deleted file mode 100644
index 75c87f6fb..000000000
--- a/unstract/flags/src/unstract/flags/client.py
+++ /dev/null
@@ -1,87 +0,0 @@
-import os
-from typing import Optional
-
-import grpc
-
-from unstract.flags import evaluation_pb2, evaluation_pb2_grpc
-
-
-class EvaluationClient:
- """A client for evaluating feature flags.
-
- This client communicates with an evaluation server to evaluate the state of
- a feature flag for a given entity.
-
- Args:
- None
-
- Attributes:
- channel (grpc.Channel): The gRPC channel used for communication with
- the evaluation server.
- stub (evaluation_pb2_grpc.EvaluationServiceStub):
- The gRPC stub for making requests to the evaluation server.
-
- Methods:
- boolean_evaluate_feature_flag: Evaluates the state of a feature flag
- for a given entity.
- """
-
- def __init__(self) -> None:
- """Initializes the evaluation client.
-
- Retrieves the evaluation server IP and port from environment variables
- and sets up the gRPC channel
- and stub for communication with the evaluation server.
-
- Raises:
- ValueError: If the evaluation server IP is not provided.
-
- Returns:
- None
- """
- evaluation_server_ip = os.environ.get("EVALUATION_SERVER_IP", "")
- evaluation_server_port = os.environ.get("EVALUATION_SERVER_PORT", "")
- print(f"evaluation_server_ip: {evaluation_server_ip}")
- print(f"evaluation_server_port: {evaluation_server_port}")
-
- if not evaluation_server_ip:
- raise ValueError("No response from server, refer README.md.")
-
- self.channel = grpc.insecure_channel(
- f"{evaluation_server_ip}:{evaluation_server_port}"
- )
- self.stub = evaluation_pb2_grpc.EvaluationServiceStub(self.channel)
-
- def boolean_evaluate_feature_flag(
- self,
- namespace_key: str,
- flag_key: str,
- entity_id: str,
- context: Optional[object] = None,
- ) -> bool:
- """Evaluates the state of a feature flag for a given entity.
-
- Args:
- namespace_key (str): The namespace key of the feature flag.
- flag_key (str): The key of the feature flag.
- entity_id (str): The ID of the entity for which the feature flag is
- being evaluated.
- context (object, optional): Additional context information for
- evaluating the feature flag.
-
- Returns:
- bool: True if the feature flag is enabled for the given entity,
- False otherwise.
- """
- try:
- request = evaluation_pb2.EvaluationRequest(
- namespace_key=namespace_key,
- flag_key=flag_key,
- entity_id=entity_id,
- context=context or {},
- )
- response = self.stub.Boolean(request)
- return bool(response.enabled)
- except grpc.RpcError as e:
- print(f"Error communicating with evaluation server: {e}")
- return False
diff --git a/unstract/flags/src/unstract/flags/client/base.py b/unstract/flags/src/unstract/flags/client/base.py
new file mode 100644
index 000000000..8ecf88fa2
--- /dev/null
+++ b/unstract/flags/src/unstract/flags/client/base.py
@@ -0,0 +1,17 @@
+import os
+
+import grpc
+
+
+class BaseClient:
+ def __init__(self, stub_class) -> None:
+ evaluation_server_ip = os.environ.get("EVALUATION_SERVER_IP", "")
+ evaluation_server_port = os.environ.get("EVALUATION_SERVER_PORT", "")
+
+ if not evaluation_server_ip:
+ raise ValueError("No response from server, refer README.md.")
+
+ self.channel = grpc.insecure_channel(
+ f"{evaluation_server_ip}:{evaluation_server_port}"
+ )
+ self.stub = stub_class(self.channel)
diff --git a/unstract/flags/src/unstract/flags/client/evaluation.py b/unstract/flags/src/unstract/flags/client/evaluation.py
new file mode 100644
index 000000000..6ddb374f8
--- /dev/null
+++ b/unstract/flags/src/unstract/flags/client/evaluation.py
@@ -0,0 +1,52 @@
+"""Method is used to Evaluate a speciifc feature-flag status as TRUE or FALSE.
+
+This method sends a gRPC request to the evaluation server to determine
+the state of a feature flag for a specific entity. It takes the
+namespace key, flag key, entity ID, and optional context information as
+input parameters.
+"""
+
+from typing import Optional
+
+import grpc
+
+from ..generated import evaluation_pb2, evaluation_pb2_grpc
+from .base import BaseClient
+
+
+class EvaluationClient(BaseClient):
+ def __init__(self) -> None:
+ super().__init__(evaluation_pb2_grpc.EvaluationServiceStub)
+
+ def boolean_evaluate_feature_flag(
+ self,
+ namespace_key: str,
+ flag_key: str,
+ entity_id: str,
+ context: Optional[dict] = None,
+ ) -> bool:
+ """Evaluates the state of a feature flag for a given entity.
+ Args:
+ namespace_key (str): The namespace key of the feature flag.
+ flag_key (str): The key of the feature flag.
+ entity_id (str): The ID of the entity for which the feature flag is
+ being evaluated.
+ context (object, optional): Additional context information for
+ evaluating the feature flag.
+
+ Returns:
+ bool: True if the feature flag is enabled for the given entity,
+ False otherwise.
+ """
+ try:
+ request = evaluation_pb2.EvaluationRequest(
+ namespace_key=namespace_key,
+ flag_key=flag_key,
+ entity_id=entity_id,
+ context=context or {},
+ )
+ response = self.stub.Boolean(request)
+ return bool(response.enabled)
+ except grpc.RpcError as e:
+ print(f"Error communicating with evaluation server: {e}")
+ return False
diff --git a/unstract/flags/src/unstract/flags/client/flipt.py b/unstract/flags/src/unstract/flags/client/flipt.py
new file mode 100644
index 000000000..a384c29f2
--- /dev/null
+++ b/unstract/flags/src/unstract/flags/client/flipt.py
@@ -0,0 +1,55 @@
+"""Flipt Client class is used to interact with the Flipt server.
+
+This contains all the methods to interact with the Flipt server like
+evaluate, list, segments and much more. This can be further extended
+to add more methods to interact with the Flipt server as per the
+requirement.
+"""
+
+import logging
+
+import grpc
+
+from ..generated import flipt_pb2, flipt_pb2_grpc
+from .base import BaseClient
+
+
+class FliptClient(BaseClient):
+ def __init__(self) -> None:
+ super().__init__(flipt_pb2_grpc.FliptStub)
+
+ def parse_flag_list(self, response):
+ flags = response.flags
+ total_count = response.total_count
+
+ parsed_flags = {}
+ for flag in flags:
+ enabled_status = flag.enabled if hasattr(flag, "enabled") else None
+ parsed_flags[flag.key] = enabled_status
+ return {"flags": parsed_flags, "total_count": total_count}
+
+ def list_feature_flags(self, namespace_key: str) -> dict:
+ try:
+ request = flipt_pb2.ListFlagRequest(namespace_key=namespace_key)
+ response = self.stub.ListFlags(request)
+ parsed_response = self.parse_flag_list(response)
+ return parsed_response
+ except grpc.RpcError as e:
+ logging.error(f"Error communicating with evaluation server: {e}")
+ return {}
+
+ def evaluate_feature_flag(
+ self, namespace_key: str, flag_key: str, entity_id: str, context: dict = None
+ ) -> bool:
+ try:
+ request = flipt_pb2.EvaluationRequest(
+ namespace_key=namespace_key,
+ flag_key=flag_key,
+ entity_id=entity_id,
+ context=context or {},
+ )
+ response = self.stub.Evaluate(request)
+ return response.match
+ except grpc.RpcError as e:
+ logging.error(f"Error evaluating feature flag: {e}")
+ return False
diff --git a/unstract/flags/src/unstract/flags/evaluation_pb2.py b/unstract/flags/src/unstract/flags/generated/evaluation_pb2.py
similarity index 93%
rename from unstract/flags/src/unstract/flags/evaluation_pb2.py
rename to unstract/flags/src/unstract/flags/generated/evaluation_pb2.py
index bc6c6c575..62116462a 100644
--- a/unstract/flags/src/unstract/flags/evaluation_pb2.py
+++ b/unstract/flags/src/unstract/flags/generated/evaluation_pb2.py
@@ -1,3 +1,4 @@
+# flake8: noqa
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protos/evaluation.proto
@@ -105,9 +106,7 @@ _ERROREVALUATIONREASON = _descriptor.EnumDescriptor(
)
_sym_db.RegisterEnumDescriptor(_ERROREVALUATIONREASON)
-ErrorEvaluationReason = enum_type_wrapper.EnumTypeWrapper(
- _ERROREVALUATIONREASON
-)
+ErrorEvaluationReason = enum_type_wrapper.EnumTypeWrapper(_ERROREVALUATIONREASON)
_EVALUATIONRESPONSETYPE = _descriptor.EnumDescriptor(
name="EvaluationResponseType",
full_name="flipt.evaluation.EvaluationResponseType",
@@ -147,9 +146,7 @@ _EVALUATIONRESPONSETYPE = _descriptor.EnumDescriptor(
)
_sym_db.RegisterEnumDescriptor(_EVALUATIONRESPONSETYPE)
-EvaluationResponseType = enum_type_wrapper.EnumTypeWrapper(
- _EVALUATIONRESPONSETYPE
-)
+EvaluationResponseType = enum_type_wrapper.EnumTypeWrapper(_EVALUATIONRESPONSETYPE)
UNKNOWN_EVALUATION_REASON = 0
FLAG_DISABLED_EVALUATION_REASON = 1
MATCH_EVALUATION_REASON = 2
@@ -993,80 +990,62 @@ _ERROREVALUATIONRESPONSE = _descriptor.Descriptor(
)
_EVALUATIONREQUEST_CONTEXTENTRY.containing_type = _EVALUATIONREQUEST
-_EVALUATIONREQUEST.fields_by_name[
- "context"
-].message_type = _EVALUATIONREQUEST_CONTEXTENTRY
-_BATCHEVALUATIONREQUEST.fields_by_name[
- "requests"
-].message_type = _EVALUATIONREQUEST
-_BATCHEVALUATIONRESPONSE.fields_by_name[
- "responses"
-].message_type = _EVALUATIONRESPONSE
+_EVALUATIONREQUEST.fields_by_name["context"].message_type = (
+ _EVALUATIONREQUEST_CONTEXTENTRY
+)
+_BATCHEVALUATIONREQUEST.fields_by_name["requests"].message_type = _EVALUATIONREQUEST
+_BATCHEVALUATIONRESPONSE.fields_by_name["responses"].message_type = _EVALUATIONRESPONSE
_EVALUATIONRESPONSE.fields_by_name["type"].enum_type = _EVALUATIONRESPONSETYPE
-_EVALUATIONRESPONSE.fields_by_name[
- "boolean_response"
-].message_type = _BOOLEANEVALUATIONRESPONSE
-_EVALUATIONRESPONSE.fields_by_name[
- "variant_response"
-].message_type = _VARIANTEVALUATIONRESPONSE
-_EVALUATIONRESPONSE.fields_by_name[
- "error_response"
-].message_type = _ERROREVALUATIONRESPONSE
+_EVALUATIONRESPONSE.fields_by_name["boolean_response"].message_type = (
+ _BOOLEANEVALUATIONRESPONSE
+)
+_EVALUATIONRESPONSE.fields_by_name["variant_response"].message_type = (
+ _VARIANTEVALUATIONRESPONSE
+)
+_EVALUATIONRESPONSE.fields_by_name["error_response"].message_type = (
+ _ERROREVALUATIONRESPONSE
+)
_EVALUATIONRESPONSE.oneofs_by_name["response"].fields.append(
_EVALUATIONRESPONSE.fields_by_name["boolean_response"]
)
-_EVALUATIONRESPONSE.fields_by_name[
- "boolean_response"
-].containing_oneof = _EVALUATIONRESPONSE.oneofs_by_name["response"]
+_EVALUATIONRESPONSE.fields_by_name["boolean_response"].containing_oneof = (
+ _EVALUATIONRESPONSE.oneofs_by_name["response"]
+)
_EVALUATIONRESPONSE.oneofs_by_name["response"].fields.append(
_EVALUATIONRESPONSE.fields_by_name["variant_response"]
)
-_EVALUATIONRESPONSE.fields_by_name[
- "variant_response"
-].containing_oneof = _EVALUATIONRESPONSE.oneofs_by_name["response"]
+_EVALUATIONRESPONSE.fields_by_name["variant_response"].containing_oneof = (
+ _EVALUATIONRESPONSE.oneofs_by_name["response"]
+)
_EVALUATIONRESPONSE.oneofs_by_name["response"].fields.append(
_EVALUATIONRESPONSE.fields_by_name["error_response"]
)
-_EVALUATIONRESPONSE.fields_by_name[
- "error_response"
-].containing_oneof = _EVALUATIONRESPONSE.oneofs_by_name["response"]
-_BOOLEANEVALUATIONRESPONSE.fields_by_name[
- "reason"
-].enum_type = _EVALUATIONREASON
-_BOOLEANEVALUATIONRESPONSE.fields_by_name[
- "timestamp"
-].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
-_VARIANTEVALUATIONRESPONSE.fields_by_name[
- "reason"
-].enum_type = _EVALUATIONREASON
-_VARIANTEVALUATIONRESPONSE.fields_by_name[
- "timestamp"
-].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
-_ERROREVALUATIONRESPONSE.fields_by_name[
- "reason"
-].enum_type = _ERROREVALUATIONREASON
+_EVALUATIONRESPONSE.fields_by_name["error_response"].containing_oneof = (
+ _EVALUATIONRESPONSE.oneofs_by_name["response"]
+)
+_BOOLEANEVALUATIONRESPONSE.fields_by_name["reason"].enum_type = _EVALUATIONREASON
+_BOOLEANEVALUATIONRESPONSE.fields_by_name["timestamp"].message_type = (
+ google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
+)
+_VARIANTEVALUATIONRESPONSE.fields_by_name["reason"].enum_type = _EVALUATIONREASON
+_VARIANTEVALUATIONRESPONSE.fields_by_name["timestamp"].message_type = (
+ google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
+)
+_ERROREVALUATIONRESPONSE.fields_by_name["reason"].enum_type = _ERROREVALUATIONREASON
DESCRIPTOR.message_types_by_name["EvaluationRequest"] = _EVALUATIONREQUEST
-DESCRIPTOR.message_types_by_name[
- "BatchEvaluationRequest"
-] = _BATCHEVALUATIONREQUEST
-DESCRIPTOR.message_types_by_name[
- "BatchEvaluationResponse"
-] = _BATCHEVALUATIONRESPONSE
+DESCRIPTOR.message_types_by_name["BatchEvaluationRequest"] = _BATCHEVALUATIONREQUEST
+DESCRIPTOR.message_types_by_name["BatchEvaluationResponse"] = _BATCHEVALUATIONRESPONSE
DESCRIPTOR.message_types_by_name["EvaluationResponse"] = _EVALUATIONRESPONSE
-DESCRIPTOR.message_types_by_name[
- "BooleanEvaluationResponse"
-] = _BOOLEANEVALUATIONRESPONSE
-DESCRIPTOR.message_types_by_name[
- "VariantEvaluationResponse"
-] = _VARIANTEVALUATIONRESPONSE
-DESCRIPTOR.message_types_by_name[
- "ErrorEvaluationResponse"
-] = _ERROREVALUATIONRESPONSE
+DESCRIPTOR.message_types_by_name["BooleanEvaluationResponse"] = (
+ _BOOLEANEVALUATIONRESPONSE
+)
+DESCRIPTOR.message_types_by_name["VariantEvaluationResponse"] = (
+ _VARIANTEVALUATIONRESPONSE
+)
+DESCRIPTOR.message_types_by_name["ErrorEvaluationResponse"] = _ERROREVALUATIONRESPONSE
DESCRIPTOR.enum_types_by_name["EvaluationReason"] = _EVALUATIONREASON
DESCRIPTOR.enum_types_by_name["ErrorEvaluationReason"] = _ERROREVALUATIONREASON
-DESCRIPTOR.enum_types_by_name[
- "EvaluationResponseType"
-] = _EVALUATIONRESPONSETYPE
+DESCRIPTOR.enum_types_by_name["EvaluationResponseType"] = _EVALUATIONRESPONSETYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
EvaluationRequest = _reflection.GeneratedProtocolMessageType(
@@ -1078,12 +1057,12 @@ EvaluationRequest = _reflection.GeneratedProtocolMessageType(
(_message.Message,),
{
"DESCRIPTOR": _EVALUATIONREQUEST_CONTEXTENTRY,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.EvaluationRequest.ContextEntry)
},
),
"DESCRIPTOR": _EVALUATIONREQUEST,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.EvaluationRequest)
},
)
@@ -1095,7 +1074,7 @@ BatchEvaluationRequest = _reflection.GeneratedProtocolMessageType(
(_message.Message,),
{
"DESCRIPTOR": _BATCHEVALUATIONREQUEST,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.BatchEvaluationRequest)
},
)
@@ -1106,7 +1085,7 @@ BatchEvaluationResponse = _reflection.GeneratedProtocolMessageType(
(_message.Message,),
{
"DESCRIPTOR": _BATCHEVALUATIONRESPONSE,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.BatchEvaluationResponse)
},
)
@@ -1117,7 +1096,7 @@ EvaluationResponse = _reflection.GeneratedProtocolMessageType(
(_message.Message,),
{
"DESCRIPTOR": _EVALUATIONRESPONSE,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.EvaluationResponse)
},
)
@@ -1128,7 +1107,7 @@ BooleanEvaluationResponse = _reflection.GeneratedProtocolMessageType(
(_message.Message,),
{
"DESCRIPTOR": _BOOLEANEVALUATIONRESPONSE,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.BooleanEvaluationResponse)
},
)
@@ -1139,7 +1118,7 @@ VariantEvaluationResponse = _reflection.GeneratedProtocolMessageType(
(_message.Message,),
{
"DESCRIPTOR": _VARIANTEVALUATIONRESPONSE,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.VariantEvaluationResponse)
},
)
@@ -1150,7 +1129,7 @@ ErrorEvaluationResponse = _reflection.GeneratedProtocolMessageType(
(_message.Message,),
{
"DESCRIPTOR": _ERROREVALUATIONRESPONSE,
- "__module__": "protos.evaluation_pb2"
+ "__module__": "protos.evaluation_pb2",
# @@protoc_insertion_point(class_scope:flipt.evaluation.ErrorEvaluationResponse)
},
)
diff --git a/unstract/flags/src/unstract/flags/evaluation_pb2_grpc.py b/unstract/flags/src/unstract/flags/generated/evaluation_pb2_grpc.py
similarity index 99%
rename from unstract/flags/src/unstract/flags/evaluation_pb2_grpc.py
rename to unstract/flags/src/unstract/flags/generated/evaluation_pb2_grpc.py
index 277124eae..70d7cbda1 100644
--- a/unstract/flags/src/unstract/flags/evaluation_pb2_grpc.py
+++ b/unstract/flags/src/unstract/flags/generated/evaluation_pb2_grpc.py
@@ -1,3 +1,4 @@
+# flake8: noqa
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
diff --git a/unstract/flags/src/unstract/flags/generated/flipt_pb2.py b/unstract/flags/src/unstract/flags/generated/flipt_pb2.py
new file mode 100644
index 000000000..7e255d21f
--- /dev/null
+++ b/unstract/flags/src/unstract/flags/generated/flipt_pb2.py
@@ -0,0 +1,198 @@
+# flake8: noqa
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: unstract/flags/src/unstract/flags/protos/flipt.proto
+# Protobuf Python Version: 4.25.0
+"""Generated protocol buffer code."""
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import descriptor_pool as _descriptor_pool
+from google.protobuf import symbol_database as _symbol_database
+from google.protobuf.internal import builder as _builder
+
+# @@protoc_insertion_point(imports)
+
+_sym_db = _symbol_database.Default()
+
+
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
+ b'\n4unstract/flags/src/unstract/flags/protos/flipt.proto\x12\x05\x66lipt\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xcb\x01\n\x11\x45valuationRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x11\n\tentity_id\x18\x03 \x01(\t\x12\x36\n\x07\x63ontext\x18\x04 \x03(\x0b\x32%.flipt.EvaluationRequest.ContextEntry\x12\x15\n\rnamespace_key\x18\x05 \x01(\t\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x8a\x01\n\x16\x42\x61tchEvaluationRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12*\n\x08requests\x18\x02 \x03(\x0b\x32\x18.flipt.EvaluationRequest\x12\x19\n\x11\x65xclude_not_found\x18\x03 \x01(\x08\x12\x15\n\rnamespace_key\x18\x04 \x01(\t"|\n\x17\x42\x61tchEvaluationResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12,\n\tresponses\x18\x02 \x03(\x0b\x32\x19.flipt.EvaluationResponse\x12\x1f\n\x17request_duration_millis\x18\x03 \x01(\x01"\xbd\x03\n\x12\x45valuationResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x11\n\tentity_id\x18\x02 \x01(\t\x12\x46\n\x0frequest_context\x18\x03 \x03(\x0b\x32-.flipt.EvaluationResponse.RequestContextEntry\x12\r\n\x05match\x18\x04 \x01(\x08\x12\x10\n\x08\x66lag_key\x18\x05 \x01(\t\x12\x17\n\x0bsegment_key\x18\x06 \x01(\tB\x02\x18\x01\x12-\n\ttimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x08 \x01(\t\x12\x1f\n\x17request_duration_millis\x18\t \x01(\x01\x12\x12\n\nattachment\x18\n \x01(\t\x12\'\n\x06reason\x18\x0b \x01(\x0e\x32\x17.flipt.EvaluationReason\x12\x15\n\rnamespace_key\x18\x0c \x01(\t\x12\x14\n\x0csegment_keys\x18\r \x03(\t\x1a\x35\n\x13RequestContextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xae\x01\n\tNamespace\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tprotected\x18\x04 \x01(\x08\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"c\n\rNamespaceList\x12$\n\nnamespaces\x18\x01 \x03(\x0b\x32\x10.flipt.Namespace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0btotal_count\x18\x03 \x01(\x05"5\n\x13GetNamespaceRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\treference\x18\x02 \x01(\t"`\n\x14ListNamespaceRequest\x12\r\n\x05limit\x18\x01 \x01(\x05\x12\x12\n\x06offset\x18\x02 \x01(\x05\x42\x02\x18\x01\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\treference\x18\x04 \x01(\t"H\n\x16\x43reateNamespaceRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"H\n\x16UpdateNamespaceRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"%\n\x16\x44\x65leteNamespaceRequest\x12\x0b\n\x03key\x18\x01 \x01(\t"\xff\x01\n\x04\x46lag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x08variants\x18\x07 \x03(\x0b\x32\x0e.flipt.Variant\x12\x15\n\rnamespace_key\x18\x08 \x01(\t\x12\x1d\n\x04type\x18\t \x01(\x0e\x32\x0f.flipt.FlagType"T\n\x08\x46lagList\x12\x1a\n\x05\x66lags\x18\x01 \x03(\x0b\x32\x0b.flipt.Flag\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0btotal_count\x18\x03 \x01(\x05"G\n\x0eGetFlagRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t\x12\x11\n\treference\x18\x03 \x01(\t"r\n\x0fListFlagRequest\x12\r\n\x05limit\x18\x01 \x01(\x05\x12\x12\n\x06offset\x18\x02 \x01(\x05\x42\x02\x18\x01\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rnamespace_key\x18\x04 \x01(\t\x12\x11\n\treference\x18\x05 \x01(\t"\x8a\x01\n\x11\x43reateFlagRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\x12\x15\n\rnamespace_key\x18\x05 \x01(\t\x12\x1d\n\x04type\x18\x06 \x01(\x0e\x32\x0f.flipt.FlagType"k\n\x11UpdateFlagRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\x12\x15\n\rnamespace_key\x18\x05 \x01(\t"7\n\x11\x44\x65leteFlagRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t"\xe2\x01\n\x07Variant\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x0b\n\x03key\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nattachment\x18\x08 \x01(\t\x12\x15\n\rnamespace_key\x18\t \x01(\t"\x83\x01\n\x14\x43reateVariantRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\nattachment\x18\x05 \x01(\t\x12\x15\n\rnamespace_key\x18\x06 \x01(\t"\x8f\x01\n\x14UpdateVariantRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x0b\n\x03key\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x12\n\nattachment\x18\x06 \x01(\t\x12\x15\n\rnamespace_key\x18\x07 \x01(\t"K\n\x14\x44\x65leteVariantRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x15\n\rnamespace_key\x18\x03 \x01(\t"\xfe\x01\n\x07Segment\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x0b\x63onstraints\x18\x06 \x03(\x0b\x32\x11.flipt.Constraint\x12$\n\nmatch_type\x18\x07 \x01(\x0e\x32\x10.flipt.MatchType\x12\x15\n\rnamespace_key\x18\x08 \x01(\t"]\n\x0bSegmentList\x12 \n\x08segments\x18\x01 \x03(\x0b\x32\x0e.flipt.Segment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0btotal_count\x18\x03 \x01(\x05"J\n\x11GetSegmentRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t\x12\x11\n\treference\x18\x03 \x01(\t"u\n\x12ListSegmentRequest\x12\r\n\x05limit\x18\x01 \x01(\x05\x12\x12\n\x06offset\x18\x02 \x01(\x05\x42\x02\x18\x01\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rnamespace_key\x18\x04 \x01(\t\x12\x11\n\treference\x18\x05 \x01(\t"\x83\x01\n\x14\x43reateSegmentRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12$\n\nmatch_type\x18\x04 \x01(\x0e\x32\x10.flipt.MatchType\x12\x15\n\rnamespace_key\x18\x05 \x01(\t"\x83\x01\n\x14UpdateSegmentRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12$\n\nmatch_type\x18\x04 \x01(\x0e\x32\x10.flipt.MatchType\x12\x15\n\rnamespace_key\x18\x05 \x01(\t":\n\x14\x44\x65leteSegmentRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t"\x91\x02\n\nConstraint\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0bsegment_key\x18\x02 \x01(\t\x12#\n\x04type\x18\x03 \x01(\x0e\x32\x15.flipt.ComparisonType\x12\x10\n\x08property\x18\x04 \x01(\t\x12\x10\n\x08operator\x18\x05 \x01(\t\x12\r\n\x05value\x18\x06 \x01(\t\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rnamespace_key\x18\t \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\n \x01(\t"\xb2\x01\n\x17\x43reateConstraintRequest\x12\x13\n\x0bsegment_key\x18\x01 \x01(\t\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.flipt.ComparisonType\x12\x10\n\x08property\x18\x03 \x01(\t\x12\x10\n\x08operator\x18\x04 \x01(\t\x12\r\n\x05value\x18\x05 \x01(\t\x12\x15\n\rnamespace_key\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t"\xbe\x01\n\x17UpdateConstraintRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0bsegment_key\x18\x02 \x01(\t\x12#\n\x04type\x18\x03 \x01(\x0e\x32\x15.flipt.ComparisonType\x12\x10\n\x08property\x18\x04 \x01(\t\x12\x10\n\x08operator\x18\x05 \x01(\t\x12\r\n\x05value\x18\x06 \x01(\t\x12\x15\n\rnamespace_key\x18\x07 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t"Q\n\x17\x44\x65leteConstraintRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0bsegment_key\x18\x02 \x01(\t\x12\x15\n\rnamespace_key\x18\x03 \x01(\t"\xc3\x02\n\x07Rollout\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x03 \x01(\t\x12 \n\x04type\x18\x04 \x01(\x0e\x32\x12.flipt.RolloutType\x12\x0c\n\x04rank\x18\x05 \x01(\x05\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x07segment\x18\x14 \x01(\x0b\x32\x15.flipt.RolloutSegmentH\x00\x12,\n\tthreshold\x18\x15 \x01(\x0b\x32\x17.flipt.RolloutThresholdH\x00\x42\x06\n\x04rule"\x80\x01\n\x0eRolloutSegment\x12\x17\n\x0bsegment_key\x18\x01 \x01(\tB\x02\x18\x01\x12\r\n\x05value\x18\x02 \x01(\x08\x12\x14\n\x0csegment_keys\x18\x03 \x03(\t\x12\x30\n\x10segment_operator\x18\x04 \x01(\x0e\x32\x16.flipt.SegmentOperator"5\n\x10RolloutThreshold\x12\x12\n\npercentage\x18\x01 \x01(\x02\x12\r\n\x05value\x18\x02 \x01(\x08"Z\n\x0bRolloutList\x12\x1d\n\x05rules\x18\x01 \x03(\x0b\x32\x0e.flipt.Rollout\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0btotal_count\x18\x03 \x01(\x05"s\n\x12ListRolloutRequest\x12\x15\n\rnamespace_key\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x11\n\treference\x18\x05 \x01(\t"[\n\x11GetRolloutRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x03 \x01(\t\x12\x11\n\treference\x18\x04 \x01(\t"\xc2\x01\n\x14\x43reateRolloutRequest\x12\x15\n\rnamespace_key\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x0c\n\x04rank\x18\x03 \x01(\x05\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12(\n\x07segment\x18\x14 \x01(\x0b\x32\x15.flipt.RolloutSegmentH\x00\x12,\n\tthreshold\x18\x15 \x01(\x0b\x32\x17.flipt.RolloutThresholdH\x00\x42\x06\n\x04rule"\xc0\x01\n\x14UpdateRolloutRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12(\n\x07segment\x18\x14 \x01(\x0b\x32\x15.flipt.RolloutSegmentH\x00\x12,\n\tthreshold\x18\x15 \x01(\x0b\x32\x17.flipt.RolloutThresholdH\x00\x42\x06\n\x04rule"K\n\x14\x44\x65leteRolloutRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x03 \x01(\t"T\n\x14OrderRolloutsRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12\x15\n\rnamespace_key\x18\x02 \x01(\t\x12\x13\n\x0brollout_ids\x18\x03 \x03(\t"\xb2\x02\n\x04Rule\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x13\n\x0bsegment_key\x18\x03 \x01(\t\x12*\n\rdistributions\x18\x04 \x03(\x0b\x32\x13.flipt.Distribution\x12\x0c\n\x04rank\x18\x05 \x01(\x05\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rnamespace_key\x18\x08 \x01(\t\x12\x14\n\x0csegment_keys\x18\t \x03(\t\x12\x30\n\x10segment_operator\x18\n \x01(\x0e\x32\x16.flipt.SegmentOperator"T\n\x08RuleList\x12\x1a\n\x05rules\x18\x01 \x03(\x0b\x32\x0b.flipt.Rule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0btotal_count\x18\x03 \x01(\x05"\x84\x01\n\x0fListRuleRequest\x12\r\n\x05limit\x18\x01 \x01(\x05\x12\x12\n\x06offset\x18\x02 \x01(\x05\x42\x02\x18\x01\x12\x10\n\x08\x66lag_key\x18\x03 \x01(\t\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x15\n\rnamespace_key\x18\x05 \x01(\t\x12\x11\n\treference\x18\x06 \x01(\t"X\n\x0eGetRuleRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x15\n\rnamespace_key\x18\x03 \x01(\t\x12\x11\n\treference\x18\x04 \x01(\t"\xab\x01\n\x11\x43reateRuleRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12\x17\n\x0bsegment_key\x18\x02 \x01(\tB\x02\x18\x01\x12\x0c\n\x04rank\x18\x03 \x01(\x05\x12\x15\n\rnamespace_key\x18\x04 \x01(\t\x12\x14\n\x0csegment_keys\x18\x05 \x03(\t\x12\x30\n\x10segment_operator\x18\x06 \x01(\x0e\x32\x16.flipt.SegmentOperator"\xa9\x01\n\x11UpdateRuleRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x17\n\x0bsegment_key\x18\x03 \x01(\tB\x02\x18\x01\x12\x15\n\rnamespace_key\x18\x04 \x01(\t\x12\x14\n\x0csegment_keys\x18\x05 \x03(\t\x12\x30\n\x10segment_operator\x18\x06 \x01(\x0e\x32\x16.flipt.SegmentOperator"H\n\x11\x44\x65leteRuleRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x15\n\rnamespace_key\x18\x03 \x01(\t"N\n\x11OrderRulesRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12\x10\n\x08rule_ids\x18\x02 \x03(\t\x12\x15\n\rnamespace_key\x18\x03 \x01(\t"\xb0\x01\n\x0c\x44istribution\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t\x12\x12\n\nvariant_id\x18\x03 \x01(\t\x12\x0f\n\x07rollout\x18\x04 \x01(\x02\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"z\n\x19\x43reateDistributionRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t\x12\x12\n\nvariant_id\x18\x03 \x01(\t\x12\x0f\n\x07rollout\x18\x04 \x01(\x02\x12\x15\n\rnamespace_key\x18\x05 \x01(\t"\x86\x01\n\x19UpdateDistributionRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x0f\n\x07rule_id\x18\x03 \x01(\t\x12\x12\n\nvariant_id\x18\x04 \x01(\t\x12\x0f\n\x07rollout\x18\x05 \x01(\x02\x12\x15\n\rnamespace_key\x18\x06 \x01(\t"u\n\x19\x44\x65leteDistributionRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66lag_key\x18\x02 \x01(\t\x12\x0f\n\x07rule_id\x18\x03 \x01(\t\x12\x12\n\nvariant_id\x18\x04 \x01(\t\x12\x15\n\rnamespace_key\x18\x05 \x01(\t*\xb6\x01\n\x10\x45valuationReason\x12\x1d\n\x19UNKNOWN_EVALUATION_REASON\x10\x00\x12#\n\x1f\x46LAG_DISABLED_EVALUATION_REASON\x10\x01\x12$\n FLAG_NOT_FOUND_EVALUATION_REASON\x10\x02\x12\x1b\n\x17MATCH_EVALUATION_REASON\x10\x03\x12\x1b\n\x17\x45RROR_EVALUATION_REASON\x10\x04*8\n\x08\x46lagType\x12\x15\n\x11VARIANT_FLAG_TYPE\x10\x00\x12\x15\n\x11\x42OOLEAN_FLAG_TYPE\x10\x01*3\n\tMatchType\x12\x12\n\x0e\x41LL_MATCH_TYPE\x10\x00\x12\x12\n\x0e\x41NY_MATCH_TYPE\x10\x01*\xbf\x01\n\x0e\x43omparisonType\x12\x1b\n\x17UNKNOWN_COMPARISON_TYPE\x10\x00\x12\x1a\n\x16STRING_COMPARISON_TYPE\x10\x01\x12\x1a\n\x16NUMBER_COMPARISON_TYPE\x10\x02\x12\x1b\n\x17\x42OOLEAN_COMPARISON_TYPE\x10\x03\x12\x1c\n\x18\x44\x41TETIME_COMPARISON_TYPE\x10\x04\x12\x1d\n\x19\x45NTITY_ID_COMPARISON_TYPE\x10\x05*]\n\x0bRolloutType\x12\x18\n\x14UNKNOWN_ROLLOUT_TYPE\x10\x00\x12\x18\n\x14SEGMENT_ROLLOUT_TYPE\x10\x01\x12\x1a\n\x16THRESHOLD_ROLLOUT_TYPE\x10\x02*D\n\x0fSegmentOperator\x12\x17\n\x13OR_SEGMENT_OPERATOR\x10\x00\x12\x18\n\x14\x41ND_SEGMENT_OPERATOR\x10\x01\x32\xdb\x13\n\x05\x46lipt\x12\x44\n\x08\x45valuate\x12\x18.flipt.EvaluationRequest\x1a\x19.flipt.EvaluationResponse"\x03\x88\x02\x01\x12S\n\rBatchEvaluate\x12\x1d.flipt.BatchEvaluationRequest\x1a\x1e.flipt.BatchEvaluationResponse"\x03\x88\x02\x01\x12>\n\x0cGetNamespace\x12\x1a.flipt.GetNamespaceRequest\x1a\x10.flipt.Namespace"\x00\x12\x45\n\x0eListNamespaces\x12\x1b.flipt.ListNamespaceRequest\x1a\x14.flipt.NamespaceList"\x00\x12\x44\n\x0f\x43reateNamespace\x12\x1d.flipt.CreateNamespaceRequest\x1a\x10.flipt.Namespace"\x00\x12\x44\n\x0fUpdateNamespace\x12\x1d.flipt.UpdateNamespaceRequest\x1a\x10.flipt.Namespace"\x00\x12J\n\x0f\x44\x65leteNamespace\x12\x1d.flipt.DeleteNamespaceRequest\x1a\x16.google.protobuf.Empty"\x00\x12/\n\x07GetFlag\x12\x15.flipt.GetFlagRequest\x1a\x0b.flipt.Flag"\x00\x12\x36\n\tListFlags\x12\x16.flipt.ListFlagRequest\x1a\x0f.flipt.FlagList"\x00\x12\x35\n\nCreateFlag\x12\x18.flipt.CreateFlagRequest\x1a\x0b.flipt.Flag"\x00\x12\x35\n\nUpdateFlag\x12\x18.flipt.UpdateFlagRequest\x1a\x0b.flipt.Flag"\x00\x12@\n\nDeleteFlag\x12\x18.flipt.DeleteFlagRequest\x1a\x16.google.protobuf.Empty"\x00\x12>\n\rCreateVariant\x12\x1b.flipt.CreateVariantRequest\x1a\x0e.flipt.Variant"\x00\x12>\n\rUpdateVariant\x12\x1b.flipt.UpdateVariantRequest\x1a\x0e.flipt.Variant"\x00\x12\x46\n\rDeleteVariant\x12\x1b.flipt.DeleteVariantRequest\x1a\x16.google.protobuf.Empty"\x00\x12/\n\x07GetRule\x12\x15.flipt.GetRuleRequest\x1a\x0b.flipt.Rule"\x00\x12\x36\n\tListRules\x12\x16.flipt.ListRuleRequest\x1a\x0f.flipt.RuleList"\x00\x12\x35\n\nCreateRule\x12\x18.flipt.CreateRuleRequest\x1a\x0b.flipt.Rule"\x00\x12\x35\n\nUpdateRule\x12\x18.flipt.UpdateRuleRequest\x1a\x0b.flipt.Rule"\x00\x12@\n\nOrderRules\x12\x18.flipt.OrderRulesRequest\x1a\x16.google.protobuf.Empty"\x00\x12@\n\nDeleteRule\x12\x18.flipt.DeleteRuleRequest\x1a\x16.google.protobuf.Empty"\x00\x12\x38\n\nGetRollout\x12\x18.flipt.GetRolloutRequest\x1a\x0e.flipt.Rollout"\x00\x12?\n\x0cListRollouts\x12\x19.flipt.ListRolloutRequest\x1a\x12.flipt.RolloutList"\x00\x12>\n\rCreateRollout\x12\x1b.flipt.CreateRolloutRequest\x1a\x0e.flipt.Rollout"\x00\x12>\n\rUpdateRollout\x12\x1b.flipt.UpdateRolloutRequest\x1a\x0e.flipt.Rollout"\x00\x12\x46\n\rDeleteRollout\x12\x1b.flipt.DeleteRolloutRequest\x1a\x16.google.protobuf.Empty"\x00\x12\x46\n\rOrderRollouts\x12\x1b.flipt.OrderRolloutsRequest\x1a\x16.google.protobuf.Empty"\x00\x12M\n\x12\x43reateDistribution\x12 .flipt.CreateDistributionRequest\x1a\x13.flipt.Distribution"\x00\x12M\n\x12UpdateDistribution\x12 .flipt.UpdateDistributionRequest\x1a\x13.flipt.Distribution"\x00\x12P\n\x12\x44\x65leteDistribution\x12 .flipt.DeleteDistributionRequest\x1a\x16.google.protobuf.Empty"\x00\x12\x38\n\nGetSegment\x12\x18.flipt.GetSegmentRequest\x1a\x0e.flipt.Segment"\x00\x12?\n\x0cListSegments\x12\x19.flipt.ListSegmentRequest\x1a\x12.flipt.SegmentList"\x00\x12>\n\rCreateSegment\x12\x1b.flipt.CreateSegmentRequest\x1a\x0e.flipt.Segment"\x00\x12>\n\rUpdateSegment\x12\x1b.flipt.UpdateSegmentRequest\x1a\x0e.flipt.Segment"\x00\x12\x46\n\rDeleteSegment\x12\x1b.flipt.DeleteSegmentRequest\x1a\x16.google.protobuf.Empty"\x00\x12G\n\x10\x43reateConstraint\x12\x1e.flipt.CreateConstraintRequest\x1a\x11.flipt.Constraint"\x00\x12G\n\x10UpdateConstraint\x12\x1e.flipt.UpdateConstraintRequest\x1a\x11.flipt.Constraint"\x00\x12L\n\x10\x44\x65leteConstraint\x12\x1e.flipt.DeleteConstraintRequest\x1a\x16.google.protobuf.Empty"\x00\x42\x1dZ\x1bgo.flipt.io/flipt/rpc/fliptb\x06proto3'
+)
+
+_globals = globals()
+_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
+_builder.BuildTopDescriptorsAndMessages(
+ DESCRIPTOR, "unstract.flags.src.unstract.flags.protos.flipt_pb2", _globals
+)
+if _descriptor._USE_C_DESCRIPTORS == False:
+ _globals["DESCRIPTOR"]._options = None
+ _globals["DESCRIPTOR"]._serialized_options = b"Z\033go.flipt.io/flipt/rpc/flipt"
+ _globals["_EVALUATIONREQUEST_CONTEXTENTRY"]._options = None
+ _globals["_EVALUATIONREQUEST_CONTEXTENTRY"]._serialized_options = b"8\001"
+ _globals["_EVALUATIONRESPONSE_REQUESTCONTEXTENTRY"]._options = None
+ _globals["_EVALUATIONRESPONSE_REQUESTCONTEXTENTRY"]._serialized_options = b"8\001"
+ _globals["_EVALUATIONRESPONSE"].fields_by_name["segment_key"]._options = None
+ _globals["_EVALUATIONRESPONSE"].fields_by_name[
+ "segment_key"
+ ]._serialized_options = b"\030\001"
+ _globals["_LISTNAMESPACEREQUEST"].fields_by_name["offset"]._options = None
+ _globals["_LISTNAMESPACEREQUEST"].fields_by_name[
+ "offset"
+ ]._serialized_options = b"\030\001"
+ _globals["_LISTFLAGREQUEST"].fields_by_name["offset"]._options = None
+ _globals["_LISTFLAGREQUEST"].fields_by_name[
+ "offset"
+ ]._serialized_options = b"\030\001"
+ _globals["_LISTSEGMENTREQUEST"].fields_by_name["offset"]._options = None
+ _globals["_LISTSEGMENTREQUEST"].fields_by_name[
+ "offset"
+ ]._serialized_options = b"\030\001"
+ _globals["_ROLLOUTSEGMENT"].fields_by_name["segment_key"]._options = None
+ _globals["_ROLLOUTSEGMENT"].fields_by_name[
+ "segment_key"
+ ]._serialized_options = b"\030\001"
+ _globals["_LISTRULEREQUEST"].fields_by_name["offset"]._options = None
+ _globals["_LISTRULEREQUEST"].fields_by_name[
+ "offset"
+ ]._serialized_options = b"\030\001"
+ _globals["_CREATERULEREQUEST"].fields_by_name["segment_key"]._options = None
+ _globals["_CREATERULEREQUEST"].fields_by_name[
+ "segment_key"
+ ]._serialized_options = b"\030\001"
+ _globals["_UPDATERULEREQUEST"].fields_by_name["segment_key"]._options = None
+ _globals["_UPDATERULEREQUEST"].fields_by_name[
+ "segment_key"
+ ]._serialized_options = b"\030\001"
+ _globals["_FLIPT"].methods_by_name["Evaluate"]._options = None
+ _globals["_FLIPT"].methods_by_name["Evaluate"]._serialized_options = b"\210\002\001"
+ _globals["_FLIPT"].methods_by_name["BatchEvaluate"]._options = None
+ _globals["_FLIPT"].methods_by_name[
+ "BatchEvaluate"
+ ]._serialized_options = b"\210\002\001"
+ _globals["_EVALUATIONREASON"]._serialized_start = 7747
+ _globals["_EVALUATIONREASON"]._serialized_end = 7929
+ _globals["_FLAGTYPE"]._serialized_start = 7931
+ _globals["_FLAGTYPE"]._serialized_end = 7987
+ _globals["_MATCHTYPE"]._serialized_start = 7989
+ _globals["_MATCHTYPE"]._serialized_end = 8040
+ _globals["_COMPARISONTYPE"]._serialized_start = 8043
+ _globals["_COMPARISONTYPE"]._serialized_end = 8234
+ _globals["_ROLLOUTTYPE"]._serialized_start = 8236
+ _globals["_ROLLOUTTYPE"]._serialized_end = 8329
+ _globals["_SEGMENTOPERATOR"]._serialized_start = 8331
+ _globals["_SEGMENTOPERATOR"]._serialized_end = 8399
+ _globals["_EVALUATIONREQUEST"]._serialized_start = 126
+ _globals["_EVALUATIONREQUEST"]._serialized_end = 329
+ _globals["_EVALUATIONREQUEST_CONTEXTENTRY"]._serialized_start = 283
+ _globals["_EVALUATIONREQUEST_CONTEXTENTRY"]._serialized_end = 329
+ _globals["_BATCHEVALUATIONREQUEST"]._serialized_start = 332
+ _globals["_BATCHEVALUATIONREQUEST"]._serialized_end = 470
+ _globals["_BATCHEVALUATIONRESPONSE"]._serialized_start = 472
+ _globals["_BATCHEVALUATIONRESPONSE"]._serialized_end = 596
+ _globals["_EVALUATIONRESPONSE"]._serialized_start = 599
+ _globals["_EVALUATIONRESPONSE"]._serialized_end = 1044
+ _globals["_EVALUATIONRESPONSE_REQUESTCONTEXTENTRY"]._serialized_start = 991
+ _globals["_EVALUATIONRESPONSE_REQUESTCONTEXTENTRY"]._serialized_end = 1044
+ _globals["_NAMESPACE"]._serialized_start = 1047
+ _globals["_NAMESPACE"]._serialized_end = 1221
+ _globals["_NAMESPACELIST"]._serialized_start = 1223
+ _globals["_NAMESPACELIST"]._serialized_end = 1322
+ _globals["_GETNAMESPACEREQUEST"]._serialized_start = 1324
+ _globals["_GETNAMESPACEREQUEST"]._serialized_end = 1377
+ _globals["_LISTNAMESPACEREQUEST"]._serialized_start = 1379
+ _globals["_LISTNAMESPACEREQUEST"]._serialized_end = 1475
+ _globals["_CREATENAMESPACEREQUEST"]._serialized_start = 1477
+ _globals["_CREATENAMESPACEREQUEST"]._serialized_end = 1549
+ _globals["_UPDATENAMESPACEREQUEST"]._serialized_start = 1551
+ _globals["_UPDATENAMESPACEREQUEST"]._serialized_end = 1623
+ _globals["_DELETENAMESPACEREQUEST"]._serialized_start = 1625
+ _globals["_DELETENAMESPACEREQUEST"]._serialized_end = 1662
+ _globals["_FLAG"]._serialized_start = 1665
+ _globals["_FLAG"]._serialized_end = 1920
+ _globals["_FLAGLIST"]._serialized_start = 1922
+ _globals["_FLAGLIST"]._serialized_end = 2006
+ _globals["_GETFLAGREQUEST"]._serialized_start = 2008
+ _globals["_GETFLAGREQUEST"]._serialized_end = 2079
+ _globals["_LISTFLAGREQUEST"]._serialized_start = 2081
+ _globals["_LISTFLAGREQUEST"]._serialized_end = 2195
+ _globals["_CREATEFLAGREQUEST"]._serialized_start = 2198
+ _globals["_CREATEFLAGREQUEST"]._serialized_end = 2336
+ _globals["_UPDATEFLAGREQUEST"]._serialized_start = 2338
+ _globals["_UPDATEFLAGREQUEST"]._serialized_end = 2445
+ _globals["_DELETEFLAGREQUEST"]._serialized_start = 2447
+ _globals["_DELETEFLAGREQUEST"]._serialized_end = 2502
+ _globals["_VARIANT"]._serialized_start = 2505
+ _globals["_VARIANT"]._serialized_end = 2731
+ _globals["_CREATEVARIANTREQUEST"]._serialized_start = 2734
+ _globals["_CREATEVARIANTREQUEST"]._serialized_end = 2865
+ _globals["_UPDATEVARIANTREQUEST"]._serialized_start = 2868
+ _globals["_UPDATEVARIANTREQUEST"]._serialized_end = 3011
+ _globals["_DELETEVARIANTREQUEST"]._serialized_start = 3013
+ _globals["_DELETEVARIANTREQUEST"]._serialized_end = 3088
+ _globals["_SEGMENT"]._serialized_start = 3091
+ _globals["_SEGMENT"]._serialized_end = 3345
+ _globals["_SEGMENTLIST"]._serialized_start = 3347
+ _globals["_SEGMENTLIST"]._serialized_end = 3440
+ _globals["_GETSEGMENTREQUEST"]._serialized_start = 3442
+ _globals["_GETSEGMENTREQUEST"]._serialized_end = 3516
+ _globals["_LISTSEGMENTREQUEST"]._serialized_start = 3518
+ _globals["_LISTSEGMENTREQUEST"]._serialized_end = 3635
+ _globals["_CREATESEGMENTREQUEST"]._serialized_start = 3638
+ _globals["_CREATESEGMENTREQUEST"]._serialized_end = 3769
+ _globals["_UPDATESEGMENTREQUEST"]._serialized_start = 3772
+ _globals["_UPDATESEGMENTREQUEST"]._serialized_end = 3903
+ _globals["_DELETESEGMENTREQUEST"]._serialized_start = 3905
+ _globals["_DELETESEGMENTREQUEST"]._serialized_end = 3963
+ _globals["_CONSTRAINT"]._serialized_start = 3966
+ _globals["_CONSTRAINT"]._serialized_end = 4239
+ _globals["_CREATECONSTRAINTREQUEST"]._serialized_start = 4242
+ _globals["_CREATECONSTRAINTREQUEST"]._serialized_end = 4420
+ _globals["_UPDATECONSTRAINTREQUEST"]._serialized_start = 4423
+ _globals["_UPDATECONSTRAINTREQUEST"]._serialized_end = 4613
+ _globals["_DELETECONSTRAINTREQUEST"]._serialized_start = 4615
+ _globals["_DELETECONSTRAINTREQUEST"]._serialized_end = 4696
+ _globals["_ROLLOUT"]._serialized_start = 4699
+ _globals["_ROLLOUT"]._serialized_end = 5022
+ _globals["_ROLLOUTSEGMENT"]._serialized_start = 5025
+ _globals["_ROLLOUTSEGMENT"]._serialized_end = 5153
+ _globals["_ROLLOUTTHRESHOLD"]._serialized_start = 5155
+ _globals["_ROLLOUTTHRESHOLD"]._serialized_end = 5208
+ _globals["_ROLLOUTLIST"]._serialized_start = 5210
+ _globals["_ROLLOUTLIST"]._serialized_end = 5300
+ _globals["_LISTROLLOUTREQUEST"]._serialized_start = 5302
+ _globals["_LISTROLLOUTREQUEST"]._serialized_end = 5417
+ _globals["_GETROLLOUTREQUEST"]._serialized_start = 5419
+ _globals["_GETROLLOUTREQUEST"]._serialized_end = 5510
+ _globals["_CREATEROLLOUTREQUEST"]._serialized_start = 5513
+ _globals["_CREATEROLLOUTREQUEST"]._serialized_end = 5707
+ _globals["_UPDATEROLLOUTREQUEST"]._serialized_start = 5710
+ _globals["_UPDATEROLLOUTREQUEST"]._serialized_end = 5902
+ _globals["_DELETEROLLOUTREQUEST"]._serialized_start = 5904
+ _globals["_DELETEROLLOUTREQUEST"]._serialized_end = 5979
+ _globals["_ORDERROLLOUTSREQUEST"]._serialized_start = 5981
+ _globals["_ORDERROLLOUTSREQUEST"]._serialized_end = 6065
+ _globals["_RULE"]._serialized_start = 6068
+ _globals["_RULE"]._serialized_end = 6374
+ _globals["_RULELIST"]._serialized_start = 6376
+ _globals["_RULELIST"]._serialized_end = 6460
+ _globals["_LISTRULEREQUEST"]._serialized_start = 6463
+ _globals["_LISTRULEREQUEST"]._serialized_end = 6595
+ _globals["_GETRULEREQUEST"]._serialized_start = 6597
+ _globals["_GETRULEREQUEST"]._serialized_end = 6685
+ _globals["_CREATERULEREQUEST"]._serialized_start = 6688
+ _globals["_CREATERULEREQUEST"]._serialized_end = 6859
+ _globals["_UPDATERULEREQUEST"]._serialized_start = 6862
+ _globals["_UPDATERULEREQUEST"]._serialized_end = 7031
+ _globals["_DELETERULEREQUEST"]._serialized_start = 7033
+ _globals["_DELETERULEREQUEST"]._serialized_end = 7105
+ _globals["_ORDERRULESREQUEST"]._serialized_start = 7107
+ _globals["_ORDERRULESREQUEST"]._serialized_end = 7185
+ _globals["_DISTRIBUTION"]._serialized_start = 7188
+ _globals["_DISTRIBUTION"]._serialized_end = 7364
+ _globals["_CREATEDISTRIBUTIONREQUEST"]._serialized_start = 7366
+ _globals["_CREATEDISTRIBUTIONREQUEST"]._serialized_end = 7488
+ _globals["_UPDATEDISTRIBUTIONREQUEST"]._serialized_start = 7491
+ _globals["_UPDATEDISTRIBUTIONREQUEST"]._serialized_end = 7625
+ _globals["_DELETEDISTRIBUTIONREQUEST"]._serialized_start = 7627
+ _globals["_DELETEDISTRIBUTIONREQUEST"]._serialized_end = 7744
+ _globals["_FLIPT"]._serialized_start = 8402
+ _globals["_FLIPT"]._serialized_end = 10925
+# @@protoc_insertion_point(module_scope)
diff --git a/unstract/flags/src/unstract/flags/generated/flipt_pb2_grpc.py b/unstract/flags/src/unstract/flags/generated/flipt_pb2_grpc.py
new file mode 100644
index 000000000..a4064597e
--- /dev/null
+++ b/unstract/flags/src/unstract/flags/generated/flipt_pb2_grpc.py
@@ -0,0 +1,1748 @@
+# flake8: noqa
+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
+"""Client and server classes corresponding to protobuf-defined services."""
+import grpc
+from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
+
+from . import (
+ flipt_pb2 as unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2,
+)
+
+
+class FliptStub:
+ """Missing associated documentation comment in .proto file."""
+
+ def __init__(self, channel):
+ """Constructor.
+
+ Args:
+ channel: A grpc.Channel.
+ """
+ self.Evaluate = channel.unary_unary(
+ "/flipt.Flipt/Evaluate",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.EvaluationRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.EvaluationResponse.FromString,
+ )
+ self.BatchEvaluate = channel.unary_unary(
+ "/flipt.Flipt/BatchEvaluate",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.BatchEvaluationRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.BatchEvaluationResponse.FromString,
+ )
+ self.GetNamespace = channel.unary_unary(
+ "/flipt.Flipt/GetNamespace",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetNamespaceRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.FromString,
+ )
+ self.ListNamespaces = channel.unary_unary(
+ "/flipt.Flipt/ListNamespaces",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListNamespaceRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.NamespaceList.FromString,
+ )
+ self.CreateNamespace = channel.unary_unary(
+ "/flipt.Flipt/CreateNamespace",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateNamespaceRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.FromString,
+ )
+ self.UpdateNamespace = channel.unary_unary(
+ "/flipt.Flipt/UpdateNamespace",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateNamespaceRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.FromString,
+ )
+ self.DeleteNamespace = channel.unary_unary(
+ "/flipt.Flipt/DeleteNamespace",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteNamespaceRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.GetFlag = channel.unary_unary(
+ "/flipt.Flipt/GetFlag",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetFlagRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.FromString,
+ )
+ self.ListFlags = channel.unary_unary(
+ "/flipt.Flipt/ListFlags",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListFlagRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.FlagList.FromString,
+ )
+ self.CreateFlag = channel.unary_unary(
+ "/flipt.Flipt/CreateFlag",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateFlagRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.FromString,
+ )
+ self.UpdateFlag = channel.unary_unary(
+ "/flipt.Flipt/UpdateFlag",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateFlagRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.FromString,
+ )
+ self.DeleteFlag = channel.unary_unary(
+ "/flipt.Flipt/DeleteFlag",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteFlagRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.CreateVariant = channel.unary_unary(
+ "/flipt.Flipt/CreateVariant",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateVariantRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Variant.FromString,
+ )
+ self.UpdateVariant = channel.unary_unary(
+ "/flipt.Flipt/UpdateVariant",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateVariantRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Variant.FromString,
+ )
+ self.DeleteVariant = channel.unary_unary(
+ "/flipt.Flipt/DeleteVariant",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteVariantRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.GetRule = channel.unary_unary(
+ "/flipt.Flipt/GetRule",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetRuleRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.FromString,
+ )
+ self.ListRules = channel.unary_unary(
+ "/flipt.Flipt/ListRules",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListRuleRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.RuleList.FromString,
+ )
+ self.CreateRule = channel.unary_unary(
+ "/flipt.Flipt/CreateRule",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateRuleRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.FromString,
+ )
+ self.UpdateRule = channel.unary_unary(
+ "/flipt.Flipt/UpdateRule",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateRuleRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.FromString,
+ )
+ self.OrderRules = channel.unary_unary(
+ "/flipt.Flipt/OrderRules",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.OrderRulesRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.DeleteRule = channel.unary_unary(
+ "/flipt.Flipt/DeleteRule",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteRuleRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.GetRollout = channel.unary_unary(
+ "/flipt.Flipt/GetRollout",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetRolloutRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.FromString,
+ )
+ self.ListRollouts = channel.unary_unary(
+ "/flipt.Flipt/ListRollouts",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListRolloutRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.RolloutList.FromString,
+ )
+ self.CreateRollout = channel.unary_unary(
+ "/flipt.Flipt/CreateRollout",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateRolloutRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.FromString,
+ )
+ self.UpdateRollout = channel.unary_unary(
+ "/flipt.Flipt/UpdateRollout",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateRolloutRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.FromString,
+ )
+ self.DeleteRollout = channel.unary_unary(
+ "/flipt.Flipt/DeleteRollout",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteRolloutRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.OrderRollouts = channel.unary_unary(
+ "/flipt.Flipt/OrderRollouts",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.OrderRolloutsRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.CreateDistribution = channel.unary_unary(
+ "/flipt.Flipt/CreateDistribution",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateDistributionRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Distribution.FromString,
+ )
+ self.UpdateDistribution = channel.unary_unary(
+ "/flipt.Flipt/UpdateDistribution",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateDistributionRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Distribution.FromString,
+ )
+ self.DeleteDistribution = channel.unary_unary(
+ "/flipt.Flipt/DeleteDistribution",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteDistributionRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.GetSegment = channel.unary_unary(
+ "/flipt.Flipt/GetSegment",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetSegmentRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.FromString,
+ )
+ self.ListSegments = channel.unary_unary(
+ "/flipt.Flipt/ListSegments",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListSegmentRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.SegmentList.FromString,
+ )
+ self.CreateSegment = channel.unary_unary(
+ "/flipt.Flipt/CreateSegment",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateSegmentRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.FromString,
+ )
+ self.UpdateSegment = channel.unary_unary(
+ "/flipt.Flipt/UpdateSegment",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateSegmentRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.FromString,
+ )
+ self.DeleteSegment = channel.unary_unary(
+ "/flipt.Flipt/DeleteSegment",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteSegmentRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.CreateConstraint = channel.unary_unary(
+ "/flipt.Flipt/CreateConstraint",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateConstraintRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Constraint.FromString,
+ )
+ self.UpdateConstraint = channel.unary_unary(
+ "/flipt.Flipt/UpdateConstraint",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateConstraintRequest.SerializeToString,
+ response_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Constraint.FromString,
+ )
+ self.DeleteConstraint = channel.unary_unary(
+ "/flipt.Flipt/DeleteConstraint",
+ request_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteConstraintRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+
+
+class FliptServicer:
+ """Missing associated documentation comment in .proto file."""
+
+ def Evaluate(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def BatchEvaluate(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def GetNamespace(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def ListNamespaces(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateNamespace(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateNamespace(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteNamespace(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def GetFlag(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def ListFlags(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateFlag(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateFlag(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteFlag(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateVariant(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateVariant(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteVariant(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def GetRule(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def ListRules(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateRule(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateRule(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def OrderRules(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteRule(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def GetRollout(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def ListRollouts(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateRollout(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateRollout(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteRollout(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def OrderRollouts(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateDistribution(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateDistribution(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteDistribution(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def GetSegment(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def ListSegments(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateSegment(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateSegment(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteSegment(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def CreateConstraint(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateConstraint(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def DeleteConstraint(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+
+def add_FliptServicer_to_server(servicer, server):
+ rpc_method_handlers = {
+ "Evaluate": grpc.unary_unary_rpc_method_handler(
+ servicer.Evaluate,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.EvaluationRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.EvaluationResponse.SerializeToString,
+ ),
+ "BatchEvaluate": grpc.unary_unary_rpc_method_handler(
+ servicer.BatchEvaluate,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.BatchEvaluationRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.BatchEvaluationResponse.SerializeToString,
+ ),
+ "GetNamespace": grpc.unary_unary_rpc_method_handler(
+ servicer.GetNamespace,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetNamespaceRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.SerializeToString,
+ ),
+ "ListNamespaces": grpc.unary_unary_rpc_method_handler(
+ servicer.ListNamespaces,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListNamespaceRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.NamespaceList.SerializeToString,
+ ),
+ "CreateNamespace": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateNamespace,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateNamespaceRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.SerializeToString,
+ ),
+ "UpdateNamespace": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateNamespace,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateNamespaceRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.SerializeToString,
+ ),
+ "DeleteNamespace": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteNamespace,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteNamespaceRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "GetFlag": grpc.unary_unary_rpc_method_handler(
+ servicer.GetFlag,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetFlagRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.SerializeToString,
+ ),
+ "ListFlags": grpc.unary_unary_rpc_method_handler(
+ servicer.ListFlags,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListFlagRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.FlagList.SerializeToString,
+ ),
+ "CreateFlag": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateFlag,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateFlagRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.SerializeToString,
+ ),
+ "UpdateFlag": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateFlag,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateFlagRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.SerializeToString,
+ ),
+ "DeleteFlag": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteFlag,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteFlagRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "CreateVariant": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateVariant,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateVariantRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Variant.SerializeToString,
+ ),
+ "UpdateVariant": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateVariant,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateVariantRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Variant.SerializeToString,
+ ),
+ "DeleteVariant": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteVariant,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteVariantRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "GetRule": grpc.unary_unary_rpc_method_handler(
+ servicer.GetRule,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetRuleRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.SerializeToString,
+ ),
+ "ListRules": grpc.unary_unary_rpc_method_handler(
+ servicer.ListRules,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListRuleRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.RuleList.SerializeToString,
+ ),
+ "CreateRule": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateRule,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateRuleRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.SerializeToString,
+ ),
+ "UpdateRule": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateRule,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateRuleRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.SerializeToString,
+ ),
+ "OrderRules": grpc.unary_unary_rpc_method_handler(
+ servicer.OrderRules,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.OrderRulesRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "DeleteRule": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteRule,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteRuleRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "GetRollout": grpc.unary_unary_rpc_method_handler(
+ servicer.GetRollout,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetRolloutRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.SerializeToString,
+ ),
+ "ListRollouts": grpc.unary_unary_rpc_method_handler(
+ servicer.ListRollouts,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListRolloutRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.RolloutList.SerializeToString,
+ ),
+ "CreateRollout": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateRollout,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateRolloutRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.SerializeToString,
+ ),
+ "UpdateRollout": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateRollout,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateRolloutRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.SerializeToString,
+ ),
+ "DeleteRollout": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteRollout,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteRolloutRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "OrderRollouts": grpc.unary_unary_rpc_method_handler(
+ servicer.OrderRollouts,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.OrderRolloutsRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "CreateDistribution": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateDistribution,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateDistributionRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Distribution.SerializeToString,
+ ),
+ "UpdateDistribution": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateDistribution,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateDistributionRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Distribution.SerializeToString,
+ ),
+ "DeleteDistribution": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteDistribution,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteDistributionRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "GetSegment": grpc.unary_unary_rpc_method_handler(
+ servicer.GetSegment,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetSegmentRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.SerializeToString,
+ ),
+ "ListSegments": grpc.unary_unary_rpc_method_handler(
+ servicer.ListSegments,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListSegmentRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.SegmentList.SerializeToString,
+ ),
+ "CreateSegment": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateSegment,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateSegmentRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.SerializeToString,
+ ),
+ "UpdateSegment": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateSegment,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateSegmentRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.SerializeToString,
+ ),
+ "DeleteSegment": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteSegment,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteSegmentRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ "CreateConstraint": grpc.unary_unary_rpc_method_handler(
+ servicer.CreateConstraint,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateConstraintRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Constraint.SerializeToString,
+ ),
+ "UpdateConstraint": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateConstraint,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateConstraintRequest.FromString,
+ response_serializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Constraint.SerializeToString,
+ ),
+ "DeleteConstraint": grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteConstraint,
+ request_deserializer=unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteConstraintRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ }
+ generic_handler = grpc.method_handlers_generic_handler(
+ "flipt.Flipt", rpc_method_handlers
+ )
+ server.add_generic_rpc_handlers((generic_handler,))
+
+
+# This class is part of an EXPERIMENTAL API.
+class Flipt:
+ """Missing associated documentation comment in .proto file."""
+
+ @staticmethod
+ def Evaluate(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/Evaluate",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.EvaluationRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.EvaluationResponse.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def BatchEvaluate(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/BatchEvaluate",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.BatchEvaluationRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.BatchEvaluationResponse.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def GetNamespace(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/GetNamespace",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetNamespaceRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def ListNamespaces(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/ListNamespaces",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListNamespaceRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.NamespaceList.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateNamespace(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateNamespace",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateNamespaceRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateNamespace(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateNamespace",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateNamespaceRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Namespace.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteNamespace(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteNamespace",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteNamespaceRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def GetFlag(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/GetFlag",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetFlagRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def ListFlags(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/ListFlags",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListFlagRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.FlagList.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateFlag(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateFlag",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateFlagRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateFlag(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateFlag",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateFlagRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Flag.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteFlag(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteFlag",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteFlagRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateVariant(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateVariant",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateVariantRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Variant.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateVariant(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateVariant",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateVariantRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Variant.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteVariant(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteVariant",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteVariantRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def GetRule(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/GetRule",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetRuleRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def ListRules(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/ListRules",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListRuleRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.RuleList.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateRule(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateRule",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateRuleRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateRule(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateRule",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateRuleRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rule.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def OrderRules(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/OrderRules",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.OrderRulesRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteRule(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteRule",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteRuleRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def GetRollout(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/GetRollout",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetRolloutRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def ListRollouts(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/ListRollouts",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListRolloutRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.RolloutList.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateRollout(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateRollout",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateRolloutRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateRollout(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateRollout",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateRolloutRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Rollout.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteRollout(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteRollout",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteRolloutRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def OrderRollouts(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/OrderRollouts",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.OrderRolloutsRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateDistribution(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateDistribution",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateDistributionRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Distribution.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateDistribution(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateDistribution",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateDistributionRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Distribution.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteDistribution(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteDistribution",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteDistributionRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def GetSegment(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/GetSegment",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.GetSegmentRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def ListSegments(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/ListSegments",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.ListSegmentRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.SegmentList.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateSegment(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateSegment",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateSegmentRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateSegment(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateSegment",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateSegmentRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Segment.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteSegment(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteSegment",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteSegmentRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def CreateConstraint(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/CreateConstraint",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.CreateConstraintRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Constraint.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateConstraint(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/UpdateConstraint",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.UpdateConstraintRequest.SerializeToString,
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.Constraint.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def DeleteConstraint(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/flipt.Flipt/DeleteConstraint",
+ unstract_dot_flags_dot_src_dot_unstract_dot_flags_dot_protos_dot_flipt__pb2.DeleteConstraintRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
diff --git a/unstract/flags/src/unstract/flags/protos/evaluation.proto b/unstract/flags/src/unstract/flags/proto/evaluation.proto
similarity index 100%
rename from unstract/flags/src/unstract/flags/protos/evaluation.proto
rename to unstract/flags/src/unstract/flags/proto/evaluation.proto
diff --git a/unstract/flags/src/unstract/flags/proto/flipt.proto b/unstract/flags/src/unstract/flags/proto/flipt.proto
new file mode 100644
index 000000000..7fcb7daed
--- /dev/null
+++ b/unstract/flags/src/unstract/flags/proto/flipt.proto
@@ -0,0 +1,535 @@
+syntax = "proto3";
+
+package flipt;
+
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "go.flipt.io/flipt/rpc/flipt";
+
+message EvaluationRequest {
+ string request_id = 1;
+ string flag_key = 2;
+ string entity_id = 3;
+ map<string, string> context = 4;
+ string namespace_key = 5;
+}
+
+message BatchEvaluationRequest {
+ string request_id = 1;
+ repeated EvaluationRequest requests = 2;
+ bool exclude_not_found = 3;
+ string namespace_key = 4;
+}
+
+message BatchEvaluationResponse {
+ string request_id = 1;
+ repeated EvaluationResponse responses = 2;
+ double request_duration_millis = 3;
+}
+
+message EvaluationResponse {
+ string request_id = 1;
+ string entity_id = 2;
+ map<string, string> request_context = 3;
+ bool match = 4;
+ string flag_key = 5;
+ string segment_key = 6 [deprecated = true];
+ google.protobuf.Timestamp timestamp = 7;
+ string value = 8;
+ double request_duration_millis = 9;
+ string attachment = 10;
+ EvaluationReason reason = 11;
+ string namespace_key = 12;
+ repeated string segment_keys = 13;
+}
+
+enum EvaluationReason {
+ UNKNOWN_EVALUATION_REASON = 0;
+ FLAG_DISABLED_EVALUATION_REASON = 1;
+ FLAG_NOT_FOUND_EVALUATION_REASON = 2;
+ MATCH_EVALUATION_REASON = 3;
+ ERROR_EVALUATION_REASON = 4;
+}
+
+message Namespace {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+ bool protected = 4;
+ google.protobuf.Timestamp created_at = 5;
+ google.protobuf.Timestamp updated_at = 6;
+}
+
+message NamespaceList {
+ repeated Namespace namespaces = 1;
+ string next_page_token = 2;
+ int32 total_count = 3;
+}
+
+message GetNamespaceRequest {
+ string key = 1;
+ string reference = 2;
+}
+
+message ListNamespaceRequest {
+ int32 limit = 1;
+ int32 offset = 2 [deprecated = true];
+ string page_token = 3;
+ string reference = 4;
+}
+
+message CreateNamespaceRequest {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+}
+
+message UpdateNamespaceRequest {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+}
+
+message DeleteNamespaceRequest {
+ string key = 1;
+}
+
+enum FlagType {
+ VARIANT_FLAG_TYPE = 0;
+ BOOLEAN_FLAG_TYPE = 1;
+}
+
+message Flag {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+ bool enabled = 4;
+ google.protobuf.Timestamp created_at = 5;
+ google.protobuf.Timestamp updated_at = 6;
+ repeated Variant variants = 7;
+ string namespace_key = 8;
+ FlagType type = 9;
+ }
+
+message FlagList {
+ repeated Flag flags = 1;
+ string next_page_token = 2;
+ int32 total_count = 3;
+}
+
+message GetFlagRequest {
+ string key = 1;
+ string namespace_key = 2;
+ string reference = 3;
+}
+
+message ListFlagRequest {
+ int32 limit = 1;
+ int32 offset = 2 [deprecated = true];
+ string page_token = 3;
+ string namespace_key = 4;
+ string reference = 5;
+}
+
+message CreateFlagRequest {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+ bool enabled = 4;
+ string namespace_key = 5;
+ FlagType type = 6;
+}
+
+message UpdateFlagRequest {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+ bool enabled = 4;
+ string namespace_key = 5;
+}
+
+message DeleteFlagRequest {
+ string key = 1;
+ string namespace_key = 2;
+}
+
+message Variant {
+ string id = 1;
+ string flag_key = 2;
+ string key = 3;
+ string name = 4;
+ string description = 5;
+ google.protobuf.Timestamp created_at = 6;
+ google.protobuf.Timestamp updated_at = 7;
+ string attachment = 8;
+ string namespace_key = 9;
+}
+
+message CreateVariantRequest {
+ string flag_key = 1;
+ string key = 2;
+ string name = 3;
+ string description = 4;
+ string attachment = 5;
+ string namespace_key = 6;
+}
+
+message UpdateVariantRequest {
+ string id = 1;
+ string flag_key = 2;
+ string key = 3;
+ string name = 4;
+ string description = 5;
+ string attachment = 6;
+ string namespace_key = 7;
+}
+
+message DeleteVariantRequest {
+ string id = 1;
+ string flag_key = 2;
+ string namespace_key = 3;
+}
+
+enum MatchType {
+ ALL_MATCH_TYPE = 0;
+ ANY_MATCH_TYPE = 1;
+}
+
+message Segment {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+ google.protobuf.Timestamp created_at = 4;
+ google.protobuf.Timestamp updated_at = 5;
+ repeated Constraint constraints = 6;
+ MatchType match_type = 7;
+ string namespace_key = 8;
+}
+
+message SegmentList {
+ repeated Segment segments = 1;
+ string next_page_token = 2;
+ int32 total_count = 3;
+}
+
+message GetSegmentRequest {
+ string key = 1;
+ string namespace_key = 2;
+ string reference = 3;
+}
+
+message ListSegmentRequest {
+ int32 limit = 1;
+ int32 offset = 2 [deprecated = true];
+ string page_token = 3;
+ string namespace_key = 4;
+ string reference = 5;
+}
+
+message CreateSegmentRequest {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+ MatchType match_type = 4;
+ string namespace_key = 5;
+}
+
+message UpdateSegmentRequest {
+ string key = 1;
+ string name = 2;
+ string description = 3;
+ MatchType match_type = 4;
+ string namespace_key = 5;
+}
+
+message DeleteSegmentRequest {
+ string key = 1;
+ string namespace_key = 2;
+}
+
+enum ComparisonType {
+ UNKNOWN_COMPARISON_TYPE = 0;
+ STRING_COMPARISON_TYPE = 1;
+ NUMBER_COMPARISON_TYPE = 2;
+ BOOLEAN_COMPARISON_TYPE = 3;
+ DATETIME_COMPARISON_TYPE = 4;
+ ENTITY_ID_COMPARISON_TYPE = 5;
+}
+
+message Constraint {
+ string id = 1;
+ string segment_key = 2;
+ ComparisonType type = 3;
+ string property = 4;
+ string operator = 5;
+ string value = 6;
+ google.protobuf.Timestamp created_at = 7;
+ google.protobuf.Timestamp updated_at = 8;
+ string namespace_key = 9;
+ string description = 10;
+}
+
+message CreateConstraintRequest {
+ string segment_key = 1;
+ ComparisonType type = 2;
+ string property = 3;
+ string operator = 4;
+ string value = 5;
+ string namespace_key = 6;
+ string description = 7;
+}
+
+message UpdateConstraintRequest {
+ string id = 1;
+ string segment_key = 2;
+ ComparisonType type = 3;
+ string property = 4;
+ string operator = 5;
+ string value = 6;
+ string namespace_key = 7;
+ string description = 8;
+}
+
+message DeleteConstraintRequest {
+ string id = 1;
+ string segment_key = 2;
+ string namespace_key = 3;
+}
+
+enum RolloutType {
+ UNKNOWN_ROLLOUT_TYPE = 0;
+ SEGMENT_ROLLOUT_TYPE = 1;
+ THRESHOLD_ROLLOUT_TYPE = 2;
+}
+
+enum SegmentOperator {
+ OR_SEGMENT_OPERATOR = 0;
+ AND_SEGMENT_OPERATOR = 1;
+}
+
+message Rollout {
+ string id = 1;
+ string namespace_key = 2;
+ string flag_key = 3;
+ RolloutType type = 4;
+ int32 rank = 5;
+ string description = 6;
+ google.protobuf.Timestamp created_at = 7;
+ google.protobuf.Timestamp updated_at = 8;
+ oneof rule {
+ RolloutSegment segment = 20;
+ RolloutThreshold threshold = 21;
+ }
+}
+
+message RolloutSegment {
+ string segment_key = 1 [deprecated = true];
+ bool value = 2;
+ repeated string segment_keys = 3;
+ SegmentOperator segment_operator = 4;
+}
+
+message RolloutThreshold {
+ float percentage = 1;
+ bool value = 2;
+}
+
+message RolloutList {
+ repeated Rollout rules = 1;
+ string next_page_token = 2;
+ int32 total_count = 3;
+}
+
+message ListRolloutRequest {
+ string namespace_key = 1;
+ string flag_key = 2;
+ int32 limit = 3;
+ string page_token = 4;
+ string reference = 5;
+}
+
+message GetRolloutRequest {
+ string id = 1;
+ string namespace_key = 2;
+ string flag_key = 3;
+ string reference = 4;
+}
+
+message CreateRolloutRequest {
+ string namespace_key = 1;
+ string flag_key = 2;
+ int32 rank = 3;
+ string description = 4;
+ oneof rule {
+ RolloutSegment segment = 20;
+ RolloutThreshold threshold = 21;
+ }
+}
+
+message UpdateRolloutRequest {
+ string id = 1;
+ string namespace_key = 2;
+ string flag_key = 3;
+ string description = 4;
+ oneof rule {
+ RolloutSegment segment = 20;
+ RolloutThreshold threshold = 21;
+ }
+}
+
+message DeleteRolloutRequest {
+ string id = 1;
+ string namespace_key = 2;
+ string flag_key = 3;
+}
+
+message OrderRolloutsRequest {
+ string flag_key = 1;
+ string namespace_key = 2;
+ repeated string rollout_ids = 3;
+}
+
+message Rule {
+ string id = 1;
+ string flag_key = 2;
+ string segment_key = 3;
+ repeated Distribution distributions = 4;
+ int32 rank = 5;
+ google.protobuf.Timestamp created_at = 6;
+ google.protobuf.Timestamp updated_at = 7;
+ string namespace_key = 8;
+ repeated string segment_keys = 9;
+ SegmentOperator segment_operator = 10;
+}
+
+message RuleList {
+ repeated Rule rules = 1;
+ string next_page_token = 2;
+ int32 total_count = 3;
+}
+
+message ListRuleRequest {
+ int32 limit = 1;
+ int32 offset = 2 [deprecated = true];
+ string flag_key = 3;
+ string page_token = 4;
+ string namespace_key = 5;
+ string reference = 6;
+}
+
+message GetRuleRequest {
+ string id = 1;
+ string flag_key = 2;
+ string namespace_key = 3;
+ string reference = 4;
+}
+
+message CreateRuleRequest {
+ string flag_key = 1;
+ string segment_key = 2 [deprecated = true];
+ int32 rank = 3;
+ string namespace_key = 4;
+ repeated string segment_keys = 5;
+ SegmentOperator segment_operator = 6;
+}
+
+message UpdateRuleRequest {
+ string id = 1;
+ string flag_key = 2;
+ string segment_key = 3 [deprecated = true];
+ string namespace_key = 4;
+ repeated string segment_keys = 5;
+ SegmentOperator segment_operator = 6;
+}
+
+message DeleteRuleRequest {
+ string id = 1;
+ string flag_key = 2;
+ string namespace_key = 3;
+}
+
+message OrderRulesRequest {
+ string flag_key = 1;
+ repeated string rule_ids = 2;
+ string namespace_key = 3;
+}
+
+message Distribution {
+ string id = 1;
+ string rule_id = 2;
+ string variant_id = 3;
+ float rollout = 4;
+ google.protobuf.Timestamp created_at = 5;
+ google.protobuf.Timestamp updated_at = 6;
+}
+
+message CreateDistributionRequest {
+ string flag_key = 1;
+ string rule_id = 2;
+ string variant_id = 3;
+ float rollout = 4;
+ string namespace_key = 5;
+}
+
+message UpdateDistributionRequest {
+ string id = 1;
+ string flag_key = 2;
+ string rule_id = 3;
+ string variant_id = 4;
+ float rollout = 5;
+ string namespace_key = 6;
+}
+
+message DeleteDistributionRequest {
+ string id = 1;
+ string flag_key = 2;
+ string rule_id = 3;
+ string variant_id = 4;
+ string namespace_key = 5;
+}
+
+service Flipt {
+ rpc Evaluate(EvaluationRequest) returns (EvaluationResponse) {
+ option deprecated = true;
+ }
+ rpc BatchEvaluate(BatchEvaluationRequest) returns (BatchEvaluationResponse) {
+ option deprecated = true;
+ }
+ rpc GetNamespace(GetNamespaceRequest) returns (Namespace) { }
+ rpc ListNamespaces(ListNamespaceRequest) returns (NamespaceList) {}
+ rpc CreateNamespace(CreateNamespaceRequest) returns (Namespace) {}
+ rpc UpdateNamespace(UpdateNamespaceRequest) returns (Namespace) {}
+ rpc DeleteNamespace(DeleteNamespaceRequest) returns (google.protobuf.Empty) {}
+ rpc GetFlag(GetFlagRequest) returns (Flag) {}
+ rpc ListFlags(ListFlagRequest) returns (FlagList) {}
+ rpc CreateFlag(CreateFlagRequest) returns (Flag) {}
+ rpc UpdateFlag(UpdateFlagRequest) returns (Flag) {}
+ rpc DeleteFlag(DeleteFlagRequest) returns (google.protobuf.Empty) {}
+ rpc CreateVariant(CreateVariantRequest) returns (Variant) {}
+ rpc UpdateVariant(UpdateVariantRequest) returns (Variant) {}
+ rpc DeleteVariant(DeleteVariantRequest) returns (google.protobuf.Empty) {}
+ rpc GetRule(GetRuleRequest) returns (Rule) {}
+ rpc ListRules(ListRuleRequest) returns (RuleList) {}
+ rpc CreateRule(CreateRuleRequest) returns (Rule) {}
+ rpc UpdateRule(UpdateRuleRequest) returns (Rule) {}
+ rpc OrderRules(OrderRulesRequest) returns (google.protobuf.Empty) {}
+ rpc DeleteRule(DeleteRuleRequest) returns (google.protobuf.Empty) {}
+ rpc GetRollout(GetRolloutRequest) returns (Rollout) {}
+ rpc ListRollouts(ListRolloutRequest) returns (RolloutList) {}
+ rpc CreateRollout(CreateRolloutRequest) returns (Rollout) {}
+ rpc UpdateRollout(UpdateRolloutRequest) returns (Rollout) {}
+ rpc DeleteRollout(DeleteRolloutRequest) returns (google.protobuf.Empty) {}
+ rpc OrderRollouts(OrderRolloutsRequest) returns (google.protobuf.Empty) {}
+ rpc CreateDistribution(CreateDistributionRequest) returns (Distribution) {}
+ rpc UpdateDistribution(UpdateDistributionRequest) returns (Distribution) {}
+ rpc DeleteDistribution(DeleteDistributionRequest) returns (google.protobuf.Empty) {}
+ rpc GetSegment(GetSegmentRequest) returns (Segment) {}
+ rpc ListSegments(ListSegmentRequest) returns (SegmentList) {}
+ rpc CreateSegment(CreateSegmentRequest) returns (Segment) {}
+ rpc UpdateSegment(UpdateSegmentRequest) returns (Segment) {}
+ rpc DeleteSegment(DeleteSegmentRequest) returns (google.protobuf.Empty) {}
+ rpc CreateConstraint(CreateConstraintRequest) returns (Constraint) {}
+ rpc UpdateConstraint(UpdateConstraintRequest) returns (Constraint) {}
+ rpc DeleteConstraint(DeleteConstraintRequest) returns (google.protobuf.Empty) {}
+}