Skip to content

SystemMediaGetListRequest

Bases: OCIRequest

Request to get a list of media in the system. The response is either a SystemMediaGetListResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemMediaGetListRequest(OCIRequest):
    """Request to get a list of media in the system.
        The response is either a SystemMediaGetListResponse or an
        ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemMediaGetListRequest. The column headings are "Media Name", "Codec", "Media Type", "Bandwidth Enforcement Type" and "Bandwidth".

Attributes:

media_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemMediaGetListResponse(OCIDataResponse):
    """Response to SystemMediaGetListRequest. The column headings are
        \"Media Name\", \"Codec\", \"Media Type\", \"Bandwidth Enforcement Type\" and \"Bandwidth\".

    Attributes:

        media_table (OCITable):

    """

    media_table: OCITable = field(metadata={"alias": "mediaTable"})

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 SystemMediaGetListRequest

client = Client()

command = SystemMediaGetListRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemMediaGetListRequest")

print(response)