wxc_sdk.telephony.pnc module
Private network connect API
- class wxc_sdk.telephony.pnc.NetworkConnectionType(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str
,SafeEnum
Network Connection Type for the location.
- public_internet = 'PUBLIC_INTERNET'
Use public internet for the location’s connection type.
- private_network = 'PRIVATE_NETWORK'
Use private network connect for the location’s connection type.
- class wxc_sdk.telephony.pnc.PrivateNetworkConnectApi(*, session: RestSession, base: str | None = None)[source]
Bases:
ApiChild
API for location private network connect API settings
- read(location_id: str, org_id: str | None = None) NetworkConnectionType [source]
Get Private Network Connect
Retrieve the location’s network connection type.
Network Connection Type determines if the location’s network connection is public or private.
Retrieving location’s network connection type requires a full, user or read-only administrator auth token with a scope of spark-admin:telephony_config_read.
- Parameters:
location_id (str) – Retrieve network connection type for this location.
org_id (str) – Retrieve network connection type for this organization.
- Returns:
location PNC settings
- Return type:
- update(location_id: str, connection_type: NetworkConnectionType, org_id: str | None = None)[source]
Get Private Network Connect
Retrieve the location’s network connection type.
Network Connection Type determines if the location’s network connection is public or private.
Retrieving location’s network connection type requires a full, user or read-only administrator auth token with a scope of spark-admin:telephony_config_read.
- Parameters:
location_id (str) – Update network connection type for this location.
connection_type (NetworkConnectionType) – Network Connection Type for the location.
org_id (str) – Update network connection type for this organization.
- base = 'telephony/config/locations'