GoogleApi.Compute.V1.Model.NetworkInterface (google_api_compute v0.37.0) View Source

A network interface resource attached to an instance.

Attributes

  • accessConfigs (type: list(GoogleApi.Compute.V1.Model.AccessConfig.t), default: nil) - 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.

  • aliasIpRanges (type: list(GoogleApi.Compute.V1.Model.AliasIpRange.t), default: nil) - An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

  • fingerprint (type: String.t, default: nil) - 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. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.

  • ipv6Address (type: String.t, default: nil) - [Output Only] An IPv6 internal network address for this network interface.

  • kind (type: String.t, default: compute#networkInterface) - [Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

  • name (type: String.t, default: nil) - [Output Only] The name of the network interface, which is generated by the server. For network devices, these are eth0, eth1, etc.

  • network (type: String.t, default: nil) - 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:

  • networkIP (type: String.t, default: nil) - 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.

  • nicType (type: String.t, default: nil) - The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

  • subnetwork (type: String.t, default: nil) - 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:

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Compute.V1.Model.NetworkInterface{
  accessConfigs: [GoogleApi.Compute.V1.Model.AccessConfig.t()] | nil,
  aliasIpRanges: [GoogleApi.Compute.V1.Model.AliasIpRange.t()] | nil,
  fingerprint: String.t() | nil,
  ipv6Address: String.t() | nil,
  kind: String.t() | nil,
  name: String.t() | nil,
  network: String.t() | nil,
  networkIP: String.t() | nil,
  nicType: String.t() | nil,
  subnetwork: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.