SystemOCIAddACLEntryRequest
Bases: OCIRequest
Add an entry to the OCI access control list. The response is either SuccessResponse or ErrorResponse.
Attributes:
net_address (str):
description (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class SystemOCIAddACLEntryRequest(OCIRequest):
"""Add an entry to the OCI access control list.
The response is either SuccessResponse or ErrorResponse.
Attributes:
net_address (str):
description (Optional[str]):
"""
net_address: str = field(metadata={"alias": "netAddress"})
description: Optional[str] = field(default=None, metadata={"alias": "description"})
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 SystemOCIAddACLEntryRequest
client = Client()
command = SystemOCIAddACLEntryRequest(
net_address=...,
description=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("SystemOCIAddACLEntryRequest",
net_address=...,
description=...,
)
print(response)