public IObservable <MsvmVirtualSystemReferencePoint> DependentAsync(MsvmComputerSystem inAntecedent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inAntecedent.AsCimInstance(), options);

            return(instances.Select(i => (MsvmVirtualSystemReferencePoint)scope.Mapper.Create(scope, i)));
        }
Exemple #2
0
        public IObservable <MsvmVirtualSystemCollection> CollectionAsync(MsvmComputerSystem inMember, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inMember.AsCimInstance(), options);

            return(instances.Select(i => (MsvmVirtualSystemCollection)scope.Mapper.Create(scope, i)));
        }
Exemple #3
0
        public IObservable <CimInstance> ConformantStandardAsync(MsvmComputerSystem inManagedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inManagedElement.AsCimInstance(), options);

            return(instances);
        }
        public IEnumerable <MsvmTerminalConnection> Dependent(MsvmComputerSystem inAntecedent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTarget(scope, inAntecedent.AsCimInstance(), options);

            return(instances.Select(i => (MsvmTerminalConnection)scope.Mapper.Create(scope, i)));
        }
Exemple #5
0
        public IObservable <CIMResourcePool> PartComponentAsync(MsvmComputerSystem inGroupComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inGroupComponent.AsCimInstance(), options);

            return(instances.Select(i => (CIMResourcePool)scope.Mapper.Create(scope, i)));
        }
Exemple #6
0
        public (System.UInt32 retval, CIMConcreteJob outJob) ImportReferencePointMetadata(MsvmComputerSystem inAffectedSystem, System.String inConfigFilePath, System.String inRuntimeStateFilePath)
        {
            var parameters = new CimMethodParametersCollection();

            if (inAffectedSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("AffectedSystem", inAffectedSystem.AsCimInstance(), CimType.Reference, inAffectedSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inConfigFilePath != null)
            {
                parameters.Add(CimMethodParameter.Create("ConfigFilePath", inConfigFilePath, CimType.String, inConfigFilePath == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inRuntimeStateFilePath != null)
            {
                parameters.Add(CimMethodParameter.Create("RuntimeStateFilePath", inRuntimeStateFilePath, CimType.String, inRuntimeStateFilePath == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ImportReferencePointMetadata", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemple #7
0
        public (System.UInt32 retval, MsvmVirtualSystemReferencePoint outResultingReferencePoint, CIMConcreteJob outJob) CreateReferencePoint(MsvmComputerSystem inAffectedSystem, System.String inReferencePointSettings, System.UInt16?inReferencePointType, MsvmVirtualSystemReferencePoint inResultingReferencePoint)
        {
            var parameters = new CimMethodParametersCollection();

            if (inAffectedSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("AffectedSystem", inAffectedSystem.AsCimInstance(), CimType.Reference, inAffectedSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inReferencePointSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("ReferencePointSettings", inReferencePointSettings, CimType.String, inReferencePointSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inReferencePointType.HasValue)
            {
                parameters.Add(CimMethodParameter.Create("ReferencePointType", inReferencePointType.Value, 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, "CreateReferencePoint", 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));
        }