Skip to content

ServiceProviderDeviceTypeFileGetListRequest

Bases: OCIRequest

Request to get the list of device type files managed by the Device Management System, on a per-service provider basis. The response is either ServiceProviderDeviceTypeFileGetListResponse or ErrorResponse.

Attributes:

service_provider_id (str):

device_type (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderDeviceTypeFileGetListRequest(OCIRequest):
    """Request to get the list of device type files managed by the Device Management System, on a per-service provider basis.
        The response is either ServiceProviderDeviceTypeFileGetListResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        device_type (str):

    """

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

    device_type: str = field(metadata={"alias": "deviceType"})

Responses

Bases: OCIDataResponse

Response to ServiceProviderDeviceTypeFileGetListRequest. Contains a table of device type files managed by the Device Management System, on a per-service provider basis. The column headings are: "File Format", "Is Authenticated", "Access URL", "Repository URL", "Template URL".

Attributes:

service_provider_device_type_files_table (OCITable):

service_provider_has_customizable_dynamic_files (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderDeviceTypeFileGetListResponse(OCIDataResponse):
    """Response to ServiceProviderDeviceTypeFileGetListRequest.
        Contains a table of device type files managed by the Device Management System, on a per-service provider basis.
        The column headings are: \"File Format\", \"Is Authenticated\", \"Access URL\", \"Repository URL\", \"Template URL\".

    Attributes:

        service_provider_device_type_files_table (OCITable):

        service_provider_has_customizable_dynamic_files (bool):

    """

    service_provider_device_type_files_table: OCITable = field(
        metadata={"alias": "serviceProviderDeviceTypeFilesTable"}
    )

    service_provider_has_customizable_dynamic_files: bool = field(
        metadata={"alias": "serviceProviderHasCustomizableDynamicFiles"}
    )

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 ServiceProviderDeviceTypeFileGetListRequest

client = Client()

command = ServiceProviderDeviceTypeFileGetListRequest(
    service_provider_id=...,
    device_type=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderDeviceTypeFileGetListRequest",
    service_provider_id=...,
    device_type=...,
)

print(response)