Skip to content

EnterpriseCallCenterEnhancedReportingScheduledReportModifyRequest

Bases: OCIRequest

Request to modify an enterprise level call center reporting scheduled report. The response is either a SuccessResponse or an ErrorResponse. The startDate element is adjusted to the first occurrence of the recurrent schedule that comes at or after startDate.

Attributes:

service_provider_id (str):

name (str):

new_name (Optional[str]):

description (Optional[Nillable[str]]):

schedule (Optional[CallCenterReportSchedule]):

sampling_period (Optional[str]):

start_day_of_week (Optional[str]):

report_time_zone (Optional[str]):

report_date_format (Optional[str]):

report_time_format (Optional[str]):

report_interval (Optional[CallCenterReportInterval]):

report_format (Optional[str]):

agent (Optional[CallCenterScheduledReportAgentSelection]):

call_center (Optional[CallCenterScheduledReportCallCenterSelection]):

dnis (Optional[CallCenterScheduledReportDNISSelection]):

call_completion_threshold_seconds (Optional[int]):

short_duration_threshold_seconds (Optional[int]):

service_level_threshold_seconds (Optional[CallCenterReportServiceLevelThresholdReplacementList]):

service_level_inclusions (Optional[CallCenterScheduledReportServiceLevelInclusionsModify]):

service_level_objective_percentage (Optional[Nillable[int]]):

abandoned_call_threshold_seconds (Optional[CallCenterReportAbandonedCallThresholdReplacementList]):

email_address (Optional[CallCenterReportReplacementEmailList]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseCallCenterEnhancedReportingScheduledReportModifyRequest(OCIRequest):
    """Request to modify an enterprise level call center reporting scheduled report.
        The response is either a SuccessResponse or an ErrorResponse.
        The startDate element is adjusted to the first occurrence of the recurrent schedule that comes at or after startDate.

    Attributes:

        service_provider_id (str):

        name (str):

        new_name (Optional[str]):

        description (Optional[Nillable[str]]):

        schedule (Optional[CallCenterReportSchedule]):

        sampling_period (Optional[str]):

        start_day_of_week (Optional[str]):

        report_time_zone (Optional[str]):

        report_date_format (Optional[str]):

        report_time_format (Optional[str]):

        report_interval (Optional[CallCenterReportInterval]):

        report_format (Optional[str]):

        agent (Optional[CallCenterScheduledReportAgentSelection]):

        call_center (Optional[CallCenterScheduledReportCallCenterSelection]):

        dnis (Optional[CallCenterScheduledReportDNISSelection]):

        call_completion_threshold_seconds (Optional[int]):

        short_duration_threshold_seconds (Optional[int]):

        service_level_threshold_seconds (Optional[CallCenterReportServiceLevelThresholdReplacementList]):

        service_level_inclusions (Optional[CallCenterScheduledReportServiceLevelInclusionsModify]):

        service_level_objective_percentage (Optional[Nillable[int]]):

        abandoned_call_threshold_seconds (Optional[CallCenterReportAbandonedCallThresholdReplacementList]):

        email_address (Optional[CallCenterReportReplacementEmailList]):

    """

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

    name: str = field(metadata={"alias": "name"})

    new_name: Optional[str] = field(default=None, metadata={"alias": "newName"})

    description: Optional[Nillable[str]] = field(
        default=None, metadata={"alias": "description"}
    )

    schedule: Optional[CallCenterReportSchedule] = field(
        default=None, metadata={"alias": "schedule"}
    )

    sampling_period: Optional[str] = field(
        default=None, metadata={"alias": "samplingPeriod"}
    )

    start_day_of_week: Optional[str] = field(
        default=None, metadata={"alias": "startDayOfWeek"}
    )

    report_time_zone: Optional[str] = field(
        default=None, metadata={"alias": "reportTimeZone"}
    )

    report_date_format: Optional[str] = field(
        default=None, metadata={"alias": "reportDateFormat"}
    )

    report_time_format: Optional[str] = field(
        default=None, metadata={"alias": "reportTimeFormat"}
    )

    report_interval: Optional[CallCenterReportInterval] = field(
        default=None, metadata={"alias": "reportInterval"}
    )

    report_format: Optional[str] = field(
        default=None, metadata={"alias": "reportFormat"}
    )

    agent: Optional[CallCenterScheduledReportAgentSelection] = field(
        default=None, metadata={"alias": "agent"}
    )

    call_center: Optional[CallCenterScheduledReportCallCenterSelection] = field(
        default=None, metadata={"alias": "callCenter"}
    )

    dnis: Optional[CallCenterScheduledReportDNISSelection] = field(
        default=None, metadata={"alias": "dnis"}
    )

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

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

    service_level_threshold_seconds: Optional[
        CallCenterReportServiceLevelThresholdReplacementList
    ] = field(default=None, metadata={"alias": "serviceLevelThresholdSeconds"})

    service_level_inclusions: Optional[
        CallCenterScheduledReportServiceLevelInclusionsModify
    ] = field(default=None, metadata={"alias": "serviceLevelInclusions"})

    service_level_objective_percentage: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "serviceLevelObjectivePercentage"}
    )

    abandoned_call_threshold_seconds: Optional[
        CallCenterReportAbandonedCallThresholdReplacementList
    ] = field(default=None, metadata={"alias": "abandonedCallThresholdSeconds"})

    email_address: Optional[CallCenterReportReplacementEmailList] = field(
        default=None, metadata={"alias": "emailAddress"}
    )

    def __post_init__(self):
        nillable_fields = ["description", "service_level_objective_percentage"]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)

Responses

Bases: OCIResponse

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

Bases: OCIResponse

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

client = Client()

command = EnterpriseCallCenterEnhancedReportingScheduledReportModifyRequest(
    service_provider_id=...,
    name=...,
    new_name=...,
    description=...,
    schedule=...,
    sampling_period=...,
    start_day_of_week=...,
    report_time_zone=...,
    report_date_format=...,
    report_time_format=...,
    report_interval=...,
    report_format=...,
    agent=...,
    call_center=...,
    dnis=...,
    call_completion_threshold_seconds=...,
    short_duration_threshold_seconds=...,
    service_level_threshold_seconds=...,
    service_level_inclusions=...,
    service_level_objective_percentage=...,
    abandoned_call_threshold_seconds=...,
    email_address=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("EnterpriseCallCenterEnhancedReportingScheduledReportModifyRequest",
    service_provider_id=...,
    name=...,
    new_name=...,
    description=...,
    schedule=...,
    sampling_period=...,
    start_day_of_week=...,
    report_time_zone=...,
    report_date_format=...,
    report_time_format=...,
    report_interval=...,
    report_format=...,
    agent=...,
    call_center=...,
    dnis=...,
    call_completion_threshold_seconds=...,
    short_duration_threshold_seconds=...,
    service_level_threshold_seconds=...,
    service_level_inclusions=...,
    service_level_objective_percentage=...,
    abandoned_call_threshold_seconds=...,
    email_address=...,
)

print(response)