Class DesktopConverters
Conversions between gRPC proto and local types.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
public static class DesktopConverters
Methods
ToLocal(GrpcVirtualDrive)
Converts a GrpcVirtualDrive to a VirtualDrive.
Declaration
public static VirtualDrive? ToLocal(this GrpcVirtualDrive grpcVirtualDrive)
Parameters
Type | Name | Description |
---|---|---|
GrpcVirtualDrive | grpcVirtualDrive | The input. |
Returns
Type | Description |
---|---|
VirtualDrive | The output. |
ToLocal(GrpcVirtualIPAddress)
Converts a GrpcVirtualIPAddress into a VirtualIPAddress.
Declaration
public static VirtualIPAddress? ToLocal(this GrpcVirtualIPAddress grpcVirtualIPAddress)
Parameters
Type | Name | Description |
---|---|---|
GrpcVirtualIPAddress | grpcVirtualIPAddress | The input. |
Returns
Type | Description |
---|---|
VirtualIPAddress | The output. |
ToLocal(GrpcVirtualMachine)
Converts a GrpcVirtualMachine tp a VirtualMachine.
Declaration
public static VirtualMachine? ToLocal(this GrpcVirtualMachine grpcVirtualMachine)
Parameters
Type | Name | Description |
---|---|---|
GrpcVirtualMachine | grpcVirtualMachine | The input. |
Returns
Type | Description |
---|---|
VirtualMachine | The output. |
ToLocal(GrpcVirtualMachineNetworkAdapter)
Converts a GrpcVirtualMachineNetworkAdapter into a VirtualMachineNetworkAdapter.
Declaration
public static VirtualMachineNetworkAdapter? ToLocal(this GrpcVirtualMachineNetworkAdapter grpcVirtualMachineNetworkAdapter)
Parameters
Type | Name | Description |
---|---|---|
GrpcVirtualMachineNetworkAdapter | grpcVirtualMachineNetworkAdapter | The input. |
Returns
Type | Description |
---|---|
VirtualMachineNetworkAdapter | The output. |
ToLocal(GrpcVirtualNat)
Converts a GrpcVirtualNat tp a VirtualNat.
Declaration
public static VirtualNat? ToLocal(this GrpcVirtualNat grpcVirtualNat)
Parameters
Type | Name | Description |
---|---|---|
GrpcVirtualNat | grpcVirtualNat | The input. |
Returns
Type | Description |
---|---|
VirtualNat | The output. |
ToLocal(GrpcVirtualSwitch)
Converts a GrpcVirtualSwitch tp a VirtualSwitch.
Declaration
public static VirtualSwitch? ToLocal(this GrpcVirtualSwitch grpcVirtualSwitch)
Parameters
Type | Name | Description |
---|---|---|
GrpcVirtualSwitch | grpcVirtualSwitch | The input. |
Returns
Type | Description |
---|---|
VirtualSwitch | The output. |
ToProto(VirtualDrive)
Converts a VirtualDrive to a GrpcVirtualDrive.
Declaration
public static GrpcVirtualDrive? ToProto(this VirtualDrive virtualDrive)
Parameters
Type | Name | Description |
---|---|---|
VirtualDrive | virtualDrive | The input. |
Returns
Type | Description |
---|---|
GrpcVirtualDrive | The output. |
ToProto(VirtualIPAddress)
Converts a VirtualIPAddress into a GrpcVirtualIPAddress.
Declaration
public static GrpcVirtualIPAddress? ToProto(this VirtualIPAddress virtualIPAddress)
Parameters
Type | Name | Description |
---|---|---|
VirtualIPAddress | virtualIPAddress | The input |
Returns
Type | Description |
---|---|
GrpcVirtualIPAddress | The output. |
ToProto(VirtualMachine)
Comverts a VirtualMachine into a GrpcVirtualMachine.
Declaration
public static GrpcVirtualMachine? ToProto(this VirtualMachine virtualMachine)
Parameters
Type | Name | Description |
---|---|---|
VirtualMachine | virtualMachine | The input. |
Returns
Type | Description |
---|---|
GrpcVirtualMachine | The output. |
ToProto(VirtualMachineNetworkAdapter)
Convertsa VirtualMachineNetworkAdapter int a GrpcVirtualMachineNetworkAdapter.
Declaration
public static GrpcVirtualMachineNetworkAdapter? ToProto(this VirtualMachineNetworkAdapter virtualNat)
Parameters
Type | Name | Description |
---|---|---|
VirtualMachineNetworkAdapter | virtualNat | The input. |
Returns
Type | Description |
---|---|
GrpcVirtualMachineNetworkAdapter | The output. |
ToProto(VirtualNat)
Comverts a VirtualNat into a GrpcVirtualNat.
Declaration
public static GrpcVirtualNat? ToProto(this VirtualNat virtualNat)
Parameters
Type | Name | Description |
---|---|---|
VirtualNat | virtualNat | The input. |
Returns
Type | Description |
---|---|
GrpcVirtualNat | The output. |
ToProto(VirtualSwitch)
Comverts a VirtualSwitch into a GrpcVirtualSwitch.
Declaration
public static GrpcVirtualSwitch? ToProto(this VirtualSwitch virtualSwitch)
Parameters
Type | Name | Description |
---|---|---|
VirtualSwitch | virtualSwitch | The input. |
Returns
Type | Description |
---|---|
GrpcVirtualSwitch | The output. |