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.
- google/__init__.py +1 -0
- google/api/__init__.py +0 -0
- google/api/annotations_pb2.py +27 -0
- google/api/annotations_pb2.pyi +29 -0
- google/api/annotations_pb2_grpc.py +4 -0
- google/api/annotations_pb2_grpc.pyi +30 -0
- google/api/field_behavior_pb2.py +30 -0
- google/api/field_behavior_pb2.pyi +175 -0
- google/api/field_behavior_pb2_grpc.py +4 -0
- google/api/field_behavior_pb2_grpc.pyi +30 -0
- google/api/http_pb2.py +31 -0
- google/api/http_pb2.pyi +433 -0
- google/api/http_pb2_grpc.py +4 -0
- google/api/http_pb2_grpc.pyi +30 -0
- protoc_gen_openapiv2/__init__.py +0 -0
- protoc_gen_openapiv2/options/__init__.py +0 -0
- protoc_gen_openapiv2/options/annotations_pb2.py +27 -0
- protoc_gen_openapiv2/options/annotations_pb2.pyi +48 -0
- protoc_gen_openapiv2/options/annotations_pb2_grpc.py +4 -0
- protoc_gen_openapiv2/options/annotations_pb2_grpc.pyi +17 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.py +132 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.pyi +1533 -0
- protoc_gen_openapiv2/options/openapiv2_pb2_grpc.py +4 -0
- protoc_gen_openapiv2/options/openapiv2_pb2_grpc.pyi +17 -0
- sift/__init__.py +0 -0
- sift/annotation_logs/__init__.py +0 -0
- sift/annotation_logs/v1/__init__.py +0 -0
- sift/annotation_logs/v1/annotation_logs_pb2.py +115 -0
- sift/annotation_logs/v1/annotation_logs_pb2.pyi +370 -0
- sift/annotation_logs/v1/annotation_logs_pb2_grpc.py +135 -0
- sift/annotation_logs/v1/annotation_logs_pb2_grpc.pyi +84 -0
- sift/annotations/__init__.py +0 -0
- sift/annotations/v1/__init__.py +0 -0
- sift/annotations/v1/annotations_pb2.py +180 -0
- sift/annotations/v1/annotations_pb2.pyi +539 -0
- sift/annotations/v1/annotations_pb2_grpc.py +237 -0
- sift/annotations/v1/annotations_pb2_grpc.pyi +144 -0
- sift/assets/__init__.py +0 -0
- sift/assets/v1/__init__.py +0 -0
- sift/assets/v1/assets_pb2.py +90 -0
- sift/assets/v1/assets_pb2.pyi +235 -0
- sift/assets/v1/assets_pb2_grpc.py +168 -0
- sift/assets/v1/assets_pb2_grpc.pyi +101 -0
- sift/calculated_channels/__init__.py +0 -0
- sift/calculated_channels/v1/__init__.py +0 -0
- sift/calculated_channels/v1/calculated_channels_pb2.py +99 -0
- sift/calculated_channels/v1/calculated_channels_pb2.pyi +280 -0
- sift/calculated_channels/v1/calculated_channels_pb2_grpc.py +101 -0
- sift/calculated_channels/v1/calculated_channels_pb2_grpc.pyi +64 -0
- sift/campaigns/__init__.py +0 -0
- sift/campaigns/v1/__init__.py +0 -0
- sift/campaigns/v1/campaigns_pb2.py +144 -0
- sift/campaigns/v1/campaigns_pb2.pyi +383 -0
- sift/campaigns/v1/campaigns_pb2_grpc.py +169 -0
- sift/campaigns/v1/campaigns_pb2_grpc.pyi +104 -0
- sift/channel_schemas/__init__.py +0 -0
- sift/channel_schemas/v1/__init__.py +0 -0
- sift/channel_schemas/v1/channel_schemas_pb2.py +69 -0
- sift/channel_schemas/v1/channel_schemas_pb2.pyi +117 -0
- sift/channel_schemas/v1/channel_schemas_pb2_grpc.py +101 -0
- sift/channel_schemas/v1/channel_schemas_pb2_grpc.pyi +64 -0
- sift/channels/__init__.py +0 -0
- sift/channels/v2/__init__.py +0 -0
- sift/channels/v2/channels_pb2.py +88 -0
- sift/channels/v2/channels_pb2.pyi +183 -0
- sift/channels/v2/channels_pb2_grpc.py +101 -0
- sift/channels/v2/channels_pb2_grpc.pyi +64 -0
- sift/common/__init__.py +0 -0
- sift/common/type/__init__.py +0 -0
- sift/common/type/v1/__init__.py +0 -0
- sift/common/type/v1/channel_bit_field_element_pb2.py +34 -0
- sift/common/type/v1/channel_bit_field_element_pb2.pyi +33 -0
- sift/common/type/v1/channel_bit_field_element_pb2_grpc.py +4 -0
- sift/common/type/v1/channel_bit_field_element_pb2_grpc.pyi +17 -0
- sift/common/type/v1/channel_data_type_pb2.py +29 -0
- sift/common/type/v1/channel_data_type_pb2.pyi +50 -0
- sift/common/type/v1/channel_data_type_pb2_grpc.py +4 -0
- sift/common/type/v1/channel_data_type_pb2_grpc.pyi +17 -0
- sift/common/type/v1/channel_enum_type_pb2.py +32 -0
- sift/common/type/v1/channel_enum_type_pb2.pyi +29 -0
- sift/common/type/v1/channel_enum_type_pb2_grpc.py +4 -0
- sift/common/type/v1/channel_enum_type_pb2_grpc.pyi +17 -0
- sift/common/type/v1/organization_pb2.py +27 -0
- sift/common/type/v1/organization_pb2.pyi +29 -0
- sift/common/type/v1/organization_pb2_grpc.py +4 -0
- sift/common/type/v1/organization_pb2_grpc.pyi +17 -0
- sift/common/type/v1/resource_identifier_pb2.py +46 -0
- sift/common/type/v1/resource_identifier_pb2.pyi +145 -0
- sift/common/type/v1/resource_identifier_pb2_grpc.py +4 -0
- sift/common/type/v1/resource_identifier_pb2_grpc.pyi +17 -0
- sift/common/type/v1/user_pb2.py +33 -0
- sift/common/type/v1/user_pb2.pyi +36 -0
- sift/common/type/v1/user_pb2_grpc.py +4 -0
- sift/common/type/v1/user_pb2_grpc.pyi +17 -0
- sift/data/__init__.py +0 -0
- sift/data/v1/__init__.py +0 -0
- sift/data/v1/data_pb2.py +212 -0
- sift/data/v1/data_pb2.pyi +745 -0
- sift/data/v1/data_pb2_grpc.py +67 -0
- sift/data/v1/data_pb2_grpc.pyi +44 -0
- sift/ingest/__init__.py +0 -0
- sift/ingest/v1/__init__.py +0 -0
- sift/ingest/v1/ingest_pb2.py +35 -0
- sift/ingest/v1/ingest_pb2.pyi +118 -0
- sift/ingest/v1/ingest_pb2_grpc.py +66 -0
- sift/ingest/v1/ingest_pb2_grpc.pyi +41 -0
- sift/ingestion_configs/__init__.py +0 -0
- sift/ingestion_configs/v1/__init__.py +0 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2.py +115 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2.pyi +332 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2_grpc.py +203 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2_grpc.pyi +124 -0
- sift/notifications/__init__.py +0 -0
- sift/notifications/v1/__init__.py +0 -0
- sift/notifications/v1/notifications_pb2.py +64 -0
- sift/notifications/v1/notifications_pb2.pyi +225 -0
- sift/notifications/v1/notifications_pb2_grpc.py +101 -0
- sift/notifications/v1/notifications_pb2_grpc.pyi +64 -0
- sift/ping/__init__.py +0 -0
- sift/ping/v1/__init__.py +0 -0
- sift/ping/v1/ping_pb2.py +38 -0
- sift/ping/v1/ping_pb2.pyi +36 -0
- sift/ping/v1/ping_pb2_grpc.py +66 -0
- sift/ping/v1/ping_pb2_grpc.pyi +41 -0
- sift/remote_files/__init__.py +0 -0
- sift/remote_files/v1/__init__.py +0 -0
- sift/remote_files/v1/remote_files_pb2.py +174 -0
- sift/remote_files/v1/remote_files_pb2.pyi +472 -0
- sift/remote_files/v1/remote_files_pb2_grpc.py +271 -0
- sift/remote_files/v1/remote_files_pb2_grpc.pyi +164 -0
- sift/report_templates/__init__.py +0 -0
- sift/report_templates/v1/__init__.py +0 -0
- sift/report_templates/v1/report_templates_pb2.py +146 -0
- sift/report_templates/v1/report_templates_pb2.pyi +381 -0
- sift/report_templates/v1/report_templates_pb2_grpc.py +169 -0
- sift/report_templates/v1/report_templates_pb2_grpc.pyi +104 -0
- sift/reports/__init__.py +0 -0
- sift/reports/v1/__init__.py +0 -0
- sift/reports/v1/reports_pb2.py +193 -0
- sift/reports/v1/reports_pb2.pyi +562 -0
- sift/reports/v1/reports_pb2_grpc.py +205 -0
- sift/reports/v1/reports_pb2_grpc.pyi +136 -0
- sift/rule_evaluation/__init__.py +0 -0
- sift/rule_evaluation/v1/__init__.py +0 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2.py +89 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2.pyi +263 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2_grpc.py +101 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2_grpc.pyi +64 -0
- sift/rules/__init__.py +0 -0
- sift/rules/v1/__init__.py +0 -0
- sift/rules/v1/rules_pb2.py +420 -0
- sift/rules/v1/rules_pb2.pyi +1355 -0
- sift/rules/v1/rules_pb2_grpc.py +577 -0
- sift/rules/v1/rules_pb2_grpc.pyi +351 -0
- sift/runs/__init__.py +0 -0
- sift/runs/v2/__init__.py +0 -0
- sift/runs/v2/runs_pb2.py +150 -0
- sift/runs/v2/runs_pb2.pyi +413 -0
- sift/runs/v2/runs_pb2_grpc.py +271 -0
- sift/runs/v2/runs_pb2_grpc.pyi +164 -0
- sift/saved_searches/__init__.py +0 -0
- sift/saved_searches/v1/__init__.py +0 -0
- sift/saved_searches/v1/saved_searches_pb2.py +144 -0
- sift/saved_searches/v1/saved_searches_pb2.pyi +385 -0
- sift/saved_searches/v1/saved_searches_pb2_grpc.py +237 -0
- sift/saved_searches/v1/saved_searches_pb2_grpc.pyi +144 -0
- sift/tags/__init__.py +0 -0
- sift/tags/v1/__init__.py +0 -0
- sift/tags/v1/tags_pb2.py +49 -0
- sift/tags/v1/tags_pb2.pyi +71 -0
- sift/tags/v1/tags_pb2_grpc.py +4 -0
- sift/tags/v1/tags_pb2_grpc.pyi +17 -0
- sift/users/__init__.py +0 -0
- sift/users/v2/__init__.py +0 -0
- sift/users/v2/users_pb2.py +61 -0
- sift/users/v2/users_pb2.pyi +142 -0
- sift/users/v2/users_pb2_grpc.py +135 -0
- sift/users/v2/users_pb2_grpc.pyi +84 -0
- sift/views/__init__.py +0 -0
- sift/views/v1/__init__.py +0 -0
- sift/views/v1/views_pb2.py +130 -0
- sift/views/v1/views_pb2.pyi +466 -0
- sift/views/v1/views_pb2_grpc.py +305 -0
- sift/views/v1/views_pb2_grpc.pyi +184 -0
- sift_grafana/py.typed +0 -0
- sift_grafana/sift_query_model.py +64 -0
- sift_py/__init__.py +923 -0
- sift_py/_internal/__init__.py +5 -0
- sift_py/_internal/cel.py +18 -0
- sift_py/_internal/channel.py +42 -0
- sift_py/_internal/convert/__init__.py +3 -0
- sift_py/_internal/convert/json.py +24 -0
- sift_py/_internal/convert/protobuf.py +34 -0
- sift_py/_internal/convert/timestamp.py +9 -0
- sift_py/_internal/test_util/__init__.py +0 -0
- sift_py/_internal/test_util/channel.py +136 -0
- sift_py/_internal/test_util/fn.py +14 -0
- sift_py/_internal/test_util/server_interceptor.py +62 -0
- sift_py/_internal/time.py +48 -0
- sift_py/_internal/user.py +39 -0
- sift_py/data/__init__.py +171 -0
- sift_py/data/_channel.py +38 -0
- sift_py/data/_deserialize.py +208 -0
- sift_py/data/_deserialize_test.py +134 -0
- sift_py/data/_service_test.py +276 -0
- sift_py/data/_validate.py +10 -0
- sift_py/data/error.py +5 -0
- sift_py/data/query.py +299 -0
- sift_py/data/service.py +497 -0
- sift_py/data_import/__init__.py +130 -0
- sift_py/data_import/_config.py +167 -0
- sift_py/data_import/_config_test.py +166 -0
- sift_py/data_import/_csv_test.py +395 -0
- sift_py/data_import/_status_test.py +176 -0
- sift_py/data_import/_tdms_test.py +238 -0
- sift_py/data_import/ch10.py +157 -0
- sift_py/data_import/config.py +19 -0
- sift_py/data_import/csv.py +259 -0
- sift_py/data_import/status.py +113 -0
- sift_py/data_import/tdms.py +206 -0
- sift_py/data_import/tempfile.py +30 -0
- sift_py/data_import/time_format.py +39 -0
- sift_py/error.py +11 -0
- sift_py/file_attachment/__init__.py +88 -0
- sift_py/file_attachment/_internal/__init__.py +0 -0
- sift_py/file_attachment/_internal/download.py +13 -0
- sift_py/file_attachment/_internal/upload.py +100 -0
- sift_py/file_attachment/_service_test.py +161 -0
- sift_py/file_attachment/entity.py +30 -0
- sift_py/file_attachment/metadata.py +107 -0
- sift_py/file_attachment/service.py +142 -0
- sift_py/grpc/__init__.py +15 -0
- sift_py/grpc/_async_interceptors/__init__.py +0 -0
- sift_py/grpc/_async_interceptors/base.py +72 -0
- sift_py/grpc/_async_interceptors/metadata.py +36 -0
- sift_py/grpc/_interceptors/__init__.py +0 -0
- sift_py/grpc/_interceptors/base.py +61 -0
- sift_py/grpc/_interceptors/context.py +25 -0
- sift_py/grpc/_interceptors/metadata.py +33 -0
- sift_py/grpc/_retry.py +70 -0
- sift_py/grpc/keepalive.py +34 -0
- sift_py/grpc/transport.py +250 -0
- sift_py/grpc/transport_test.py +170 -0
- sift_py/ingestion/__init__.py +6 -0
- sift_py/ingestion/_internal/__init__.py +6 -0
- sift_py/ingestion/_internal/channel.py +12 -0
- sift_py/ingestion/_internal/error.py +10 -0
- sift_py/ingestion/_internal/ingest.py +350 -0
- sift_py/ingestion/_internal/ingest_test.py +357 -0
- sift_py/ingestion/_internal/ingestion_config.py +130 -0
- sift_py/ingestion/_internal/run.py +46 -0
- sift_py/ingestion/_service_test.py +478 -0
- sift_py/ingestion/buffer.py +189 -0
- sift_py/ingestion/channel.py +422 -0
- sift_py/ingestion/config/__init__.py +3 -0
- sift_py/ingestion/config/telemetry.py +281 -0
- sift_py/ingestion/config/telemetry_test.py +405 -0
- sift_py/ingestion/config/yaml/__init__.py +0 -0
- sift_py/ingestion/config/yaml/error.py +44 -0
- sift_py/ingestion/config/yaml/load.py +126 -0
- sift_py/ingestion/config/yaml/spec.py +58 -0
- sift_py/ingestion/config/yaml/test_load.py +25 -0
- sift_py/ingestion/flow.py +73 -0
- sift_py/ingestion/manager.py +99 -0
- sift_py/ingestion/rule/__init__.py +4 -0
- sift_py/ingestion/rule/config.py +11 -0
- sift_py/ingestion/service.py +237 -0
- sift_py/py.typed +0 -0
- sift_py/report_templates/__init__.py +0 -0
- sift_py/report_templates/_config_test.py +34 -0
- sift_py/report_templates/_service_test.py +94 -0
- sift_py/report_templates/config.py +36 -0
- sift_py/report_templates/service.py +171 -0
- sift_py/rest.py +29 -0
- sift_py/rule/__init__.py +0 -0
- sift_py/rule/_config_test.py +109 -0
- sift_py/rule/_service_test.py +168 -0
- sift_py/rule/config.py +229 -0
- sift_py/rule/service.py +484 -0
- sift_py/yaml/__init__.py +0 -0
- sift_py/yaml/_channel_test.py +169 -0
- sift_py/yaml/_rule_test.py +207 -0
- sift_py/yaml/channel.py +224 -0
- sift_py/yaml/report_templates.py +73 -0
- sift_py/yaml/rule.py +321 -0
- sift_py/yaml/utils.py +15 -0
- sift_stack_py-0.3.2.dist-info/LICENSE +7 -0
- sift_stack_py-0.3.2.dist-info/METADATA +109 -0
- sift_stack_py-0.3.2.dist-info/RECORD +291 -0
- sift_stack_py-0.3.2.dist-info/WHEEL +5 -0
- sift_stack_py-0.3.2.dist-info/top_level.txt +5 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.field_mask_pb2
|
|
10
|
+
import google.protobuf.internal.containers
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
13
|
+
import typing
|
|
14
|
+
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class SavedSearch(google.protobuf.message.Message):
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
SAVED_SEARCH_ID_FIELD_NUMBER: builtins.int
|
|
22
|
+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
|
|
23
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
24
|
+
PROPERTIES_FIELD_NUMBER: builtins.int
|
|
25
|
+
CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int
|
|
26
|
+
MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int
|
|
27
|
+
CREATED_DATE_FIELD_NUMBER: builtins.int
|
|
28
|
+
MODIFIED_DATE_FIELD_NUMBER: builtins.int
|
|
29
|
+
saved_search_id: builtins.str
|
|
30
|
+
organization_id: builtins.str
|
|
31
|
+
name: builtins.str
|
|
32
|
+
created_by_user_id: builtins.str
|
|
33
|
+
modified_by_user_id: builtins.str
|
|
34
|
+
@property
|
|
35
|
+
def properties(self) -> global___SavedSearchProperties: ...
|
|
36
|
+
@property
|
|
37
|
+
def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
38
|
+
@property
|
|
39
|
+
def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
40
|
+
def __init__(
|
|
41
|
+
self,
|
|
42
|
+
*,
|
|
43
|
+
saved_search_id: builtins.str = ...,
|
|
44
|
+
organization_id: builtins.str = ...,
|
|
45
|
+
name: builtins.str = ...,
|
|
46
|
+
properties: global___SavedSearchProperties | None = ...,
|
|
47
|
+
created_by_user_id: builtins.str = ...,
|
|
48
|
+
modified_by_user_id: builtins.str = ...,
|
|
49
|
+
created_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
50
|
+
modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
51
|
+
) -> None: ...
|
|
52
|
+
def HasField(self, field_name: typing.Literal["created_date", b"created_date", "modified_date", b"modified_date", "properties", b"properties"]) -> builtins.bool: ...
|
|
53
|
+
def ClearField(self, field_name: typing.Literal["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", "name", b"name", "organization_id", b"organization_id", "properties", b"properties", "saved_search_id", b"saved_search_id"]) -> None: ...
|
|
54
|
+
|
|
55
|
+
global___SavedSearch = SavedSearch
|
|
56
|
+
|
|
57
|
+
@typing.final
|
|
58
|
+
class SavedSearchProperties(google.protobuf.message.Message):
|
|
59
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
60
|
+
|
|
61
|
+
OVERVIEW_MODE_FIELD_NUMBER: builtins.int
|
|
62
|
+
SEARCH_TERM_FIELD_NUMBER: builtins.int
|
|
63
|
+
FROM_DATE_TIME_FIELD_NUMBER: builtins.int
|
|
64
|
+
TO_DATE_TIME_FIELD_NUMBER: builtins.int
|
|
65
|
+
ASSET_ITEMS_FIELD_NUMBER: builtins.int
|
|
66
|
+
USER_ITEMS_FIELD_NUMBER: builtins.int
|
|
67
|
+
TAG_ITEMS_FIELD_NUMBER: builtins.int
|
|
68
|
+
ANNOTATION_ITEMS_FIELD_NUMBER: builtins.int
|
|
69
|
+
RUN_ITEMS_FIELD_NUMBER: builtins.int
|
|
70
|
+
REPORT_TEMPLATE_ITEMS_FIELD_NUMBER: builtins.int
|
|
71
|
+
SHOW_ADVANCED_FILTERS_FIELD_NUMBER: builtins.int
|
|
72
|
+
overview_mode: builtins.str
|
|
73
|
+
search_term: builtins.str
|
|
74
|
+
show_advanced_filters: builtins.bool
|
|
75
|
+
@property
|
|
76
|
+
def from_date_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
77
|
+
@property
|
|
78
|
+
def to_date_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
79
|
+
@property
|
|
80
|
+
def asset_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SavedSearchFilterItem]: ...
|
|
81
|
+
@property
|
|
82
|
+
def user_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SavedSearchFilterItem]: ...
|
|
83
|
+
@property
|
|
84
|
+
def tag_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SavedSearchFilterItem]: ...
|
|
85
|
+
@property
|
|
86
|
+
def annotation_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SavedSearchFilterItem]: ...
|
|
87
|
+
@property
|
|
88
|
+
def run_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SavedSearchFilterItem]: ...
|
|
89
|
+
@property
|
|
90
|
+
def report_template_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SavedSearchFilterItem]: ...
|
|
91
|
+
def __init__(
|
|
92
|
+
self,
|
|
93
|
+
*,
|
|
94
|
+
overview_mode: builtins.str = ...,
|
|
95
|
+
search_term: builtins.str | None = ...,
|
|
96
|
+
from_date_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
97
|
+
to_date_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
98
|
+
asset_items: collections.abc.Iterable[global___SavedSearchFilterItem] | None = ...,
|
|
99
|
+
user_items: collections.abc.Iterable[global___SavedSearchFilterItem] | None = ...,
|
|
100
|
+
tag_items: collections.abc.Iterable[global___SavedSearchFilterItem] | None = ...,
|
|
101
|
+
annotation_items: collections.abc.Iterable[global___SavedSearchFilterItem] | None = ...,
|
|
102
|
+
run_items: collections.abc.Iterable[global___SavedSearchFilterItem] | None = ...,
|
|
103
|
+
report_template_items: collections.abc.Iterable[global___SavedSearchFilterItem] | None = ...,
|
|
104
|
+
show_advanced_filters: builtins.bool | None = ...,
|
|
105
|
+
) -> None: ...
|
|
106
|
+
def HasField(self, field_name: typing.Literal["_from_date_time", b"_from_date_time", "_search_term", b"_search_term", "_show_advanced_filters", b"_show_advanced_filters", "_to_date_time", b"_to_date_time", "from_date_time", b"from_date_time", "search_term", b"search_term", "show_advanced_filters", b"show_advanced_filters", "to_date_time", b"to_date_time"]) -> builtins.bool: ...
|
|
107
|
+
def ClearField(self, field_name: typing.Literal["_from_date_time", b"_from_date_time", "_search_term", b"_search_term", "_show_advanced_filters", b"_show_advanced_filters", "_to_date_time", b"_to_date_time", "annotation_items", b"annotation_items", "asset_items", b"asset_items", "from_date_time", b"from_date_time", "overview_mode", b"overview_mode", "report_template_items", b"report_template_items", "run_items", b"run_items", "search_term", b"search_term", "show_advanced_filters", b"show_advanced_filters", "tag_items", b"tag_items", "to_date_time", b"to_date_time", "user_items", b"user_items"]) -> None: ...
|
|
108
|
+
@typing.overload
|
|
109
|
+
def WhichOneof(self, oneof_group: typing.Literal["_from_date_time", b"_from_date_time"]) -> typing.Literal["from_date_time"] | None: ...
|
|
110
|
+
@typing.overload
|
|
111
|
+
def WhichOneof(self, oneof_group: typing.Literal["_search_term", b"_search_term"]) -> typing.Literal["search_term"] | None: ...
|
|
112
|
+
@typing.overload
|
|
113
|
+
def WhichOneof(self, oneof_group: typing.Literal["_show_advanced_filters", b"_show_advanced_filters"]) -> typing.Literal["show_advanced_filters"] | None: ...
|
|
114
|
+
@typing.overload
|
|
115
|
+
def WhichOneof(self, oneof_group: typing.Literal["_to_date_time", b"_to_date_time"]) -> typing.Literal["to_date_time"] | None: ...
|
|
116
|
+
|
|
117
|
+
global___SavedSearchProperties = SavedSearchProperties
|
|
118
|
+
|
|
119
|
+
@typing.final
|
|
120
|
+
class SavedSearchFilterItem(google.protobuf.message.Message):
|
|
121
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
122
|
+
|
|
123
|
+
ID_FIELD_NUMBER: builtins.int
|
|
124
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
125
|
+
id: builtins.str
|
|
126
|
+
name: builtins.str
|
|
127
|
+
def __init__(
|
|
128
|
+
self,
|
|
129
|
+
*,
|
|
130
|
+
id: builtins.str = ...,
|
|
131
|
+
name: builtins.str = ...,
|
|
132
|
+
) -> None: ...
|
|
133
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "name", b"name"]) -> None: ...
|
|
134
|
+
|
|
135
|
+
global___SavedSearchFilterItem = SavedSearchFilterItem
|
|
136
|
+
|
|
137
|
+
@typing.final
|
|
138
|
+
class GetSavedSearchRequest(google.protobuf.message.Message):
|
|
139
|
+
"""The request for a call to `SavedSearchService_GetSavedSearch` to retrieve a saved search;"""
|
|
140
|
+
|
|
141
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
142
|
+
|
|
143
|
+
SAVED_SEARCH_ID_FIELD_NUMBER: builtins.int
|
|
144
|
+
saved_search_id: builtins.str
|
|
145
|
+
def __init__(
|
|
146
|
+
self,
|
|
147
|
+
*,
|
|
148
|
+
saved_search_id: builtins.str = ...,
|
|
149
|
+
) -> None: ...
|
|
150
|
+
def ClearField(self, field_name: typing.Literal["saved_search_id", b"saved_search_id"]) -> None: ...
|
|
151
|
+
|
|
152
|
+
global___GetSavedSearchRequest = GetSavedSearchRequest
|
|
153
|
+
|
|
154
|
+
@typing.final
|
|
155
|
+
class GetSavedSearchResponse(google.protobuf.message.Message):
|
|
156
|
+
"""The response of a call to `SavedSearchService_GetSavedSearch`."""
|
|
157
|
+
|
|
158
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
159
|
+
|
|
160
|
+
SAVED_SEARCH_FIELD_NUMBER: builtins.int
|
|
161
|
+
@property
|
|
162
|
+
def saved_search(self) -> global___SavedSearch: ...
|
|
163
|
+
def __init__(
|
|
164
|
+
self,
|
|
165
|
+
*,
|
|
166
|
+
saved_search: global___SavedSearch | None = ...,
|
|
167
|
+
) -> None: ...
|
|
168
|
+
def HasField(self, field_name: typing.Literal["saved_search", b"saved_search"]) -> builtins.bool: ...
|
|
169
|
+
def ClearField(self, field_name: typing.Literal["saved_search", b"saved_search"]) -> None: ...
|
|
170
|
+
|
|
171
|
+
global___GetSavedSearchResponse = GetSavedSearchResponse
|
|
172
|
+
|
|
173
|
+
@typing.final
|
|
174
|
+
class ListSavedSearchesRequest(google.protobuf.message.Message):
|
|
175
|
+
"""The request for a call to `SavedSearchService_ListSavedSearches` to retrieve saved searches."""
|
|
176
|
+
|
|
177
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
178
|
+
|
|
179
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
180
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
181
|
+
FILTER_FIELD_NUMBER: builtins.int
|
|
182
|
+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
|
|
183
|
+
page_size: builtins.int
|
|
184
|
+
"""The maximum number of saved searches to return. The service may return fewer than this value.
|
|
185
|
+
If unspecified, at most 50 saved searches will be returned. The maximum value is 1000; values above
|
|
186
|
+
1000 will be coerced to 1000. Optional.
|
|
187
|
+
"""
|
|
188
|
+
page_token: builtins.str
|
|
189
|
+
"""A page token, received from a previous `ListSavedSearches` call.
|
|
190
|
+
Provide this to retrieve the subsequent page.
|
|
191
|
+
When paginating, all other parameters provided to `ListSavedSearches` must match
|
|
192
|
+
the call that provided the page token. Optional.
|
|
193
|
+
"""
|
|
194
|
+
filter: builtins.str
|
|
195
|
+
"""A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string.
|
|
196
|
+
Available fields to filter by are 'name' and 'saved_search_id'.
|
|
197
|
+
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).
|
|
198
|
+
For more information about the fields used for filtering, please refer to [this definition](/api/grpc/protocol_buffers/saved_searches#savedsearch). Optional.
|
|
199
|
+
"""
|
|
200
|
+
organization_id: builtins.str
|
|
201
|
+
"""This field is only required if your user belongs to multiple organizations."""
|
|
202
|
+
def __init__(
|
|
203
|
+
self,
|
|
204
|
+
*,
|
|
205
|
+
page_size: builtins.int = ...,
|
|
206
|
+
page_token: builtins.str = ...,
|
|
207
|
+
filter: builtins.str = ...,
|
|
208
|
+
organization_id: builtins.str = ...,
|
|
209
|
+
) -> None: ...
|
|
210
|
+
def ClearField(self, field_name: typing.Literal["filter", b"filter", "organization_id", b"organization_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
211
|
+
|
|
212
|
+
global___ListSavedSearchesRequest = ListSavedSearchesRequest
|
|
213
|
+
|
|
214
|
+
@typing.final
|
|
215
|
+
class ListSavedSearchesResponse(google.protobuf.message.Message):
|
|
216
|
+
"""The response of a call to `SavedSearchService_ListSavedSearchesResponse`."""
|
|
217
|
+
|
|
218
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
219
|
+
|
|
220
|
+
SAVED_SEARCHES_FIELD_NUMBER: builtins.int
|
|
221
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
222
|
+
next_page_token: builtins.str
|
|
223
|
+
@property
|
|
224
|
+
def saved_searches(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SavedSearch]: ...
|
|
225
|
+
def __init__(
|
|
226
|
+
self,
|
|
227
|
+
*,
|
|
228
|
+
saved_searches: collections.abc.Iterable[global___SavedSearch] | None = ...,
|
|
229
|
+
next_page_token: builtins.str = ...,
|
|
230
|
+
) -> None: ...
|
|
231
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "saved_searches", b"saved_searches"]) -> None: ...
|
|
232
|
+
|
|
233
|
+
global___ListSavedSearchesResponse = ListSavedSearchesResponse
|
|
234
|
+
|
|
235
|
+
@typing.final
|
|
236
|
+
class CreateSavedSearchRequest(google.protobuf.message.Message):
|
|
237
|
+
"""The request for a call to `SavedSearchService_CreateSavedSearch` to create a saved search."""
|
|
238
|
+
|
|
239
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
240
|
+
|
|
241
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
242
|
+
PROPERTIES_FIELD_NUMBER: builtins.int
|
|
243
|
+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
|
|
244
|
+
name: builtins.str
|
|
245
|
+
organization_id: builtins.str
|
|
246
|
+
"""This field is only required if your user belongs to multiple organizations."""
|
|
247
|
+
@property
|
|
248
|
+
def properties(self) -> global___SavedSearchProperties: ...
|
|
249
|
+
def __init__(
|
|
250
|
+
self,
|
|
251
|
+
*,
|
|
252
|
+
name: builtins.str = ...,
|
|
253
|
+
properties: global___SavedSearchProperties | None = ...,
|
|
254
|
+
organization_id: builtins.str = ...,
|
|
255
|
+
) -> None: ...
|
|
256
|
+
def HasField(self, field_name: typing.Literal["properties", b"properties"]) -> builtins.bool: ...
|
|
257
|
+
def ClearField(self, field_name: typing.Literal["name", b"name", "organization_id", b"organization_id", "properties", b"properties"]) -> None: ...
|
|
258
|
+
|
|
259
|
+
global___CreateSavedSearchRequest = CreateSavedSearchRequest
|
|
260
|
+
|
|
261
|
+
@typing.final
|
|
262
|
+
class CreateSavedSearchResponse(google.protobuf.message.Message):
|
|
263
|
+
"""The response for a call to `SavedSearchService_CreateSavedResponse`."""
|
|
264
|
+
|
|
265
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
266
|
+
|
|
267
|
+
SAVED_SEARCH_FIELD_NUMBER: builtins.int
|
|
268
|
+
@property
|
|
269
|
+
def saved_search(self) -> global___SavedSearch: ...
|
|
270
|
+
def __init__(
|
|
271
|
+
self,
|
|
272
|
+
*,
|
|
273
|
+
saved_search: global___SavedSearch | None = ...,
|
|
274
|
+
) -> None: ...
|
|
275
|
+
def HasField(self, field_name: typing.Literal["saved_search", b"saved_search"]) -> builtins.bool: ...
|
|
276
|
+
def ClearField(self, field_name: typing.Literal["saved_search", b"saved_search"]) -> None: ...
|
|
277
|
+
|
|
278
|
+
global___CreateSavedSearchResponse = CreateSavedSearchResponse
|
|
279
|
+
|
|
280
|
+
@typing.final
|
|
281
|
+
class DeleteSavedSearchRequest(google.protobuf.message.Message):
|
|
282
|
+
"""The request for a call to `SavedSearchService_DeleteSavedSearch` to delete a saved search."""
|
|
283
|
+
|
|
284
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
285
|
+
|
|
286
|
+
SAVED_SEARCH_ID_FIELD_NUMBER: builtins.int
|
|
287
|
+
saved_search_id: builtins.str
|
|
288
|
+
def __init__(
|
|
289
|
+
self,
|
|
290
|
+
*,
|
|
291
|
+
saved_search_id: builtins.str = ...,
|
|
292
|
+
) -> None: ...
|
|
293
|
+
def ClearField(self, field_name: typing.Literal["saved_search_id", b"saved_search_id"]) -> None: ...
|
|
294
|
+
|
|
295
|
+
global___DeleteSavedSearchRequest = DeleteSavedSearchRequest
|
|
296
|
+
|
|
297
|
+
@typing.final
|
|
298
|
+
class DeleteSavedSearchResponse(google.protobuf.message.Message):
|
|
299
|
+
"""The response of a call to `SavedSearchService_DeleteSavedSearch`."""
|
|
300
|
+
|
|
301
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
302
|
+
|
|
303
|
+
def __init__(
|
|
304
|
+
self,
|
|
305
|
+
) -> None: ...
|
|
306
|
+
|
|
307
|
+
global___DeleteSavedSearchResponse = DeleteSavedSearchResponse
|
|
308
|
+
|
|
309
|
+
@typing.final
|
|
310
|
+
class BatchDeleteSavedSearchesRequest(google.protobuf.message.Message):
|
|
311
|
+
"""The request for a call to `SavedSearchService_BatchDeleteSavedSearches` to delete saved searches."""
|
|
312
|
+
|
|
313
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
314
|
+
|
|
315
|
+
SAVED_SEARCH_IDS_FIELD_NUMBER: builtins.int
|
|
316
|
+
@property
|
|
317
|
+
def saved_search_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
318
|
+
"""Limit of 1000 searches per batch"""
|
|
319
|
+
|
|
320
|
+
def __init__(
|
|
321
|
+
self,
|
|
322
|
+
*,
|
|
323
|
+
saved_search_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
324
|
+
) -> None: ...
|
|
325
|
+
def ClearField(self, field_name: typing.Literal["saved_search_ids", b"saved_search_ids"]) -> None: ...
|
|
326
|
+
|
|
327
|
+
global___BatchDeleteSavedSearchesRequest = BatchDeleteSavedSearchesRequest
|
|
328
|
+
|
|
329
|
+
@typing.final
|
|
330
|
+
class BatchDeleteSavedSearchesResponse(google.protobuf.message.Message):
|
|
331
|
+
"""The response of a call to `SavedSearchService_BatchDeleteSavedSearches`."""
|
|
332
|
+
|
|
333
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
334
|
+
|
|
335
|
+
def __init__(
|
|
336
|
+
self,
|
|
337
|
+
) -> None: ...
|
|
338
|
+
|
|
339
|
+
global___BatchDeleteSavedSearchesResponse = BatchDeleteSavedSearchesResponse
|
|
340
|
+
|
|
341
|
+
@typing.final
|
|
342
|
+
class UpdateSavedSearchRequest(google.protobuf.message.Message):
|
|
343
|
+
"""The request for a call to `SavedSearchService_UpdateSavedSearch` to update a saved search."""
|
|
344
|
+
|
|
345
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
346
|
+
|
|
347
|
+
SAVED_SEARCH_FIELD_NUMBER: builtins.int
|
|
348
|
+
UPDATE_MASK_FIELD_NUMBER: builtins.int
|
|
349
|
+
@property
|
|
350
|
+
def saved_search(self) -> global___SavedSearch:
|
|
351
|
+
"""The saved search to update."""
|
|
352
|
+
|
|
353
|
+
@property
|
|
354
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
355
|
+
"""The list of fields to be updated. The fields available to be updated are `name` and `properties`."""
|
|
356
|
+
|
|
357
|
+
def __init__(
|
|
358
|
+
self,
|
|
359
|
+
*,
|
|
360
|
+
saved_search: global___SavedSearch | None = ...,
|
|
361
|
+
update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
|
|
362
|
+
) -> None: ...
|
|
363
|
+
def HasField(self, field_name: typing.Literal["saved_search", b"saved_search", "update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
364
|
+
def ClearField(self, field_name: typing.Literal["saved_search", b"saved_search", "update_mask", b"update_mask"]) -> None: ...
|
|
365
|
+
|
|
366
|
+
global___UpdateSavedSearchRequest = UpdateSavedSearchRequest
|
|
367
|
+
|
|
368
|
+
@typing.final
|
|
369
|
+
class UpdateSavedSearchResponse(google.protobuf.message.Message):
|
|
370
|
+
"""The response of a call to `SavedSearchService_UpdateSavedSearch`."""
|
|
371
|
+
|
|
372
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
373
|
+
|
|
374
|
+
SAVED_SEARCH_FIELD_NUMBER: builtins.int
|
|
375
|
+
@property
|
|
376
|
+
def saved_search(self) -> global___SavedSearch: ...
|
|
377
|
+
def __init__(
|
|
378
|
+
self,
|
|
379
|
+
*,
|
|
380
|
+
saved_search: global___SavedSearch | None = ...,
|
|
381
|
+
) -> None: ...
|
|
382
|
+
def HasField(self, field_name: typing.Literal["saved_search", b"saved_search"]) -> builtins.bool: ...
|
|
383
|
+
def ClearField(self, field_name: typing.Literal["saved_search", b"saved_search"]) -> None: ...
|
|
384
|
+
|
|
385
|
+
global___UpdateSavedSearchResponse = UpdateSavedSearchResponse
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from sift.saved_searches.v1 import saved_searches_pb2 as sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SavedSearchServiceStub(object):
|
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
|
10
|
+
|
|
11
|
+
def __init__(self, channel):
|
|
12
|
+
"""Constructor.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
channel: A grpc.Channel.
|
|
16
|
+
"""
|
|
17
|
+
self.GetSavedSearch = channel.unary_unary(
|
|
18
|
+
'/sift.saved_searches.v1.SavedSearchService/GetSavedSearch',
|
|
19
|
+
request_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.GetSavedSearchRequest.SerializeToString,
|
|
20
|
+
response_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.GetSavedSearchResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
self.CreateSavedSearch = channel.unary_unary(
|
|
23
|
+
'/sift.saved_searches.v1.SavedSearchService/CreateSavedSearch',
|
|
24
|
+
request_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.CreateSavedSearchRequest.SerializeToString,
|
|
25
|
+
response_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.CreateSavedSearchResponse.FromString,
|
|
26
|
+
)
|
|
27
|
+
self.ListSavedSearches = channel.unary_unary(
|
|
28
|
+
'/sift.saved_searches.v1.SavedSearchService/ListSavedSearches',
|
|
29
|
+
request_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.ListSavedSearchesRequest.SerializeToString,
|
|
30
|
+
response_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.ListSavedSearchesResponse.FromString,
|
|
31
|
+
)
|
|
32
|
+
self.UpdateSavedSearch = channel.unary_unary(
|
|
33
|
+
'/sift.saved_searches.v1.SavedSearchService/UpdateSavedSearch',
|
|
34
|
+
request_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.UpdateSavedSearchRequest.SerializeToString,
|
|
35
|
+
response_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.UpdateSavedSearchResponse.FromString,
|
|
36
|
+
)
|
|
37
|
+
self.DeleteSavedSearch = channel.unary_unary(
|
|
38
|
+
'/sift.saved_searches.v1.SavedSearchService/DeleteSavedSearch',
|
|
39
|
+
request_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.DeleteSavedSearchRequest.SerializeToString,
|
|
40
|
+
response_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.DeleteSavedSearchResponse.FromString,
|
|
41
|
+
)
|
|
42
|
+
self.BatchDeleteSavedSearches = channel.unary_unary(
|
|
43
|
+
'/sift.saved_searches.v1.SavedSearchService/BatchDeleteSavedSearches',
|
|
44
|
+
request_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.BatchDeleteSavedSearchesRequest.SerializeToString,
|
|
45
|
+
response_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.BatchDeleteSavedSearchesResponse.FromString,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class SavedSearchServiceServicer(object):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
|
|
52
|
+
def GetSavedSearch(self, request, context):
|
|
53
|
+
"""Retrieve a saved search.
|
|
54
|
+
"""
|
|
55
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
|
+
context.set_details('Method not implemented!')
|
|
57
|
+
raise NotImplementedError('Method not implemented!')
|
|
58
|
+
|
|
59
|
+
def CreateSavedSearch(self, request, context):
|
|
60
|
+
"""Create a saved search.
|
|
61
|
+
"""
|
|
62
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
63
|
+
context.set_details('Method not implemented!')
|
|
64
|
+
raise NotImplementedError('Method not implemented!')
|
|
65
|
+
|
|
66
|
+
def ListSavedSearches(self, request, context):
|
|
67
|
+
"""List saved searches.
|
|
68
|
+
"""
|
|
69
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
70
|
+
context.set_details('Method not implemented!')
|
|
71
|
+
raise NotImplementedError('Method not implemented!')
|
|
72
|
+
|
|
73
|
+
def UpdateSavedSearch(self, request, context):
|
|
74
|
+
"""Updates an existing saved search using using the list of fields specified in `update_mask`.
|
|
75
|
+
"""
|
|
76
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
77
|
+
context.set_details('Method not implemented!')
|
|
78
|
+
raise NotImplementedError('Method not implemented!')
|
|
79
|
+
|
|
80
|
+
def DeleteSavedSearch(self, request, context):
|
|
81
|
+
"""Delete a saved search.
|
|
82
|
+
"""
|
|
83
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
84
|
+
context.set_details('Method not implemented!')
|
|
85
|
+
raise NotImplementedError('Method not implemented!')
|
|
86
|
+
|
|
87
|
+
def BatchDeleteSavedSearches(self, request, context):
|
|
88
|
+
"""Batch deletes saved searches.
|
|
89
|
+
"""
|
|
90
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
91
|
+
context.set_details('Method not implemented!')
|
|
92
|
+
raise NotImplementedError('Method not implemented!')
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def add_SavedSearchServiceServicer_to_server(servicer, server):
|
|
96
|
+
rpc_method_handlers = {
|
|
97
|
+
'GetSavedSearch': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.GetSavedSearch,
|
|
99
|
+
request_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.GetSavedSearchRequest.FromString,
|
|
100
|
+
response_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.GetSavedSearchResponse.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'CreateSavedSearch': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.CreateSavedSearch,
|
|
104
|
+
request_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.CreateSavedSearchRequest.FromString,
|
|
105
|
+
response_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.CreateSavedSearchResponse.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
'ListSavedSearches': grpc.unary_unary_rpc_method_handler(
|
|
108
|
+
servicer.ListSavedSearches,
|
|
109
|
+
request_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.ListSavedSearchesRequest.FromString,
|
|
110
|
+
response_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.ListSavedSearchesResponse.SerializeToString,
|
|
111
|
+
),
|
|
112
|
+
'UpdateSavedSearch': grpc.unary_unary_rpc_method_handler(
|
|
113
|
+
servicer.UpdateSavedSearch,
|
|
114
|
+
request_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.UpdateSavedSearchRequest.FromString,
|
|
115
|
+
response_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.UpdateSavedSearchResponse.SerializeToString,
|
|
116
|
+
),
|
|
117
|
+
'DeleteSavedSearch': grpc.unary_unary_rpc_method_handler(
|
|
118
|
+
servicer.DeleteSavedSearch,
|
|
119
|
+
request_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.DeleteSavedSearchRequest.FromString,
|
|
120
|
+
response_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.DeleteSavedSearchResponse.SerializeToString,
|
|
121
|
+
),
|
|
122
|
+
'BatchDeleteSavedSearches': grpc.unary_unary_rpc_method_handler(
|
|
123
|
+
servicer.BatchDeleteSavedSearches,
|
|
124
|
+
request_deserializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.BatchDeleteSavedSearchesRequest.FromString,
|
|
125
|
+
response_serializer=sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.BatchDeleteSavedSearchesResponse.SerializeToString,
|
|
126
|
+
),
|
|
127
|
+
}
|
|
128
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
129
|
+
'sift.saved_searches.v1.SavedSearchService', rpc_method_handlers)
|
|
130
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
# This class is part of an EXPERIMENTAL API.
|
|
134
|
+
class SavedSearchService(object):
|
|
135
|
+
"""Missing associated documentation comment in .proto file."""
|
|
136
|
+
|
|
137
|
+
@staticmethod
|
|
138
|
+
def GetSavedSearch(request,
|
|
139
|
+
target,
|
|
140
|
+
options=(),
|
|
141
|
+
channel_credentials=None,
|
|
142
|
+
call_credentials=None,
|
|
143
|
+
insecure=False,
|
|
144
|
+
compression=None,
|
|
145
|
+
wait_for_ready=None,
|
|
146
|
+
timeout=None,
|
|
147
|
+
metadata=None):
|
|
148
|
+
return grpc.experimental.unary_unary(request, target, '/sift.saved_searches.v1.SavedSearchService/GetSavedSearch',
|
|
149
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.GetSavedSearchRequest.SerializeToString,
|
|
150
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.GetSavedSearchResponse.FromString,
|
|
151
|
+
options, channel_credentials,
|
|
152
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
153
|
+
|
|
154
|
+
@staticmethod
|
|
155
|
+
def CreateSavedSearch(request,
|
|
156
|
+
target,
|
|
157
|
+
options=(),
|
|
158
|
+
channel_credentials=None,
|
|
159
|
+
call_credentials=None,
|
|
160
|
+
insecure=False,
|
|
161
|
+
compression=None,
|
|
162
|
+
wait_for_ready=None,
|
|
163
|
+
timeout=None,
|
|
164
|
+
metadata=None):
|
|
165
|
+
return grpc.experimental.unary_unary(request, target, '/sift.saved_searches.v1.SavedSearchService/CreateSavedSearch',
|
|
166
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.CreateSavedSearchRequest.SerializeToString,
|
|
167
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.CreateSavedSearchResponse.FromString,
|
|
168
|
+
options, channel_credentials,
|
|
169
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
170
|
+
|
|
171
|
+
@staticmethod
|
|
172
|
+
def ListSavedSearches(request,
|
|
173
|
+
target,
|
|
174
|
+
options=(),
|
|
175
|
+
channel_credentials=None,
|
|
176
|
+
call_credentials=None,
|
|
177
|
+
insecure=False,
|
|
178
|
+
compression=None,
|
|
179
|
+
wait_for_ready=None,
|
|
180
|
+
timeout=None,
|
|
181
|
+
metadata=None):
|
|
182
|
+
return grpc.experimental.unary_unary(request, target, '/sift.saved_searches.v1.SavedSearchService/ListSavedSearches',
|
|
183
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.ListSavedSearchesRequest.SerializeToString,
|
|
184
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.ListSavedSearchesResponse.FromString,
|
|
185
|
+
options, channel_credentials,
|
|
186
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
187
|
+
|
|
188
|
+
@staticmethod
|
|
189
|
+
def UpdateSavedSearch(request,
|
|
190
|
+
target,
|
|
191
|
+
options=(),
|
|
192
|
+
channel_credentials=None,
|
|
193
|
+
call_credentials=None,
|
|
194
|
+
insecure=False,
|
|
195
|
+
compression=None,
|
|
196
|
+
wait_for_ready=None,
|
|
197
|
+
timeout=None,
|
|
198
|
+
metadata=None):
|
|
199
|
+
return grpc.experimental.unary_unary(request, target, '/sift.saved_searches.v1.SavedSearchService/UpdateSavedSearch',
|
|
200
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.UpdateSavedSearchRequest.SerializeToString,
|
|
201
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.UpdateSavedSearchResponse.FromString,
|
|
202
|
+
options, channel_credentials,
|
|
203
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
204
|
+
|
|
205
|
+
@staticmethod
|
|
206
|
+
def DeleteSavedSearch(request,
|
|
207
|
+
target,
|
|
208
|
+
options=(),
|
|
209
|
+
channel_credentials=None,
|
|
210
|
+
call_credentials=None,
|
|
211
|
+
insecure=False,
|
|
212
|
+
compression=None,
|
|
213
|
+
wait_for_ready=None,
|
|
214
|
+
timeout=None,
|
|
215
|
+
metadata=None):
|
|
216
|
+
return grpc.experimental.unary_unary(request, target, '/sift.saved_searches.v1.SavedSearchService/DeleteSavedSearch',
|
|
217
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.DeleteSavedSearchRequest.SerializeToString,
|
|
218
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.DeleteSavedSearchResponse.FromString,
|
|
219
|
+
options, channel_credentials,
|
|
220
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
221
|
+
|
|
222
|
+
@staticmethod
|
|
223
|
+
def BatchDeleteSavedSearches(request,
|
|
224
|
+
target,
|
|
225
|
+
options=(),
|
|
226
|
+
channel_credentials=None,
|
|
227
|
+
call_credentials=None,
|
|
228
|
+
insecure=False,
|
|
229
|
+
compression=None,
|
|
230
|
+
wait_for_ready=None,
|
|
231
|
+
timeout=None,
|
|
232
|
+
metadata=None):
|
|
233
|
+
return grpc.experimental.unary_unary(request, target, '/sift.saved_searches.v1.SavedSearchService/BatchDeleteSavedSearches',
|
|
234
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.BatchDeleteSavedSearchesRequest.SerializeToString,
|
|
235
|
+
sift_dot_saved__searches_dot_v1_dot_saved__searches__pb2.BatchDeleteSavedSearchesResponse.FromString,
|
|
236
|
+
options, channel_credentials,
|
|
237
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|