Exemplo n.º 1
0
        public (System.UInt32 retval, CIMConcreteJob outJob) ValidatePlannedSystem(MsvmPlannedComputerSystem inPlannedSystem)
        {
            var parameters = new CimMethodParametersCollection();

            if (inPlannedSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("PlannedSystem", inPlannedSystem.AsCimInstance(), CimType.Reference, inPlannedSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ValidatePlannedSystem", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemplo n.º 2
0
        public (System.UInt32 retval, IEnumerable <MsvmVirtualSystemSettingData> outImportedSnapshots, CIMConcreteJob outJob) ImportSnapshotDefinitions(MsvmPlannedComputerSystem inPlannedSystem, System.String inSnapshotFolder)
        {
            var parameters = new CimMethodParametersCollection();

            if (inPlannedSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("PlannedSystem", inPlannedSystem.AsCimInstance(), CimType.Reference, inPlannedSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inSnapshotFolder != null)
            {
                parameters.Add(CimMethodParameter.Create("SnapshotFolder", inSnapshotFolder, CimType.String, inSnapshotFolder == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ImportSnapshotDefinitions", parameters);

            return((System.UInt32)result.ReturnValue.Value, (IEnumerable <MsvmVirtualSystemSettingData>)InfrastuctureObjectScope.Mapper.CreateMany <MsvmVirtualSystemSettingData>(InfrastuctureObjectScope, (IEnumerable <CimInstance>)result.OutParameters["ImportedSnapshots"].Value), (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }