public (System.UInt32 retval, CIMConcreteJob outJob, CIMComputerSystem outNewComputerSystem) MigrateVirtualSystemToSystem(CIMComputerSystem inComputerSystem, CIMSystem inDestinationSystem, System.String inMigrationSettingData, System.String[] inNewResourceSettingData, System.String inNewSystemSettingData)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inDestinationSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("DestinationSystem", inDestinationSystem.AsCimInstance(), CimType.Reference, inDestinationSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inMigrationSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("MigrationSettingData", inMigrationSettingData, CimType.String, inMigrationSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inNewResourceSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("NewResourceSettingData", inNewResourceSettingData, CimType.StringArray, inNewResourceSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inNewSystemSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("NewSystemSettingData", inNewSystemSettingData, CimType.String, inNewSystemSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "MigrateVirtualSystemToSystem", 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["NewComputerSystem"].Value));
        }
        public (System.UInt32 retval, System.Boolean?outIsMigratable) CheckVirtualSystemIsMigratableToHost(CIMComputerSystem inComputerSystem, System.String inDestinationHost, System.String inMigrationSettingData, System.String[] inNewResourceSettingData, System.String inNewSystemSettingData)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inDestinationHost != null)
            {
                parameters.Add(CimMethodParameter.Create("DestinationHost", inDestinationHost, CimType.String, inDestinationHost == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inMigrationSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("MigrationSettingData", inMigrationSettingData, CimType.String, inMigrationSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inNewResourceSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("NewResourceSettingData", inNewResourceSettingData, CimType.StringArray, inNewResourceSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inNewSystemSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("NewSystemSettingData", inNewSystemSettingData, CimType.String, inNewSystemSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "CheckVirtualSystemIsMigratableToHost", parameters);

            return((System.UInt32)result.ReturnValue.Value, (System.Boolean? )result.OutParameters["IsMigratable"].Value);
        }
        public IObservable <MsvmSummaryInformationBase> DependentAsync(CIMComputerSystem inAntecedent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inAntecedent.AsCimInstance(), options);

            return(instances.Select(i => (MsvmSummaryInformationBase)scope.Mapper.Create(scope, i)));
        }
        public IObservable <MsvmVirtualSystemExportSettingData> SettingDataAsync(CIMComputerSystem inManagedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inManagedElement.AsCimInstance(), options);

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

            return(instances.Select(i => (CIMVirtualSystemSettingData)scope.Mapper.Create(scope, i)));
        }
Exemplo n.º 6
0
        public IObservable <MsvmBIOSElement> PartComponentAsync(CIMComputerSystem inGroupComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inGroupComponent.AsCimInstance(), options);

            return(instances.Select(i => (MsvmBIOSElement)scope.Mapper.Create(scope, i)));
        }
        public IEnumerable <MsvmVirtualSystemSettingData> Dependent(CIMComputerSystem inAntecedent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTarget(scope, inAntecedent.AsCimInstance(), options);

            return(instances.Select(i => (MsvmVirtualSystemSettingData)scope.Mapper.Create(scope, i)));
        }
        public (System.UInt32 retval, System.Byte[] outCompatibilityInfo) GetSystemCompatibilityInfo(CIMComputerSystem inComputerSystem)
        {
            var parameters = new CimMethodParametersCollection();

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

            return((System.UInt32)result.ReturnValue.Value, (System.Byte[])result.OutParameters["CompatibilityInfo"].Value);
        }
        public (System.UInt32 retval, System.String[] outAccessControlList) GetInteractiveSessionACL(CIMComputerSystem inComputerSystem)
        {
            var parameters = new CimMethodParametersCollection();

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

            return((System.UInt32)result.ReturnValue.Value, (System.String[])result.OutParameters["AccessControlList"].Value);
        }
Exemplo n.º 10
0
        public (System.UInt32 retval, CIMConcreteJob outJob) ResetReplicationStatistics(CIMComputerSystem inComputerSystem)
        {
            var parameters = new CimMethodParametersCollection();

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

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
        public (System.UInt32 retval, IEnumerable <MsvmCompatibilityVector> outCompatibilityVectors) GetSystemCompatibilityVectors(CIMComputerSystem inComputerSystem)
        {
            var parameters = new CimMethodParametersCollection();

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

            return((System.UInt32)result.ReturnValue.Value, (IEnumerable <MsvmCompatibilityVector>)InfrastuctureObjectScope.Mapper.CreateMany <MsvmCompatibilityVector>(InfrastuctureObjectScope, (IEnumerable <CimInstance>)result.OutParameters["CompatibilityVectors"].Value));
        }
Exemplo n.º 12
0
        public (System.UInt32 retval, CIMConcreteJob outJob) ChangeReplicationModeToPrimary(CIMComputerSystem inComputerSystem, System.String inReplicationRelationship)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inReplicationRelationship != null)
            {
                parameters.Add(CimMethodParameter.Create("ReplicationRelationship", inReplicationRelationship, CimType.String, inReplicationRelationship == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ChangeReplicationModeToPrimary", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemplo n.º 13
0
        public (System.UInt32 retval, CIMConcreteJob outJob) SetFailoverNetworkAdapterSettings(CIMComputerSystem inComputerSystem, System.String[] inNetworkSettings)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inNetworkSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("NetworkSettings", inNetworkSettings, CimType.StringArray, inNetworkSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "SetFailoverNetworkAdapterSettings", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemplo n.º 14
0
        public (System.UInt32 retval, CIMConcreteJob outJob, CIMComputerSystem outResultingSystem) TestReplicaSystem(CIMComputerSystem inComputerSystem, CIMVirtualSystemSettingData inSnapshotSettingData)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inSnapshotSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("SnapshotSettingData", inSnapshotSettingData.AsCimInstance(), CimType.Reference, inSnapshotSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "TestReplicaSystem", 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));
        }
Exemplo n.º 15
0
        public (System.UInt32 retval, CIMConcreteJob outJob) ImportInitialReplica(CIMComputerSystem inComputerSystem, System.String inInitialReplicationImportLocation)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inInitialReplicationImportLocation != null)
            {
                parameters.Add(CimMethodParameter.Create("InitialReplicationImportLocation", inInitialReplicationImportLocation, CimType.String, inInitialReplicationImportLocation == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ImportInitialReplica", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemplo n.º 16
0
        public (System.UInt32 retval, CIMConcreteJob outJob) RemoveKvpItems(System.String[] inDataItems, CIMComputerSystem inTargetSystem)
        {
            var parameters = new CimMethodParametersCollection();

            if (inDataItems != null)
            {
                parameters.Add(CimMethodParameter.Create("DataItems", inDataItems, CimType.StringArray, inDataItems == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inTargetSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("TargetSystem", inTargetSystem.AsCimInstance(), CimType.Reference, inTargetSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "RemoveKvpItems", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemplo n.º 17
0
        public (System.UInt32 retval, CIMConcreteJob outJob) SetInitialMachineConfigurationData(System.Byte[] inImcData, CIMComputerSystem inTargetSystem)
        {
            var parameters = new CimMethodParametersCollection();

            if (inImcData != null)
            {
                parameters.Add(CimMethodParameter.Create("ImcData", inImcData, CimType.UInt8Array, inImcData == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inTargetSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("TargetSystem", inTargetSystem.AsCimInstance(), CimType.Reference, inTargetSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "SetInitialMachineConfigurationData", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemplo n.º 18
0
        public (System.UInt32 retval, CIMConcreteJob outJob) InitiateFailback(CIMComputerSystem inComputerSystem, System.String inRecoveryPointIdentifier, System.String inReplicationSettingData)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inRecoveryPointIdentifier != null)
            {
                parameters.Add(CimMethodParameter.Create("RecoveryPointIdentifier", inRecoveryPointIdentifier, CimType.String, inRecoveryPointIdentifier == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inReplicationSettingData != null)
            {
                parameters.Add(CimMethodParameter.Create("ReplicationSettingData", inReplicationSettingData, CimType.String, inReplicationSettingData == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "InitiateFailback", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Exemplo n.º 19
0
        public (System.UInt32 retval, CIMConcreteJob outJob) ExportSystemDefinition(CIMComputerSystem inComputerSystem, System.String inExportDirectory, System.String inExportSettingData)
        {
            var parameters = new CimMethodParametersCollection();

            if (inComputerSystem != null)
            {
                parameters.Add(CimMethodParameter.Create("ComputerSystem", inComputerSystem.AsCimInstance(), CimType.Reference, inComputerSystem == null ? CimFlags.NullValue : CimFlags.None));
            }
            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));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ExportSystemDefinition", parameters);

            return((System.UInt32)result.ReturnValue.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));
        }
Exemplo n.º 21
0
 public IEnumerable<CIMComputerSystem> Antecedent(CIMComputerSystem inDependent, CimOperationOptions options = null)
 {
     var scope = _scope;
     var instances = _resolver.ResolveSource(scope, inDependent.AsCimInstance(), options);
     return instances.Select(i => (CIMComputerSystem)scope.Mapper.Create(scope, i));
 }