Skip to content

Commit

Permalink
[Hub Generated] Review request for Chat to add version preview/2023-0…
Browse files Browse the repository at this point in the history
…7-01-preview (#23448)

* Update communicationserviceschat.json

* Update Threads_GetChatThread.json

* Update Threads_CreateChatThread.json

* Update Threads_CreateChatThread.json

* Update communicationserviceschat.json

* Update communicationserviceschat.json
  • Loading branch information
LuChen-Microsoft authored Apr 24, 2023
1 parent fda03ac commit aef78a6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@
}
},
"retentionPolicy": {
"$ref": "#/definitions/RetentionPolicy"
"$ref": "#/definitions/ChatRetentionPolicy"
}
}
},
Expand Down Expand Up @@ -1657,7 +1657,7 @@
"example": "2020-10-30T10:50:50Z"
},
"retentionPolicy": {
"$ref": "#/definitions/RetentionPolicy"
"$ref": "#/definitions/ChatRetentionPolicy"
}
}
},
Expand Down Expand Up @@ -1710,7 +1710,7 @@
"example": "2020-10-30T10:50:50Z"
},
"retentionPolicy": {
"$ref": "#/definitions/RetentionPolicy"
"$ref": "#/definitions/ChatRetentionPolicy"
}
}
},
Expand Down Expand Up @@ -1757,19 +1757,19 @@
}
}
},
"RetentionPolicy": {
"ChatRetentionPolicy": {
"description": "Data retention policy for auto deletion. It's not updatable after creation.",
"type": "object",
"discriminator": "policyType",
"discriminator": "kind",
"properties": {
"policyType": {
"kind": {
"description": "Retention Policy Type",
"enum": [
"threadCreationDate"
],
"type": "string",
"x-ms-enum": {
"name": "policyType",
"name": "RetentionPolicyKind",
"modelAsString": true,
"values": [
{
Expand All @@ -1781,7 +1781,7 @@
}
},
"required": [
"policyType"
"kind"
]
},
"ThreadCreationDateRetentionPolicy": {
Expand All @@ -1790,18 +1790,18 @@
"x-ms-discriminator-value": "threadCreationDate",
"allOf": [
{
"$ref": "#/definitions/RetentionPolicy"
"$ref": "#/definitions/ChatRetentionPolicy"
}
],
"properties": {
"daysAfterCreation": {
"deleteThreadAfterDays": {
"type": "integer",
"format": "int32",
"description": "Indicates how many days after the thread creation the thread will be deleted. Only 90 is accepted for now."
}
},
"required": [
"daysAfterCreation"
"deleteThreadAfterDays"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
}
],
"retentionPolicy": {
"policyType": "threadCreationDate",
"daysAfterCreation": 90
"kind": "threadCreationDate",
"deleteThreadAfterDays": 90
}
}
},
Expand All @@ -65,8 +65,8 @@
}
},
"retentionPolicy": {
"policyType": "threadCreationDate",
"daysAfterCreation": 90
"kind": "threadCreationDate",
"deleteThreadAfterDays": 90
}
},
"invalidParticipants": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"topic": "Lunch",
"createdOn": "2020-06-06T05:55:41.6460000Z",
"retentionPolicy": {
"policyType": "threadCreationDate",
"daysAfterCreation": 90
"kind": "threadCreationDate",
"deleteThreadAfterDays": 90
},
"createdByCommunicationIdentifier": {
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
Expand Down

0 comments on commit aef78a6

Please sign in to comment.