Skip to content

ServiceProviderAccessDeviceDeviceActivationGetRequest

Bases: OCIRequest

Requests the activation information for a device configured at the Service Provider level. Returns a ServiceProviderAccessDeviceDeviceActivationGetResponse or ErrorResponse.

Attributes:

service_provider_id (str):

device_name (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderAccessDeviceDeviceActivationGetRequest(OCIRequest):
    """Requests the activation information for a device configured at the Service Provider level.
        Returns a ServiceProviderAccessDeviceDeviceActivationGetResponse 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 ServiceProviderAccessDeviceDeviceActivationGetRequest. The response contains the activation code (if available), the expiry time (if available) and the activation state. The expiryTime is represented as a timestamp, i.e. the number of milliseconds since January 1, 1970, 00:00:00 GMT.

Attributes:

activation_code (Optional[str]):

expiry_time (Optional[int]):

activation_state (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderAccessDeviceDeviceActivationGetResponse(OCIDataResponse):
    """Response to ServiceProviderAccessDeviceDeviceActivationGetRequest.
        The response contains the activation code (if available), the expiry time (if available) and the activation state.
        The expiryTime is represented as a timestamp, i.e. the number of milliseconds
        since January 1, 1970, 00:00:00 GMT.

    Attributes:

        activation_code (Optional[str]):

        expiry_time (Optional[int]):

        activation_state (str):

    """

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

    expiry_time: Optional[int] = field(default=None, metadata={"alias": "expiryTime"})

    activation_state: str = field(metadata={"alias": "activationState"})

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 ServiceProviderAccessDeviceDeviceActivationGetRequest

client = Client()

command = ServiceProviderAccessDeviceDeviceActivationGetRequest(
    service_provider_id=...,
    device_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderAccessDeviceDeviceActivationGetRequest",
    service_provider_id=...,
    device_name=...,
)

print(response)