GroupIMRNAssignListRequest
Bases: OCIRequest
Assign a list of group DNs to the IMRN pool. It is possible to assign either: a single DN, or a list of DNs, or a range of DNs, or any combination thereof. The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
imrn (Optional[List[str]]):
imrn_range (Optional[List[DNRange]]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class GroupIMRNAssignListRequest(OCIRequest):
"""Assign a list of group DNs to the IMRN pool. It is possible to assign either: a single DN,
or a list of DNs, or a range of DNs, or any combination thereof.
The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
imrn (Optional[List[str]]):
imrn_range (Optional[List[DNRange]]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
group_id: str = field(metadata={"alias": "groupId"})
imrn: Optional[List[str]] = field(default=None, metadata={"alias": "imrn"})
imrn_range: Optional[List[DNRange]] = field(
default=None, metadata={"alias": "imrnRange"}
)
|
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 GroupIMRNAssignListRequest
client = Client()
command = GroupIMRNAssignListRequest(
service_provider_id=...,
group_id=...,
imrn=...,
imrn_range=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("GroupIMRNAssignListRequest",
service_provider_id=...,
group_id=...,
imrn=...,
imrn_range=...,
)
print(response)