udb-client 0.2.0__tar.gz
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.
- udb_client-0.2.0/PKG-INFO +178 -0
- udb_client-0.2.0/README.md +145 -0
- udb_client-0.2.0/gen/google/api/annotations_pb2.py +37 -0
- udb_client-0.2.0/gen/google/api/annotations_pb2.pyi +8 -0
- udb_client-0.2.0/gen/google/api/annotations_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/google/api/field_behavior_pb2.py +40 -0
- udb_client-0.2.0/gen/google/api/field_behavior_pb2.pyi +29 -0
- udb_client-0.2.0/gen/google/api/field_behavior_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/google/api/http_pb2.py +41 -0
- udb_client-0.2.0/gen/google/api/http_pb2.pyi +47 -0
- udb_client-0.2.0/gen/google/api/http_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/entities_pb2.py +41 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/entities_pb2.pyi +10 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/entities_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/executor_performance_summary_pb2.py +69 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/executor_performance_summary_pb2.pyi +42 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/executor_performance_summary_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/pipeline_metric_snapshot_pb2.py +69 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/pipeline_metric_snapshot_pb2.pyi +42 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/pipeline_metric_snapshot_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/reconciliation_analytics_summary_pb2.py +63 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/reconciliation_analytics_summary_pb2.pyi +36 -0
- udb_client-0.2.0/gen/udb/core/analytics/entity/v1/reconciliation_analytics_summary_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/analytics/events/v1/analytics_events_pb2.py +42 -0
- udb_client-0.2.0/gen/udb/core/analytics/events/v1/analytics_events_pb2.pyi +71 -0
- udb_client-0.2.0/gen/udb/core/analytics/events/v1/analytics_events_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/analytics/services/v1/analytics_service_pb2.py +54 -0
- udb_client-0.2.0/gen/udb/core/analytics/services/v1/analytics_service_pb2.pyi +7 -0
- udb_client-0.2.0/gen/udb/core/analytics/services/v1/analytics_service_pb2_grpc.py +363 -0
- udb_client-0.2.0/gen/udb/core/analytics/services/v1/core_pb2.py +74 -0
- udb_client-0.2.0/gen/udb/core/analytics/services/v1/core_pb2.pyi +169 -0
- udb_client-0.2.0/gen/udb/core/analytics/services/v1/core_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/api_key_pb2.py +93 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/api_key_pb2.pyi +66 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/api_key_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/api_key_usage_pb2.py +60 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/api_key_usage_pb2.pyi +33 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/api_key_usage_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/entities_pb2.py +41 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/entities_pb2.pyi +23 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/entities_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/enums_pb2.py +39 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/enums_pb2.pyi +35 -0
- udb_client-0.2.0/gen/udb/core/apikey/entity/v1/enums_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/apikey/events/v1/apikey_events_pb2.py +43 -0
- udb_client-0.2.0/gen/udb/core/apikey/events/v1/apikey_events_pb2.pyi +81 -0
- udb_client-0.2.0/gen/udb/core/apikey/events/v1/apikey_events_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/apikey/services/v1/apikey_service_pb2.py +54 -0
- udb_client-0.2.0/gen/udb/core/apikey/services/v1/apikey_service_pb2.pyi +7 -0
- udb_client-0.2.0/gen/udb/core/apikey/services/v1/apikey_service_pb2_grpc.py +375 -0
- udb_client-0.2.0/gen/udb/core/apikey/services/v1/core_pb2.py +78 -0
- udb_client-0.2.0/gen/udb/core/apikey/services/v1/core_pb2.pyi +193 -0
- udb_client-0.2.0/gen/udb/core/apikey/services/v1/core_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/entities_pb2.py +43 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/entities_pb2.pyi +86 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/entities_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/enums_pb2.py +55 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/enums_pb2.pyi +165 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/enums_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/otp_pb2.py +68 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/otp_pb2.pyi +41 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/otp_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/session_pb2.py +93 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/session_pb2.pyi +66 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/session_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/user_pb2.py +95 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/user_pb2.pyi +68 -0
- udb_client-0.2.0/gen/udb/core/authn/entity/v1/user_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authn/events/v1/authn_events_pb2.py +57 -0
- udb_client-0.2.0/gen/udb/core/authn/events/v1/authn_events_pb2.pyi +232 -0
- udb_client-0.2.0/gen/udb/core/authn/events/v1/authn_events_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authn/services/v1/authn_service_pb2.py +86 -0
- udb_client-0.2.0/gen/udb/core/authn/services/v1/authn_service_pb2.pyi +7 -0
- udb_client-0.2.0/gen/udb/core/authn/services/v1/authn_service_pb2_grpc.py +1063 -0
- udb_client-0.2.0/gen/udb/core/authn/services/v1/core_pb2.py +159 -0
- udb_client-0.2.0/gen/udb/core/authn/services/v1/core_pb2.pyi +613 -0
- udb_client-0.2.0/gen/udb/core/authn/services/v1/core_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/access_decision_audit_pb2.py +68 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/access_decision_audit_pb2.pyi +41 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/access_decision_audit_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/entities_pb2.py +49 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/entities_pb2.pyi +41 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/entities_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/enums_pb2.py +43 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/enums_pb2.pyi +57 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/enums_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/policy_rule_pb2.py +78 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/policy_rule_pb2.pyi +51 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/policy_rule_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/policy_tuple_pb2.py +60 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/policy_tuple_pb2.pyi +30 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/policy_tuple_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/role_pb2.py +76 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/role_pb2.pyi +49 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/role_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/role_permission_pb2.py +53 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/role_permission_pb2.pyi +26 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/role_permission_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/user_role_pb2.py +63 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/user_role_pb2.pyi +36 -0
- udb_client-0.2.0/gen/udb/core/authz/entity/v1/user_role_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/events/v1/authz_events_pb2.py +50 -0
- udb_client-0.2.0/gen/udb/core/authz/events/v1/authz_events_pb2.pyi +154 -0
- udb_client-0.2.0/gen/udb/core/authz/events/v1/authz_events_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/authz/services/v1/authz_service_pb2.py +86 -0
- udb_client-0.2.0/gen/udb/core/authz/services/v1/authz_service_pb2.pyi +7 -0
- udb_client-0.2.0/gen/udb/core/authz/services/v1/authz_service_pb2_grpc.py +1042 -0
- udb_client-0.2.0/gen/udb/core/authz/services/v1/core_pb2.py +301 -0
- udb_client-0.2.0/gen/udb/core/authz/services/v1/core_pb2.pyi +786 -0
- udb_client-0.2.0/gen/udb/core/authz/services/v1/core_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/common/v1/db_pb2.py +110 -0
- udb_client-0.2.0/gen/udb/core/common/v1/db_pb2.pyi +729 -0
- udb_client-0.2.0/gen/udb/core/common/v1/db_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/common/v1/domain_types_pb2.py +76 -0
- udb_client-0.2.0/gen/udb/core/common/v1/domain_types_pb2.pyi +201 -0
- udb_client-0.2.0/gen/udb/core/common/v1/domain_types_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/common/v1/dto_pb2.py +58 -0
- udb_client-0.2.0/gen/udb/core/common/v1/dto_pb2.pyi +129 -0
- udb_client-0.2.0/gen/udb/core/common/v1/dto_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/common/v1/security_pb2.py +46 -0
- udb_client-0.2.0/gen/udb/core/common/v1/security_pb2.pyi +108 -0
- udb_client-0.2.0/gen/udb/core/common/v1/security_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/common/v1/types_pb2.py +74 -0
- udb_client-0.2.0/gen/udb/core/common/v1/types_pb2.pyi +258 -0
- udb_client-0.2.0/gen/udb/core/common/v1/types_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/entities_pb2.py +45 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/entities_pb2.pyi +39 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/entities_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/enums_pb2.py +43 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/enums_pb2.pyi +61 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/enums_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_log_pb2.py +80 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_log_pb2.pyi +53 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_log_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_pb2.py +43 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_pb2.pyi +56 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_preference_pb2.py +60 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_preference_pb2.pyi +33 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_preference_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_template_pb2.py +66 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_template_pb2.pyi +39 -0
- udb_client-0.2.0/gen/udb/core/notification/entity/v1/notification_template_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/events/v1/notification_events_pb2.py +48 -0
- udb_client-0.2.0/gen/udb/core/notification/events/v1/notification_events_pb2.pyi +153 -0
- udb_client-0.2.0/gen/udb/core/notification/events/v1/notification_events_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/services/v1/core_pb2.py +95 -0
- udb_client-0.2.0/gen/udb/core/notification/services/v1/core_pb2.pyi +273 -0
- udb_client-0.2.0/gen/udb/core/notification/services/v1/core_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/notification/services/v1/notification_service_pb2.py +62 -0
- udb_client-0.2.0/gen/udb/core/notification/services/v1/notification_service_pb2.pyi +7 -0
- udb_client-0.2.0/gen/udb/core/notification/services/v1/notification_service_pb2_grpc.py +540 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/entities_pb2.py +41 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/entities_pb2.pyi +29 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/entities_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/enums_pb2.py +41 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/enums_pb2.pyi +48 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/enums_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/tenant_config_pb2.py +60 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/tenant_config_pb2.pyi +28 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/tenant_config_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/tenant_pb2.py +69 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/tenant_pb2.pyi +39 -0
- udb_client-0.2.0/gen/udb/core/tenant/entity/v1/tenant_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/tenant/events/v1/tenant_events_pb2.py +40 -0
- udb_client-0.2.0/gen/udb/core/tenant/events/v1/tenant_events_pb2.pyi +43 -0
- udb_client-0.2.0/gen/udb/core/tenant/events/v1/tenant_events_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/core/tenant/services/v1/tenant_service_pb2.py +78 -0
- udb_client-0.2.0/gen/udb/core/tenant/services/v1/tenant_service_pb2.pyi +130 -0
- udb_client-0.2.0/gen/udb/core/tenant/services/v1/tenant_service_pb2_grpc.py +298 -0
- udb_client-0.2.0/gen/udb/entity/v1/admin_pb2.py +174 -0
- udb_client-0.2.0/gen/udb/entity/v1/admin_pb2.pyi +972 -0
- udb_client-0.2.0/gen/udb/entity/v1/admin_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/blob_pb2.py +48 -0
- udb_client-0.2.0/gen/udb/entity/v1/blob_pb2.pyi +88 -0
- udb_client-0.2.0/gen/udb/entity/v1/blob_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/cdc_pb2.py +42 -0
- udb_client-0.2.0/gen/udb/entity/v1/cdc_pb2.pyi +47 -0
- udb_client-0.2.0/gen/udb/entity/v1/cdc_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/common_pb2.py +41 -0
- udb_client-0.2.0/gen/udb/entity/v1/common_pb2.pyi +17 -0
- udb_client-0.2.0/gen/udb/entity/v1/common_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/context_pb2.py +41 -0
- udb_client-0.2.0/gen/udb/entity/v1/context_pb2.pyi +58 -0
- udb_client-0.2.0/gen/udb/entity/v1/context_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/mutation_pb2.py +42 -0
- udb_client-0.2.0/gen/udb/entity/v1/mutation_pb2.pyi +39 -0
- udb_client-0.2.0/gen/udb/entity/v1/mutation_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/operation_pb2.py +49 -0
- udb_client-0.2.0/gen/udb/entity/v1/operation_pb2.pyi +69 -0
- udb_client-0.2.0/gen/udb/entity/v1/operation_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/outbox_pb2.py +41 -0
- udb_client-0.2.0/gen/udb/entity/v1/outbox_pb2.pyi +34 -0
- udb_client-0.2.0/gen/udb/entity/v1/outbox_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/relational_pb2.py +57 -0
- udb_client-0.2.0/gen/udb/entity/v1/relational_pb2.pyi +120 -0
- udb_client-0.2.0/gen/udb/entity/v1/relational_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/stores_pb2.py +90 -0
- udb_client-0.2.0/gen/udb/entity/v1/stores_pb2.pyi +331 -0
- udb_client-0.2.0/gen/udb/entity/v1/stores_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/tx_pb2.py +44 -0
- udb_client-0.2.0/gen/udb/entity/v1/tx_pb2.pyi +71 -0
- udb_client-0.2.0/gen/udb/entity/v1/tx_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/types_pb2.py +71 -0
- udb_client-0.2.0/gen/udb/entity/v1/types_pb2.pyi +137 -0
- udb_client-0.2.0/gen/udb/entity/v1/types_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/entity/v1/vector_pb2.py +49 -0
- udb_client-0.2.0/gen/udb/entity/v1/vector_pb2.pyi +85 -0
- udb_client-0.2.0/gen/udb/entity/v1/vector_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/events/v1/udb_events_pb2.py +45 -0
- udb_client-0.2.0/gen/udb/events/v1/udb_events_pb2.pyi +72 -0
- udb_client-0.2.0/gen/udb/events/v1/udb_events_pb2_grpc.py +4 -0
- udb_client-0.2.0/gen/udb/services/v1/data_broker_pb2.py +47 -0
- udb_client-0.2.0/gen/udb/services/v1/data_broker_pb2.pyi +14 -0
- udb_client-0.2.0/gen/udb/services/v1/data_broker_pb2_grpc.py +3290 -0
- udb_client-0.2.0/pyproject.toml +78 -0
- udb_client-0.2.0/setup.cfg +4 -0
- udb_client-0.2.0/tests/test_client.py +36 -0
- udb_client-0.2.0/tests/test_metadata.py +50 -0
- udb_client-0.2.0/tests/test_models.py +38 -0
- udb_client-0.2.0/udb_client/__init__.py +16 -0
- udb_client-0.2.0/udb_client/auth.py +292 -0
- udb_client-0.2.0/udb_client/client.py +749 -0
- udb_client-0.2.0/udb_client/exceptions.py +24 -0
- udb_client-0.2.0/udb_client/metadata.py +138 -0
- udb_client-0.2.0/udb_client/models.py +136 -0
- udb_client-0.2.0/udb_client/py.typed +1 -0
- udb_client-0.2.0/udb_client.egg-info/PKG-INFO +178 -0
- udb_client-0.2.0/udb_client.egg-info/SOURCES.txt +230 -0
- udb_client-0.2.0/udb_client.egg-info/dependency_links.txt +1 -0
- udb_client-0.2.0/udb_client.egg-info/requires.txt +13 -0
- udb_client-0.2.0/udb_client.egg-info/top_level.txt +3 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: udb-client
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Python SDK for the UDB DataBroker gRPC API
|
|
5
|
+
Author: fahara02
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/fahara02/udb
|
|
8
|
+
Project-URL: Repository, https://github.com/fahara02/udb
|
|
9
|
+
Project-URL: Issues, https://github.com/fahara02/udb/issues
|
|
10
|
+
Keywords: udb,grpc,database,sdk,databroker
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
Requires-Dist: grpcio>=1.80
|
|
23
|
+
Requires-Dist: protobuf<7,>=6.31.1
|
|
24
|
+
Provides-Extra: pydantic
|
|
25
|
+
Requires-Dist: pydantic<3,>=2.7; extra == "pydantic"
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: build>=1.5; extra == "dev"
|
|
28
|
+
Requires-Dist: grpcio-tools>=1.80; extra == "dev"
|
|
29
|
+
Requires-Dist: pydantic<3,>=2.7; extra == "dev"
|
|
30
|
+
Requires-Dist: pyrefly>=1; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest>=9; extra == "dev"
|
|
32
|
+
Requires-Dist: twine>=6.2; extra == "dev"
|
|
33
|
+
|
|
34
|
+
# UDB Python SDK
|
|
35
|
+
|
|
36
|
+
`udb-client` is the Python SDK for the UDB DataBroker gRPC API. It ships the generated protobuf bindings plus a small sync/async client that injects UDB metadata, builds common CRUD/vector/blob requests, and exposes the raw generated stub for every broker RPC.
|
|
37
|
+
|
|
38
|
+
## Install
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install udb-client
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
For local development from this repo, prefer `uv`:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
cd sdk/python
|
|
48
|
+
uv sync --extra dev
|
|
49
|
+
uv run python scripts/generate_protos.py
|
|
50
|
+
uv run pytest
|
|
51
|
+
uv run pyrefly check
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The same flow with pip:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
cd sdk/python
|
|
58
|
+
python -m pip install -e ".[dev]"
|
|
59
|
+
python scripts/generate_protos.py
|
|
60
|
+
pytest
|
|
61
|
+
pyrefly check
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Basic CRUD
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
from udb_client import Metadata, UdbClient, decode_records
|
|
68
|
+
|
|
69
|
+
meta = Metadata(
|
|
70
|
+
tenant_id="tenant-1",
|
|
71
|
+
user_id="user-1",
|
|
72
|
+
purpose="billing.demo",
|
|
73
|
+
correlation_id="demo-001",
|
|
74
|
+
scopes=("udb:read", "udb:write"),
|
|
75
|
+
service_identity="python.example",
|
|
76
|
+
project_id="billing",
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
with UdbClient("127.0.0.1:50051", meta) as udb:
|
|
80
|
+
udb.warmup()
|
|
81
|
+
|
|
82
|
+
udb.upsert(
|
|
83
|
+
message_type="acme.billing.v1.Customer",
|
|
84
|
+
record={
|
|
85
|
+
"customer_id": "cus_001",
|
|
86
|
+
"tenant_id": "tenant-1",
|
|
87
|
+
"name": "Ada Lovelace",
|
|
88
|
+
"email": "ada@example.com",
|
|
89
|
+
},
|
|
90
|
+
conflict_fields=("customer_id",),
|
|
91
|
+
return_record=True,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
rows = udb.select(
|
|
95
|
+
message_type="acme.billing.v1.Customer",
|
|
96
|
+
filter={"customer_id": "cus_001"},
|
|
97
|
+
limit=1,
|
|
98
|
+
)
|
|
99
|
+
print(decode_records(rows))
|
|
100
|
+
|
|
101
|
+
udb.delete(
|
|
102
|
+
message_type="acme.billing.v1.Customer",
|
|
103
|
+
filter={"customer_id": "cus_001"},
|
|
104
|
+
)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Async
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
from udb_client import Metadata, UdbAsyncClient
|
|
111
|
+
|
|
112
|
+
async with UdbAsyncClient("127.0.0.1:50051", Metadata(
|
|
113
|
+
tenant_id="tenant-1",
|
|
114
|
+
purpose="billing.worker",
|
|
115
|
+
correlation_id="job-42",
|
|
116
|
+
scopes=("udb:read", "udb:write"),
|
|
117
|
+
service_identity="python.worker",
|
|
118
|
+
project_id="billing",
|
|
119
|
+
)) as udb:
|
|
120
|
+
await udb.upsert(
|
|
121
|
+
message_type="acme.billing.v1.Customer",
|
|
122
|
+
record={"customer_id": "cus_002", "tenant_id": "tenant-1"},
|
|
123
|
+
conflict_fields=("customer_id",),
|
|
124
|
+
)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Full API Access
|
|
128
|
+
|
|
129
|
+
The generated protobuf modules are included:
|
|
130
|
+
|
|
131
|
+
```python
|
|
132
|
+
from udb.entity.v1 import types_pb2
|
|
133
|
+
from udb.services.v1 import data_broker_pb2_grpc
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
For broker APIs without a convenience method, use `client.call("RpcName", request)` for unary RPCs with metadata/error handling, or `client.stub` for raw streaming and advanced calls.
|
|
137
|
+
|
|
138
|
+
## Optional Pydantic Models
|
|
139
|
+
|
|
140
|
+
Install the pydantic extra when you want request validation and editor-friendly models:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
pip install "udb-client[pydantic]"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
from udb_client import UdbClient
|
|
148
|
+
from udb_client.models import MetadataModel, UpsertCommand
|
|
149
|
+
|
|
150
|
+
meta = MetadataModel(
|
|
151
|
+
tenant_id="tenant-1",
|
|
152
|
+
purpose="billing.demo",
|
|
153
|
+
correlation_id="demo-001",
|
|
154
|
+
scopes=("udb:write",),
|
|
155
|
+
project_id="billing",
|
|
156
|
+
).to_metadata()
|
|
157
|
+
|
|
158
|
+
command = UpsertCommand(
|
|
159
|
+
message_type="acme.billing.v1.Customer",
|
|
160
|
+
record={"customer_id": "cus_001", "tenant_id": "tenant-1"},
|
|
161
|
+
conflict_fields=("customer_id",),
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
with UdbClient("127.0.0.1:50051", meta) as udb:
|
|
165
|
+
udb.upsert(command.to_proto())
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Regenerate Protobuf Bindings
|
|
169
|
+
|
|
170
|
+
Run this after changing files under `proto/udb`:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
cd sdk/python
|
|
174
|
+
python -m pip install -e ".[dev]"
|
|
175
|
+
python scripts/generate_protos.py
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Generated `udb/.../*_pb2.py`, `*_pb2_grpc.py`, and `*.pyi` files are committed so pip users do not need `grpcio-tools`.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# UDB Python SDK
|
|
2
|
+
|
|
3
|
+
`udb-client` is the Python SDK for the UDB DataBroker gRPC API. It ships the generated protobuf bindings plus a small sync/async client that injects UDB metadata, builds common CRUD/vector/blob requests, and exposes the raw generated stub for every broker RPC.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install udb-client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
For local development from this repo, prefer `uv`:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cd sdk/python
|
|
15
|
+
uv sync --extra dev
|
|
16
|
+
uv run python scripts/generate_protos.py
|
|
17
|
+
uv run pytest
|
|
18
|
+
uv run pyrefly check
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The same flow with pip:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
cd sdk/python
|
|
25
|
+
python -m pip install -e ".[dev]"
|
|
26
|
+
python scripts/generate_protos.py
|
|
27
|
+
pytest
|
|
28
|
+
pyrefly check
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Basic CRUD
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from udb_client import Metadata, UdbClient, decode_records
|
|
35
|
+
|
|
36
|
+
meta = Metadata(
|
|
37
|
+
tenant_id="tenant-1",
|
|
38
|
+
user_id="user-1",
|
|
39
|
+
purpose="billing.demo",
|
|
40
|
+
correlation_id="demo-001",
|
|
41
|
+
scopes=("udb:read", "udb:write"),
|
|
42
|
+
service_identity="python.example",
|
|
43
|
+
project_id="billing",
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
with UdbClient("127.0.0.1:50051", meta) as udb:
|
|
47
|
+
udb.warmup()
|
|
48
|
+
|
|
49
|
+
udb.upsert(
|
|
50
|
+
message_type="acme.billing.v1.Customer",
|
|
51
|
+
record={
|
|
52
|
+
"customer_id": "cus_001",
|
|
53
|
+
"tenant_id": "tenant-1",
|
|
54
|
+
"name": "Ada Lovelace",
|
|
55
|
+
"email": "ada@example.com",
|
|
56
|
+
},
|
|
57
|
+
conflict_fields=("customer_id",),
|
|
58
|
+
return_record=True,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
rows = udb.select(
|
|
62
|
+
message_type="acme.billing.v1.Customer",
|
|
63
|
+
filter={"customer_id": "cus_001"},
|
|
64
|
+
limit=1,
|
|
65
|
+
)
|
|
66
|
+
print(decode_records(rows))
|
|
67
|
+
|
|
68
|
+
udb.delete(
|
|
69
|
+
message_type="acme.billing.v1.Customer",
|
|
70
|
+
filter={"customer_id": "cus_001"},
|
|
71
|
+
)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Async
|
|
75
|
+
|
|
76
|
+
```python
|
|
77
|
+
from udb_client import Metadata, UdbAsyncClient
|
|
78
|
+
|
|
79
|
+
async with UdbAsyncClient("127.0.0.1:50051", Metadata(
|
|
80
|
+
tenant_id="tenant-1",
|
|
81
|
+
purpose="billing.worker",
|
|
82
|
+
correlation_id="job-42",
|
|
83
|
+
scopes=("udb:read", "udb:write"),
|
|
84
|
+
service_identity="python.worker",
|
|
85
|
+
project_id="billing",
|
|
86
|
+
)) as udb:
|
|
87
|
+
await udb.upsert(
|
|
88
|
+
message_type="acme.billing.v1.Customer",
|
|
89
|
+
record={"customer_id": "cus_002", "tenant_id": "tenant-1"},
|
|
90
|
+
conflict_fields=("customer_id",),
|
|
91
|
+
)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Full API Access
|
|
95
|
+
|
|
96
|
+
The generated protobuf modules are included:
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
from udb.entity.v1 import types_pb2
|
|
100
|
+
from udb.services.v1 import data_broker_pb2_grpc
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
For broker APIs without a convenience method, use `client.call("RpcName", request)` for unary RPCs with metadata/error handling, or `client.stub` for raw streaming and advanced calls.
|
|
104
|
+
|
|
105
|
+
## Optional Pydantic Models
|
|
106
|
+
|
|
107
|
+
Install the pydantic extra when you want request validation and editor-friendly models:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
pip install "udb-client[pydantic]"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
from udb_client import UdbClient
|
|
115
|
+
from udb_client.models import MetadataModel, UpsertCommand
|
|
116
|
+
|
|
117
|
+
meta = MetadataModel(
|
|
118
|
+
tenant_id="tenant-1",
|
|
119
|
+
purpose="billing.demo",
|
|
120
|
+
correlation_id="demo-001",
|
|
121
|
+
scopes=("udb:write",),
|
|
122
|
+
project_id="billing",
|
|
123
|
+
).to_metadata()
|
|
124
|
+
|
|
125
|
+
command = UpsertCommand(
|
|
126
|
+
message_type="acme.billing.v1.Customer",
|
|
127
|
+
record={"customer_id": "cus_001", "tenant_id": "tenant-1"},
|
|
128
|
+
conflict_fields=("customer_id",),
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
with UdbClient("127.0.0.1:50051", meta) as udb:
|
|
132
|
+
udb.upsert(command.to_proto())
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Regenerate Protobuf Bindings
|
|
136
|
+
|
|
137
|
+
Run this after changing files under `proto/udb`:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
cd sdk/python
|
|
141
|
+
python -m pip install -e ".[dev]"
|
|
142
|
+
python scripts/generate_protos.py
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Generated `udb/.../*_pb2.py`, `*_pb2_grpc.py`, and `*.pyi` files are committed so pip users do not need `grpcio-tools`.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/api/annotations.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'google/api/annotations.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.api import http_pb2 as google_dot_api_dot_http__pb2
|
|
26
|
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:K\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleR\x04httpBg\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01Z-github.com/fahara02/udb/sdk/go/gen/google/api\xa2\x02\x03GAX\xea\x02\x0bGoogle::Apib\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.annotations_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\020AnnotationsProtoP\001Z-github.com/fahara02/udb/sdk/go/gen/google/api\242\002\003GAX\352\002\013Google::Api'
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from google.api import http_pb2 as _http_pb2
|
|
2
|
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from typing import ClassVar as _ClassVar
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
HTTP_FIELD_NUMBER: _ClassVar[int]
|
|
8
|
+
http: _descriptor.FieldDescriptor
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/api/field_behavior.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'google/api/field_behavior.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1a\x46IELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:d\n\x0e\x66ield_behavior\x12\x1d.google.protobuf.FieldOptions\x18\x9c\x08 \x03(\x0e\x32\x19.google.api.FieldBehaviorB\x02\x10\x00R\rfieldBehaviorBi\n\x0e\x63om.google.apiB\x12\x46ieldBehaviorProtoP\x01Z-github.com/fahara02/udb/sdk/go/gen/google/api\xa2\x02\x03GAX\xea\x02\x0bGoogle::Apib\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.field_behavior_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\022FieldBehaviorProtoP\001Z-github.com/fahara02/udb/sdk/go/gen/google/api\242\002\003GAX\352\002\013Google::Api'
|
|
36
|
+
_globals['field_behavior']._loaded_options = None
|
|
37
|
+
_globals['field_behavior']._serialized_options = b'\020\000'
|
|
38
|
+
_globals['_FIELDBEHAVIOR']._serialized_start=82
|
|
39
|
+
_globals['_FIELDBEHAVIOR']._serialized_end=264
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
|
2
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from typing import ClassVar as _ClassVar
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class FieldBehavior(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
9
|
+
__slots__ = ()
|
|
10
|
+
FIELD_BEHAVIOR_UNSPECIFIED: _ClassVar[FieldBehavior]
|
|
11
|
+
OPTIONAL: _ClassVar[FieldBehavior]
|
|
12
|
+
REQUIRED: _ClassVar[FieldBehavior]
|
|
13
|
+
OUTPUT_ONLY: _ClassVar[FieldBehavior]
|
|
14
|
+
INPUT_ONLY: _ClassVar[FieldBehavior]
|
|
15
|
+
IMMUTABLE: _ClassVar[FieldBehavior]
|
|
16
|
+
UNORDERED_LIST: _ClassVar[FieldBehavior]
|
|
17
|
+
NON_EMPTY_DEFAULT: _ClassVar[FieldBehavior]
|
|
18
|
+
IDENTIFIER: _ClassVar[FieldBehavior]
|
|
19
|
+
FIELD_BEHAVIOR_UNSPECIFIED: FieldBehavior
|
|
20
|
+
OPTIONAL: FieldBehavior
|
|
21
|
+
REQUIRED: FieldBehavior
|
|
22
|
+
OUTPUT_ONLY: FieldBehavior
|
|
23
|
+
INPUT_ONLY: FieldBehavior
|
|
24
|
+
IMMUTABLE: FieldBehavior
|
|
25
|
+
UNORDERED_LIST: FieldBehavior
|
|
26
|
+
NON_EMPTY_DEFAULT: FieldBehavior
|
|
27
|
+
IDENTIFIER: FieldBehavior
|
|
28
|
+
FIELD_BEHAVIOR_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
field_behavior: _descriptor.FieldDescriptor
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/api/http.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'google/api/http.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15google/api/http.proto\x12\ngoogle.api\"y\n\x04Http\x12*\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRuleR\x05rules\x12\x45\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08R\x1c\x66ullyDecodeReservedExpansion\"\xda\x02\n\x08HttpRule\x12\x1a\n\x08selector\x18\x01 \x01(\tR\x08selector\x12\x12\n\x03get\x18\x02 \x01(\tH\x00R\x03get\x12\x12\n\x03put\x18\x03 \x01(\tH\x00R\x03put\x12\x14\n\x04post\x18\x04 \x01(\tH\x00R\x04post\x12\x18\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00R\x06\x64\x65lete\x12\x16\n\x05patch\x18\x06 \x01(\tH\x00R\x05patch\x12\x37\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00R\x06\x63ustom\x12\x12\n\x04\x62ody\x18\x07 \x01(\tR\x04\x62ody\x12#\n\rresponse_body\x18\x0c \x01(\tR\x0cresponseBody\x12\x45\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleR\x12\x61\x64\x64itionalBindingsB\t\n\x07pattern\";\n\x11\x43ustomHttpPattern\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12\x12\n\x04path\x18\x02 \x01(\tR\x04pathB`\n\x0e\x63om.google.apiB\tHttpProtoP\x01Z-github.com/fahara02/udb/sdk/go/gen/google/api\xa2\x02\x03GAX\xea\x02\x0bGoogle::Apib\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.http_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\tHttpProtoP\001Z-github.com/fahara02/udb/sdk/go/gen/google/api\242\002\003GAX\352\002\013Google::Api'
|
|
35
|
+
_globals['_HTTP']._serialized_start=37
|
|
36
|
+
_globals['_HTTP']._serialized_end=158
|
|
37
|
+
_globals['_HTTPRULE']._serialized_start=161
|
|
38
|
+
_globals['_HTTPRULE']._serialized_end=507
|
|
39
|
+
_globals['_CUSTOMHTTPPATTERN']._serialized_start=509
|
|
40
|
+
_globals['_CUSTOMHTTPPATTERN']._serialized_end=568
|
|
41
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class Http(_message.Message):
|
|
10
|
+
__slots__ = ("rules", "fully_decode_reserved_expansion")
|
|
11
|
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
rules: _containers.RepeatedCompositeFieldContainer[HttpRule]
|
|
14
|
+
fully_decode_reserved_expansion: bool
|
|
15
|
+
def __init__(self, rules: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ..., fully_decode_reserved_expansion: bool = ...) -> None: ...
|
|
16
|
+
|
|
17
|
+
class HttpRule(_message.Message):
|
|
18
|
+
__slots__ = ("selector", "get", "put", "post", "delete", "patch", "custom", "body", "response_body", "additional_bindings")
|
|
19
|
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
GET_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
PUT_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
POST_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
DELETE_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
PATCH_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
CUSTOM_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
BODY_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
ADDITIONAL_BINDINGS_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
selector: str
|
|
30
|
+
get: str
|
|
31
|
+
put: str
|
|
32
|
+
post: str
|
|
33
|
+
delete: str
|
|
34
|
+
patch: str
|
|
35
|
+
custom: CustomHttpPattern
|
|
36
|
+
body: str
|
|
37
|
+
response_body: str
|
|
38
|
+
additional_bindings: _containers.RepeatedCompositeFieldContainer[HttpRule]
|
|
39
|
+
def __init__(self, selector: _Optional[str] = ..., get: _Optional[str] = ..., put: _Optional[str] = ..., post: _Optional[str] = ..., delete: _Optional[str] = ..., patch: _Optional[str] = ..., custom: _Optional[_Union[CustomHttpPattern, _Mapping]] = ..., body: _Optional[str] = ..., response_body: _Optional[str] = ..., additional_bindings: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class CustomHttpPattern(_message.Message):
|
|
42
|
+
__slots__ = ("kind", "path")
|
|
43
|
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
PATH_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
kind: str
|
|
46
|
+
path: str
|
|
47
|
+
def __init__(self, kind: _Optional[str] = ..., path: _Optional[str] = ...) -> None: ...
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: udb/core/analytics/entity/v1/entities.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'udb/core/analytics/entity/v1/entities.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from udb.core.analytics.entity.v1 import executor_performance_summary_pb2 as udb_dot_core_dot_analytics_dot_entity_dot_v1_dot_executor__performance__summary__pb2
|
|
26
|
+
from udb.core.analytics.entity.v1 import pipeline_metric_snapshot_pb2 as udb_dot_core_dot_analytics_dot_entity_dot_v1_dot_pipeline__metric__snapshot__pb2
|
|
27
|
+
from udb.core.analytics.entity.v1 import reconciliation_analytics_summary_pb2 as udb_dot_core_dot_analytics_dot_entity_dot_v1_dot_reconciliation__analytics__summary__pb2
|
|
28
|
+
|
|
29
|
+
from udb.core.analytics.entity.v1.executor_performance_summary_pb2 import *
|
|
30
|
+
from udb.core.analytics.entity.v1.pipeline_metric_snapshot_pb2 import *
|
|
31
|
+
from udb.core.analytics.entity.v1.reconciliation_analytics_summary_pb2 import *
|
|
32
|
+
|
|
33
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+udb/core/analytics/entity/v1/entities.proto\x12\x1cudb.core.analytics.entity.v1\x1a?udb/core/analytics/entity/v1/executor_performance_summary.proto\x1a;udb/core/analytics/entity/v1/pipeline_metric_snapshot.proto\x1a\x43udb/core/analytics/entity/v1/reconciliation_analytics_summary.protoB\x90\x02\n com.udb.core.analytics.entity.v1B\rEntitiesProtoP\x01ZHgithub.com/fahara02/udb/sdk/go/gen/udb/core/analytics/entity/v1;entityv1\xa2\x02\x04UCAE\xaa\x02\x1cudb.core.Analytics.Entity.V1\xca\x02\x1cUdb\\Core\\Analytics\\Entity\\V1\xe2\x02(Udb\\GPBMetadata\\Core\\Analytics\\Entity\\V1\xea\x02 Udb::Core::Analytics::Entity::V1P\x00P\x01P\x02\x62\x06proto3')
|
|
34
|
+
|
|
35
|
+
_globals = globals()
|
|
36
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
37
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'udb.core.analytics.entity.v1.entities_pb2', _globals)
|
|
38
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
39
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
40
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n com.udb.core.analytics.entity.v1B\rEntitiesProtoP\001ZHgithub.com/fahara02/udb/sdk/go/gen/udb/core/analytics/entity/v1;entityv1\242\002\004UCAE\252\002\034udb.core.Analytics.Entity.V1\312\002\034Udb\\Core\\Analytics\\Entity\\V1\342\002(Udb\\GPBMetadata\\Core\\Analytics\\Entity\\V1\352\002 Udb::Core::Analytics::Entity::V1'
|
|
41
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from udb.core.analytics.entity.v1 import executor_performance_summary_pb2 as _executor_performance_summary_pb2
|
|
2
|
+
from udb.core.analytics.entity.v1 import pipeline_metric_snapshot_pb2 as _pipeline_metric_snapshot_pb2
|
|
3
|
+
from udb.core.analytics.entity.v1 import reconciliation_analytics_summary_pb2 as _reconciliation_analytics_summary_pb2
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from typing import ClassVar as _ClassVar
|
|
6
|
+
from udb.core.analytics.entity.v1.executor_performance_summary_pb2 import ExecutorPerformanceSummary as ExecutorPerformanceSummary
|
|
7
|
+
from udb.core.analytics.entity.v1.pipeline_metric_snapshot_pb2 import PipelineMetricSnapshot as PipelineMetricSnapshot
|
|
8
|
+
from udb.core.analytics.entity.v1.reconciliation_analytics_summary_pb2 import ReconciliationAnalyticsSummary as ReconciliationAnalyticsSummary
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|