Skip to content

UserServiceGetAssignmentListRequest

Bases: OCIRequest

Requests the user's service and service pack assignment list with status. The response is either UserServiceGetAssignmentListResponse or ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserServiceGetAssignmentListRequest(OCIRequest):
    """Requests the user's service and service pack assignment list with status.
        The response is either UserServiceGetAssignmentListResponse or ErrorResponse.

    Attributes:

        user_id (str):

    """

    user_id: str = field(metadata={"alias": "userId"})

Responses

Bases: OCIDataResponse

Response to UserServiceGetAssignmentListRequest. Contains two tables, one for the service packs, and one for the user services. The user table has the column headings: "Service Name", "Assigned", The service pack table's column headings are: "Service Pack Name", "Assigned", "Description". The "Assigned" column has either a true or false value

Attributes:

service_packs_assignment_table (OCITable):

user_services_assignment_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserServiceGetAssignmentListResponse(OCIDataResponse):
    """Response to UserServiceGetAssignmentListRequest.
        Contains two tables, one for the service packs, and one for the user services.
        The user table has the column headings: \"Service Name\", \"Assigned\",
        The service pack table's column headings are: \"Service Pack Name\", \"Assigned\", \"Description\".
        The \"Assigned\" column has either a true or false value

    Attributes:

        service_packs_assignment_table (OCITable):

        user_services_assignment_table (OCITable):

    """

    service_packs_assignment_table: OCITable = field(
        metadata={"alias": "servicePacksAssignmentTable"}
    )

    user_services_assignment_table: OCITable = field(
        metadata={"alias": "userServicesAssignmentTable"}
    )

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 UserServiceGetAssignmentListRequest

client = Client()

command = UserServiceGetAssignmentListRequest(
    user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("UserServiceGetAssignmentListRequest",
    user_id=...,
)

print(response)