acceldata-sdk-python 26.7.0__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.
- acceldata/__init__.py +7 -0
- acceldata/client/__init__.py +0 -0
- acceldata/client/adoc_client.py +666 -0
- acceldata/client/http_client.py +346 -0
- acceldata/client/transient_retry.py +142 -0
- acceldata/constants/__init__.py +1 -0
- acceldata/constants/constants.py +13 -0
- acceldata/exceptions/__init__.py +52 -0
- acceldata/exceptions/api_errors.py +85 -0
- acceldata/exceptions/exceptions.py +174 -0
- acceldata/exceptions/sdk_exceptions.py +98 -0
- acceldata/mappers/__init__.py +21 -0
- acceldata/mappers/catalog_executions.py +107 -0
- acceldata/models/__init__.py +0 -0
- acceldata/models/api/catalog/above_configs.py +99 -0
- acceldata/models/api/catalog/above_configs_success.py +138 -0
- acceldata/models/api/catalog/absolute_configs.py +197 -0
- acceldata/models/api/catalog/absolute_configs_fallback.py +101 -0
- acceldata/models/api/catalog/absolute_threshold_config.py +105 -0
- acceldata/models/api/catalog/analysis_job_context.py +102 -0
- acceldata/models/api/catalog/analytics_pipeline.py +385 -0
- acceldata/models/api/catalog/analytics_pipeline_endpoint.py +136 -0
- acceldata/models/api/catalog/anomaly_config.py +95 -0
- acceldata/models/api/catalog/anomaly_details.py +119 -0
- acceldata/models/api/catalog/anomaly_threshold_config.py +105 -0
- acceldata/models/api/catalog/artifact.py +92 -0
- acceldata/models/api/catalog/assembly.py +171 -0
- acceldata/models/api/catalog/asset.py +162 -0
- acceldata/models/api/catalog/asset_catalog_listing.py +159 -0
- acceldata/models/api/catalog/asset_catalog_listing_response.py +102 -0
- acceldata/models/api/catalog/asset_label_request.py +96 -0
- acceldata/models/api/catalog/asset_progress.py +96 -0
- acceldata/models/api/catalog/asset_progress_details.py +117 -0
- acceldata/models/api/catalog/asset_tag.py +124 -0
- acceldata/models/api/catalog/asset_tag_info.py +140 -0
- acceldata/models/api/catalog/asset_tag_request.py +95 -0
- acceldata/models/api/catalog/asset_tag_response.py +96 -0
- acceldata/models/api/catalog/asset_tags_response.py +102 -0
- acceldata/models/api/catalog/asset_type.py +96 -0
- acceldata/models/api/catalog/auto_anomaly_feature_analysis.py +160 -0
- acceldata/models/api/catalog/auto_anomaly_item_execution.py +133 -0
- acceldata/models/api/catalog/auto_anomaly_meta_data.py +162 -0
- acceldata/models/api/catalog/auto_anomaly_rule_execution.py +102 -0
- acceldata/models/api/catalog/auto_anomaly_summary.py +124 -0
- acceldata/models/api/catalog/backing_asset.py +126 -0
- acceldata/models/api/catalog/below_configs.py +99 -0
- acceldata/models/api/catalog/big_decimal.py +100 -0
- acceldata/models/api/catalog/big_integer.py +98 -0
- acceldata/models/api/catalog/bounds_date_time_marker_config.py +110 -0
- acceldata/models/api/catalog/bounds_file_event_marker_config.py +108 -0
- acceldata/models/api/catalog/bounds_id_marker_config.py +96 -0
- acceldata/models/api/catalog/catalog_asset_meta_data.py +128 -0
- acceldata/models/api/catalog/changes_by_config.py +105 -0
- acceldata/models/api/catalog/column_mapping.py +139 -0
- acceldata/models/api/catalog/column_metadata.py +90 -0
- acceldata/models/api/catalog/column_metric_with_anomaly_details.py +119 -0
- acceldata/models/api/catalog/column_variable.py +111 -0
- acceldata/models/api/catalog/composite_policy_execution.py +102 -0
- acceldata/models/api/catalog/composite_policy_item_execution.py +104 -0
- acceldata/models/api/catalog/connection.py +118 -0
- acceldata/models/api/catalog/connection_test_result.py +106 -0
- acceldata/models/api/catalog/connection_type.py +90 -0
- acceldata/models/api/catalog/connection_types_response.py +96 -0
- acceldata/models/api/catalog/crawler.py +88 -0
- acceldata/models/api/catalog/crawler_action_response.py +90 -0
- acceldata/models/api/catalog/crawler_execution.py +147 -0
- acceldata/models/api/catalog/crawler_execution_response.py +102 -0
- acceldata/models/api/catalog/crawler_status_response.py +90 -0
- acceldata/models/api/catalog/create_profile.py +194 -0
- acceldata/models/api/catalog/custom_sql_config.py +121 -0
- acceldata/models/api/catalog/data_bricks_spark_resource_config.py +104 -0
- acceldata/models/api/catalog/data_cadence_rule.py +236 -0
- acceldata/models/api/catalog/data_cadence_rule_details.py +125 -0
- acceldata/models/api/catalog/data_cadence_rule_execution.py +102 -0
- acceldata/models/api/catalog/data_cadence_rule_item.py +104 -0
- acceldata/models/api/catalog/data_cadence_rule_item_execution.py +158 -0
- acceldata/models/api/catalog/data_cadence_rule_response.py +98 -0
- acceldata/models/api/catalog/data_drift_execution.py +102 -0
- acceldata/models/api/catalog/data_drift_item_execution.py +121 -0
- acceldata/models/api/catalog/data_quality_engine.py +90 -0
- acceldata/models/api/catalog/data_quality_execution.py +106 -0
- acceldata/models/api/catalog/data_quality_rule.py +323 -0
- acceldata/models/api/catalog/data_quality_rule_details.py +186 -0
- acceldata/models/api/catalog/data_quality_rule_response.py +120 -0
- acceldata/models/api/catalog/data_quality_rules_response.py +102 -0
- acceldata/models/api/catalog/databricks_compute_config.py +113 -0
- acceldata/models/api/catalog/dataplane_engine.py +105 -0
- acceldata/models/api/catalog/dataplane_health_metrics.py +101 -0
- acceldata/models/api/catalog/dataplane_job.py +216 -0
- acceldata/models/api/catalog/dataplane_job_status.py +113 -0
- acceldata/models/api/catalog/dataplane_request.py +96 -0
- acceldata/models/api/catalog/dataproc_compute_config.py +106 -0
- acceldata/models/api/catalog/dataproc_spark_resource_config.py +104 -0
- acceldata/models/api/catalog/date_based_partition_marker_config.py +116 -0
- acceldata/models/api/catalog/date_partitioning_marker_config.py +113 -0
- acceldata/models/api/catalog/date_time_marker_config.py +109 -0
- acceldata/models/api/catalog/day_month_year_based_partition_marker_config.py +124 -0
- acceldata/models/api/catalog/decreased_by_config.py +105 -0
- acceldata/models/api/catalog/delete_artifact_response.py +88 -0
- acceldata/models/api/catalog/dq_rule_execution.py +248 -0
- acceldata/models/api/catalog/drift.py +121 -0
- acceldata/models/api/catalog/enable_rule_request.py +88 -0
- acceldata/models/api/catalog/engine.py +90 -0
- acceldata/models/api/catalog/execution_cancellation_response.py +92 -0
- acceldata/models/api/catalog/execution_response.py +144 -0
- acceldata/models/api/catalog/execution_result.py +126 -0
- acceldata/models/api/catalog/executions_response.py +102 -0
- acceldata/models/api/catalog/failed_asset_detail.py +90 -0
- acceldata/models/api/catalog/failed_summary.py +98 -0
- acceldata/models/api/catalog/file.py +94 -0
- acceldata/models/api/catalog/file_marker_config.py +99 -0
- acceldata/models/api/catalog/generic_config_fallback.py +101 -0
- acceldata/models/api/catalog/generic_execution.py +221 -0
- acceldata/models/api/catalog/generic_rule_execution.py +137 -0
- acceldata/models/api/catalog/global_storage_config_dto.py +172 -0
- acceldata/models/api/catalog/hosted_dp_deployment_response.py +98 -0
- acceldata/models/api/catalog/id_marker_config.py +94 -0
- acceldata/models/api/catalog/increased_by_config.py +105 -0
- acceldata/models/api/catalog/item.py +160 -0
- acceldata/models/api/catalog/item_execution.py +192 -0
- acceldata/models/api/catalog/item_segment.py +131 -0
- acceldata/models/api/catalog/job_schedule.py +118 -0
- acceldata/models/api/catalog/job_spec.py +96 -0
- acceldata/models/api/catalog/kubernetes_metrics.py +91 -0
- acceldata/models/api/catalog/label.py +97 -0
- acceldata/models/api/catalog/livy_compute_config.py +103 -0
- acceldata/models/api/catalog/livy_spark_resource_config.py +106 -0
- acceldata/models/api/catalog/look_back_config.py +90 -0
- acceldata/models/api/catalog/manual_tag_request.py +92 -0
- acceldata/models/api/catalog/mapping.py +97 -0
- acceldata/models/api/catalog/marker.py +88 -0
- acceldata/models/api/catalog/marker_config.py +349 -0
- acceldata/models/api/catalog/marker_config_fallback.py +101 -0
- acceldata/models/api/catalog/meta.py +92 -0
- acceldata/models/api/catalog/meta_data.py +92 -0
- acceldata/models/api/catalog/meta_data_item.py +94 -0
- acceldata/models/api/catalog/mini_profile_request.py +112 -0
- acceldata/models/api/catalog/notification_payload.py +114 -0
- acceldata/models/api/catalog/offset_based_marker_config.py +97 -0
- acceldata/models/api/catalog/operational_config.py +92 -0
- acceldata/models/api/catalog/pattern_configuration.py +90 -0
- acceldata/models/api/catalog/pipe_line_request.py +92 -0
- acceldata/models/api/catalog/pipeline_compute_config.py +110 -0
- acceldata/models/api/catalog/policy_execution_marker_config.py +94 -0
- acceldata/models/api/catalog/policy_execution_request.py +229 -0
- acceldata/models/api/catalog/policy_group.py +114 -0
- acceldata/models/api/catalog/policy_transform_udf.py +113 -0
- acceldata/models/api/catalog/process_metrics.py +91 -0
- acceldata/models/api/catalog/profile_anomaly_details_response.py +109 -0
- acceldata/models/api/catalog/profile_anomaly_item_execution.py +127 -0
- acceldata/models/api/catalog/profile_anomaly_rule_execution.py +102 -0
- acceldata/models/api/catalog/profile_anomaly_rule_item.py +109 -0
- acceldata/models/api/catalog/profile_cancellation_response.py +92 -0
- acceldata/models/api/catalog/profile_request.py +211 -0
- acceldata/models/api/catalog/profile_request_response.py +92 -0
- acceldata/models/api/catalog/property_template.py +178 -0
- acceldata/models/api/catalog/property_templates.py +123 -0
- acceldata/models/api/catalog/pub_sub_lookback_marker_config.py +96 -0
- acceldata/models/api/catalog/pub_sub_timestamp_marker_config.py +108 -0
- acceldata/models/api/catalog/quality_rule.py +381 -0
- acceldata/models/api/catalog/quality_rule_execution_metrics.py +114 -0
- acceldata/models/api/catalog/quality_rule_with_latest_execution.py +115 -0
- acceldata/models/api/catalog/range_configs.py +109 -0
- acceldata/models/api/catalog/reconciliation_item.py +102 -0
- acceldata/models/api/catalog/reconciliation_item_execution.py +157 -0
- acceldata/models/api/catalog/reconciliation_rule.py +339 -0
- acceldata/models/api/catalog/reconciliation_rule_details.py +225 -0
- acceldata/models/api/catalog/reconciliation_rule_execution.py +102 -0
- acceldata/models/api/catalog/reconciliation_rule_response.py +98 -0
- acceldata/models/api/catalog/reconciliation_rules_response.py +102 -0
- acceldata/models/api/catalog/relative_config.py +197 -0
- acceldata/models/api/catalog/relative_config_fallback.py +101 -0
- acceldata/models/api/catalog/relative_threshold_config.py +111 -0
- acceldata/models/api/catalog/root_cause_analysis.py +108 -0
- acceldata/models/api/catalog/rule_execution.py +327 -0
- acceldata/models/api/catalog/rule_execution_result.py +90 -0
- acceldata/models/api/catalog/rule_item_result.py +125 -0
- acceldata/models/api/catalog/rule_meta_data.py +94 -0
- acceldata/models/api/catalog/rule_spark_sql_dynamic_filter_variable_mapping.py +100 -0
- acceldata/models/api/catalog/rule_tag.py +101 -0
- acceldata/models/api/catalog/rule_threshold_configuration.py +236 -0
- acceldata/models/api/catalog/rule_threshold_configuration_fallback.py +101 -0
- acceldata/models/api/catalog/rules_with_latest_execution_response.py +102 -0
- acceldata/models/api/catalog/sample_data_api_response.py +122 -0
- acceldata/models/api/catalog/schema_drift_item_execution.py +131 -0
- acceldata/models/api/catalog/schema_drift_rule_execution.py +102 -0
- acceldata/models/api/catalog/secret_manager_configuration.py +90 -0
- acceldata/models/api/catalog/secret_manager_configuration_with_option.py +98 -0
- acceldata/models/api/catalog/security_config.py +90 -0
- acceldata/models/api/catalog/segment_metric_json.py +142 -0
- acceldata/models/api/catalog/segments_analysis.py +145 -0
- acceldata/models/api/catalog/short_segment.py +97 -0
- acceldata/models/api/catalog/simple_quality_rule_response.py +92 -0
- acceldata/models/api/catalog/snapshot_data.py +117 -0
- acceldata/models/api/catalog/source_model.py +90 -0
- acceldata/models/api/catalog/source_type.py +100 -0
- acceldata/models/api/catalog/source_types_response.py +102 -0
- acceldata/models/api/catalog/spark_job_status.py +113 -0
- acceldata/models/api/catalog/spark_resource_config.py +114 -0
- acceldata/models/api/catalog/standard_response_assembly.py +92 -0
- acceldata/models/api/catalog/standard_response_crawler_action_response.py +92 -0
- acceldata/models/api/catalog/standard_response_crawler_status_response.py +92 -0
- acceldata/models/api/catalog/standard_response_delete_artifact_response.py +92 -0
- acceldata/models/api/catalog/standard_response_list.py +96 -0
- acceldata/models/api/catalog/standard_response_map.py +88 -0
- acceldata/models/api/catalog/standard_response_meta_data.py +92 -0
- acceldata/models/api/catalog/standard_response_mini_profile_request.py +92 -0
- acceldata/models/api/catalog/standard_response_profile_request.py +92 -0
- acceldata/models/api/catalog/start_profiling_request.py +92 -0
- acceldata/models/api/catalog/tag_domain.py +116 -0
- acceldata/models/api/catalog/threshold_breach_details.py +101 -0
- acceldata/models/api/catalog/time_based_config.py +92 -0
- acceldata/models/api/catalog/time_based_threshold_config.py +105 -0
- acceldata/models/api/catalog/timestamp_based_marker_config.py +115 -0
- acceldata/models/api/catalog/udf_variable.py +97 -0
- acceldata/models/api/catalog/yunikorn_compute_config.py +133 -0
- acceldata/models/api/catalog/yunikorn_spark_resource_config.py +154 -0
- acceldata/models/api/pipeline/big_decimal.py +100 -0
- acceldata/models/api/pipeline/big_integer.py +98 -0
- acceldata/models/api/pipeline/child_span_response.py +96 -0
- acceldata/models/api/pipeline/create_span_event.py +109 -0
- acceldata/models/api/pipeline/edge.py +108 -0
- acceldata/models/api/pipeline/event_alert_object.py +95 -0
- acceldata/models/api/pipeline/generic_config_fallback.py +101 -0
- acceldata/models/api/pipeline/identifier.py +146 -0
- acceldata/models/api/pipeline/job_request.py +130 -0
- acceldata/models/api/pipeline/meta.py +107 -0
- acceldata/models/api/pipeline/meta_data.py +92 -0
- acceldata/models/api/pipeline/metric.py +103 -0
- acceldata/models/api/pipeline/node.py +201 -0
- acceldata/models/api/pipeline/node_response.py +92 -0
- acceldata/models/api/pipeline/notification_payload.py +114 -0
- acceldata/models/api/pipeline/pipeline.py +152 -0
- acceldata/models/api/pipeline/pipeline_baseline_metric.py +92 -0
- acceldata/models/api/pipeline/pipeline_details.py +118 -0
- acceldata/models/api/pipeline/pipeline_details_response.py +102 -0
- acceldata/models/api/pipeline/pipeline_input_request.py +92 -0
- acceldata/models/api/pipeline/pipeline_listing_info.py +118 -0
- acceldata/models/api/pipeline/pipeline_response.py +92 -0
- acceldata/models/api/pipeline/pipeline_run.py +136 -0
- acceldata/models/api/pipeline/pipeline_run_request.py +92 -0
- acceldata/models/api/pipeline/pipeline_runs_response.py +102 -0
- acceldata/models/api/pipeline/pipeline_summary.py +98 -0
- acceldata/models/api/pipeline/pipelines_listing_response.py +102 -0
- acceldata/models/api/pipeline/policy_summary.py +102 -0
- acceldata/models/api/pipeline/span.py +115 -0
- acceldata/models/api/pipeline/span_event.py +114 -0
- acceldata/models/api/pipeline/span_event_request.py +92 -0
- acceldata/models/api/pipeline/span_event_response.py +92 -0
- acceldata/models/api/pipeline/span_request.py +94 -0
- acceldata/models/api/pipeline/spans_response.py +96 -0
- acceldata/models/api/pipeline/tag.py +97 -0
- acceldata/models/sdk/__init__.py +0 -0
- acceldata/models/sdk/catalog/__init__.py +105 -0
- acceldata/models/sdk/catalog/asset_resource.py +112 -0
- acceldata/models/sdk/catalog/asset_source_type.py +59 -0
- acceldata/models/sdk/catalog/custom_asset_metadata.py +11 -0
- acceldata/models/sdk/catalog/datasource_resource.py +88 -0
- acceldata/models/sdk/catalog/executor.py +524 -0
- acceldata/models/sdk/catalog/policy_execution_request.py +114 -0
- acceldata/models/sdk/catalog/policy_execution_type.py +16 -0
- acceldata/models/sdk/catalog/policy_filter.py +94 -0
- acceldata/models/sdk/catalog/policy_rule_resources.py +388 -0
- acceldata/models/sdk/catalog/profile_request_resource.py +77 -0
- acceldata/models/sdk/catalog/profiling.py +82 -0
- acceldata/models/sdk/catalog/profiling_configuration_error.py +5 -0
- acceldata/models/sdk/pipeline/__init__.py +62 -0
- acceldata/models/sdk/pipeline/create_job_input.py +108 -0
- acceldata/models/sdk/pipeline/create_pipeline_input_request.py +72 -0
- acceldata/models/sdk/pipeline/events/__init__.py +5 -0
- acceldata/models/sdk/pipeline/events/generic_event.py +31 -0
- acceldata/models/sdk/pipeline/events/log_event.py +34 -0
- acceldata/models/sdk/pipeline/events/span_event.py +8 -0
- acceldata/models/sdk/pipeline/pipeline_resource.py +171 -0
- acceldata/models/sdk/pipeline/pipeline_run_input.py +84 -0
- acceldata/models/sdk/pipeline/pipeline_run_resource.py +208 -0
- acceldata/models/sdk/pipeline/pipeline_source_type.py +20 -0
- acceldata/models/sdk/pipeline/span_resource.py +327 -0
- acceldata/openapi_deserialization_patches.py +161 -0
- acceldata/openapi_repr_patches.py +62 -0
- acceldata/services/__init__.py +0 -0
- acceldata/services/api_timestamp.py +31 -0
- acceldata/services/asset_service.py +651 -0
- acceldata/services/datasource_service.py +120 -0
- acceldata/services/generic_service.py +132 -0
- acceldata/services/marker_config.py +232 -0
- acceldata/services/pipeline_big_decimal_api.py +102 -0
- acceldata/services/pipeline_response_parse.py +209 -0
- acceldata/services/pipeline_service.py +494 -0
- acceldata/services/rule_service.py +620 -0
- acceldata/urls/__init__.py +1 -0
- acceldata/urls/catalog_urls.py +137 -0
- acceldata/urls/pipeline_urls.py +55 -0
- acceldata/utils/__init__.py +6 -0
- acceldata/utils/datetime_utils.py +16 -0
- acceldata/utils/operation_ack.py +22 -0
- acceldata/utils/span_helpers.py +95 -0
- acceldata/utils/time_range_utils.py +90 -0
- acceldata_sdk_python-26.7.0.dist-info/METADATA +26 -0
- acceldata_sdk_python-26.7.0.dist-info/RECORD +303 -0
- acceldata_sdk_python-26.7.0.dist-info/WHEEL +5 -0
- acceldata_sdk_python-26.7.0.dist-info/licenses/LICENSE +22 -0
- acceldata_sdk_python-26.7.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Catalog Control Plane API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
import pprint
|
|
18
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
|
|
19
|
+
from typing import Any, List, Optional
|
|
20
|
+
from acceldata.models.api.catalog.bounds_date_time_marker_config import BoundsDateTimeMarkerConfig
|
|
21
|
+
from acceldata.models.api.catalog.bounds_file_event_marker_config import BoundsFileEventMarkerConfig
|
|
22
|
+
from acceldata.models.api.catalog.bounds_id_marker_config import BoundsIdMarkerConfig
|
|
23
|
+
from acceldata.models.api.catalog.date_partitioning_marker_config import DatePartitioningMarkerConfig
|
|
24
|
+
from acceldata.models.api.catalog.date_time_marker_config import DateTimeMarkerConfig
|
|
25
|
+
from acceldata.models.api.catalog.file_marker_config import FileMarkerConfig
|
|
26
|
+
from acceldata.models.api.catalog.id_marker_config import IdMarkerConfig
|
|
27
|
+
from acceldata.models.api.catalog.marker_config_fallback import MarkerConfigFallback
|
|
28
|
+
from acceldata.models.api.catalog.offset_based_marker_config import OffsetBasedMarkerConfig
|
|
29
|
+
from acceldata.models.api.catalog.pub_sub_lookback_marker_config import PubSubLookbackMarkerConfig
|
|
30
|
+
from acceldata.models.api.catalog.pub_sub_timestamp_marker_config import PubSubTimestampMarkerConfig
|
|
31
|
+
from acceldata.models.api.catalog.timestamp_based_marker_config import TimestampBasedMarkerConfig
|
|
32
|
+
from pydantic import StrictStr, Field
|
|
33
|
+
from typing import Union, List, Set, Optional, Dict
|
|
34
|
+
from typing_extensions import Literal, Self
|
|
35
|
+
|
|
36
|
+
MARKERCONFIG_ONE_OF_SCHEMAS = ["BoundsDateTimeMarkerConfig", "BoundsFileEventMarkerConfig", "BoundsIdMarkerConfig", "DatePartitioningMarkerConfig", "DateTimeMarkerConfig", "FileMarkerConfig", "IdMarkerConfig", "MarkerConfigFallback", "OffsetBasedMarkerConfig", "PubSubLookbackMarkerConfig", "PubSubTimestampMarkerConfig", "TimestampBasedMarkerConfig"]
|
|
37
|
+
|
|
38
|
+
class MarkerConfig(BaseModel):
|
|
39
|
+
"""
|
|
40
|
+
MarkerConfig
|
|
41
|
+
"""
|
|
42
|
+
# data type: BoundsDateTimeMarkerConfig
|
|
43
|
+
oneof_schema_1_validator: Optional[BoundsDateTimeMarkerConfig] = None
|
|
44
|
+
# data type: BoundsFileEventMarkerConfig
|
|
45
|
+
oneof_schema_2_validator: Optional[BoundsFileEventMarkerConfig] = None
|
|
46
|
+
# data type: BoundsIdMarkerConfig
|
|
47
|
+
oneof_schema_3_validator: Optional[BoundsIdMarkerConfig] = None
|
|
48
|
+
# data type: DatePartitioningMarkerConfig
|
|
49
|
+
oneof_schema_4_validator: Optional[DatePartitioningMarkerConfig] = None
|
|
50
|
+
# data type: DateTimeMarkerConfig
|
|
51
|
+
oneof_schema_5_validator: Optional[DateTimeMarkerConfig] = None
|
|
52
|
+
# data type: FileMarkerConfig
|
|
53
|
+
oneof_schema_6_validator: Optional[FileMarkerConfig] = None
|
|
54
|
+
# data type: IdMarkerConfig
|
|
55
|
+
oneof_schema_7_validator: Optional[IdMarkerConfig] = None
|
|
56
|
+
# data type: OffsetBasedMarkerConfig
|
|
57
|
+
oneof_schema_8_validator: Optional[OffsetBasedMarkerConfig] = None
|
|
58
|
+
# data type: PubSubLookbackMarkerConfig
|
|
59
|
+
oneof_schema_9_validator: Optional[PubSubLookbackMarkerConfig] = None
|
|
60
|
+
# data type: PubSubTimestampMarkerConfig
|
|
61
|
+
oneof_schema_10_validator: Optional[PubSubTimestampMarkerConfig] = None
|
|
62
|
+
# data type: TimestampBasedMarkerConfig
|
|
63
|
+
oneof_schema_11_validator: Optional[TimestampBasedMarkerConfig] = None
|
|
64
|
+
# data type: MarkerConfigFallback
|
|
65
|
+
oneof_schema_12_validator: Optional[MarkerConfigFallback] = None
|
|
66
|
+
actual_instance: Optional[Union[BoundsDateTimeMarkerConfig, BoundsFileEventMarkerConfig, BoundsIdMarkerConfig, DatePartitioningMarkerConfig, DateTimeMarkerConfig, FileMarkerConfig, IdMarkerConfig, MarkerConfigFallback, OffsetBasedMarkerConfig, PubSubLookbackMarkerConfig, PubSubTimestampMarkerConfig, TimestampBasedMarkerConfig]] = None
|
|
67
|
+
one_of_schemas: Set[str] = { "BoundsDateTimeMarkerConfig", "BoundsFileEventMarkerConfig", "BoundsIdMarkerConfig", "DatePartitioningMarkerConfig", "DateTimeMarkerConfig", "FileMarkerConfig", "IdMarkerConfig", "MarkerConfigFallback", "OffsetBasedMarkerConfig", "PubSubLookbackMarkerConfig", "PubSubTimestampMarkerConfig", "TimestampBasedMarkerConfig" }
|
|
68
|
+
|
|
69
|
+
model_config = ConfigDict(
|
|
70
|
+
validate_assignment=True,
|
|
71
|
+
protected_namespaces=(),
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
discriminator_value_class_map: Dict[str, str] = {
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
79
|
+
if args:
|
|
80
|
+
if len(args) > 1:
|
|
81
|
+
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
82
|
+
if kwargs:
|
|
83
|
+
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
84
|
+
super().__init__(actual_instance=args[0])
|
|
85
|
+
else:
|
|
86
|
+
super().__init__(**kwargs)
|
|
87
|
+
|
|
88
|
+
@field_validator('actual_instance')
|
|
89
|
+
def actual_instance_must_validate_oneof(cls, v):
|
|
90
|
+
instance = MarkerConfig.model_construct()
|
|
91
|
+
error_messages = []
|
|
92
|
+
match = 0
|
|
93
|
+
# validate data type: BoundsDateTimeMarkerConfig
|
|
94
|
+
if not isinstance(v, BoundsDateTimeMarkerConfig):
|
|
95
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `BoundsDateTimeMarkerConfig`")
|
|
96
|
+
else:
|
|
97
|
+
match += 1
|
|
98
|
+
# validate data type: BoundsFileEventMarkerConfig
|
|
99
|
+
if not isinstance(v, BoundsFileEventMarkerConfig):
|
|
100
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `BoundsFileEventMarkerConfig`")
|
|
101
|
+
else:
|
|
102
|
+
match += 1
|
|
103
|
+
# validate data type: BoundsIdMarkerConfig
|
|
104
|
+
if not isinstance(v, BoundsIdMarkerConfig):
|
|
105
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `BoundsIdMarkerConfig`")
|
|
106
|
+
else:
|
|
107
|
+
match += 1
|
|
108
|
+
# validate data type: DatePartitioningMarkerConfig
|
|
109
|
+
if not isinstance(v, DatePartitioningMarkerConfig):
|
|
110
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DatePartitioningMarkerConfig`")
|
|
111
|
+
else:
|
|
112
|
+
match += 1
|
|
113
|
+
# validate data type: DateTimeMarkerConfig
|
|
114
|
+
if not isinstance(v, DateTimeMarkerConfig):
|
|
115
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DateTimeMarkerConfig`")
|
|
116
|
+
else:
|
|
117
|
+
match += 1
|
|
118
|
+
# validate data type: FileMarkerConfig
|
|
119
|
+
if not isinstance(v, FileMarkerConfig):
|
|
120
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `FileMarkerConfig`")
|
|
121
|
+
else:
|
|
122
|
+
match += 1
|
|
123
|
+
# validate data type: IdMarkerConfig
|
|
124
|
+
if not isinstance(v, IdMarkerConfig):
|
|
125
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `IdMarkerConfig`")
|
|
126
|
+
else:
|
|
127
|
+
match += 1
|
|
128
|
+
# validate data type: OffsetBasedMarkerConfig
|
|
129
|
+
if not isinstance(v, OffsetBasedMarkerConfig):
|
|
130
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `OffsetBasedMarkerConfig`")
|
|
131
|
+
else:
|
|
132
|
+
match += 1
|
|
133
|
+
# validate data type: PubSubLookbackMarkerConfig
|
|
134
|
+
if not isinstance(v, PubSubLookbackMarkerConfig):
|
|
135
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `PubSubLookbackMarkerConfig`")
|
|
136
|
+
else:
|
|
137
|
+
match += 1
|
|
138
|
+
# validate data type: PubSubTimestampMarkerConfig
|
|
139
|
+
if not isinstance(v, PubSubTimestampMarkerConfig):
|
|
140
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `PubSubTimestampMarkerConfig`")
|
|
141
|
+
else:
|
|
142
|
+
match += 1
|
|
143
|
+
# validate data type: TimestampBasedMarkerConfig
|
|
144
|
+
if not isinstance(v, TimestampBasedMarkerConfig):
|
|
145
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `TimestampBasedMarkerConfig`")
|
|
146
|
+
else:
|
|
147
|
+
match += 1
|
|
148
|
+
# validate data type: MarkerConfigFallback
|
|
149
|
+
if not isinstance(v, MarkerConfigFallback):
|
|
150
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `MarkerConfigFallback`")
|
|
151
|
+
else:
|
|
152
|
+
match += 1
|
|
153
|
+
if match > 1:
|
|
154
|
+
# more than 1 match
|
|
155
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in MarkerConfig with oneOf schemas: BoundsDateTimeMarkerConfig, BoundsFileEventMarkerConfig, BoundsIdMarkerConfig, DatePartitioningMarkerConfig, DateTimeMarkerConfig, FileMarkerConfig, IdMarkerConfig, MarkerConfigFallback, OffsetBasedMarkerConfig, PubSubLookbackMarkerConfig, PubSubTimestampMarkerConfig, TimestampBasedMarkerConfig. Details: " + ", ".join(error_messages))
|
|
156
|
+
elif match == 0:
|
|
157
|
+
# no match
|
|
158
|
+
raise ValueError("No match found when setting `actual_instance` in MarkerConfig with oneOf schemas: BoundsDateTimeMarkerConfig, BoundsFileEventMarkerConfig, BoundsIdMarkerConfig, DatePartitioningMarkerConfig, DateTimeMarkerConfig, FileMarkerConfig, IdMarkerConfig, MarkerConfigFallback, OffsetBasedMarkerConfig, PubSubLookbackMarkerConfig, PubSubTimestampMarkerConfig, TimestampBasedMarkerConfig. Details: " + ", ".join(error_messages))
|
|
159
|
+
else:
|
|
160
|
+
return v
|
|
161
|
+
|
|
162
|
+
@classmethod
|
|
163
|
+
def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
|
|
164
|
+
return cls.from_json(json.dumps(obj))
|
|
165
|
+
|
|
166
|
+
@classmethod
|
|
167
|
+
def from_json(cls, json_str: str) -> Self:
|
|
168
|
+
"""Returns the object represented by the json string"""
|
|
169
|
+
instance = cls.model_construct()
|
|
170
|
+
error_messages = []
|
|
171
|
+
match = 0
|
|
172
|
+
|
|
173
|
+
# use oneOf discriminator to lookup the data type
|
|
174
|
+
_data_type = json.loads(json_str).get("type")
|
|
175
|
+
if not _data_type:
|
|
176
|
+
raise ValueError("Failed to lookup data type from the field `type` in the input.")
|
|
177
|
+
|
|
178
|
+
# check if data type is `MarkerConfigFallback`
|
|
179
|
+
if _data_type == "MarkerConfigFallback":
|
|
180
|
+
instance.actual_instance = MarkerConfigFallback.from_json(json_str)
|
|
181
|
+
return instance
|
|
182
|
+
|
|
183
|
+
# check if data type is `BoundsIdMarkerConfig`
|
|
184
|
+
if _data_type == "bound":
|
|
185
|
+
instance.actual_instance = BoundsIdMarkerConfig.from_json(json_str)
|
|
186
|
+
return instance
|
|
187
|
+
|
|
188
|
+
# check if data type is `BoundsDateTimeMarkerConfig`
|
|
189
|
+
if _data_type == "boundDateTime":
|
|
190
|
+
instance.actual_instance = BoundsDateTimeMarkerConfig.from_json(json_str)
|
|
191
|
+
return instance
|
|
192
|
+
|
|
193
|
+
# check if data type is `BoundsFileEventMarkerConfig`
|
|
194
|
+
if _data_type == "boundFileEvent":
|
|
195
|
+
instance.actual_instance = BoundsFileEventMarkerConfig.from_json(json_str)
|
|
196
|
+
return instance
|
|
197
|
+
|
|
198
|
+
# check if data type is `DatePartitioningMarkerConfig`
|
|
199
|
+
if _data_type == "date_partitioned":
|
|
200
|
+
instance.actual_instance = DatePartitioningMarkerConfig.from_json(json_str)
|
|
201
|
+
return instance
|
|
202
|
+
|
|
203
|
+
# check if data type is `DateTimeMarkerConfig`
|
|
204
|
+
if _data_type == "datetime":
|
|
205
|
+
instance.actual_instance = DateTimeMarkerConfig.from_json(json_str)
|
|
206
|
+
return instance
|
|
207
|
+
|
|
208
|
+
# check if data type is `FileMarkerConfig`
|
|
209
|
+
if _data_type == "file":
|
|
210
|
+
instance.actual_instance = FileMarkerConfig.from_json(json_str)
|
|
211
|
+
return instance
|
|
212
|
+
|
|
213
|
+
# check if data type is `IdMarkerConfig`
|
|
214
|
+
if _data_type == "id":
|
|
215
|
+
instance.actual_instance = IdMarkerConfig.from_json(json_str)
|
|
216
|
+
return instance
|
|
217
|
+
|
|
218
|
+
# check if data type is `OffsetBasedMarkerConfig`
|
|
219
|
+
if _data_type == "offset":
|
|
220
|
+
instance.actual_instance = OffsetBasedMarkerConfig.from_json(json_str)
|
|
221
|
+
return instance
|
|
222
|
+
|
|
223
|
+
# check if data type is `PubSubLookbackMarkerConfig`
|
|
224
|
+
if _data_type == "pubsub_lookback":
|
|
225
|
+
instance.actual_instance = PubSubLookbackMarkerConfig.from_json(json_str)
|
|
226
|
+
return instance
|
|
227
|
+
|
|
228
|
+
# check if data type is `PubSubTimestampMarkerConfig`
|
|
229
|
+
if _data_type == "pubsub_timestamp":
|
|
230
|
+
instance.actual_instance = PubSubTimestampMarkerConfig.from_json(json_str)
|
|
231
|
+
return instance
|
|
232
|
+
|
|
233
|
+
# check if data type is `TimestampBasedMarkerConfig`
|
|
234
|
+
if _data_type == "timestamp":
|
|
235
|
+
instance.actual_instance = TimestampBasedMarkerConfig.from_json(json_str)
|
|
236
|
+
return instance
|
|
237
|
+
|
|
238
|
+
# Unknown discriminator value – forward-compatible fallback
|
|
239
|
+
instance.actual_instance = MarkerConfigFallback.from_json(json_str)
|
|
240
|
+
return instance
|
|
241
|
+
|
|
242
|
+
# deserialize data into BoundsDateTimeMarkerConfig
|
|
243
|
+
try:
|
|
244
|
+
instance.actual_instance = BoundsDateTimeMarkerConfig.from_json(json_str)
|
|
245
|
+
match += 1
|
|
246
|
+
except (ValidationError, ValueError) as e:
|
|
247
|
+
error_messages.append(str(e))
|
|
248
|
+
# deserialize data into BoundsFileEventMarkerConfig
|
|
249
|
+
try:
|
|
250
|
+
instance.actual_instance = BoundsFileEventMarkerConfig.from_json(json_str)
|
|
251
|
+
match += 1
|
|
252
|
+
except (ValidationError, ValueError) as e:
|
|
253
|
+
error_messages.append(str(e))
|
|
254
|
+
# deserialize data into BoundsIdMarkerConfig
|
|
255
|
+
try:
|
|
256
|
+
instance.actual_instance = BoundsIdMarkerConfig.from_json(json_str)
|
|
257
|
+
match += 1
|
|
258
|
+
except (ValidationError, ValueError) as e:
|
|
259
|
+
error_messages.append(str(e))
|
|
260
|
+
# deserialize data into DatePartitioningMarkerConfig
|
|
261
|
+
try:
|
|
262
|
+
instance.actual_instance = DatePartitioningMarkerConfig.from_json(json_str)
|
|
263
|
+
match += 1
|
|
264
|
+
except (ValidationError, ValueError) as e:
|
|
265
|
+
error_messages.append(str(e))
|
|
266
|
+
# deserialize data into DateTimeMarkerConfig
|
|
267
|
+
try:
|
|
268
|
+
instance.actual_instance = DateTimeMarkerConfig.from_json(json_str)
|
|
269
|
+
match += 1
|
|
270
|
+
except (ValidationError, ValueError) as e:
|
|
271
|
+
error_messages.append(str(e))
|
|
272
|
+
# deserialize data into FileMarkerConfig
|
|
273
|
+
try:
|
|
274
|
+
instance.actual_instance = FileMarkerConfig.from_json(json_str)
|
|
275
|
+
match += 1
|
|
276
|
+
except (ValidationError, ValueError) as e:
|
|
277
|
+
error_messages.append(str(e))
|
|
278
|
+
# deserialize data into IdMarkerConfig
|
|
279
|
+
try:
|
|
280
|
+
instance.actual_instance = IdMarkerConfig.from_json(json_str)
|
|
281
|
+
match += 1
|
|
282
|
+
except (ValidationError, ValueError) as e:
|
|
283
|
+
error_messages.append(str(e))
|
|
284
|
+
# deserialize data into OffsetBasedMarkerConfig
|
|
285
|
+
try:
|
|
286
|
+
instance.actual_instance = OffsetBasedMarkerConfig.from_json(json_str)
|
|
287
|
+
match += 1
|
|
288
|
+
except (ValidationError, ValueError) as e:
|
|
289
|
+
error_messages.append(str(e))
|
|
290
|
+
# deserialize data into PubSubLookbackMarkerConfig
|
|
291
|
+
try:
|
|
292
|
+
instance.actual_instance = PubSubLookbackMarkerConfig.from_json(json_str)
|
|
293
|
+
match += 1
|
|
294
|
+
except (ValidationError, ValueError) as e:
|
|
295
|
+
error_messages.append(str(e))
|
|
296
|
+
# deserialize data into PubSubTimestampMarkerConfig
|
|
297
|
+
try:
|
|
298
|
+
instance.actual_instance = PubSubTimestampMarkerConfig.from_json(json_str)
|
|
299
|
+
match += 1
|
|
300
|
+
except (ValidationError, ValueError) as e:
|
|
301
|
+
error_messages.append(str(e))
|
|
302
|
+
# deserialize data into TimestampBasedMarkerConfig
|
|
303
|
+
try:
|
|
304
|
+
instance.actual_instance = TimestampBasedMarkerConfig.from_json(json_str)
|
|
305
|
+
match += 1
|
|
306
|
+
except (ValidationError, ValueError) as e:
|
|
307
|
+
error_messages.append(str(e))
|
|
308
|
+
# deserialize data into MarkerConfigFallback
|
|
309
|
+
try:
|
|
310
|
+
instance.actual_instance = MarkerConfigFallback.from_json(json_str)
|
|
311
|
+
match += 1
|
|
312
|
+
except (ValidationError, ValueError) as e:
|
|
313
|
+
error_messages.append(str(e))
|
|
314
|
+
|
|
315
|
+
if match > 1:
|
|
316
|
+
# more than 1 match
|
|
317
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into MarkerConfig with oneOf schemas: BoundsDateTimeMarkerConfig, BoundsFileEventMarkerConfig, BoundsIdMarkerConfig, DatePartitioningMarkerConfig, DateTimeMarkerConfig, FileMarkerConfig, IdMarkerConfig, MarkerConfigFallback, OffsetBasedMarkerConfig, PubSubLookbackMarkerConfig, PubSubTimestampMarkerConfig, TimestampBasedMarkerConfig. Details: " + ", ".join(error_messages))
|
|
318
|
+
elif match == 0:
|
|
319
|
+
# no match
|
|
320
|
+
raise ValueError("No match found when deserializing the JSON string into MarkerConfig with oneOf schemas: BoundsDateTimeMarkerConfig, BoundsFileEventMarkerConfig, BoundsIdMarkerConfig, DatePartitioningMarkerConfig, DateTimeMarkerConfig, FileMarkerConfig, IdMarkerConfig, MarkerConfigFallback, OffsetBasedMarkerConfig, PubSubLookbackMarkerConfig, PubSubTimestampMarkerConfig, TimestampBasedMarkerConfig. Details: " + ", ".join(error_messages))
|
|
321
|
+
else:
|
|
322
|
+
return instance
|
|
323
|
+
|
|
324
|
+
def to_json(self) -> str:
|
|
325
|
+
"""Returns the JSON representation of the actual instance"""
|
|
326
|
+
if self.actual_instance is None:
|
|
327
|
+
return "null"
|
|
328
|
+
|
|
329
|
+
if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
|
|
330
|
+
return self.actual_instance.to_json()
|
|
331
|
+
else:
|
|
332
|
+
return json.dumps(self.actual_instance)
|
|
333
|
+
|
|
334
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], BoundsDateTimeMarkerConfig, BoundsFileEventMarkerConfig, BoundsIdMarkerConfig, DatePartitioningMarkerConfig, DateTimeMarkerConfig, FileMarkerConfig, IdMarkerConfig, MarkerConfigFallback, OffsetBasedMarkerConfig, PubSubLookbackMarkerConfig, PubSubTimestampMarkerConfig, TimestampBasedMarkerConfig]]:
|
|
335
|
+
"""Returns the dict representation of the actual instance"""
|
|
336
|
+
if self.actual_instance is None:
|
|
337
|
+
return None
|
|
338
|
+
|
|
339
|
+
if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
|
|
340
|
+
return self.actual_instance.to_dict()
|
|
341
|
+
else:
|
|
342
|
+
# primitive type
|
|
343
|
+
return self.actual_instance
|
|
344
|
+
|
|
345
|
+
def to_str(self) -> str:
|
|
346
|
+
"""Returns the string representation of the actual instance"""
|
|
347
|
+
return pprint.pformat(self.model_dump())
|
|
348
|
+
|
|
349
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Catalog Control Plane API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class MarkerConfigFallback(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Forward-compatible payload for `MarkerConfig` when `type` is not listed in this spec's discriminator mapping (new backend subtype).
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
type: StrictStr
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["type"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of MarkerConfigFallback from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of MarkerConfigFallback from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"type": obj.get("type")
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Catalog Control Plane API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class Meta(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Meta
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
limit: Optional[StrictInt] = None
|
|
31
|
+
offset: Optional[StrictInt] = None
|
|
32
|
+
total: StrictInt
|
|
33
|
+
__properties: ClassVar[List[str]] = ["limit", "offset", "total"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of Meta from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of Meta from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"limit": obj.get("limit"),
|
|
87
|
+
"offset": obj.get("offset"),
|
|
88
|
+
"total": obj.get("total")
|
|
89
|
+
})
|
|
90
|
+
return _obj
|
|
91
|
+
|
|
92
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Catalog Control Plane API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class MetaData(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
MetaData
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
count: StrictInt
|
|
31
|
+
page: StrictInt
|
|
32
|
+
size: StrictInt
|
|
33
|
+
__properties: ClassVar[List[str]] = ["count", "page", "size"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of MetaData from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of MetaData from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"count": obj.get("count"),
|
|
87
|
+
"page": obj.get("page"),
|
|
88
|
+
"size": obj.get("size")
|
|
89
|
+
})
|
|
90
|
+
return _obj
|
|
91
|
+
|
|
92
|
+
|