GroupTrunkGroupSecurityClassificationGetRequest
Bases: OCIRequest
Get a trunk group's Security Classifications configuration. The response is either GroupTrunkGroupSecurityClassificationGetResponse or ErrorResponse.
Attributes:
trunk_group_key (TrunkGroupKey):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class GroupTrunkGroupSecurityClassificationGetRequest(OCIRequest):
"""Get a trunk group's Security Classifications configuration.
The response is either GroupTrunkGroupSecurityClassificationGetResponse or ErrorResponse.
Attributes:
trunk_group_key (TrunkGroupKey):
"""
trunk_group_key: TrunkGroupKey = field(metadata={"alias": "trunkGroupKey"})
|
Responses
Bases: OCIDataResponse
Response to the GroupTrunkGroupSecurityClassificationGetRequest.
Attributes:
default_security_classification (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class GroupTrunkGroupSecurityClassificationGetResponse(OCIDataResponse):
"""Response to the GroupTrunkGroupSecurityClassificationGetRequest.
Attributes:
default_security_classification (Optional[str]):
"""
default_security_classification: Optional[str] = field(
default=None, metadata={"alias": "defaultSecurityClassification"}
)
|
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 GroupTrunkGroupSecurityClassificationGetRequest
client = Client()
command = GroupTrunkGroupSecurityClassificationGetRequest(
trunk_group_key=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("GroupTrunkGroupSecurityClassificationGetRequest",
trunk_group_key=...,
)
print(response)