Skip to content

GroupServiceIsAssignedRequest

Bases: OCIRequest

Request to determine if a GroupService is assigned to the group.

Attributes:

service_provider_id (str):

group_id (str):

service_name (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupServiceIsAssignedRequest(OCIRequest):
    """Request to determine if a GroupService is assigned to the group.

    Attributes:

        service_provider_id (str):

        group_id (str):

        service_name (str):

    """

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

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

    service_name: str = field(metadata={"alias": "serviceName"})

Responses

:: mercury_ocip.commands.base_command.ErrorResponse

:: mercury_ocip.commands.base_command.SuccessResponse

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import GroupServiceIsAssignedRequest

client = Client()

command = GroupServiceIsAssignedRequest(
    service_provider_id=...,
    group_id=...,
    service_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupServiceIsAssignedRequest",
    service_provider_id=...,
    group_id=...,
    service_name=...,
)

print(response)