From a9e8ec26f7d01788c8b94c582a7de0b82c00ce66 Mon Sep 17 00:00:00 2001 From: yifan-zhou922 Date: Sun, 4 Feb 2024 17:08:40 +0800 Subject: [PATCH] update the createTime/updateTIme for an issue in csharp generator --- .../models.tsp | 36 ++++------- .../stable/2023-09-01/purviewdatamap.json | 64 +++++++++---------- 2 files changed, 44 insertions(+), 56 deletions(-) diff --git a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp index cd5e6c21a703..684b77d52357 100644 --- a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp +++ b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp @@ -269,8 +269,7 @@ model AtlasEntity { classifications?: AtlasClassification[]; @doc("The created time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - createTime?: utcDateTime; + createTime?: int64; @doc("The user who created the record.") createdBy?: string; @@ -314,8 +313,7 @@ removed. status?: EntityStatus; @doc("The update time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - updateTime?: utcDateTime; + updateTime?: int64; @doc("The user who updated the record.") updatedBy?: string; @@ -658,15 +656,13 @@ model AtlasGlossaryBaseObject { lastModifiedTS?: string; @doc("The created time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - createTime?: utcDateTime; + createTime?: int64; @doc("The user who created the record.") createdBy?: string; @doc("The update time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - updateTime?: utcDateTime; + updateTime?: int64; @doc("The user who updated the record.") updatedBy?: string; @@ -1069,12 +1065,10 @@ distinguish whether a record is an asset or a term. objectType?: string; @doc("The create time of the record. The Unix epoch format.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - createTime?: utcDateTime; + createTime?: int64; @doc("The last update time of the record. The Unix epoch format.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - updateTime?: utcDateTime; + updateTime?: int64; @doc("The GUID of the record.") id?: string; @@ -1231,12 +1225,10 @@ distinguish whether a record is an asset or a term. objectType?: string; @doc("The create time of the record. The Unix epoch format.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - createTime?: utcDateTime; + createTime?: int64; @doc("The last update time of the record. The Unix epoch format.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - updateTime?: utcDateTime; + updateTime?: int64; @doc("The GUID of the record.") id?: string; @@ -1387,8 +1379,7 @@ model AtlasRelationship { ...AtlasStruct; @doc("The created time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - createTime?: utcDateTime; + createTime?: int64; @doc("The user who created the record.") createdBy?: string; @@ -1415,8 +1406,7 @@ model AtlasRelationship { status?: StatusAtlasRelationship; @doc("The update time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - updateTime?: utcDateTime; + updateTime?: int64; @doc("The user who updated the record.") updatedBy?: string; @@ -1504,8 +1494,7 @@ alias AtlasBaseTypeDef = { category?: TypeCategory; @doc("The created time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - createTime?: utcDateTime; + createTime?: int64; @doc("The user who created the record.") createdBy?: string; @@ -1532,8 +1521,7 @@ alias AtlasBaseTypeDef = { typeVersion?: string; @doc("The update time of the record.") - @encode(DateTimeKnownEncoding.unixTimestamp, int64) - updateTime?: utcDateTime; + updateTime?: int64; @doc("The user who updated the record.") updatedBy?: string; diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.DataMap/stable/2023-09-01/purviewdatamap.json b/specification/purview/data-plane/Azure.Analytics.Purview.DataMap/stable/2023-09-01/purviewdatamap.json index 7d309fe8ab9e..800ef24b4921 100644 --- a/specification/purview/data-plane/Azure.Analytics.Purview.DataMap/stable/2023-09-01/purviewdatamap.json +++ b/specification/purview/data-plane/Azure.Analytics.Purview.DataMap/stable/2023-09-01/purviewdatamap.json @@ -4583,7 +4583,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -4623,7 +4623,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -4698,7 +4698,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -4738,7 +4738,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -4887,7 +4887,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -4953,7 +4953,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -4987,7 +4987,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -5027,7 +5027,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -5187,7 +5187,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -5227,7 +5227,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -5332,7 +5332,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -5341,7 +5341,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -5412,7 +5412,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -5421,7 +5421,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -5492,7 +5492,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -5501,7 +5501,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -5604,7 +5604,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -5613,7 +5613,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -6009,7 +6009,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -6047,7 +6047,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -6146,7 +6146,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -6186,7 +6186,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -6304,7 +6304,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -6344,7 +6344,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -6545,7 +6545,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -6585,7 +6585,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": { @@ -7608,12 +7608,12 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The create time of the record. The Unix epoch format." }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The last update time of the record. The Unix epoch format." }, "id": { @@ -7852,12 +7852,12 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The create time of the record. The Unix epoch format." }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The last update time of the record. The Unix epoch format." }, "id": { @@ -8013,7 +8013,7 @@ }, "createTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The created time of the record." }, "createdBy": { @@ -8053,7 +8053,7 @@ }, "updateTime": { "type": "integer", - "format": "unixtime", + "format": "int64", "description": "The update time of the record." }, "updatedBy": {