1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
# Copyright (c) 2006-2025 Broadcom. All Rights Reserved.
# Broadcom Confidential. The term "Broadcom" refers to Broadcom Inc.
# and/or its subsidiaries.
# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from typing import NoReturn
from typing import Optional
from pyVmomi.VmomiSupport import ManagedObject
from pyVmomi.vim import ClusterComputeResource
from pyVmomi.vim import HostSystem
from pyVmomi.vmodl import DynamicData
from pyVmomi.vmodl import MethodFault
from pyVmomi.vim.vm.device import VirtualPCIPassthrough
class DirectPathProfileManager(ManagedObject):
class DirectPathConfig(DynamicData):
pass
class VmiopDirectPathConfig(DirectPathConfig):
vgpuProfile: str
class DvxDirectPathConfig(DirectPathConfig):
dvxBacking: VirtualPCIPassthrough.DvxBackingInfo
class DynamicDirectPathConfig(DirectPathConfig):
dynamicDirectPathBacking: VirtualPCIPassthrough.DynamicBackingInfo
class VirtualDeviceGroupDirectPathConfig(DirectPathConfig):
deviceGroupName: str
class CreateSpec(DynamicData):
name: str
description: Optional[str] = None
deviceConfig: DirectPathConfig
class UpdateSpec(DynamicData):
name: Optional[str] = None
description: Optional[str] = None
class FilterSpec(DynamicData):
ids: list[str] = []
names: list[str] = []
clusters: list[ClusterComputeResource] = []
class DirectPathProfileInfo(DynamicData):
id: str
name: str
description: Optional[str] = None
vendorName: str
deviceConfig: DirectPathConfig
class TargetEntity(DynamicData):
pass
class TargetHost(TargetEntity):
host: HostSystem
class TargetCluster(TargetEntity):
cluster: ClusterComputeResource
class CapacityQuerySpec(DynamicData):
pass
class CapacityQueryById(CapacityQuerySpec):
id: str
class CapacityQueryByName(CapacityQuerySpec):
name: str
class CapacityQueryByDeviceConfig(CapacityQuerySpec):
deviceConfig: DirectPathConfig
class CapacityResult(DynamicData):
pass
class CapacityInfo(CapacityResult):
profile: DirectPathProfileInfo
consumed: int
remaining: int
max: int
unusedReservation: int
class CapacityUnknown(CapacityResult):
querySpec: CapacityQuerySpec
faultList: list[MethodFault] = []
def CreateDirectPathProfile(self, spec: CreateSpec) -> str: ...
def UpdateDirectPathProfile(self, id: str, spec: UpdateSpec) -> NoReturn: ...
def DeleteDirectPathProfile(self, id: str) -> NoReturn: ...
def ListDirectPathProfiles(self, filterSpec: FilterSpec) -> list[DirectPathProfileInfo]: ...
def QueryDirectPathProfileCapacity(self, target: TargetEntity, querySpec: list[CapacityQuerySpec]) -> list[CapacityResult]: ...
|