Skip to content

ServiceProviderScheduleGetListRequest

Bases: OCIRequest

Get the list of a service provider schedules. The list can be filtered by schedule type. The response is either a ServiceProviderScheduleGetListResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

schedule_type (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderScheduleGetListRequest(OCIRequest):
    """Get the list of a service provider schedules. The list can be filtered by schedule type.
        The response is either a ServiceProviderScheduleGetListResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        schedule_type (Optional[str]):

    """

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

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

Responses

Bases: OCIDataResponse

Response to ServiceProviderScheduleGetListRequest. The response contains a list of service provider schedules.

Attributes:

schedule_key (Optional[List[ScheduleKey]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderScheduleGetListResponse(OCIDataResponse):
    """Response to ServiceProviderScheduleGetListRequest.
        The response contains a list of service provider schedules.

    Attributes:

        schedule_key (Optional[List[ScheduleKey]]):

    """

    schedule_key: Optional[List[ScheduleKey]] = field(
        default=None, metadata={"alias": "scheduleKey"}
    )

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 ServiceProviderScheduleGetListRequest

client = Client()

command = ServiceProviderScheduleGetListRequest(
    service_provider_id=...,
    schedule_type=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderScheduleGetListRequest",
    service_provider_id=...,
    schedule_type=...,
)

print(response)