chalkpy 2.90.1__py3-none-any.whl → 2.95.3__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.
- chalk/__init__.py +2 -1
- chalk/_gen/chalk/arrow/v1/arrow_pb2.py +7 -5
- chalk/_gen/chalk/arrow/v1/arrow_pb2.pyi +6 -0
- chalk/_gen/chalk/artifacts/v1/chart_pb2.py +16 -16
- chalk/_gen/chalk/artifacts/v1/chart_pb2.pyi +4 -0
- chalk/_gen/chalk/artifacts/v1/cron_query_pb2.py +8 -7
- chalk/_gen/chalk/artifacts/v1/cron_query_pb2.pyi +5 -0
- chalk/_gen/chalk/common/v1/offline_query_pb2.py +17 -15
- chalk/_gen/chalk/common/v1/offline_query_pb2.pyi +25 -0
- chalk/_gen/chalk/common/v1/script_task_pb2.py +3 -3
- chalk/_gen/chalk/common/v1/script_task_pb2.pyi +2 -0
- chalk/_gen/chalk/dataframe/__init__.py +0 -0
- chalk/_gen/chalk/dataframe/v1/__init__.py +0 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2.py +48 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2.pyi +123 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.py +4 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/graph/v1/graph_pb2.py +150 -149
- chalk/_gen/chalk/graph/v1/graph_pb2.pyi +25 -0
- chalk/_gen/chalk/graph/v1/sources_pb2.py +94 -84
- chalk/_gen/chalk/graph/v1/sources_pb2.pyi +56 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.py +79 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.pyi +377 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.py +4 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.py +43 -7
- chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.pyi +252 -2
- chalk/_gen/chalk/protosql/v1/sql_service_pb2.py +54 -27
- chalk/_gen/chalk/protosql/v1/sql_service_pb2.pyi +131 -3
- chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.py +45 -0
- chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.pyi +14 -0
- chalk/_gen/chalk/python/v1/types_pb2.py +14 -14
- chalk/_gen/chalk/python/v1/types_pb2.pyi +8 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2.py +76 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2.pyi +156 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.py +258 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.pyi +84 -0
- chalk/_gen/chalk/server/v1/billing_pb2.py +40 -38
- chalk/_gen/chalk/server/v1/billing_pb2.pyi +17 -1
- chalk/_gen/chalk/server/v1/branches_pb2.py +45 -0
- chalk/_gen/chalk/server/v1/branches_pb2.pyi +80 -0
- chalk/_gen/chalk/server/v1/branches_pb2_grpc.pyi +36 -0
- chalk/_gen/chalk/server/v1/builder_pb2.py +358 -288
- chalk/_gen/chalk/server/v1/builder_pb2.pyi +360 -10
- chalk/_gen/chalk/server/v1/builder_pb2_grpc.py +225 -0
- chalk/_gen/chalk/server/v1/builder_pb2_grpc.pyi +60 -0
- chalk/_gen/chalk/server/v1/chart_pb2.py +10 -10
- chalk/_gen/chalk/server/v1/chart_pb2.pyi +18 -2
- chalk/_gen/chalk/server/v1/clickhouse_pb2.py +42 -0
- chalk/_gen/chalk/server/v1/clickhouse_pb2.pyi +17 -0
- chalk/_gen/chalk/server/v1/clickhouse_pb2_grpc.py +78 -0
- chalk/_gen/chalk/server/v1/clickhouse_pb2_grpc.pyi +38 -0
- chalk/_gen/chalk/server/v1/cloud_components_pb2.py +141 -119
- chalk/_gen/chalk/server/v1/cloud_components_pb2.pyi +106 -4
- chalk/_gen/chalk/server/v1/cloud_components_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/cloud_components_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2.py +11 -3
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2.pyi +20 -0
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2.py +52 -38
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2.pyi +62 -1
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.py +90 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.pyi +264 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.py +170 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.pyi +62 -0
- chalk/_gen/chalk/server/v1/deploy_pb2.py +9 -3
- chalk/_gen/chalk/server/v1/deploy_pb2.pyi +12 -0
- chalk/_gen/chalk/server/v1/deploy_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/deploy_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/deployment_pb2.py +6 -6
- chalk/_gen/chalk/server/v1/deployment_pb2.pyi +20 -0
- chalk/_gen/chalk/server/v1/environment_pb2.py +14 -12
- chalk/_gen/chalk/server/v1/environment_pb2.pyi +19 -0
- chalk/_gen/chalk/server/v1/eventbus_pb2.py +4 -2
- chalk/_gen/chalk/server/v1/files_pb2.py +65 -0
- chalk/_gen/chalk/server/v1/files_pb2.pyi +167 -0
- chalk/_gen/chalk/server/v1/files_pb2_grpc.py +4 -0
- chalk/_gen/chalk/server/v1/files_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/server/v1/graph_pb2.py +38 -26
- chalk/_gen/chalk/server/v1/graph_pb2.pyi +58 -0
- chalk/_gen/chalk/server/v1/graph_pb2_grpc.py +47 -0
- chalk/_gen/chalk/server/v1/graph_pb2_grpc.pyi +18 -0
- chalk/_gen/chalk/server/v1/incident_pb2.py +23 -21
- chalk/_gen/chalk/server/v1/incident_pb2.pyi +15 -1
- chalk/_gen/chalk/server/v1/indexing_job_pb2.py +44 -0
- chalk/_gen/chalk/server/v1/indexing_job_pb2.pyi +38 -0
- chalk/_gen/chalk/server/v1/indexing_job_pb2_grpc.py +78 -0
- chalk/_gen/chalk/server/v1/indexing_job_pb2_grpc.pyi +38 -0
- chalk/_gen/chalk/server/v1/integrations_pb2.py +11 -9
- chalk/_gen/chalk/server/v1/integrations_pb2.pyi +34 -2
- chalk/_gen/chalk/server/v1/kube_pb2.py +29 -19
- chalk/_gen/chalk/server/v1/kube_pb2.pyi +28 -0
- chalk/_gen/chalk/server/v1/kube_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/kube_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/log_pb2.py +21 -3
- chalk/_gen/chalk/server/v1/log_pb2.pyi +68 -0
- chalk/_gen/chalk/server/v1/log_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/log_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/model_registry_pb2.py +10 -10
- chalk/_gen/chalk/server/v1/model_registry_pb2.pyi +4 -1
- chalk/_gen/chalk/server/v1/plandebug_pb2.py +53 -0
- chalk/_gen/chalk/server/v1/plandebug_pb2.pyi +86 -0
- chalk/_gen/chalk/server/v1/plandebug_pb2_grpc.py +168 -0
- chalk/_gen/chalk/server/v1/plandebug_pb2_grpc.pyi +60 -0
- chalk/_gen/chalk/server/v1/queries_pb2.py +66 -66
- chalk/_gen/chalk/server/v1/queries_pb2.pyi +32 -2
- chalk/_gen/chalk/server/v1/scheduled_query_run_pb2.py +12 -12
- chalk/_gen/chalk/server/v1/scheduled_query_run_pb2.pyi +16 -3
- chalk/_gen/chalk/server/v1/scheduler_pb2.py +24 -12
- chalk/_gen/chalk/server/v1/scheduler_pb2.pyi +61 -1
- chalk/_gen/chalk/server/v1/scheduler_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/scheduler_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/script_tasks_pb2.py +15 -3
- chalk/_gen/chalk/server/v1/script_tasks_pb2.pyi +22 -0
- chalk/_gen/chalk/server/v1/script_tasks_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/script_tasks_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2.py +75 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2.pyi +142 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.py +349 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.pyi +114 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2.py +48 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2.pyi +150 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2_grpc.py +123 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2_grpc.pyi +52 -0
- chalk/_gen/chalk/server/v1/team_pb2.py +154 -141
- chalk/_gen/chalk/server/v1/team_pb2.pyi +30 -2
- chalk/_gen/chalk/server/v1/team_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/team_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/topic_pb2.py +5 -3
- chalk/_gen/chalk/server/v1/topic_pb2.pyi +10 -1
- chalk/_gen/chalk/server/v1/trace_pb2.py +44 -40
- chalk/_gen/chalk/server/v1/trace_pb2.pyi +20 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2.py +62 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2.pyi +75 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.py +221 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.pyi +88 -0
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.py +16 -10
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.pyi +52 -1
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2_grpc.py +48 -0
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2_grpc.pyi +20 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2.py +32 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2.pyi +42 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2_grpc.py +4 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2_grpc.pyi +4 -0
- chalk/_lsp/error_builder.py +11 -0
- chalk/_version.py +1 -1
- chalk/client/client.py +128 -43
- chalk/client/client_async.py +149 -0
- chalk/client/client_async_impl.py +22 -0
- chalk/client/client_grpc.py +539 -104
- chalk/client/client_impl.py +449 -122
- chalk/client/dataset.py +7 -1
- chalk/client/models.py +98 -0
- chalk/client/serialization/model_serialization.py +92 -9
- chalk/df/LazyFramePlaceholder.py +1154 -0
- chalk/features/_class_property.py +7 -0
- chalk/features/_embedding/embedding.py +1 -0
- chalk/features/_encoding/converter.py +83 -2
- chalk/features/feature_field.py +40 -30
- chalk/features/feature_set_decorator.py +1 -0
- chalk/features/feature_wrapper.py +42 -3
- chalk/features/hooks.py +81 -10
- chalk/features/inference.py +33 -31
- chalk/features/resolver.py +224 -24
- chalk/functions/__init__.py +65 -3
- chalk/gitignore/gitignore_parser.py +5 -1
- chalk/importer.py +142 -68
- chalk/ml/__init__.py +2 -0
- chalk/ml/model_hooks.py +194 -26
- chalk/ml/model_reference.py +56 -8
- chalk/ml/model_version.py +24 -15
- chalk/ml/utils.py +20 -17
- chalk/operators/_utils.py +10 -3
- chalk/parsed/_proto/export.py +22 -0
- chalk/parsed/duplicate_input_gql.py +3 -0
- chalk/parsed/json_conversions.py +20 -14
- chalk/parsed/to_proto.py +16 -4
- chalk/parsed/user_types_to_json.py +31 -10
- chalk/parsed/validation_from_registries.py +182 -0
- chalk/queries/named_query.py +16 -6
- chalk/queries/scheduled_query.py +9 -1
- chalk/serialization/parsed_annotation.py +24 -11
- chalk/sql/__init__.py +18 -0
- chalk/sql/_internal/integrations/databricks.py +55 -17
- chalk/sql/_internal/integrations/mssql.py +127 -62
- chalk/sql/_internal/integrations/redshift.py +4 -0
- chalk/sql/_internal/sql_file_resolver.py +53 -9
- chalk/sql/_internal/sql_source.py +35 -2
- chalk/streams/_kafka_source.py +5 -1
- chalk/streams/_windows.py +15 -2
- chalk/utils/_otel_version.py +13 -0
- chalk/utils/async_helpers.py +2 -2
- chalk/utils/missing_dependency.py +5 -4
- chalk/utils/tracing.py +185 -95
- {chalkpy-2.90.1.dist-info → chalkpy-2.95.3.dist-info}/METADATA +4 -6
- {chalkpy-2.90.1.dist-info → chalkpy-2.95.3.dist-info}/RECORD +202 -146
- {chalkpy-2.90.1.dist-info → chalkpy-2.95.3.dist-info}/WHEEL +0 -0
- {chalkpy-2.90.1.dist-info → chalkpy-2.95.3.dist-info}/entry_points.txt +0 -0
- {chalkpy-2.90.1.dist-info → chalkpy-2.95.3.dist-info}/top_level.txt +0 -0
|
@@ -21,7 +21,7 @@ from chalk._gen.chalk.graph.v1 import graph_pb2 as chalk_dot_graph_dot_v1_dot_gr
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
24
|
-
b'\n\x1b\x63halk/server/v1/graph.proto\x12\x0f\x63halk.server.v1\x1a\x1a\x63halk/arrow/v1/arrow.proto\x1a\x1f\x63halk/artifacts/v1/export.proto\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a!chalk/common/v1/chalk_error.proto\x1a\x1a\x63halk/graph/v1/graph.proto"\xd8\x04\n\nFeatureSQL\x12\x0e\n\x02id\x18\x01 \x01(\x03R\x02id\x12%\n\x0e\x65nvironment_id\x18\x02 \x01(\tR\renvironmentId\x12(\n\rdeployment_id\x18\x03 \x01(\tH\x00R\x0c\x64\x65ploymentId\x88\x01\x01\x12\x10\n\x03\x66qn\x18\x04 \x01(\tR\x03\x66qn\x12\x12\n\x04name\x18\x05 \x01(\tR\x04name\x12\x1c\n\tnamespace\x18\x06 \x01(\tR\tnamespace\x12(\n\rmax_staleness\x18\x07 \x01(\tH\x01R\x0cmaxStaleness\x88\x01\x01\x12\x31\n\x15\x65tl_offline_to_online\x18\x08 \x01(\x08R\x12\x65tlOfflineToOnline\x12%\n\x0b\x64\x65scription\x18\t \x01(\tH\x02R\x0b\x64\x65scription\x88\x01\x01\x12\x19\n\x05owner\x18\n \x01(\tH\x03R\x05owner\x88\x01\x01\x12\x12\n\x04tags\x18\x0b \x03(\tR\x04tags\x12\x1b\n\tkind_enum\x18\x0c \x01(\tR\x08kindEnum\x12\x12\n\x04kind\x18\r \x01(\tR\x04kind\x12\x1b\n\twas_reset\x18\x0e \x01(\x08R\x08wasReset\x12.\n\x10internal_version\x18\x0f \x01(\x03H\x04R\x0finternalVersion\x88\x01\x01\x12!\n\x0cis_singleton\x18\x10 \x01(\x08R\x0bisSingletonB\x10\n\x0e_deployment_idB\x10\n\x0e_max_stalenessB\x0e\n\x0c_descriptionB\x08\n\x06_ownerB\x13\n\x11_internal_version"P\n\x15GetFeatureSQLResponse\x12\x37\n\x08\x66\x65\x61tures\x18\x01 \x03(\x0b\x32\x1b.chalk.server.v1.FeatureSQLR\x08\x66\x65\x61tures";\n\x14GetFeatureSQLRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId"\x86\x03\n\x0f\x46\x65\x61tureMetadata\x12\x10\n\x03\x66qn\x18\x01 \x01(\tR\x03\x66qn\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n\tnamespace\x18\x03 \x01(\tR\tnamespace\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x19\n\x05owner\x18\x05 \x01(\tH\x01R\x05owner\x88\x01\x01\x12\x12\n\x04tags\x18\x06 \x03(\tR\x04tags\x12(\n\rmax_staleness\x18\x07 \x01(\tH\x02R\x0cmaxStaleness\x88\x01\x01\x12\x31\n\x15\x65tl_offline_to_online\x18\x08 \x01(\x08R\x12\x65tlOfflineToOnline\x12\x34\n\x08pa_dtype\x18\t \x01(\x0b\x32\x19.chalk.arrow.v1.ArrowTypeR\x07paDtype\x12\x1a\n\x08nullable\x18\n \x01(\x08R\x08nullableB\x0e\n\x0c_descriptionB\x08\n\x06_ownerB\x10\n\x0e_max_staleness"\xa7\x01\n\x1bGetFeaturesMetadataResponse\x12<\n\x08\x66\x65\x61tures\x18\x01 \x03(\x0b\x32 .chalk.server.v1.FeatureMetadataR\x08\x66\x65\x61tures\x12%\n\x0e\x65nvironment_id\x18\x02 \x01(\tR\renvironmentId\x12#\n\rdeployment_id\x18\x03 \x01(\tR\x0c\x64\x65ploymentId"=\n\x1aGetFeaturesMetadataRequest\x12\x1f\n\x0b\x66qns_filter\x18\x01 \x03(\tR\nfqnsFilter"\xe6\x01\n\x12UpdateGraphRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId\x12/\n\x05graph\x18\x02 \x01(\x0b\x32\x15.chalk.graph.v1.GraphB\x02\x18\x01R\x05graph\x12\'\n\x0f\x63halkpy_version\x18\x03 \x01(\tR\x0e\x63halkpyVersion\x12\x15\n\x03tag\x18\x04 \x01(\tH\x00R\x03tag\x88\x01\x01\x12\x32\n\x06\x65xport\x18\x05 \x01(\x0b\x32\x1a.chalk.artifacts.v1.ExportR\x06\x65xportB\x06\n\x04_tag"\x15\n\x13UpdateGraphResponse"6\n\x0fGetGraphRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId"\xe4\x01\n\x10GetGraphResponse\x12/\n\x05graph\x18\x01 \x01(\x0b\x32\x15.chalk.graph.v1.GraphB\x02\x18\x01R\x05graph\x12\'\n\x0f\x63halkpy_version\x18\x02 \x01(\tR\x0e\x63halkpyVersion\x12\x15\n\x03tag\x18\x03 \x01(\tH\x00R\x03tag\x88\x01\x01\x12\x32\n\x06\x65xport\x18\x04 \x01(\x0b\x32\x1a.chalk.artifacts.v1.ExportR\x06\x65xport\x12#\n\rdeployment_id\x18\x05 \x01(\tR\x0c\x64\x65ploymentIdB\x06\n\x04_tag"Q\n\rPythonVersion\x12\x14\n\x05major\x18\x01 \x01(\x03R\x05major\x12\x14\n\x05minor\x18\x02 \x01(\x03R\x05minor\x12\x14\n\x05patch\x18\x03 \x01(\x03R\x05patch"\xe7\x01\n"GetCodegenFeaturesFromGraphRequest\x12(\n\rdeployment_id\x18\x01 \x01(\tH\x00R\x0c\x64\x65ploymentId\x88\x01\x01\x12\x1b\n\x06\x62ranch\x18\x02 \x01(\tH\x01R\x06\x62ranch\x88\x01\x01\x12J\n\x0epython_version\x18\x03 \x01(\x0b\x32\x1e.chalk.server.v1.PythonVersionH\x02R\rpythonVersion\x88\x01\x01\x42\x10\n\x0e_deployment_idB\t\n\x07_branchB\x11\n\x0f_python_version"t\n#GetCodegenFeaturesFromGraphResponse\x12\x18\n\x07\x63odegen\x18\x01 \x01(\tR\x07\x63odegen\x12\x33\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors"\
|
|
24
|
+
b'\n\x1b\x63halk/server/v1/graph.proto\x12\x0f\x63halk.server.v1\x1a\x1a\x63halk/arrow/v1/arrow.proto\x1a\x1f\x63halk/artifacts/v1/export.proto\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a!chalk/common/v1/chalk_error.proto\x1a\x1a\x63halk/graph/v1/graph.proto"\xd8\x04\n\nFeatureSQL\x12\x0e\n\x02id\x18\x01 \x01(\x03R\x02id\x12%\n\x0e\x65nvironment_id\x18\x02 \x01(\tR\renvironmentId\x12(\n\rdeployment_id\x18\x03 \x01(\tH\x00R\x0c\x64\x65ploymentId\x88\x01\x01\x12\x10\n\x03\x66qn\x18\x04 \x01(\tR\x03\x66qn\x12\x12\n\x04name\x18\x05 \x01(\tR\x04name\x12\x1c\n\tnamespace\x18\x06 \x01(\tR\tnamespace\x12(\n\rmax_staleness\x18\x07 \x01(\tH\x01R\x0cmaxStaleness\x88\x01\x01\x12\x31\n\x15\x65tl_offline_to_online\x18\x08 \x01(\x08R\x12\x65tlOfflineToOnline\x12%\n\x0b\x64\x65scription\x18\t \x01(\tH\x02R\x0b\x64\x65scription\x88\x01\x01\x12\x19\n\x05owner\x18\n \x01(\tH\x03R\x05owner\x88\x01\x01\x12\x12\n\x04tags\x18\x0b \x03(\tR\x04tags\x12\x1b\n\tkind_enum\x18\x0c \x01(\tR\x08kindEnum\x12\x12\n\x04kind\x18\r \x01(\tR\x04kind\x12\x1b\n\twas_reset\x18\x0e \x01(\x08R\x08wasReset\x12.\n\x10internal_version\x18\x0f \x01(\x03H\x04R\x0finternalVersion\x88\x01\x01\x12!\n\x0cis_singleton\x18\x10 \x01(\x08R\x0bisSingletonB\x10\n\x0e_deployment_idB\x10\n\x0e_max_stalenessB\x0e\n\x0c_descriptionB\x08\n\x06_ownerB\x13\n\x11_internal_version"P\n\x15GetFeatureSQLResponse\x12\x37\n\x08\x66\x65\x61tures\x18\x01 \x03(\x0b\x32\x1b.chalk.server.v1.FeatureSQLR\x08\x66\x65\x61tures";\n\x14GetFeatureSQLRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId"\x86\x03\n\x0f\x46\x65\x61tureMetadata\x12\x10\n\x03\x66qn\x18\x01 \x01(\tR\x03\x66qn\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n\tnamespace\x18\x03 \x01(\tR\tnamespace\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x19\n\x05owner\x18\x05 \x01(\tH\x01R\x05owner\x88\x01\x01\x12\x12\n\x04tags\x18\x06 \x03(\tR\x04tags\x12(\n\rmax_staleness\x18\x07 \x01(\tH\x02R\x0cmaxStaleness\x88\x01\x01\x12\x31\n\x15\x65tl_offline_to_online\x18\x08 \x01(\x08R\x12\x65tlOfflineToOnline\x12\x34\n\x08pa_dtype\x18\t \x01(\x0b\x32\x19.chalk.arrow.v1.ArrowTypeR\x07paDtype\x12\x1a\n\x08nullable\x18\n \x01(\x08R\x08nullableB\x0e\n\x0c_descriptionB\x08\n\x06_ownerB\x10\n\x0e_max_staleness"\xa7\x01\n\x1bGetFeaturesMetadataResponse\x12<\n\x08\x66\x65\x61tures\x18\x01 \x03(\x0b\x32 .chalk.server.v1.FeatureMetadataR\x08\x66\x65\x61tures\x12%\n\x0e\x65nvironment_id\x18\x02 \x01(\tR\renvironmentId\x12#\n\rdeployment_id\x18\x03 \x01(\tR\x0c\x64\x65ploymentId"=\n\x1aGetFeaturesMetadataRequest\x12\x1f\n\x0b\x66qns_filter\x18\x01 \x03(\tR\nfqnsFilter"\xe6\x01\n\x12UpdateGraphRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId\x12/\n\x05graph\x18\x02 \x01(\x0b\x32\x15.chalk.graph.v1.GraphB\x02\x18\x01R\x05graph\x12\'\n\x0f\x63halkpy_version\x18\x03 \x01(\tR\x0e\x63halkpyVersion\x12\x15\n\x03tag\x18\x04 \x01(\tH\x00R\x03tag\x88\x01\x01\x12\x32\n\x06\x65xport\x18\x05 \x01(\x0b\x32\x1a.chalk.artifacts.v1.ExportR\x06\x65xportB\x06\n\x04_tag"\x15\n\x13UpdateGraphResponse"6\n\x0fGetGraphRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId"\xe4\x01\n\x10GetGraphResponse\x12/\n\x05graph\x18\x01 \x01(\x0b\x32\x15.chalk.graph.v1.GraphB\x02\x18\x01R\x05graph\x12\'\n\x0f\x63halkpy_version\x18\x02 \x01(\tR\x0e\x63halkpyVersion\x12\x15\n\x03tag\x18\x03 \x01(\tH\x00R\x03tag\x88\x01\x01\x12\x32\n\x06\x65xport\x18\x04 \x01(\x0b\x32\x1a.chalk.artifacts.v1.ExportR\x06\x65xport\x12#\n\rdeployment_id\x18\x05 \x01(\tR\x0c\x64\x65ploymentIdB\x06\n\x04_tag"Q\n\rPythonVersion\x12\x14\n\x05major\x18\x01 \x01(\x03R\x05major\x12\x14\n\x05minor\x18\x02 \x01(\x03R\x05minor\x12\x14\n\x05patch\x18\x03 \x01(\x03R\x05patch"\xe7\x01\n"GetCodegenFeaturesFromGraphRequest\x12(\n\rdeployment_id\x18\x01 \x01(\tH\x00R\x0c\x64\x65ploymentId\x88\x01\x01\x12\x1b\n\x06\x62ranch\x18\x02 \x01(\tH\x01R\x06\x62ranch\x88\x01\x01\x12J\n\x0epython_version\x18\x03 \x01(\x0b\x32\x1e.chalk.server.v1.PythonVersionH\x02R\rpythonVersion\x88\x01\x01\x42\x10\n\x0e_deployment_idB\t\n\x07_branchB\x11\n\x0f_python_version"t\n#GetCodegenFeaturesFromGraphResponse\x12\x18\n\x07\x63odegen\x18\x01 \x01(\tR\x07\x63odegen\x12\x33\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors"\xe7\x07\n\rGraphMutation\x12]\n\x16\x61\x64\x64_streaming_resolver\x18\x01 \x01(\x0b\x32%.chalk.server.v1.AddStreamingResolverH\x00R\x14\x61\x64\x64StreamingResolver\x12\x66\n\x19update_streaming_resolver\x18\x02 \x01(\x0b\x32(.chalk.server.v1.UpdateStreamingResolverH\x00R\x17updateStreamingResolver\x12\x66\n\x19\x64\x65lete_streaming_resolver\x18\x03 \x01(\x0b\x32(.chalk.server.v1.DeleteStreamingResolverH\x00R\x17\x64\x65leteStreamingResolver\x12>\n\x0b\x61\x64\x64_feature\x18\x04 \x01(\x0b\x32\x1b.chalk.server.v1.AddFeatureH\x00R\naddFeature\x12G\n\x0eupdate_feature\x18\x05 \x01(\x0b\x32\x1e.chalk.server.v1.UpdateFeatureH\x00R\rupdateFeature\x12G\n\x0e\x64\x65lete_feature\x18\x06 \x01(\x0b\x32\x1e.chalk.server.v1.DeleteFeatureH\x00R\rdeleteFeature\x12H\n\x0f\x61\x64\x64_feature_set\x18\x07 \x01(\x0b\x32\x1e.chalk.server.v1.AddFeatureSetH\x00R\raddFeatureSet\x12Q\n\x12update_feature_set\x18\x08 \x01(\x0b\x32!.chalk.server.v1.UpdateFeatureSetH\x00R\x10updateFeatureSet\x12Q\n\x12\x64\x65lete_feature_set\x18\t \x01(\x0b\x32!.chalk.server.v1.DeleteFeatureSetH\x00R\x10\x64\x65leteFeatureSet\x12\x41\n\x0c\x61\x64\x64_resolver\x18\n \x01(\x0b\x32\x1c.chalk.server.v1.AddResolverH\x00R\x0b\x61\x64\x64Resolver\x12J\n\x0fupdate_resolver\x18\x0b \x01(\x0b\x32\x1f.chalk.server.v1.UpdateResolverH\x00R\x0eupdateResolver\x12J\n\x0f\x64\x65lete_resolver\x18\x0c \x01(\x0b\x32\x1f.chalk.server.v1.DeleteResolverH\x00R\x0e\x64\x65leteResolverB\n\n\x08mutation"R\n\x14\x41\x64\x64StreamingResolver\x12:\n\x08resolver\x18\x01 \x01(\x0b\x32\x1e.chalk.graph.v1.StreamResolverR\x08resolver"z\n\x17UpdateStreamingResolver\x12#\n\rresolver_name\x18\x01 \x01(\tR\x0cresolverName\x12:\n\x08resolver\x18\x02 \x01(\x0b\x32\x1e.chalk.graph.v1.StreamResolverR\x08resolver">\n\x17\x44\x65leteStreamingResolver\x12#\n\rresolver_name\x18\x01 \x01(\tR\x0cresolverName"C\n\x0b\x41\x64\x64Resolver\x12\x34\n\x08resolver\x18\x01 \x01(\x0b\x32\x18.chalk.graph.v1.ResolverR\x08resolver"k\n\x0eUpdateResolver\x12#\n\rresolver_name\x18\x01 \x01(\tR\x0cresolverName\x12\x34\n\x08resolver\x18\x02 \x01(\x0b\x32\x18.chalk.graph.v1.ResolverR\x08resolver"5\n\x0e\x44\x65leteResolver\x12#\n\rresolver_name\x18\x01 \x01(\tR\x0cresolverName"m\n\nAddFeature\x12(\n\x10\x66\x65\x61ture_set_name\x18\x01 \x01(\tR\x0e\x66\x65\x61tureSetName\x12\x35\n\x07\x66\x65\x61ture\x18\x02 \x01(\x0b\x32\x1b.chalk.graph.v1.FeatureTypeR\x07\x66\x65\x61ture"X\n\rUpdateFeature\x12\x10\n\x03\x66qn\x18\x01 \x01(\tR\x03\x66qn\x12\x35\n\x07\x66\x65\x61ture\x18\x02 \x01(\x0b\x32\x1b.chalk.graph.v1.FeatureTypeR\x07\x66\x65\x61ture"!\n\rDeleteFeature\x12\x10\n\x03\x66qn\x18\x01 \x01(\tR\x03\x66qn"L\n\rAddFeatureSet\x12;\n\x0b\x66\x65\x61ture_set\x18\x01 \x01(\x0b\x32\x1a.chalk.graph.v1.FeatureSetR\nfeatureSet"y\n\x10UpdateFeatureSet\x12(\n\x10\x66\x65\x61ture_set_name\x18\x01 \x01(\tR\x0e\x66\x65\x61tureSetName\x12;\n\x0b\x66\x65\x61ture_set\x18\x02 \x01(\x0b\x32\x1a.chalk.graph.v1.FeatureSetR\nfeatureSet"<\n\x10\x44\x65leteFeatureSet\x12(\n\x10\x66\x65\x61ture_set_name\x18\x01 \x01(\tR\x0e\x66\x65\x61tureSetName"}\n\x18\x41pplyGraphUpdatesRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId\x12<\n\tmutations\x18\x02 \x03(\x0b\x32\x1e.chalk.server.v1.GraphMutationR\tmutations"\x1b\n\x19\x41pplyGraphUpdatesResponse"~\n\x19TestGraphMutationsRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId\x12<\n\tmutations\x18\x02 \x03(\x0b\x32\x1e.chalk.server.v1.GraphMutationR\tmutations"\x85\x01\n\x1aTestGraphMutationsResponse\x12\x32\n\x06\x65xport\x18\x01 \x01(\x0b\x32\x1a.chalk.artifacts.v1.ExportR\x06\x65xport\x12\x33\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors2\xa3\x06\n\x0cGraphService\x12\x66\n\rGetFeatureSQL\x12%.chalk.server.v1.GetFeatureSQLRequest\x1a&.chalk.server.v1.GetFeatureSQLResponse"\x06\x90\x02\x01\x80}\x0b\x12x\n\x13GetFeaturesMetadata\x12+.chalk.server.v1.GetFeaturesMetadataRequest\x1a,.chalk.server.v1.GetFeaturesMetadataResponse"\x06\x90\x02\x01\x80}\x0b\x12W\n\x08GetGraph\x12 .chalk.server.v1.GetGraphRequest\x1a!.chalk.server.v1.GetGraphResponse"\x06\x90\x02\x01\x80}\x0b\x12]\n\x0bUpdateGraph\x12#.chalk.server.v1.UpdateGraphRequest\x1a$.chalk.server.v1.UpdateGraphResponse"\x03\x80}\x0c\x12\x90\x01\n\x1bGetCodegenFeaturesFromGraph\x12\x33.chalk.server.v1.GetCodegenFeaturesFromGraphRequest\x1a\x34.chalk.server.v1.GetCodegenFeaturesFromGraphResponse"\x06\x90\x02\x01\x80}\x0b\x12o\n\x11\x41pplyGraphUpdates\x12).chalk.server.v1.ApplyGraphUpdatesRequest\x1a*.chalk.server.v1.ApplyGraphUpdatesResponse"\x03\x80}\x0c\x12u\n\x12TestGraphMutations\x12*.chalk.server.v1.TestGraphMutationsRequest\x1a+.chalk.server.v1.TestGraphMutationsResponse"\x06\x90\x02\x01\x80}\x0b\x42\x93\x01\n\x13\x63om.chalk.server.v1B\nGraphProtoP\x01Z\x12server/v1;serverv1\xa2\x02\x03\x43SX\xaa\x02\x0f\x43halk.Server.V1\xca\x02\x0f\x43halk\\Server\\V1\xe2\x02\x1b\x43halk\\Server\\V1\\GPBMetadata\xea\x02\x11\x43halk::Server::V1b\x06proto3'
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
_globals = globals()
|
|
@@ -50,6 +50,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
50
50
|
]._serialized_options = b"\220\002\001\200}\013"
|
|
51
51
|
_globals["_GRAPHSERVICE"].methods_by_name["ApplyGraphUpdates"]._options = None
|
|
52
52
|
_globals["_GRAPHSERVICE"].methods_by_name["ApplyGraphUpdates"]._serialized_options = b"\200}\014"
|
|
53
|
+
_globals["_GRAPHSERVICE"].methods_by_name["TestGraphMutations"]._options = None
|
|
54
|
+
_globals["_GRAPHSERVICE"].methods_by_name["TestGraphMutations"]._serialized_options = b"\220\002\001\200}\013"
|
|
53
55
|
_globals["_FEATURESQL"]._serialized_start = 206
|
|
54
56
|
_globals["_FEATURESQL"]._serialized_end = 806
|
|
55
57
|
_globals["_GETFEATURESQLRESPONSE"]._serialized_start = 808
|
|
@@ -77,29 +79,39 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
77
79
|
_globals["_GETCODEGENFEATURESFROMGRAPHRESPONSE"]._serialized_start = 2437
|
|
78
80
|
_globals["_GETCODEGENFEATURESFROMGRAPHRESPONSE"]._serialized_end = 2553
|
|
79
81
|
_globals["_GRAPHMUTATION"]._serialized_start = 2556
|
|
80
|
-
_globals["_GRAPHMUTATION"]._serialized_end =
|
|
81
|
-
_globals["_ADDSTREAMINGRESOLVER"]._serialized_start =
|
|
82
|
-
_globals["_ADDSTREAMINGRESOLVER"]._serialized_end =
|
|
83
|
-
_globals["_UPDATESTREAMINGRESOLVER"]._serialized_start =
|
|
84
|
-
_globals["_UPDATESTREAMINGRESOLVER"]._serialized_end =
|
|
85
|
-
_globals["_DELETESTREAMINGRESOLVER"]._serialized_start =
|
|
86
|
-
_globals["_DELETESTREAMINGRESOLVER"]._serialized_end =
|
|
87
|
-
_globals["
|
|
88
|
-
_globals["
|
|
89
|
-
_globals["
|
|
90
|
-
_globals["
|
|
91
|
-
_globals["
|
|
92
|
-
_globals["
|
|
93
|
-
_globals["
|
|
94
|
-
_globals["
|
|
95
|
-
_globals["
|
|
96
|
-
_globals["
|
|
97
|
-
_globals["
|
|
98
|
-
_globals["
|
|
99
|
-
_globals["
|
|
100
|
-
_globals["
|
|
101
|
-
_globals["
|
|
102
|
-
_globals["
|
|
103
|
-
_globals["
|
|
104
|
-
_globals["
|
|
82
|
+
_globals["_GRAPHMUTATION"]._serialized_end = 3555
|
|
83
|
+
_globals["_ADDSTREAMINGRESOLVER"]._serialized_start = 3557
|
|
84
|
+
_globals["_ADDSTREAMINGRESOLVER"]._serialized_end = 3639
|
|
85
|
+
_globals["_UPDATESTREAMINGRESOLVER"]._serialized_start = 3641
|
|
86
|
+
_globals["_UPDATESTREAMINGRESOLVER"]._serialized_end = 3763
|
|
87
|
+
_globals["_DELETESTREAMINGRESOLVER"]._serialized_start = 3765
|
|
88
|
+
_globals["_DELETESTREAMINGRESOLVER"]._serialized_end = 3827
|
|
89
|
+
_globals["_ADDRESOLVER"]._serialized_start = 3829
|
|
90
|
+
_globals["_ADDRESOLVER"]._serialized_end = 3896
|
|
91
|
+
_globals["_UPDATERESOLVER"]._serialized_start = 3898
|
|
92
|
+
_globals["_UPDATERESOLVER"]._serialized_end = 4005
|
|
93
|
+
_globals["_DELETERESOLVER"]._serialized_start = 4007
|
|
94
|
+
_globals["_DELETERESOLVER"]._serialized_end = 4060
|
|
95
|
+
_globals["_ADDFEATURE"]._serialized_start = 4062
|
|
96
|
+
_globals["_ADDFEATURE"]._serialized_end = 4171
|
|
97
|
+
_globals["_UPDATEFEATURE"]._serialized_start = 4173
|
|
98
|
+
_globals["_UPDATEFEATURE"]._serialized_end = 4261
|
|
99
|
+
_globals["_DELETEFEATURE"]._serialized_start = 4263
|
|
100
|
+
_globals["_DELETEFEATURE"]._serialized_end = 4296
|
|
101
|
+
_globals["_ADDFEATURESET"]._serialized_start = 4298
|
|
102
|
+
_globals["_ADDFEATURESET"]._serialized_end = 4374
|
|
103
|
+
_globals["_UPDATEFEATURESET"]._serialized_start = 4376
|
|
104
|
+
_globals["_UPDATEFEATURESET"]._serialized_end = 4497
|
|
105
|
+
_globals["_DELETEFEATURESET"]._serialized_start = 4499
|
|
106
|
+
_globals["_DELETEFEATURESET"]._serialized_end = 4559
|
|
107
|
+
_globals["_APPLYGRAPHUPDATESREQUEST"]._serialized_start = 4561
|
|
108
|
+
_globals["_APPLYGRAPHUPDATESREQUEST"]._serialized_end = 4686
|
|
109
|
+
_globals["_APPLYGRAPHUPDATESRESPONSE"]._serialized_start = 4688
|
|
110
|
+
_globals["_APPLYGRAPHUPDATESRESPONSE"]._serialized_end = 4715
|
|
111
|
+
_globals["_TESTGRAPHMUTATIONSREQUEST"]._serialized_start = 4717
|
|
112
|
+
_globals["_TESTGRAPHMUTATIONSREQUEST"]._serialized_end = 4843
|
|
113
|
+
_globals["_TESTGRAPHMUTATIONSRESPONSE"]._serialized_start = 4846
|
|
114
|
+
_globals["_TESTGRAPHMUTATIONSRESPONSE"]._serialized_end = 4979
|
|
115
|
+
_globals["_GRAPHSERVICE"]._serialized_start = 4982
|
|
116
|
+
_globals["_GRAPHSERVICE"]._serialized_end = 5785
|
|
105
117
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -269,6 +269,9 @@ class GraphMutation(_message.Message):
|
|
|
269
269
|
"add_feature_set",
|
|
270
270
|
"update_feature_set",
|
|
271
271
|
"delete_feature_set",
|
|
272
|
+
"add_resolver",
|
|
273
|
+
"update_resolver",
|
|
274
|
+
"delete_resolver",
|
|
272
275
|
)
|
|
273
276
|
ADD_STREAMING_RESOLVER_FIELD_NUMBER: _ClassVar[int]
|
|
274
277
|
UPDATE_STREAMING_RESOLVER_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -279,6 +282,9 @@ class GraphMutation(_message.Message):
|
|
|
279
282
|
ADD_FEATURE_SET_FIELD_NUMBER: _ClassVar[int]
|
|
280
283
|
UPDATE_FEATURE_SET_FIELD_NUMBER: _ClassVar[int]
|
|
281
284
|
DELETE_FEATURE_SET_FIELD_NUMBER: _ClassVar[int]
|
|
285
|
+
ADD_RESOLVER_FIELD_NUMBER: _ClassVar[int]
|
|
286
|
+
UPDATE_RESOLVER_FIELD_NUMBER: _ClassVar[int]
|
|
287
|
+
DELETE_RESOLVER_FIELD_NUMBER: _ClassVar[int]
|
|
282
288
|
add_streaming_resolver: AddStreamingResolver
|
|
283
289
|
update_streaming_resolver: UpdateStreamingResolver
|
|
284
290
|
delete_streaming_resolver: DeleteStreamingResolver
|
|
@@ -288,6 +294,9 @@ class GraphMutation(_message.Message):
|
|
|
288
294
|
add_feature_set: AddFeatureSet
|
|
289
295
|
update_feature_set: UpdateFeatureSet
|
|
290
296
|
delete_feature_set: DeleteFeatureSet
|
|
297
|
+
add_resolver: AddResolver
|
|
298
|
+
update_resolver: UpdateResolver
|
|
299
|
+
delete_resolver: DeleteResolver
|
|
291
300
|
def __init__(
|
|
292
301
|
self,
|
|
293
302
|
add_streaming_resolver: _Optional[_Union[AddStreamingResolver, _Mapping]] = ...,
|
|
@@ -299,6 +308,9 @@ class GraphMutation(_message.Message):
|
|
|
299
308
|
add_feature_set: _Optional[_Union[AddFeatureSet, _Mapping]] = ...,
|
|
300
309
|
update_feature_set: _Optional[_Union[UpdateFeatureSet, _Mapping]] = ...,
|
|
301
310
|
delete_feature_set: _Optional[_Union[DeleteFeatureSet, _Mapping]] = ...,
|
|
311
|
+
add_resolver: _Optional[_Union[AddResolver, _Mapping]] = ...,
|
|
312
|
+
update_resolver: _Optional[_Union[UpdateResolver, _Mapping]] = ...,
|
|
313
|
+
delete_resolver: _Optional[_Union[DeleteResolver, _Mapping]] = ...,
|
|
302
314
|
) -> None: ...
|
|
303
315
|
|
|
304
316
|
class AddStreamingResolver(_message.Message):
|
|
@@ -325,6 +337,28 @@ class DeleteStreamingResolver(_message.Message):
|
|
|
325
337
|
resolver_name: str
|
|
326
338
|
def __init__(self, resolver_name: _Optional[str] = ...) -> None: ...
|
|
327
339
|
|
|
340
|
+
class AddResolver(_message.Message):
|
|
341
|
+
__slots__ = ("resolver",)
|
|
342
|
+
RESOLVER_FIELD_NUMBER: _ClassVar[int]
|
|
343
|
+
resolver: _graph_pb2.Resolver
|
|
344
|
+
def __init__(self, resolver: _Optional[_Union[_graph_pb2.Resolver, _Mapping]] = ...) -> None: ...
|
|
345
|
+
|
|
346
|
+
class UpdateResolver(_message.Message):
|
|
347
|
+
__slots__ = ("resolver_name", "resolver")
|
|
348
|
+
RESOLVER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
349
|
+
RESOLVER_FIELD_NUMBER: _ClassVar[int]
|
|
350
|
+
resolver_name: str
|
|
351
|
+
resolver: _graph_pb2.Resolver
|
|
352
|
+
def __init__(
|
|
353
|
+
self, resolver_name: _Optional[str] = ..., resolver: _Optional[_Union[_graph_pb2.Resolver, _Mapping]] = ...
|
|
354
|
+
) -> None: ...
|
|
355
|
+
|
|
356
|
+
class DeleteResolver(_message.Message):
|
|
357
|
+
__slots__ = ("resolver_name",)
|
|
358
|
+
RESOLVER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
359
|
+
resolver_name: str
|
|
360
|
+
def __init__(self, resolver_name: _Optional[str] = ...) -> None: ...
|
|
361
|
+
|
|
328
362
|
class AddFeature(_message.Message):
|
|
329
363
|
__slots__ = ("feature_set_name", "feature")
|
|
330
364
|
FEATURE_SET_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -390,3 +424,27 @@ class ApplyGraphUpdatesRequest(_message.Message):
|
|
|
390
424
|
class ApplyGraphUpdatesResponse(_message.Message):
|
|
391
425
|
__slots__ = ()
|
|
392
426
|
def __init__(self) -> None: ...
|
|
427
|
+
|
|
428
|
+
class TestGraphMutationsRequest(_message.Message):
|
|
429
|
+
__slots__ = ("deployment_id", "mutations")
|
|
430
|
+
DEPLOYMENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
431
|
+
MUTATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
432
|
+
deployment_id: str
|
|
433
|
+
mutations: _containers.RepeatedCompositeFieldContainer[GraphMutation]
|
|
434
|
+
def __init__(
|
|
435
|
+
self,
|
|
436
|
+
deployment_id: _Optional[str] = ...,
|
|
437
|
+
mutations: _Optional[_Iterable[_Union[GraphMutation, _Mapping]]] = ...,
|
|
438
|
+
) -> None: ...
|
|
439
|
+
|
|
440
|
+
class TestGraphMutationsResponse(_message.Message):
|
|
441
|
+
__slots__ = ("export", "errors")
|
|
442
|
+
EXPORT_FIELD_NUMBER: _ClassVar[int]
|
|
443
|
+
ERRORS_FIELD_NUMBER: _ClassVar[int]
|
|
444
|
+
export: _export_pb2.Export
|
|
445
|
+
errors: _containers.RepeatedCompositeFieldContainer[_chalk_error_pb2.ChalkError]
|
|
446
|
+
def __init__(
|
|
447
|
+
self,
|
|
448
|
+
export: _Optional[_Union[_export_pb2.Export, _Mapping]] = ...,
|
|
449
|
+
errors: _Optional[_Iterable[_Union[_chalk_error_pb2.ChalkError, _Mapping]]] = ...,
|
|
450
|
+
) -> None: ...
|
|
@@ -45,6 +45,11 @@ class GraphServiceStub(object):
|
|
|
45
45
|
request_serializer=chalk_dot_server_dot_v1_dot_graph__pb2.ApplyGraphUpdatesRequest.SerializeToString,
|
|
46
46
|
response_deserializer=chalk_dot_server_dot_v1_dot_graph__pb2.ApplyGraphUpdatesResponse.FromString,
|
|
47
47
|
)
|
|
48
|
+
self.TestGraphMutations = channel.unary_unary(
|
|
49
|
+
"/chalk.server.v1.GraphService/TestGraphMutations",
|
|
50
|
+
request_serializer=chalk_dot_server_dot_v1_dot_graph__pb2.TestGraphMutationsRequest.SerializeToString,
|
|
51
|
+
response_deserializer=chalk_dot_server_dot_v1_dot_graph__pb2.TestGraphMutationsResponse.FromString,
|
|
52
|
+
)
|
|
48
53
|
|
|
49
54
|
|
|
50
55
|
class GraphServiceServicer(object):
|
|
@@ -86,6 +91,14 @@ class GraphServiceServicer(object):
|
|
|
86
91
|
context.set_details("Method not implemented!")
|
|
87
92
|
raise NotImplementedError("Method not implemented!")
|
|
88
93
|
|
|
94
|
+
def TestGraphMutations(self, request, context):
|
|
95
|
+
"""TestGraphMutations applies a series of mutations to a deployment's graph without persisting state
|
|
96
|
+
This allows testing graph updates before actually applying them
|
|
97
|
+
"""
|
|
98
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
99
|
+
context.set_details("Method not implemented!")
|
|
100
|
+
raise NotImplementedError("Method not implemented!")
|
|
101
|
+
|
|
89
102
|
|
|
90
103
|
def add_GraphServiceServicer_to_server(servicer, server):
|
|
91
104
|
rpc_method_handlers = {
|
|
@@ -119,6 +132,11 @@ def add_GraphServiceServicer_to_server(servicer, server):
|
|
|
119
132
|
request_deserializer=chalk_dot_server_dot_v1_dot_graph__pb2.ApplyGraphUpdatesRequest.FromString,
|
|
120
133
|
response_serializer=chalk_dot_server_dot_v1_dot_graph__pb2.ApplyGraphUpdatesResponse.SerializeToString,
|
|
121
134
|
),
|
|
135
|
+
"TestGraphMutations": grpc.unary_unary_rpc_method_handler(
|
|
136
|
+
servicer.TestGraphMutations,
|
|
137
|
+
request_deserializer=chalk_dot_server_dot_v1_dot_graph__pb2.TestGraphMutationsRequest.FromString,
|
|
138
|
+
response_serializer=chalk_dot_server_dot_v1_dot_graph__pb2.TestGraphMutationsResponse.SerializeToString,
|
|
139
|
+
),
|
|
122
140
|
}
|
|
123
141
|
generic_handler = grpc.method_handlers_generic_handler("chalk.server.v1.GraphService", rpc_method_handlers)
|
|
124
142
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
@@ -301,3 +319,32 @@ class GraphService(object):
|
|
|
301
319
|
timeout,
|
|
302
320
|
metadata,
|
|
303
321
|
)
|
|
322
|
+
|
|
323
|
+
@staticmethod
|
|
324
|
+
def TestGraphMutations(
|
|
325
|
+
request,
|
|
326
|
+
target,
|
|
327
|
+
options=(),
|
|
328
|
+
channel_credentials=None,
|
|
329
|
+
call_credentials=None,
|
|
330
|
+
insecure=False,
|
|
331
|
+
compression=None,
|
|
332
|
+
wait_for_ready=None,
|
|
333
|
+
timeout=None,
|
|
334
|
+
metadata=None,
|
|
335
|
+
):
|
|
336
|
+
return grpc.experimental.unary_unary(
|
|
337
|
+
request,
|
|
338
|
+
target,
|
|
339
|
+
"/chalk.server.v1.GraphService/TestGraphMutations",
|
|
340
|
+
chalk_dot_server_dot_v1_dot_graph__pb2.TestGraphMutationsRequest.SerializeToString,
|
|
341
|
+
chalk_dot_server_dot_v1_dot_graph__pb2.TestGraphMutationsResponse.FromString,
|
|
342
|
+
options,
|
|
343
|
+
channel_credentials,
|
|
344
|
+
insecure,
|
|
345
|
+
call_credentials,
|
|
346
|
+
compression,
|
|
347
|
+
wait_for_ready,
|
|
348
|
+
timeout,
|
|
349
|
+
metadata,
|
|
350
|
+
)
|
|
@@ -18,6 +18,8 @@ from chalk._gen.chalk.server.v1.graph_pb2 import (
|
|
|
18
18
|
GetFeaturesMetadataResponse,
|
|
19
19
|
GetGraphRequest,
|
|
20
20
|
GetGraphResponse,
|
|
21
|
+
TestGraphMutationsRequest,
|
|
22
|
+
TestGraphMutationsResponse,
|
|
21
23
|
UpdateGraphRequest,
|
|
22
24
|
UpdateGraphResponse,
|
|
23
25
|
)
|
|
@@ -58,6 +60,13 @@ class GraphServiceStub:
|
|
|
58
60
|
ApplyGraphUpdatesResponse,
|
|
59
61
|
]
|
|
60
62
|
"""ApplyGraphUpdates applies a series of mutations to a deployment's graph"""
|
|
63
|
+
TestGraphMutations: UnaryUnaryMultiCallable[
|
|
64
|
+
TestGraphMutationsRequest,
|
|
65
|
+
TestGraphMutationsResponse,
|
|
66
|
+
]
|
|
67
|
+
"""TestGraphMutations applies a series of mutations to a deployment's graph without persisting state
|
|
68
|
+
This allows testing graph updates before actually applying them
|
|
69
|
+
"""
|
|
61
70
|
|
|
62
71
|
class GraphServiceServicer(metaclass=ABCMeta):
|
|
63
72
|
@abstractmethod
|
|
@@ -100,5 +109,14 @@ class GraphServiceServicer(metaclass=ABCMeta):
|
|
|
100
109
|
context: ServicerContext,
|
|
101
110
|
) -> ApplyGraphUpdatesResponse:
|
|
102
111
|
"""ApplyGraphUpdates applies a series of mutations to a deployment's graph"""
|
|
112
|
+
@abstractmethod
|
|
113
|
+
def TestGraphMutations(
|
|
114
|
+
self,
|
|
115
|
+
request: TestGraphMutationsRequest,
|
|
116
|
+
context: ServicerContext,
|
|
117
|
+
) -> TestGraphMutationsResponse:
|
|
118
|
+
"""TestGraphMutations applies a series of mutations to a deployment's graph without persisting state
|
|
119
|
+
This allows testing graph updates before actually applying them
|
|
120
|
+
"""
|
|
103
121
|
|
|
104
122
|
def add_GraphServiceServicer_to_server(servicer: GraphServiceServicer, server: Server) -> None: ...
|
|
@@ -19,7 +19,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
22
|
-
b'\n\x1e\x63halk/server/v1/incident.proto\x12\x0f\x63halk.server.v1\x1a\x1e\x63halk/artifacts/v1/chart.proto\x1a)chalk/chart/v1/densetimeserieschart.proto\x1a\x1fgoogle/protobuf/timestamp.proto"y\n\x14IncidentLinkedEntity\x12\x44\n\x0b\x65ntity_kind\x18\x01 \x01(\x0e\x32#.chalk.server.v1.IncidentEntityKindR\nentityKind\x12\x1b\n\tentity_id\x18\x02 \x01(\tR\x08\x65ntityId"\
|
|
22
|
+
b'\n\x1e\x63halk/server/v1/incident.proto\x12\x0f\x63halk.server.v1\x1a\x1e\x63halk/artifacts/v1/chart.proto\x1a)chalk/chart/v1/densetimeserieschart.proto\x1a\x1fgoogle/protobuf/timestamp.proto"y\n\x14IncidentLinkedEntity\x12\x44\n\x0b\x65ntity_kind\x18\x01 \x01(\x0e\x32#.chalk.server.v1.IncidentEntityKindR\nentityKind\x12\x1b\n\tentity_id\x18\x02 \x01(\tR\x08\x65ntityId"B\n\rIncidentGroup\x12\x1b\n\tgroup_key\x18\x01 \x01(\tR\x08groupKey\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value"\x95\x03\n\x0eMetricIncident\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x39\n\nstarted_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x37\n\tclosed_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08\x63losedAt\x12\x45\n\rmetric_config\x18\x04 \x01(\x0b\x32 .chalk.artifacts.v1.MetricConfigR\x0cmetricConfig\x12O\n\rlinked_entity\x18\x05 \x01(\x0b\x32%.chalk.server.v1.IncidentLinkedEntityH\x00R\x0clinkedEntity\x88\x01\x01\x12\x1d\n\ndedupe_key\x18\x06 \x01(\tR\tdedupeKey\x12\x36\n\x06groups\x18\x07 \x03(\x0b\x32\x1e.chalk.server.v1.IncidentGroupR\x06groupsB\x10\n\x0e_linked_entity"5\n\x12GetIncidentRequest\x12\x1f\n\x0bincident_id\x18\x01 \x01(\tR\nincidentId"R\n\x13GetIncidentResponse\x12;\n\x08incident\x18\x01 \x01(\x0b\x32\x1f.chalk.server.v1.MetricIncidentR\x08incident"v\n\x1dGetIncidentAlertsChartRequest\x12\x1f\n\x0bincident_id\x18\x01 \x01(\tR\nincidentId\x12$\n\x0bpoint_limit\x18\x02 \x01(\x03H\x00R\npointLimit\x88\x01\x01\x42\x0e\n\x0c_point_limit"\\\n\x1eGetIncidentAlertsChartResponse\x12:\n\x05\x63hart\x18\x01 \x01(\x0b\x32$.chalk.chart.v1.DenseTimeSeriesChartR\x05\x63hart"q\n\x16ListIncidentsPageToken\x12@\n\x0e\x63reated_at_hwm\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0c\x63reatedAtHwm\x12\x15\n\x06id_hwm\x18\x02 \x01(\tR\x05idHwm"\xd4\x04\n\x14ListIncidentsFilters\x12g\n created_at_lower_bound_inclusive\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x1c\x63reatedAtLowerBoundInclusive\x88\x01\x01\x12g\n created_at_upper_bound_exclusive\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\x1c\x63reatedAtUpperBoundExclusive\x88\x01\x01\x12/\n\x11has_closed_filter\x18\x03 \x01(\x08H\x02R\x0fhasClosedFilter\x88\x01\x01\x12\x63\n\x19linked_entity_kind_filter\x18\x04 \x01(\x0e\x32#.chalk.server.v1.IncidentEntityKindH\x03R\x16linkedEntityKindFilter\x88\x01\x01\x12:\n\x17linked_entity_id_filter\x18\x05 \x01(\tH\x04R\x14linkedEntityIdFilter\x88\x01\x01\x42#\n!_created_at_lower_bound_inclusiveB#\n!_created_at_upper_bound_exclusiveB\x14\n\x12_has_closed_filterB\x1c\n\x1a_linked_entity_kind_filterB\x1a\n\x18_linked_entity_id_filter"\xc0\x01\n\x14ListIncidentsRequest\x12\x44\n\x07\x66ilters\x18\x01 \x01(\x0b\x32%.chalk.server.v1.ListIncidentsFiltersH\x00R\x07\x66ilters\x88\x01\x01\x12\x19\n\x05limit\x18\x02 \x01(\x05H\x01R\x05limit\x88\x01\x01\x12"\n\npage_token\x18\x03 \x01(\tH\x02R\tpageToken\x88\x01\x01\x42\n\n\x08_filtersB\x08\n\x06_limitB\r\n\x0b_page_token"\x97\x01\n\x15ListIncidentsResponse\x12=\n\tincidents\x18\x01 \x03(\x0b\x32\x1f.chalk.server.v1.MetricIncidentR\tincidents\x12+\n\x0fnext_page_token\x18\x02 \x01(\tH\x00R\rnextPageToken\x88\x01\x01\x42\x12\n\x10_next_page_token*\xa9\x01\n\x12IncidentEntityKind\x12$\n INCIDENT_ENTITY_KIND_UNSPECIFIED\x10\x00\x12 \n\x1cINCIDENT_ENTITY_KIND_FEATURE\x10\x01\x12!\n\x1dINCIDENT_ENTITY_KIND_RESOLVER\x10\x02\x12(\n$INCIDENT_ENTITY_KIND_SCHEDULED_QUERY\x10\x03\x42\x96\x01\n\x13\x63om.chalk.server.v1B\rIncidentProtoP\x01Z\x12server/v1;serverv1\xa2\x02\x03\x43SX\xaa\x02\x0f\x43halk.Server.V1\xca\x02\x0f\x43halk\\Server\\V1\xe2\x02\x1b\x43halk\\Server\\V1\\GPBMetadata\xea\x02\x11\x43halk::Server::V1b\x06proto3'
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
_globals = globals()
|
|
@@ -30,26 +30,28 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
30
30
|
_globals[
|
|
31
31
|
"DESCRIPTOR"
|
|
32
32
|
]._serialized_options = b"\n\023com.chalk.server.v1B\rIncidentProtoP\001Z\022server/v1;serverv1\242\002\003CSX\252\002\017Chalk.Server.V1\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\Server\\V1\\GPBMetadata\352\002\021Chalk::Server::V1"
|
|
33
|
-
_globals["_INCIDENTENTITYKIND"]._serialized_start =
|
|
34
|
-
_globals["_INCIDENTENTITYKIND"]._serialized_end =
|
|
33
|
+
_globals["_INCIDENTENTITYKIND"]._serialized_start = 2175
|
|
34
|
+
_globals["_INCIDENTENTITYKIND"]._serialized_end = 2344
|
|
35
35
|
_globals["_INCIDENTLINKEDENTITY"]._serialized_start = 159
|
|
36
36
|
_globals["_INCIDENTLINKEDENTITY"]._serialized_end = 280
|
|
37
|
-
_globals["
|
|
38
|
-
_globals["
|
|
39
|
-
_globals["
|
|
40
|
-
_globals["
|
|
41
|
-
_globals["
|
|
42
|
-
_globals["
|
|
43
|
-
_globals["
|
|
44
|
-
_globals["
|
|
45
|
-
_globals["
|
|
46
|
-
_globals["
|
|
47
|
-
_globals["
|
|
48
|
-
_globals["
|
|
49
|
-
_globals["
|
|
50
|
-
_globals["
|
|
51
|
-
_globals["
|
|
52
|
-
_globals["
|
|
53
|
-
_globals["
|
|
54
|
-
_globals["
|
|
37
|
+
_globals["_INCIDENTGROUP"]._serialized_start = 282
|
|
38
|
+
_globals["_INCIDENTGROUP"]._serialized_end = 348
|
|
39
|
+
_globals["_METRICINCIDENT"]._serialized_start = 351
|
|
40
|
+
_globals["_METRICINCIDENT"]._serialized_end = 756
|
|
41
|
+
_globals["_GETINCIDENTREQUEST"]._serialized_start = 758
|
|
42
|
+
_globals["_GETINCIDENTREQUEST"]._serialized_end = 811
|
|
43
|
+
_globals["_GETINCIDENTRESPONSE"]._serialized_start = 813
|
|
44
|
+
_globals["_GETINCIDENTRESPONSE"]._serialized_end = 895
|
|
45
|
+
_globals["_GETINCIDENTALERTSCHARTREQUEST"]._serialized_start = 897
|
|
46
|
+
_globals["_GETINCIDENTALERTSCHARTREQUEST"]._serialized_end = 1015
|
|
47
|
+
_globals["_GETINCIDENTALERTSCHARTRESPONSE"]._serialized_start = 1017
|
|
48
|
+
_globals["_GETINCIDENTALERTSCHARTRESPONSE"]._serialized_end = 1109
|
|
49
|
+
_globals["_LISTINCIDENTSPAGETOKEN"]._serialized_start = 1111
|
|
50
|
+
_globals["_LISTINCIDENTSPAGETOKEN"]._serialized_end = 1224
|
|
51
|
+
_globals["_LISTINCIDENTSFILTERS"]._serialized_start = 1227
|
|
52
|
+
_globals["_LISTINCIDENTSFILTERS"]._serialized_end = 1823
|
|
53
|
+
_globals["_LISTINCIDENTSREQUEST"]._serialized_start = 1826
|
|
54
|
+
_globals["_LISTINCIDENTSREQUEST"]._serialized_end = 2018
|
|
55
|
+
_globals["_LISTINCIDENTSRESPONSE"]._serialized_start = 2021
|
|
56
|
+
_globals["_LISTINCIDENTSRESPONSE"]._serialized_end = 2172
|
|
55
57
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -37,18 +37,30 @@ class IncidentLinkedEntity(_message.Message):
|
|
|
37
37
|
self, entity_kind: _Optional[_Union[IncidentEntityKind, str]] = ..., entity_id: _Optional[str] = ...
|
|
38
38
|
) -> None: ...
|
|
39
39
|
|
|
40
|
+
class IncidentGroup(_message.Message):
|
|
41
|
+
__slots__ = ("group_key", "value")
|
|
42
|
+
GROUP_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
group_key: str
|
|
45
|
+
value: str
|
|
46
|
+
def __init__(self, group_key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
47
|
+
|
|
40
48
|
class MetricIncident(_message.Message):
|
|
41
|
-
__slots__ = ("id", "started_at", "closed_at", "metric_config", "linked_entity")
|
|
49
|
+
__slots__ = ("id", "started_at", "closed_at", "metric_config", "linked_entity", "dedupe_key", "groups")
|
|
42
50
|
ID_FIELD_NUMBER: _ClassVar[int]
|
|
43
51
|
STARTED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
44
52
|
CLOSED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
45
53
|
METRIC_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
|
46
54
|
LINKED_ENTITY_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
DEDUPE_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
GROUPS_FIELD_NUMBER: _ClassVar[int]
|
|
47
57
|
id: str
|
|
48
58
|
started_at: _timestamp_pb2.Timestamp
|
|
49
59
|
closed_at: _timestamp_pb2.Timestamp
|
|
50
60
|
metric_config: _chart_pb2.MetricConfig
|
|
51
61
|
linked_entity: IncidentLinkedEntity
|
|
62
|
+
dedupe_key: str
|
|
63
|
+
groups: _containers.RepeatedCompositeFieldContainer[IncidentGroup]
|
|
52
64
|
def __init__(
|
|
53
65
|
self,
|
|
54
66
|
id: _Optional[str] = ...,
|
|
@@ -56,6 +68,8 @@ class MetricIncident(_message.Message):
|
|
|
56
68
|
closed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...,
|
|
57
69
|
metric_config: _Optional[_Union[_chart_pb2.MetricConfig, _Mapping]] = ...,
|
|
58
70
|
linked_entity: _Optional[_Union[IncidentLinkedEntity, _Mapping]] = ...,
|
|
71
|
+
dedupe_key: _Optional[str] = ...,
|
|
72
|
+
groups: _Optional[_Iterable[_Union[IncidentGroup, _Mapping]]] = ...,
|
|
59
73
|
) -> None: ...
|
|
60
74
|
|
|
61
75
|
class GetIncidentRequest(_message.Message):
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: chalk/server/v1/indexing_job.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.3
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
10
|
+
from google.protobuf.internal import builder as _builder
|
|
11
|
+
# @@protoc_insertion_point(imports)
|
|
12
|
+
|
|
13
|
+
_sym_db = _symbol_database.Default()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from chalk._gen.chalk.artifacts.v1 import export_pb2 as chalk_dot_artifacts_dot_v1_dot_export__pb2
|
|
17
|
+
from chalk._gen.chalk.auth.v1 import permissions_pb2 as chalk_dot_auth_dot_v1_dot_permissions__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
21
|
+
b'\n"chalk/server/v1/indexing_job.proto\x12\x0f\x63halk.server.v1\x1a\x1f\x63halk/artifacts/v1/export.proto\x1a\x1f\x63halk/auth/v1/permissions.proto"\x99\x01\n\x1bGetIndexingJobStatusRequest\x12#\n\rdeployment_id\x18\x01 \x01(\tR\x0c\x64\x65ploymentId\x12U\n\x15\x64irectory_prefix_enum\x18\x02 \x01(\x0e\x32!.chalk.server.v1.DirectoryOptionsR\x13\x64irectoryPrefixEnum"R\n\x1cGetIndexingJobStatusResponse\x12\x32\n\x06\x65xport\x18\x01 \x01(\x0b\x32\x1a.chalk.artifacts.v1.ExportR\x06\x65xport*\xb2\x01\n\x10\x44irectoryOptions\x12!\n\x1d\x44IRECTORY_OPTIONS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x44IRECTORY_OPTIONS_MAIN\x10\x01\x12\x1c\n\x18\x44IRECTORY_OPTIONS_SHADOW\x10\x02\x12\x1d\n\x19\x44IRECTORY_OPTIONS_DRY_RUN\x10\x03\x12"\n\x1e\x44IRECTORY_OPTIONS_INDEXING_JOB\x10\x04\x32\x91\x01\n\x12IndexingJobService\x12{\n\x14GetIndexingJobStatus\x12,.chalk.server.v1.GetIndexingJobStatusRequest\x1a-.chalk.server.v1.GetIndexingJobStatusResponse"\x06\x90\x02\x01\x80}\x0b\x42\x99\x01\n\x13\x63om.chalk.server.v1B\x10IndexingJobProtoP\x01Z\x12server/v1;serverv1\xa2\x02\x03\x43SX\xaa\x02\x0f\x43halk.Server.V1\xca\x02\x0f\x43halk\\Server\\V1\xe2\x02\x1b\x43halk\\Server\\V1\\GPBMetadata\xea\x02\x11\x43halk::Server::V1b\x06proto3'
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
_globals = globals()
|
|
25
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
26
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "chalk.server.v1.indexing_job_pb2", _globals)
|
|
27
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
28
|
+
_globals["DESCRIPTOR"]._options = None
|
|
29
|
+
_globals[
|
|
30
|
+
"DESCRIPTOR"
|
|
31
|
+
]._serialized_options = b"\n\023com.chalk.server.v1B\020IndexingJobProtoP\001Z\022server/v1;serverv1\242\002\003CSX\252\002\017Chalk.Server.V1\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\Server\\V1\\GPBMetadata\352\002\021Chalk::Server::V1"
|
|
32
|
+
_globals["_INDEXINGJOBSERVICE"].methods_by_name["GetIndexingJobStatus"]._options = None
|
|
33
|
+
_globals["_INDEXINGJOBSERVICE"].methods_by_name[
|
|
34
|
+
"GetIndexingJobStatus"
|
|
35
|
+
]._serialized_options = b"\220\002\001\200}\013"
|
|
36
|
+
_globals["_DIRECTORYOPTIONS"]._serialized_start = 362
|
|
37
|
+
_globals["_DIRECTORYOPTIONS"]._serialized_end = 540
|
|
38
|
+
_globals["_GETINDEXINGJOBSTATUSREQUEST"]._serialized_start = 122
|
|
39
|
+
_globals["_GETINDEXINGJOBSTATUSREQUEST"]._serialized_end = 275
|
|
40
|
+
_globals["_GETINDEXINGJOBSTATUSRESPONSE"]._serialized_start = 277
|
|
41
|
+
_globals["_GETINDEXINGJOBSTATUSRESPONSE"]._serialized_end = 359
|
|
42
|
+
_globals["_INDEXINGJOBSERVICE"]._serialized_start = 543
|
|
43
|
+
_globals["_INDEXINGJOBSERVICE"]._serialized_end = 688
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from chalk._gen.chalk.artifacts.v1 import export_pb2 as _export_pb2
|
|
2
|
+
from chalk._gen.chalk.auth.v1 import permissions_pb2 as _permissions_pb2
|
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class DirectoryOptions(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
11
|
+
__slots__ = ()
|
|
12
|
+
DIRECTORY_OPTIONS_UNSPECIFIED: _ClassVar[DirectoryOptions]
|
|
13
|
+
DIRECTORY_OPTIONS_MAIN: _ClassVar[DirectoryOptions]
|
|
14
|
+
DIRECTORY_OPTIONS_SHADOW: _ClassVar[DirectoryOptions]
|
|
15
|
+
DIRECTORY_OPTIONS_DRY_RUN: _ClassVar[DirectoryOptions]
|
|
16
|
+
DIRECTORY_OPTIONS_INDEXING_JOB: _ClassVar[DirectoryOptions]
|
|
17
|
+
|
|
18
|
+
DIRECTORY_OPTIONS_UNSPECIFIED: DirectoryOptions
|
|
19
|
+
DIRECTORY_OPTIONS_MAIN: DirectoryOptions
|
|
20
|
+
DIRECTORY_OPTIONS_SHADOW: DirectoryOptions
|
|
21
|
+
DIRECTORY_OPTIONS_DRY_RUN: DirectoryOptions
|
|
22
|
+
DIRECTORY_OPTIONS_INDEXING_JOB: DirectoryOptions
|
|
23
|
+
|
|
24
|
+
class GetIndexingJobStatusRequest(_message.Message):
|
|
25
|
+
__slots__ = ("deployment_id", "directory_prefix_enum")
|
|
26
|
+
DEPLOYMENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
DIRECTORY_PREFIX_ENUM_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
deployment_id: str
|
|
29
|
+
directory_prefix_enum: DirectoryOptions
|
|
30
|
+
def __init__(
|
|
31
|
+
self, deployment_id: _Optional[str] = ..., directory_prefix_enum: _Optional[_Union[DirectoryOptions, str]] = ...
|
|
32
|
+
) -> None: ...
|
|
33
|
+
|
|
34
|
+
class GetIndexingJobStatusResponse(_message.Message):
|
|
35
|
+
__slots__ = ("export",)
|
|
36
|
+
EXPORT_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
export: _export_pb2.Export
|
|
38
|
+
def __init__(self, export: _Optional[_Union[_export_pb2.Export, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
|
|
4
|
+
import grpc
|
|
5
|
+
|
|
6
|
+
from chalk._gen.chalk.server.v1 import indexing_job_pb2 as chalk_dot_server_dot_v1_dot_indexing__job__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class IndexingJobServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.GetIndexingJobStatus = channel.unary_unary(
|
|
19
|
+
"/chalk.server.v1.IndexingJobService/GetIndexingJobStatus",
|
|
20
|
+
request_serializer=chalk_dot_server_dot_v1_dot_indexing__job__pb2.GetIndexingJobStatusRequest.SerializeToString,
|
|
21
|
+
response_deserializer=chalk_dot_server_dot_v1_dot_indexing__job__pb2.GetIndexingJobStatusResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class IndexingJobServiceServicer(object):
|
|
26
|
+
"""Missing associated documentation comment in .proto file."""
|
|
27
|
+
|
|
28
|
+
def GetIndexingJobStatus(self, request, context):
|
|
29
|
+
"""GetIndexingStatus checks if the indexing job has completed successfully for a deployment"""
|
|
30
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
31
|
+
context.set_details("Method not implemented!")
|
|
32
|
+
raise NotImplementedError("Method not implemented!")
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def add_IndexingJobServiceServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
"GetIndexingJobStatus": grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.GetIndexingJobStatus,
|
|
39
|
+
request_deserializer=chalk_dot_server_dot_v1_dot_indexing__job__pb2.GetIndexingJobStatusRequest.FromString,
|
|
40
|
+
response_serializer=chalk_dot_server_dot_v1_dot_indexing__job__pb2.GetIndexingJobStatusResponse.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler("chalk.server.v1.IndexingJobService", rpc_method_handlers)
|
|
44
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# This class is part of an EXPERIMENTAL API.
|
|
48
|
+
class IndexingJobService(object):
|
|
49
|
+
"""Missing associated documentation comment in .proto file."""
|
|
50
|
+
|
|
51
|
+
@staticmethod
|
|
52
|
+
def GetIndexingJobStatus(
|
|
53
|
+
request,
|
|
54
|
+
target,
|
|
55
|
+
options=(),
|
|
56
|
+
channel_credentials=None,
|
|
57
|
+
call_credentials=None,
|
|
58
|
+
insecure=False,
|
|
59
|
+
compression=None,
|
|
60
|
+
wait_for_ready=None,
|
|
61
|
+
timeout=None,
|
|
62
|
+
metadata=None,
|
|
63
|
+
):
|
|
64
|
+
return grpc.experimental.unary_unary(
|
|
65
|
+
request,
|
|
66
|
+
target,
|
|
67
|
+
"/chalk.server.v1.IndexingJobService/GetIndexingJobStatus",
|
|
68
|
+
chalk_dot_server_dot_v1_dot_indexing__job__pb2.GetIndexingJobStatusRequest.SerializeToString,
|
|
69
|
+
chalk_dot_server_dot_v1_dot_indexing__job__pb2.GetIndexingJobStatusResponse.FromString,
|
|
70
|
+
options,
|
|
71
|
+
channel_credentials,
|
|
72
|
+
insecure,
|
|
73
|
+
call_credentials,
|
|
74
|
+
compression,
|
|
75
|
+
wait_for_ready,
|
|
76
|
+
timeout,
|
|
77
|
+
metadata,
|
|
78
|
+
)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from abc import (
|
|
7
|
+
ABCMeta,
|
|
8
|
+
abstractmethod,
|
|
9
|
+
)
|
|
10
|
+
from chalk._gen.chalk.server.v1.indexing_job_pb2 import (
|
|
11
|
+
GetIndexingJobStatusRequest,
|
|
12
|
+
GetIndexingJobStatusResponse,
|
|
13
|
+
)
|
|
14
|
+
from grpc import (
|
|
15
|
+
Channel,
|
|
16
|
+
Server,
|
|
17
|
+
ServicerContext,
|
|
18
|
+
UnaryUnaryMultiCallable,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
class IndexingJobServiceStub:
|
|
22
|
+
def __init__(self, channel: Channel) -> None: ...
|
|
23
|
+
GetIndexingJobStatus: UnaryUnaryMultiCallable[
|
|
24
|
+
GetIndexingJobStatusRequest,
|
|
25
|
+
GetIndexingJobStatusResponse,
|
|
26
|
+
]
|
|
27
|
+
"""GetIndexingStatus checks if the indexing job has completed successfully for a deployment"""
|
|
28
|
+
|
|
29
|
+
class IndexingJobServiceServicer(metaclass=ABCMeta):
|
|
30
|
+
@abstractmethod
|
|
31
|
+
def GetIndexingJobStatus(
|
|
32
|
+
self,
|
|
33
|
+
request: GetIndexingJobStatusRequest,
|
|
34
|
+
context: ServicerContext,
|
|
35
|
+
) -> GetIndexingJobStatusResponse:
|
|
36
|
+
"""GetIndexingStatus checks if the indexing job has completed successfully for a deployment"""
|
|
37
|
+
|
|
38
|
+
def add_IndexingJobServiceServicer_to_server(servicer: IndexingJobServiceServicer, server: Server) -> None: ...
|