Skip to content

SystemFileRepositoryDeviceUserGetRequest

Bases: OCIRequest

Request a user of a file repository in the system. The response is either a SystemFileRepositoryDeviceUserGetResponse or an ErrorResponse.

Attributes:

file_repository_name (str):

user_name (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemFileRepositoryDeviceUserGetRequest(OCIRequest):
    """Request a user of a file repository in the system.
        The response is either a SystemFileRepositoryDeviceUserGetResponse or an ErrorResponse.

    Attributes:

        file_repository_name (str):

        user_name (str):

    """

    file_repository_name: str = field(metadata={"alias": "fileRepositoryName"})

    user_name: str = field(metadata={"alias": "userName"})

Responses

Bases: OCIDataResponse

Response to SystemFileRepositoryDeviceUserGetRequest.

Attributes:

allow_put (bool):

allow_delete (bool):

allow_get (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemFileRepositoryDeviceUserGetResponse(OCIDataResponse):
    """Response to SystemFileRepositoryDeviceUserGetRequest.

    Attributes:

        allow_put (bool):

        allow_delete (bool):

        allow_get (bool):

    """

    allow_put: bool = field(metadata={"alias": "allowPut"})

    allow_delete: bool = field(metadata={"alias": "allowDelete"})

    allow_get: bool = field(metadata={"alias": "allowGet"})

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 SystemFileRepositoryDeviceUserGetRequest

client = Client()

command = SystemFileRepositoryDeviceUserGetRequest(
    file_repository_name=...,
    user_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemFileRepositoryDeviceUserGetRequest",
    file_repository_name=...,
    user_name=...,
)

print(response)