Skip to content

ServiceProviderVoiceMessagingGroupModifyVoicePortalRequest

Bases: OCIRequest

Request to change the service provider's or enterprise's voice portal settings. The response is either SuccessResponse or ErrorResponse.

Attributes:

service_provider_id (str):

voice_portal_scope (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderVoiceMessagingGroupModifyVoicePortalRequest(OCIRequest):
    """Request to change the service provider's or enterprise's voice portal settings.
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        voice_portal_scope (Optional[str]):

    """

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

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

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 ServiceProviderVoiceMessagingGroupModifyVoicePortalRequest

client = Client()

command = ServiceProviderVoiceMessagingGroupModifyVoicePortalRequest(
    service_provider_id=...,
    voice_portal_scope=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderVoiceMessagingGroupModifyVoicePortalRequest",
    service_provider_id=...,
    voice_portal_scope=...,
)

print(response)