Skip to content

SystemPreferredCarrierGetRequest

Bases: OCIRequest

Requests the attributes of carrier. The response is either a SystemPreferreredCarrierGetResponse or an ErrorResponse.

Attributes:

carrier (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemPreferredCarrierGetRequest(OCIRequest):
    """Requests the attributes of carrier.
        The response is either a SystemPreferreredCarrierGetResponse or an ErrorResponse.

    Attributes:

        carrier (str):

    """

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

Responses

Bases: OCIResponse

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

client = Client()

command = SystemPreferredCarrierGetRequest(
    carrier=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemPreferredCarrierGetRequest",
    carrier=...,
)

print(response)