Skip to content

Commit 6cbd422

Browse files
authored
Merge pull request #639 from atlanhq/bump-to-release-6.1.1
[release] Bump to release `6.1.1`
2 parents 22b4d11 + 085c490 commit 6cbd422

17 files changed

+570
-46
lines changed

HISTORY.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## 6.1.1 (May 21, 2025)
2+
3+
### New Features
4+
5+
- Added a utility method (`AssetClient.process_assets()`) to simplify processing (e.g: updating) assets while iterating through search results.
6+
7+
### Bug Fixes
8+
9+
- Fixed an issue where the search pagination loop would break due to invalid assets.
10+
- If `typeName` is not explicitly provided in the search request, the SDK now defaults to retrieving only assets with the `Referenceable` supertype. This avoids including non-asset records in the response.
11+
12+
### QOL Improvements
13+
14+
- Regenerated the latest typedef models.
15+
- Added a retry loop to ensure the token is fully active before retrying the original request after a `401` response.
16+
117
## 6.1.0 (May 13, 2025)
218

319
### New Features

pyatlan/model/assets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"SnowflakeStage",
7777
"SnowflakeStream",
7878
"DatabricksUnityCatalogTag",
79-
"CalculationView",
8079
"Database",
80+
"CalculationView",
8181
"Procedure",
8282
"SnowflakeTag",
8383
"MatillionGroup",

pyatlan/model/assets/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ __all__ = [
7373
"SnowflakeStage",
7474
"SnowflakeStream",
7575
"DatabricksUnityCatalogTag",
76-
"CalculationView",
7776
"Database",
77+
"CalculationView",
7878
"Procedure",
7979
"SnowflakeTag",
8080
"MatillionGroup",

pyatlan/model/assets/auth_service.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ def __setattr__(self, name, value):
3939
"""
4040
TBC
4141
"""
42+
ABAC_SERVICE: ClassVar[KeywordField] = KeywordField("abacService", "abacService")
43+
"""
44+
TBC
45+
"""
4246
AUTH_SERVICE_IS_ENABLED: ClassVar[BooleanField] = BooleanField(
4347
"authServiceIsEnabled", "authServiceIsEnabled"
4448
)
@@ -61,6 +65,7 @@ def __setattr__(self, name, value):
6165
_convenience_properties: ClassVar[List[str]] = [
6266
"auth_service_type",
6367
"tag_service",
68+
"abac_service",
6469
"auth_service_is_enabled",
6570
"auth_service_config",
6671
"auth_service_policy_last_sync",
@@ -86,6 +91,16 @@ def tag_service(self, tag_service: Optional[str]):
8691
self.attributes = self.Attributes()
8792
self.attributes.tag_service = tag_service
8893

94+
@property
95+
def abac_service(self) -> Optional[str]:
96+
return None if self.attributes is None else self.attributes.abac_service
97+
98+
@abac_service.setter
99+
def abac_service(self, abac_service: Optional[str]):
100+
if self.attributes is None:
101+
self.attributes = self.Attributes()
102+
self.attributes.abac_service = abac_service
103+
89104
@property
90105
def auth_service_is_enabled(self) -> Optional[bool]:
91106
return (
@@ -127,6 +142,7 @@ def auth_service_policy_last_sync(
127142
class Attributes(Asset.Attributes):
128143
auth_service_type: Optional[str] = Field(default=None, description="")
129144
tag_service: Optional[str] = Field(default=None, description="")
145+
abac_service: Optional[str] = Field(default=None, description="")
130146
auth_service_is_enabled: Optional[bool] = Field(default=None, description="")
131147
auth_service_config: Optional[Dict[str, str]] = Field(
132148
default=None, description=""

pyatlan/model/assets/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@
190190
SnowflakeStage.Attributes.update_forward_refs(**localns)
191191
SnowflakeStream.Attributes.update_forward_refs(**localns)
192192
DatabricksUnityCatalogTag.Attributes.update_forward_refs(**localns)
193-
CalculationView.Attributes.update_forward_refs(**localns)
194193
Database.Attributes.update_forward_refs(**localns)
194+
CalculationView.Attributes.update_forward_refs(**localns)
195195
Procedure.Attributes.update_forward_refs(**localns)
196196
SnowflakeTag.Attributes.update_forward_refs(**localns)
197197
MatillionGroup.Attributes.update_forward_refs(**localns)

pyatlan/model/assets/core/auth_policy.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
KeywordField,
1616
NumericField,
1717
RelationField,
18+
TextField,
1819
)
1920
from pyatlan.model.structs import AuthPolicyCondition, AuthPolicyValiditySchedule
2021
from pyatlan.utils import init_guid, validate_required_fields
@@ -80,6 +81,12 @@ def __setattr__(self, name, value):
8081
return object.__setattr__(self, name, value)
8182
super().__setattr__(name, value)
8283

84+
POLICY_FILTER_CRITERIA: ClassVar[TextField] = TextField(
85+
"policyFilterCriteria", "policyFilterCriteria"
86+
)
87+
"""
88+
TBC
89+
"""
8390
POLICY_TYPE: ClassVar[KeywordField] = KeywordField("policyType", "policyType")
8491
"""
8592
TBC
@@ -181,6 +188,7 @@ def __setattr__(self, name, value):
181188
"""
182189

183190
_convenience_properties: ClassVar[List[str]] = [
191+
"policy_filter_criteria",
184192
"policy_type",
185193
"policy_service_name",
186194
"policy_category",
@@ -201,6 +209,18 @@ def __setattr__(self, name, value):
201209
"access_control",
202210
]
203211

212+
@property
213+
def policy_filter_criteria(self) -> Optional[str]:
214+
return (
215+
None if self.attributes is None else self.attributes.policy_filter_criteria
216+
)
217+
218+
@policy_filter_criteria.setter
219+
def policy_filter_criteria(self, policy_filter_criteria: Optional[str]):
220+
if self.attributes is None:
221+
self.attributes = self.Attributes()
222+
self.attributes.policy_filter_criteria = policy_filter_criteria
223+
204224
@property
205225
def policy_type(self) -> Optional[AuthPolicyType]:
206226
return None if self.attributes is None else self.attributes.policy_type
@@ -398,6 +418,7 @@ def access_control(self, access_control: Optional[AccessControl]):
398418
self.attributes.access_control = access_control
399419

400420
class Attributes(Asset.Attributes):
421+
policy_filter_criteria: Optional[str] = Field(default=None, description="")
401422
policy_type: Optional[AuthPolicyType] = Field(default=None, description="")
402423
policy_service_name: Optional[str] = Field(default=None, description="")
403424
policy_category: Optional[str] = Field(default=None, description="")

pyatlan/model/assets/core/column.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,18 @@ def __setattr__(self, name, value):
201201
"""
202202
Sub-data type of this column.
203203
"""
204+
COLUMN_COMPRESSION: ClassVar[KeywordField] = KeywordField(
205+
"columnCompression", "columnCompression"
206+
)
207+
"""
208+
Compression type of this column.
209+
"""
210+
COLUMN_ENCODING: ClassVar[KeywordField] = KeywordField(
211+
"columnEncoding", "columnEncoding"
212+
)
213+
"""
214+
Encoding type of this column.
215+
"""
204216
RAW_DATA_TYPE_DEFINITION: ClassVar[TextField] = TextField(
205217
"rawDataTypeDefinition", "rawDataTypeDefinition"
206218
)
@@ -548,6 +560,8 @@ def __setattr__(self, name, value):
548560
_convenience_properties: ClassVar[List[str]] = [
549561
"data_type",
550562
"sub_data_type",
563+
"column_compression",
564+
"column_encoding",
551565
"raw_data_type_definition",
552566
"order",
553567
"nested_column_order",
@@ -639,6 +653,26 @@ def sub_data_type(self, sub_data_type: Optional[str]):
639653
self.attributes = self.Attributes()
640654
self.attributes.sub_data_type = sub_data_type
641655

656+
@property
657+
def column_compression(self) -> Optional[str]:
658+
return None if self.attributes is None else self.attributes.column_compression
659+
660+
@column_compression.setter
661+
def column_compression(self, column_compression: Optional[str]):
662+
if self.attributes is None:
663+
self.attributes = self.Attributes()
664+
self.attributes.column_compression = column_compression
665+
666+
@property
667+
def column_encoding(self) -> Optional[str]:
668+
return None if self.attributes is None else self.attributes.column_encoding
669+
670+
@column_encoding.setter
671+
def column_encoding(self, column_encoding: Optional[str]):
672+
if self.attributes is None:
673+
self.attributes = self.Attributes()
674+
self.attributes.column_encoding = column_encoding
675+
642676
@property
643677
def raw_data_type_definition(self) -> Optional[str]:
644678
return (
@@ -1452,6 +1486,8 @@ def table_partition(self, table_partition: Optional[TablePartition]):
14521486
class Attributes(SQL.Attributes):
14531487
data_type: Optional[str] = Field(default=None, description="")
14541488
sub_data_type: Optional[str] = Field(default=None, description="")
1489+
column_compression: Optional[str] = Field(default=None, description="")
1490+
column_encoding: Optional[str] = Field(default=None, description="")
14551491
raw_data_type_definition: Optional[str] = Field(default=None, description="")
14561492
order: Optional[int] = Field(default=None, description="")
14571493
nested_column_order: Optional[str] = Field(default=None, description="")

0 commit comments

Comments
 (0)