# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from .VmomiSupport import CreateDataType, CreateManagedType
from .VmomiSupport import CreateEnumType
from .VmomiSupport import AddVersion, AddVersionParent
from .VmomiSupport import AddBreakingChangesInfo
from .VmomiSupport import F_LINK, F_LINKABLE
from .VmomiSupport import F_OPTIONAL, F_SECRET
from .VmomiSupport import newestVersions, stableVersions
from .VmomiSupport import publicVersions, dottedVersions
from .VmomiSupport import oldestVersions

AddVersion("vmodl.version.version0", "", "", 0, "vim25")
AddVersion("vmodl.version.version1", "", "", 0, "vim25")
AddVersion("cis.metadata.version.version1", "cis.metadata", "1.0", 0, "")
AddVersion("cis.cm.version.version1", "cis.cm", "1.0", 0, "")
AddVersionParent("vmodl.version.version0", "vmodl.version.version0")
AddVersionParent("vmodl.version.version1", "vmodl.version.version0")
AddVersionParent("vmodl.version.version1", "vmodl.version.version1")
AddVersionParent("cis.metadata.version.version1", "vmodl.version.version0")
AddVersionParent("cis.metadata.version.version1", "vmodl.version.version1")
AddVersionParent("cis.metadata.version.version1", "cis.metadata.version.version1")
AddVersionParent("cis.cm.version.version1", "vmodl.version.version0")
AddVersionParent("cis.cm.version.version1", "vmodl.version.version1")
AddVersionParent("cis.cm.version.version1", "cis.metadata.version.version1")
AddVersionParent("cis.cm.version.version1", "cis.cm.version.version1")

newestVersions.Add("cis.cm.version.version1")
stableVersions.Add("cis.cm.version.version1")
publicVersions.Add("cis.cm.version.version1")
dottedVersions.Add("cis.cm.version.version1")
oldestVersions.Add("cis.cm.version.version1")

