Skip to content

SystemGetAvailableLeafDeviceListRequest22

Bases: OCIRequest

Requests the list of available leaf devices that can be linked to a tree device for the entire system. A leaf device is a device associated with a device type that has the option supportLinks set to "Support Link to Device" or "Support Link to Device and User". It can be linked to only one tree device. The list returned includes devices created at the system, service provider, and group levels. If the leafDeviceCategory is not set in the request, then linked leaf devices of all categories are requested, otherwise only the linked leaf devices of the specified category are requested. The category values are: "Handset", "Base Station", "All". The response is either SystemGetAvailableLeafDeviceListResponse22 or ErrorResponse.

Attributes:

leaf_device_category (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemGetAvailableLeafDeviceListRequest22(OCIRequest):
    """Requests the list of available leaf devices that can be linked to a tree device for the entire system.
        A leaf device is a device associated with a device type that has the option
        supportLinks set to \"Support Link to Device\" or \"Support Link to Device and User\".  It can
        be linked to only one tree device.
        The list returned includes devices created at the system, service provider, and group levels.
        If the leafDeviceCategory is not set in the request, then linked leaf devices of all categories are requested, otherwise only the linked leaf devices of the specified category are requested.
        The category values are: \"Handset\", \"Base Station\", \"All\".
        The response is either SystemGetAvailableLeafDeviceListResponse22 or
        ErrorResponse.

    Attributes:

        leaf_device_category (Optional[str]):

    """

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

Responses

Bases: OCIDataResponse

Response to SystemGetAvailableLeafDeviceListRequest22.

Attributes:

leaf_device_key (Optional[List[AccessDeviceKey]]):

support_links (Optional[List[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemGetAvailableLeafDeviceListResponse22(OCIDataResponse):
    """Response to SystemGetAvailableLeafDeviceListRequest22.

    Attributes:

        leaf_device_key (Optional[List[AccessDeviceKey]]):

        support_links (Optional[List[str]]):

    """

    leaf_device_key: Optional[List[AccessDeviceKey]] = field(
        default=None, metadata={"alias": "leafDeviceKey"}
    )

    support_links: Optional[List[str]] = field(
        default=None, metadata={"alias": "supportLinks"}
    )

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 SystemGetAvailableLeafDeviceListRequest22

client = Client()

command = SystemGetAvailableLeafDeviceListRequest22(
    leaf_device_category=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemGetAvailableLeafDeviceListRequest22",
    leaf_device_category=...,
)

print(response)