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,221 @@
|
|
|
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.auto_anomaly_rule_execution import AutoAnomalyRuleExecution
|
|
21
|
+
from acceldata.models.api.catalog.composite_policy_execution import CompositePolicyExecution
|
|
22
|
+
from acceldata.models.api.catalog.data_cadence_rule_execution import DataCadenceRuleExecution
|
|
23
|
+
from acceldata.models.api.catalog.data_drift_execution import DataDriftExecution
|
|
24
|
+
from acceldata.models.api.catalog.data_quality_execution import DataQualityExecution
|
|
25
|
+
from acceldata.models.api.catalog.profile_anomaly_rule_execution import ProfileAnomalyRuleExecution
|
|
26
|
+
from acceldata.models.api.catalog.reconciliation_rule_execution import ReconciliationRuleExecution
|
|
27
|
+
from acceldata.models.api.catalog.schema_drift_rule_execution import SchemaDriftRuleExecution
|
|
28
|
+
from pydantic import StrictStr, Field
|
|
29
|
+
from typing import Union, List, Set, Optional, Dict
|
|
30
|
+
from typing_extensions import Literal, Self
|
|
31
|
+
|
|
32
|
+
GENERICEXECUTION_ONE_OF_SCHEMAS = ["AutoAnomalyRuleExecution", "CompositePolicyExecution", "DataCadenceRuleExecution", "DataDriftExecution", "DataQualityExecution", "ProfileAnomalyRuleExecution", "ReconciliationRuleExecution", "SchemaDriftRuleExecution"]
|
|
33
|
+
|
|
34
|
+
class GenericExecution(BaseModel):
|
|
35
|
+
"""
|
|
36
|
+
Concrete shape depends on policy rule type; use nested `execution.ruleType` (see RuleType enum) to interpret the payload.
|
|
37
|
+
"""
|
|
38
|
+
# data type: DataQualityExecution
|
|
39
|
+
oneof_schema_1_validator: Optional[DataQualityExecution] = None
|
|
40
|
+
# data type: CompositePolicyExecution
|
|
41
|
+
oneof_schema_2_validator: Optional[CompositePolicyExecution] = None
|
|
42
|
+
# data type: ReconciliationRuleExecution
|
|
43
|
+
oneof_schema_3_validator: Optional[ReconciliationRuleExecution] = None
|
|
44
|
+
# data type: DataDriftExecution
|
|
45
|
+
oneof_schema_4_validator: Optional[DataDriftExecution] = None
|
|
46
|
+
# data type: SchemaDriftRuleExecution
|
|
47
|
+
oneof_schema_5_validator: Optional[SchemaDriftRuleExecution] = None
|
|
48
|
+
# data type: DataCadenceRuleExecution
|
|
49
|
+
oneof_schema_6_validator: Optional[DataCadenceRuleExecution] = None
|
|
50
|
+
# data type: ProfileAnomalyRuleExecution
|
|
51
|
+
oneof_schema_7_validator: Optional[ProfileAnomalyRuleExecution] = None
|
|
52
|
+
# data type: AutoAnomalyRuleExecution
|
|
53
|
+
oneof_schema_8_validator: Optional[AutoAnomalyRuleExecution] = None
|
|
54
|
+
actual_instance: Optional[Union[AutoAnomalyRuleExecution, CompositePolicyExecution, DataCadenceRuleExecution, DataDriftExecution, DataQualityExecution, ProfileAnomalyRuleExecution, ReconciliationRuleExecution, SchemaDriftRuleExecution]] = None
|
|
55
|
+
one_of_schemas: Set[str] = { "AutoAnomalyRuleExecution", "CompositePolicyExecution", "DataCadenceRuleExecution", "DataDriftExecution", "DataQualityExecution", "ProfileAnomalyRuleExecution", "ReconciliationRuleExecution", "SchemaDriftRuleExecution" }
|
|
56
|
+
|
|
57
|
+
model_config = ConfigDict(
|
|
58
|
+
validate_assignment=True,
|
|
59
|
+
protected_namespaces=(),
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
64
|
+
if args:
|
|
65
|
+
if len(args) > 1:
|
|
66
|
+
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
67
|
+
if kwargs:
|
|
68
|
+
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
69
|
+
super().__init__(actual_instance=args[0])
|
|
70
|
+
else:
|
|
71
|
+
super().__init__(**kwargs)
|
|
72
|
+
|
|
73
|
+
@field_validator('actual_instance')
|
|
74
|
+
def actual_instance_must_validate_oneof(cls, v):
|
|
75
|
+
instance = GenericExecution.model_construct()
|
|
76
|
+
error_messages = []
|
|
77
|
+
match = 0
|
|
78
|
+
# validate data type: DataQualityExecution
|
|
79
|
+
if not isinstance(v, DataQualityExecution):
|
|
80
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DataQualityExecution`")
|
|
81
|
+
else:
|
|
82
|
+
match += 1
|
|
83
|
+
# validate data type: CompositePolicyExecution
|
|
84
|
+
if not isinstance(v, CompositePolicyExecution):
|
|
85
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `CompositePolicyExecution`")
|
|
86
|
+
else:
|
|
87
|
+
match += 1
|
|
88
|
+
# validate data type: ReconciliationRuleExecution
|
|
89
|
+
if not isinstance(v, ReconciliationRuleExecution):
|
|
90
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `ReconciliationRuleExecution`")
|
|
91
|
+
else:
|
|
92
|
+
match += 1
|
|
93
|
+
# validate data type: DataDriftExecution
|
|
94
|
+
if not isinstance(v, DataDriftExecution):
|
|
95
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DataDriftExecution`")
|
|
96
|
+
else:
|
|
97
|
+
match += 1
|
|
98
|
+
# validate data type: SchemaDriftRuleExecution
|
|
99
|
+
if not isinstance(v, SchemaDriftRuleExecution):
|
|
100
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `SchemaDriftRuleExecution`")
|
|
101
|
+
else:
|
|
102
|
+
match += 1
|
|
103
|
+
# validate data type: DataCadenceRuleExecution
|
|
104
|
+
if not isinstance(v, DataCadenceRuleExecution):
|
|
105
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DataCadenceRuleExecution`")
|
|
106
|
+
else:
|
|
107
|
+
match += 1
|
|
108
|
+
# validate data type: ProfileAnomalyRuleExecution
|
|
109
|
+
if not isinstance(v, ProfileAnomalyRuleExecution):
|
|
110
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `ProfileAnomalyRuleExecution`")
|
|
111
|
+
else:
|
|
112
|
+
match += 1
|
|
113
|
+
# validate data type: AutoAnomalyRuleExecution
|
|
114
|
+
if not isinstance(v, AutoAnomalyRuleExecution):
|
|
115
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `AutoAnomalyRuleExecution`")
|
|
116
|
+
else:
|
|
117
|
+
match += 1
|
|
118
|
+
if match > 1:
|
|
119
|
+
# more than 1 match
|
|
120
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in GenericExecution with oneOf schemas: AutoAnomalyRuleExecution, CompositePolicyExecution, DataCadenceRuleExecution, DataDriftExecution, DataQualityExecution, ProfileAnomalyRuleExecution, ReconciliationRuleExecution, SchemaDriftRuleExecution. Details: " + ", ".join(error_messages))
|
|
121
|
+
elif match == 0:
|
|
122
|
+
# no match
|
|
123
|
+
raise ValueError("No match found when setting `actual_instance` in GenericExecution with oneOf schemas: AutoAnomalyRuleExecution, CompositePolicyExecution, DataCadenceRuleExecution, DataDriftExecution, DataQualityExecution, ProfileAnomalyRuleExecution, ReconciliationRuleExecution, SchemaDriftRuleExecution. Details: " + ", ".join(error_messages))
|
|
124
|
+
else:
|
|
125
|
+
return v
|
|
126
|
+
|
|
127
|
+
@classmethod
|
|
128
|
+
def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
|
|
129
|
+
return cls.from_json(json.dumps(obj))
|
|
130
|
+
|
|
131
|
+
@classmethod
|
|
132
|
+
def from_json(cls, json_str: str) -> Self:
|
|
133
|
+
"""Returns the object represented by the json string"""
|
|
134
|
+
instance = cls.model_construct()
|
|
135
|
+
error_messages = []
|
|
136
|
+
match = 0
|
|
137
|
+
|
|
138
|
+
# deserialize data into DataQualityExecution
|
|
139
|
+
try:
|
|
140
|
+
instance.actual_instance = DataQualityExecution.from_json(json_str)
|
|
141
|
+
match += 1
|
|
142
|
+
except (ValidationError, ValueError) as e:
|
|
143
|
+
error_messages.append(str(e))
|
|
144
|
+
# deserialize data into CompositePolicyExecution
|
|
145
|
+
try:
|
|
146
|
+
instance.actual_instance = CompositePolicyExecution.from_json(json_str)
|
|
147
|
+
match += 1
|
|
148
|
+
except (ValidationError, ValueError) as e:
|
|
149
|
+
error_messages.append(str(e))
|
|
150
|
+
# deserialize data into ReconciliationRuleExecution
|
|
151
|
+
try:
|
|
152
|
+
instance.actual_instance = ReconciliationRuleExecution.from_json(json_str)
|
|
153
|
+
match += 1
|
|
154
|
+
except (ValidationError, ValueError) as e:
|
|
155
|
+
error_messages.append(str(e))
|
|
156
|
+
# deserialize data into DataDriftExecution
|
|
157
|
+
try:
|
|
158
|
+
instance.actual_instance = DataDriftExecution.from_json(json_str)
|
|
159
|
+
match += 1
|
|
160
|
+
except (ValidationError, ValueError) as e:
|
|
161
|
+
error_messages.append(str(e))
|
|
162
|
+
# deserialize data into SchemaDriftRuleExecution
|
|
163
|
+
try:
|
|
164
|
+
instance.actual_instance = SchemaDriftRuleExecution.from_json(json_str)
|
|
165
|
+
match += 1
|
|
166
|
+
except (ValidationError, ValueError) as e:
|
|
167
|
+
error_messages.append(str(e))
|
|
168
|
+
# deserialize data into DataCadenceRuleExecution
|
|
169
|
+
try:
|
|
170
|
+
instance.actual_instance = DataCadenceRuleExecution.from_json(json_str)
|
|
171
|
+
match += 1
|
|
172
|
+
except (ValidationError, ValueError) as e:
|
|
173
|
+
error_messages.append(str(e))
|
|
174
|
+
# deserialize data into ProfileAnomalyRuleExecution
|
|
175
|
+
try:
|
|
176
|
+
instance.actual_instance = ProfileAnomalyRuleExecution.from_json(json_str)
|
|
177
|
+
match += 1
|
|
178
|
+
except (ValidationError, ValueError) as e:
|
|
179
|
+
error_messages.append(str(e))
|
|
180
|
+
# deserialize data into AutoAnomalyRuleExecution
|
|
181
|
+
try:
|
|
182
|
+
instance.actual_instance = AutoAnomalyRuleExecution.from_json(json_str)
|
|
183
|
+
match += 1
|
|
184
|
+
except (ValidationError, ValueError) as e:
|
|
185
|
+
error_messages.append(str(e))
|
|
186
|
+
|
|
187
|
+
if match > 1:
|
|
188
|
+
# more than 1 match
|
|
189
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into GenericExecution with oneOf schemas: AutoAnomalyRuleExecution, CompositePolicyExecution, DataCadenceRuleExecution, DataDriftExecution, DataQualityExecution, ProfileAnomalyRuleExecution, ReconciliationRuleExecution, SchemaDriftRuleExecution. Details: " + ", ".join(error_messages))
|
|
190
|
+
elif match == 0:
|
|
191
|
+
# no match
|
|
192
|
+
raise ValueError("No match found when deserializing the JSON string into GenericExecution with oneOf schemas: AutoAnomalyRuleExecution, CompositePolicyExecution, DataCadenceRuleExecution, DataDriftExecution, DataQualityExecution, ProfileAnomalyRuleExecution, ReconciliationRuleExecution, SchemaDriftRuleExecution. Details: " + ", ".join(error_messages))
|
|
193
|
+
else:
|
|
194
|
+
return instance
|
|
195
|
+
|
|
196
|
+
def to_json(self) -> str:
|
|
197
|
+
"""Returns the JSON representation of the actual instance"""
|
|
198
|
+
if self.actual_instance is None:
|
|
199
|
+
return "null"
|
|
200
|
+
|
|
201
|
+
if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
|
|
202
|
+
return self.actual_instance.to_json()
|
|
203
|
+
else:
|
|
204
|
+
return json.dumps(self.actual_instance)
|
|
205
|
+
|
|
206
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], AutoAnomalyRuleExecution, CompositePolicyExecution, DataCadenceRuleExecution, DataDriftExecution, DataQualityExecution, ProfileAnomalyRuleExecution, ReconciliationRuleExecution, SchemaDriftRuleExecution]]:
|
|
207
|
+
"""Returns the dict representation of the actual instance"""
|
|
208
|
+
if self.actual_instance is None:
|
|
209
|
+
return None
|
|
210
|
+
|
|
211
|
+
if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
|
|
212
|
+
return self.actual_instance.to_dict()
|
|
213
|
+
else:
|
|
214
|
+
# primitive type
|
|
215
|
+
return self.actual_instance
|
|
216
|
+
|
|
217
|
+
def to_str(self) -> str:
|
|
218
|
+
"""Returns the string representation of the actual instance"""
|
|
219
|
+
return pprint.pformat(self.model_dump())
|
|
220
|
+
|
|
221
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
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.dq_rule_execution import DQRuleExecution
|
|
21
|
+
from acceldata.models.api.catalog.rule_execution import RuleExecution
|
|
22
|
+
from pydantic import StrictStr, Field
|
|
23
|
+
from typing import Union, List, Set, Optional, Dict
|
|
24
|
+
from typing_extensions import Literal, Self
|
|
25
|
+
|
|
26
|
+
GENERICRULEEXECUTION_ONE_OF_SCHEMAS = ["DQRuleExecution", "RuleExecution"]
|
|
27
|
+
|
|
28
|
+
class GenericRuleExecution(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
GenericRuleExecution
|
|
31
|
+
"""
|
|
32
|
+
# data type: RuleExecution
|
|
33
|
+
oneof_schema_1_validator: Optional[RuleExecution] = None
|
|
34
|
+
# data type: DQRuleExecution
|
|
35
|
+
oneof_schema_2_validator: Optional[DQRuleExecution] = None
|
|
36
|
+
actual_instance: Optional[Union[DQRuleExecution, RuleExecution]] = None
|
|
37
|
+
one_of_schemas: Set[str] = { "DQRuleExecution", "RuleExecution" }
|
|
38
|
+
|
|
39
|
+
model_config = ConfigDict(
|
|
40
|
+
validate_assignment=True,
|
|
41
|
+
protected_namespaces=(),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
46
|
+
if args:
|
|
47
|
+
if len(args) > 1:
|
|
48
|
+
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
49
|
+
if kwargs:
|
|
50
|
+
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
51
|
+
super().__init__(actual_instance=args[0])
|
|
52
|
+
else:
|
|
53
|
+
super().__init__(**kwargs)
|
|
54
|
+
|
|
55
|
+
@field_validator('actual_instance')
|
|
56
|
+
def actual_instance_must_validate_oneof(cls, v):
|
|
57
|
+
instance = GenericRuleExecution.model_construct()
|
|
58
|
+
error_messages = []
|
|
59
|
+
match = 0
|
|
60
|
+
# validate data type: RuleExecution
|
|
61
|
+
if not isinstance(v, RuleExecution):
|
|
62
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `RuleExecution`")
|
|
63
|
+
else:
|
|
64
|
+
match += 1
|
|
65
|
+
# validate data type: DQRuleExecution
|
|
66
|
+
if not isinstance(v, DQRuleExecution):
|
|
67
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DQRuleExecution`")
|
|
68
|
+
else:
|
|
69
|
+
match += 1
|
|
70
|
+
if match > 1:
|
|
71
|
+
# more than 1 match
|
|
72
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in GenericRuleExecution with oneOf schemas: DQRuleExecution, RuleExecution. Details: " + ", ".join(error_messages))
|
|
73
|
+
elif match == 0:
|
|
74
|
+
# no match
|
|
75
|
+
raise ValueError("No match found when setting `actual_instance` in GenericRuleExecution with oneOf schemas: DQRuleExecution, RuleExecution. Details: " + ", ".join(error_messages))
|
|
76
|
+
else:
|
|
77
|
+
return v
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
|
|
81
|
+
return cls.from_json(json.dumps(obj))
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_json(cls, json_str: str) -> Self:
|
|
85
|
+
"""Returns the object represented by the json string"""
|
|
86
|
+
instance = cls.model_construct()
|
|
87
|
+
error_messages = []
|
|
88
|
+
match = 0
|
|
89
|
+
|
|
90
|
+
# deserialize data into RuleExecution
|
|
91
|
+
try:
|
|
92
|
+
instance.actual_instance = RuleExecution.from_json(json_str)
|
|
93
|
+
match += 1
|
|
94
|
+
except (ValidationError, ValueError) as e:
|
|
95
|
+
error_messages.append(str(e))
|
|
96
|
+
# deserialize data into DQRuleExecution
|
|
97
|
+
try:
|
|
98
|
+
instance.actual_instance = DQRuleExecution.from_json(json_str)
|
|
99
|
+
match += 1
|
|
100
|
+
except (ValidationError, ValueError) as e:
|
|
101
|
+
error_messages.append(str(e))
|
|
102
|
+
|
|
103
|
+
if match > 1:
|
|
104
|
+
# more than 1 match
|
|
105
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into GenericRuleExecution with oneOf schemas: DQRuleExecution, RuleExecution. Details: " + ", ".join(error_messages))
|
|
106
|
+
elif match == 0:
|
|
107
|
+
# no match
|
|
108
|
+
raise ValueError("No match found when deserializing the JSON string into GenericRuleExecution with oneOf schemas: DQRuleExecution, RuleExecution. Details: " + ", ".join(error_messages))
|
|
109
|
+
else:
|
|
110
|
+
return instance
|
|
111
|
+
|
|
112
|
+
def to_json(self) -> str:
|
|
113
|
+
"""Returns the JSON representation of the actual instance"""
|
|
114
|
+
if self.actual_instance is None:
|
|
115
|
+
return "null"
|
|
116
|
+
|
|
117
|
+
if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
|
|
118
|
+
return self.actual_instance.to_json()
|
|
119
|
+
else:
|
|
120
|
+
return json.dumps(self.actual_instance)
|
|
121
|
+
|
|
122
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], DQRuleExecution, RuleExecution]]:
|
|
123
|
+
"""Returns the dict representation of the actual instance"""
|
|
124
|
+
if self.actual_instance is None:
|
|
125
|
+
return None
|
|
126
|
+
|
|
127
|
+
if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
|
|
128
|
+
return self.actual_instance.to_dict()
|
|
129
|
+
else:
|
|
130
|
+
# primitive type
|
|
131
|
+
return self.actual_instance
|
|
132
|
+
|
|
133
|
+
def to_str(self) -> str:
|
|
134
|
+
"""Returns the string representation of the actual instance"""
|
|
135
|
+
return pprint.pformat(self.model_dump())
|
|
136
|
+
|
|
137
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
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, Field, StrictStr
|
|
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 GlobalStorageConfigDTO(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
GlobalStorageConfigDTO
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
adls_generation: Optional[StrictStr] = Field(default=None, alias="adlsGeneration")
|
|
31
|
+
adls_storage_account_name: Optional[StrictStr] = Field(default=None, alias="adlsStorageAccountName")
|
|
32
|
+
adls_storage_container_name: Optional[StrictStr] = Field(default=None, alias="adlsStorageContainerName")
|
|
33
|
+
gcs_bucket_name: Optional[StrictStr] = Field(default=None, alias="gcsBucketName")
|
|
34
|
+
gcs_project_id: Optional[StrictStr] = Field(default=None, alias="gcsProjectId")
|
|
35
|
+
hdfs_directory: Optional[StrictStr] = Field(default=None, alias="hdfsDirectory")
|
|
36
|
+
measure_result_adls_access_mode: Optional[StrictStr] = Field(default=None, alias="measureResultADLSAccessMode")
|
|
37
|
+
measure_result_fs_type: StrictStr = Field(alias="measureResultFsType")
|
|
38
|
+
measure_result_gcs_access_mode: Optional[StrictStr] = Field(default=None, alias="measureResultGCSAccessMode")
|
|
39
|
+
measure_result_s3_a_access_instance_profile_arn: Optional[StrictStr] = Field(default=None, alias="measureResultS3AAccessInstanceProfileARN")
|
|
40
|
+
measure_result_s3_a_access_mode: Optional[StrictStr] = Field(default=None, alias="measureResultS3AAccessMode")
|
|
41
|
+
s3_bucket_name: Optional[StrictStr] = Field(default=None, alias="s3BucketName")
|
|
42
|
+
s3_region: Optional[StrictStr] = Field(default=None, alias="s3Region")
|
|
43
|
+
__properties: ClassVar[List[str]] = ["adlsGeneration", "adlsStorageAccountName", "adlsStorageContainerName", "gcsBucketName", "gcsProjectId", "hdfsDirectory", "measureResultADLSAccessMode", "measureResultFsType", "measureResultGCSAccessMode", "measureResultS3AAccessInstanceProfileARN", "measureResultS3AAccessMode", "s3BucketName", "s3Region"]
|
|
44
|
+
|
|
45
|
+
model_config = ConfigDict(
|
|
46
|
+
validate_by_name=True,
|
|
47
|
+
validate_by_alias=True,
|
|
48
|
+
validate_assignment=True,
|
|
49
|
+
protected_namespaces=(),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def to_str(self) -> str:
|
|
54
|
+
"""Returns the string representation of the model using alias"""
|
|
55
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
56
|
+
|
|
57
|
+
def to_json(self) -> str:
|
|
58
|
+
"""Returns the JSON representation of the model using alias"""
|
|
59
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
+
"""Create an instance of GlobalStorageConfigDTO from a JSON string"""
|
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
|
65
|
+
|
|
66
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
67
|
+
"""Return the dictionary representation of the model using alias.
|
|
68
|
+
|
|
69
|
+
This has the following differences from calling pydantic's
|
|
70
|
+
`self.model_dump(by_alias=True)`:
|
|
71
|
+
|
|
72
|
+
* `None` is only added to the output dict for nullable fields that
|
|
73
|
+
were set at model initialization. Other fields with value `None`
|
|
74
|
+
are ignored.
|
|
75
|
+
"""
|
|
76
|
+
excluded_fields: Set[str] = set([
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# set to None if adls_generation (nullable) is None
|
|
85
|
+
# and model_fields_set contains the field
|
|
86
|
+
if self.adls_generation is None and "adls_generation" in self.model_fields_set:
|
|
87
|
+
_dict['adlsGeneration'] = None
|
|
88
|
+
|
|
89
|
+
# set to None if adls_storage_account_name (nullable) is None
|
|
90
|
+
# and model_fields_set contains the field
|
|
91
|
+
if self.adls_storage_account_name is None and "adls_storage_account_name" in self.model_fields_set:
|
|
92
|
+
_dict['adlsStorageAccountName'] = None
|
|
93
|
+
|
|
94
|
+
# set to None if adls_storage_container_name (nullable) is None
|
|
95
|
+
# and model_fields_set contains the field
|
|
96
|
+
if self.adls_storage_container_name is None and "adls_storage_container_name" in self.model_fields_set:
|
|
97
|
+
_dict['adlsStorageContainerName'] = None
|
|
98
|
+
|
|
99
|
+
# set to None if gcs_bucket_name (nullable) is None
|
|
100
|
+
# and model_fields_set contains the field
|
|
101
|
+
if self.gcs_bucket_name is None and "gcs_bucket_name" in self.model_fields_set:
|
|
102
|
+
_dict['gcsBucketName'] = None
|
|
103
|
+
|
|
104
|
+
# set to None if gcs_project_id (nullable) is None
|
|
105
|
+
# and model_fields_set contains the field
|
|
106
|
+
if self.gcs_project_id is None and "gcs_project_id" in self.model_fields_set:
|
|
107
|
+
_dict['gcsProjectId'] = None
|
|
108
|
+
|
|
109
|
+
# set to None if hdfs_directory (nullable) is None
|
|
110
|
+
# and model_fields_set contains the field
|
|
111
|
+
if self.hdfs_directory is None and "hdfs_directory" in self.model_fields_set:
|
|
112
|
+
_dict['hdfsDirectory'] = None
|
|
113
|
+
|
|
114
|
+
# set to None if measure_result_adls_access_mode (nullable) is None
|
|
115
|
+
# and model_fields_set contains the field
|
|
116
|
+
if self.measure_result_adls_access_mode is None and "measure_result_adls_access_mode" in self.model_fields_set:
|
|
117
|
+
_dict['measureResultADLSAccessMode'] = None
|
|
118
|
+
|
|
119
|
+
# set to None if measure_result_gcs_access_mode (nullable) is None
|
|
120
|
+
# and model_fields_set contains the field
|
|
121
|
+
if self.measure_result_gcs_access_mode is None and "measure_result_gcs_access_mode" in self.model_fields_set:
|
|
122
|
+
_dict['measureResultGCSAccessMode'] = None
|
|
123
|
+
|
|
124
|
+
# set to None if measure_result_s3_a_access_instance_profile_arn (nullable) is None
|
|
125
|
+
# and model_fields_set contains the field
|
|
126
|
+
if self.measure_result_s3_a_access_instance_profile_arn is None and "measure_result_s3_a_access_instance_profile_arn" in self.model_fields_set:
|
|
127
|
+
_dict['measureResultS3AAccessInstanceProfileARN'] = None
|
|
128
|
+
|
|
129
|
+
# set to None if measure_result_s3_a_access_mode (nullable) is None
|
|
130
|
+
# and model_fields_set contains the field
|
|
131
|
+
if self.measure_result_s3_a_access_mode is None and "measure_result_s3_a_access_mode" in self.model_fields_set:
|
|
132
|
+
_dict['measureResultS3AAccessMode'] = None
|
|
133
|
+
|
|
134
|
+
# set to None if s3_bucket_name (nullable) is None
|
|
135
|
+
# and model_fields_set contains the field
|
|
136
|
+
if self.s3_bucket_name is None and "s3_bucket_name" in self.model_fields_set:
|
|
137
|
+
_dict['s3BucketName'] = None
|
|
138
|
+
|
|
139
|
+
# set to None if s3_region (nullable) is None
|
|
140
|
+
# and model_fields_set contains the field
|
|
141
|
+
if self.s3_region is None and "s3_region" in self.model_fields_set:
|
|
142
|
+
_dict['s3Region'] = None
|
|
143
|
+
|
|
144
|
+
return _dict
|
|
145
|
+
|
|
146
|
+
@classmethod
|
|
147
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
148
|
+
"""Create an instance of GlobalStorageConfigDTO from a dict"""
|
|
149
|
+
if obj is None:
|
|
150
|
+
return None
|
|
151
|
+
|
|
152
|
+
if not isinstance(obj, dict):
|
|
153
|
+
return cls.model_validate(obj)
|
|
154
|
+
|
|
155
|
+
_obj = cls.model_validate({
|
|
156
|
+
"adlsGeneration": obj.get("adlsGeneration"),
|
|
157
|
+
"adlsStorageAccountName": obj.get("adlsStorageAccountName"),
|
|
158
|
+
"adlsStorageContainerName": obj.get("adlsStorageContainerName"),
|
|
159
|
+
"gcsBucketName": obj.get("gcsBucketName"),
|
|
160
|
+
"gcsProjectId": obj.get("gcsProjectId"),
|
|
161
|
+
"hdfsDirectory": obj.get("hdfsDirectory"),
|
|
162
|
+
"measureResultADLSAccessMode": obj.get("measureResultADLSAccessMode"),
|
|
163
|
+
"measureResultFsType": obj.get("measureResultFsType"),
|
|
164
|
+
"measureResultGCSAccessMode": obj.get("measureResultGCSAccessMode"),
|
|
165
|
+
"measureResultS3AAccessInstanceProfileARN": obj.get("measureResultS3AAccessInstanceProfileARN"),
|
|
166
|
+
"measureResultS3AAccessMode": obj.get("measureResultS3AAccessMode"),
|
|
167
|
+
"s3BucketName": obj.get("s3BucketName"),
|
|
168
|
+
"s3Region": obj.get("s3Region")
|
|
169
|
+
})
|
|
170
|
+
return _obj
|
|
171
|
+
|
|
172
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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, Field, 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 HostedDPDeploymentResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
HostedDPDeploymentResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
dataplane_name: StrictStr = Field(alias="dataplaneName")
|
|
31
|
+
deployment_name: StrictStr = Field(alias="deploymentName")
|
|
32
|
+
message: StrictStr
|
|
33
|
+
namespace: StrictStr
|
|
34
|
+
status: StrictStr
|
|
35
|
+
uid: StrictStr
|
|
36
|
+
__properties: ClassVar[List[str]] = ["dataplaneName", "deploymentName", "message", "namespace", "status", "uid"]
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
41
|
+
validate_assignment=True,
|
|
42
|
+
protected_namespaces=(),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def to_str(self) -> str:
|
|
47
|
+
"""Returns the string representation of the model using alias"""
|
|
48
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
49
|
+
|
|
50
|
+
def to_json(self) -> str:
|
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
+
"""Create an instance of HostedDPDeploymentResponse from a JSON string"""
|
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
|
61
|
+
|
|
62
|
+
This has the following differences from calling pydantic's
|
|
63
|
+
`self.model_dump(by_alias=True)`:
|
|
64
|
+
|
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
|
66
|
+
were set at model initialization. Other fields with value `None`
|
|
67
|
+
are ignored.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
return _dict
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
+
"""Create an instance of HostedDPDeploymentResponse from a dict"""
|
|
82
|
+
if obj is None:
|
|
83
|
+
return None
|
|
84
|
+
|
|
85
|
+
if not isinstance(obj, dict):
|
|
86
|
+
return cls.model_validate(obj)
|
|
87
|
+
|
|
88
|
+
_obj = cls.model_validate({
|
|
89
|
+
"dataplaneName": obj.get("dataplaneName"),
|
|
90
|
+
"deploymentName": obj.get("deploymentName"),
|
|
91
|
+
"message": obj.get("message"),
|
|
92
|
+
"namespace": obj.get("namespace"),
|
|
93
|
+
"status": obj.get("status"),
|
|
94
|
+
"uid": obj.get("uid")
|
|
95
|
+
})
|
|
96
|
+
return _obj
|
|
97
|
+
|
|
98
|
+
|