Skip to content

ServiceProviderDeviceTypeFileGetRequest

Bases: OCIRequest

Request to get a service provider device type file. The response is either ServiceProviderDeviceTypeFileGetResponse or ErrorResponse.

Attributes:

service_provider_id (str):

device_type (str):

file_format (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderDeviceTypeFileGetRequest(OCIRequest):
    """Request to get a service provider device type file.
        The response is either ServiceProviderDeviceTypeFileGetResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        device_type (str):

        file_format (str):

    """

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

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

    file_format: str = field(metadata={"alias": "fileFormat"})

Responses

Bases: OCIDataResponse

Response to ServiceProviderDeviceTypeFileGetRequest.

Attributes:

file_source (Optional[str]):

configuration_file_name (Optional[str]):

access_url (str):

repository_url (Optional[str]):

template_url (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderDeviceTypeFileGetResponse(OCIDataResponse):
    """Response to ServiceProviderDeviceTypeFileGetRequest.

    Attributes:

        file_source (Optional[str]):

        configuration_file_name (Optional[str]):

        access_url (str):

        repository_url (Optional[str]):

        template_url (Optional[str]):

    """

    file_source: Optional[str] = field(default=None, metadata={"alias": "fileSource"})

    configuration_file_name: Optional[str] = field(
        default=None, metadata={"alias": "configurationFileName"}
    )

    access_url: str = field(metadata={"alias": "accessUrl"})

    repository_url: Optional[str] = field(
        default=None, metadata={"alias": "repositoryUrl"}
    )

    template_url: Optional[str] = field(default=None, metadata={"alias": "templateUrl"})

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import ServiceProviderDeviceTypeFileGetRequest

client = Client()

command = ServiceProviderDeviceTypeFileGetRequest(
    service_provider_id=...,
    device_type=...,
    file_format=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderDeviceTypeFileGetRequest",
    service_provider_id=...,
    device_type=...,
    file_format=...,
)

print(response)