Class NetworkInterface (0.1.5)

NetworkInterface(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A network interface resource attached to an instance. s

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
network str
Optional. URL of the VPC network resource for this instance. This field is a member of oneof_ _network.
subnetwork str
Optional. The URL of the Subnetwork resource for this instance. This field is a member of oneof_ _subnetwork.
ip_address str
Optional. 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. This field is a member of oneof_ _ip_address.
ipv6_address str
Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. This field is a member of oneof_ _ipv6_address.
internal_ipv6_prefix_length int
Optional. The prefix length of the primary internal IPv6 range. This field is a member of oneof_ _internal_ipv6_prefix_length.
name str
Output only. [Output Only] The name of the network interface, which is generated by the server. This field is a member of oneof_ _name.
access_configs MutableSequence[google.cloud.backupdr_v1.types.AccessConfig]
Optional. 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.
ipv6_access_configs MutableSequence[google.cloud.backupdr_v1.types.AccessConfig]
Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
alias_ip_ranges MutableSequence[google.cloud.backupdr_v1.types.AliasIpRange]
Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
stack_type google.cloud.backupdr_v1.types.NetworkInterface.StackType
The stack type for this network interface. This field is a member of oneof_ _stack_type.
ipv6_access_type google.cloud.backupdr_v1.types.NetworkInterface.Ipv6AccessType
Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. This field is a member of oneof_ _ipv6_access_type.
queue_count int
Optional. The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users. This field is a member of oneof_ _queue_count.
nic_type google.cloud.backupdr_v1.types.NetworkInterface.NicType
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. This field is a member of oneof_ _nic_type.
network_attachment str
Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. This field is a member of oneof_ _network_attachment.

Classes

Ipv6AccessType

Ipv6AccessType(value)

IPv6 access type for this network interface.

NicType

NicType(value)

Nic type for this network interface.

StackType

StackType(value)

Stack type for this network interface.