sift-stack-py 0.3.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. google/__init__.py +1 -0
  2. google/api/__init__.py +0 -0
  3. google/api/annotations_pb2.py +27 -0
  4. google/api/annotations_pb2.pyi +29 -0
  5. google/api/annotations_pb2_grpc.py +4 -0
  6. google/api/annotations_pb2_grpc.pyi +30 -0
  7. google/api/field_behavior_pb2.py +30 -0
  8. google/api/field_behavior_pb2.pyi +175 -0
  9. google/api/field_behavior_pb2_grpc.py +4 -0
  10. google/api/field_behavior_pb2_grpc.pyi +30 -0
  11. google/api/http_pb2.py +31 -0
  12. google/api/http_pb2.pyi +433 -0
  13. google/api/http_pb2_grpc.py +4 -0
  14. google/api/http_pb2_grpc.pyi +30 -0
  15. protoc_gen_openapiv2/__init__.py +0 -0
  16. protoc_gen_openapiv2/options/__init__.py +0 -0
  17. protoc_gen_openapiv2/options/annotations_pb2.py +27 -0
  18. protoc_gen_openapiv2/options/annotations_pb2.pyi +48 -0
  19. protoc_gen_openapiv2/options/annotations_pb2_grpc.py +4 -0
  20. protoc_gen_openapiv2/options/annotations_pb2_grpc.pyi +17 -0
  21. protoc_gen_openapiv2/options/openapiv2_pb2.py +132 -0
  22. protoc_gen_openapiv2/options/openapiv2_pb2.pyi +1533 -0
  23. protoc_gen_openapiv2/options/openapiv2_pb2_grpc.py +4 -0
  24. protoc_gen_openapiv2/options/openapiv2_pb2_grpc.pyi +17 -0
  25. sift/__init__.py +0 -0
  26. sift/annotation_logs/__init__.py +0 -0
  27. sift/annotation_logs/v1/__init__.py +0 -0
  28. sift/annotation_logs/v1/annotation_logs_pb2.py +115 -0
  29. sift/annotation_logs/v1/annotation_logs_pb2.pyi +370 -0
  30. sift/annotation_logs/v1/annotation_logs_pb2_grpc.py +135 -0
  31. sift/annotation_logs/v1/annotation_logs_pb2_grpc.pyi +84 -0
  32. sift/annotations/__init__.py +0 -0
  33. sift/annotations/v1/__init__.py +0 -0
  34. sift/annotations/v1/annotations_pb2.py +180 -0
  35. sift/annotations/v1/annotations_pb2.pyi +539 -0
  36. sift/annotations/v1/annotations_pb2_grpc.py +237 -0
  37. sift/annotations/v1/annotations_pb2_grpc.pyi +144 -0
  38. sift/assets/__init__.py +0 -0
  39. sift/assets/v1/__init__.py +0 -0
  40. sift/assets/v1/assets_pb2.py +90 -0
  41. sift/assets/v1/assets_pb2.pyi +235 -0
  42. sift/assets/v1/assets_pb2_grpc.py +168 -0
  43. sift/assets/v1/assets_pb2_grpc.pyi +101 -0
  44. sift/calculated_channels/__init__.py +0 -0
  45. sift/calculated_channels/v1/__init__.py +0 -0
  46. sift/calculated_channels/v1/calculated_channels_pb2.py +99 -0
  47. sift/calculated_channels/v1/calculated_channels_pb2.pyi +280 -0
  48. sift/calculated_channels/v1/calculated_channels_pb2_grpc.py +101 -0
  49. sift/calculated_channels/v1/calculated_channels_pb2_grpc.pyi +64 -0
  50. sift/campaigns/__init__.py +0 -0
  51. sift/campaigns/v1/__init__.py +0 -0
  52. sift/campaigns/v1/campaigns_pb2.py +144 -0
  53. sift/campaigns/v1/campaigns_pb2.pyi +383 -0
  54. sift/campaigns/v1/campaigns_pb2_grpc.py +169 -0
  55. sift/campaigns/v1/campaigns_pb2_grpc.pyi +104 -0
  56. sift/channel_schemas/__init__.py +0 -0
  57. sift/channel_schemas/v1/__init__.py +0 -0
  58. sift/channel_schemas/v1/channel_schemas_pb2.py +69 -0
  59. sift/channel_schemas/v1/channel_schemas_pb2.pyi +117 -0
  60. sift/channel_schemas/v1/channel_schemas_pb2_grpc.py +101 -0
  61. sift/channel_schemas/v1/channel_schemas_pb2_grpc.pyi +64 -0
  62. sift/channels/__init__.py +0 -0
  63. sift/channels/v2/__init__.py +0 -0
  64. sift/channels/v2/channels_pb2.py +88 -0
  65. sift/channels/v2/channels_pb2.pyi +183 -0
  66. sift/channels/v2/channels_pb2_grpc.py +101 -0
  67. sift/channels/v2/channels_pb2_grpc.pyi +64 -0
  68. sift/common/__init__.py +0 -0
  69. sift/common/type/__init__.py +0 -0
  70. sift/common/type/v1/__init__.py +0 -0
  71. sift/common/type/v1/channel_bit_field_element_pb2.py +34 -0
  72. sift/common/type/v1/channel_bit_field_element_pb2.pyi +33 -0
  73. sift/common/type/v1/channel_bit_field_element_pb2_grpc.py +4 -0
  74. sift/common/type/v1/channel_bit_field_element_pb2_grpc.pyi +17 -0
  75. sift/common/type/v1/channel_data_type_pb2.py +29 -0
  76. sift/common/type/v1/channel_data_type_pb2.pyi +50 -0
  77. sift/common/type/v1/channel_data_type_pb2_grpc.py +4 -0
  78. sift/common/type/v1/channel_data_type_pb2_grpc.pyi +17 -0
  79. sift/common/type/v1/channel_enum_type_pb2.py +32 -0
  80. sift/common/type/v1/channel_enum_type_pb2.pyi +29 -0
  81. sift/common/type/v1/channel_enum_type_pb2_grpc.py +4 -0
  82. sift/common/type/v1/channel_enum_type_pb2_grpc.pyi +17 -0
  83. sift/common/type/v1/organization_pb2.py +27 -0
  84. sift/common/type/v1/organization_pb2.pyi +29 -0
  85. sift/common/type/v1/organization_pb2_grpc.py +4 -0
  86. sift/common/type/v1/organization_pb2_grpc.pyi +17 -0
  87. sift/common/type/v1/resource_identifier_pb2.py +46 -0
  88. sift/common/type/v1/resource_identifier_pb2.pyi +145 -0
  89. sift/common/type/v1/resource_identifier_pb2_grpc.py +4 -0
  90. sift/common/type/v1/resource_identifier_pb2_grpc.pyi +17 -0
  91. sift/common/type/v1/user_pb2.py +33 -0
  92. sift/common/type/v1/user_pb2.pyi +36 -0
  93. sift/common/type/v1/user_pb2_grpc.py +4 -0
  94. sift/common/type/v1/user_pb2_grpc.pyi +17 -0
  95. sift/data/__init__.py +0 -0
  96. sift/data/v1/__init__.py +0 -0
  97. sift/data/v1/data_pb2.py +212 -0
  98. sift/data/v1/data_pb2.pyi +745 -0
  99. sift/data/v1/data_pb2_grpc.py +67 -0
  100. sift/data/v1/data_pb2_grpc.pyi +44 -0
  101. sift/ingest/__init__.py +0 -0
  102. sift/ingest/v1/__init__.py +0 -0
  103. sift/ingest/v1/ingest_pb2.py +35 -0
  104. sift/ingest/v1/ingest_pb2.pyi +118 -0
  105. sift/ingest/v1/ingest_pb2_grpc.py +66 -0
  106. sift/ingest/v1/ingest_pb2_grpc.pyi +41 -0
  107. sift/ingestion_configs/__init__.py +0 -0
  108. sift/ingestion_configs/v1/__init__.py +0 -0
  109. sift/ingestion_configs/v1/ingestion_configs_pb2.py +115 -0
  110. sift/ingestion_configs/v1/ingestion_configs_pb2.pyi +332 -0
  111. sift/ingestion_configs/v1/ingestion_configs_pb2_grpc.py +203 -0
  112. sift/ingestion_configs/v1/ingestion_configs_pb2_grpc.pyi +124 -0
  113. sift/notifications/__init__.py +0 -0
  114. sift/notifications/v1/__init__.py +0 -0
  115. sift/notifications/v1/notifications_pb2.py +64 -0
  116. sift/notifications/v1/notifications_pb2.pyi +225 -0
  117. sift/notifications/v1/notifications_pb2_grpc.py +101 -0
  118. sift/notifications/v1/notifications_pb2_grpc.pyi +64 -0
  119. sift/ping/__init__.py +0 -0
  120. sift/ping/v1/__init__.py +0 -0
  121. sift/ping/v1/ping_pb2.py +38 -0
  122. sift/ping/v1/ping_pb2.pyi +36 -0
  123. sift/ping/v1/ping_pb2_grpc.py +66 -0
  124. sift/ping/v1/ping_pb2_grpc.pyi +41 -0
  125. sift/remote_files/__init__.py +0 -0
  126. sift/remote_files/v1/__init__.py +0 -0
  127. sift/remote_files/v1/remote_files_pb2.py +174 -0
  128. sift/remote_files/v1/remote_files_pb2.pyi +472 -0
  129. sift/remote_files/v1/remote_files_pb2_grpc.py +271 -0
  130. sift/remote_files/v1/remote_files_pb2_grpc.pyi +164 -0
  131. sift/report_templates/__init__.py +0 -0
  132. sift/report_templates/v1/__init__.py +0 -0
  133. sift/report_templates/v1/report_templates_pb2.py +146 -0
  134. sift/report_templates/v1/report_templates_pb2.pyi +381 -0
  135. sift/report_templates/v1/report_templates_pb2_grpc.py +169 -0
  136. sift/report_templates/v1/report_templates_pb2_grpc.pyi +104 -0
  137. sift/reports/__init__.py +0 -0
  138. sift/reports/v1/__init__.py +0 -0
  139. sift/reports/v1/reports_pb2.py +193 -0
  140. sift/reports/v1/reports_pb2.pyi +562 -0
  141. sift/reports/v1/reports_pb2_grpc.py +205 -0
  142. sift/reports/v1/reports_pb2_grpc.pyi +136 -0
  143. sift/rule_evaluation/__init__.py +0 -0
  144. sift/rule_evaluation/v1/__init__.py +0 -0
  145. sift/rule_evaluation/v1/rule_evaluation_pb2.py +89 -0
  146. sift/rule_evaluation/v1/rule_evaluation_pb2.pyi +263 -0
  147. sift/rule_evaluation/v1/rule_evaluation_pb2_grpc.py +101 -0
  148. sift/rule_evaluation/v1/rule_evaluation_pb2_grpc.pyi +64 -0
  149. sift/rules/__init__.py +0 -0
  150. sift/rules/v1/__init__.py +0 -0
  151. sift/rules/v1/rules_pb2.py +420 -0
  152. sift/rules/v1/rules_pb2.pyi +1355 -0
  153. sift/rules/v1/rules_pb2_grpc.py +577 -0
  154. sift/rules/v1/rules_pb2_grpc.pyi +351 -0
  155. sift/runs/__init__.py +0 -0
  156. sift/runs/v2/__init__.py +0 -0
  157. sift/runs/v2/runs_pb2.py +150 -0
  158. sift/runs/v2/runs_pb2.pyi +413 -0
  159. sift/runs/v2/runs_pb2_grpc.py +271 -0
  160. sift/runs/v2/runs_pb2_grpc.pyi +164 -0
  161. sift/saved_searches/__init__.py +0 -0
  162. sift/saved_searches/v1/__init__.py +0 -0
  163. sift/saved_searches/v1/saved_searches_pb2.py +144 -0
  164. sift/saved_searches/v1/saved_searches_pb2.pyi +385 -0
  165. sift/saved_searches/v1/saved_searches_pb2_grpc.py +237 -0
  166. sift/saved_searches/v1/saved_searches_pb2_grpc.pyi +144 -0
  167. sift/tags/__init__.py +0 -0
  168. sift/tags/v1/__init__.py +0 -0
  169. sift/tags/v1/tags_pb2.py +49 -0
  170. sift/tags/v1/tags_pb2.pyi +71 -0
  171. sift/tags/v1/tags_pb2_grpc.py +4 -0
  172. sift/tags/v1/tags_pb2_grpc.pyi +17 -0
  173. sift/users/__init__.py +0 -0
  174. sift/users/v2/__init__.py +0 -0
  175. sift/users/v2/users_pb2.py +61 -0
  176. sift/users/v2/users_pb2.pyi +142 -0
  177. sift/users/v2/users_pb2_grpc.py +135 -0
  178. sift/users/v2/users_pb2_grpc.pyi +84 -0
  179. sift/views/__init__.py +0 -0
  180. sift/views/v1/__init__.py +0 -0
  181. sift/views/v1/views_pb2.py +130 -0
  182. sift/views/v1/views_pb2.pyi +466 -0
  183. sift/views/v1/views_pb2_grpc.py +305 -0
  184. sift/views/v1/views_pb2_grpc.pyi +184 -0
  185. sift_grafana/py.typed +0 -0
  186. sift_grafana/sift_query_model.py +64 -0
  187. sift_py/__init__.py +923 -0
  188. sift_py/_internal/__init__.py +5 -0
  189. sift_py/_internal/cel.py +18 -0
  190. sift_py/_internal/channel.py +42 -0
  191. sift_py/_internal/convert/__init__.py +3 -0
  192. sift_py/_internal/convert/json.py +24 -0
  193. sift_py/_internal/convert/protobuf.py +34 -0
  194. sift_py/_internal/convert/timestamp.py +9 -0
  195. sift_py/_internal/test_util/__init__.py +0 -0
  196. sift_py/_internal/test_util/channel.py +136 -0
  197. sift_py/_internal/test_util/fn.py +14 -0
  198. sift_py/_internal/test_util/server_interceptor.py +62 -0
  199. sift_py/_internal/time.py +48 -0
  200. sift_py/_internal/user.py +39 -0
  201. sift_py/data/__init__.py +171 -0
  202. sift_py/data/_channel.py +38 -0
  203. sift_py/data/_deserialize.py +208 -0
  204. sift_py/data/_deserialize_test.py +134 -0
  205. sift_py/data/_service_test.py +276 -0
  206. sift_py/data/_validate.py +10 -0
  207. sift_py/data/error.py +5 -0
  208. sift_py/data/query.py +299 -0
  209. sift_py/data/service.py +497 -0
  210. sift_py/data_import/__init__.py +130 -0
  211. sift_py/data_import/_config.py +167 -0
  212. sift_py/data_import/_config_test.py +166 -0
  213. sift_py/data_import/_csv_test.py +395 -0
  214. sift_py/data_import/_status_test.py +176 -0
  215. sift_py/data_import/_tdms_test.py +238 -0
  216. sift_py/data_import/ch10.py +157 -0
  217. sift_py/data_import/config.py +19 -0
  218. sift_py/data_import/csv.py +259 -0
  219. sift_py/data_import/status.py +113 -0
  220. sift_py/data_import/tdms.py +206 -0
  221. sift_py/data_import/tempfile.py +30 -0
  222. sift_py/data_import/time_format.py +39 -0
  223. sift_py/error.py +11 -0
  224. sift_py/file_attachment/__init__.py +88 -0
  225. sift_py/file_attachment/_internal/__init__.py +0 -0
  226. sift_py/file_attachment/_internal/download.py +13 -0
  227. sift_py/file_attachment/_internal/upload.py +100 -0
  228. sift_py/file_attachment/_service_test.py +161 -0
  229. sift_py/file_attachment/entity.py +30 -0
  230. sift_py/file_attachment/metadata.py +107 -0
  231. sift_py/file_attachment/service.py +142 -0
  232. sift_py/grpc/__init__.py +15 -0
  233. sift_py/grpc/_async_interceptors/__init__.py +0 -0
  234. sift_py/grpc/_async_interceptors/base.py +72 -0
  235. sift_py/grpc/_async_interceptors/metadata.py +36 -0
  236. sift_py/grpc/_interceptors/__init__.py +0 -0
  237. sift_py/grpc/_interceptors/base.py +61 -0
  238. sift_py/grpc/_interceptors/context.py +25 -0
  239. sift_py/grpc/_interceptors/metadata.py +33 -0
  240. sift_py/grpc/_retry.py +70 -0
  241. sift_py/grpc/keepalive.py +34 -0
  242. sift_py/grpc/transport.py +250 -0
  243. sift_py/grpc/transport_test.py +170 -0
  244. sift_py/ingestion/__init__.py +6 -0
  245. sift_py/ingestion/_internal/__init__.py +6 -0
  246. sift_py/ingestion/_internal/channel.py +12 -0
  247. sift_py/ingestion/_internal/error.py +10 -0
  248. sift_py/ingestion/_internal/ingest.py +350 -0
  249. sift_py/ingestion/_internal/ingest_test.py +357 -0
  250. sift_py/ingestion/_internal/ingestion_config.py +130 -0
  251. sift_py/ingestion/_internal/run.py +46 -0
  252. sift_py/ingestion/_service_test.py +478 -0
  253. sift_py/ingestion/buffer.py +189 -0
  254. sift_py/ingestion/channel.py +422 -0
  255. sift_py/ingestion/config/__init__.py +3 -0
  256. sift_py/ingestion/config/telemetry.py +281 -0
  257. sift_py/ingestion/config/telemetry_test.py +405 -0
  258. sift_py/ingestion/config/yaml/__init__.py +0 -0
  259. sift_py/ingestion/config/yaml/error.py +44 -0
  260. sift_py/ingestion/config/yaml/load.py +126 -0
  261. sift_py/ingestion/config/yaml/spec.py +58 -0
  262. sift_py/ingestion/config/yaml/test_load.py +25 -0
  263. sift_py/ingestion/flow.py +73 -0
  264. sift_py/ingestion/manager.py +99 -0
  265. sift_py/ingestion/rule/__init__.py +4 -0
  266. sift_py/ingestion/rule/config.py +11 -0
  267. sift_py/ingestion/service.py +237 -0
  268. sift_py/py.typed +0 -0
  269. sift_py/report_templates/__init__.py +0 -0
  270. sift_py/report_templates/_config_test.py +34 -0
  271. sift_py/report_templates/_service_test.py +94 -0
  272. sift_py/report_templates/config.py +36 -0
  273. sift_py/report_templates/service.py +171 -0
  274. sift_py/rest.py +29 -0
  275. sift_py/rule/__init__.py +0 -0
  276. sift_py/rule/_config_test.py +109 -0
  277. sift_py/rule/_service_test.py +168 -0
  278. sift_py/rule/config.py +229 -0
  279. sift_py/rule/service.py +484 -0
  280. sift_py/yaml/__init__.py +0 -0
  281. sift_py/yaml/_channel_test.py +169 -0
  282. sift_py/yaml/_rule_test.py +207 -0
  283. sift_py/yaml/channel.py +224 -0
  284. sift_py/yaml/report_templates.py +73 -0
  285. sift_py/yaml/rule.py +321 -0
  286. sift_py/yaml/utils.py +15 -0
  287. sift_stack_py-0.3.2.dist-info/LICENSE +7 -0
  288. sift_stack_py-0.3.2.dist-info/METADATA +109 -0
  289. sift_stack_py-0.3.2.dist-info/RECORD +291 -0
  290. sift_stack_py-0.3.2.dist-info/WHEEL +5 -0
  291. sift_stack_py-0.3.2.dist-info/top_level.txt +5 -0
