#include <network.h>
Represents a Network resource. Read Virtual Private Cloud (VPC) Network Overview for more information. (== resource_for v1.networks ==) (== resource_for beta.networks ==).
◆ Network() [1/2]
google_compute_api::Network::Network |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ Network() [2/2]
google_compute_api::Network::Network |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~Network()
google_compute_api::Network::~Network |
( |
| ) |
|
|
virtual |
◆ clear_auto_create_subnetworks()
void google_compute_api::Network::clear_auto_create_subnetworks |
( |
| ) |
|
|
inline |
Clears the 'autoCreateSubnetworks
' attribute.
◆ clear_creation_timestamp()
void google_compute_api::Network::clear_creation_timestamp |
( |
| ) |
|
|
inline |
Clears the 'creationTimestamp
' attribute.
◆ clear_description()
void google_compute_api::Network::clear_description |
( |
| ) |
|
|
inline |
Clears the 'description
' attribute.
◆ clear_gateway_ip_v4()
void google_compute_api::Network::clear_gateway_ip_v4 |
( |
| ) |
|
|
inline |
Clears the 'gatewayIPv4
' attribute.
◆ clear_id()
void google_compute_api::Network::clear_id |
( |
| ) |
|
|
inline |
Clears the 'id
' attribute.
◆ clear_ip_v4_range()
void google_compute_api::Network::clear_ip_v4_range |
( |
| ) |
|
|
inline |
Clears the 'IPv4Range
' attribute.
◆ clear_kind()
void google_compute_api::Network::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind
' attribute.
◆ clear_name()
void google_compute_api::Network::clear_name |
( |
| ) |
|
|
inline |
Clears the 'name
' attribute.
◆ clear_peerings()
void google_compute_api::Network::clear_peerings |
( |
| ) |
|
|
inline |
Clears the 'peerings
' attribute.
◆ clear_routing_config()
void google_compute_api::Network::clear_routing_config |
( |
| ) |
|
|
inline |
Clears the 'routingConfig
' attribute.
◆ clear_self_link()
void google_compute_api::Network::clear_self_link |
( |
| ) |
|
|
inline |
Clears the 'selfLink
' attribute.
◆ clear_subnetworks()
void google_compute_api::Network::clear_subnetworks |
( |
| ) |
|
|
inline |
Clears the 'subnetworks
' attribute.
◆ get_auto_create_subnetworks()
bool google_compute_api::Network::get_auto_create_subnetworks |
( |
| ) |
const |
|
inline |
Get the value of the 'autoCreateSubnetworks
' attribute.
◆ get_creation_timestamp()
const StringPiece google_compute_api::Network::get_creation_timestamp |
( |
| ) |
const |
|
inline |
Get the value of the 'creationTimestamp
' attribute.
◆ get_description()
const StringPiece google_compute_api::Network::get_description |
( |
| ) |
const |
|
inline |
Get the value of the 'description
' attribute.
◆ get_gateway_ip_v4()
const StringPiece google_compute_api::Network::get_gateway_ip_v4 |
( |
| ) |
const |
|
inline |
Get the value of the 'gatewayIPv4
' attribute.
◆ get_id()
uint64 google_compute_api::Network::get_id |
( |
| ) |
const |
|
inline |
Get the value of the 'id
' attribute.
◆ get_ip_v4_range()
const StringPiece google_compute_api::Network::get_ip_v4_range |
( |
| ) |
const |
|
inline |
Get the value of the 'IPv4Range
' attribute.
◆ get_kind()
const StringPiece google_compute_api::Network::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind
' attribute.
◆ get_name()
const StringPiece google_compute_api::Network::get_name |
( |
| ) |
const |
|
inline |
Get the value of the 'name
' attribute.
◆ get_peerings()
const client::JsonCppArray<NetworkPeering > google_compute_api::Network::get_peerings |
( |
| ) |
const |
Get a reference to the value of the 'peerings
' attribute.
◆ get_routing_config()
Get a reference to the value of the 'routingConfig
' attribute.
◆ get_self_link()
const StringPiece google_compute_api::Network::get_self_link |
( |
| ) |
const |
|
inline |
Get the value of the 'selfLink
' attribute.
◆ get_subnetworks()
const client::JsonCppArray<string > google_compute_api::Network::get_subnetworks |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'subnetworks
' attribute.
◆ GetTypeName()
const StringPiece google_compute_api::Network::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_auto_create_subnetworks()
bool google_compute_api::Network::has_auto_create_subnetworks |
( |
| ) |
const |
|
inline |
Determine if the 'autoCreateSubnetworks
' attribute was set.
- Returns
- true if the '
autoCreateSubnetworks
' attribute was set.
◆ has_creation_timestamp()
bool google_compute_api::Network::has_creation_timestamp |
( |
| ) |
const |
|
inline |
Determine if the 'creationTimestamp
' attribute was set.
- Returns
- true if the '
creationTimestamp
' attribute was set.
◆ has_description()
bool google_compute_api::Network::has_description |
( |
| ) |
const |
|
inline |
Determine if the 'description
' attribute was set.
- Returns
- true if the '
description
' attribute was set.
◆ has_gateway_ip_v4()
bool google_compute_api::Network::has_gateway_ip_v4 |
( |
| ) |
const |
|
inline |
Determine if the 'gatewayIPv4
' attribute was set.
- Returns
- true if the '
gatewayIPv4
' attribute was set.
◆ has_id()
bool google_compute_api::Network::has_id |
( |
| ) |
const |
|
inline |
Determine if the 'id
' attribute was set.
- Returns
- true if the '
id
' attribute was set.
◆ has_ip_v4_range()
bool google_compute_api::Network::has_ip_v4_range |
( |
| ) |
const |
|
inline |
Determine if the 'IPv4Range
' attribute was set.
- Returns
- true if the '
IPv4Range
' attribute was set.
◆ has_kind()
bool google_compute_api::Network::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind
' attribute was set.
- Returns
- true if the '
kind
' attribute was set.
◆ has_name()
bool google_compute_api::Network::has_name |
( |
| ) |
const |
|
inline |
Determine if the 'name
' attribute was set.
- Returns
- true if the '
name
' attribute was set.
◆ has_peerings()
bool google_compute_api::Network::has_peerings |
( |
| ) |
const |
|
inline |
Determine if the 'peerings
' attribute was set.
- Returns
- true if the '
peerings
' attribute was set.
◆ has_routing_config()
bool google_compute_api::Network::has_routing_config |
( |
| ) |
const |
|
inline |
Determine if the 'routingConfig
' attribute was set.
- Returns
- true if the '
routingConfig
' attribute was set.
◆ has_self_link()
bool google_compute_api::Network::has_self_link |
( |
| ) |
const |
|
inline |
Determine if the 'selfLink
' attribute was set.
- Returns
- true if the '
selfLink
' attribute was set.
◆ has_subnetworks()
bool google_compute_api::Network::has_subnetworks |
( |
| ) |
const |
|
inline |
Determine if the 'subnetworks
' attribute was set.
- Returns
- true if the '
subnetworks
' attribute was set.
◆ mutable_peerings()
client::JsonCppArray<NetworkPeering > google_compute_api::Network::mutable_peerings |
( |
| ) |
|
Gets a reference to a mutable value of the 'peerings
' property.
[Output Only] A list of network peerings for the resource.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_routingConfig()
Gets a reference to a mutable value of the 'routingConfig
' property.
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_subnetworks()
client::JsonCppArray<string > google_compute_api::Network::mutable_subnetworks |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'subnetworks
' property.
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Network * google_compute_api::Network::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_auto_create_subnetworks()
void google_compute_api::Network::set_auto_create_subnetworks |
( |
bool |
value | ) |
|
|
inline |
Change the 'autoCreateSubnetworks
' attribute.
When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode.
An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges.
- Parameters
-
◆ set_creation_timestamp()
void google_compute_api::Network::set_creation_timestamp |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'creationTimestamp
' attribute.
[Output Only] Creation timestamp in RFC3339 text format.
- Parameters
-
◆ set_description()
void google_compute_api::Network::set_description |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource.
- Parameters
-
◆ set_gateway_ip_v4()
void google_compute_api::Network::set_gateway_ip_v4 |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'gatewayIPv4
' attribute.
[Output Only] The gateway address for default routing out of the network. This value is read only and is selected by GCP.
- Parameters
-
◆ set_id()
void google_compute_api::Network::set_id |
( |
uint64 |
value | ) |
|
|
inline |
Change the 'id
' attribute.
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
- Parameters
-
◆ set_ip_v4_range()
void google_compute_api::Network::set_ip_v4_range |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'IPv4Range
' attribute.
- Deprecated:
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: 192.168.0.0/16. Provided by the client when the network is created.
- Parameters
-
◆ set_kind()
void google_compute_api::Network::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind
' attribute.
[Output Only] Type of the resource. Always compute::network for networks.
- Parameters
-
◆ set_name()
void google_compute_api::Network::set_name |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'name
' attribute.
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])?
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.
- Parameters
-
◆ set_self_link()
void google_compute_api::Network::set_self_link |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'selfLink
' attribute.
[Output Only] Server-defined URL for the resource.
- Parameters
-
The documentation for this class was generated from the following files:
- google/compute_api/network.h
- google/compute_api/network.cc