File: PatchManager.pyi

package info (click to toggle)
python-pyvmomi 9.0.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,372 kB
  • sloc: python: 18,622; xml: 77; makefile: 3
file content (79 lines) | stat: -rw-r--r-- 3,246 bytes parent folder | download
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
# 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 ClassVar
from typing import Optional

from pyVmomi.VmomiSupport import Enum
from pyVmomi.VmomiSupport import ManagedObject

from pyVmomi.vim import Task

from pyVmomi.vmodl import DynamicData

class PatchManager(ManagedObject):
   class Result(DynamicData):
      version: str
      status: list[Status] = []
      xmlResult: Optional[str] = None

   class Status(DynamicData):
      class Reason(Enum):
         obsoleted: ClassVar['Reason'] = 'obsoleted'
         missingPatch: ClassVar['Reason'] = 'missingPatch'
         missingLib: ClassVar['Reason'] = 'missingLib'
         hasDependentPatch: ClassVar['Reason'] = 'hasDependentPatch'
         conflictPatch: ClassVar['Reason'] = 'conflictPatch'
         conflictLib: ClassVar['Reason'] = 'conflictLib'

      class Integrity(Enum):
         validated: ClassVar['Integrity'] = 'validated'
         keyNotFound: ClassVar['Integrity'] = 'keyNotFound'
         keyRevoked: ClassVar['Integrity'] = 'keyRevoked'
         keyExpired: ClassVar['Integrity'] = 'keyExpired'
         digestMismatch: ClassVar['Integrity'] = 'digestMismatch'
         notEnoughSignatures: ClassVar['Integrity'] = 'notEnoughSignatures'
         validationError: ClassVar['Integrity'] = 'validationError'

      class InstallState(Enum):
         hostRestarted: ClassVar['InstallState'] = 'hostRestarted'
         imageActive: ClassVar['InstallState'] = 'imageActive'

      class PrerequisitePatch(DynamicData):
         id: str
         installState: list[str] = []

      id: str
      applicable: bool
      reason: list[str] = []
      integrity: Optional[str] = None
      installed: bool
      installState: list[str] = []
      prerequisitePatch: list[PrerequisitePatch] = []
      restartRequired: bool
      reconnectRequired: bool
      vmOffRequired: bool
      supersededPatchIds: list[str] = []

   class Locator(DynamicData):
      url: str
      proxy: Optional[str] = None

   class PatchManagerOperationSpec(DynamicData):
      proxy: Optional[str] = None
      port: Optional[int] = None
      userName: Optional[str] = None
      password: Optional[str] = None
      cmdOption: Optional[str] = None

   def Check(self, metaUrls: list[str], bundleUrls: list[str], spec: Optional[PatchManagerOperationSpec]) -> Task: ...
   def Scan(self, repository: Locator, updateID: list[str]) -> Task: ...
   def ScanV2(self, metaUrls: list[str], bundleUrls: list[str], spec: Optional[PatchManagerOperationSpec]) -> Task: ...
   def Stage(self, metaUrls: list[str], bundleUrls: list[str], vibUrls: list[str], spec: Optional[PatchManagerOperationSpec]) -> Task: ...
   def Install(self, repository: Locator, updateID: str, force: Optional[bool]) -> Task: ...
   def InstallV2(self, metaUrls: list[str], bundleUrls: list[str], vibUrls: list[str], spec: Optional[PatchManagerOperationSpec]) -> Task: ...
   def Uninstall(self, bulletinIds: list[str], spec: Optional[PatchManagerOperationSpec]) -> Task: ...
   def Query(self, spec: Optional[PatchManagerOperationSpec]) -> Task: ...