Source code for pyatlan.model.assets.a_d_l_s

# SPDX-License-Identifier: Apache-2.0
# Copyright 2025 Atlan Pte. Ltd.


from __future__ import annotations

from typing import ClassVar, List, Optional

from pydantic.v1 import Field, validator

from pyatlan.model.fields.atlan_fields import KeywordField, KeywordTextField
from pyatlan.model.structs import AzureTag

from .object_store import ObjectStore


[docs] class ADLS(ObjectStore): """Description""" type_name: str = Field(default="ADLS", allow_mutation=False) @validator("type_name") def validate_type_name(cls, v): if v != "ADLS": raise ValueError("must be ADLS") return v def __setattr__(self, name, value): if name in ADLS._convenience_properties: return object.__setattr__(self, name, value) super().__setattr__(name, value) ADLS_ACCOUNT_QUALIFIED_NAME: ClassVar[KeywordTextField] = KeywordTextField( "adlsAccountQualifiedName", "adlsAccountQualifiedName", "adlsAccountQualifiedName.text", ) """ Unique name of the account for this ADLS asset. """ ADLS_ACCOUNT_NAME: ClassVar[KeywordTextField] = KeywordTextField( "adlsAccountName", "adlsAccountName.keyword", "adlsAccountName" ) """ Name of the account for this ADLS asset. """ AZURE_RESOURCE_ID: ClassVar[KeywordTextField] = KeywordTextField( "azureResourceId", "azureResourceId", "azureResourceId.text" ) """ Resource identifier of this asset in Azure. """ AZURE_LOCATION: ClassVar[KeywordField] = KeywordField( "azureLocation", "azureLocation" ) """ Location of this asset in Azure. """ ADLS_ACCOUNT_SECONDARY_LOCATION: ClassVar[KeywordField] = KeywordField( "adlsAccountSecondaryLocation", "adlsAccountSecondaryLocation" ) """ Secondary location of the ADLS account. """ AZURE_TAGS: ClassVar[KeywordField] = KeywordField("azureTags", "azureTags") """ Tags that have been applied to this asset in Azure. """ _convenience_properties: ClassVar[List[str]] = [ "adls_account_qualified_name", "adls_account_name", "azure_resource_id", "azure_location", "adls_account_secondary_location", "azure_tags", ] @property def adls_account_qualified_name(self) -> Optional[str]: return ( None if self.attributes is None else self.attributes.adls_account_qualified_name ) @adls_account_qualified_name.setter def adls_account_qualified_name(self, adls_account_qualified_name: Optional[str]): if self.attributes is None: self.attributes = self.Attributes() self.attributes.adls_account_qualified_name = adls_account_qualified_name @property def adls_account_name(self) -> Optional[str]: return None if self.attributes is None else self.attributes.adls_account_name @adls_account_name.setter def adls_account_name(self, adls_account_name: Optional[str]): if self.attributes is None: self.attributes = self.Attributes() self.attributes.adls_account_name = adls_account_name @property def azure_resource_id(self) -> Optional[str]: return None if self.attributes is None else self.attributes.azure_resource_id @azure_resource_id.setter def azure_resource_id(self, azure_resource_id: Optional[str]): if self.attributes is None: self.attributes = self.Attributes() self.attributes.azure_resource_id = azure_resource_id @property def azure_location(self) -> Optional[str]: return None if self.attributes is None else self.attributes.azure_location @azure_location.setter def azure_location(self, azure_location: Optional[str]): if self.attributes is None: self.attributes = self.Attributes() self.attributes.azure_location = azure_location @property def adls_account_secondary_location(self) -> Optional[str]: return ( None if self.attributes is None else self.attributes.adls_account_secondary_location ) @adls_account_secondary_location.setter def adls_account_secondary_location( self, adls_account_secondary_location: Optional[str] ): if self.attributes is None: self.attributes = self.Attributes() self.attributes.adls_account_secondary_location = ( adls_account_secondary_location ) @property def azure_tags(self) -> Optional[List[AzureTag]]: return None if self.attributes is None else self.attributes.azure_tags @azure_tags.setter def azure_tags(self, azure_tags: Optional[List[AzureTag]]): if self.attributes is None: self.attributes = self.Attributes() self.attributes.azure_tags = azure_tags class Attributes(ObjectStore.Attributes): adls_account_qualified_name: Optional[str] = Field(default=None, description="") adls_account_name: Optional[str] = Field(default=None, description="") azure_resource_id: Optional[str] = Field(default=None, description="") azure_location: Optional[str] = Field(default=None, description="") adls_account_secondary_location: Optional[str] = Field( default=None, description="" ) azure_tags: Optional[List[AzureTag]] = Field(default=None, description="") attributes: ADLS.Attributes = Field( default_factory=lambda: ADLS.Attributes(), description=( "Map of attributes in the instance and their values. " "The specific keys of this map will vary by type, " "so are described in the sub-types of this schema." ), )
ADLS.Attributes.update_forward_refs()