Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new property SegmentCount to SMSReceived Event #31764

Merged
merged 14 commits into from
Jan 16, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ model AcsSmsReceivedEventData extends AcsSmsEventBaseProperties {

/** The time at which the SMS was received */
@madeRequired(ServiceApiVersions.v2024_01_01)
receivedTimestamp: utcDateTime;
receivedTimestamp?: utcDateTime;

/** Number of segments in the message */
segmentCount: int32;
}

//TODO: This might need some fixing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"specversion": "1.0",
"operationId": "SMSReceivedEventName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"specversion": "1.0",
"operationId": "SMSReceivedEventName",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check notice on line 1 in specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json

View workflow job for this annotation

GitHub Actions / TypeSpec Requirement

Brownfield services will soon be required to convert from OpenAPI to TypeSpec. See https://aka.ms/azsdk/typespec.
"swagger": "2.0",
"info": {
"version": "2018-01-01",
Expand Down Expand Up @@ -1357,8 +1357,16 @@
"description": "The time at which the SMS was received",
"format": "date-time",
"type": "string"
},
"segmentCount": {
"description": "Number of segments in the message",
"format": "int32",
"type": "integer"
}
}
},
"required": [
"segmentCount"
]
},
"AcsRecordingFileStatusUpdatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"specversion": "1.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"eventType": "Microsoft.Communication.SMSReceived",
"dataVersion": "1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2429,12 +2429,20 @@
"type": "string",
"format": "date-time",
"description": "The time at which the SMS was received"
},
"segmentCount": {
"type": "integer",
"format": "int32",
"description": "Number of segments in the message"
}
},
"allOf": [
{
"$ref": "#/definitions/AcsSmsEventBaseProperties"
}
],
"required": [
"segmentCount"
]
},
"AcsUserDisconnectedEventData": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2482,10 +2482,15 @@
"type": "string",
"format": "date-time",
"description": "The time at which the SMS was received"
},
"segmentCount": {
"type": "integer",
"format": "int32",
"description": "Number of segmensts in the message"
}
},
"required": [
"receivedTimestamp"
"segmentCount"
],
"allOf": [
{
Expand Down
Loading