Skip to content

ResellerEmergencyCallNotificationGetRequest

Bases: OCIRequest

Request the reseller level data associated with Emergency Call Notification. The response is either a ResellerEmergencyCallNotificationGetResponse or an ErrorResponse.

Attributes:

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

    Attributes:

        reseller_id (str):

    """

    reseller_id: str = field(metadata={"alias": "resellerId"})

Responses

Bases: OCIDataResponse

Response to ResellerEmergencyCallNotificationGetRequest.

Attributes:

default_from_address (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ResellerEmergencyCallNotificationGetResponse(OCIDataResponse):
    """Response to ResellerEmergencyCallNotificationGetRequest.

    Attributes:

        default_from_address (Optional[str]):

    """

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

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 ResellerEmergencyCallNotificationGetRequest

client = Client()

command = ResellerEmergencyCallNotificationGetRequest(
    reseller_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("ResellerEmergencyCallNotificationGetRequest",
    reseller_id=...,
)

print(response)