Skip to content

UserVoiceMessagingUserModifyGreetingExecutionServerRequest

Bases: OCIRequest

Modify the user's voice messaging greeting. The response is either a SuccessResponse or an ErrorResponse. Engineering Note: This command can only be executed from the Execution Server

Attributes:

user_id (str):

busy_announcement_selection (Optional[str]):

busy_personal_audio_file (Optional[LabeledFileNameResource]):

busy_personal_video_file (Optional[LabeledFileNameResource]):

no_answer_announcement_selection (Optional[str]):

no_answer_personal_audio_file (Optional[LabeledFileNameResource]):

no_answer_personal_video_file (Optional[LabeledFileNameResource]):

no_answer_number_of_rings (Optional[int]):

extended_away_enabled (Optional[bool]):

extended_away_disable_message_deposit (Optional[bool]):

extended_away_audio_file (Optional[LabeledFileNameResource]):

extended_away_video_file (Optional[LabeledFileNameResource]):

disable_message_deposit (Optional[bool]):

disable_message_deposit_action (Optional[str]):

greeting_only_forward_destination (Optional[Nillable[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserVoiceMessagingUserModifyGreetingExecutionServerRequest(OCIRequest):
    """Modify the user's voice messaging greeting.
        The response is either a SuccessResponse or an ErrorResponse.
        Engineering Note: This command can only be executed from the Execution Server

    Attributes:

        user_id (str):

        busy_announcement_selection (Optional[str]):

        busy_personal_audio_file (Optional[LabeledFileNameResource]):

        busy_personal_video_file (Optional[LabeledFileNameResource]):

        no_answer_announcement_selection (Optional[str]):

        no_answer_personal_audio_file (Optional[LabeledFileNameResource]):

        no_answer_personal_video_file (Optional[LabeledFileNameResource]):

        no_answer_number_of_rings (Optional[int]):

        extended_away_enabled (Optional[bool]):

        extended_away_disable_message_deposit (Optional[bool]):

        extended_away_audio_file (Optional[LabeledFileNameResource]):

        extended_away_video_file (Optional[LabeledFileNameResource]):

        disable_message_deposit (Optional[bool]):

        disable_message_deposit_action (Optional[str]):

        greeting_only_forward_destination (Optional[Nillable[str]]):

    """

    user_id: str = field(metadata={"alias": "userId"})

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

    busy_personal_audio_file: Optional[LabeledFileNameResource] = field(
        default=None, metadata={"alias": "busyPersonalAudioFile"}
    )

    busy_personal_video_file: Optional[LabeledFileNameResource] = field(
        default=None, metadata={"alias": "busyPersonalVideoFile"}
    )

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

    no_answer_personal_audio_file: Optional[LabeledFileNameResource] = field(
        default=None, metadata={"alias": "noAnswerPersonalAudioFile"}
    )

    no_answer_personal_video_file: Optional[LabeledFileNameResource] = field(
        default=None, metadata={"alias": "noAnswerPersonalVideoFile"}
    )

    no_answer_number_of_rings: Optional[int] = field(
        default=None, metadata={"alias": "noAnswerNumberOfRings"}
    )

    extended_away_enabled: Optional[bool] = field(
        default=None, metadata={"alias": "extendedAwayEnabled"}
    )

    extended_away_disable_message_deposit: Optional[bool] = field(
        default=None, metadata={"alias": "extendedAwayDisableMessageDeposit"}
    )

    extended_away_audio_file: Optional[LabeledFileNameResource] = field(
        default=None, metadata={"alias": "extendedAwayAudioFile"}
    )

    extended_away_video_file: Optional[LabeledFileNameResource] = field(
        default=None, metadata={"alias": "extendedAwayVideoFile"}
    )

    disable_message_deposit: Optional[bool] = field(
        default=None, metadata={"alias": "disableMessageDeposit"}
    )

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

    greeting_only_forward_destination: Optional[Nillable[str]] = field(
        default=None, metadata={"alias": "greetingOnlyForwardDestination"}
    )

    def __post_init__(self):
        nillable_fields = ["greeting_only_forward_destination"]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)

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 UserVoiceMessagingUserModifyGreetingExecutionServerRequest

client = Client()

command = UserVoiceMessagingUserModifyGreetingExecutionServerRequest(
    user_id=...,
    busy_announcement_selection=...,
    busy_personal_audio_file=...,
    busy_personal_video_file=...,
    no_answer_announcement_selection=...,
    no_answer_personal_audio_file=...,
    no_answer_personal_video_file=...,
    no_answer_number_of_rings=...,
    extended_away_enabled=...,
    extended_away_disable_message_deposit=...,
    extended_away_audio_file=...,
    extended_away_video_file=...,
    disable_message_deposit=...,
    disable_message_deposit_action=...,
    greeting_only_forward_destination=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserVoiceMessagingUserModifyGreetingExecutionServerRequest",
    user_id=...,
    busy_announcement_selection=...,
    busy_personal_audio_file=...,
    busy_personal_video_file=...,
    no_answer_announcement_selection=...,
    no_answer_personal_audio_file=...,
    no_answer_personal_video_file=...,
    no_answer_number_of_rings=...,
    extended_away_enabled=...,
    extended_away_disable_message_deposit=...,
    extended_away_audio_file=...,
    extended_away_video_file=...,
    disable_message_deposit=...,
    disable_message_deposit_action=...,
    greeting_only_forward_destination=...,
)

print(response)