예제 #1
0
 def test_d_1(self):
     AddVersion('a', 'b', 'c', 1, 'e', self.out)
     self.assertEqual(self.out.getvalue(),
         '    add_version("a", "b", "c", true, "e")\n')
예제 #2
0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import

# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from pyVmomi.VmomiSupport import CreateDataType, CreateManagedType, CreateEnumType, AddVersion, AddVersionParent, F_LINK, F_LINKABLE, F_OPTIONAL

AddVersion("vmodl.query.version.version1", "", "", 0, "vim25")
AddVersion("vmodl.query.version.version2", "", "", 0, "vim25")
AddVersion("vmodl.query.version.version3", "", "", 0, "vim25")
AddVersion("vmodl.version.version0", "", "", 0, "vim25")
AddVersion("vmodl.version.version1", "", "", 0, "vim25")
AddVersionParent("vmodl.query.version.version1",
                 "vmodl.query.version.version1")
AddVersionParent("vmodl.query.version.version1", "vmodl.version.version0")
AddVersionParent("vmodl.query.version.version2",
                 "vmodl.query.version.version1")
AddVersionParent("vmodl.query.version.version2",
                 "vmodl.query.version.version2")
AddVersionParent("vmodl.query.version.version2", "vmodl.version.version0")
AddVersionParent("vmodl.query.version.version2", "vmodl.version.version1")
AddVersionParent("vmodl.query.version.version3",
                 "vmodl.query.version.version1")
예제 #3
0
import pyVmomi
pyVmomi.sms = pyVmomi.VmomiSupport.LazyModule('sms')
if hasattr(pyVmomi.VmomiSupport, "_urnMap"):
    pyVmomi.VmomiSupport._urnMap["sms"] = "urn:sms"

# The following definitions were taken from the VMware package
# DO NOT EDIT

from pyVmomi.VmomiSupport import CreateDataType, CreateManagedType, CreateEnumType, AddVersion, AddVersionParent, F_LINK, F_LINKABLE, F_OPTIONAL

AddVersion('sms.version.version1', 'sms', '1.0', 0, 'sms')
AddVersion('sms.version.version2', 'sms', '2.0', 0, 'sms')
AddVersion('sms.version.version3', 'sms', '3.0', 0, 'sms')
AddVersion('sms.version.version4', 'sms', '4.0', 0, 'sms')
AddVersion('vim.version.version1', 'vim2', '2.0', 1, 'vim25')
AddVersion('vim.version.version2', 'vim25', '2.5', 0, 'vim25')
AddVersion('vim.version.version3', 'vim25', '2.5u2', 1, 'vim25')
AddVersion('vim.version.version4', 'vim25', '2.5u2server', 0, 'vim25')
AddVersion('vim.version.version5', 'vim25', '4.0', 0, 'vim25')
AddVersion('vim.version.version6', 'vim25', '4.1', 0, 'vim25')
AddVersion('vmodl.query.version.version1', '', '', 0, 'vim25')
AddVersion('vmodl.query.version.version2', '', '', 0, 'vim25')
AddVersion('vmodl.query.version.version3', '', '', 0, 'vim25')
AddVersion('vmodl.version.version0', '', '', 0, 'vim25')
AddVersion('vmodl.version.version1', '', '', 0, 'vim25')
AddVersionParent('sms.version.version1', 'sms.version.version1')
AddVersionParent('sms.version.version1', 'vmodl.version.version0')
AddVersionParent('sms.version.version1', 'vmodl.version.version1')
AddVersionParent('sms.version.version2', 'sms.version.version1')
AddVersionParent('sms.version.version2', 'sms.version.version2')
AddVersionParent('sms.version.version2', 'vim.version.version1')
예제 #4
0
# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from pyVmomi.VmomiSupport import CreateDataType, CreateManagedType, CreateEnumType, AddVersion, AddVersionParent, F_LINK, F_LINKABLE, F_OPTIONAL, F_SECRET
from pyVmomi.VmomiSupport import newestVersions, currentVersions, stableVersions, matureVersions, publicVersions, oldestVersions

AddVersion("vmodl.query.version.version1", "", "", 0, "vim25")
AddVersion("vmodl.query.version.version2", "", "", 0, "vim25")
AddVersion("vmodl.query.version.version3", "", "", 0, "vim25")
AddVersion("vmodl.query.version.version4", "", "", 0, "vim25")
AddVersion("eam.version.version6", "eam", "6.0", 0, "eam")
AddVersion("vmodl.reflect.version.version1", "reflect", "1.0", 0, "reflect")
AddVersion("eam.version.version1", "eam", "1.0", 0, "eam")
AddVersion("eam.version.version2", "eam", "2.0", 0, "eam")
AddVersion("eam.version.version3", "eam", "3.0", 0, "eam")
AddVersion("eam.version.version2_5", "eam", "2_5", 0, "eam")
AddVersion("vim.version.version1", "vim2", "2.0", 0, "vim25")
AddVersion("vim.version.version2", "vim25", "2.5", 0, "vim25")
AddVersion("vim.version.version3", "vim25", "2.5u2", 0, "vim25")
AddVersion("vim.version.version4", "vim25", "2.5u2server", 0, "vim25")
AddVersion("vim.version.version5", "vim25", "4.0", 0, "vim25")
AddVersion("vim.version.version6", "vim25", "4.1", 0, "vim25")
AddVersion("vim.version.version7", "vim25", "5.0", 0, "vim25")
AddVersion("vim.version.version8", "vim25", "5.1", 0, "vim25")
AddVersion("vmodl.version.version2", "", "", 0, "vim25")
AddVersion("vmodl.version.version1", "", "", 0, "vim25")
AddVersion("vmodl.version.version0", "", "", 0, "vim25")
AddVersionParent("vmodl.query.version.version1", "vmodl.query.version.version1")
AddVersionParent("vmodl.query.version.version1", "vmodl.version.version0")
AddVersionParent("vmodl.query.version.version2", "vmodl.query.version.version1")
AddVersionParent("vmodl.query.version.version2", "vmodl.query.version.version2")
AddVersionParent("vmodl.query.version.version2", "vmodl.version.version1")
AddVersionParent("vmodl.query.version.version2", "vmodl.version.version0")
# The following definitions were taken from the VMware package
# DO NOT EDIT

