From 33c13f5043b320e461204aa20b0a1700095c695b Mon Sep 17 00:00:00 2001 From: yifan-zhou922 Date: Fri, 17 Sep 2021 13:41:37 +0800 Subject: [PATCH 1/4] Update purviewcatalog.json --- .../preview/2021-09-01/purviewcatalog.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json index f281866cf52f..cebecae04d8d 100644 --- a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json @@ -3565,7 +3565,7 @@ "CatalogCollection" ], "description": "Creates or updates an entity to a collection.\nExisting entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName.\nMap and array of collections are not well supported. E.g., array>, array>.", - "operationId": "CatalogCollection_createOrUpdate", + "operationId": "CatalogCollection_CreateOrUpdate", "x-ms-examples": { "CatalogCollection_createOrUpdate": { "$ref": "./examples/CatalogCollection_createOrUpdate.json" @@ -3610,7 +3610,7 @@ "CatalogCollection" ], "description": "Creates or updates entities in bulk to a collection.\nExisting entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName.\nMap and array of collections are not well supported. E.g., array>, array>.", - "operationId": "CatalogCollection_createOrUpdateBulk", + "operationId": "CatalogCollection_CreateOrUpdateBulk", "x-ms-examples": { "CatalogCollection_createOrUpdateBulk": { "$ref": "./examples/CatalogCollection_createOrUpdateBulk.json" @@ -3655,7 +3655,7 @@ "CatalogCollection" ], "description": "Move existing entities to the target collection.", - "operationId": "CatalogCollection_moveEntitiesToCollection", + "operationId": "CatalogCollection_MoveEntitiesToCollection", "x-ms-examples": { "CatalogCollection_moveEntitiesToCollection": { "$ref": "./examples/CatalogCollection_moveEntitiesToCollection.json" From f25f241ac0de2299d367daced8325702d0ba0831 Mon Sep 17 00:00:00 2001 From: yifan-zhou922 Date: Fri, 17 Sep 2021 13:49:04 +0800 Subject: [PATCH 2/4] Update purviewcatalog.json --- .../preview/2021-09-01/purviewcatalog.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json index cebecae04d8d..bd890f7a7111 100644 --- a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json @@ -3567,8 +3567,8 @@ "description": "Creates or updates an entity to a collection.\nExisting entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName.\nMap and array of collections are not well supported. E.g., array>, array>.", "operationId": "CatalogCollection_CreateOrUpdate", "x-ms-examples": { - "CatalogCollection_createOrUpdate": { - "$ref": "./examples/CatalogCollection_createOrUpdate.json" + "CatalogCollection_CreateOrUpdate": { + "$ref": "./examples/CatalogCollection_CreateOrUpdate.json" } }, "parameters": [ @@ -3612,8 +3612,8 @@ "description": "Creates or updates entities in bulk to a collection.\nExisting entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName.\nMap and array of collections are not well supported. E.g., array>, array>.", "operationId": "CatalogCollection_CreateOrUpdateBulk", "x-ms-examples": { - "CatalogCollection_createOrUpdateBulk": { - "$ref": "./examples/CatalogCollection_createOrUpdateBulk.json" + "CatalogCollection_CreateOrUpdateBulk": { + "$ref": "./examples/CatalogCollection_CreateOrUpdateBulk.json" } }, "parameters": [ @@ -3657,8 +3657,8 @@ "description": "Move existing entities to the target collection.", "operationId": "CatalogCollection_MoveEntitiesToCollection", "x-ms-examples": { - "CatalogCollection_moveEntitiesToCollection": { - "$ref": "./examples/CatalogCollection_moveEntitiesToCollection.json" + "CatalogCollection_MoveEntitiesToCollection": { + "$ref": "./examples/CatalogCollection_MoveEntitiesToCollection.json" } }, "parameters": [ From 2b8e3e24b829011e9d94057d060479edd653cff2 Mon Sep 17 00:00:00 2001 From: yifan-zhou922 Date: Fri, 17 Sep 2021 13:58:07 +0800 Subject: [PATCH 3/4] delete --- .../CatalogCollection_createOrUpdate.json | 39 ------------ .../CatalogCollection_createOrUpdateBulk.json | 61 ------------------- ...ogCollection_moveEntitiesToCollection.json | 45 -------------- 3 files changed, 145 deletions(-) delete mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdate.json delete mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdateBulk.json delete mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_moveEntitiesToCollection.json diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdate.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdate.json deleted file mode 100644 index 888e51feab3e..000000000000 --- a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "Endpoint": "{Endpoint}", - "collection": "ExampleCollection", - "api-version": "2021-09-01", - "entity": { - "referredEntities": {}, - "entity": { - "typeName": "azure_storage_account", - "attributes": { - "name": "exampleaccount", - "qualifiedName": "https://exampleaccount.core.windows.net" - } - } - } - }, - "responses": { - "200": { - "body": { - "mutatedEntities": { - "CREATE": [ - { - "typeName": "azure_storage_account", - "attributes": { - "qualifiedName": "https://exampleaccount.core.windows.net" - }, - "lastModifiedTS": "1", - "guid": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6", - "status": "ACTIVE" - } - ] - }, - "guidAssignments": { - "-9514774903018162": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" - } - } - } - } -} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdateBulk.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdateBulk.json deleted file mode 100644 index 3279bfbf0238..000000000000 --- a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_createOrUpdateBulk.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "Endpoint": "{Endpoint}", - "collection": "ExampleCollection", - "api-version": "2021-09-01", - "entities": { - "referredEntities": {}, - "entities": [ - { - "typeName": "azure_storage_account", - "attributes": { - "qualifiedName": "exampleaccount", - "name": "exampleaccount", - "description": "Example Description" - } - }, - { - "typeName": "azure_storage_account", - "attributes": { - "qualifiedName": "exampleaccount2", - "name": "exampleaccount2" - } - } - ] - } - }, - "responses": { - "200": { - "body": { - "mutatedEntities": { - "UPDATE": [ - { - "typeName": "azure_storage_account", - "attributes": { - "qualifiedName": "exampleaccount" - }, - "lastModifiedTS": "2", - "guid": "b2f9c306-cf65-4bb0-878e-cfaafde156b1", - "status": "ACTIVE" - } - ], - "CREATE": [ - { - "typeName": "azure_storage_account", - "attributes": { - "qualifiedName": "exampleaccount2" - }, - "lastModifiedTS": "1", - "guid": "321493e3-3fb7-4b3e-9df7-3b69154174c2", - "status": "ACTIVE" - } - ] - }, - "guidAssignments": { - "-9514774903018192": "321493e3-3fb7-4b3e-9df7-3b69154174c2", - "-9514774903018193": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - } - } - } - } -} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_moveEntitiesToCollection.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_moveEntitiesToCollection.json deleted file mode 100644 index bc9c78428ab4..000000000000 --- a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_moveEntitiesToCollection.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "Endpoint": "{Endpoint}", - "collection": "ExampleNewCollection", - "api-version": "2021-09-01", - "moveEntitiesRequest": { - "entityGuids": [ - "321493e3-3fb7-4b3e-9df7-3b69154174c2", - "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - ] - } - }, - "responses": { - "200": { - "body": { - "mutatedEntities": { - "UPDATE": [ - { - "typeName": "azure_storage_account", - "attributes": { - "qualifiedName": "exampleaccount" - }, - "lastModifiedTS": "3", - "guid": "b2f9c306-cf65-4bb0-878e-cfaafde156b1", - "status": "ACTIVE" - }, - { - "typeName": "azure_storage_account", - "attributes": { - "qualifiedName": "exampleaccount2" - }, - "lastModifiedTS": "2", - "guid": "321493e3-3fb7-4b3e-9df7-3b69154174c2", - "status": "ACTIVE" - } - ] - }, - "guidAssignments": { - "-9514774903018192": "321493e3-3fb7-4b3e-9df7-3b69154174c2", - "-9514774903018193": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - } - } - } - } -} From 75c781fe6ab829b1c29cdc11c8cbc983bc0a0b50 Mon Sep 17 00:00:00 2001 From: yifan-zhou922 Date: Fri, 17 Sep 2021 13:58:24 +0800 Subject: [PATCH 4/4] add --- .../CatalogCollection_CreateOrUpdate.json | 39 ++++++++++++ .../CatalogCollection_CreateOrUpdateBulk.json | 61 +++++++++++++++++++ ...ogCollection_MoveEntitiesToCollection.json | 45 ++++++++++++++ 3 files changed, 145 insertions(+) create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdate.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdateBulk.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_MoveEntitiesToCollection.json diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdate.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdate.json new file mode 100644 index 000000000000..888e51feab3e --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "collection": "ExampleCollection", + "api-version": "2021-09-01", + "entity": { + "referredEntities": {}, + "entity": { + "typeName": "azure_storage_account", + "attributes": { + "name": "exampleaccount", + "qualifiedName": "https://exampleaccount.core.windows.net" + } + } + } + }, + "responses": { + "200": { + "body": { + "mutatedEntities": { + "CREATE": [ + { + "typeName": "azure_storage_account", + "attributes": { + "qualifiedName": "https://exampleaccount.core.windows.net" + }, + "lastModifiedTS": "1", + "guid": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6", + "status": "ACTIVE" + } + ] + }, + "guidAssignments": { + "-9514774903018162": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdateBulk.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdateBulk.json new file mode 100644 index 000000000000..3279bfbf0238 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_CreateOrUpdateBulk.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "collection": "ExampleCollection", + "api-version": "2021-09-01", + "entities": { + "referredEntities": {}, + "entities": [ + { + "typeName": "azure_storage_account", + "attributes": { + "qualifiedName": "exampleaccount", + "name": "exampleaccount", + "description": "Example Description" + } + }, + { + "typeName": "azure_storage_account", + "attributes": { + "qualifiedName": "exampleaccount2", + "name": "exampleaccount2" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "mutatedEntities": { + "UPDATE": [ + { + "typeName": "azure_storage_account", + "attributes": { + "qualifiedName": "exampleaccount" + }, + "lastModifiedTS": "2", + "guid": "b2f9c306-cf65-4bb0-878e-cfaafde156b1", + "status": "ACTIVE" + } + ], + "CREATE": [ + { + "typeName": "azure_storage_account", + "attributes": { + "qualifiedName": "exampleaccount2" + }, + "lastModifiedTS": "1", + "guid": "321493e3-3fb7-4b3e-9df7-3b69154174c2", + "status": "ACTIVE" + } + ] + }, + "guidAssignments": { + "-9514774903018192": "321493e3-3fb7-4b3e-9df7-3b69154174c2", + "-9514774903018193": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_MoveEntitiesToCollection.json b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_MoveEntitiesToCollection.json new file mode 100644 index 000000000000..bc9c78428ab4 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/examples/CatalogCollection_MoveEntitiesToCollection.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "collection": "ExampleNewCollection", + "api-version": "2021-09-01", + "moveEntitiesRequest": { + "entityGuids": [ + "321493e3-3fb7-4b3e-9df7-3b69154174c2", + "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + ] + } + }, + "responses": { + "200": { + "body": { + "mutatedEntities": { + "UPDATE": [ + { + "typeName": "azure_storage_account", + "attributes": { + "qualifiedName": "exampleaccount" + }, + "lastModifiedTS": "3", + "guid": "b2f9c306-cf65-4bb0-878e-cfaafde156b1", + "status": "ACTIVE" + }, + { + "typeName": "azure_storage_account", + "attributes": { + "qualifiedName": "exampleaccount2" + }, + "lastModifiedTS": "2", + "guid": "321493e3-3fb7-4b3e-9df7-3b69154174c2", + "status": "ACTIVE" + } + ] + }, + "guidAssignments": { + "-9514774903018192": "321493e3-3fb7-4b3e-9df7-3b69154174c2", + "-9514774903018193": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + } + } + } + } +}