Skip to content

UserDevicePoliciesModifyRequest

Bases: OCIRequest

Modify the user level data associated with Device Policy. enableDeviceFeatureSynchronization and enableCallDecline can be configured by the admin regardless of lineMode, but is ignored by the application server in Multiple User Shared mode.

  enableCallDecline can be modified by the user when the admin has set the mode to ‘Single User Private and Shared Lines mode’.
  This is the only element that the user can modify. In XS data mode,  the lineMode is ignored and enabledCallDecline is the only element that can be configured.

The following elements are only used in AS data mode and ignored in XS data mode:
  lineMode
  enableDeviceFeatureSynchronization
  enableDnd
  enableCallForwardingAlways
  enableCallForwardingBusy
  enableCallForwardingNoAnswer
  enableAcd
  enableExecutive
  enableExecutiveAssistant
  enableSecurityClassification
  enableCallRecording

  The response is either a SuccessResponse or an ErrorResponse.

Attributes:

user_id (str):

line_mode (Optional[str]):

enable_device_feature_synchronization (Optional[bool]):

enable_dnd (Optional[bool]):

enable_call_forwarding_always (Optional[bool]):

enable_call_forwarding_busy (Optional[bool]):

enable_call_forwarding_no_answer (Optional[bool]):

enable_acd (Optional[bool]):

enable_executive (Optional[bool]):

enable_executive_assistant (Optional[bool]):

enable_security_classification (Optional[bool]):

enable_call_recording (Optional[bool]):

enable_call_decline (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserDevicePoliciesModifyRequest(OCIRequest):
    """Modify the user level data associated with Device Policy. enableDeviceFeatureSynchronization and enableCallDecline can be
          configured by the admin regardless of lineMode, but is ignored by the application server in Multiple User Shared mode.

          enableCallDecline can be modified by the user when the admin has set the mode to ‘Single User Private and Shared Lines mode’.
          This is the only element that the user can modify. In XS data mode,  the lineMode is ignored and enabledCallDecline is the only element that can be configured.

        The following elements are only used in AS data mode and ignored in XS data mode:
          lineMode
          enableDeviceFeatureSynchronization
          enableDnd
          enableCallForwardingAlways
          enableCallForwardingBusy
          enableCallForwardingNoAnswer
          enableAcd
          enableExecutive
          enableExecutiveAssistant
          enableSecurityClassification
          enableCallRecording

          The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        user_id (str):

        line_mode (Optional[str]):

        enable_device_feature_synchronization (Optional[bool]):

        enable_dnd (Optional[bool]):

        enable_call_forwarding_always (Optional[bool]):

        enable_call_forwarding_busy (Optional[bool]):

        enable_call_forwarding_no_answer (Optional[bool]):

        enable_acd (Optional[bool]):

        enable_executive (Optional[bool]):

        enable_executive_assistant (Optional[bool]):

        enable_security_classification (Optional[bool]):

        enable_call_recording (Optional[bool]):

        enable_call_decline (Optional[bool]):

    """

    user_id: str = field(metadata={"alias": "userId"})

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

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

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

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

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

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

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

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

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

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

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

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

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 UserDevicePoliciesModifyRequest

client = Client()

command = UserDevicePoliciesModifyRequest(
    user_id=...,
    line_mode=...,
    enable_device_feature_synchronization=...,
    enable_dnd=...,
    enable_call_forwarding_always=...,
    enable_call_forwarding_busy=...,
    enable_call_forwarding_no_answer=...,
    enable_acd=...,
    enable_executive=...,
    enable_executive_assistant=...,
    enable_security_classification=...,
    enable_call_recording=...,
    enable_call_decline=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserDevicePoliciesModifyRequest",
    user_id=...,
    line_mode=...,
    enable_device_feature_synchronization=...,
    enable_dnd=...,
    enable_call_forwarding_always=...,
    enable_call_forwarding_busy=...,
    enable_call_forwarding_no_answer=...,
    enable_acd=...,
    enable_executive=...,
    enable_executive_assistant=...,
    enable_security_classification=...,
    enable_call_recording=...,
    enable_call_decline=...,
)

print(response)