Skip to content

Commit aef78a6

Browse files
[Hub Generated] Review request for Chat to add version preview/2023-07-01-preview (#23448)
* Update communicationserviceschat.json * Update Threads_GetChatThread.json * Update Threads_CreateChatThread.json * Update Threads_CreateChatThread.json * Update communicationserviceschat.json * Update communicationserviceschat.json
1 parent fda03ac commit aef78a6

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

specification/communication/data-plane/Chat/preview/2023-07-01-preview/communicationserviceschat.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@
16171617
}
16181618
},
16191619
"retentionPolicy": {
1620-
"$ref": "#/definitions/RetentionPolicy"
1620+
"$ref": "#/definitions/ChatRetentionPolicy"
16211621
}
16221622
}
16231623
},
@@ -1657,7 +1657,7 @@
16571657
"example": "2020-10-30T10:50:50Z"
16581658
},
16591659
"retentionPolicy": {
1660-
"$ref": "#/definitions/RetentionPolicy"
1660+
"$ref": "#/definitions/ChatRetentionPolicy"
16611661
}
16621662
}
16631663
},
@@ -1710,7 +1710,7 @@
17101710
"example": "2020-10-30T10:50:50Z"
17111711
},
17121712
"retentionPolicy": {
1713-
"$ref": "#/definitions/RetentionPolicy"
1713+
"$ref": "#/definitions/ChatRetentionPolicy"
17141714
}
17151715
}
17161716
},
@@ -1757,19 +1757,19 @@
17571757
}
17581758
}
17591759
},
1760-
"RetentionPolicy": {
1760+
"ChatRetentionPolicy": {
17611761
"description": "Data retention policy for auto deletion. It's not updatable after creation.",
17621762
"type": "object",
1763-
"discriminator": "policyType",
1763+
"discriminator": "kind",
17641764
"properties": {
1765-
"policyType": {
1765+
"kind": {
17661766
"description": "Retention Policy Type",
17671767
"enum": [
17681768
"threadCreationDate"
17691769
],
17701770
"type": "string",
17711771
"x-ms-enum": {
1772-
"name": "policyType",
1772+
"name": "RetentionPolicyKind",
17731773
"modelAsString": true,
17741774
"values": [
17751775
{
@@ -1781,7 +1781,7 @@
17811781
}
17821782
},
17831783
"required": [
1784-
"policyType"
1784+
"kind"
17851785
]
17861786
},
17871787
"ThreadCreationDateRetentionPolicy": {
@@ -1790,18 +1790,18 @@
17901790
"x-ms-discriminator-value": "threadCreationDate",
17911791
"allOf": [
17921792
{
1793-
"$ref": "#/definitions/RetentionPolicy"
1793+
"$ref": "#/definitions/ChatRetentionPolicy"
17941794
}
17951795
],
17961796
"properties": {
1797-
"daysAfterCreation": {
1797+
"deleteThreadAfterDays": {
17981798
"type": "integer",
17991799
"format": "int32",
18001800
"description": "Indicates how many days after the thread creation the thread will be deleted. Only 90 is accepted for now."
18011801
}
18021802
},
18031803
"required": [
1804-
"daysAfterCreation"
1804+
"deleteThreadAfterDays"
18051805
]
18061806
}
18071807
},

specification/communication/data-plane/Chat/preview/2023-07-01-preview/examples/Threads_CreateChatThread.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
}
4444
],
4545
"retentionPolicy": {
46-
"policyType": "threadCreationDate",
47-
"daysAfterCreation": 90
46+
"kind": "threadCreationDate",
47+
"deleteThreadAfterDays": 90
4848
}
4949
}
5050
},
@@ -65,8 +65,8 @@
6565
}
6666
},
6767
"retentionPolicy": {
68-
"policyType": "threadCreationDate",
69-
"daysAfterCreation": 90
68+
"kind": "threadCreationDate",
69+
"deleteThreadAfterDays": 90
7070
}
7171
},
7272
"invalidParticipants": [

specification/communication/data-plane/Chat/preview/2023-07-01-preview/examples/Threads_GetChatThread.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"topic": "Lunch",
1212
"createdOn": "2020-06-06T05:55:41.6460000Z",
1313
"retentionPolicy": {
14-
"policyType": "threadCreationDate",
15-
"daysAfterCreation": 90
14+
"kind": "threadCreationDate",
15+
"deleteThreadAfterDays": 90
1616
},
1717
"createdByCommunicationIdentifier": {
1818
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",

0 commit comments

Comments
 (0)