@@ -0,0 +1,1355 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ INTERNAL NOTES FOR MAINTAINERS:
5
+ This protobuf package serves proxying layer for underlying services which still depend on
6
+ protobufs from the `azimuth.rules.v1` package. Any updates to this file need to be ported
7
+ in copy-paste fashion to `azimuth.rules.v1`.
8
+
9
+ Also, be sure to update the following Go package to convert between the new and legacy types.:
10
+ - azimuth.services.repo.rule.v1.pbmapper
11
+ """
12
+
13
+ import builtins
14
+ import collections.abc
15
+ import google.protobuf.descriptor
16
+ import google.protobuf.internal.containers
17
+ import google.protobuf.internal.enum_type_wrapper
18
+ import google.protobuf.message
19
+ import google.protobuf.timestamp_pb2
20
+ import sift.annotations.v1.annotations_pb2
21
+ import sys
22
+ import typing
23
+
24
+ if sys.version_info >= (3, 10):
25
+ import typing as typing_extensions
26
+ else:
27
+ import typing_extensions
28
+
29
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
+
31
+ class _SearchOrder:
32
+ ValueType = typing.NewType("ValueType", builtins.int)
33
+ V: typing_extensions.TypeAlias = ValueType
34
+
35
+ class _SearchOrderEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SearchOrder.ValueType], builtins.type):
36
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
37
+ SEARCH_ORDER_UNSPECIFIED: _SearchOrder.ValueType # 0
38
+ SEARCH_ORDER_ASC: _SearchOrder.ValueType # 1
39
+ SEARCH_ORDER_DESC: _SearchOrder.ValueType # 2
40
+
41
+ class SearchOrder(_SearchOrder, metaclass=_SearchOrderEnumTypeWrapper): ...
42
+
43
+ SEARCH_ORDER_UNSPECIFIED: SearchOrder.ValueType # 0
44
+ SEARCH_ORDER_ASC: SearchOrder.ValueType # 1
45
+ SEARCH_ORDER_DESC: SearchOrder.ValueType # 2
46
+ global___SearchOrder = SearchOrder
47
+
48
+ class _ActionKind:
49
+ ValueType = typing.NewType("ValueType", builtins.int)
50
+ V: typing_extensions.TypeAlias = ValueType
51
+
52
+ class _ActionKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ActionKind.ValueType], builtins.type):
53
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
54
+ ACTION_KIND_UNSPECIFIED: _ActionKind.ValueType # 0
55
+ NOTIFICATION: _ActionKind.ValueType # 1
56
+ ANNOTATION: _ActionKind.ValueType # 2
57
+
58
+ class ActionKind(_ActionKind, metaclass=_ActionKindEnumTypeWrapper): ...
59
+
60
+ ACTION_KIND_UNSPECIFIED: ActionKind.ValueType # 0
61
+ NOTIFICATION: ActionKind.ValueType # 1
62
+ ANNOTATION: ActionKind.ValueType # 2
63
+ global___ActionKind = ActionKind
64
+
65
+ class _ConditionComparator:
66
+ ValueType = typing.NewType("ValueType", builtins.int)
67
+ V: typing_extensions.TypeAlias = ValueType
68
+
69
+ class _ConditionComparatorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConditionComparator.ValueType], builtins.type):
70
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
71
+ CONDITION_COMPARATOR_UNSPECIFIED: _ConditionComparator.ValueType # 0
72
+ LESS_THAN: _ConditionComparator.ValueType # 1
73
+ LESS_THAN_OR_EQUAL: _ConditionComparator.ValueType # 2
74
+ GREATER_THAN: _ConditionComparator.ValueType # 3
75
+ GREATER_THAN_OR_EQUAL: _ConditionComparator.ValueType # 4
76
+ EQUAL: _ConditionComparator.ValueType # 5
77
+ NOT_EQUAL: _ConditionComparator.ValueType # 6
78
+
79
+ class ConditionComparator(_ConditionComparator, metaclass=_ConditionComparatorEnumTypeWrapper): ...
80
+
81
+ CONDITION_COMPARATOR_UNSPECIFIED: ConditionComparator.ValueType # 0
82
+ LESS_THAN: ConditionComparator.ValueType # 1
83
+ LESS_THAN_OR_EQUAL: ConditionComparator.ValueType # 2
84
+ GREATER_THAN: ConditionComparator.ValueType # 3
85
+ GREATER_THAN_OR_EQUAL: ConditionComparator.ValueType # 4
86
+ EQUAL: ConditionComparator.ValueType # 5
87
+ NOT_EQUAL: ConditionComparator.ValueType # 6
88
+ global___ConditionComparator = ConditionComparator
89
+
90
+ @typing.final
91
+ class Rule(google.protobuf.message.Message):
92
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
93
+
94
+ RULE_ID_FIELD_NUMBER: builtins.int
95
+ ASSET_ID_FIELD_NUMBER: builtins.int
96
+ NAME_FIELD_NUMBER: builtins.int
97
+ DESCRIPTION_FIELD_NUMBER: builtins.int
98
+ IS_ENABLED_FIELD_NUMBER: builtins.int
99
+ CREATED_DATE_FIELD_NUMBER: builtins.int
100
+ MODIFIED_DATE_FIELD_NUMBER: builtins.int
101
+ CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int
102
+ MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int
103
+ ORGANIZATION_ID_FIELD_NUMBER: builtins.int
104
+ CONDITIONS_FIELD_NUMBER: builtins.int
105
+ RULE_VERSION_FIELD_NUMBER: builtins.int
106
+ CLIENT_KEY_FIELD_NUMBER: builtins.int
107
+ ASSET_CONFIGURATION_FIELD_NUMBER: builtins.int
108
+ CONTEXTUAL_CHANNELS_FIELD_NUMBER: builtins.int
109
+ rule_id: builtins.str
110
+ asset_id: builtins.str
111
+ name: builtins.str
112
+ description: builtins.str
113
+ is_enabled: builtins.bool
114
+ created_by_user_id: builtins.str
115
+ modified_by_user_id: builtins.str
116
+ organization_id: builtins.str
117
+ client_key: builtins.str
118
+ """client_key is a client provided identifier for the rule. It is immutable after rule creation."""
119
+ @property
120
+ def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
121
+ @property
122
+ def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
123
+ @property
124
+ def conditions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RuleCondition]: ...
125
+ @property
126
+ def rule_version(self) -> global___RuleVersion: ...
127
+ @property
128
+ def asset_configuration(self) -> global___RuleAssetConfiguration: ...
129
+ @property
130
+ def contextual_channels(self) -> global___ContextualChannels: ...
131
+ def __init__(
132
+ self,
133
+ *,
134
+ rule_id: builtins.str = ...,
135
+ asset_id: builtins.str = ...,
136
+ name: builtins.str = ...,
137
+ description: builtins.str = ...,
138
+ is_enabled: builtins.bool = ...,
139
+ created_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
140
+ modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
141
+ created_by_user_id: builtins.str = ...,
142
+ modified_by_user_id: builtins.str = ...,
143
+ organization_id: builtins.str = ...,
144
+ conditions: collections.abc.Iterable[global___RuleCondition] | None = ...,
145
+ rule_version: global___RuleVersion | None = ...,
146
+ client_key: builtins.str = ...,
147
+ asset_configuration: global___RuleAssetConfiguration | None = ...,
148
+ contextual_channels: global___ContextualChannels | None = ...,
149
+ ) -> None: ...
150
+ def HasField(self, field_name: typing.Literal["asset_configuration", b"asset_configuration", "contextual_channels", b"contextual_channels", "created_date", b"created_date", "modified_date", b"modified_date", "rule_version", b"rule_version"]) -> builtins.bool: ...
151
+ def ClearField(self, field_name: typing.Literal["asset_configuration", b"asset_configuration", "asset_id", b"asset_id", "client_key", b"client_key", "conditions", b"conditions", "contextual_channels", b"contextual_channels", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "description", b"description", "is_enabled", b"is_enabled", "modified_by_user_id", b"modified_by_user_id", "modified_date", b"modified_date", "name", b"name", "organization_id", b"organization_id", "rule_id", b"rule_id", "rule_version", b"rule_version"]) -> None: ...
152
+
153
+ global___Rule = Rule
154
+
155
+ @typing.final
156
+ class RuleCondition(google.protobuf.message.Message):
157
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
158
+
159
+ RULE_CONDITION_ID_FIELD_NUMBER: builtins.int
160
+ RULE_ID_FIELD_NUMBER: builtins.int
161
+ EXPRESSION_FIELD_NUMBER: builtins.int
162
+ CREATED_DATE_FIELD_NUMBER: builtins.int
163
+ MODIFIED_DATE_FIELD_NUMBER: builtins.int
164
+ CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int
165
+ MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int
166
+ ACTIONS_FIELD_NUMBER: builtins.int
167
+ RULE_CONDITION_VERSION_ID_FIELD_NUMBER: builtins.int
168
+ rule_condition_id: builtins.str
169
+ rule_id: builtins.str
170
+ created_by_user_id: builtins.str
171
+ modified_by_user_id: builtins.str
172
+ rule_condition_version_id: builtins.str
173
+ @property
174
+ def expression(self) -> global___RuleConditionExpression: ...
175
+ @property
176
+ def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
177
+ @property
178
+ def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
179
+ @property
180
+ def actions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RuleAction]: ...
181
+ def __init__(
182
+ self,
183
+ *,
184
+ rule_condition_id: builtins.str = ...,
185
+ rule_id: builtins.str = ...,
186
+ expression: global___RuleConditionExpression | None = ...,
187
+ created_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
188
+ modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
189
+ created_by_user_id: builtins.str = ...,
190
+ modified_by_user_id: builtins.str = ...,
191
+ actions: collections.abc.Iterable[global___RuleAction] | None = ...,
192
+ rule_condition_version_id: builtins.str = ...,
193
+ ) -> None: ...
194
+ def HasField(self, field_name: typing.Literal["created_date", b"created_date", "expression", b"expression", "modified_date", b"modified_date"]) -> builtins.bool: ...
195
+ def ClearField(self, field_name: typing.Literal["actions", b"actions", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "expression", b"expression", "modified_by_user_id", b"modified_by_user_id", "modified_date", b"modified_date", "rule_condition_id", b"rule_condition_id", "rule_condition_version_id", b"rule_condition_version_id", "rule_id", b"rule_id"]) -> None: ...
196
+
197
+ global___RuleCondition = RuleCondition
198
+
199
+ @typing.final
200
+ class RuleAction(google.protobuf.message.Message):
201
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
202
+
203
+ RULE_ACTION_ID_FIELD_NUMBER: builtins.int
204
+ RULE_CONDITION_ID_FIELD_NUMBER: builtins.int
205
+ ACTION_TYPE_FIELD_NUMBER: builtins.int
206
+ CONFIGURATION_FIELD_NUMBER: builtins.int
207
+ CREATED_DATE_FIELD_NUMBER: builtins.int
208
+ MODIFIED_DATE_FIELD_NUMBER: builtins.int
209
+ CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int
210
+ MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int
211
+ RULE_ACTION_VERSION_ID_FIELD_NUMBER: builtins.int
212
+ rule_action_id: builtins.str
213
+ rule_condition_id: builtins.str
214
+ action_type: global___ActionKind.ValueType
215
+ created_by_user_id: builtins.str
216
+ modified_by_user_id: builtins.str
217
+ rule_action_version_id: builtins.str
218
+ @property
219
+ def configuration(self) -> global___RuleActionConfiguration: ...
220
+ @property
221
+ def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
222
+ @property
223
+ def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
224
+ def __init__(
225
+ self,
226
+ *,
227
+ rule_action_id: builtins.str = ...,
228
+ rule_condition_id: builtins.str = ...,
229
+ action_type: global___ActionKind.ValueType = ...,
230
+ configuration: global___RuleActionConfiguration | None = ...,
231
+ created_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
232
+ modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
233
+ created_by_user_id: builtins.str = ...,
234
+ modified_by_user_id: builtins.str = ...,
235
+ rule_action_version_id: builtins.str = ...,
236
+ ) -> None: ...
237
+ def HasField(self, field_name: typing.Literal["configuration", b"configuration", "created_date", b"created_date", "modified_date", b"modified_date"]) -> builtins.bool: ...
238
+ def ClearField(self, field_name: typing.Literal["action_type", b"action_type", "configuration", b"configuration", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "modified_by_user_id", b"modified_by_user_id", "modified_date", b"modified_date", "rule_action_id", b"rule_action_id", "rule_action_version_id", b"rule_action_version_id", "rule_condition_id", b"rule_condition_id"]) -> None: ...
239
+
240
+ global___RuleAction = RuleAction
241
+
242
+ @typing.final
243
+ class RuleAssetConfiguration(google.protobuf.message.Message):
244
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
245
+
246
+ ASSET_IDS_FIELD_NUMBER: builtins.int
247
+ TAG_IDS_FIELD_NUMBER: builtins.int
248
+ @property
249
+ def asset_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
250
+ @property
251
+ def tag_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
252
+ def __init__(
253
+ self,
254
+ *,
255
+ asset_ids: collections.abc.Iterable[builtins.str] | None = ...,
256
+ tag_ids: collections.abc.Iterable[builtins.str] | None = ...,
257
+ ) -> None: ...
258
+ def ClearField(self, field_name: typing.Literal["asset_ids", b"asset_ids", "tag_ids", b"tag_ids"]) -> None: ...
259
+
260
+ global___RuleAssetConfiguration = RuleAssetConfiguration
261
+
262
+ @typing.final
263
+ class ContextualChannels(google.protobuf.message.Message):
264
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
265
+
266
+ CHANNELS_FIELD_NUMBER: builtins.int
267
+ @property
268
+ def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ChannelReference]: ...
269
+ def __init__(
270
+ self,
271
+ *,
272
+ channels: collections.abc.Iterable[global___ChannelReference] | None = ...,
273
+ ) -> None: ...
274
+ def ClearField(self, field_name: typing.Literal["channels", b"channels"]) -> None: ...
275
+
276
+ global___ContextualChannels = ContextualChannels
277
+
278
+ @typing.final
279
+ class SearchRulesRequest(google.protobuf.message.Message):
280
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
281
+
282
+ LIMIT_FIELD_NUMBER: builtins.int
283
+ OFFSET_FIELD_NUMBER: builtins.int
284
+ ORDER_FIELD_NUMBER: builtins.int
285
+ NAME_MATCHES_FIELD_NUMBER: builtins.int
286
+ CASE_SENSITIVE_FIELD_NUMBER: builtins.int
287
+ REGEXP_FIELD_NUMBER: builtins.int
288
+ ORDER_BY_FIELD_NUMBER: builtins.int
289
+ RULE_IDS_FIELD_NUMBER: builtins.int
290
+ ASSET_IDS_FIELD_NUMBER: builtins.int
291
+ limit: builtins.int
292
+ """Max number of rules to return (returns all if omitted)."""
293
+ offset: builtins.int
294
+ """Only applies if limit provided."""
295
+ order: global___SearchOrder.ValueType
296
+ """Order to sort results by (defaults to ascending)."""
297
+ name_matches: builtins.str
298
+ case_sensitive: builtins.bool
299
+ regexp: builtins.bool
300
+ order_by: builtins.str
301
+ @property
302
+ def rule_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
303
+ """If provided, only returns rules with the given ids"""
304
+
305
+ @property
306
+ def asset_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
307
+ """If provided, only returns rules with the given asset ids"""
308
+
309
+ def __init__(
310
+ self,
311
+ *,
312
+ limit: builtins.int | None = ...,
313
+ offset: builtins.int = ...,
314
+ order: global___SearchOrder.ValueType | None = ...,
315
+ name_matches: builtins.str = ...,
316
+ case_sensitive: builtins.bool = ...,
317
+ regexp: builtins.bool = ...,
318
+ order_by: builtins.str | None = ...,
319
+ rule_ids: collections.abc.Iterable[builtins.str] | None = ...,
320
+ asset_ids: collections.abc.Iterable[builtins.str] | None = ...,
321
+ ) -> None: ...
322
+ def HasField(self, field_name: typing.Literal["_limit", b"_limit", "_order", b"_order", "_order_by", b"_order_by", "limit", b"limit", "order", b"order", "order_by", b"order_by"]) -> builtins.bool: ...
323
+ def ClearField(self, field_name: typing.Literal["_limit", b"_limit", "_order", b"_order", "_order_by", b"_order_by", "asset_ids", b"asset_ids", "case_sensitive", b"case_sensitive", "limit", b"limit", "name_matches", b"name_matches", "offset", b"offset", "order", b"order", "order_by", b"order_by", "regexp", b"regexp", "rule_ids", b"rule_ids"]) -> None: ...
324
+ @typing.overload
325
+ def WhichOneof(self, oneof_group: typing.Literal["_limit", b"_limit"]) -> typing.Literal["limit"] | None: ...
326
+ @typing.overload
327
+ def WhichOneof(self, oneof_group: typing.Literal["_order", b"_order"]) -> typing.Literal["order"] | None: ...
328
+ @typing.overload
329
+ def WhichOneof(self, oneof_group: typing.Literal["_order_by", b"_order_by"]) -> typing.Literal["order_by"] | None: ...
330
+
331
+ global___SearchRulesRequest = SearchRulesRequest
332
+
333
+ @typing.final
334
+ class SearchRulesResponse(google.protobuf.message.Message):
335
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
336
+
337
+ COUNT_FIELD_NUMBER: builtins.int
338
+ RULES_FIELD_NUMBER: builtins.int
339
+ count: builtins.int
340
+ @property
341
+ def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Rule]:
342
+ """Conditions are not included in the search response. The latest version of the rule is returned."""
343
+
344
+ def __init__(
345
+ self,
346
+ *,
347
+ count: builtins.int = ...,
348
+ rules: collections.abc.Iterable[global___Rule] | None = ...,
349
+ ) -> None: ...
350
+ def ClearField(self, field_name: typing.Literal["count", b"count", "rules", b"rules"]) -> None: ...
351
+
352
+ global___SearchRulesResponse = SearchRulesResponse
353
+
354
+ @typing.final
355
+ class GetRuleRequest(google.protobuf.message.Message):
356
+ """GetRuleRequest is used to retrieve a rule by rule_id or client_key. If both are provided, only rule_id will be used."""
357
+
358
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
359
+
360
+ RULE_ID_FIELD_NUMBER: builtins.int
361
+ CLIENT_KEY_FIELD_NUMBER: builtins.int
362
+ rule_id: builtins.str
363
+ client_key: builtins.str
364
+ def __init__(
365
+ self,
366
+ *,
367
+ rule_id: builtins.str = ...,
368
+ client_key: builtins.str = ...,
369
+ ) -> None: ...
370
+ def ClearField(self, field_name: typing.Literal["client_key", b"client_key", "rule_id", b"rule_id"]) -> None: ...
371
+
372
+ global___GetRuleRequest = GetRuleRequest
373
+
374
+ @typing.final
375
+ class GetRuleResponse(google.protobuf.message.Message):
376
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
377
+
378
+ RULE_FIELD_NUMBER: builtins.int
379
+ @property
380
+ def rule(self) -> global___Rule: ...
381
+ def __init__(
382
+ self,
383
+ *,
384
+ rule: global___Rule | None = ...,
385
+ ) -> None: ...
386
+ def HasField(self, field_name: typing.Literal["rule", b"rule"]) -> builtins.bool: ...
387
+ def ClearField(self, field_name: typing.Literal["rule", b"rule"]) -> None: ...
388
+
389
+ global___GetRuleResponse = GetRuleResponse
390
+
391
+ @typing.final
392
+ class BatchGetRulesRequest(google.protobuf.message.Message):
393
+ """BatchGetRulesRequest is used to retrieve rules by rule_ids or client_keys. If both are provided, both will be used to retrieve rules."""
394
+
395
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
396
+
397
+ RULE_IDS_FIELD_NUMBER: builtins.int
398
+ CLIENT_KEYS_FIELD_NUMBER: builtins.int
399
+ @property
400
+ def rule_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
401
+ @property
402
+ def client_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
403
+ def __init__(
404
+ self,
405
+ *,
406
+ rule_ids: collections.abc.Iterable[builtins.str] | None = ...,
407
+ client_keys: collections.abc.Iterable[builtins.str] | None = ...,
408
+ ) -> None: ...
409
+ def ClearField(self, field_name: typing.Literal["client_keys", b"client_keys", "rule_ids", b"rule_ids"]) -> None: ...
410
+
411
+ global___BatchGetRulesRequest = BatchGetRulesRequest
412
+
413
+ @typing.final
414
+ class BatchGetRulesResponse(google.protobuf.message.Message):
415
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
416
+
417
+ RULES_FIELD_NUMBER: builtins.int
418
+ @property
419
+ def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Rule]: ...
420
+ def __init__(
421
+ self,
422
+ *,
423
+ rules: collections.abc.Iterable[global___Rule] | None = ...,
424
+ ) -> None: ...
425
+ def ClearField(self, field_name: typing.Literal["rules", b"rules"]) -> None: ...
426
+
427
+ global___BatchGetRulesResponse = BatchGetRulesResponse
428
+
429
+ @typing.final
430
+ class CreateRuleRequest(google.protobuf.message.Message):
431
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
432
+
433
+ UPDATE_FIELD_NUMBER: builtins.int
434
+ @property
435
+ def update(self) -> global___UpdateRuleRequest: ...
436
+ def __init__(
437
+ self,
438
+ *,
439
+ update: global___UpdateRuleRequest | None = ...,
440
+ ) -> None: ...
441
+ def HasField(self, field_name: typing.Literal["update", b"update"]) -> builtins.bool: ...
442
+ def ClearField(self, field_name: typing.Literal["update", b"update"]) -> None: ...
443
+
444
+ global___CreateRuleRequest = CreateRuleRequest
445
+
446
+ @typing.final
447
+ class CreateRuleResponse(google.protobuf.message.Message):
448
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
449
+
450
+ RULE_ID_FIELD_NUMBER: builtins.int
451
+ rule_id: builtins.str
452
+ def __init__(
453
+ self,
454
+ *,
455
+ rule_id: builtins.str = ...,
456
+ ) -> None: ...
457
+ def ClearField(self, field_name: typing.Literal["rule_id", b"rule_id"]) -> None: ...
458
+
459
+ global___CreateRuleResponse = CreateRuleResponse
460
+
461
+ @typing.final
462
+ class UpdateRuleRequest(google.protobuf.message.Message):
463
+ """UpdateRuleRequest is used to create or update a rule. If the rule_id or client_key is provided, the rule will be updated. If not, a new rule will be created."""
464
+
465
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
466
+
467
+ RULE_ID_FIELD_NUMBER: builtins.int
468
+ NAME_FIELD_NUMBER: builtins.int
469
+ DESCRIPTION_FIELD_NUMBER: builtins.int
470
+ ASSET_ID_FIELD_NUMBER: builtins.int
471
+ IS_ENABLED_FIELD_NUMBER: builtins.int
472
+ CONDITIONS_FIELD_NUMBER: builtins.int
473
+ ORGANIZATION_ID_FIELD_NUMBER: builtins.int
474
+ VERSION_NOTES_FIELD_NUMBER: builtins.int
475
+ CLIENT_KEY_FIELD_NUMBER: builtins.int
476
+ ASSET_CONFIGURATION_FIELD_NUMBER: builtins.int
477
+ CONTEXTUAL_CHANNELS_FIELD_NUMBER: builtins.int
478
+ rule_id: builtins.str
479
+ name: builtins.str
480
+ description: builtins.str
481
+ asset_id: builtins.str
482
+ """Deprecated - use asset_configuration instead."""
483
+ is_enabled: builtins.bool
484
+ organization_id: builtins.str
485
+ version_notes: builtins.str
486
+ client_key: builtins.str
487
+ @property
488
+ def conditions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UpdateConditionRequest]: ...
489
+ @property
490
+ def asset_configuration(self) -> global___RuleAssetConfiguration: ...
491
+ @property
492
+ def contextual_channels(self) -> global___ContextualChannels: ...
493
+ def __init__(
494
+ self,
495
+ *,
496
+ rule_id: builtins.str | None = ...,
497
+ name: builtins.str = ...,
498
+ description: builtins.str = ...,
499
+ asset_id: builtins.str = ...,
500
+ is_enabled: builtins.bool = ...,
501
+ conditions: collections.abc.Iterable[global___UpdateConditionRequest] | None = ...,
502
+ organization_id: builtins.str = ...,
503
+ version_notes: builtins.str = ...,
504
+ client_key: builtins.str | None = ...,
505
+ asset_configuration: global___RuleAssetConfiguration | None = ...,
506
+ contextual_channels: global___ContextualChannels | None = ...,
507
+ ) -> None: ...
508
+ def HasField(self, field_name: typing.Literal["_client_key", b"_client_key", "_rule_id", b"_rule_id", "asset_configuration", b"asset_configuration", "client_key", b"client_key", "contextual_channels", b"contextual_channels", "rule_id", b"rule_id"]) -> builtins.bool: ...
509
+ def ClearField(self, field_name: typing.Literal["_client_key", b"_client_key", "_rule_id", b"_rule_id", "asset_configuration", b"asset_configuration", "asset_id", b"asset_id", "client_key", b"client_key", "conditions", b"conditions", "contextual_channels", b"contextual_channels", "description", b"description", "is_enabled", b"is_enabled", "name", b"name", "organization_id", b"organization_id", "rule_id", b"rule_id", "version_notes", b"version_notes"]) -> None: ...
510
+ @typing.overload
511
+ def WhichOneof(self, oneof_group: typing.Literal["_client_key", b"_client_key"]) -> typing.Literal["client_key"] | None: ...
512
+ @typing.overload
513
+ def WhichOneof(self, oneof_group: typing.Literal["_rule_id", b"_rule_id"]) -> typing.Literal["rule_id"] | None: ...
514
+
515
+ global___UpdateRuleRequest = UpdateRuleRequest
516
+
517
+ @typing.final
518
+ class UpdateConditionRequest(google.protobuf.message.Message):
519
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
520
+
521
+ RULE_CONDITION_ID_FIELD_NUMBER: builtins.int
522
+ EXPRESSION_FIELD_NUMBER: builtins.int
523
+ ACTIONS_FIELD_NUMBER: builtins.int
524
+ rule_condition_id: builtins.str
525
+ @property
526
+ def expression(self) -> global___RuleConditionExpression: ...
527
+ @property
528
+ def actions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UpdateActionRequest]: ...
529
+ def __init__(
530
+ self,
531
+ *,
532
+ rule_condition_id: builtins.str | None = ...,
533
+ expression: global___RuleConditionExpression | None = ...,
534
+ actions: collections.abc.Iterable[global___UpdateActionRequest] | None = ...,
535
+ ) -> None: ...
536
+ def HasField(self, field_name: typing.Literal["_rule_condition_id", b"_rule_condition_id", "expression", b"expression", "rule_condition_id", b"rule_condition_id"]) -> builtins.bool: ...
537
+ def ClearField(self, field_name: typing.Literal["_rule_condition_id", b"_rule_condition_id", "actions", b"actions", "expression", b"expression", "rule_condition_id", b"rule_condition_id"]) -> None: ...
538
+ def WhichOneof(self, oneof_group: typing.Literal["_rule_condition_id", b"_rule_condition_id"]) -> typing.Literal["rule_condition_id"] | None: ...
539
+
540
+ global___UpdateConditionRequest = UpdateConditionRequest
541
+
542
+ @typing.final
543
+ class UpdateActionRequest(google.protobuf.message.Message):
544
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
545
+
546
+ RULE_ACTION_ID_FIELD_NUMBER: builtins.int
547
+ ACTION_TYPE_FIELD_NUMBER: builtins.int
548
+ CONFIGURATION_FIELD_NUMBER: builtins.int
549
+ rule_action_id: builtins.str
550
+ action_type: global___ActionKind.ValueType
551
+ @property
552
+ def configuration(self) -> global___RuleActionConfiguration: ...
553
+ def __init__(
554
+ self,
555
+ *,
556
+ rule_action_id: builtins.str | None = ...,
557
+ action_type: global___ActionKind.ValueType = ...,
558
+ configuration: global___RuleActionConfiguration | None = ...,
559
+ ) -> None: ...
560
+ def HasField(self, field_name: typing.Literal["_rule_action_id", b"_rule_action_id", "configuration", b"configuration", "rule_action_id", b"rule_action_id"]) -> builtins.bool: ...
561
+ def ClearField(self, field_name: typing.Literal["_rule_action_id", b"_rule_action_id", "action_type", b"action_type", "configuration", b"configuration", "rule_action_id", b"rule_action_id"]) -> None: ...
562
+ def WhichOneof(self, oneof_group: typing.Literal["_rule_action_id", b"_rule_action_id"]) -> typing.Literal["rule_action_id"] | None: ...
563
+
564
+ global___UpdateActionRequest = UpdateActionRequest
565
+
566
+ @typing.final
567
+ class UpdateRuleResponse(google.protobuf.message.Message):
568
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
569
+
570
+ RULE_ID_FIELD_NUMBER: builtins.int
571
+ rule_id: builtins.str
572
+ def __init__(
573
+ self,
574
+ *,
575
+ rule_id: builtins.str = ...,
576
+ ) -> None: ...
577
+ def ClearField(self, field_name: typing.Literal["rule_id", b"rule_id"]) -> None: ...
578
+
579
+ global___UpdateRuleResponse = UpdateRuleResponse
580
+
581
+ @typing.final
582
+ class BatchUpdateRulesRequest(google.protobuf.message.Message):
583
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
584
+
585
+ RULES_FIELD_NUMBER: builtins.int
586
+ @property
587
+ def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UpdateRuleRequest]:
588
+ """rules are limited 1000 rules at a time"""
589
+
590
+ def __init__(
591
+ self,
592
+ *,
593
+ rules: collections.abc.Iterable[global___UpdateRuleRequest] | None = ...,
594
+ ) -> None: ...
595
+ def ClearField(self, field_name: typing.Literal["rules", b"rules"]) -> None: ...
596
+
597
+ global___BatchUpdateRulesRequest = BatchUpdateRulesRequest
598
+
599
+ @typing.final
600
+ class BatchUpdateRulesResponse(google.protobuf.message.Message):
601
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
602
+
603
+ SUCCESS_FIELD_NUMBER: builtins.int
604
+ RULES_CREATED_COUNT_FIELD_NUMBER: builtins.int
605
+ RULES_UPDATED_COUNT_FIELD_NUMBER: builtins.int
606
+ success: builtins.bool
607
+ rules_created_count: builtins.int
608
+ rules_updated_count: builtins.int
609
+ def __init__(
610
+ self,
611
+ *,
612
+ success: builtins.bool = ...,
613
+ rules_created_count: builtins.int = ...,
614
+ rules_updated_count: builtins.int = ...,
615
+ ) -> None: ...
616
+ def ClearField(self, field_name: typing.Literal["rules_created_count", b"rules_created_count", "rules_updated_count", b"rules_updated_count", "success", b"success"]) -> None: ...
617
+
618
+ global___BatchUpdateRulesResponse = BatchUpdateRulesResponse
619
+
620
+ @typing.final
621
+ class DeleteRuleRequest(google.protobuf.message.Message):
622
+ """DeleteRuleRequest is used to delete a rule by rule_id or client_key. If both are provided, only rule_id will be used."""
623
+
624
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
625
+
626
+ RULE_ID_FIELD_NUMBER: builtins.int
627
+ CLIENT_KEY_FIELD_NUMBER: builtins.int
628
+ rule_id: builtins.str
629
+ client_key: builtins.str
630
+ def __init__(
631
+ self,
632
+ *,
633
+ rule_id: builtins.str = ...,
634
+ client_key: builtins.str = ...,
635
+ ) -> None: ...
636
+ def ClearField(self, field_name: typing.Literal["client_key", b"client_key", "rule_id", b"rule_id"]) -> None: ...
637
+
638
+ global___DeleteRuleRequest = DeleteRuleRequest
639
+
640
+ @typing.final
641
+ class DeleteRuleResponse(google.protobuf.message.Message):
642
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
643
+
644
+ def __init__(
645
+ self,
646
+ ) -> None: ...
647
+
648
+ global___DeleteRuleResponse = DeleteRuleResponse
649
+
650
+ @typing.final
651
+ class ViewHumanFriendlyRulesRequest(google.protobuf.message.Message):
652
+ """Deprecated - use ViewJsonRulesRequest."""
653
+
654
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
655
+
656
+ ASSET_ID_FIELD_NUMBER: builtins.int
657
+ asset_id: builtins.str
658
+ def __init__(
659
+ self,
660
+ *,
661
+ asset_id: builtins.str = ...,
662
+ ) -> None: ...
663
+ def ClearField(self, field_name: typing.Literal["asset_id", b"asset_id"]) -> None: ...
664
+
665
+ global___ViewHumanFriendlyRulesRequest = ViewHumanFriendlyRulesRequest
666
+
667
+ @typing.final
668
+ class ViewHumanFriendlyRulesResponse(google.protobuf.message.Message):
669
+ """Deprecated - use ViewJsonRulesResponse."""
670
+
671
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
672
+
673
+ RULES_JSON_FIELD_NUMBER: builtins.int
674
+ rules_json: builtins.str
675
+ def __init__(
676
+ self,
677
+ *,
678
+ rules_json: builtins.str = ...,
679
+ ) -> None: ...
680
+ def ClearField(self, field_name: typing.Literal["rules_json", b"rules_json"]) -> None: ...
681
+
682
+ global___ViewHumanFriendlyRulesResponse = ViewHumanFriendlyRulesResponse
683
+
684
+ @typing.final
685
+ class UpdateHumanFriendlyRulesRequest(google.protobuf.message.Message):
686
+ """Deprecated - use UpdateJsonRulesRequest."""
687
+
688
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
689
+
690
+ ASSET_ID_FIELD_NUMBER: builtins.int
691
+ RULES_JSON_FIELD_NUMBER: builtins.int
692
+ ORGANIZATION_ID_FIELD_NUMBER: builtins.int
693
+ asset_id: builtins.str
694
+ rules_json: builtins.str
695
+ organization_id: builtins.str
696
+ def __init__(
697
+ self,
698
+ *,
699
+ asset_id: builtins.str = ...,
700
+ rules_json: builtins.str = ...,
701
+ organization_id: builtins.str = ...,
702
+ ) -> None: ...
703
+ def ClearField(self, field_name: typing.Literal["asset_id", b"asset_id", "organization_id", b"organization_id", "rules_json", b"rules_json"]) -> None: ...
704
+
705
+ global___UpdateHumanFriendlyRulesRequest = UpdateHumanFriendlyRulesRequest
706
+
707
+ @typing.final
708
+ class UpdateHumanFriendlyRulesResponse(google.protobuf.message.Message):
709
+ """Deprecated - use UpdateJsonRulesResponse."""
710
+
711
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
712
+
713
+ SUCCESS_FIELD_NUMBER: builtins.int
714
+ RULES_COUNT_FIELD_NUMBER: builtins.int
715
+ MESSAGES_FIELD_NUMBER: builtins.int
716
+ success: builtins.bool
717
+ rules_count: builtins.int
718
+ messages: builtins.str
719
+ def __init__(
720
+ self,
721
+ *,
722
+ success: builtins.bool = ...,
723
+ rules_count: builtins.int = ...,
724
+ messages: builtins.str = ...,
725
+ ) -> None: ...
726
+ def ClearField(self, field_name: typing.Literal["messages", b"messages", "rules_count", b"rules_count", "success", b"success"]) -> None: ...
727
+
728
+ global___UpdateHumanFriendlyRulesResponse = UpdateHumanFriendlyRulesResponse
729
+
730
+ @typing.final
731
+ class ViewJsonRulesRequest(google.protobuf.message.Message):
732
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
733
+
734
+ ASSET_ID_FIELD_NUMBER: builtins.int
735
+ asset_id: builtins.str
736
+ def __init__(
737
+ self,
738
+ *,
739
+ asset_id: builtins.str = ...,
740
+ ) -> None: ...
741
+ def ClearField(self, field_name: typing.Literal["asset_id", b"asset_id"]) -> None: ...
742
+
743
+ global___ViewJsonRulesRequest = ViewJsonRulesRequest
744
+
745
+ @typing.final
746
+ class ViewJsonRulesResponse(google.protobuf.message.Message):
747
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
748
+
749
+ RULES_JSON_FIELD_NUMBER: builtins.int
750
+ rules_json: builtins.str
751
+ def __init__(
752
+ self,
753
+ *,
754
+ rules_json: builtins.str = ...,
755
+ ) -> None: ...
756
+ def ClearField(self, field_name: typing.Literal["rules_json", b"rules_json"]) -> None: ...
757
+
758
+ global___ViewJsonRulesResponse = ViewJsonRulesResponse
759
+
760
+ @typing.final
761
+ class JsonRulesRequest(google.protobuf.message.Message):
762
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
763
+
764
+ ASSET_ID_FIELD_NUMBER: builtins.int
765
+ RULES_JSON_FIELD_NUMBER: builtins.int
766
+ ORGANIZATION_ID_FIELD_NUMBER: builtins.int
767
+ asset_id: builtins.str
768
+ rules_json: builtins.str
769
+ organization_id: builtins.str
770
+ def __init__(
771
+ self,
772
+ *,
773
+ asset_id: builtins.str = ...,
774
+ rules_json: builtins.str = ...,
775
+ organization_id: builtins.str = ...,
776
+ ) -> None: ...
777
+ def ClearField(self, field_name: typing.Literal["asset_id", b"asset_id", "organization_id", b"organization_id", "rules_json", b"rules_json"]) -> None: ...
778
+
779
+ global___JsonRulesRequest = JsonRulesRequest
780
+
781
+ @typing.final
782
+ class JsonRulesResponse(google.protobuf.message.Message):
783
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
784
+
785
+ SUCCESS_FIELD_NUMBER: builtins.int
786
+ TOTAL_RULES_COUNT_FIELD_NUMBER: builtins.int
787
+ RULES_CREATED_COUNT_FIELD_NUMBER: builtins.int
788
+ RULES_UPDATED_COUNT_FIELD_NUMBER: builtins.int
789
+ RULES_DELETED_COUNT_FIELD_NUMBER: builtins.int
790
+ ERROR_MESSAGES_FIELD_NUMBER: builtins.int
791
+ success: builtins.bool
792
+ total_rules_count: builtins.int
793
+ rules_created_count: builtins.int
794
+ rules_updated_count: builtins.int
795
+ rules_deleted_count: builtins.int
796
+ error_messages: builtins.str
797
+ def __init__(
798
+ self,
799
+ *,
800
+ success: builtins.bool = ...,
801
+ total_rules_count: builtins.int = ...,
802
+ rules_created_count: builtins.int = ...,
803
+ rules_updated_count: builtins.int = ...,
804
+ rules_deleted_count: builtins.int = ...,
805
+ error_messages: builtins.str | None = ...,
806
+ ) -> None: ...
807
+ def HasField(self, field_name: typing.Literal["_error_messages", b"_error_messages", "error_messages", b"error_messages"]) -> builtins.bool: ...
808
+ def ClearField(self, field_name: typing.Literal["_error_messages", b"_error_messages", "error_messages", b"error_messages", "rules_created_count", b"rules_created_count", "rules_deleted_count", b"rules_deleted_count", "rules_updated_count", b"rules_updated_count", "success", b"success", "total_rules_count", b"total_rules_count"]) -> None: ...
809
+ def WhichOneof(self, oneof_group: typing.Literal["_error_messages", b"_error_messages"]) -> typing.Literal["error_messages"] | None: ...
810
+
811
+ global___JsonRulesResponse = JsonRulesResponse
812
+
813
+ @typing.final
814
+ class ValidateJsonRulesRequest(google.protobuf.message.Message):
815
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
816
+
817
+ REQUEST_FIELD_NUMBER: builtins.int
818
+ @property
819
+ def request(self) -> global___JsonRulesRequest: ...
820
+ def __init__(
821
+ self,
822
+ *,
823
+ request: global___JsonRulesRequest | None = ...,
824
+ ) -> None: ...
825
+ def HasField(self, field_name: typing.Literal["request", b"request"]) -> builtins.bool: ...
826
+ def ClearField(self, field_name: typing.Literal["request", b"request"]) -> None: ...
827
+
828
+ global___ValidateJsonRulesRequest = ValidateJsonRulesRequest
829
+
830
+ @typing.final
831
+ class ValidateJsonRulesResponse(google.protobuf.message.Message):
832
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
833
+
834
+ RESPONSE_FIELD_NUMBER: builtins.int
835
+ @property
836
+ def response(self) -> global___JsonRulesResponse: ...
837
+ def __init__(
838
+ self,
839
+ *,
840
+ response: global___JsonRulesResponse | None = ...,
841
+ ) -> None: ...
842
+ def HasField(self, field_name: typing.Literal["response", b"response"]) -> builtins.bool: ...
843
+ def ClearField(self, field_name: typing.Literal["response", b"response"]) -> None: ...
844
+
845
+ global___ValidateJsonRulesResponse = ValidateJsonRulesResponse
846
+
847
+ @typing.final
848
+ class UpdateJsonRulesRequest(google.protobuf.message.Message):
849
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
850
+
851
+ REQUEST_FIELD_NUMBER: builtins.int
852
+ @property
853
+ def request(self) -> global___JsonRulesRequest: ...
854
+ def __init__(
855
+ self,
856
+ *,
857
+ request: global___JsonRulesRequest | None = ...,
858
+ ) -> None: ...
859
+ def HasField(self, field_name: typing.Literal["request", b"request"]) -> builtins.bool: ...
860
+ def ClearField(self, field_name: typing.Literal["request", b"request"]) -> None: ...
861
+
862
+ global___UpdateJsonRulesRequest = UpdateJsonRulesRequest
863
+
864
+ @typing.final
865
+ class UpdateJsonRulesResponse(google.protobuf.message.Message):
866
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
867
+
868
+ RESPONSE_FIELD_NUMBER: builtins.int
869
+ @property
870
+ def response(self) -> global___JsonRulesResponse: ...
871
+ def __init__(
872
+ self,
873
+ *,
874
+ response: global___JsonRulesResponse | None = ...,
875
+ ) -> None: ...
876
+ def HasField(self, field_name: typing.Literal["response", b"response"]) -> builtins.bool: ...
877
+ def ClearField(self, field_name: typing.Literal["response", b"response"]) -> None: ...
878
+
879
+ global___UpdateJsonRulesResponse = UpdateJsonRulesResponse
880
+
881
+ @typing.final
882
+ class ListRuleVersionsRequest(google.protobuf.message.Message):
883
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
884
+
885
+ RULE_ID_FIELD_NUMBER: builtins.int
886
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
887
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
888
+ FILTER_FIELD_NUMBER: builtins.int
889
+ rule_id: builtins.str
890
+ page_size: builtins.int
891
+ """The maximum number of Rule Versions to return.
892
+ The service may return fewer than this value.
893
+ If unspecified, at most 50 Rule Versions will be returned.
894
+ The maximum value is 1000; values above 1000 will be coerced to 1000.
895
+ """
896
+ page_token: builtins.str
897
+ """A page token, received from a previous `ListRuleVersions` call.
898
+ Provide this to retrieve the subsequent page.
899
+ When paginating, all other parameters provided to `ListRuleVersions` must match
900
+ the call that provided the page token.
901
+ """
902
+ filter: builtins.str
903
+ """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string.
904
+ Available fields to filter by are `rule_version_id`, `user_notes`, and `change_message`.
905
+ For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). Optional.
906
+ """
907
+ def __init__(
908
+ self,
909
+ *,
910
+ rule_id: builtins.str = ...,
911
+ page_size: builtins.int = ...,
912
+ page_token: builtins.str = ...,
913
+ filter: builtins.str = ...,
914
+ ) -> None: ...
915
+ def ClearField(self, field_name: typing.Literal["filter", b"filter", "page_size", b"page_size", "page_token", b"page_token", "rule_id", b"rule_id"]) -> None: ...
916
+
917
+ global___ListRuleVersionsRequest = ListRuleVersionsRequest
918
+
919
+ @typing.final
920
+ class RuleVersion(google.protobuf.message.Message):
921
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
922
+
923
+ RULE_ID_FIELD_NUMBER: builtins.int
924
+ RULE_VERSION_ID_FIELD_NUMBER: builtins.int
925
+ VERSION_FIELD_NUMBER: builtins.int
926
+ CREATED_DATE_FIELD_NUMBER: builtins.int
927
+ CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int
928
+ VERSION_NOTES_FIELD_NUMBER: builtins.int
929
+ GENERATED_CHANGE_MESSAGE_FIELD_NUMBER: builtins.int
930
+ rule_id: builtins.str
931
+ rule_version_id: builtins.str
932
+ version: builtins.str
933
+ created_by_user_id: builtins.str
934
+ version_notes: builtins.str
935
+ generated_change_message: builtins.str
936
+ @property
937
+ def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
938
+ def __init__(
939
+ self,
940
+ *,
941
+ rule_id: builtins.str = ...,
942
+ rule_version_id: builtins.str = ...,
943
+ version: builtins.str = ...,
944
+ created_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
945
+ created_by_user_id: builtins.str = ...,
946
+ version_notes: builtins.str = ...,
947
+ generated_change_message: builtins.str = ...,
948
+ ) -> None: ...
949
+ def HasField(self, field_name: typing.Literal["created_date", b"created_date"]) -> builtins.bool: ...
950
+ def ClearField(self, field_name: typing.Literal["created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "generated_change_message", b"generated_change_message", "rule_id", b"rule_id", "rule_version_id", b"rule_version_id", "version", b"version", "version_notes", b"version_notes"]) -> None: ...
951
+
952
+ global___RuleVersion = RuleVersion
953
+
954
+ @typing.final
955
+ class ListRuleVersionsResponse(google.protobuf.message.Message):
956
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
957
+
958
+ RULE_VERSIONS_FIELD_NUMBER: builtins.int
959
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
960
+ next_page_token: builtins.str
961
+ @property
962
+ def rule_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RuleVersion]: ...
963
+ def __init__(
964
+ self,
965
+ *,
966
+ rule_versions: collections.abc.Iterable[global___RuleVersion] | None = ...,
967
+ next_page_token: builtins.str = ...,
968
+ ) -> None: ...
969
+ def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "rule_versions", b"rule_versions"]) -> None: ...
970
+
971
+ global___ListRuleVersionsResponse = ListRuleVersionsResponse
972
+
973
+ @typing.final
974
+ class GetRuleVersionRequest(google.protobuf.message.Message):
975
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
976
+
977
+ RULE_VERSION_ID_FIELD_NUMBER: builtins.int
978
+ rule_version_id: builtins.str
979
+ def __init__(
980
+ self,
981
+ *,
982
+ rule_version_id: builtins.str = ...,
983
+ ) -> None: ...
984
+ def ClearField(self, field_name: typing.Literal["rule_version_id", b"rule_version_id"]) -> None: ...
985
+
986
+ global___GetRuleVersionRequest = GetRuleVersionRequest
987
+
988
+ @typing.final
989
+ class GetRuleVersionResponse(google.protobuf.message.Message):
990
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
991
+
992
+ RULE_FIELD_NUMBER: builtins.int
993
+ @property
994
+ def rule(self) -> global___Rule: ...
995
+ def __init__(
996
+ self,
997
+ *,
998
+ rule: global___Rule | None = ...,
999
+ ) -> None: ...
1000
+ def HasField(self, field_name: typing.Literal["rule", b"rule"]) -> builtins.bool: ...
1001
+ def ClearField(self, field_name: typing.Literal["rule", b"rule"]) -> None: ...
1002
+
1003
+ global___GetRuleVersionResponse = GetRuleVersionResponse
1004
+
1005
+ @typing.final
1006
+ class BatchGetRuleVersionsRequest(google.protobuf.message.Message):
1007
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1008
+
1009
+ RULE_VERSION_IDS_FIELD_NUMBER: builtins.int
1010
+ @property
1011
+ def rule_version_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1012
+ def __init__(
1013
+ self,
1014
+ *,
1015
+ rule_version_ids: collections.abc.Iterable[builtins.str] | None = ...,
1016
+ ) -> None: ...
1017
+ def ClearField(self, field_name: typing.Literal["rule_version_ids", b"rule_version_ids"]) -> None: ...
1018
+
1019
+ global___BatchGetRuleVersionsRequest = BatchGetRuleVersionsRequest
1020
+
1021
+ @typing.final
1022
+ class BatchGetRuleVersionsResponse(google.protobuf.message.Message):
1023
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1024
+
1025
+ RULES_FIELD_NUMBER: builtins.int
1026
+ @property
1027
+ def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Rule]: ...
1028
+ def __init__(
1029
+ self,
1030
+ *,
1031
+ rules: collections.abc.Iterable[global___Rule] | None = ...,
1032
+ ) -> None: ...
1033
+ def ClearField(self, field_name: typing.Literal["rules", b"rules"]) -> None: ...
1034
+
1035
+ global___BatchGetRuleVersionsResponse = BatchGetRuleVersionsResponse
1036
+
1037
+ @typing.final
1038
+ class RuleConditionExpression(google.protobuf.message.Message):
1039
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1040
+
1041
+ SINGLE_CHANNEL_COMPARISON_FIELD_NUMBER: builtins.int
1042
+ CALCULATED_CHANNEL_FIELD_NUMBER: builtins.int
1043
+ @property
1044
+ def single_channel_comparison(self) -> global___SingleChannelComparisonExpression: ...
1045
+ @property
1046
+ def calculated_channel(self) -> global___CalculatedChannelConfig: ...
1047
+ def __init__(
1048
+ self,
1049
+ *,
1050
+ single_channel_comparison: global___SingleChannelComparisonExpression | None = ...,
1051
+ calculated_channel: global___CalculatedChannelConfig | None = ...,
1052
+ ) -> None: ...
1053
+ def HasField(self, field_name: typing.Literal["calculated_channel", b"calculated_channel", "expression", b"expression", "single_channel_comparison", b"single_channel_comparison"]) -> builtins.bool: ...
1054
+ def ClearField(self, field_name: typing.Literal["calculated_channel", b"calculated_channel", "expression", b"expression", "single_channel_comparison", b"single_channel_comparison"]) -> None: ...
1055
+ def WhichOneof(self, oneof_group: typing.Literal["expression", b"expression"]) -> typing.Literal["single_channel_comparison", "calculated_channel"] | None: ...
1056
+
1057
+ global___RuleConditionExpression = RuleConditionExpression
1058
+
1059
+ @typing.final
1060
+ class SingleChannelComparisonExpression(google.protobuf.message.Message):
1061
+ """Deprecated - use CalculatedChannelConfig."""
1062
+
1063
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1064
+
1065
+ CHANNEL_COMPONENT_FIELD_NUMBER: builtins.int
1066
+ CHANNEL_NAME_FIELD_NUMBER: builtins.int
1067
+ COMPARATOR_FIELD_NUMBER: builtins.int
1068
+ DOUBLE_FIELD_NUMBER: builtins.int
1069
+ STRING_FIELD_NUMBER: builtins.int
1070
+ LAST_VALUE_FIELD_NUMBER: builtins.int
1071
+ channel_component: builtins.str
1072
+ channel_name: builtins.str
1073
+ comparator: global___ConditionComparator.ValueType
1074
+ double: builtins.float
1075
+ string: builtins.str
1076
+ @property
1077
+ def last_value(self) -> global___LastValueThreshold: ...
1078
+ def __init__(
1079
+ self,
1080
+ *,
1081
+ channel_component: builtins.str = ...,
1082
+ channel_name: builtins.str = ...,
1083
+ comparator: global___ConditionComparator.ValueType = ...,
1084
+ double: builtins.float = ...,
1085
+ string: builtins.str = ...,
1086
+ last_value: global___LastValueThreshold | None = ...,
1087
+ ) -> None: ...
1088
+ def HasField(self, field_name: typing.Literal["double", b"double", "last_value", b"last_value", "string", b"string", "threshold", b"threshold"]) -> builtins.bool: ...
1089
+ def ClearField(self, field_name: typing.Literal["channel_component", b"channel_component", "channel_name", b"channel_name", "comparator", b"comparator", "double", b"double", "last_value", b"last_value", "string", b"string", "threshold", b"threshold"]) -> None: ...
1090
+ def WhichOneof(self, oneof_group: typing.Literal["threshold", b"threshold"]) -> typing.Literal["double", "string", "last_value"] | None: ...
1091
+
1092
+ global___SingleChannelComparisonExpression = SingleChannelComparisonExpression
1093
+
1094
+ @typing.final
1095
+ class LastValueThreshold(google.protobuf.message.Message):
1096
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1097
+
1098
+ def __init__(
1099
+ self,
1100
+ ) -> None: ...
1101
+
1102
+ global___LastValueThreshold = LastValueThreshold
1103
+
1104
+ @typing.final
1105
+ class CalculatedChannelConfig(google.protobuf.message.Message):
1106
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1107
+
1108
+ @typing.final
1109
+ class ChannelReferencesEntry(google.protobuf.message.Message):
1110
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1111
+
1112
+ KEY_FIELD_NUMBER: builtins.int
1113
+ VALUE_FIELD_NUMBER: builtins.int
1114
+ key: builtins.str
1115
+ @property
1116
+ def value(self) -> global___ChannelReference: ...
1117
+ def __init__(
1118
+ self,
1119
+ *,
1120
+ key: builtins.str = ...,
1121
+ value: global___ChannelReference | None = ...,
1122
+ ) -> None: ...
1123
+ def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
1124
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
1125
+
1126
+ CHANNEL_REFERENCES_FIELD_NUMBER: builtins.int
1127
+ EXPRESSION_FIELD_NUMBER: builtins.int
1128
+ expression: builtins.str
1129
+ @property
1130
+ def channel_references(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___ChannelReference]: ...
1131
+ def __init__(
1132
+ self,
1133
+ *,
1134
+ channel_references: collections.abc.Mapping[builtins.str, global___ChannelReference] | None = ...,
1135
+ expression: builtins.str = ...,
1136
+ ) -> None: ...
1137
+ def ClearField(self, field_name: typing.Literal["channel_references", b"channel_references", "expression", b"expression"]) -> None: ...
1138
+
1139
+ global___CalculatedChannelConfig = CalculatedChannelConfig
1140
+
1141
+ @typing.final
1142
+ class ChannelReference(google.protobuf.message.Message):
1143
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1144
+
1145
+ NAME_FIELD_NUMBER: builtins.int
1146
+ COMPONENT_FIELD_NUMBER: builtins.int
1147
+ name: builtins.str
1148
+ component: builtins.str
1149
+ def __init__(
1150
+ self,
1151
+ *,
1152
+ name: builtins.str = ...,
1153
+ component: builtins.str = ...,
1154
+ ) -> None: ...
1155
+ def ClearField(self, field_name: typing.Literal["component", b"component", "name", b"name"]) -> None: ...
1156
+
1157
+ global___ChannelReference = ChannelReference
1158
+
1159
+ @typing.final
1160
+ class RuleActionConfiguration(google.protobuf.message.Message):
1161
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1162
+
1163
+ NOTIFICATION_FIELD_NUMBER: builtins.int
1164
+ ANNOTATION_FIELD_NUMBER: builtins.int
1165
+ @property
1166
+ def notification(self) -> global___NotificationActionConfiguration: ...
1167
+ @property
1168
+ def annotation(self) -> global___AnnotationActionConfiguration: ...
1169
+ def __init__(
1170
+ self,
1171
+ *,
1172
+ notification: global___NotificationActionConfiguration | None = ...,
1173
+ annotation: global___AnnotationActionConfiguration | None = ...,
1174
+ ) -> None: ...
1175
+ def HasField(self, field_name: typing.Literal["annotation", b"annotation", "configuration", b"configuration", "notification", b"notification"]) -> builtins.bool: ...
1176
+ def ClearField(self, field_name: typing.Literal["annotation", b"annotation", "configuration", b"configuration", "notification", b"notification"]) -> None: ...
1177
+ def WhichOneof(self, oneof_group: typing.Literal["configuration", b"configuration"]) -> typing.Literal["notification", "annotation"] | None: ...
1178
+
1179
+ global___RuleActionConfiguration = RuleActionConfiguration
1180
+
1181
+ @typing.final
1182
+ class NotificationActionConfiguration(google.protobuf.message.Message):
1183
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1184
+
1185
+ RECIPIENT_USER_IDS_FIELD_NUMBER: builtins.int
1186
+ @property
1187
+ def recipient_user_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1188
+ def __init__(
1189
+ self,
1190
+ *,
1191
+ recipient_user_ids: collections.abc.Iterable[builtins.str] | None = ...,
1192
+ ) -> None: ...
1193
+ def ClearField(self, field_name: typing.Literal["recipient_user_ids", b"recipient_user_ids"]) -> None: ...
1194
+
1195
+ global___NotificationActionConfiguration = NotificationActionConfiguration
1196
+
1197
+ @typing.final
1198
+ class AnnotationActionConfiguration(google.protobuf.message.Message):
1199
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1200
+
1201
+ TAG_IDS_FIELD_NUMBER: builtins.int
1202
+ ANNOTATION_TYPE_FIELD_NUMBER: builtins.int
1203
+ ASSIGNED_TO_USER_ID_FIELD_NUMBER: builtins.int
1204
+ annotation_type: sift.annotations.v1.annotations_pb2.AnnotationType.ValueType
1205
+ assigned_to_user_id: builtins.str
1206
+ @property
1207
+ def tag_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1208
+ def __init__(
1209
+ self,
1210
+ *,
1211
+ tag_ids: collections.abc.Iterable[builtins.str] | None = ...,
1212
+ annotation_type: sift.annotations.v1.annotations_pb2.AnnotationType.ValueType = ...,
1213
+ assigned_to_user_id: builtins.str | None = ...,
1214
+ ) -> None: ...
1215
+ def HasField(self, field_name: typing.Literal["_assigned_to_user_id", b"_assigned_to_user_id", "assigned_to_user_id", b"assigned_to_user_id"]) -> builtins.bool: ...
1216
+ def ClearField(self, field_name: typing.Literal["_assigned_to_user_id", b"_assigned_to_user_id", "annotation_type", b"annotation_type", "assigned_to_user_id", b"assigned_to_user_id", "tag_ids", b"tag_ids"]) -> None: ...
1217
+ def WhichOneof(self, oneof_group: typing.Literal["_assigned_to_user_id", b"_assigned_to_user_id"]) -> typing.Literal["assigned_to_user_id"] | None: ...
1218
+
1219
+ global___AnnotationActionConfiguration = AnnotationActionConfiguration
1220
+
1221
+ @typing.final
1222
+ class EvaluateRulesRequest(google.protobuf.message.Message):
1223
+ """Deprecated - use RuleEvaluationService instead."""
1224
+
1225
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1226
+
1227
+ RULE_IDS_FIELD_NUMBER: builtins.int
1228
+ ANNOTATION_OPTIONS_FIELD_NUMBER: builtins.int
1229
+ RUN_ID_FIELD_NUMBER: builtins.int
1230
+ TIME_RANGE_FIELD_NUMBER: builtins.int
1231
+ DRY_RUN_FIELD_NUMBER: builtins.int
1232
+ run_id: builtins.str
1233
+ dry_run: builtins.bool
1234
+ @property
1235
+ def rule_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1236
+ @property
1237
+ def annotation_options(self) -> global___EvaluatedAnnotationOptions: ...
1238
+ @property
1239
+ def time_range(self) -> global___TimeRangeQuery: ...
1240
+ def __init__(
1241
+ self,
1242
+ *,
1243
+ rule_ids: collections.abc.Iterable[builtins.str] | None = ...,
1244
+ annotation_options: global___EvaluatedAnnotationOptions | None = ...,
1245
+ run_id: builtins.str = ...,
1246
+ time_range: global___TimeRangeQuery | None = ...,
1247
+ dry_run: builtins.bool = ...,
1248
+ ) -> None: ...
1249
+ def HasField(self, field_name: typing.Literal["annotation_options", b"annotation_options", "run_id", b"run_id", "time", b"time", "time_range", b"time_range"]) -> builtins.bool: ...
1250
+ def ClearField(self, field_name: typing.Literal["annotation_options", b"annotation_options", "dry_run", b"dry_run", "rule_ids", b"rule_ids", "run_id", b"run_id", "time", b"time", "time_range", b"time_range"]) -> None: ...
1251
+ def WhichOneof(self, oneof_group: typing.Literal["time", b"time"]) -> typing.Literal["run_id", "time_range"] | None: ...
1252
+
1253
+ global___EvaluateRulesRequest = EvaluateRulesRequest
1254
+
1255
+ @typing.final
1256
+ class EvaluatedAnnotationOptions(google.protobuf.message.Message):
1257
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1258
+
1259
+ TAG_IDS_FIELD_NUMBER: builtins.int
1260
+ @property
1261
+ def tag_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1262
+ def __init__(
1263
+ self,
1264
+ *,
1265
+ tag_ids: collections.abc.Iterable[builtins.str] | None = ...,
1266
+ ) -> None: ...
1267
+ def ClearField(self, field_name: typing.Literal["tag_ids", b"tag_ids"]) -> None: ...
1268
+
1269
+ global___EvaluatedAnnotationOptions = EvaluatedAnnotationOptions
1270
+
1271
+ @typing.final
1272
+ class TimeRangeQuery(google.protobuf.message.Message):
1273
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1274
+
1275
+ START_TIME_FIELD_NUMBER: builtins.int
1276
+ END_TIME_FIELD_NUMBER: builtins.int
1277
+ @property
1278
+ def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1279
+ @property
1280
+ def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1281
+ def __init__(
1282
+ self,
1283
+ *,
1284
+ start_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1285
+ end_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1286
+ ) -> None: ...
1287
+ def HasField(self, field_name: typing.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ...
1288
+ def ClearField(self, field_name: typing.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> None: ...
1289
+
1290
+ global___TimeRangeQuery = TimeRangeQuery
1291
+
1292
+ @typing.final
1293
+ class EvaluateRulesResponse(google.protobuf.message.Message):
1294
+ """Deprecated - use RuleEvaluationService instead."""
1295
+
1296
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1297
+
1298
+ CREATED_ANNOTATION_COUNT_FIELD_NUMBER: builtins.int
1299
+ DRY_RUN_ANNOTATIONS_FIELD_NUMBER: builtins.int
1300
+ JOB_ID_FIELD_NUMBER: builtins.int
1301
+ REPORT_ID_FIELD_NUMBER: builtins.int
1302
+ created_annotation_count: builtins.int
1303
+ job_id: builtins.str
1304
+ """job_id and report_id will be set if the job has an extended run time and is being processed asynchronously."""
1305
+ report_id: builtins.str
1306
+ @property
1307
+ def dry_run_annotations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DryRunAnnotation]:
1308
+ """If dry_run is true, this will be populated with the annotations that would be created"""
1309
+
1310
+ def __init__(
1311
+ self,
1312
+ *,
1313
+ created_annotation_count: builtins.int = ...,
1314
+ dry_run_annotations: collections.abc.Iterable[global___DryRunAnnotation] | None = ...,
1315
+ job_id: builtins.str | None = ...,
1316
+ report_id: builtins.str | None = ...,
1317
+ ) -> None: ...
1318
+ def HasField(self, field_name: typing.Literal["_job_id", b"_job_id", "_report_id", b"_report_id", "job_id", b"job_id", "report_id", b"report_id"]) -> builtins.bool: ...
1319
+ def ClearField(self, field_name: typing.Literal["_job_id", b"_job_id", "_report_id", b"_report_id", "created_annotation_count", b"created_annotation_count", "dry_run_annotations", b"dry_run_annotations", "job_id", b"job_id", "report_id", b"report_id"]) -> None: ...
1320
+ @typing.overload
1321
+ def WhichOneof(self, oneof_group: typing.Literal["_job_id", b"_job_id"]) -> typing.Literal["job_id"] | None: ...
1322
+ @typing.overload
1323
+ def WhichOneof(self, oneof_group: typing.Literal["_report_id", b"_report_id"]) -> typing.Literal["report_id"] | None: ...
1324
+
1325
+ global___EvaluateRulesResponse = EvaluateRulesResponse
1326
+
1327
+ @typing.final
1328
+ class DryRunAnnotation(google.protobuf.message.Message):
1329
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1330
+
1331
+ CONDITION_ID_FIELD_NUMBER: builtins.int
1332
+ NAME_FIELD_NUMBER: builtins.int
1333
+ START_TIME_FIELD_NUMBER: builtins.int
1334
+ END_TIME_FIELD_NUMBER: builtins.int
1335
+ CONDITION_VERSION_ID_FIELD_NUMBER: builtins.int
1336
+ condition_id: builtins.str
1337
+ name: builtins.str
1338
+ condition_version_id: builtins.str
1339
+ @property
1340
+ def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1341
+ @property
1342
+ def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1343
+ def __init__(
1344
+ self,
1345
+ *,
1346
+ condition_id: builtins.str = ...,
1347
+ name: builtins.str = ...,
1348
+ start_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1349
+ end_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1350
+ condition_version_id: builtins.str = ...,
1351
+ ) -> None: ...
1352
+ def HasField(self, field_name: typing.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ...
1353
+ def ClearField(self, field_name: typing.Literal["condition_id", b"condition_id", "condition_version_id", b"condition_version_id", "end_time", b"end_time", "name", b"name", "start_time", b"start_time"]) -> None: ...
1354
+
1355
+ global___DryRunAnnotation = DryRunAnnotation