@@ -450,22 +450,21 @@ def list_reservations(
450
450
@distributed_trace
451
451
def create_or_update_reservation (
452
452
self , * ,
453
- reservation_id : str = None ,
453
+ reservation_id : str ,
454
454
numbers_to_add : Optional [List [AvailablePhoneNumber ]] = None ,
455
455
numbers_to_remove : Optional [List [str ]] = None ,
456
456
** kwargs : Any
457
457
) -> PhoneNumbersReservation :
458
458
"""Creates or updates a reservation by its ID.
459
459
460
460
Updates the reservation with the given ID if it exists; or creates a new one otherwise.
461
- If no ID is provided, a new reservation will be created with a new random ID.
462
- Note that to update an existing reservation, a valid existing ID is required. The response will be the
463
- updated state of the reservation. Updating a reservation will extend the expiration time of
464
- the reservation to 15 minutes after the last change, up to a maximum of 2 hours from creation time.
461
+ The response will be the updated state of the reservation.
462
+ Updating a reservation will extend the expiration time of the reservation to 15 minutes
463
+ after the last change, up to a maximum of 2 hours from creation time.
465
464
Partial success is possible, in which case the result will contain phone numbers with error status.
466
465
467
466
468
- :keyword reservation_id: The ID of the reservation. It must be a valid UUID. If a reservatioin ,
467
+ :keyword reservation_id: The ID of the reservation. It must be a valid UUID. If a reservation ,
469
468
with that ID exists it will be updated; ortherwise a new reservation will be created.
470
469
:paramtype reservation_id: str
471
470
:keyword numbers_to_add: List of phone numbers to add to the reservation.
@@ -527,6 +526,10 @@ def begin_purchase_reservation(
527
526
the phone numbers in the reservation is from a country where reselling is not permitted, do not
528
527
resell agreement is required.
529
528
529
+ The agreement to not resell is a legal requirement in some countries in order to purchase phone numbers.
530
+ For more information on which countries require this agreement, please refer to this documentation:
531
+ https://learn.microsoft.com/azure/communication-services/concepts/numbers/sub-eligibility-number-capability
532
+
530
533
:param reservation_id: The id of the reservation. Required.
531
534
:type reservation_id: str
532
535
:keyword agree_to_not_resell: The agreement to not resell the phone numbers. Defaults to False if
0 commit comments