Skip to content

Commit

Permalink
Renaming date match date format check, documentation of the check.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrczarnas committed Feb 5, 2024
1 parent e077783 commit f685604
Show file tree
Hide file tree
Showing 79 changed files with 9,469 additions and 1,369 deletions.
16 changes: 8 additions & 8 deletions distribution/python/dqops/client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,6 @@
from .column_datetime_daily_partitioned_checks_spec_custom_checks import (
ColumnDatetimeDailyPartitionedChecksSpecCustomChecks,
)
from .column_datetime_date_match_format_percent_check_spec import (
ColumnDatetimeDateMatchFormatPercentCheckSpec,
)
from .column_datetime_date_match_format_percent_sensor_parameters_spec import (
ColumnDatetimeDateMatchFormatPercentSensorParametersSpec,
)
from .column_datetime_date_values_in_future_percent_sensor_parameters_spec import (
ColumnDatetimeDateValuesInFuturePercentSensorParametersSpec,
)
Expand Down Expand Up @@ -1098,6 +1092,12 @@
from .column_text_length_in_range_percent_check_spec import (
ColumnTextLengthInRangePercentCheckSpec,
)
from .column_text_match_date_format_percent_check_spec import (
ColumnTextMatchDateFormatPercentCheckSpec,
)
from .column_text_match_date_format_percent_sensor_parameters_spec import (
ColumnTextMatchDateFormatPercentSensorParametersSpec,
)
from .column_text_matching_date_pattern_percent_check_spec import (
ColumnTextMatchingDatePatternPercentCheckSpec,
)
Expand Down Expand Up @@ -2049,8 +2049,6 @@
"ColumnDatetimeDailyMonitoringChecksSpecCustomChecks",
"ColumnDatetimeDailyPartitionedChecksSpec",
"ColumnDatetimeDailyPartitionedChecksSpecCustomChecks",
"ColumnDatetimeDateMatchFormatPercentCheckSpec",
"ColumnDatetimeDateMatchFormatPercentSensorParametersSpec",
"ColumnDatetimeDateValuesInFuturePercentSensorParametersSpec",
"ColumnDatetimeMonthlyMonitoringChecksSpec",
"ColumnDatetimeMonthlyMonitoringChecksSpecCustomChecks",
Expand Down Expand Up @@ -2306,6 +2304,8 @@
"ColumnTextLengthBelowMinLengthCheckSpec",
"ColumnTextLengthBelowMinLengthPercentCheckSpec",
"ColumnTextLengthInRangePercentCheckSpec",
"ColumnTextMatchDateFormatPercentCheckSpec",
"ColumnTextMatchDateFormatPercentSensorParametersSpec",
"ColumnTextMatchingDatePatternPercentCheckSpec",
"ColumnTextMatchingNamePatternPercentCheckSpec",
"ColumnTextMaxLengthCheckSpec",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from ..models.column_datetime_daily_monitoring_checks_spec_custom_checks import (
ColumnDatetimeDailyMonitoringChecksSpecCustomChecks,
)
from ..models.column_datetime_date_match_format_percent_check_spec import (
ColumnDatetimeDateMatchFormatPercentCheckSpec,
from ..models.column_text_match_date_format_percent_check_spec import (
ColumnTextMatchDateFormatPercentCheckSpec,
)


Expand All @@ -32,7 +32,7 @@ class ColumnDatetimeDailyMonitoringChecksSpec:
parameters and rules should match the type of the configured sensor and rule for the custom check.
daily_date_values_in_future_percent (Union[Unset, ColumnDateValuesInFuturePercentCheckSpec]):
daily_date_in_range_percent (Union[Unset, ColumnDateInRangePercentCheckSpec]):
daily_date_match_format_percent (Union[Unset, ColumnDatetimeDateMatchFormatPercentCheckSpec]):
daily_text_match_date_format_percent (Union[Unset, ColumnTextMatchDateFormatPercentCheckSpec]):
"""

custom_checks: Union[
Expand All @@ -44,8 +44,8 @@ class ColumnDatetimeDailyMonitoringChecksSpec:
daily_date_in_range_percent: Union[
Unset, "ColumnDateInRangePercentCheckSpec"
] = UNSET
daily_date_match_format_percent: Union[
Unset, "ColumnDatetimeDateMatchFormatPercentCheckSpec"
daily_text_match_date_format_percent: Union[
Unset, "ColumnTextMatchDateFormatPercentCheckSpec"
] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)

Expand All @@ -64,10 +64,10 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.daily_date_in_range_percent, Unset):
daily_date_in_range_percent = self.daily_date_in_range_percent.to_dict()

daily_date_match_format_percent: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.daily_date_match_format_percent, Unset):
daily_date_match_format_percent = (
self.daily_date_match_format_percent.to_dict()
daily_text_match_date_format_percent: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.daily_text_match_date_format_percent, Unset):
daily_text_match_date_format_percent = (
self.daily_text_match_date_format_percent.to_dict()
)

field_dict: Dict[str, Any] = {}
Expand All @@ -81,10 +81,10 @@ def to_dict(self) -> Dict[str, Any]:
] = daily_date_values_in_future_percent
if daily_date_in_range_percent is not UNSET:
field_dict["daily_date_in_range_percent"] = daily_date_in_range_percent
if daily_date_match_format_percent is not UNSET:
if daily_text_match_date_format_percent is not UNSET:
field_dict[
"daily_date_match_format_percent"
] = daily_date_match_format_percent
"daily_text_match_date_format_percent"
] = daily_text_match_date_format_percent

return field_dict

Expand All @@ -99,8 +99,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
from ..models.column_datetime_daily_monitoring_checks_spec_custom_checks import (
ColumnDatetimeDailyMonitoringChecksSpecCustomChecks,
)
from ..models.column_datetime_date_match_format_percent_check_spec import (
ColumnDatetimeDateMatchFormatPercentCheckSpec,
from ..models.column_text_match_date_format_percent_check_spec import (
ColumnTextMatchDateFormatPercentCheckSpec,
)

d = src_dict.copy()
Expand Down Expand Up @@ -139,26 +139,26 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_daily_date_in_range_percent
)

_daily_date_match_format_percent = d.pop(
"daily_date_match_format_percent", UNSET
_daily_text_match_date_format_percent = d.pop(
"daily_text_match_date_format_percent", UNSET
)
daily_date_match_format_percent: Union[
Unset, ColumnDatetimeDateMatchFormatPercentCheckSpec
daily_text_match_date_format_percent: Union[
Unset, ColumnTextMatchDateFormatPercentCheckSpec
]
if isinstance(_daily_date_match_format_percent, Unset):
daily_date_match_format_percent = UNSET
if isinstance(_daily_text_match_date_format_percent, Unset):
daily_text_match_date_format_percent = UNSET
else:
daily_date_match_format_percent = (
ColumnDatetimeDateMatchFormatPercentCheckSpec.from_dict(
_daily_date_match_format_percent
daily_text_match_date_format_percent = (
ColumnTextMatchDateFormatPercentCheckSpec.from_dict(
_daily_text_match_date_format_percent
)
)

column_datetime_daily_monitoring_checks_spec = cls(
custom_checks=custom_checks,
daily_date_values_in_future_percent=daily_date_values_in_future_percent,
daily_date_in_range_percent=daily_date_in_range_percent,
daily_date_match_format_percent=daily_date_match_format_percent,
daily_text_match_date_format_percent=daily_text_match_date_format_percent,
)

column_datetime_daily_monitoring_checks_spec.additional_properties = d
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from ..models.column_datetime_daily_partitioned_checks_spec_custom_checks import (
ColumnDatetimeDailyPartitionedChecksSpecCustomChecks,
)
from ..models.column_datetime_date_match_format_percent_check_spec import (
ColumnDatetimeDateMatchFormatPercentCheckSpec,
from ..models.column_text_match_date_format_percent_check_spec import (
ColumnTextMatchDateFormatPercentCheckSpec,
)


Expand All @@ -32,7 +32,7 @@ class ColumnDatetimeDailyPartitionedChecksSpec:
parameters and rules should match the type of the configured sensor and rule for the custom check.
daily_partition_date_values_in_future_percent (Union[Unset, ColumnDateValuesInFuturePercentCheckSpec]):
daily_partition_date_in_range_percent (Union[Unset, ColumnDateInRangePercentCheckSpec]):
daily_partition_date_match_format_percent (Union[Unset, ColumnDatetimeDateMatchFormatPercentCheckSpec]):
daily_partition_text_match_date_format_percent (Union[Unset, ColumnTextMatchDateFormatPercentCheckSpec]):
"""

custom_checks: Union[
Expand All @@ -44,8 +44,8 @@ class ColumnDatetimeDailyPartitionedChecksSpec:
daily_partition_date_in_range_percent: Union[
Unset, "ColumnDateInRangePercentCheckSpec"
] = UNSET
daily_partition_date_match_format_percent: Union[
Unset, "ColumnDatetimeDateMatchFormatPercentCheckSpec"
daily_partition_text_match_date_format_percent: Union[
Unset, "ColumnTextMatchDateFormatPercentCheckSpec"
] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)

Expand All @@ -68,10 +68,12 @@ def to_dict(self) -> Dict[str, Any]:
self.daily_partition_date_in_range_percent.to_dict()
)

daily_partition_date_match_format_percent: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.daily_partition_date_match_format_percent, Unset):
daily_partition_date_match_format_percent = (
self.daily_partition_date_match_format_percent.to_dict()
daily_partition_text_match_date_format_percent: Union[
Unset, Dict[str, Any]
] = UNSET
if not isinstance(self.daily_partition_text_match_date_format_percent, Unset):
daily_partition_text_match_date_format_percent = (
self.daily_partition_text_match_date_format_percent.to_dict()
)

field_dict: Dict[str, Any] = {}
Expand All @@ -87,10 +89,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict[
"daily_partition_date_in_range_percent"
] = daily_partition_date_in_range_percent
if daily_partition_date_match_format_percent is not UNSET:
if daily_partition_text_match_date_format_percent is not UNSET:
field_dict[
"daily_partition_date_match_format_percent"
] = daily_partition_date_match_format_percent
"daily_partition_text_match_date_format_percent"
] = daily_partition_text_match_date_format_percent

