Skip to content

ServiceProviderServicePackMigrationTaskAddRequest21

Bases: OCIRequest

Create a service pack migration task. The response is either SuccessResponse or ErrorResponse.

Attributes:

service_provider_id (str):

task_name (str):

start_timestamp (str):

expire_after_num_hours (int):

max_duration_hours (int):

send_report_email (bool):

report_delivery_email_address (Optional[str]):

abort_on_error (bool):

abort_error_threshold (Optional[int]):

report_all_users (bool):

automatically_increment_service_quantity (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderServicePackMigrationTaskAddRequest21(OCIRequest):
    """Create a service pack migration task.
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        task_name (str):

        start_timestamp (str):

        expire_after_num_hours (int):

        max_duration_hours (int):

        send_report_email (bool):

        report_delivery_email_address (Optional[str]):

        abort_on_error (bool):

        abort_error_threshold (Optional[int]):

        report_all_users (bool):

        automatically_increment_service_quantity (bool):

    """

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

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

    start_timestamp: str = field(metadata={"alias": "startTimestamp"})

    expire_after_num_hours: int = field(metadata={"alias": "expireAfterNumHours"})

    max_duration_hours: int = field(metadata={"alias": "maxDurationHours"})

    send_report_email: bool = field(metadata={"alias": "sendReportEmail"})

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

    abort_on_error: bool = field(metadata={"alias": "abortOnError"})

    abort_error_threshold: Optional[int] = field(
        default=None, metadata={"alias": "abortErrorThreshold"}
    )

    report_all_users: bool = field(metadata={"alias": "reportAllUsers"})

    automatically_increment_service_quantity: bool = field(
        metadata={"alias": "automaticallyIncrementServiceQuantity"}
    )

Responses

Bases: OCIResponse

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

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 ServiceProviderServicePackMigrationTaskAddRequest21

client = Client()

command = ServiceProviderServicePackMigrationTaskAddRequest21(
    service_provider_id=...,
    task_name=...,
    start_timestamp=...,
    expire_after_num_hours=...,
    max_duration_hours=...,
    send_report_email=...,
    report_delivery_email_address=...,
    abort_on_error=...,
    abort_error_threshold=...,
    report_all_users=...,
    automatically_increment_service_quantity=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderServicePackMigrationTaskAddRequest21",
    service_provider_id=...,
    task_name=...,
    start_timestamp=...,
    expire_after_num_hours=...,
    max_duration_hours=...,
    send_report_email=...,
    report_delivery_email_address=...,
    abort_on_error=...,
    abort_error_threshold=...,
    report_all_users=...,
    automatically_increment_service_quantity=...,
)

print(response)