Skip to content

ServiceProviderServicePackMigrationTaskGetListRequest21

Bases: OCIRequest

Requests a list of all service pack migration tasks for a service provider. The response is either ServiceProviderServicePackMigrationTaskGetListResponse21 or ErrorResponse.

Attributes:

service_provider_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderServicePackMigrationTaskGetListRequest21(OCIRequest):
    """Requests a list of all service pack migration tasks for a service provider.
        The response is either ServiceProviderServicePackMigrationTaskGetListResponse21
        or ErrorResponse.

    Attributes:

        service_provider_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to ServiceProviderServicePackMigrationTaskGetListRequest21. Contains a table with a row for each service pack migration task and column headings : "Start Timestamp Milliseconds", "Name", "Status", "Error Count", "Users Processed", "Users Total". The start timestamp column is the number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT. The status column is the task status which can be Awaiting edit, Pending, Processing, Terminating, Terminated, Stopped by system, Completed, or Expired.

Attributes:

task_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderServicePackMigrationTaskGetListResponse21(OCIDataResponse):
    """Response to ServiceProviderServicePackMigrationTaskGetListRequest21.
        Contains a table with  a row for each service pack migration task and column headings :
        \"Start Timestamp Milliseconds\", \"Name\", \"Status\", \"Error Count\", \"Users Processed\", \"Users Total\".
        The start timestamp column is the number of milliseconds since the standard base time known as \"the epoch\",
        namely January 1, 1970, 00:00:00 GMT. The status column is the task status which can be Awaiting edit, Pending,
        Processing, Terminating, Terminated, Stopped by system, Completed, or Expired.

    Attributes:

        task_table (OCITable):

    """

    task_table: OCITable = field(metadata={"alias": "taskTable"})

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 ServiceProviderServicePackMigrationTaskGetListRequest21

client = Client()

command = ServiceProviderServicePackMigrationTaskGetListRequest21(
    service_provider_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

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

print(response)