Skip to content

UserMeetMeConferencingModifyConferenceGreetingRequest20

Bases: OCIRequest

Modify an existing custom greeting audio file. The response is either SuccessResponse or ErrorResponse.

Attributes:

user_id (str):

conference_key (MeetMeConferencingConferenceKey):

play_entrance_greeting (Optional[bool]):

entrance_greeting_file (Optional[Nillable[AnnouncementFileKey]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserMeetMeConferencingModifyConferenceGreetingRequest20(OCIRequest):
    """Modify an existing custom greeting audio file.
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        user_id (str):

        conference_key (MeetMeConferencingConferenceKey):

        play_entrance_greeting (Optional[bool]):

        entrance_greeting_file (Optional[Nillable[AnnouncementFileKey]]):

    """

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

    conference_key: MeetMeConferencingConferenceKey = field(
        metadata={"alias": "conferenceKey"}
    )

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

    entrance_greeting_file: Optional[Nillable[AnnouncementFileKey]] = field(
        default=None, metadata={"alias": "entranceGreetingFile"}
    )

    def __post_init__(self):
        nillable_fields = ["entrance_greeting_file"]
        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 UserMeetMeConferencingModifyConferenceGreetingRequest20

client = Client()

command = UserMeetMeConferencingModifyConferenceGreetingRequest20(
    user_id=...,
    conference_key=...,
    play_entrance_greeting=...,
    entrance_greeting_file=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserMeetMeConferencingModifyConferenceGreetingRequest20",
    user_id=...,
    conference_key=...,
    play_entrance_greeting=...,
    entrance_greeting_file=...,
)

print(response)