Skip to content

SystemRoutingModifyRequest

Bases: OCIRequest

Modifies the system's general routing attributes. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

is_route_round_robin (Optional[bool]):

route_timer_seconds (Optional[int]):

dns_resolved_address_selection_policy (Optional[str]):

stateful_expiration_minutes (Optional[int]):

max_addresses_per_hostname (Optional[int]):

max_addresses_during_setup (Optional[int]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemRoutingModifyRequest(OCIRequest):
    """Modifies the system's general routing attributes.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        is_route_round_robin (Optional[bool]):

        route_timer_seconds (Optional[int]):

        dns_resolved_address_selection_policy (Optional[str]):

        stateful_expiration_minutes (Optional[int]):

        max_addresses_per_hostname (Optional[int]):

        max_addresses_during_setup (Optional[int]):

    """

    is_route_round_robin: Optional[bool] = field(
        default=None, metadata={"alias": "isRouteRoundRobin"}
    )

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

    dns_resolved_address_selection_policy: Optional[str] = field(
        default=None, metadata={"alias": "dnsResolvedAddressSelectionPolicy"}
    )

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

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

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

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 SystemRoutingModifyRequest

client = Client()

command = SystemRoutingModifyRequest(
    is_route_round_robin=...,
    route_timer_seconds=...,
    dns_resolved_address_selection_policy=...,
    stateful_expiration_minutes=...,
    max_addresses_per_hostname=...,
    max_addresses_during_setup=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemRoutingModifyRequest",
    is_route_round_robin=...,
    route_timer_seconds=...,
    dns_resolved_address_selection_policy=...,
    stateful_expiration_minutes=...,
    max_addresses_per_hostname=...,
    max_addresses_during_setup=...,
)

print(response)