# generated by fastapi-codegen:
#   filename:  /Users/apuvvadi/Workspace/guardicore-Contracts-SO/contracts/guardicore/connector
#   timestamp: 2026-02-17T10:52:36+00:00

from __future__ import annotations

from typing import List, Optional

from pydantic import BaseModel, ConfigDict, Field

from centra_sdk.utils.gc_serializer import GcSerializer

from ..common.inventory import SwitchInventoryItem


class SwitchesConfig(BaseModel, GcSerializer):
    model_config = ConfigDict(
        populate_by_name=True,
        from_attributes=True,
    )
    items: List[SwitchInventoryItem] = Field(
        ..., description='Array of switch configuration items'
    )
    prevCursor: Optional[int] = Field(0, description='Previous cursor position')
    status: Optional[int] = Field(200, description='HTTP status code')
    total_count: Optional[int] = Field(None, description='Total count of switch items')
