This is an automated email from the ASF dual-hosted git repository.

sarath pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 25ba9b3  ATLAS-3856 Create new entity typeDefs for Apache Ozone
25ba9b3 is described below

commit 25ba9b30b916269bc20a5b99b9bc326f5b9e18d3
Author: nikhilbonte <[email protected]>
AuthorDate: Tue Jun 23 10:15:57 2020 +0530

    ATLAS-3856 Create new entity typeDefs for Apache Ozone
    
    Signed-off-by: Sarath Subramanian <[email protected]>
---
 addons/models/3000-Cloud/3050-ozone-typedefs.json | 262 ++++++++++++++++++++++
 1 file changed, 262 insertions(+)

diff --git a/addons/models/3000-Cloud/3050-ozone-typedefs.json 
b/addons/models/3000-Cloud/3050-ozone-typedefs.json
new file mode 100644
index 0000000..0f0a5c9
--- /dev/null
+++ b/addons/models/3000-Cloud/3050-ozone-typedefs.json
@@ -0,0 +1,262 @@
+{
+    "enumDefs": [
+        {
+            "name": "ozone_storage_type",
+            "description": "The storage type for an Ozone bucket",
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "elementDefs": [
+                {
+                    "ordinal": 0,
+                    "value": "RAM_DISK"
+                },
+                {
+                    "ordinal": 1,
+                    "value": "SSD"
+                },
+                {
+                    "ordinal": 2,
+                    "value": "DISK"
+                },
+                {
+                    "ordinal": 3,
+                    "value": "ARCHIVE"
+                }
+            ]
+        },
+        {
+            "name": "ozone_replication_type",
+            "description": "The replication type for an Ozone key",
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "elementDefs": [
+                {
+                    "ordinal": 0,
+                    "value": "RATIS"
+                },
+                {
+                    "ordinal": 1,
+                    "value": "STAND_ALONE"
+                },
+                {
+                    "ordinal": 2,
+                    "value": "CHAINED"
+                }
+            ]
+        }
+    ],
+    "structDefs": [
+        {
+            "name": "ozone_key_location",
+            "description": "Location information about Ozone key",
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "attributeDefs": [
+                {
+                    "name": "containerID",
+                    "typeName": "long",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": false,
+                    "isUnique": false
+                },
+                {
+                    "name": "localID",
+                    "typeName": "long",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": false,
+                    "isUnique": false
+                },
+                {
+                    "name": "length",
+                    "typeName": "long",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": false,
+                    "isUnique": false
+                },
+                {
+                    "name": "offset",
+                    "typeName": "long",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": false,
+                    "isUnique": false
+                }
+            ]
+        }
+    ],
+    "classificationDefs": [],
+    "entityDefs": [
+        {
+            "name": "ozone_volume",
+            "description": "Atlas Type representing an volume in an Ozone 
Object Store",
+            "superTypes": [
+                "DataSet"
+            ],
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "attributeDefs": [
+                {
+                    "name": "admin",
+                    "typeName": "string",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "quota",
+                    "typeName": "long",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "creationTime",
+                    "typeName": "date",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                }
+            ]
+        },
+        {
+            "name": "ozone_bucket",
+            "description": "Atlas Type representing a bucket in an Ozone 
Object Store Volume",
+            "superTypes": [
+                "DataSet"
+            ],
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "attributeDefs": [
+                {
+                    "name": "storageType",
+                    "typeName": "ozone_storage_type",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "versioningEnabled",
+                    "typeName": "boolean",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "encryptionKeyName",
+                    "typeName": "string",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "creationTime",
+                    "typeName": "date",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                }
+            ]
+        },
+        {
+            "name": "ozone_key",
+            "description": "Atlas Type representing a key in an Ozone Object 
Store Bucket",
+            "superTypes": [
+                "DataSet"
+            ],
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "attributeDefs": [
+                {
+                    "name": "dataSize",
+                    "typeName": "long",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "replicationType",
+                    "typeName": "ozone_replication_type",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "replicationFactor",
+                    "typeName": "int",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "keyLocations",
+                    "typeName": "array<ozone_key_location>",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
+                    "name": "creationTime",
+                    "typeName": "date",
+                    "cardinality": "SINGLE",
+                    "isIndexable": true,
+                    "isOptional": true,
+                    "isUnique": false
+                }
+            ]
+        }
+    ],
+    "relationshipDefs": [
+        {
+            "name": "ozone_volume_buckets",
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "relationshipCategory": "COMPOSITION",
+            "endDef1": {
+                "type": "ozone_volume",
+                "name": "buckets",
+                "isContainer": true,
+                "cardinality": "SET"
+            },
+            "endDef2": {
+                "type": "ozone_bucket",
+                "name": "volume",
+                "isContainer": false,
+                "cardinality": "SINGLE"
+            },
+            "propagateTags": "NONE"
+        },
+        {
+            "name": "ozone_bucket_keys",
+            "serviceType": "ozone",
+            "typeVersion": "1.0",
+            "relationshipCategory": "COMPOSITION",
+            "endDef1": {
+                "type": "ozone_bucket",
+                "name": "keys",
+                "isContainer": true,
+                "cardinality": "SET"
+            },
+            "endDef2": {
+                "type": "ozone_key",
+                "name": "bucket",
+                "isContainer": false,
+                "cardinality": "SINGLE"
+            },
+            "propagateTags": "NONE"
+        }
+    ]
+}
\ No newline at end of file

Reply via email to