Network

google.cloud.compute.v1. Network

Represents a Network.

Constructor

new Network(propertiesopt)

Constructs a new Network.

Parameters:
Name Type Attributes Description
properties google.cloud.compute.v1.INetwork <optional>

Properties to set

Implements:
  • INetwork

Members

IPv4Range

Network IPv4Range.

_IPv4Range

Network _IPv4Range.

_autoCreateSubnetworks

Network _autoCreateSubnetworks.

_creationTimestamp

Network _creationTimestamp.

_description

Network _description.

_enableUlaInternalIpv6

Network _enableUlaInternalIpv6.

_firewallPolicy

Network _firewallPolicy.

_gatewayIPv4

Network _gatewayIPv4.

_id

Network _id.

_internalIpv6Range

Network _internalIpv6Range.

_kind

Network _kind.

_mtu

Network _mtu.

_name

Network _name.

_networkFirewallPolicyEnforcementOrder

Network _networkFirewallPolicyEnforcementOrder.

_routingConfig

Network _routingConfig.

Network _selfLink.

_selfLinkWithId

Network _selfLinkWithId.

autoCreateSubnetworks

Network autoCreateSubnetworks.

creationTimestamp

Network creationTimestamp.

description

Network description.

enableUlaInternalIpv6

Network enableUlaInternalIpv6.

firewallPolicy

Network firewallPolicy.

gatewayIPv4

Network gatewayIPv4.

id

Network id.

internalIpv6Range

Network internalIpv6Range.

kind

Network kind.

mtu

Network mtu.

name

Network name.

networkFirewallPolicyEnforcementOrder

Network networkFirewallPolicyEnforcementOrder.

peerings

Network peerings.

routingConfig

Network routingConfig.

Network selfLink.

selfLinkWithId

Network selfLinkWithId.

subnetworks

Network subnetworks.

NetworkFirewallPolicyEnforcementOrder

NetworkFirewallPolicyEnforcementOrder enum.

Properties:
Name Type Description
UNDEFINED_NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER number

UNDEFINED_NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER value

AFTER_CLASSIC_FIREWALL number

AFTER_CLASSIC_FIREWALL value

BEFORE_CLASSIC_FIREWALL number

BEFORE_CLASSIC_FIREWALL value

Methods

toJSON() → {Object.<string, *>}

Converts this Network to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.compute.v1.Network}

Creates a new Network instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.compute.v1.INetwork <optional>

Properties to set

Returns:
Type Description
google.cloud.compute.v1.Network

Network instance

(static) decode(reader, lengthopt) → {google.cloud.compute.v1.Network}

Decodes a Network message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.cloud.compute.v1.Network

Network

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.cloud.compute.v1.Network}

Decodes a Network message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.cloud.compute.v1.Network

Network

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified Network message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.INetwork

Network message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified Network message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.INetwork

Network message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.cloud.compute.v1.Network}

Creates a Network message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.cloud.compute.v1.Network

Network

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for Network

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a Network message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.Network

Network

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a Network message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not