Skip to content

Commit

Permalink
Merge pull request #388 from atlanhq/DVX-647
Browse files Browse the repository at this point in the history
DVX-647: (temp) Fixed class generator by adding core assets exclusion
  • Loading branch information
Aryamanz29 authored Sep 23, 2024
2 parents 0605e6a + 2487226 commit 42b23c5
Show file tree
Hide file tree
Showing 92 changed files with 5,387 additions and 1,338 deletions.
10 changes: 10 additions & 0 deletions docs/asset/anomalo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _anomalo:

Anomalo
=======

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: Anomalo
:members:
10 changes: 10 additions & 0 deletions docs/asset/anomalocheck.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _anomalocheck:

AnomaloCheck
============

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: AnomaloCheck
:members:
10 changes: 10 additions & 0 deletions docs/asset/cosmosmongodbaccount.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _cosmosmongodbaccount:

CosmosMongoDBAccount
====================

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: CosmosMongoDBAccount
:members:
10 changes: 10 additions & 0 deletions docs/asset/model.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _model:

Model
=====

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: Model
:members:
10 changes: 10 additions & 0 deletions docs/asset/modelattribute.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _modelattribute:

ModelAttribute
==============

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: ModelAttribute
:members:
10 changes: 10 additions & 0 deletions docs/asset/modelattributeassociation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _modelattributeassociation:

ModelAttributeAssociation
=========================

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: ModelAttributeAssociation
:members:
10 changes: 10 additions & 0 deletions docs/asset/modeldatamodel.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _modeldatamodel:

ModelDataModel
==============

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: ModelDataModel
:members:
10 changes: 10 additions & 0 deletions docs/asset/modelentity.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _modelentity:

ModelEntity
===========

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: ModelEntity
:members:
10 changes: 10 additions & 0 deletions docs/asset/modelentityassociation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _modelentityassociation:

ModelEntityAssociation
======================

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: ModelEntityAssociation
:members:
10 changes: 10 additions & 0 deletions docs/asset/modelversion.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _modelversion:

ModelVersion
============

.. module:: pyatlan.model.assets
:no-index:

