NetworkInterfaceResponseComputeBeta class
A network interface resource attached to an instance.
Constructors
-
NetworkInterfaceResponseComputeBeta({required Input<
List< accessConfigs, required Input<AccessConfigResponseComputeBeta> >List< aliasIpRanges, required Input<AliasIpRangeResponseComputeBeta> >String> fingerprint, required Input<int> internalIpv6PrefixLength, required Input<List< ipv6AccessConfigs, required Input<AccessConfigResponseComputeBeta> >String> ipv6AccessType, required Input<String> ipv6Address, required Input<String> kind, required Input<String> name, required Input<String> network, required Input<String> networkAttachment, required Input<String> networkIP, required Input<String> nicType, required Input<int> queueCount, required Input<String> stackType, required Input<String> subnetwork}) -
Creates a new NetworkInterfaceResponseComputeBeta.
accessConfigsAn 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.aliasIpRangesAn array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.fingerprintFingerprint 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.internalIpv6PrefixLengthThe prefix length of the primary internal IPv6 range.ipv6AccessConfigsAn 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.ipv6AccessTypeOne of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6.ipv6AddressAn 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.kindType of the resource. Always compute#networkInterface for network interfaces.nameThe name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.networkURL of the VPC 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 selected project doesn't have the default network, you must specify a network or subnet. 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/defaultnetworkAttachmentThe 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}.networkIPAn 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.nicTypeThe type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.queueCountThe 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.stackTypeThe stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.subnetworkThe 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/subnetworkconst -
NetworkInterfaceResponseComputeBeta.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
accessConfigs
→ Input<
List< AccessConfigResponseComputeBeta> > -
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.
final
-
aliasIpRanges
→ Input<
List< AliasIpRangeResponseComputeBeta> > -
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
final
-
fingerprint
→ Input<
String> -
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.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
internalIpv6PrefixLength
→ Input<
int> -
The prefix length of the primary internal IPv6 range.
final
-
ipv6AccessConfigs
→ Input<
List< AccessConfigResponseComputeBeta> > -
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.
final
-
ipv6AccessType
→ Input<
String> -
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6.
final
-
ipv6Address
→ Input<
String> -
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.
final
-
kind
→ Input<
String> -
Type of the resource. Always compute#networkInterface for network interfaces.
final
-
name
→ Input<
String> -
The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.
final
-
network
→ Input<
String> -
URL of the VPC 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 selected project doesn't have the default network, you must specify a network or subnet. 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
final
-
networkAttachment
→ Input<
String> -
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}.
final
-
networkIP
→ Input<
String> -
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.
final
-
nicType
→ Input<
String> -
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
final
-
queueCount
→ Input<
int> -
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stackType
→ Input<
String> -
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.
final
-
subnetwork
→ Input<
String> -
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
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited