Skip to content

SystemGetAvailableTreeDeviceListRequest

Bases: OCIRequest

Requests the list of available tree devices to link to for the entire system. Requests the list of available tree devices to which a leaf device can be linked for the entire system. A tree device is a device associated with a device type that has the option supportLinks set to "Support Links from Devices". Many leaf devices can be linked to it. The list returned includes devices created at the system, service provider, and group levels. The response is either SystemGetAvailableTreeDeviceListResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemGetAvailableTreeDeviceListRequest(OCIRequest):
    """Requests the list of available tree devices to link to for the entire system.
        Requests the list of available tree devices to which a leaf device can be linked for the entire system.
        A tree device is a device associated with a device type that has the option
        supportLinks set to \"Support Links from Devices\". Many leaf devices can be linked to it.
        The list returned includes devices created at the system, service provider, and group levels.
        The response is either SystemGetAvailableTreeDeviceListResponse or
        ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemGetAvailableTreeDeviceListRequest.

Attributes:

tree_device_info (Optional[List[TreeDeviceInfo]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemGetAvailableTreeDeviceListResponse(OCIDataResponse):
    """Response to SystemGetAvailableTreeDeviceListRequest.

    Attributes:

        tree_device_info (Optional[List[TreeDeviceInfo]]):

    """

    tree_device_info: Optional[List[TreeDeviceInfo]] = field(
        default=None, metadata={"alias": "treeDeviceInfo"}
    )

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 SystemGetAvailableTreeDeviceListRequest

client = Client()

command = SystemGetAvailableTreeDeviceListRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemGetAvailableTreeDeviceListRequest")

print(response)