Class NetworkInterface
A network interface resource attached to an instance.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class NetworkInterface : IDirectResponseSchema
Properties
AccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
Declaration
[JsonProperty("accessConfigs")]
public virtual IList<AccessConfig> AccessConfigs { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<AccessConfig> |
AliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
Declaration
[JsonProperty("aliasIpRanges")]
public virtual IList<AliasIpRange> AliasIpRanges { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<AliasIpRange> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Fingerprint
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet.
Declaration
[JsonProperty("fingerprint")]
public virtual string Fingerprint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Ipv6Address
[Output Only] An IPv6 internal network address for this network interface.
Declaration
[JsonProperty("ipv6Address")]
public virtual string Ipv6Address { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Kind
[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Name
[Output Only] The name of the network interface, which is generated by the server. For network devices, these are eth0, eth1, etc.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Network
URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.
If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
Declaration
[JsonProperty("network")]
public virtual string Network { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
NetworkIP
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
Declaration
[JsonProperty("networkIP")]
public virtual string NetworkIP { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Subnetwork
The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - regions/region/subnetworks/subnetwork
Declaration
[JsonProperty("subnetwork")]
public virtual string Subnetwork { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |