ServiceProviderMaliciousCallTraceModifyRequest
Bases: OCIRequest
Modify the service provider's Malicious Call Trace settings. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
use_system_play_mct_warning_announcement (Optional[bool]):
play_mct_warning_announcement (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderMaliciousCallTraceModifyRequest(OCIRequest):
"""Modify the service provider's Malicious Call Trace settings.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
use_system_play_mct_warning_announcement (Optional[bool]):
play_mct_warning_announcement (Optional[bool]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
use_system_play_mct_warning_announcement: Optional[bool] = field(
default=None, metadata={"alias": "useSystemPlayMCTWarningAnnouncement"}
)
play_mct_warning_announcement: Optional[bool] = field(
default=None, metadata={"alias": "playMCTWarningAnnouncement"}
)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
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 ServiceProviderMaliciousCallTraceModifyRequest
client = Client()
command = ServiceProviderMaliciousCallTraceModifyRequest(
service_provider_id=...,
use_system_play_mct_warning_announcement=...,
play_mct_warning_announcement=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("ServiceProviderMaliciousCallTraceModifyRequest",
service_provider_id=...,
use_system_play_mct_warning_announcement=...,
play_mct_warning_announcement=...,
)
print(response)