Skip to content

SystemBwDiameterRoutingPeerModifyRequest

Bases: OCIRequest

Modify a Diameter routing peer. The realm must refer to a Diameter routing realm whose action is relay. The destinationPeerIdentity must refer to an existing Diameter peer whose mode is active. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

instance (str):

realm (str):

application_id (str):

identity (str):

priority (Optional[int]):

weight (Optional[int]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemBwDiameterRoutingPeerModifyRequest(OCIRequest):
    """Modify a Diameter routing peer.  The realm must refer to a Diameter routing realm whose action is relay.  The destinationPeerIdentity must refer to an existing Diameter peer whose mode is active.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        instance (str):

        realm (str):

        application_id (str):

        identity (str):

        priority (Optional[int]):

        weight (Optional[int]):

    """

    instance: str = field(metadata={"alias": "instance"})

    realm: str = field(metadata={"alias": "realm"})

    application_id: str = field(metadata={"alias": "applicationId"})

    identity: str = field(metadata={"alias": "identity"})

    priority: Optional[int] = field(default=None, metadata={"alias": "priority"})

    weight: Optional[int] = field(default=None, metadata={"alias": "weight"})

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 SystemBwDiameterRoutingPeerModifyRequest

client = Client()

command = SystemBwDiameterRoutingPeerModifyRequest(
    instance=...,
    realm=...,
    application_id=...,
    identity=...,
    priority=...,
    weight=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemBwDiameterRoutingPeerModifyRequest",
    instance=...,
    realm=...,
    application_id=...,
    identity=...,
    priority=...,
    weight=...,
)

print(response)