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({String? creationTimestamp, String? description, bool? enableFlowLogs, String? externalIpv6Prefix, String? fingerprint, String? gatewayAddress, String? id, String? internalIpv6Prefix, String? ipCidrRange, String? ipv6AccessType, String? ipv6CidrRange, String? kind, SubnetworkLogConfig? logConfig, String? name, String? network, bool? privateIpGoogleAccess, String? privateIpv6GoogleAccess, String? purpose, String? region, String? reservedInternalRange, String? role, List<SubnetworkSecondaryRange>? secondaryIpRanges, String? selfLink, String? stackType, String? state})
Subnetwork.fromJson(Map json_)

Properties

creationTimestamp String?
Creation timestamp in RFC3339 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 assigned to this subnetwork.
getter/setter pair
ipCidrRange String?
The range of internal addresses that are owned by this subnetwork.
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
kind String?
Type of the resource.
getter/setter pair
logConfig SubnetworkLogConfig?
This field denotes the VPC flow logging options for this subnetwork.
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
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?
The purpose of the resource.
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
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 use DRAINING: 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

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