from pyVmomi.VmomiSupport import CreateDataType, CreateManagedType, CreateEnumType, AddVersion, AddVersionParent, F_LINK, F_LINKABLE, F_OPTIONAL

AddVersion("vmodl.reflect.version.version1", "reflect", "1.0", 0, "reflect")
AddVersion("vmodl.version.version0", ", ", 0, "vim25")
AddVersion("vmodl.version.version1", ", ", 0, "vim25")
AddVersion("vmodl.version.version2", ", ", 0, "vim25")
AddVersionParent("vmodl.reflect.version.version1",
                 "vmodl.reflect.version.version1")
AddVersionParent("vmodl.reflect.version.version1", "vmodl.version.version0")
AddVersionParent("vmodl.reflect.version.version1", "vmodl.version.version1")
AddVersionParent("vmodl.reflect.version.version1", "vmodl.version.version2")
AddVersionParent("vmodl.version.version0", "vmodl.version.version0")
AddVersionParent("vmodl.version.version1", "vmodl.version.version0")
AddVersionParent("vmodl.version.version1", "vmodl.version.version1")
AddVersionParent("vmodl.version.version2", "vmodl.version.version0")
AddVersionParent("vmodl.version.version2", "vmodl.version.version1")
AddVersionParent("vmodl.version.version2", "vmodl.version.version2")
CreateManagedType(
    "vmodl.reflect.DynamicTypeManager", "InternalDynamicTypeManager",
    "vmodl.ManagedObject", "vmodl.reflect.version.version1", None,
    [("queryTypeInfo", "DynamicTypeMgrQueryTypeInfo",
      "vmodl.reflect.version.version1",
      (("filterSpec", "vmodl.reflect.DynamicTypeManager.FilterSpec",
        "vmodl.reflect.version.version1", F_OPTIONAL, None), ),
      (0, "vmodl.reflect.DynamicTypeManager.AllTypeInfo",
       "vmodl.reflect.DynamicTypeManager.AllTypeInfo"), "System.Read", None),
     ("queryMoInstances", "DynamicTypeMgrQueryMoInstances",
      "vmodl.reflect.version.version1",
예제 #6
0
# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from pyVmomi.VmomiSupport import CreateDataType, CreateManagedType, CreateEnumType, AddVersion, AddVersionParent, F_LINK, F_LINKABLE, F_OPTIONAL, F_SECRET
from pyVmomi.VmomiSupport import newestVersions, currentVersions, stableVersions, matureVersions, publicVersions, oldestVersions

AddVersion("pbm.version.version1", "pbm", "1.0", 0, "pbm")
AddVersion("pbm.version.version2", "pbm", "2.0", 0, "pbm")
AddVersion("vmodl.version.version2", "", "", 0, "vim25")
AddVersion("vmodl.version.version1", "", "", 0, "vim25")
AddVersion("vmodl.version.version0", "", "", 0, "vim25")
AddVersionParent("pbm.version.version1", "pbm.version.version1")
AddVersionParent("pbm.version.version1", "vmodl.version.version2")
AddVersionParent("pbm.version.version1", "vmodl.version.version1")
AddVersionParent("pbm.version.version1", "vmodl.version.version0")
AddVersionParent("pbm.version.version2", "pbm.version.version1")
AddVersionParent("pbm.version.version2", "pbm.version.version2")
AddVersionParent("pbm.version.version2", "vmodl.version.version2")
AddVersionParent("pbm.version.version2", "vmodl.version.version1")
AddVersionParent("pbm.version.version2", "vmodl.version.version0")
AddVersionParent("vmodl.version.version2", "vmodl.version.version2")
AddVersionParent("vmodl.version.version2", "vmodl.version.version1")
AddVersionParent("vmodl.version.version2", "vmodl.version.version0")
AddVersionParent("vmodl.version.version1", "vmodl.version.version1")
AddVersionParent("vmodl.version.version1", "vmodl.version.version0")
AddVersionParent("vmodl.version.version0", "vmodl.version.version0")

newestVersions.Add("pbm.version.version2")
currentVersions.Add("pbm.version.version2")
stableVersions.Add("pbm.version.version2")
matureVersions.Add("pbm.version.version2")
publicVersions.Add("pbm.version.version2")
oldestVersions.Add("pbm.version.version1")