Skip to content

ServiceProviderVoiceMessagingGroupGetRequest

Bases: OCIRequest

Requests the service provider's or enterprise's voice messaging settings. The response is either ServiceProviderVoiceMessagingGroupGetResponse or ErrorResponse.

Attributes:

service_provider_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderVoiceMessagingGroupGetRequest(OCIRequest):
    """Requests the service provider's or enterprise's voice messaging settings.
        The response is either ServiceProviderVoiceMessagingGroupGetResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

Responses

Bases: OCIDataResponse

Response to ServiceProviderVoiceMessagingGroupGetRequest. Contains the service provider's or enterprise's voice messaging settings.

Attributes:

delivery_from_address (Optional[str]):

notification_from_address (Optional[str]):

voice_portal_lockout_from_address (Optional[str]):

use_system_default_delivery_from_address (bool):

use_system_default_notification_from_address (bool):

use_system_default_voice_portal_lockout_from_address (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderVoiceMessagingGroupGetResponse(OCIDataResponse):
    """Response to ServiceProviderVoiceMessagingGroupGetRequest.
        Contains the service provider's or enterprise's voice messaging settings.

    Attributes:

        delivery_from_address (Optional[str]):

        notification_from_address (Optional[str]):

        voice_portal_lockout_from_address (Optional[str]):

        use_system_default_delivery_from_address (bool):

        use_system_default_notification_from_address (bool):

        use_system_default_voice_portal_lockout_from_address (bool):

    """

    delivery_from_address: Optional[str] = field(
        default=None, metadata={"alias": "deliveryFromAddress"}
    )

    notification_from_address: Optional[str] = field(
        default=None, metadata={"alias": "notificationFromAddress"}
    )

    voice_portal_lockout_from_address: Optional[str] = field(
        default=None, metadata={"alias": "voicePortalLockoutFromAddress"}
    )

    use_system_default_delivery_from_address: bool = field(
        metadata={"alias": "useSystemDefaultDeliveryFromAddress"}
    )

    use_system_default_notification_from_address: bool = field(
        metadata={"alias": "useSystemDefaultNotificationFromAddress"}
    )

    use_system_default_voice_portal_lockout_from_address: bool = field(
        metadata={"alias": "useSystemDefaultVoicePortalLockoutFromAddress"}
    )

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import ServiceProviderVoiceMessagingGroupGetRequest

client = Client()

command = ServiceProviderVoiceMessagingGroupGetRequest(
    service_provider_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderVoiceMessagingGroupGetRequest",
    service_provider_id=...,
)

print(response)