In the ServiceBusAdminstrationClient, the create_queue(and other entity types) would accept time related parameter like:
- auto_delete_on_idle
- default_message_time_to_live
- lock_duration
- ...
e.g. https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py#L197-L199
:keyword auto_delete_on_idle: ISO 8601 timeSpan idle interval after which the queue is
automatically deleted. The minimum duration is 5 minutes.
:type auto_delete_on_idle: ~datetime.timedelta
In the docstring, it mentioned ISO 8601 which specially refers to time styles like "PT300S", however, the SDK only supports accepting datetime.timedelta. When users pass string, we don't give a meaningful error (or even no error).
We should consider either:
- Adding
ISO 8601 string support to those parameters
- need to go through architects and feature crew
- Raising error on improper input and update the docstring