Skip to content

GroupServiceGetAuthorizedListRequest

Bases: OCIRequest

Requests the list of services and service packs authorized to a group. The response is either GroupServiceGetAuthorizedListResponse or ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupServiceGetAuthorizedListRequest(OCIRequest):
    """Requests the list of services and service packs authorized to a group.
        The response is either GroupServiceGetAuthorizedListResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    group_id: str = field(metadata={"alias": "groupId"})

Responses

Bases: OCIDataResponse

Response to GroupServiceGetAuthorizedListRequest.

Attributes:

service_pack_name (Optional[List[str]]):

group_service_name (Optional[List[str]]):

user_service_name (Optional[List[str]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupServiceGetAuthorizedListResponse(OCIDataResponse):
    """Response to GroupServiceGetAuthorizedListRequest.

    Attributes:

        service_pack_name (Optional[List[str]]):

        group_service_name (Optional[List[str]]):

        user_service_name (Optional[List[str]]):

    """

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

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

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

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 GroupServiceGetAuthorizedListRequest

client = Client()

command = GroupServiceGetAuthorizedListRequest(
    service_provider_id=...,
    group_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupServiceGetAuthorizedListRequest",
    service_provider_id=...,
    group_id=...,
)

print(response)