Skip to content

SystemAccountingReorderChargingFunctionElementServerRequest

Bases: OCIRequest

Reorder the charging function element servers. You can not add or delete addresses, only re-ordering the list is allowed. The ordered list of addresses can be obtained with the SystemAccountingGetChargingFunctionElementServerListRequest command. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

ordered_address_list (List[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemAccountingReorderChargingFunctionElementServerRequest(OCIRequest):
    """Reorder the charging function element servers. You can not add or delete addresses,
        only re-ordering the list is allowed. The ordered list of addresses can be obtained
        with the SystemAccountingGetChargingFunctionElementServerListRequest command.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        ordered_address_list (List[str]):

    """

    ordered_address_list: List[str] = field(metadata={"alias": "orderedAddressList"})

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source 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 SystemAccountingReorderChargingFunctionElementServerRequest

client = Client()

command = SystemAccountingReorderChargingFunctionElementServerRequest(
    ordered_address_list=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemAccountingReorderChargingFunctionElementServerRequest",
    ordered_address_list=...,
)

print(response)