Skip to content

SystemDeviceManagementAutoRebuildConfigModifyListRequest

Bases: OCIRequest

Request to enable or disable automatic trigger of DM events for OCI request prefixes, regardless of the request's version. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

auto_rebuild_config_entry (List[DeviceManagementAutoRebuildConfigEntry]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemDeviceManagementAutoRebuildConfigModifyListRequest(OCIRequest):
    """Request to enable or disable automatic trigger of DM events for
        OCI request prefixes, regardless of the request's
        version.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        auto_rebuild_config_entry (List[DeviceManagementAutoRebuildConfigEntry]):

    """

    auto_rebuild_config_entry: List[DeviceManagementAutoRebuildConfigEntry] = field(
        metadata={"alias": "autoRebuildConfigEntry"}
    )

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 SystemDeviceManagementAutoRebuildConfigModifyListRequest

client = Client()

command = SystemDeviceManagementAutoRebuildConfigModifyListRequest(
    auto_rebuild_config_entry=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemDeviceManagementAutoRebuildConfigModifyListRequest",
    auto_rebuild_config_entry=...,
)

print(response)