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,385 @@
|
|
|
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 datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from acceldata.models.api.catalog.analytics_pipeline_endpoint import AnalyticsPipelineEndpoint
|
|
24
|
+
from acceldata.models.api.catalog.dataplane_health_metrics import DataplaneHealthMetrics
|
|
25
|
+
from acceldata.models.api.catalog.global_storage_config_dto import GlobalStorageConfigDTO
|
|
26
|
+
from acceldata.models.api.catalog.hosted_dp_deployment_response import HostedDPDeploymentResponse
|
|
27
|
+
from acceldata.models.api.catalog.pipeline_compute_config import PipelineComputeConfig
|
|
28
|
+
from acceldata.models.api.catalog.secret_manager_configuration_with_option import SecretManagerConfigurationWithOption
|
|
29
|
+
from typing import Optional, Set
|
|
30
|
+
from typing_extensions import Self
|
|
31
|
+
from pydantic_core import to_jsonable_python
|
|
32
|
+
|
|
33
|
+
class AnalyticsPipeline(BaseModel):
|
|
34
|
+
"""
|
|
35
|
+
AnalyticsPipeline
|
|
36
|
+
""" # noqa: E501
|
|
37
|
+
access_key: Optional[StrictStr] = Field(default=None, alias="accessKey")
|
|
38
|
+
access_key_expiry: Optional[StrictInt] = Field(default=None, alias="accessKeyExpiry")
|
|
39
|
+
additional_configuration: Optional[Dict[str, StrictStr]] = Field(default=None, alias="additionalConfiguration")
|
|
40
|
+
auto_retry_enabled: Optional[StrictBool] = Field(default=None, alias="autoRetryEnabled")
|
|
41
|
+
cloud_provider: Optional[StrictStr] = Field(default=None, alias="cloudProvider")
|
|
42
|
+
connection_count: Optional[StrictInt] = Field(default=None, alias="connectionCount")
|
|
43
|
+
created_at: Optional[datetime] = Field(default=None, alias="createdAt")
|
|
44
|
+
dataplane_access_key: Optional[StrictStr] = Field(default=None, alias="dataplaneAccessKey")
|
|
45
|
+
dataplane_secret_key: Optional[StrictStr] = Field(default=None, alias="dataplaneSecretKey")
|
|
46
|
+
dataplane_type: StrictStr = Field(alias="dataplaneType")
|
|
47
|
+
dataplane_version: Optional[StrictStr] = Field(default=None, alias="dataplaneVersion")
|
|
48
|
+
deployment_details: Optional[HostedDPDeploymentResponse] = Field(default=None, alias="deploymentDetails")
|
|
49
|
+
deployment_stack_id: Optional[StrictStr] = Field(default=None, alias="deploymentStackId")
|
|
50
|
+
deployment_stack_region: Optional[StrictStr] = Field(default=None, alias="deploymentStackRegion")
|
|
51
|
+
deployment_status: Optional[StrictStr] = Field(default=None, alias="deploymentStatus")
|
|
52
|
+
description: Optional[StrictStr] = None
|
|
53
|
+
endpoint: Optional[AnalyticsPipelineEndpoint] = None
|
|
54
|
+
external_url: Optional[StrictStr] = Field(default=None, alias="externalUrl")
|
|
55
|
+
global_storage_base_path: Optional[StrictStr] = Field(default=None, alias="globalStorageBasePath")
|
|
56
|
+
global_storage_config: Optional[GlobalStorageConfigDTO] = Field(default=None, alias="globalStorageConfig")
|
|
57
|
+
hbase_enabled: Optional[StrictBool] = Field(default=None, alias="hbaseEnabled")
|
|
58
|
+
hdfs_enabled: Optional[StrictBool] = Field(default=None, alias="hdfsEnabled")
|
|
59
|
+
health_report: Optional[DataplaneHealthMetrics] = Field(default=None, alias="healthReport")
|
|
60
|
+
helm_template_values: Optional[Dict[str, StrictStr]] = Field(default=None, alias="helmTemplateValues")
|
|
61
|
+
hive_enabled: Optional[StrictBool] = Field(default=None, alias="hiveEnabled")
|
|
62
|
+
id: Optional[StrictInt] = None
|
|
63
|
+
ingest_key: Optional[StrictStr] = Field(default=None, alias="ingestKey")
|
|
64
|
+
installation_type: Optional[StrictStr] = Field(default=None, alias="installationType")
|
|
65
|
+
is_hosted: StrictBool = Field(alias="isHosted")
|
|
66
|
+
is_internal_call: StrictBool = Field(alias="isInternalCall")
|
|
67
|
+
is_paused: StrictBool = Field(alias="isPaused")
|
|
68
|
+
is_request_sent_by_dataplane: StrictBool = Field(alias="isRequestSentByDataplane")
|
|
69
|
+
is_rotation_in_progress: StrictBool = Field(alias="isRotationInProgress")
|
|
70
|
+
kerberos_enabled: Optional[StrictBool] = Field(default=None, alias="kerberosEnabled")
|
|
71
|
+
last_status_report_time: Optional[datetime] = Field(default=None, alias="lastStatusReportTime")
|
|
72
|
+
measure_result_fs_type: Optional[StrictStr] = Field(default=None, alias="measureResultFsType")
|
|
73
|
+
name: StrictStr
|
|
74
|
+
namespace: Optional[StrictStr] = None
|
|
75
|
+
parent_pipeline_id: Optional[StrictInt] = Field(default=None, alias="parentPipelineId")
|
|
76
|
+
paused_at: Optional[datetime] = Field(default=None, alias="pausedAt")
|
|
77
|
+
paused_by: Optional[StrictStr] = Field(default=None, alias="pausedBy")
|
|
78
|
+
pipeline_compute_config: Optional[PipelineComputeConfig] = Field(default=None, alias="pipelineComputeConfig")
|
|
79
|
+
pipeline_type: Optional[StrictStr] = Field(default=None, description="Allowed values at generation time: ANALYSIS, MONITOR, QUERY_ANALYSIS.", alias="pipelineType")
|
|
80
|
+
registry_prefix: Optional[StrictStr] = Field(default=None, alias="registryPrefix")
|
|
81
|
+
registry_url: Optional[StrictStr] = Field(default=None, alias="registryUrl")
|
|
82
|
+
resource_strategy_type: Optional[StrictStr] = Field(default=None, description="Allowed values at generation time: INVENTORY, CUSTOM.", alias="resourceStrategyType")
|
|
83
|
+
rotation_access_key: Optional[StrictStr] = Field(default=None, alias="rotationAccessKey")
|
|
84
|
+
rotation_ingest_key: Optional[StrictStr] = Field(default=None, alias="rotationIngestKey")
|
|
85
|
+
rotation_secret_key: Optional[StrictStr] = Field(default=None, alias="rotationSecretKey")
|
|
86
|
+
secret_key: Optional[StrictStr] = Field(default=None, alias="secretKey")
|
|
87
|
+
secrets_manager_configuration: Optional[SecretManagerConfigurationWithOption] = Field(default=None, alias="secretsManagerConfiguration")
|
|
88
|
+
selected_resource_inventory: Optional[StrictStr] = Field(default=None, alias="selectedResourceInventory")
|
|
89
|
+
service_user_id: Optional[StrictStr] = Field(default=None, alias="serviceUserId")
|
|
90
|
+
spark_major_version: Optional[StrictStr] = Field(default=None, alias="sparkMajorVersion")
|
|
91
|
+
spark_runtime: Optional[StrictStr] = Field(default=None, alias="sparkRuntime")
|
|
92
|
+
status: Optional[StrictStr] = None
|
|
93
|
+
status_report_interval: StrictInt = Field(alias="statusReportInterval")
|
|
94
|
+
tenant_id: StrictStr = Field(alias="tenantId")
|
|
95
|
+
updated_at: Optional[datetime] = Field(default=None, alias="updatedAt")
|
|
96
|
+
upgrade_available: Optional[StrictBool] = Field(default=None, alias="upgradeAvailable")
|
|
97
|
+
url: Optional[StrictStr] = None
|
|
98
|
+
version: StrictStr
|
|
99
|
+
__properties: ClassVar[List[str]] = ["accessKey", "accessKeyExpiry", "additionalConfiguration", "autoRetryEnabled", "cloudProvider", "connectionCount", "createdAt", "dataplaneAccessKey", "dataplaneSecretKey", "dataplaneType", "dataplaneVersion", "deploymentDetails", "deploymentStackId", "deploymentStackRegion", "deploymentStatus", "description", "endpoint", "externalUrl", "globalStorageBasePath", "globalStorageConfig", "hbaseEnabled", "hdfsEnabled", "healthReport", "helmTemplateValues", "hiveEnabled", "id", "ingestKey", "installationType", "isHosted", "isInternalCall", "isPaused", "isRequestSentByDataplane", "isRotationInProgress", "kerberosEnabled", "lastStatusReportTime", "measureResultFsType", "name", "namespace", "parentPipelineId", "pausedAt", "pausedBy", "pipelineComputeConfig", "pipelineType", "registryPrefix", "registryUrl", "resourceStrategyType", "rotationAccessKey", "rotationIngestKey", "rotationSecretKey", "secretKey", "secretsManagerConfiguration", "selectedResourceInventory", "serviceUserId", "sparkMajorVersion", "sparkRuntime", "status", "statusReportInterval", "tenantId", "updatedAt", "upgradeAvailable", "url", "version"]
|
|
100
|
+
|
|
101
|
+
model_config = ConfigDict(
|
|
102
|
+
validate_by_name=True,
|
|
103
|
+
validate_by_alias=True,
|
|
104
|
+
validate_assignment=True,
|
|
105
|
+
protected_namespaces=(),
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def to_str(self) -> str:
|
|
110
|
+
"""Returns the string representation of the model using alias"""
|
|
111
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
112
|
+
|
|
113
|
+
def to_json(self) -> str:
|
|
114
|
+
"""Returns the JSON representation of the model using alias"""
|
|
115
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
116
|
+
|
|
117
|
+
@classmethod
|
|
118
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
119
|
+
"""Create an instance of AnalyticsPipeline from a JSON string"""
|
|
120
|
+
return cls.from_dict(json.loads(json_str))
|
|
121
|
+
|
|
122
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
123
|
+
"""Return the dictionary representation of the model using alias.
|
|
124
|
+
|
|
125
|
+
This has the following differences from calling pydantic's
|
|
126
|
+
`self.model_dump(by_alias=True)`:
|
|
127
|
+
|
|
128
|
+
* `None` is only added to the output dict for nullable fields that
|
|
129
|
+
were set at model initialization. Other fields with value `None`
|
|
130
|
+
are ignored.
|
|
131
|
+
"""
|
|
132
|
+
excluded_fields: Set[str] = set([
|
|
133
|
+
])
|
|
134
|
+
|
|
135
|
+
_dict = self.model_dump(
|
|
136
|
+
by_alias=True,
|
|
137
|
+
exclude=excluded_fields,
|
|
138
|
+
exclude_none=True,
|
|
139
|
+
)
|
|
140
|
+
# override the default output from pydantic by calling `to_dict()` of deployment_details
|
|
141
|
+
if self.deployment_details:
|
|
142
|
+
_dict['deploymentDetails'] = self.deployment_details.to_dict()
|
|
143
|
+
# override the default output from pydantic by calling `to_dict()` of endpoint
|
|
144
|
+
if self.endpoint:
|
|
145
|
+
_dict['endpoint'] = self.endpoint.to_dict()
|
|
146
|
+
# override the default output from pydantic by calling `to_dict()` of global_storage_config
|
|
147
|
+
if self.global_storage_config:
|
|
148
|
+
_dict['globalStorageConfig'] = self.global_storage_config.to_dict()
|
|
149
|
+
# override the default output from pydantic by calling `to_dict()` of health_report
|
|
150
|
+
if self.health_report:
|
|
151
|
+
_dict['healthReport'] = self.health_report.to_dict()
|
|
152
|
+
# override the default output from pydantic by calling `to_dict()` of pipeline_compute_config
|
|
153
|
+
if self.pipeline_compute_config:
|
|
154
|
+
_dict['pipelineComputeConfig'] = self.pipeline_compute_config.to_dict()
|
|
155
|
+
# override the default output from pydantic by calling `to_dict()` of secrets_manager_configuration
|
|
156
|
+
if self.secrets_manager_configuration:
|
|
157
|
+
_dict['secretsManagerConfiguration'] = self.secrets_manager_configuration.to_dict()
|
|
158
|
+
# set to None if access_key (nullable) is None
|
|
159
|
+
# and model_fields_set contains the field
|
|
160
|
+
if self.access_key is None and "access_key" in self.model_fields_set:
|
|
161
|
+
_dict['accessKey'] = None
|
|
162
|
+
|
|
163
|
+
# set to None if cloud_provider (nullable) is None
|
|
164
|
+
# and model_fields_set contains the field
|
|
165
|
+
if self.cloud_provider is None and "cloud_provider" in self.model_fields_set:
|
|
166
|
+
_dict['cloudProvider'] = None
|
|
167
|
+
|
|
168
|
+
# set to None if dataplane_access_key (nullable) is None
|
|
169
|
+
# and model_fields_set contains the field
|
|
170
|
+
if self.dataplane_access_key is None and "dataplane_access_key" in self.model_fields_set:
|
|
171
|
+
_dict['dataplaneAccessKey'] = None
|
|
172
|
+
|
|
173
|
+
# set to None if dataplane_secret_key (nullable) is None
|
|
174
|
+
# and model_fields_set contains the field
|
|
175
|
+
if self.dataplane_secret_key is None and "dataplane_secret_key" in self.model_fields_set:
|
|
176
|
+
_dict['dataplaneSecretKey'] = None
|
|
177
|
+
|
|
178
|
+
# set to None if dataplane_version (nullable) is None
|
|
179
|
+
# and model_fields_set contains the field
|
|
180
|
+
if self.dataplane_version is None and "dataplane_version" in self.model_fields_set:
|
|
181
|
+
_dict['dataplaneVersion'] = None
|
|
182
|
+
|
|
183
|
+
# set to None if deployment_stack_id (nullable) is None
|
|
184
|
+
# and model_fields_set contains the field
|
|
185
|
+
if self.deployment_stack_id is None and "deployment_stack_id" in self.model_fields_set:
|
|
186
|
+
_dict['deploymentStackId'] = None
|
|
187
|
+
|
|
188
|
+
# set to None if deployment_stack_region (nullable) is None
|
|
189
|
+
# and model_fields_set contains the field
|
|
190
|
+
if self.deployment_stack_region is None and "deployment_stack_region" in self.model_fields_set:
|
|
191
|
+
_dict['deploymentStackRegion'] = None
|
|
192
|
+
|
|
193
|
+
# set to None if deployment_status (nullable) is None
|
|
194
|
+
# and model_fields_set contains the field
|
|
195
|
+
if self.deployment_status is None and "deployment_status" in self.model_fields_set:
|
|
196
|
+
_dict['deploymentStatus'] = None
|
|
197
|
+
|
|
198
|
+
# set to None if description (nullable) is None
|
|
199
|
+
# and model_fields_set contains the field
|
|
200
|
+
if self.description is None and "description" in self.model_fields_set:
|
|
201
|
+
_dict['description'] = None
|
|
202
|
+
|
|
203
|
+
# set to None if external_url (nullable) is None
|
|
204
|
+
# and model_fields_set contains the field
|
|
205
|
+
if self.external_url is None and "external_url" in self.model_fields_set:
|
|
206
|
+
_dict['externalUrl'] = None
|
|
207
|
+
|
|
208
|
+
# set to None if global_storage_base_path (nullable) is None
|
|
209
|
+
# and model_fields_set contains the field
|
|
210
|
+
if self.global_storage_base_path is None and "global_storage_base_path" in self.model_fields_set:
|
|
211
|
+
_dict['globalStorageBasePath'] = None
|
|
212
|
+
|
|
213
|
+
# set to None if ingest_key (nullable) is None
|
|
214
|
+
# and model_fields_set contains the field
|
|
215
|
+
if self.ingest_key is None and "ingest_key" in self.model_fields_set:
|
|
216
|
+
_dict['ingestKey'] = None
|
|
217
|
+
|
|
218
|
+
# set to None if installation_type (nullable) is None
|
|
219
|
+
# and model_fields_set contains the field
|
|
220
|
+
if self.installation_type is None and "installation_type" in self.model_fields_set:
|
|
221
|
+
_dict['installationType'] = None
|
|
222
|
+
|
|
223
|
+
# set to None if measure_result_fs_type (nullable) is None
|
|
224
|
+
# and model_fields_set contains the field
|
|
225
|
+
if self.measure_result_fs_type is None and "measure_result_fs_type" in self.model_fields_set:
|
|
226
|
+
_dict['measureResultFsType'] = None
|
|
227
|
+
|
|
228
|
+
# set to None if namespace (nullable) is None
|
|
229
|
+
# and model_fields_set contains the field
|
|
230
|
+
if self.namespace is None and "namespace" in self.model_fields_set:
|
|
231
|
+
_dict['namespace'] = None
|
|
232
|
+
|
|
233
|
+
# set to None if paused_by (nullable) is None
|
|
234
|
+
# and model_fields_set contains the field
|
|
235
|
+
if self.paused_by is None and "paused_by" in self.model_fields_set:
|
|
236
|
+
_dict['pausedBy'] = None
|
|
237
|
+
|
|
238
|
+
# set to None if pipeline_type (nullable) is None
|
|
239
|
+
# and model_fields_set contains the field
|
|
240
|
+
if self.pipeline_type is None and "pipeline_type" in self.model_fields_set:
|
|
241
|
+
_dict['pipelineType'] = None
|
|
242
|
+
|
|
243
|
+
# set to None if registry_prefix (nullable) is None
|
|
244
|
+
# and model_fields_set contains the field
|
|
245
|
+
if self.registry_prefix is None and "registry_prefix" in self.model_fields_set:
|
|
246
|
+
_dict['registryPrefix'] = None
|
|
247
|
+
|
|
248
|
+
# set to None if registry_url (nullable) is None
|
|
249
|
+
# and model_fields_set contains the field
|
|
250
|
+
if self.registry_url is None and "registry_url" in self.model_fields_set:
|
|
251
|
+
_dict['registryUrl'] = None
|
|
252
|
+
|
|
253
|
+
# set to None if resource_strategy_type (nullable) is None
|
|
254
|
+
# and model_fields_set contains the field
|
|
255
|
+
if self.resource_strategy_type is None and "resource_strategy_type" in self.model_fields_set:
|
|
256
|
+
_dict['resourceStrategyType'] = None
|
|
257
|
+
|
|
258
|
+
# set to None if rotation_access_key (nullable) is None
|
|
259
|
+
# and model_fields_set contains the field
|
|
260
|
+
if self.rotation_access_key is None and "rotation_access_key" in self.model_fields_set:
|
|
261
|
+
_dict['rotationAccessKey'] = None
|
|
262
|
+
|
|
263
|
+
# set to None if rotation_ingest_key (nullable) is None
|
|
264
|
+
# and model_fields_set contains the field
|
|
265
|
+
if self.rotation_ingest_key is None and "rotation_ingest_key" in self.model_fields_set:
|
|
266
|
+
_dict['rotationIngestKey'] = None
|
|
267
|
+
|
|
268
|
+
# set to None if rotation_secret_key (nullable) is None
|
|
269
|
+
# and model_fields_set contains the field
|
|
270
|
+
if self.rotation_secret_key is None and "rotation_secret_key" in self.model_fields_set:
|
|
271
|
+
_dict['rotationSecretKey'] = None
|
|
272
|
+
|
|
273
|
+
# set to None if secret_key (nullable) is None
|
|
274
|
+
# and model_fields_set contains the field
|
|
275
|
+
if self.secret_key is None and "secret_key" in self.model_fields_set:
|
|
276
|
+
_dict['secretKey'] = None
|
|
277
|
+
|
|
278
|
+
# set to None if selected_resource_inventory (nullable) is None
|
|
279
|
+
# and model_fields_set contains the field
|
|
280
|
+
if self.selected_resource_inventory is None and "selected_resource_inventory" in self.model_fields_set:
|
|
281
|
+
_dict['selectedResourceInventory'] = None
|
|
282
|
+
|
|
283
|
+
# set to None if service_user_id (nullable) is None
|
|
284
|
+
# and model_fields_set contains the field
|
|
285
|
+
if self.service_user_id is None and "service_user_id" in self.model_fields_set:
|
|
286
|
+
_dict['serviceUserId'] = None
|
|
287
|
+
|
|
288
|
+
# set to None if spark_major_version (nullable) is None
|
|
289
|
+
# and model_fields_set contains the field
|
|
290
|
+
if self.spark_major_version is None and "spark_major_version" in self.model_fields_set:
|
|
291
|
+
_dict['sparkMajorVersion'] = None
|
|
292
|
+
|
|
293
|
+
# set to None if spark_runtime (nullable) is None
|
|
294
|
+
# and model_fields_set contains the field
|
|
295
|
+
if self.spark_runtime is None and "spark_runtime" in self.model_fields_set:
|
|
296
|
+
_dict['sparkRuntime'] = None
|
|
297
|
+
|
|
298
|
+
# set to None if status (nullable) is None
|
|
299
|
+
# and model_fields_set contains the field
|
|
300
|
+
if self.status is None and "status" in self.model_fields_set:
|
|
301
|
+
_dict['status'] = None
|
|
302
|
+
|
|
303
|
+
# set to None if url (nullable) is None
|
|
304
|
+
# and model_fields_set contains the field
|
|
305
|
+
if self.url is None and "url" in self.model_fields_set:
|
|
306
|
+
_dict['url'] = None
|
|
307
|
+
|
|
308
|
+
return _dict
|
|
309
|
+
|
|
310
|
+
@classmethod
|
|
311
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
312
|
+
"""Create an instance of AnalyticsPipeline from a dict"""
|
|
313
|
+
if obj is None:
|
|
314
|
+
return None
|
|
315
|
+
|
|
316
|
+
if not isinstance(obj, dict):
|
|
317
|
+
return cls.model_validate(obj)
|
|
318
|
+
|
|
319
|
+
_obj = cls.model_validate({
|
|
320
|
+
"accessKey": obj.get("accessKey"),
|
|
321
|
+
"accessKeyExpiry": obj.get("accessKeyExpiry"),
|
|
322
|
+
"additionalConfiguration": obj.get("additionalConfiguration"),
|
|
323
|
+
"autoRetryEnabled": obj.get("autoRetryEnabled"),
|
|
324
|
+
"cloudProvider": obj.get("cloudProvider"),
|
|
325
|
+
"connectionCount": obj.get("connectionCount"),
|
|
326
|
+
"createdAt": obj.get("createdAt"),
|
|
327
|
+
"dataplaneAccessKey": obj.get("dataplaneAccessKey"),
|
|
328
|
+
"dataplaneSecretKey": obj.get("dataplaneSecretKey"),
|
|
329
|
+
"dataplaneType": obj.get("dataplaneType"),
|
|
330
|
+
"dataplaneVersion": obj.get("dataplaneVersion"),
|
|
331
|
+
"deploymentDetails": HostedDPDeploymentResponse.from_dict(obj["deploymentDetails"]) if obj.get("deploymentDetails") is not None else None,
|
|
332
|
+
"deploymentStackId": obj.get("deploymentStackId"),
|
|
333
|
+
"deploymentStackRegion": obj.get("deploymentStackRegion"),
|
|
334
|
+
"deploymentStatus": obj.get("deploymentStatus"),
|
|
335
|
+
"description": obj.get("description"),
|
|
336
|
+
"endpoint": AnalyticsPipelineEndpoint.from_dict(obj["endpoint"]) if obj.get("endpoint") is not None else None,
|
|
337
|
+
"externalUrl": obj.get("externalUrl"),
|
|
338
|
+
"globalStorageBasePath": obj.get("globalStorageBasePath"),
|
|
339
|
+
"globalStorageConfig": GlobalStorageConfigDTO.from_dict(obj["globalStorageConfig"]) if obj.get("globalStorageConfig") is not None else None,
|
|
340
|
+
"hbaseEnabled": obj.get("hbaseEnabled"),
|
|
341
|
+
"hdfsEnabled": obj.get("hdfsEnabled"),
|
|
342
|
+
"healthReport": DataplaneHealthMetrics.from_dict(obj["healthReport"]) if obj.get("healthReport") is not None else None,
|
|
343
|
+
"helmTemplateValues": obj.get("helmTemplateValues"),
|
|
344
|
+
"hiveEnabled": obj.get("hiveEnabled"),
|
|
345
|
+
"id": obj.get("id"),
|
|
346
|
+
"ingestKey": obj.get("ingestKey"),
|
|
347
|
+
"installationType": obj.get("installationType"),
|
|
348
|
+
"isHosted": obj.get("isHosted"),
|
|
349
|
+
"isInternalCall": obj.get("isInternalCall"),
|
|
350
|
+
"isPaused": obj.get("isPaused"),
|
|
351
|
+
"isRequestSentByDataplane": obj.get("isRequestSentByDataplane"),
|
|
352
|
+
"isRotationInProgress": obj.get("isRotationInProgress"),
|
|
353
|
+
"kerberosEnabled": obj.get("kerberosEnabled"),
|
|
354
|
+
"lastStatusReportTime": obj.get("lastStatusReportTime"),
|
|
355
|
+
"measureResultFsType": obj.get("measureResultFsType"),
|
|
356
|
+
"name": obj.get("name"),
|
|
357
|
+
"namespace": obj.get("namespace"),
|
|
358
|
+
"parentPipelineId": obj.get("parentPipelineId"),
|
|
359
|
+
"pausedAt": obj.get("pausedAt"),
|
|
360
|
+
"pausedBy": obj.get("pausedBy"),
|
|
361
|
+
"pipelineComputeConfig": PipelineComputeConfig.from_dict(obj["pipelineComputeConfig"]) if obj.get("pipelineComputeConfig") is not None else None,
|
|
362
|
+
"pipelineType": obj.get("pipelineType"),
|
|
363
|
+
"registryPrefix": obj.get("registryPrefix"),
|
|
364
|
+
"registryUrl": obj.get("registryUrl"),
|
|
365
|
+
"resourceStrategyType": obj.get("resourceStrategyType"),
|
|
366
|
+
"rotationAccessKey": obj.get("rotationAccessKey"),
|
|
367
|
+
"rotationIngestKey": obj.get("rotationIngestKey"),
|
|
368
|
+
"rotationSecretKey": obj.get("rotationSecretKey"),
|
|
369
|
+
"secretKey": obj.get("secretKey"),
|
|
370
|
+
"secretsManagerConfiguration": SecretManagerConfigurationWithOption.from_dict(obj["secretsManagerConfiguration"]) if obj.get("secretsManagerConfiguration") is not None else None,
|
|
371
|
+
"selectedResourceInventory": obj.get("selectedResourceInventory"),
|
|
372
|
+
"serviceUserId": obj.get("serviceUserId"),
|
|
373
|
+
"sparkMajorVersion": obj.get("sparkMajorVersion"),
|
|
374
|
+
"sparkRuntime": obj.get("sparkRuntime"),
|
|
375
|
+
"status": obj.get("status"),
|
|
376
|
+
"statusReportInterval": obj.get("statusReportInterval"),
|
|
377
|
+
"tenantId": obj.get("tenantId"),
|
|
378
|
+
"updatedAt": obj.get("updatedAt"),
|
|
379
|
+
"upgradeAvailable": obj.get("upgradeAvailable"),
|
|
380
|
+
"url": obj.get("url"),
|
|
381
|
+
"version": obj.get("version")
|
|
382
|
+
})
|
|
383
|
+
return _obj
|
|
384
|
+
|
|
385
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
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 datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class AnalyticsPipelineEndpoint(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
AnalyticsPipelineEndpoint
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
analytics_pipeline_id: Optional[StrictInt] = Field(default=None, alias="analyticsPipelineId")
|
|
32
|
+
ca_root: Optional[StrictStr] = Field(default=None, alias="caRoot")
|
|
33
|
+
certificate: Optional[StrictStr] = None
|
|
34
|
+
created_at: Optional[datetime] = Field(default=None, alias="createdAt")
|
|
35
|
+
expires_at: Optional[datetime] = Field(default=None, alias="expiresAt")
|
|
36
|
+
id: Optional[StrictInt] = None
|
|
37
|
+
key: Optional[StrictStr] = None
|
|
38
|
+
tenant_id: Optional[StrictStr] = Field(default=None, alias="tenantId")
|
|
39
|
+
type: StrictStr = Field(description="Allowed values at generation time: EXTERNAL, TUNNEL_V1, TUNNEL_V2.")
|
|
40
|
+
updated_at: Optional[datetime] = Field(default=None, alias="updatedAt")
|
|
41
|
+
url: Optional[StrictStr] = None
|
|
42
|
+
use_certificate: StrictBool = Field(alias="useCertificate")
|
|
43
|
+
__properties: ClassVar[List[str]] = ["analyticsPipelineId", "caRoot", "certificate", "createdAt", "expiresAt", "id", "key", "tenantId", "type", "updatedAt", "url", "useCertificate"]
|
|
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 AnalyticsPipelineEndpoint 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 ca_root (nullable) is None
|
|
85
|
+
# and model_fields_set contains the field
|
|
86
|
+
if self.ca_root is None and "ca_root" in self.model_fields_set:
|
|
87
|
+
_dict['caRoot'] = None
|
|
88
|
+
|
|
89
|
+
# set to None if certificate (nullable) is None
|
|
90
|
+
# and model_fields_set contains the field
|
|
91
|
+
if self.certificate is None and "certificate" in self.model_fields_set:
|
|
92
|
+
_dict['certificate'] = None
|
|
93
|
+
|
|
94
|
+
# set to None if key (nullable) is None
|
|
95
|
+
# and model_fields_set contains the field
|
|
96
|
+
if self.key is None and "key" in self.model_fields_set:
|
|
97
|
+
_dict['key'] = None
|
|
98
|
+
|
|
99
|
+
# set to None if tenant_id (nullable) is None
|
|
100
|
+
# and model_fields_set contains the field
|
|
101
|
+
if self.tenant_id is None and "tenant_id" in self.model_fields_set:
|
|
102
|
+
_dict['tenantId'] = None
|
|
103
|
+
|
|
104
|
+
# set to None if url (nullable) is None
|
|
105
|
+
# and model_fields_set contains the field
|
|
106
|
+
if self.url is None and "url" in self.model_fields_set:
|
|
107
|
+
_dict['url'] = None
|
|
108
|
+
|
|
109
|
+
return _dict
|
|
110
|
+
|
|
111
|
+
@classmethod
|
|
112
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
113
|
+
"""Create an instance of AnalyticsPipelineEndpoint from a dict"""
|
|
114
|
+
if obj is None:
|
|
115
|
+
return None
|
|
116
|
+
|
|
117
|
+
if not isinstance(obj, dict):
|
|
118
|
+
return cls.model_validate(obj)
|
|
119
|
+
|
|
120
|
+
_obj = cls.model_validate({
|
|
121
|
+
"analyticsPipelineId": obj.get("analyticsPipelineId"),
|
|
122
|
+
"caRoot": obj.get("caRoot"),
|
|
123
|
+
"certificate": obj.get("certificate"),
|
|
124
|
+
"createdAt": obj.get("createdAt"),
|
|
125
|
+
"expiresAt": obj.get("expiresAt"),
|
|
126
|
+
"id": obj.get("id"),
|
|
127
|
+
"key": obj.get("key"),
|
|
128
|
+
"tenantId": obj.get("tenantId"),
|
|
129
|
+
"type": obj.get("type"),
|
|
130
|
+
"updatedAt": obj.get("updatedAt"),
|
|
131
|
+
"url": obj.get("url"),
|
|
132
|
+
"useCertificate": obj.get("useCertificate")
|
|
133
|
+
})
|
|
134
|
+
return _obj
|
|
135
|
+
|
|
136
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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 AnomalyConfig(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
AnomalyConfig
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
success_sensitivity_level: StrictStr = Field(description="Allowed values at generation time: HIGH, MEDIUM, LOW.", alias="successSensitivityLevel")
|
|
31
|
+
warning_sensitivity_level: Optional[StrictStr] = Field(default=None, description="Allowed values at generation time: HIGH, MEDIUM, LOW.", alias="warningSensitivityLevel")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["successSensitivityLevel", "warningSensitivityLevel"]
|
|
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 AnomalyConfig 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
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
# set to None if warning_sensitivity_level (nullable) is None
|
|
74
|
+
# and model_fields_set contains the field
|
|
75
|
+
if self.warning_sensitivity_level is None and "warning_sensitivity_level" in self.model_fields_set:
|
|
76
|
+
_dict['warningSensitivityLevel'] = None
|
|
77
|
+
|
|
78
|
+
return _dict
|
|
79
|
+
|
|
80
|
+
@classmethod
|
|
81
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
82
|
+
"""Create an instance of AnomalyConfig from a dict"""
|
|
83
|
+
if obj is None:
|
|
84
|
+
return None
|
|
85
|
+
|
|
86
|
+
if not isinstance(obj, dict):
|
|
87
|
+
return cls.model_validate(obj)
|
|
88
|
+
|
|
89
|
+
_obj = cls.model_validate({
|
|
90
|
+
"successSensitivityLevel": obj.get("successSensitivityLevel"),
|
|
91
|
+
"warningSensitivityLevel": obj.get("warningSensitivityLevel")
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|