UserGetLoginInfoRequestRI
Bases: OCIRequest
UserGetLoginInfoRequestRI is used to access login information for a user either by a userId, dn or lineport. The phone number may be any DN associated with a user. The lineport may be any lineport associated with a user.
The response is a UserGetLoginInfoResponseRI or an ErrorResponse.
The following elements are only used in AS data mode and ignored in XS data mode.
loginRole
Attributes:
user_id (Optional[str]):
login_role (Optional[str]):
phone_number (Optional[str]):
line_port (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class UserGetLoginInfoRequestRI(OCIRequest):
"""UserGetLoginInfoRequestRI is used to access login information for a user
either by a userId, dn or lineport.
The phone number may be any DN associated with a user.
The lineport may be any lineport associated with a user.
The response is a UserGetLoginInfoResponseRI or an ErrorResponse.
The following elements are only used in AS data mode and ignored in XS data mode.
loginRole
Attributes:
user_id (Optional[str]):
login_role (Optional[str]):
phone_number (Optional[str]):
line_port (Optional[str]):
"""
user_id: Optional[str] = field(default=None, metadata={"alias": "userId"})
login_role: Optional[str] = field(default=None, metadata={"alias": "loginRole"})
phone_number: Optional[str] = field(default=None, metadata={"alias": "phoneNumber"})
line_port: Optional[str] = field(default=None, metadata={"alias": "linePort"})
|
Responses
Bases: OCIResponseSource 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 UserGetLoginInfoRequestRI
client = Client()
command = UserGetLoginInfoRequestRI(
user_id=...,
login_role=...,
phone_number=...,
line_port=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("UserGetLoginInfoRequestRI",
user_id=...,
login_role=...,
phone_number=...,
line_port=...,
)
print(response)