Class GrpcNewExternalSwitchRequest
Creates a new external Hyper-V switch. This returns a GrpcBaseReply.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
[DataContract]
public class GrpcNewExternalSwitchRequest
Constructors
GrpcNewExternalSwitchRequest()
Default constructor.
Declaration
public GrpcNewExternalSwitchRequest()
GrpcNewExternalSwitchRequest(string, IPAddress)
Constructor.
Declaration
public GrpcNewExternalSwitchRequest(string switchName, IPAddress gateway)
Parameters
Type | Name | Description |
---|---|---|
string | switchName | The new switch name. |
IPAddress | gateway | Address of the LAN gateway, used to identify the connected network interface. |
Properties
Gateway
Address of the LAN gateway.
Declaration
[DataMember(Order = 2)]
public string? Gateway { get; set; }
Property Value
Type | Description |
---|---|
string |
SwitchName
Identifies the desired switch.
Declaration
[DataMember(Order = 1)]
public string? SwitchName { get; set; }
Property Value
Type | Description |
---|---|
string |