Skip to content

SystemCommunicationBarringUserControlModifyRequest

Bases: OCIRequest

Modifies the system's Communication Barring User-Control settings. The response is either SuccessResponse or ErrorResponse.

Attributes:

enable_lockout (Optional[bool]):

max_number_of_failed_attempts (Optional[int]):

lockout_minutes (Optional[int]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCommunicationBarringUserControlModifyRequest(OCIRequest):
    """Modifies the system's Communication Barring User-Control settings.
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        enable_lockout (Optional[bool]):

        max_number_of_failed_attempts (Optional[int]):

        lockout_minutes (Optional[int]):

    """

    enable_lockout: Optional[bool] = field(
        default=None, metadata={"alias": "enableLockout"}
    )

    max_number_of_failed_attempts: Optional[int] = field(
        default=None, metadata={"alias": "maxNumberOfFailedAttempts"}
    )

    lockout_minutes: Optional[int] = field(
        default=None, metadata={"alias": "lockoutMinutes"}
    )

Responses

Bases: OCIResponse

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

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 SystemCommunicationBarringUserControlModifyRequest

client = Client()

command = SystemCommunicationBarringUserControlModifyRequest(
    enable_lockout=...,
    max_number_of_failed_attempts=...,
    lockout_minutes=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemCommunicationBarringUserControlModifyRequest",
    enable_lockout=...,
    max_number_of_failed_attempts=...,
    lockout_minutes=...,
)

print(response)