public IObservable <MsvmEthernetSwitchPortFeatureSettingData> PartComponentAsync(MsvmEthernetPortAllocationSettingData inGroupComponent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveTargetAsync(scope, inGroupComponent.AsCimInstance(), options); return(instances.Select(i => (MsvmEthernetSwitchPortFeatureSettingData)scope.Mapper.Create(scope, i))); }
public (System.UInt32 retval, System.String outDiagnosticInformation, CIMConcreteJob outJob) DiagnoseNetworkConnection(System.String inDiagnosticSettings, MsvmEthernetPortAllocationSettingData inTargetNetworkAdapter) { var parameters = new CimMethodParametersCollection(); if (inDiagnosticSettings != null) { parameters.Add(CimMethodParameter.Create("DiagnosticSettings", inDiagnosticSettings, CimType.String, inDiagnosticSettings == null ? CimFlags.NullValue : CimFlags.None)); } if (inTargetNetworkAdapter != null) { parameters.Add(CimMethodParameter.Create("TargetNetworkAdapter", inTargetNetworkAdapter.AsCimInstance(), CimType.Reference, inTargetNetworkAdapter == null ? CimFlags.NullValue : CimFlags.None)); } var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "DiagnoseNetworkConnection", parameters); return((System.UInt32)result.ReturnValue.Value, (System.String)result.OutParameters["DiagnosticInformation"].Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value)); }
public (System.UInt32 retval, CIMConcreteJob outJob, IEnumerable <MsvmEthernetSwitchPortFeatureSettingData> outResultingFeatureSettings) AddFeatureSettings(MsvmEthernetPortAllocationSettingData inAffectedConfiguration, System.String[] inFeatureSettings) { var parameters = new CimMethodParametersCollection(); if (inAffectedConfiguration != null) { parameters.Add(CimMethodParameter.Create("AffectedConfiguration", inAffectedConfiguration.AsCimInstance(), CimType.Reference, inAffectedConfiguration == null ? CimFlags.NullValue : CimFlags.None)); } if (inFeatureSettings != null) { parameters.Add(CimMethodParameter.Create("FeatureSettings", inFeatureSettings, CimType.StringArray, inFeatureSettings == null ? CimFlags.NullValue : CimFlags.None)); } var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "AddFeatureSettings", parameters); return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value), (IEnumerable <MsvmEthernetSwitchPortFeatureSettingData>)InfrastuctureObjectScope.Mapper.CreateMany <MsvmEthernetSwitchPortFeatureSettingData>(InfrastuctureObjectScope, (IEnumerable <CimInstance>)result.OutParameters["ResultingFeatureSettings"].Value)); }
public (System.UInt32 retval, CIMConcreteJob outJob, System.UInt32?outRoundTripTime) TestNetworkConnection(System.UInt32?inIsolationId, System.Boolean?inIsSender, System.String inReceiverIP, System.String inReceiverMac, System.String inSenderIP, System.UInt32?inSequenceNumber, MsvmEthernetPortAllocationSettingData inTargetNetworkAdapter) { var parameters = new CimMethodParametersCollection(); if (inIsolationId.HasValue) { parameters.Add(CimMethodParameter.Create("IsolationId", inIsolationId.Value, CimFlags.None)); } if (inIsSender.HasValue) { parameters.Add(CimMethodParameter.Create("IsSender", inIsSender.Value, CimFlags.None)); } if (inReceiverIP != null) { parameters.Add(CimMethodParameter.Create("ReceiverIP", inReceiverIP, CimType.String, inReceiverIP == null ? CimFlags.NullValue : CimFlags.None)); } if (inReceiverMac != null) { parameters.Add(CimMethodParameter.Create("ReceiverMac", inReceiverMac, CimType.String, inReceiverMac == null ? CimFlags.NullValue : CimFlags.None)); } if (inSenderIP != null) { parameters.Add(CimMethodParameter.Create("SenderIP", inSenderIP, CimType.String, inSenderIP == null ? CimFlags.NullValue : CimFlags.None)); } if (inSequenceNumber.HasValue) { parameters.Add(CimMethodParameter.Create("SequenceNumber", inSequenceNumber.Value, CimFlags.None)); } if (inTargetNetworkAdapter != null) { parameters.Add(CimMethodParameter.Create("TargetNetworkAdapter", inTargetNetworkAdapter.AsCimInstance(), CimType.Reference, inTargetNetworkAdapter == null ? CimFlags.NullValue : CimFlags.None)); } var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "TestNetworkConnection", parameters); return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value), (System.UInt32? )result.OutParameters["RoundTripTime"].Value); }