Subnetwork class

Represents a Subnetwork resource.

A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges.

For more information, read Virtual Private Cloud (VPC) Network.

Constructors

Subnetwork({bool? allowSubnetCidrRoutesOverlap, String? creationTimestamp, String? description, bool? enableFlowLogs, String? externalIpv6Prefix, String? fingerprint, String? gatewayAddress, String? id, String? internalIpv6Prefix, String? ipCidrRange, String? ipCollection, String? ipv6AccessType, String? ipv6CidrRange, String? ipv6GceEndpoint, String? kind, SubnetworkLogConfig? logConfig, String? name, String? network, SubnetworkParams? params, bool? privateIpGoogleAccess, String? privateIpv6GoogleAccess, String? purpose, String? region, String? reservedInternalRange, String? resolveSubnetMask, String? role, List<SubnetworkSecondaryRange>? secondaryIpRanges, String? selfLink, String? stackType, String? state, List<String>? systemReservedExternalIpv6Ranges, List<String>? systemReservedInternalIpv6Ranges, SubnetworkUtilizationDetails? utilizationDetails})
Subnetwork.fromJson(Map json_)

Properties

allowSubnetCidrRoutesOverlap bool?
Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom routes that have already been configured on the corresponding network.
getter/setter pair
creationTimestamp String?
Creation timestamp inRFC3339 text format.
getter/setter pair
description String?
An optional description of this resource.
getter/setter pair
enableFlowLogs bool?
Whether to enable flow logging for this subnetwork.
getter/setter pair
externalIpv6Prefix String?
The external IPv6 address range that is owned by this subnetwork.
getter/setter pair
fingerprint String?
Fingerprint of this resource.
getter/setter pair
fingerprintAsBytes List<int>
getter/setter pair
gatewayAddress String?
The gateway address for default routes to reach destination addresses outside this subnetwork.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The unique identifier for the resource.
getter/setter pair
internalIpv6Prefix String?
The internal IPv6 address range that is owned by this subnetwork.
getter/setter pair
ipCidrRange String?
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork.
getter/setter pair
ipCollection String?
Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP.
getter/setter pair
ipv6AccessType String?
The access type of IPv6 address this subnet holds.
getter/setter pair
ipv6CidrRange String?
This field is for internal use.
getter/setter pair
ipv6GceEndpoint String?
Possible endpoints of this subnetwork.
getter/setter pair
kind String?
Type of the resource.
getter/setter pair
logConfig SubnetworkLogConfig?
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
getter/setter pair
name String?
The name of the resource, provided by the client when initially creating the resource.
getter/setter pair
network String?
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork.
getter/setter pair
params SubnetworkParams?
Input only.
getter/setter pair
privateIpGoogleAccess bool?
Whether the VMs in this subnet can access Google services without assigned external IP addresses.
getter/setter pair
privateIpv6GoogleAccess String?
This field is for internal use.
getter/setter pair
purpose String?
Possible string values are:
getter/setter pair
region String?
URL of the region where the Subnetwork resides.
getter/setter pair
reservedInternalRange String?
The URL of the reserved internal range.
getter/setter pair
resolveSubnetMask String?
Configures subnet mask resolution for this subnetwork. Possible string values are:
getter/setter pair
role String?
The role of subnetwork.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryIpRanges List<SubnetworkSecondaryRange>?
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork.
getter/setter pair
Server-defined URL for the resource.
getter/setter pair
stackType String?
The stack type for the subnet.
getter/setter pair
state String?
The state of the subnetwork, which can be one of the following values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained.
getter/setter pair
systemReservedExternalIpv6Ranges List<String>?
The array of external IPv6 network ranges reserved from the subnetwork's external IPv6 range for system use.
getter/setter pair
systemReservedInternalIpv6Ranges List<String>?
The array of internal IPv6 network ranges reserved from the subnetwork's internal IPv6 range for system use.
getter/setter pair
utilizationDetails SubnetworkUtilizationDetails?
The current IP utilization of all subnetwork ranges.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited