PhoneNumberReservation Class
Represents a phone number search.
- Inheritance
-
PhoneNumberReservation
Constructor
PhoneNumberReservation(*, reservation_id: Optional[str] = None, display_name: Optional[str] = None, created_at: Optional[datetime.datetime] = None, description: Optional[str] = None, phone_plan_ids: Optional[List[str]] = None, area_code: Optional[str] = None, quantity: Optional[int] = None, location_options: Optional[List[azure.communication.administration._phonenumber._generated.models._models_py3.LocationOptionsDetails]] = None, status: Optional[Union[str, azure.communication.administration._phonenumber._generated.models._phone_number_administration_service_enums.SearchStatus]] = None, phone_numbers: Optional[List[str]] = None, reservation_expiry_date: Optional[datetime.datetime] = None, error_code: Optional[int] = None, **kwargs)
Parameters
- location_options
- list[<xref:azure.communication.administration.models.LocationOptionsDetails>]
Required
The location options of the search.
- status
- str or <xref:azure.communication.administration.models.SearchStatus>
Required
The status of the search. Possible values include: "Pending", "InProgress", "Reserved", "Expired", "Expiring", "Completing", "Refreshing", "Success", "Manual", "Cancelled", "Cancelling", "Error", "PurchasePending".
Required
The list of phone numbers in the search, in the case the status is reserved or success.
- reservation_expiry_date
- datetime
Required
The date that search expires and the numbers become available.
Feedback
Submit and view feedback for