GroupEmergencyCallNotificationGetRequest
Bases: OCIRequest
Request the group level data associated with Emergency Call Notification. The response is either a GroupEmergencyCallNotificationGetResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupEmergencyCallNotificationGetRequest(OCIRequest):
"""Request the group level data associated with Emergency Call Notification.
The response is either a GroupEmergencyCallNotificationGetResponse or an
ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
group_id: str = field(metadata={"alias": "groupId"})
|
Responses
Bases: OCIDataResponse
Response to GroupEmergencyCallNotificationGetRequest.
Attributes:
send_emergency_call_notification_email (bool):
emergency_call_notify_email_address (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupEmergencyCallNotificationGetResponse(OCIDataResponse):
"""Response to GroupEmergencyCallNotificationGetRequest.
Attributes:
send_emergency_call_notification_email (bool):
emergency_call_notify_email_address (Optional[str]):
"""
send_emergency_call_notification_email: bool = field(
metadata={"alias": "sendEmergencyCallNotificationEmail"}
)
emergency_call_notify_email_address: Optional[str] = field(
default=None, metadata={"alias": "emergencyCallNotifyEmailAddress"}
)
|
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 GroupEmergencyCallNotificationGetRequest
client = Client()
command = GroupEmergencyCallNotificationGetRequest(
service_provider_id=...,
group_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("GroupEmergencyCallNotificationGetRequest",
service_provider_id=...,
group_id=...,
)
print(response)