.. autoclass:: ModelVersion
:members:
13 changes: 10 additions & 3 deletions docs/assets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ You can interact with all of the following different kinds of assets:
asset/airflow
asset/airflowdag
asset/airflowtask
asset/app
asset/appapplication
asset/appcomponent
asset/anomalo
asset/anomalocheck
asset/asset
asset/atlasglossary
asset/atlasglossarycategory
Expand Down Expand Up @@ -66,6 +65,7 @@ You can interact with all of the following different kinds of assets:
asset/columnprocess
asset/connection
asset/cosmosmongodb
asset/cosmosmongodbaccount
asset/cosmosmongodbcollection
asset/cosmosmongodbdatabase
asset/cube
Expand Down Expand Up @@ -163,6 +163,13 @@ You can interact with all of the following different kinds of assets:
asset/modequery
asset/modereport
asset/modeworkspace
asset/model
asset/modelattribute
asset/modelattributeassociation
asset/modeldatamodel
asset/modelentity
asset/modelentityassociation
asset/modelversion
asset/mongodb
asset/mongodbcollection
asset/mongodbdatabase
Expand Down
8 changes: 6 additions & 2 deletions pyatlan/generator/class_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
("atlas_operation", "AtlasOperation"),
("matillion_job_type", "MatillionJobType"),
("incident_severity", "IncidentSeverity"),
("table_type", "TableType"),
]
PRIMITIVE_MAPPINGS = {
"string": "str",
Expand Down Expand Up @@ -215,8 +216,11 @@ class AssetInfo:
"Referenceable",
"Asset",
"AuthPolicy",
"DataModel",
"DataModeling",
"PowerBIDatasource",
"PowerBIReport",
"PowerBITile",
"PowerBIColumn",
"PowerBIMeasure",
"MatillionGroup",
"Stakeholder",
"StakeholderTitle",
Expand Down
2 changes: 2 additions & 0 deletions pyatlan/generator/templates/imports.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ from pyatlan.model.enums import (
SchemaRegistrySchemaCompatibility,
SchemaRegistrySchemaType,
SourceCostUnitType,
table_type,
)
from pyatlan.model.fields.atlan_fields import (
BooleanField,
Expand Down Expand Up @@ -102,6 +103,7 @@ from pyatlan.model.structs import (
PopularityInsights,
SourceTagAttribute,
StarredDetails,
DbtJobRun,
)
from pyatlan.utils import (
init_guid,
Expand Down
39 changes: 23 additions & 16 deletions pyatlan/model/assets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"Folder",
"Airflow",
"DataContract",
"App",
"DataQuality",
"BI",
"Resource",
"DataMesh",
"SQL",
Expand All @@ -34,11 +34,11 @@
"Stakeholder",
"AirflowDag",
"AirflowTask",
"AppApplication",
"AppComponent",
"Anomalo",
"MonteCarlo",
"Metric",
"Soda",
"PowerBI",
"Readme",
"File",
"Link",
Expand Down Expand Up @@ -70,9 +70,21 @@
"DbtSource",
"SparkJob",
"SchemaRegistrySubject",
"AnomaloCheck",
"MCIncident",
"MCMonitor",
"SodaCheck",
"PowerBIReport",
"PowerBIMeasure",
"PowerBIColumn",
"PowerBITable",
"PowerBITile",
"PowerBIDatasource",
"PowerBIWorkspace",
"PowerBIDataset",
"PowerBIDashboard",
"PowerBIDataflow",
"PowerBIPage",
"SnowflakeDynamicTable",
"DynamoDBSecondaryIndex",
],
Expand All @@ -95,12 +107,12 @@
"purpose": ["Purpose"],
"collection": ["Collection"],
"object_store": ["ObjectStore"],
"b_i": ["BI"],
"saa_s": ["SaaS"],
"d_m": ["DM"],
"multi_dimensional_dataset": ["MultiDimensionalDataset"],
"event_store": ["EventStore"],
"no_s_q_l": ["NoSQL"],
"model": ["Model"],
"insight": ["Insight"],
"a_p_i": ["API"],
"google": ["Google"],
Expand All @@ -123,7 +135,6 @@
"metabase": ["Metabase"],
"quick_sight": ["QuickSight"],
"thoughtspot": ["Thoughtspot"],
"power_b_i": ["PowerBI"],
"micro_strategy": ["MicroStrategy"],
"cognos": ["Cognos"],
"superset": ["Superset"],
Expand All @@ -147,6 +158,12 @@
"dynamo_d_b": ["DynamoDB"],
"mongo_d_b": ["MongoDB"],
"dbt_tag": ["DbtTag"],
"model_attribute": ["ModelAttribute"],
"model_entity": ["ModelEntity"],
"model_version": ["ModelVersion"],
"model_entity_association": ["ModelEntityAssociation"],
"model_attribute_association": ["ModelAttributeAssociation"],
"model_data_model": ["ModelDataModel"],
"a_p_i_spec": ["APISpec"],
"a_p_i_path": ["APIPath"],
"data_studio_asset": ["DataStudioAsset"],
Expand Down Expand Up @@ -221,17 +238,6 @@
"thoughtspot_view": ["ThoughtspotView"],
"thoughtspot_dashlet": ["ThoughtspotDashlet"],
"thoughtspot_answer": ["ThoughtspotAnswer"],
"power_b_i_report": ["PowerBIReport"],
"power_b_i_measure": ["PowerBIMeasure"],
"power_b_i_column": ["PowerBIColumn"],
"power_b_i_table": ["PowerBITable"],
"power_b_i_tile": ["PowerBITile"],
"power_b_i_datasource": ["PowerBIDatasource"],
"power_b_i_workspace": ["PowerBIWorkspace"],
"power_b_i_dataset": ["PowerBIDataset"],
"power_b_i_dashboard": ["PowerBIDashboard"],
"power_b_i_dataflow": ["PowerBIDataflow"],
"power_b_i_page": ["PowerBIPage"],
"micro_strategy_report": ["MicroStrategyReport"],
"micro_strategy_project": ["MicroStrategyProject"],
"micro_strategy_metric": ["MicroStrategyMetric"],
Expand Down Expand Up @@ -275,6 +281,7 @@
"kafka_consumer_group": ["KafkaConsumerGroup"],
"azure_service_bus_namespace": ["AzureServiceBusNamespace"],
"azure_service_bus_topic": ["AzureServiceBusTopic"],
"cosmos_mongo_d_b_account": ["CosmosMongoDBAccount"],
"cosmos_mongo_d_b_collection": ["CosmosMongoDBCollection"],
"cosmos_mongo_d_b_database": ["CosmosMongoDBDatabase"],
"qlik_stream": ["QlikStream"],
Expand Down
Loading

0 comments on commit 42b23c5

Please sign in to comment.