Network class

Represents a VPC Network resource.

Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for {$api_version}.networks ==)


Network.fromJson(Map _json)


autoCreateSubnetworks bool
Must be set to create a VPC network. If not set, a legacy network is created. [...]
read / write
creationTimestamp String
Output Only Creation timestamp in RFC3339 text format.
read / write
description String
An optional description of this resource. Provide this field when you create the resource.
read / write
gatewayIPv4 String
Output Only The gateway address for default routing out of the network, selected by GCP.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Output Only The unique identifier for the resource. This identifier is defined by the server.
read / write
IPv4Range String
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: Provided by the client when the network is created.
read / write
kind String
Output Only Type of the resource. Always compute#network for networks.
read / write
mtu int
Maximum Transmission Unit in bytes. The minimum value for this field is 1460 and the maximum value is 1500 bytes.
read / write
name String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
read / write
peerings List<NetworkPeering>
Output Only A list of network peerings for the resource.
read / write
routingConfig NetworkRoutingConfig
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
Output Only Server-defined URL for the resource.
read / write
subnetworks List<String>
Output Only Server-defined fully-qualified URLs for all subnetworks in this VPC network.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]