Skip to content

ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest

Bases: OCIRequest

Request the number of access device of a particular device type and service provider. If countOnlyResetSupportedDevice is true, count only access devices if the device type supports reset. By default unmanaged device types are not allowed and devices are counted only if their device type supports Device Management. An error is returned if deviceType is specified but does not support device management. When allowUnmanagedDeviceType is true, unmanaged device type will be counted and a successful response is returned. The response is either ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderResponse or ErrorResponse.

Attributes:

service_provider_id (str):

device_type (str):

count_only_reset_supported_device (Optional[bool]):

allow_unmanaged_device_type (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest(
    OCIRequest
):
    """Request the number of access device of a particular device type and service provider.
        If countOnlyResetSupportedDevice is true, count only access devices if the device type supports reset.
        By default unmanaged device types are not allowed and devices are counted only if their device type supports Device Management.
        An error is returned if deviceType is specified but does not support device management.
        When allowUnmanagedDeviceType is true, unmanaged device type will be counted and a successful response is returned.
        The response is either ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        device_type (str):

        count_only_reset_supported_device (Optional[bool]):

        allow_unmanaged_device_type (Optional[bool]):

    """

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

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

    count_only_reset_supported_device: Optional[bool] = field(
        default=None, metadata={"alias": "countOnlyResetSupportedDevice"}
    )

    allow_unmanaged_device_type: Optional[bool] = field(
        default=None, metadata={"alias": "allowUnmanagedDeviceType"}
    )

Responses

Bases: OCIDataResponse

Response to ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest.

Attributes:

access_device_count (int):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderResponse(
    OCIDataResponse
):
    """Response to ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest.

    Attributes:

        access_device_count (int):

    """

    access_device_count: int = field(metadata={"alias": "accessDeviceCount"})

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 ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest

client = Client()

command = ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest(
    service_provider_id=...,
    device_type=...,
    count_only_reset_supported_device=...,
    allow_unmanaged_device_type=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest",
    service_provider_id=...,
    device_type=...,
    count_only_reset_supported_device=...,
    allow_unmanaged_device_type=...,
)

print(response)