Class GrpcVirtualMachine
Describes the state of a Hyper-V virtual machine.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
[DataContract]
public class GrpcVirtualMachine
Constructors
GrpcVirtualMachine()
Default constructor.
Declaration
public GrpcVirtualMachine()
GrpcVirtualMachine(string, string, string?, string?)
Constructor.
Declaration
public GrpcVirtualMachine(string name, string state, string? switchName, string? netAdapterName)
Parameters
Type | Name | Description |
---|---|---|
string | name | Specifies the machine name. |
string | state | Specifies the machine state. This corresponds to [VirtualMachineState] defined in [Neon.HyperV]. |
string | switchName | Optionally identifies the attached switch. |
string | netAdapterName | Optionall identifies the attached network adaptor. |
Properties
InterfaceName
Identifies the network interface or switch to which the address is assigned (or null).
Declaration
[DataMember(Order = 4)]
public string? InterfaceName { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
The machine name.
Declaration
[DataMember(Order = 1)]
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
string |
State
The current machine state. This corresponds to [VirtualMachineState] defined in [Neon.HyperV].
Declaration
[DataMember(Order = 2)]
public string? State { get; set; }
Property Value
Type | Description |
---|---|
string |
SwitchName
Identifies the virtual switch to which this virtual machine is attached (or null).
Declaration
[DataMember(Order = 3)]
public string? SwitchName { get; set; }
Property Value
Type | Description |
---|---|
string |