ServiceProviderServicePackMigrationTaskModifyGroupListRequest
Bases: OCIRequest
Replace the list of groups to be migrated for a specified service pack migration task. Modification is only allowed prior to task execution. The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
task_name (str):
migrate_all_groups (Optional[bool]):
group_id_list (Optional[Nillable[object]]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderServicePackMigrationTaskModifyGroupListRequest(OCIRequest):
"""Replace the list of groups to be migrated for a specified service pack migration task.
Modification is only allowed prior to task execution.
The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
task_name (str):
migrate_all_groups (Optional[bool]):
group_id_list (Optional[Nillable[object]]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
task_name: str = field(metadata={"alias": "taskName"})
migrate_all_groups: Optional[bool] = field(
default=None, metadata={"alias": "migrateAllGroups"}
)
group_id_list: Optional[Nillable[object]] = field(
default=None, metadata={"alias": "groupIdList"}
)
def __post_init__(self):
nillable_fields = ["group_id_list"]
for field_name in nillable_fields:
value = getattr(self, field_name)
if value == "" or value == "None":
object.__setattr__(self, field_name, OCINil)
|
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 ServiceProviderServicePackMigrationTaskModifyGroupListRequest
client = Client()
command = ServiceProviderServicePackMigrationTaskModifyGroupListRequest(
service_provider_id=...,
task_name=...,
migrate_all_groups=...,
group_id_list=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("ServiceProviderServicePackMigrationTaskModifyGroupListRequest",
service_provider_id=...,
task_name=...,
migrate_all_groups=...,
group_id_list=...,
)
print(response)