Skip to content

ServiceProviderServicePackMigrationTaskCopyRequest

Bases: OCIRequest

Makes a copy of one or more existing service pack migration tasks. A copied task can be edited with other commands and scheduled for future execution. The name of the new task is chosen automatically. The name will be "Copy (number) of taskName". The response is either SuccessResponse or ErrorResponse.

Attributes:

service_provider_id (str):

task_name (List[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderServicePackMigrationTaskCopyRequest(OCIRequest):
    """Makes a copy of one or more existing service pack migration tasks. A copied task
        can be edited with other commands and scheduled for future execution. The
        name of the new task is chosen automatically. The name will
        be \"Copy (number) of taskName\".
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        task_name (List[str]):

    """

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

    task_name: List[str] = field(metadata={"alias": "taskName"})

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 ServiceProviderServicePackMigrationTaskCopyRequest

client = Client()

command = ServiceProviderServicePackMigrationTaskCopyRequest(
    service_provider_id=...,
    task_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderServicePackMigrationTaskCopyRequest",
    service_provider_id=...,
    task_name=...,
)

print(response)