Confirm whether the properties which end with Duration can all be converted to TimeSpan type in released beta packages
See original GitHub issueUse directive to add "format": "duration"
and the property will be generated as TimeSpan, test to see if it works.
D:\Git\azure\azure-sdk-for-net\sdk\cdn\Azure.ResourceManager.Cdn\src\Generated\Models\CacheExpirationActionParameters.cs:44 public string CacheDuration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineInstallPatchesParameters.cs:21 public string MaximumDuration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\BgpPeerStatus.cs:48 public string ConnectedDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ApplicationJitAccessPolicy.cs:44 public string MaximumJitAccessDuration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentOperationProperties.cs:52 public string Duration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentPropertiesExtended.cs:74 public string Duration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\sqlmanagement\Azure.ResourceManager.Sql\src\Generated\RecommendedActionData.cs:109 public string ExecuteActionDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\sqlmanagement\Azure.ResourceManager.Sql\src\Generated\RecommendedActionData.cs:113 public string RevertActionDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\sqlmanagement\Azure.ResourceManager.Sql\src\Generated\Models\MaintenanceWindowTimeRange.cs:34 public string Duration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\websites\Azure.ResourceManager.AppService\src\Generated\Models\LogSpecification.cs:36 public string BlobDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\websites\Azure.ResourceManager.AppService\src\Generated\Models\MetricAvailability.cs:30 public string BlobDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\websites\Azure.ResourceManager.AppService\src\Generated\Models\TriggeredJobRun.cs:58 public string Duration { get; set; }
@Yao725 cdn @ArcturusZhang compute @archerzz network @fengzhou-msft resources, sql @HarveyLink appservice
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
TimeSpan not supported and read as DateTime? #283
Hi Guys, I am in the process of re-writing my ExcelHelper code to use ExcelDataReader so it can read older BIFF8 and earlier...
Read more >Why does TimeSpan not have a Years property?
The absence of Months made sense since there is no standard month length. There is no standard year length either because of leap...
Read more >TimeSpan Struct (System)
A TimeSpan object represents a time interval (duration of time or elapsed time) that is measured as a positive or negative number of...
Read more >Timespan datatype won't convert
I've built an SSRS report that pulls data directly from an ODBC data source. The SQL query pulling the data works fine, and...
Read more >Testing Guide
This guide is best viewed as a set of techniques that you can use to find different types of security holes. But not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ask we discussed, to these kind of issue, the autorest.csharp should rise exception, then
directive
to fix it temporallyAnd will also ask swagger tooling team to add a new lint rule to check it.
Resolved with https://github.com/Azure/autorest.csharp/pull/2003