#include <subnetwork.h>
A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==).
◆ Subnetwork() [1/2]
google_compute_api::Subnetwork::Subnetwork |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ Subnetwork() [2/2]
google_compute_api::Subnetwork::Subnetwork |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~Subnetwork()
google_compute_api::Subnetwork::~Subnetwork |
( |
| ) |
|
|
virtual |
◆ clear_creation_timestamp()
void google_compute_api::Subnetwork::clear_creation_timestamp |
( |
| ) |
|
|
inline |
Clears the 'creationTimestamp
' attribute.
◆ clear_description()
void google_compute_api::Subnetwork::clear_description |
( |
| ) |
|
|
inline |
Clears the 'description
' attribute.
◆ clear_enable_flow_logs()
void google_compute_api::Subnetwork::clear_enable_flow_logs |
( |
| ) |
|
|
inline |
Clears the 'enableFlowLogs
' attribute.
◆ clear_fingerprint()
void google_compute_api::Subnetwork::clear_fingerprint |
( |
| ) |
|
|
inline |
Clears the 'fingerprint
' attribute.
◆ clear_gateway_address()
void google_compute_api::Subnetwork::clear_gateway_address |
( |
| ) |
|
|
inline |
Clears the 'gatewayAddress
' attribute.
◆ clear_id()
void google_compute_api::Subnetwork::clear_id |
( |
| ) |
|
|
inline |
Clears the 'id
' attribute.
◆ clear_ip_cidr_range()
void google_compute_api::Subnetwork::clear_ip_cidr_range |
( |
| ) |
|
|
inline |
Clears the 'ipCidrRange
' attribute.
◆ clear_kind()
void google_compute_api::Subnetwork::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind
' attribute.
◆ clear_name()
void google_compute_api::Subnetwork::clear_name |
( |
| ) |
|
|
inline |
Clears the 'name
' attribute.
◆ clear_network()
void google_compute_api::Subnetwork::clear_network |
( |
| ) |
|
|
inline |
Clears the 'network
' attribute.
◆ clear_private_ip_google_access()
void google_compute_api::Subnetwork::clear_private_ip_google_access |
( |
| ) |
|
|
inline |
Clears the 'privateIpGoogleAccess
' attribute.
◆ clear_region()
void google_compute_api::Subnetwork::clear_region |
( |
| ) |
|
|
inline |
Clears the 'region
' attribute.
◆ clear_secondary_ip_ranges()
void google_compute_api::Subnetwork::clear_secondary_ip_ranges |
( |
| ) |
|
|
inline |
Clears the 'secondaryIpRanges
' attribute.
◆ clear_self_link()
void google_compute_api::Subnetwork::clear_self_link |
( |
| ) |
|
|
inline |
Clears the 'selfLink
' attribute.
◆ get_creation_timestamp()
const StringPiece google_compute_api::Subnetwork::get_creation_timestamp |
( |
| ) |
const |
|
inline |
Get the value of the 'creationTimestamp
' attribute.
◆ get_description()
const StringPiece google_compute_api::Subnetwork::get_description |
( |
| ) |
const |
|
inline |
Get the value of the 'description
' attribute.
◆ get_enable_flow_logs()
bool google_compute_api::Subnetwork::get_enable_flow_logs |
( |
| ) |
const |
|
inline |
Get the value of the 'enableFlowLogs
' attribute.
◆ get_fingerprint()
const StringPiece google_compute_api::Subnetwork::get_fingerprint |
( |
| ) |
const |
|
inline |
Get the value of the 'fingerprint
' attribute.
◆ get_gateway_address()
const StringPiece google_compute_api::Subnetwork::get_gateway_address |
( |
| ) |
const |
|
inline |
Get the value of the 'gatewayAddress
' attribute.
◆ get_id()
uint64 google_compute_api::Subnetwork::get_id |
( |
| ) |
const |
|
inline |
Get the value of the 'id
' attribute.
◆ get_ip_cidr_range()
const StringPiece google_compute_api::Subnetwork::get_ip_cidr_range |
( |
| ) |
const |
|
inline |
Get the value of the 'ipCidrRange
' attribute.
◆ get_kind()
const StringPiece google_compute_api::Subnetwork::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind
' attribute.
◆ get_name()
const StringPiece google_compute_api::Subnetwork::get_name |
( |
| ) |
const |
|
inline |
Get the value of the 'name
' attribute.
◆ get_network()
const StringPiece google_compute_api::Subnetwork::get_network |
( |
| ) |
const |
|
inline |
Get the value of the 'network
' attribute.
◆ get_private_ip_google_access()
bool google_compute_api::Subnetwork::get_private_ip_google_access |
( |
| ) |
const |
|
inline |
Get the value of the 'privateIpGoogleAccess
' attribute.
◆ get_region()
const StringPiece google_compute_api::Subnetwork::get_region |
( |
| ) |
const |
|
inline |
Get the value of the 'region
' attribute.
◆ get_secondary_ip_ranges()
Get a reference to the value of the 'secondaryIpRanges
' attribute.
◆ get_self_link()
const StringPiece google_compute_api::Subnetwork::get_self_link |
( |
| ) |
const |
|
inline |
Get the value of the 'selfLink
' attribute.
◆ GetTypeName()
const StringPiece google_compute_api::Subnetwork::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_creation_timestamp()
bool google_compute_api::Subnetwork::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::Subnetwork::has_description |
( |
| ) |
const |
|
inline |
Determine if the 'description
' attribute was set.
- Returns
- true if the '
description
' attribute was set.
◆ has_enable_flow_logs()
bool google_compute_api::Subnetwork::has_enable_flow_logs |
( |
| ) |
const |
|
inline |
Determine if the 'enableFlowLogs
' attribute was set.
- Returns
- true if the '
enableFlowLogs
' attribute was set.
◆ has_fingerprint()
bool google_compute_api::Subnetwork::has_fingerprint |
( |
| ) |
const |
|
inline |
Determine if the 'fingerprint
' attribute was set.
- Returns
- true if the '
fingerprint
' attribute was set.
◆ has_gateway_address()
bool google_compute_api::Subnetwork::has_gateway_address |
( |
| ) |
const |
|
inline |
Determine if the 'gatewayAddress
' attribute was set.
- Returns
- true if the '
gatewayAddress
' attribute was set.
◆ has_id()
bool google_compute_api::Subnetwork::has_id |
( |
| ) |
const |
|
inline |
Determine if the 'id
' attribute was set.
- Returns
- true if the '
id
' attribute was set.
◆ has_ip_cidr_range()
bool google_compute_api::Subnetwork::has_ip_cidr_range |
( |
| ) |
const |
|
inline |
Determine if the 'ipCidrRange
' attribute was set.
- Returns
- true if the '
ipCidrRange
' attribute was set.
◆ has_kind()
bool google_compute_api::Subnetwork::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::Subnetwork::has_name |
( |
| ) |
const |
|
inline |
Determine if the 'name
' attribute was set.
- Returns
- true if the '
name
' attribute was set.
◆ has_network()
bool google_compute_api::Subnetwork::has_network |
( |
| ) |
const |
|
inline |
Determine if the 'network
' attribute was set.
- Returns
- true if the '
network
' attribute was set.
◆ has_private_ip_google_access()
bool google_compute_api::Subnetwork::has_private_ip_google_access |
( |
| ) |
const |
|
inline |
Determine if the 'privateIpGoogleAccess
' attribute was set.
- Returns
- true if the '
privateIpGoogleAccess
' attribute was set.
◆ has_region()
bool google_compute_api::Subnetwork::has_region |
( |
| ) |
const |
|
inline |
Determine if the 'region
' attribute was set.
- Returns
- true if the '
region
' attribute was set.
◆ has_secondary_ip_ranges()
bool google_compute_api::Subnetwork::has_secondary_ip_ranges |
( |
| ) |
const |
|
inline |
Determine if the 'secondaryIpRanges
' attribute was set.
- Returns
- true if the '
secondaryIpRanges
' attribute was set.
◆ has_self_link()
bool google_compute_api::Subnetwork::has_self_link |
( |
| ) |
const |
|
inline |
Determine if the 'selfLink
' attribute was set.
- Returns
- true if the '
selfLink
' attribute was set.
◆ mutable_secondaryIpRanges()
Gets a reference to a mutable value of the 'secondaryIpRanges
' property.
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Subnetwork * google_compute_api::Subnetwork::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_creation_timestamp()
void google_compute_api::Subnetwork::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::Subnetwork::set_description |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- Parameters
-
◆ set_enable_flow_logs()
void google_compute_api::Subnetwork::set_enable_flow_logs |
( |
bool |
value | ) |
|
|
inline |
Change the 'enableFlowLogs
' attribute.
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
- Parameters
-
◆ set_fingerprint()
void google_compute_api::Subnetwork::set_fingerprint |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'fingerprint
' attribute.
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.
To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
- Parameters
-
◆ set_gateway_address()
void google_compute_api::Subnetwork::set_gateway_address |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'gatewayAddress
' attribute.
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
- Parameters
-
◆ set_id()
void google_compute_api::Subnetwork::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_cidr_range()
void google_compute_api::Subnetwork::set_ip_cidr_range |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'ipCidrRange
' attribute.
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.
- Parameters
-
◆ set_kind()
void google_compute_api::Subnetwork::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind
' attribute.
[Output Only] Type of the resource. Always compute::subnetwork for Subnetwork resources.
- Parameters
-
◆ set_name()
void google_compute_api::Subnetwork::set_name |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'name
' attribute.
The name of the resource, provided by the client when initially creating the resource. 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_network()
void google_compute_api::Subnetwork::set_network |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'network
' attribute.
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time.
- Parameters
-
◆ set_private_ip_google_access()
void google_compute_api::Subnetwork::set_private_ip_google_access |
( |
bool |
value | ) |
|
|
inline |
Change the 'privateIpGoogleAccess
' attribute.
Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
- Parameters
-
◆ set_region()
void google_compute_api::Subnetwork::set_region |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'region
' attribute.
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- Parameters
-
◆ set_self_link()
void google_compute_api::Subnetwork::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/subnetwork.h
- google/compute_api/subnetwork.cc