return field_dict

Expand All @@ -105,8 +107,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
from ..models.column_datetime_daily_partitioned_checks_spec_custom_checks import (
ColumnDatetimeDailyPartitionedChecksSpecCustomChecks,
)
from ..models.column_datetime_date_match_format_percent_check_spec import (
ColumnDatetimeDateMatchFormatPercentCheckSpec,
from ..models.column_text_match_date_format_percent_check_spec import (
ColumnTextMatchDateFormatPercentCheckSpec,
)

d = src_dict.copy()
Expand Down Expand Up @@ -153,26 +155,26 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)

_daily_partition_date_match_format_percent = d.pop(
"daily_partition_date_match_format_percent", UNSET
_daily_partition_text_match_date_format_percent = d.pop(
"daily_partition_text_match_date_format_percent", UNSET
)
daily_partition_date_match_format_percent: Union[
Unset, ColumnDatetimeDateMatchFormatPercentCheckSpec
daily_partition_text_match_date_format_percent: Union[
Unset, ColumnTextMatchDateFormatPercentCheckSpec
]
if isinstance(_daily_partition_date_match_format_percent, Unset):
daily_partition_date_match_format_percent = UNSET
if isinstance(_daily_partition_text_match_date_format_percent, Unset):
daily_partition_text_match_date_format_percent = UNSET
else:
daily_partition_date_match_format_percent = (
ColumnDatetimeDateMatchFormatPercentCheckSpec.from_dict(
_daily_partition_date_match_format_percent
daily_partition_text_match_date_format_percent = (
ColumnTextMatchDateFormatPercentCheckSpec.from_dict(
_daily_partition_text_match_date_format_percent
)
)

column_datetime_daily_partitioned_checks_spec = cls(
custom_checks=custom_checks,
daily_partition_date_values_in_future_percent=daily_partition_date_values_in_future_percent,
daily_partition_date_in_range_percent=daily_partition_date_in_range_percent,
daily_partition_date_match_format_percent=daily_partition_date_match_format_percent,
daily_partition_text_match_date_format_percent=daily_partition_text_match_date_format_percent,
)

column_datetime_daily_partitioned_checks_spec.additional_properties = d
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from ..models.column_date_values_in_future_percent_check_spec import (
ColumnDateValuesInFuturePercentCheckSpec,
)
from ..models.column_datetime_date_match_format_percent_check_spec import (
ColumnDatetimeDateMatchFormatPercentCheckSpec,
)
from ..models.column_datetime_monthly_monitoring_checks_spec_custom_checks import (
ColumnDatetimeMonthlyMonitoringChecksSpecCustomChecks,
)
from ..models.column_text_match_date_format_percent_check_spec import (
ColumnTextMatchDateFormatPercentCheckSpec,
)


T = TypeVar("T", bound="ColumnDatetimeMonthlyMonitoringChecksSpec")
Expand All @@ -32,7 +32,7 @@ class ColumnDatetimeMonthlyMonitoringChecksSpec:
parameters and rules should match the type of the configured sensor and rule for the custom check.
monthly_date_values_in_future_percent (Union[Unset, ColumnDateValuesInFuturePercentCheckSpec]):
monthly_date_in_range_percent (Union[Unset, ColumnDateInRangePercentCheckSpec]):
monthly_date_match_format_percent (Union[Unset, ColumnDatetimeDateMatchFormatPercentCheckSpec]):
monthly_text_match_date_format_percent (Union[Unset, ColumnTextMatchDateFormatPercentCheckSpec]):
"""

custom_checks: Union[
Expand All @@ -44,8 +44,8 @@ class ColumnDatetimeMonthlyMonitoringChecksSpec:
monthly_date_in_range_percent: Union[
Unset, "ColumnDateInRangePercentCheckSpec"
] = UNSET
monthly_date_match_format_percent: Union[
Unset, "ColumnDatetimeDateMatchFormatPercentCheckSpec"
monthly_text_match_date_format_percent: Union[
Unset, "ColumnTextMatchDateFormatPercentCheckSpec"
] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)

Expand All @@ -64,10 +64,10 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.monthly_date_in_range_percent, Unset):
monthly_date_in_range_percent = self.monthly_date_in_range_percent.to_dict()

monthly_date_match_format_percent: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.monthly_date_match_format_percent, Unset):
monthly_date_match_format_percent = (
self.monthly_date_match_format_percent.to_dict()
monthly_text_match_date_format_percent: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.monthly_text_match_date_format_percent, Unset):
monthly_text_match_date_format_percent = (
self.monthly_text_match_date_format_percent.to_dict()
)

field_dict: Dict[str, Any] = {}
Expand All @@ -81,10 +81,10 @@ def to_dict(self) -> Dict[str, Any]:
] = monthly_date_values_in_future_percent
if monthly_date_in_range_percent is not UNSET:
field_dict["monthly_date_in_range_percent"] = monthly_date_in_range_percent
if monthly_date_match_format_percent is not UNSET:
if monthly_text_match_date_format_percent is not UNSET:
field_dict[
"monthly_date_match_format_percent"
] = monthly_date_match_format_percent
"monthly_text_match_date_format_percent"
] = monthly_text_match_date_format_percent

return field_dict

Expand All @@ -96,12 +96,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
from ..models.column_date_values_in_future_percent_check_spec import (
ColumnDateValuesInFuturePercentCheckSpec,
)
from ..models.column_datetime_date_match_format_percent_check_spec import (
ColumnDatetimeDateMatchFormatPercentCheckSpec,
)
from ..models.column_datetime_monthly_monitoring_checks_spec_custom_checks import (
ColumnDatetimeMonthlyMonitoringChecksSpecCustomChecks,
)
from ..models.column_text_match_date_format_percent_check_spec import (
ColumnTextMatchDateFormatPercentCheckSpec,
)

d = src_dict.copy()
_custom_checks = d.pop("custom_checks", UNSET)
Expand Down Expand Up @@ -141,26 +141,26 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_monthly_date_in_range_percent
)

_monthly_date_match_format_percent = d.pop(
"monthly_date_match_format_percent", UNSET
_monthly_text_match_date_format_percent = d.pop(
"monthly_text_match_date_format_percent", UNSET
)
monthly_date_match_format_percent: Union[
Unset, ColumnDatetimeDateMatchFormatPercentCheckSpec
monthly_text_match_date_format_percent: Union[
Unset, ColumnTextMatchDateFormatPercentCheckSpec
]
if isinstance(_monthly_date_match_format_percent, Unset):
monthly_date_match_format_percent = UNSET
if isinstance(_monthly_text_match_date_format_percent, Unset):
monthly_text_match_date_format_percent = UNSET
else:
monthly_date_match_format_percent = (
ColumnDatetimeDateMatchFormatPercentCheckSpec.from_dict(
_monthly_date_match_format_percent
monthly_text_match_date_format_percent = (
ColumnTextMatchDateFormatPercentCheckSpec.from_dict(
_monthly_text_match_date_format_percent
)
)

column_datetime_monthly_monitoring_checks_spec = cls(
custom_checks=custom_checks,
monthly_date_values_in_future_percent=monthly_date_values_in_future_percent,
monthly_date_in_range_percent=monthly_date_in_range_percent,
monthly_date_match_format_percent=monthly_date_match_format_percent,
monthly_text_match_date_format_percent=monthly_text_match_date_format_percent,
)

column_datetime_monthly_monitoring_checks_spec.additional_properties = d
Expand Down
Loading

0 comments on commit f685604

Please sign in to comment.