Skip to content

Commit 9c12980

Browse files
besh2014besh2014
andauthored
[Communication]-Sms-Added optional DeliveryReportTimeoutInSeconds to smsSendOptions (Azure#42836)
* Added support of DeliveryReportTimeoutInSeconds for Sms requests. * Executed Eng\scripts\CodeChecks.ps1 -ServiceDirectory communication\Azure.Communication.Sms\ * Updated tests * Refresh test recording asset id. * Updated snippets * Updated test asset recording to reference onylyc smstestapp * Added UriRegexSanitizer * Removed System.IO form snippet --------- Co-authored-by: besh2014 <vibesliu@microsoft.com>
1 parent 2ee1931 commit 9c12980

18 files changed

+50
-25
lines changed

sdk/communication/Azure.Communication.Sms/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release History
22

3+
## 1.1.0-beta.1 (2024-03-25)
4+
- Added optional DeliveryReportTimeoutInSeconds to smsSendOptions.
5+
36
## 1.0.2 (2021-10-05)
47
- Dependency versions updated.
58

sdk/communication/Azure.Communication.Sms/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ var response = await smsClient.SendAsync(
6464
options: new SmsSendOptions(enableDeliveryReport: true) // OPTIONAL
6565
{
6666
Tag = "marketing", // custom tags
67+
DeliveryReportTimeoutInSeconds = 90
6768
});
6869
foreach (SmsSendResult result in response.Value)
6970
{

sdk/communication/Azure.Communication.Sms/api/Azure.Communication.Sms.netstandard2.0.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ public SmsClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCredential
1414
}
1515
public partial class SmsClientOptions : Azure.Core.ClientOptions
1616
{
17-
public SmsClientOptions(Azure.Communication.Sms.SmsClientOptions.ServiceVersion version = Azure.Communication.Sms.SmsClientOptions.ServiceVersion.V2021_03_07) { }
17+
public SmsClientOptions(Azure.Communication.Sms.SmsClientOptions.ServiceVersion version = Azure.Communication.Sms.SmsClientOptions.ServiceVersion.V2024_02_05_Preview) { }
1818
public enum ServiceVersion
1919
{
2020
V2021_03_07 = 1,
21+
V2024_02_05_Preview = 2,
2122
}
2223
}
2324
public partial class SmsSendOptions
2425
{
2526
public SmsSendOptions(bool enableDeliveryReport) { }
27+
public int? DeliveryReportTimeoutInSeconds { get { throw null; } set { } }
2628
public bool EnableDeliveryReport { get { throw null; } }
2729
public string Tag { get { throw null; } set { } }
2830
}

sdk/communication/Azure.Communication.Sms/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/communication/Azure.Communication.Sms",
5-
"Tag": "net/communication/Azure.Communication.Sms_9077b6b480"
5+
"Tag": "net/communication/Azure.Communication.Sms_3b274f81e7"
66
}

sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSms.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var response = smsClient.Send(
3838
options: new SmsSendOptions(enableDeliveryReport: true) // OPTIONAL
3939
{
4040
Tag = "marketing", // custom tags
41+
DeliveryReportTimeoutInSeconds = 90
4142
});
4243
foreach (SmsSendResult result in response.Value)
4344
{

sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSmsAsync.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var response = await smsClient.SendAsync(
3838
options: new SmsSendOptions(enableDeliveryReport: true) // OPTIONAL
3939
{
4040
Tag = "marketing", // custom tags
41+
DeliveryReportTimeoutInSeconds = 90
4142
});
4243
foreach (SmsSendResult result in response.Value)
4344
{

sdk/communication/Azure.Communication.Sms/src/Azure.Communication.Sms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Microsoft Azure Communication Sms quickstart - https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-csharp
77
</Description>
88
<AssemblyTitle>Azure Communication Sms Service</AssemblyTitle>
9-
<Version>1.0.2</Version>
9+
<Version>1.1.0-beta.1</Version>
1010
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
1111
<ApiCompatVersion>1.0.1</ApiCompatVersion>
1212
<PackageTags>Microsoft Azure Communication Sms Service;Microsoft;Azure;Azure Communication Service;Azure Communication Sms Service;Sms;Communication;$(PackageCommonTags)</PackageTags>

sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendOptions.Serialization.cs

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendOptions.cs

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.Sms/src/Generated/SmsRestClient.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)