from __future__ import annotations
from dataclasses import dataclass, field
from xsdata.models.datatype import XmlDuration
from .common_vehicle_service_version_structure import CommonVehicleServiceVersionStructure
from .fleet_refs_rel_structure import FleetRefsRelStructure
from .vehicle_sharing_ref import VehicleSharingRef

__NAMESPACE__ = "http://www.netex.org.uk/netex"


@dataclass(slots=True, kw_only=True)
class VehicleSharingServiceVersionStructure(CommonVehicleServiceVersionStructure):
    class Meta:
        name = "VehicleSharingService_VersionStructure"

    vehicle_sharing_ref: VehicleSharingRef = field(
        metadata={
            "name": "VehicleSharingRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    sharing_policy_url: None | str = field(
        default=None,
        metadata={
            "name": "SharingPolicyUrl",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    minimum_sharing_period: None | XmlDuration = field(
        default=None,
        metadata={
            "name": "MinimumSharingPeriod",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    maximum_sharing_period: None | XmlDuration = field(
        default=None,
        metadata={
            "name": "MaximumSharingPeriod",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    floating_vehicles: None | bool = field(
        default=None,
        metadata={
            "name": "FloatingVehicles",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    fleets: None | FleetRefsRelStructure = field(
        default=None,
        metadata={
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )