Exemple #1
0
        public IObservable <MsvmReferencePointCollection> CollectionAsync(MsvmVirtualSystemReferencePoint inMember, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inMember.AsCimInstance(), options);

            return(instances.Select(i => (MsvmReferencePointCollection)scope.Mapper.Create(scope, i)));
        }
        public IObservable <MsvmComputerSystem> AntecedentAsync(MsvmVirtualSystemReferencePoint inDependent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inDependent.AsCimInstance(), options);

            return(instances.Select(i => (MsvmComputerSystem)scope.Mapper.Create(scope, i)));
        }
Exemple #3
0
        public (System.UInt32 retval, CIMConcreteJob outJob) RemoveAssociatedData(MsvmVirtualSystemReferencePoint inAffectedReferencePoint)
        {
            var parameters = new CimMethodParametersCollection();

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

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
        public (System.UInt32 retval, MsvmVirtualSystemReferencePoint outResultingReferencePoint, CIMConcreteJob outJob) ConvertToReferencePoint(CIMVirtualSystemSettingData inAffectedSnapshot, System.String inReferencePointSettings, MsvmVirtualSystemReferencePoint inResultingReferencePoint)
        {
            var parameters = new CimMethodParametersCollection();

            if (inAffectedSnapshot != null)
            {
                parameters.Add(CimMethodParameter.Create("AffectedSnapshot", inAffectedSnapshot.AsCimInstance(), CimType.Reference, inAffectedSnapshot == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inReferencePointSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("ReferencePointSettings", inReferencePointSettings, CimType.String, inReferencePointSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inResultingReferencePoint != null)
            {
                parameters.Add(CimMethodParameter.Create("ResultingReferencePoint", inResultingReferencePoint.AsCimInstance(), CimType.Reference, inResultingReferencePoint == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ConvertToReferencePoint", parameters);

            return((System.UInt32)result.ReturnValue.Value, (MsvmVirtualSystemReferencePoint)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["ResultingReferencePoint"].Value), (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemple #5
0
        public (System.UInt32 retval, CIMConcreteJob outJob) ExportReferencePoint(System.String inExportDirectory, System.String inExportSettingData, MsvmVirtualSystemReferencePoint inReferencePoint)
        {
            var parameters = new CimMethodParametersCollection();

            if (inExportDirectory != null)
            {
                parameters.Add(CimMethodParameter.Create("ExportDirectory", inExportDirectory, CimType.String, inExportDirectory == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inExportSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("ExportSettingData", inExportSettingData, CimType.String, inExportSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inReferencePoint != null)
            {
                parameters.Add(CimMethodParameter.Create("ReferencePoint", inReferencePoint.AsCimInstance(), CimType.Reference, inReferencePoint == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ExportReferencePoint", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }