UserINIntegrationModifyRequest
Bases: OCIRequest
Request to modify the user level IN Integration service attributes Response is either SuccessResponse or ErrorResponse
Attributes:
user_id (str):
originating_service_key (Optional[Nillable[int]]):
terminating_service_key (Optional[Nillable[int]]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class UserINIntegrationModifyRequest(OCIRequest):
"""Request to modify the user level IN Integration service attributes
Response is either SuccessResponse or ErrorResponse
Attributes:
user_id (str):
originating_service_key (Optional[Nillable[int]]):
terminating_service_key (Optional[Nillable[int]]):
"""
user_id: str = field(metadata={"alias": "userId"})
originating_service_key: Optional[Nillable[int]] = field(
default=None, metadata={"alias": "originatingServiceKey"}
)
terminating_service_key: Optional[Nillable[int]] = field(
default=None, metadata={"alias": "terminatingServiceKey"}
)
def __post_init__(self):
nillable_fields = ["originating_service_key", "terminating_service_key"]
for field_name in nillable_fields:
value = getattr(self, field_name)
if value == "" or value == "None":
object.__setattr__(self, field_name, OCINil)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 UserINIntegrationModifyRequest
client = Client()
command = UserINIntegrationModifyRequest(
user_id=...,
originating_service_key=...,
terminating_service_key=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("UserINIntegrationModifyRequest",
user_id=...,
originating_service_key=...,
terminating_service_key=...,
)
print(response)