Skip to content

SystemAdviceOfChargeCostInformationSourceAddRequest

Bases: OCIRequest

Add a cost information source. The response is either SuccessResponse or ErrorResponse.

Attributes:

peer_identity (str):

priority (int):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAdviceOfChargeCostInformationSourceAddRequest(OCIRequest):
    """Add a cost information source. The response is either SuccessResponse or ErrorResponse.

    Attributes:

        peer_identity (str):

        priority (int):

    """

    peer_identity: str = field(metadata={"alias": "peerIdentity"})

    priority: int = field(metadata={"alias": "priority"})

Responses

Bases: OCIResponse

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

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 SystemAdviceOfChargeCostInformationSourceAddRequest

client = Client()

command = SystemAdviceOfChargeCostInformationSourceAddRequest(
    peer_identity=...,
    priority=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemAdviceOfChargeCostInformationSourceAddRequest",
    peer_identity=...,
    priority=...,
)

print(response)