CreateManagedType("cis.cm.ComponentManager", "CmComponentManager", "vmodl.ManagedObject", "cis.cm.version.version1", None, [("loginByToken", "CmComponentManager_LoginByToken", "cis.cm.version.version1", (), (0, "void", "void"), "System.Anonymous", ["cis.cm.fault.InvalidLoginFault", ]), ("logout", "CmComponentManager_Logout", "cis.cm.version.version1", (), (0, "void", "void"), "System.Anonymous", None), ("retrieveServiceInstanceContent", "RetrieveServiceInstanceContent", "cis.cm.version.version1", (), (0, "cis.cm.ServiceInstanceContent", "cis.cm.ServiceInstanceContent"), "System.Anonymous", None)])
CreateDataType("cis.cm.SearchCriteria", "CmSearchCriteria", "vmodl.DynamicData", "cis.cm.version.version1", [("serviceType", "cis.cm.ServiceType", "cis.cm.version.version1", F_OPTIONAL), ("folder", "cis.cm.site.Folder", "cis.cm.version.version1", F_OPTIONAL), ("endPointType", "cis.cm.ServiceEndPointType", "cis.cm.version.version1", F_OPTIONAL), ("selectionMethod", "string", "cis.cm.version.version1", F_OPTIONAL), ("resultFieldList", "string[]", "cis.cm.version.version1", F_OPTIONAL)])
CreateEnumType("cis.cm.SearchCriteria.SelectionMethod", "CmSearchCriteriaSelectionMethod", "cis.cm.version.version1", ["ALL"])
CreateDataType("cis.cm.ServiceAttribute", "CmServiceAttribute", "vmodl.DynamicData", "cis.cm.version.version1", [("key", "string", "cis.cm.version.version1", 0), ("value", "string", "cis.cm.version.version1", 0)])
CreateDataType("cis.cm.ServiceBase", "CmServiceBase", "vmodl.DynamicData", "cis.cm.version.version1", [("serviceEndPoints", "cis.cm.ServiceEndPoint[]", "cis.cm.version.version1", F_OPTIONAL), ("serviceAttributes", "cis.cm.ServiceAttribute[]", "cis.cm.version.version1", F_OPTIONAL), ("serviceNameResourceKey", "string", "cis.cm.version.version1", F_OPTIONAL), ("serviceDescriptionResourceKey", "string", "cis.cm.version.version1", F_OPTIONAL), ("serviceGroupResourceKey", "string", "cis.cm.version.version1", F_OPTIONAL), ("serviceGroupInternalId", "string", "cis.cm.version.version1", F_OPTIONAL), ("hostId", "string", "cis.cm.version.version1", F_OPTIONAL), ("controlScriptPath", "string", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.ServiceEndPoint", "CmServiceEndPoint", "vmodl.DynamicData", "cis.cm.version.version1", [("sslTrust", "string[]", "cis.cm.version.version1", F_OPTIONAL), ("url", "vmodl.URI", "cis.cm.version.version1", 0), ("endPointType", "cis.cm.ServiceEndPointType", "cis.cm.version.version1", 0), ("endPointData", "cis.cm.ServiceEndPointData[]", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.ServiceEndPointData", "CmServiceEndPointData", "vmodl.DynamicData", "cis.cm.version.version1", [("key", "string", "cis.cm.version.version1", 0), ("value", "string", "cis.cm.version.version1", 0)])
CreateDataType("cis.cm.ServiceEndPointType", "CmServiceEndPointType", "vmodl.DynamicData", "cis.cm.version.version1", [("endPointProtocol", "string", "cis.cm.version.version1", F_OPTIONAL), ("typeId", "string", "cis.cm.version.version1", F_OPTIONAL)])
CreateEnumType("cis.cm.ServiceEndPointType.EndPointProtocol", "CmServiceEndPointTypeEndPointProtocol", "cis.cm.version.version1", ["unknown", "vmomi", "wsTrust", "rest", "http", "file", "vapi"])
CreateDataType("cis.cm.ServiceInfo", "CmServiceInfo", "cis.cm.ServiceBase", "cis.cm.version.version1", [("serviceId", "string", "cis.cm.version.version1", F_OPTIONAL), ("folder", "cis.cm.site.Folder", "cis.cm.version.version1", F_OPTIONAL), ("ownerId", "string", "cis.cm.version.version1", F_OPTIONAL), ("serviceVersion", "string", "cis.cm.version.version1", F_OPTIONAL), ("serviceType", "cis.cm.ServiceType", "cis.cm.version.version1", F_OPTIONAL)])
CreateEnumType("cis.cm.ServiceInfo.ServiceField", "CmServiceInfoServiceField", "cis.cm.version.version1", ["ALL", "VERSION", "SERVICE_TYPE", "SERVICE_END_POINTS", "OWNER_ID", "SERVICE_ATTRIBUTES", "NAME_KEY", "DESCRIPTION_KEY", "SERVICE_GROUP_INTERNAL_ID", "SERVICE_GROUP_RESOURCE_KEY", "SERVICE_ID", "FOLDER", "HOST_ID"])
CreateDataType("cis.cm.ServiceInstanceContent", "CmServiceInstanceContent", "vmodl.DynamicData", "cis.cm.version.version1", [("healthStatusManager", "cis.cm.monitor.HealthStatusManager", "cis.cm.version.version1", 0), ("serviceManager", "cis.cm.ServiceManager", "cis.cm.version.version1", 0), ("siteManager", "cis.cm.site.SiteManager", "cis.cm.version.version1", 0), ("serviceConfigurationManager", "cis.cm.scm.ServiceConfigurationManager", "cis.cm.version.version1", 0)])
CreateManagedType("cis.cm.ServiceManager", "CmServiceManager", "vmodl.ManagedObject", "cis.cm.version.version1", None, [("registerService", "RegisterService", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("serviceSpec", "cis.cm.ServiceSpec", "cis.cm.version.version1", 0, None),), (0, "string", "string"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("unregisterService", "UnregisterService", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Owner", ["cis.cm.fault.ComponentManagerFault", ]), ("reRegisterService", "ReRegisterService", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("serviceSpec", "cis.cm.ServiceSpec", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Owner", ["cis.cm.fault.ComponentManagerFault", ]), ("retrieveService", "RetrieveService", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),), (0, "cis.cm.ServiceInfo", "cis.cm.ServiceInfo"), "System.Anonymous", ["cis.cm.fault.ComponentManagerFault", ]), ("search", "Search", "cis.cm.version.version1", (("searchCriteria", "cis.cm.SearchCriteria", "cis.cm.version.version1", F_OPTIONAL, None),), (F_OPTIONAL, "cis.cm.ServiceInfo[]", "cis.cm.ServiceInfo[]"), "System.Anonymous", ["cis.cm.fault.ComponentManagerFault", ]), ("startService", "StartService", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("timeout", "long", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("stopService", "StopService", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("timeout", "long", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("restartService", "RestartService", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("timeout", "long", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("getServiceStatus", "GetServiceStatus", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("timeout", "long", "cis.cm.version.version1", 0, None),), (0, "string", "string"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ])])
CreateDataType("cis.cm.ServiceSpec", "CmServiceSpec", "cis.cm.ServiceBase", "cis.cm.version.version1", [("ownerId", "string", "cis.cm.version.version1", 0), ("serviceVersion", "string", "cis.cm.version.version1", 0), ("serviceType", "cis.cm.ServiceType", "cis.cm.version.version1", 0)])
CreateDataType("cis.cm.ServiceType", "CmServiceType", "vmodl.DynamicData", "cis.cm.version.version1", [("productId", "string", "cis.cm.version.version1", 0), ("typeId", "string", "cis.cm.version.version1", 0)])
CreateDataType("cis.cm.fault.ComponentManagerFault", "CmFaultComponentManagerFault", "vmodl.MethodFault", "cis.cm.version.version1", [("errorCode", "int", "cis.cm.version.version1", 0), ("errorMessage", "string", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.fault.InvalidLoginFault", "CmFaultInvalidLoginFault", "vmodl.MethodFault", "cis.cm.version.version1", [("errorMessage", "vmodl.LocalizableMessage", "cis.cm.version.version1", 0)])
CreateDataType("cis.cm.monitor.HealthStatus", "CmHealthStatus", "vmodl.DynamicData", "cis.cm.version.version1", [("serviceId", "string", "cis.cm.version.version1", 0), ("timeReceived", "vmodl.DateTime", "cis.cm.version.version1", 0), ("statusCode", "string", "cis.cm.version.version1", 0), ("messages", "vmodl.LocalizableMessage[]", "cis.cm.version.version1", F_OPTIONAL), ("rescBundleServiceId", "string", "cis.cm.version.version1", 0)])
CreateEnumType("cis.cm.monitor.HealthStatus.Code", "CmHealthStatusCode", "cis.cm.version.version1", ["GREEN", "YELLOW", "ORANGE", "RED", "FAILED", "UNSUPPORTED", "UNKNOWN"])
CreateManagedType("cis.cm.monitor.HealthStatusManager", "CmHealthStatusManager", "vmodl.ManagedObject", "cis.cm.version.version1", None, [("fetchStatus", "FetchStatus", "cis.cm.version.version1", (("serviceId", "string[]", "cis.cm.version.version1", F_OPTIONAL, None),), (0, "cis.cm.monitor.HealthStatus[]", "cis.cm.monitor.HealthStatus[]"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("invalidateCacheEntry", "InvalidateCacheEntry", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ])])
CreateDataType("cis.cm.scm.Configuration", "CmConfiguration", "vmodl.DynamicData", "cis.cm.version.version1", [("resourceKey", "string", "cis.cm.version.version1", 0), ("parameters", "cis.cm.scm.Parameter[]", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.scm.ConfigurationDefinition", "CmConfigurationDefinition", "vmodl.DynamicData", "cis.cm.version.version1", [("resourceKey", "string", "cis.cm.version.version1", 0), ("metadata", "cis.metadata.TypeDescriptor", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.scm.ConfigurationUpdate", "CmConfigurationUpdate", "vmodl.DynamicData", "cis.cm.version.version1", [("resourceKey", "string", "cis.cm.version.version1", 0), ("add", "cis.cm.scm.Parameter[]", "cis.cm.version.version1", F_OPTIONAL), ("update", "cis.cm.scm.Parameter[]", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.scm.Parameter", "CmParameter", "vmodl.DynamicData", "cis.cm.version.version1", [("name", "string", "cis.cm.version.version1", 0), ("value", "string", "cis.cm.version.version1", 0)])
CreateManagedType("cis.cm.scm.ServiceConfigurationManager", "CmServiceConfigurationManager", "vmodl.ManagedObject", "cis.cm.version.version1", None, [("validate", "Validate", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("config", "cis.cm.scm.ConfigurationUpdate", "cis.cm.version.version1", 0, None),), (0, "cis.cm.scm.response.UpdateResponse", "cis.cm.scm.response.UpdateResponse"), "ComponentManager.Owner", ["cis.cm.fault.ComponentManagerFault", ]), ("update", "Update", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("config", "cis.cm.scm.ConfigurationUpdate", "cis.cm.version.version1", 0, None),), (0, "cis.cm.scm.response.UpdateResponse", "cis.cm.scm.response.UpdateResponse"), "ComponentManager.Owner", ["cis.cm.fault.ComponentManagerFault", ]), ("forceUpdate", "ForceUpdate", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("config", "cis.cm.scm.ConfigurationUpdate", "cis.cm.version.version1", 0, None),), (0, "cis.cm.scm.response.UpdateResponse", "cis.cm.scm.response.UpdateResponse"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("setDefinitions", "SetDefinitions", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("configDef", "cis.cm.scm.ConfigurationDefinition[]", "cis.cm.version.version1", F_OPTIONAL, None),), (0, "void", "void"), "ComponentManager.Owner", ["cis.cm.fault.ComponentManagerFault", ]), ("getResources", "GetResources", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),), (0, "string[]", "string[]"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ]), ("getDefinitions", "GetDefinitions", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),), (0, "cis.cm.scm.ConfigurationDefinition[]", "cis.cm.scm.ConfigurationDefinition[]"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ]), ("getDefinition", "GetDefinition", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("resourceKey", "string", "cis.cm.version.version1", 0, None),), (0, "cis.cm.scm.ConfigurationDefinition", "cis.cm.scm.ConfigurationDefinition"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ]), ("getConfigurations", "GetConfigurations", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),), (0, "cis.cm.scm.Configuration[]", "cis.cm.scm.Configuration[]"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ]), ("getConfiguration", "GetConfiguration", "cis.cm.version.version1", (("serviceId", "string", "cis.cm.version.version1", 0, None),("resourceKey", "string", "cis.cm.version.version1", 0, None),), (0, "cis.cm.scm.Configuration", "cis.cm.scm.Configuration"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ])])
CreateDataType("cis.cm.scm.response.ResponseError", "CmResponseResponseError", "vmodl.DynamicData", "cis.cm.version.version1", [("name", "string", "cis.cm.version.version1", F_OPTIONAL), ("error", "vmodl.LocalizableMessage", "cis.cm.version.version1", 0), ("resourceBundleId", "string", "cis.cm.version.version1", 0)])
CreateDataType("cis.cm.scm.response.UpdateResponse", "CmResponseUpdateResponse", "vmodl.DynamicData", "cis.cm.version.version1", [("success", "boolean", "cis.cm.version.version1", 0), ("errors", "cis.cm.scm.response.ResponseError[]", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.site.Folder", "CmFolder", "vmodl.DynamicData", "cis.cm.version.version1", [("id", "string", "cis.cm.version.version1", 0), ("displayName", "string", "cis.cm.version.version1", F_OPTIONAL), ("parentId", "string", "cis.cm.version.version1", F_OPTIONAL)])
CreateDataType("cis.cm.site.Group", "CmGroup", "cis.cm.site.Folder", "cis.cm.version.version1", None)
CreateDataType("cis.cm.site.Site", "CmSite", "cis.cm.site.Folder", "cis.cm.version.version1", [("groups", "cis.cm.site.Group[]", "cis.cm.version.version1", F_OPTIONAL)])
CreateManagedType("cis.cm.site.SiteManager", "CmSiteManager", "vmodl.ManagedObject", "cis.cm.version.version1", None, [("retrieveLocalGroup", "RetrieveLocalGroup", "cis.cm.version.version1", (), (0, "cis.cm.site.Folder", "cis.cm.site.Folder"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ]), ("retrieveLocalSite", "RetrieveLocalSite", "cis.cm.version.version1", (), (0, "cis.cm.site.Folder", "cis.cm.site.Folder"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ]), ("retrieveSites", "RetrieveSites", "cis.cm.version.version1", (), (0, "cis.cm.site.Site[]", "cis.cm.site.Site[]"), "System.Read", ["cis.cm.fault.ComponentManagerFault", ]), ("attachGroup", "AttachGroup", "cis.cm.version.version1", (("siteId", "string", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("detachGroup", "DetachGroup", "cis.cm.version.version1", (("siteId", "string", "cis.cm.version.version1", 0, None),), (0, "cis.cm.site.Folder", "cis.cm.site.Folder"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("deleteGroup", "DeleteGroup", "cis.cm.version.version1", (("groupId", "string", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("deleteSite", "DeleteSite", "cis.cm.version.version1", (("siteId", "string", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ]), ("updateFolder", "UpdateFolder", "cis.cm.version.version1", (("folder", "cis.cm.site.Folder", "cis.cm.version.version1", 0, None),), (0, "void", "void"), "ComponentManager.Administrator", ["cis.cm.fault.ComponentManagerFault", ])])
