SystemOCICallControlApplicationModifyRequest
Bases: OCIRequest
Modify an application from the OCI call control application list. The response is either SuccessResponse or ErrorResponse.
Attributes:
application_id (str):
enable_system_wide (Optional[bool]):
notification_timeout_seconds (Optional[int]):
description (Optional[Nillable[str]]):
max_event_channels_per_set (Optional[int]):
unresponsive_channel_set_grace_period_seconds (Optional[int]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemOCICallControlApplicationModifyRequest(OCIRequest):
"""Modify an application from the OCI call control application list.
The response is either SuccessResponse or ErrorResponse.
Attributes:
application_id (str):
enable_system_wide (Optional[bool]):
notification_timeout_seconds (Optional[int]):
description (Optional[Nillable[str]]):
max_event_channels_per_set (Optional[int]):
unresponsive_channel_set_grace_period_seconds (Optional[int]):
"""
application_id: str = field(metadata={"alias": "applicationId"})
enable_system_wide: Optional[bool] = field(
default=None, metadata={"alias": "enableSystemWide"}
)
notification_timeout_seconds: Optional[int] = field(
default=None, metadata={"alias": "notificationTimeoutSeconds"}
)
description: Optional[Nillable[str]] = field(
default=None, metadata={"alias": "description"}
)
max_event_channels_per_set: Optional[int] = field(
default=None, metadata={"alias": "maxEventChannelsPerSet"}
)
unresponsive_channel_set_grace_period_seconds: Optional[int] = field(
default=None, metadata={"alias": "unresponsiveChannelSetGracePeriodSeconds"}
)
def __post_init__(self):
nillable_fields = ["description"]
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 SystemOCICallControlApplicationModifyRequest
client = Client()
command = SystemOCICallControlApplicationModifyRequest(
application_id=...,
enable_system_wide=...,
notification_timeout_seconds=...,
description=...,
max_event_channels_per_set=...,
unresponsive_channel_set_grace_period_seconds=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemOCICallControlApplicationModifyRequest",
application_id=...,
enable_system_wide=...,
notification_timeout_seconds=...,
description=...,
max_event_channels_per_set=...,
unresponsive_channel_set_grace_period_seconds=...,
)
print(response)