class Google::Apis::ComputeV1::Network

Represents a Network resource. Read Networks and Firewalls for more information.

Attributes

auto_create_subnetworks[RW]

When set to true, the network is created in “auto subnet mode”. When set to false, the network is in “custom subnet mode”. In “auto subnet mode”, a newly created network is assigned the default CIDR of 10.128.0.0/9 and it automatically creates one subnetwork per region. Corresponds to the JSON property `autoCreateSubnetworks` @return [Boolean]

auto_create_subnetworks?[RW]

When set to true, the network is created in “auto subnet mode”. When set to false, the network is in “custom subnet mode”. In “auto subnet mode”, a newly created network is assigned the default CIDR of 10.128.0.0/9 and it automatically creates one subnetwork per region. Corresponds to the JSON property `autoCreateSubnetworks` @return [Boolean]

creation_timestamp[RW]
Output Only

Creation timestamp in RFC3339 text format.

Corresponds to the JSON property `creationTimestamp` @return [String]

description[RW]

An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property `description` @return [String]

gateway_i_pv4[RW]

A gateway address for default routing to other networks. This value is read only and is selected by the Google Compute Engine, typically as the first usable address in the IPv4Range. Corresponds to the JSON property `gatewayIPv4` @return [String]

i_pv4_range[RW]

The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created. Corresponds to the JSON property `IPv4Range` @return [String]

id[RW]
Output Only

The unique identifier for the resource. This identifier is

defined by the server. Corresponds to the JSON property `id` @return [String]

kind[RW]
Output Only

Type of the resource. Always compute#network for networks.

Corresponds to the JSON property `kind` @return [String]

name[RW]

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]*)? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Corresponds to the JSON property `name` @return [String]

subnetworks[RW]
Output Only

Server-defined fully-qualified URLs for all subnetworks in this

network. Corresponds to the JSON property `subnetworks` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/compute_v1/classes.rb, line 5219
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/compute_v1/classes.rb, line 5224
def update!(**args)
  @i_pv4_range = args[:i_pv4_range] if args.key?(:i_pv4_range)
  @auto_create_subnetworks = args[:auto_create_subnetworks] if args.key?(:auto_create_subnetworks)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @subnetworks = args[:subnetworks] if args.key?(:subnetworks)
end