Skip to content

ServiceProviderScheduleGetEventListRequest

Bases: OCIRequest

Get the list of events of a service provider schedule. The response is either a ServiceProviderScheduleGetEventListResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

schedule_key (ScheduleKey):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderScheduleGetEventListRequest(OCIRequest):
    """Get the list of events of a service provider schedule.
        The response is either a ServiceProviderScheduleGetEventListResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        schedule_key (ScheduleKey):

    """

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

    schedule_key: ScheduleKey = field(metadata={"alias": "scheduleKey"})

Responses

Bases: OCIDataResponse

Response to ServiceProviderScheduleGetEventListRequest. The response contains a list of events.

Attributes:

event_name (Optional[List[str]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderScheduleGetEventListResponse(OCIDataResponse):
    """Response to ServiceProviderScheduleGetEventListRequest.
        The response contains a list of events.

    Attributes:

        event_name (Optional[List[str]]):

    """

    event_name: Optional[List[str]] = field(
        default=None, metadata={"alias": "eventName"}
    )

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 ServiceProviderScheduleGetEventListRequest

client = Client()

command = ServiceProviderScheduleGetEventListRequest(
    service_provider_id=...,
    schedule_key=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderScheduleGetEventListRequest",
    service_provider_id=...,
    schedule_key=...,
)

print(response)