Skip to content

Commit

Permalink
update the createTime/updateTIme for an issue in csharp generator
Browse files Browse the repository at this point in the history
  • Loading branch information
yifan-zhou922 committed Feb 4, 2024
1 parent 16126a4 commit a9e8ec2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 56 deletions.
36 changes: 12 additions & 24 deletions specification/purview/Azure.Analytics.Purview.DataMap/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4583,7 +4583,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -4623,7 +4623,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -4698,7 +4698,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -4738,7 +4738,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -4887,7 +4887,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -4953,7 +4953,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -4987,7 +4987,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -5027,7 +5027,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -5187,7 +5187,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -5227,7 +5227,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -5332,7 +5332,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand All @@ -5341,7 +5341,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -5412,7 +5412,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand All @@ -5421,7 +5421,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -5492,7 +5492,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand All @@ -5501,7 +5501,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -5604,7 +5604,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand All @@ -5613,7 +5613,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -6009,7 +6009,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -6047,7 +6047,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -6146,7 +6146,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -6186,7 +6186,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -6304,7 +6304,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -6344,7 +6344,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -6545,7 +6545,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -6585,7 +6585,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -8013,7 +8013,7 @@
},
"createTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The created time of the record."
},
"createdBy": {
Expand Down Expand Up @@ -8053,7 +8053,7 @@
},
"updateTime": {
"type": "integer",
"format": "unixtime",
"format": "int64",
"description": "The update time of the record."
},
"updatedBy": {
Expand Down

0 comments on commit a9e8ec2

Please sign in to comment.