mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Remove pyvmomi stubs (#10957)
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
pyVmomi.vim
|
||||
pyVmomi.vim.event
|
||||
pyVmomi.vim.fault
|
||||
pyVmomi.vim.option
|
||||
pyVmomi.vim.view
|
||||
pyVmomi.vmodl
|
||||
pyVmomi.vmodl.fault
|
||||
pyVmomi.vmodl.query
|
||||
@@ -1,7 +0,0 @@
|
||||
version = "8.0.0.*"
|
||||
upstream_repository = "https://github.com/vmware/pyvmomi"
|
||||
partial_stub = true
|
||||
obsolete_since = "8.0.1.0.1" # Released on 2023-05-25
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = true
|
||||
@@ -1,73 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
from typing import Any
|
||||
|
||||
from ..vmodl.query import PropertyCollector
|
||||
from .event import EventManager
|
||||
from .option import OptionManager
|
||||
from .view import ViewManager
|
||||
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
class ManagedObject: ...
|
||||
|
||||
class ManagedEntity(ManagedObject):
|
||||
_moId: str
|
||||
obj: None
|
||||
name: str
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ServiceInstanceContent:
|
||||
setting: OptionManager
|
||||
propertyCollector: PropertyCollector
|
||||
rootFolder: Folder
|
||||
viewManager: ViewManager
|
||||
perfManager: PerformanceManager
|
||||
eventManager: EventManager
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ServiceInstance:
|
||||
content: ServiceInstanceContent
|
||||
def CurrentTime(self) -> datetime: ...
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class PerformanceManager:
|
||||
class MetricId:
|
||||
counterId: int
|
||||
instance: str
|
||||
def __init__(self, counterId: int, instance: str) -> None: ...
|
||||
|
||||
class PerfCounterInfo:
|
||||
key: int
|
||||
groupInfo: Any
|
||||
nameInfo: Any
|
||||
rollupType: Any
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class QuerySpec:
|
||||
entity: ManagedEntity
|
||||
metricId: list[PerformanceManager.MetricId]
|
||||
intervalId: int
|
||||
maxSample: int
|
||||
startTime: datetime
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class EntityMetricBase:
|
||||
entity: ManagedEntity
|
||||
def QueryPerfCounterByLevel(self, collection_level: int) -> list[PerformanceManager.PerfCounterInfo]: ...
|
||||
def QueryPerf(self, querySpec: list[PerformanceManager.QuerySpec]) -> list[PerformanceManager.EntityMetricBase]: ...
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ClusterComputeResource(ManagedEntity): ...
|
||||
class ComputeResource(ManagedEntity): ...
|
||||
class Datacenter(ManagedEntity): ...
|
||||
class Datastore(ManagedEntity): ...
|
||||
class Folder(ManagedEntity): ...
|
||||
class HostSystem(ManagedEntity): ...
|
||||
class VirtualMachine(ManagedEntity): ...
|
||||
|
||||
class VirtualMachinePowerState(Enum):
|
||||
poweredOff: int
|
||||
poweredOn: int
|
||||
suspended: int
|
||||
@@ -1,16 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
from datetime import datetime
|
||||
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
class Event:
|
||||
createdTime: datetime
|
||||
|
||||
class EventFilterSpec:
|
||||
class ByTime:
|
||||
def __init__(self, beginTime: datetime) -> None: ...
|
||||
time: EventFilterSpec.ByTime
|
||||
|
||||
class EventManager:
|
||||
latestEvent: Event
|
||||
def QueryEvents(self, filer: EventFilterSpec) -> list[Event]: ...
|
||||
@@ -1,7 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
class InvalidName(Exception): ...
|
||||
class RestrictedByAdministrator(Exception): ...
|
||||
class NoPermission(Exception): ...
|
||||
@@ -1,11 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
class OptionManager:
|
||||
def QueryOptions(self, name: str) -> list[OptionValue]: ...
|
||||
|
||||
class OptionValue:
|
||||
value: Any
|
||||
key: str
|
||||
@@ -1,15 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from pyVmomi.vim import ManagedEntity
|
||||
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
class ContainerView:
|
||||
def Destroy(self) -> None: ...
|
||||
|
||||
class ViewManager:
|
||||
# Doc says the `type` parameter of CreateContainerView is a `list[str]`,
|
||||
# but in practice it seems to be `list[Type[ManagedEntity]]`
|
||||
# Source: https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.view.ViewManager.html
|
||||
@staticmethod
|
||||
def CreateContainerView(container: ManagedEntity, type: list[type[ManagedEntity]], recursive: bool) -> ContainerView: ...
|
||||
@@ -1,27 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
from .fault import *
|
||||
from .query import *
|
||||
|
||||
class DynamicData: ...
|
||||
|
||||
class DynamicProperty:
|
||||
def __init__(self, *, name: str = ..., val: Any = ...) -> None: ...
|
||||
name: str
|
||||
val: Any
|
||||
|
||||
class ManagedObject: ...
|
||||
|
||||
class KeyAnyValue(DynamicData):
|
||||
key: str
|
||||
value: Any
|
||||
|
||||
class LocalizableMessage(DynamicData):
|
||||
key: str
|
||||
arg: list[KeyAnyValue] | None
|
||||
message: str | None
|
||||
|
||||
class MethodFault(DynamicData, Exception):
|
||||
msg: str | None
|
||||
faultCause: MethodFault | None
|
||||
faultMessage: list[LocalizableMessage] | None
|
||||
@@ -1,10 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from pyVmomi.vmodl import ManagedObject
|
||||
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
class InvalidArgument(Exception): ...
|
||||
|
||||
class ManagedObjectNotFound(Exception):
|
||||
obj: ManagedObject
|
||||
@@ -1,62 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
from pyVmomi.vim import ManagedEntity
|
||||
from pyVmomi.vim.view import ContainerView
|
||||
from pyVmomi.vmodl import DynamicProperty
|
||||
|
||||
class PropertyCollector:
|
||||
class PropertySpec:
|
||||
def __init__(self, *, all: bool = ..., type: type[ManagedEntity] = ..., pathSet: list[str] = ...) -> None: ...
|
||||
all: bool
|
||||
type: type[ManagedEntity]
|
||||
pathSet: list[str]
|
||||
|
||||
class TraversalSpec:
|
||||
def __init__(
|
||||
self, *, path: str = ..., skip: bool = ..., type: type[ContainerView] = ..., **kwargs: Incomplete
|
||||
) -> None: ...
|
||||
path: str
|
||||
skip: bool
|
||||
type: type[ContainerView]
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class RetrieveOptions:
|
||||
def __init__(self, *, maxObjects: int | None = ...) -> None: ...
|
||||
maxObjects: int | None
|
||||
|
||||
class ObjectSpec:
|
||||
def __init__(
|
||||
self, *, skip: bool = ..., selectSet: list[PropertyCollector.TraversalSpec] = ..., obj: Any = ...
|
||||
) -> None: ...
|
||||
skip: bool
|
||||
selectSet: list[PropertyCollector.TraversalSpec]
|
||||
obj: Any
|
||||
|
||||
class FilterSpec:
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
propSet: list[PropertyCollector.PropertySpec] = ...,
|
||||
objectSet: list[PropertyCollector.ObjectSpec] = ...,
|
||||
**kwargs: Incomplete,
|
||||
) -> None: ...
|
||||
propSet: list[PropertyCollector.PropertySpec]
|
||||
objectSet: list[PropertyCollector.ObjectSpec]
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ObjectContent:
|
||||
def __init__(self, *, obj: ManagedEntity = ..., propSet: list[DynamicProperty] = ..., **kwargs: Incomplete) -> None: ...
|
||||
obj: ManagedEntity
|
||||
propSet: list[DynamicProperty]
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class RetrieveResult:
|
||||
def __init__(self, *, objects: list[PropertyCollector.ObjectContent] = ..., token: str | None = ...) -> None: ...
|
||||
objects: list[PropertyCollector.ObjectContent]
|
||||
token: str | None
|
||||
def RetrievePropertiesEx(
|
||||
self, specSet: list[PropertyCollector.FilterSpec], options: PropertyCollector.RetrieveOptions
|
||||
) -> PropertyCollector.RetrieveResult: ...
|
||||
def ContinueRetrievePropertiesEx(self, token: str) -> PropertyCollector.RetrieveResult: ...
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
Reference in New Issue
Block a user