ServiceProviderVisualDeviceManagementGetDeviceInfoRequest
Bases: OCIRequest
Get the information for a specified device supporting visual device management. The response is either a ServiceProviderVisualDeviceManagementGetDeviceInfoResponse or ErrorResponse.
Attributes:
service_provider_id (str):
device_name (str):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderVisualDeviceManagementGetDeviceInfoRequest(OCIRequest):
"""Get the information for a specified device supporting visual device management.
The response is either a ServiceProviderVisualDeviceManagementGetDeviceInfoResponse or ErrorResponse.
Attributes:
service_provider_id (str):
device_name (str):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
device_name: str = field(metadata={"alias": "deviceName"})
|
Responses
Bases: OCIDataResponse
Response to ServiceProviderVisualDeviceManagementGetDeviceInfoRequest.
Attributes:
device_type (str):
support_visual_device_management (bool):
mac_address (Optional[str]):
primary_user (Optional[PrimaryUserInfo]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderVisualDeviceManagementGetDeviceInfoResponse(OCIDataResponse):
"""Response to ServiceProviderVisualDeviceManagementGetDeviceInfoRequest.
Attributes:
device_type (str):
support_visual_device_management (bool):
mac_address (Optional[str]):
primary_user (Optional[PrimaryUserInfo]):
"""
device_type: str = field(metadata={"alias": "deviceType"})
support_visual_device_management: bool = field(
metadata={"alias": "supportVisualDeviceManagement"}
)
mac_address: Optional[str] = field(default=None, metadata={"alias": "macAddress"})
primary_user: Optional[PrimaryUserInfo] = field(
default=None, metadata={"alias": "primaryUser"}
)
|
Bases: OCIResponseSource 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 ServiceProviderVisualDeviceManagementGetDeviceInfoRequest
client = Client()
command = ServiceProviderVisualDeviceManagementGetDeviceInfoRequest(
service_provider_id=...,
device_name=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("ServiceProviderVisualDeviceManagementGetDeviceInfoRequest",
service_provider_id=...,
device_name=...,
)
print(response)