ServiceProviderServicePackMigrationTaskTerminateRequest
Bases: OCIRequest
Terminates a service pack migration task that is currently executing. Modification is only allowed prior to task execution. The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
task_name (str):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderServicePackMigrationTaskTerminateRequest(OCIRequest):
"""Terminates a service pack migration task that is currently executing.
Modification is only allowed prior to task execution.
The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
task_name (str):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
task_name: str = field(metadata={"alias": "taskName"})
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 ServiceProviderServicePackMigrationTaskTerminateRequest
client = Client()
command = ServiceProviderServicePackMigrationTaskTerminateRequest(
service_provider_id=...,
task_name=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("ServiceProviderServicePackMigrationTaskTerminateRequest",
service_provider_id=...,
task_name=...,
)
print(response)