Skip to content

ServiceProviderEmergencyCallNotificationGetRequest

Bases: OCIRequest

Request the service provider level data associated with Emergency Call Notification. The response is either a ServiceProviderEmergencyCallNotificationGetResponse or an ErrorResponse.

Attributes:

service_provider_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderEmergencyCallNotificationGetRequest(OCIRequest):
    """Request the service provider level data associated with Emergency Call Notification.
        The response is either a ServiceProviderEmergencyCallNotificationGetResponse
        or an ErrorResponse.

    Attributes:

        service_provider_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to ServiceProviderEmergencyCallNotificationGetRequest.

Attributes:

send_emergency_call_notification_email (bool):

emergency_call_notify_email_address (Optional[str]):

allow_group_override (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderEmergencyCallNotificationGetResponse(OCIDataResponse):
    """Response to ServiceProviderEmergencyCallNotificationGetRequest.

    Attributes:

        send_emergency_call_notification_email (bool):

        emergency_call_notify_email_address (Optional[str]):

        allow_group_override (bool):

    """

    send_emergency_call_notification_email: bool = field(
        metadata={"alias": "sendEmergencyCallNotificationEmail"}
    )

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

    allow_group_override: bool = field(metadata={"alias": "allowGroupOverride"})

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 ServiceProviderEmergencyCallNotificationGetRequest

client = Client()

command = ServiceProviderEmergencyCallNotificationGetRequest(
    service_provider_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderEmergencyCallNotificationGetRequest",
    service_provider_id=...,
)

print(response)