Esempio n. 1
0
        public IObservable <CIMResourceAllocationSettingData> PartComponentAsync(CIMVirtualSystemSettingData inGroupComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inGroupComponent.AsCimInstance(), options);

            return(instances.Select(i => (CIMResourceAllocationSettingData)scope.Mapper.Create(scope, i)));
        }
        public IObservable <CIMComputerSystem> DependentAsync(CIMVirtualSystemSettingData inAntecedent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inAntecedent.AsCimInstance(), options);

            return(instances.Select(i => (CIMComputerSystem)scope.Mapper.Create(scope, i)));
        }
        public (System.UInt32 retval, CIMConcreteJob outJob) ClearSnapshotState(CIMVirtualSystemSettingData inSnapshotSettingData)
        {
            var parameters = new CimMethodParametersCollection();

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

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Esempio n. 4
0
        public (System.UInt32 retval, System.UInt64?outSize) GetSizeOfSystemFiles(CIMVirtualSystemSettingData inVssd)
        {
            var parameters = new CimMethodParametersCollection();

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

            return((System.UInt32)result.ReturnValue.Value, (System.UInt64? )result.OutParameters["Size"].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));
        }
        public (System.UInt32 retval, CIMVirtualSystemSettingData outResultingSnapshot, CIMConcreteJob outJob) CreateSnapshot(CIMComputerSystem inAffectedSystem, CIMVirtualSystemSettingData inResultingSnapshot, System.String inSnapshotSettings, System.UInt16?inSnapshotType)
        {
            var parameters = new CimMethodParametersCollection();

            if (inAffectedSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("AffectedSystem", inAffectedSystem.AsCimInstance(), CimType.Reference, inAffectedSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inResultingSnapshot != null)
            {
                parameters.Add(CimMethodParameter.Create("ResultingSnapshot", inResultingSnapshot.AsCimInstance(), CimType.Reference, inResultingSnapshot == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inSnapshotSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("SnapshotSettings", inSnapshotSettings, CimType.String, inSnapshotSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inSnapshotType.HasValue)
            {
                parameters.Add(CimMethodParameter.Create("SnapshotType", inSnapshotType.Value, CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "CreateSnapshot", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMVirtualSystemSettingData)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["ResultingSnapshot"].Value), (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Esempio n. 7
0
        public (System.UInt32 retval, CIMConcreteJob outJob, CIMComputerSystem outResultingSystem) DefineSystem(CIMVirtualSystemSettingData inReferenceConfiguration, System.String[] inResourceSettings, System.String inSystemSettings)
        {
            var parameters = new CimMethodParametersCollection();

            if (inReferenceConfiguration != null)
            {
                parameters.Add(CimMethodParameter.Create("ReferenceConfiguration", inReferenceConfiguration.AsCimInstance(), CimType.Reference, inReferenceConfiguration == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inResourceSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("ResourceSettings", inResourceSettings, CimType.StringArray, inResourceSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inSystemSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("SystemSettings", inSystemSettings, CimType.String, inSystemSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "DefineSystem", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value), (CIMComputerSystem)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["ResultingSystem"].Value));
        }
Esempio n. 8
0
        public (System.UInt32 retval, CIMConcreteJob outJob, IEnumerable <CIMResourceAllocationSettingData> outResultingResourceSettings) AddResourceSettings(CIMVirtualSystemSettingData inAffectedConfiguration, System.String[] inResourceSettings)
        {
            var parameters = new CimMethodParametersCollection();

            if (inAffectedConfiguration != null)
            {
                parameters.Add(CimMethodParameter.Create("AffectedConfiguration", inAffectedConfiguration.AsCimInstance(), CimType.Reference, inAffectedConfiguration == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inResourceSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("ResourceSettings", inResourceSettings, CimType.StringArray, inResourceSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "AddResourceSettings", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value), (IEnumerable <CIMResourceAllocationSettingData>)InfrastuctureObjectScope.Mapper.CreateMany <CIMResourceAllocationSettingData>(InfrastuctureObjectScope, (IEnumerable <CimInstance>)result.OutParameters["ResultingResourceSettings"].Value));
        }
Esempio n. 9
0
        public (System.UInt32 retval, System.Byte[] outImageData) GetVirtualSystemThumbnailImage(System.UInt16?inHeightPixels, CIMVirtualSystemSettingData inTargetSystem, System.UInt16?inWidthPixels)
        {
            var parameters = new CimMethodParametersCollection();

            if (inHeightPixels.HasValue)
            {
                parameters.Add(CimMethodParameter.Create("HeightPixels", inHeightPixels.Value, CimFlags.None));
            }
            if (inTargetSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("TargetSystem", inTargetSystem.AsCimInstance(), CimType.Reference, inTargetSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inWidthPixels.HasValue)
            {
                parameters.Add(CimMethodParameter.Create("WidthPixels", inWidthPixels.Value, CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "GetVirtualSystemThumbnailImage", parameters);

            return((System.UInt32)result.ReturnValue.Value, (System.Byte[])result.OutParameters["ImageData"].Value);
        }