Skip to content

SystemXsiPolicyProfileGetRequest

Bases: OCIRequest

Get an existing Xsi policy profile. The response is either a SystemXsiPolicyProfileGetResponse or an ErrorResponse.

Attributes:

xsi_policy_profile (XsiPolicyProfileKey):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemXsiPolicyProfileGetRequest(OCIRequest):
    """Get an existing Xsi policy profile.
        The response is either a SystemXsiPolicyProfileGetResponse
        or an ErrorResponse.

    Attributes:

        xsi_policy_profile (XsiPolicyProfileKey):

    """

    xsi_policy_profile: XsiPolicyProfileKey = field(
        metadata={"alias": "xsiPolicyProfile"}
    )

Responses

Bases: OCIDataResponse

Response to the SystemXsiPolicyProfileGetRequest. The response contains the Xsi policy profile.

Attributes:

description (Optional[str]):

max_target_subscription (int):

default (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemXsiPolicyProfileGetResponse(OCIDataResponse):
    """Response to the SystemXsiPolicyProfileGetRequest.
        The response contains the Xsi policy profile.

    Attributes:

        description (Optional[str]):

        max_target_subscription (int):

        default (bool):

    """

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

    max_target_subscription: int = field(metadata={"alias": "maxTargetSubscription"})

    default: bool = field(metadata={"alias": "default"})

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 SystemXsiPolicyProfileGetRequest

client = Client()

command = SystemXsiPolicyProfileGetRequest(
    xsi_policy_profile=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemXsiPolicyProfileGetRequest",
    xsi_policy_profile=...,
)

print(response)