Skip to content

ServiceProviderAccessDeviceUnlinkDeviceListRequest

Bases: OCIRequest

Request to unlink one or more leaf access devices from a tree device. 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 response is either a SuccessResponse or an ErrorResponse.

Attributes:

leaf_device_key (List[AccessDeviceKey]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderAccessDeviceUnlinkDeviceListRequest(OCIRequest):
    """Request to unlink one or more leaf access devices from a tree device.
        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 response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        leaf_device_key (List[AccessDeviceKey]):

    """

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

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import ServiceProviderAccessDeviceUnlinkDeviceListRequest

client = Client()

command = ServiceProviderAccessDeviceUnlinkDeviceListRequest(
    leaf_device_key=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderAccessDeviceUnlinkDeviceListRequest",
    leaf_device_key=...,
)

print(response)