Skip to content

ServiceProviderEnhancedCallLogsModifyRequest

Bases: OCIRequest

Modify the Service Provider level data associated with Enhanced Call Logs. Configures the maximum number of logged calls and maximum age of your user's call logs. Log entries are deleted when either of the two limits is reached. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

max_logged_calls (Optional[int]):

call_expiration_days (Optional[int]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderEnhancedCallLogsModifyRequest(OCIRequest):
    """Modify the Service Provider level data associated with Enhanced Call Logs.
        Configures the maximum number of logged calls and maximum age of your user's call logs.
        Log entries are deleted when either of the two limits is reached.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        max_logged_calls (Optional[int]):

        call_expiration_days (Optional[int]):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    max_logged_calls: Optional[int] = field(
        default=None, metadata={"alias": "maxLoggedCalls"}
    )

    call_expiration_days: Optional[int] = field(
        default=None, metadata={"alias": "callExpirationDays"}
    )

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source 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 ServiceProviderEnhancedCallLogsModifyRequest

client = Client()

command = ServiceProviderEnhancedCallLogsModifyRequest(
    service_provider_id=...,
    max_logged_calls=...,
    call_expiration_days=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderEnhancedCallLogsModifyRequest",
    service_provider_id=...,
    max_logged_calls=...,
    call_expiration_days=...,
)

print(response)