Skip to content

Commit 781fabb

Browse files
committed
generated api
1 parent 46b31cd commit 781fabb

File tree

7 files changed

+886
-642
lines changed

7 files changed

+886
-642
lines changed

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_api_versions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1111
V2022_01_11_PREVIEW2 = "2022-01-11-preview2"
1212
V2022_12_01 = "2022-12-01"
13+
V2023_2023_10_01_PREVIEW = "2023-10-01-preview"
1314

1415

15-
DEFAULT_VERSION = ApiVersion.V2022_12_01
16+
DEFAULT_VERSION = ApiVersion.V2023_2023_10_01_PREVIEW

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/operations/_operations.py

Lines changed: 269 additions & 230 deletions
Large diffs are not rendered by default.

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
# --------------------------------------------------------------------------
88

99
from ._models import AvailablePhoneNumber
10+
from ._models import AvailablePhoneNumberCost
1011
from ._models import CommunicationError
1112
from ._models import CommunicationErrorResponse
12-
from ._models import (
13-
Paths16Yq815AvailablephonenumbersReservationsReservationidPutRequestbodyContentApplicationJsonSchema,
14-
)
13+
from ._models import OperatorDetails
14+
from ._models import OperatorInformation
15+
from ._models import OperatorInformationRequest
16+
from ._models import OperatorInformationResult
1517
from ._models import PhoneNumberAdministrativeDivision
1618
from ._models import PhoneNumberAreaCode
1719
from ._models import PhoneNumberCapabilities
@@ -31,10 +33,12 @@
3133
from ._models import PurchasedPhoneNumber
3234

3335
from ._enums import BillingFrequency
36+
from ._enums import OperatorNumberType
3437
from ._enums import PhoneNumberAssignmentType
3538
from ._enums import PhoneNumberCapabilityType
3639
from ._enums import PhoneNumberOperationStatus
3740
from ._enums import PhoneNumberOperationType
41+
from ._enums import PhoneNumberSource
3842
from ._enums import PhoneNumberType
3943
from ._enums import ReservationStatus
4044
from ._patch import __all__ as _patch_all
@@ -43,9 +47,13 @@
4347

4448
__all__ = [
4549
"AvailablePhoneNumber",
50+
"AvailablePhoneNumberCost",
4651
"CommunicationError",
4752
"CommunicationErrorResponse",
48-
"Paths16Yq815AvailablephonenumbersReservationsReservationidPutRequestbodyContentApplicationJsonSchema",
53+
"OperatorDetails",
54+
"OperatorInformation",
55+
"OperatorInformationRequest",
56+
"OperatorInformationResult",
4957
"PhoneNumberAdministrativeDivision",
5058
"PhoneNumberAreaCode",
5159
"PhoneNumberCapabilities",
@@ -64,10 +72,12 @@
6472
"PhoneNumbersReservationPurchaseRequest",
6573
"PurchasedPhoneNumber",
6674
"BillingFrequency",
75+
"OperatorNumberType",
6776
"PhoneNumberAssignmentType",
6877
"PhoneNumberCapabilityType",
6978
"PhoneNumberOperationStatus",
7079
"PhoneNumberOperationType",
80+
"PhoneNumberSource",
7181
"PhoneNumberType",
7282
"ReservationStatus",
7383
]

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_enums.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ class BillingFrequency(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1616
MONTHLY = "monthly"
1717

1818

19+
class OperatorNumberType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
20+
"""Type of service associated with the phone number."""
21+
22+
UNKNOWN = "unknown"
23+
OTHER = "other"
24+
GEOGRAPHIC = "geographic"
25+
MOBILE = "mobile"
26+
27+
1928
class PhoneNumberAssignmentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
2029
"""Represents the assignment type of the offering."""
2130

@@ -51,6 +60,13 @@ class PhoneNumberOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
5160
RESERVATION_PURCHASE = "reservationPurchase"
5261

5362

63+
class PhoneNumberSource(str, Enum, metaclass=CaseInsensitiveEnumMeta):
64+
"""Source of the number, e.g. Cloud or OperatorConnect."""
65+
66+
CLOUD = "cloud"
67+
OPERATOR_CONNECT = "operatorConnect"
68+
69+
5470
class PhoneNumberType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
5571
"""Represents the number type of the offering."""
5672

@@ -64,6 +80,4 @@ class ReservationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
6480
ACTIVE = "active"
6581
SUBMITTED = "submitted"
6682
COMPLETED = "completed"
67-
PARTIALLY_COMPLETED = "partiallyCompleted"
68-
CANCELLED = "cancelled"
6983
EXPIRED = "expired"

0 commit comments

Comments
 (0)