compute  v1
Public Member Functions | Static Public Member Functions | List of all members
google_compute_api::Router Class Reference

#include <router.h>

Inheritance diagram for google_compute_api::Router:

Public Member Functions

 Router (const Json::Value &storage)
 
 Router (Json::Value *storage)
 
virtual ~Router ()
 
const StringPiece GetTypeName () const
 
bool has_bgp () const
 
void clear_bgp ()
 
const RouterBgp get_bgp () const
 
RouterBgp mutable_bgp ()
 
bool has_bgp_peers () const
 
void clear_bgp_peers ()
 
const client::JsonCppArray< RouterBgpPeerget_bgp_peers () const
 
client::JsonCppArray< RouterBgpPeermutable_bgpPeers ()
 
bool has_creation_timestamp () const
 
void clear_creation_timestamp ()
 
const StringPiece get_creation_timestamp () const
 
void set_creation_timestamp (const StringPiece &value)
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
uint64 get_id () const
 
void set_id (uint64 value)
 
bool has_interfaces () const
 
void clear_interfaces ()
 
const client::JsonCppArray< RouterInterfaceget_interfaces () const
 
client::JsonCppArray< RouterInterfacemutable_interfaces ()
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_nats () const
 
void clear_nats ()
 
const client::JsonCppArray< RouterNatget_nats () const
 
client::JsonCppArray< RouterNatmutable_nats ()
 
bool has_network () const
 
void clear_network ()
 
const StringPiece get_network () const
 
void set_network (const StringPiece &value)
 
bool has_region () const
 
void clear_region ()
 
const StringPiece get_region () const
 
void set_region (const StringPiece &value)
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 

Static Public Member Functions

static RouterNew ()
 

Detailed Description

Router resource.

Constructor & Destructor Documentation

◆ Router() [1/2]

google_compute_api::Router::Router ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Router() [2/2]

google_compute_api::Router::Router ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Router()

google_compute_api::Router::~Router ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_bgp()

void google_compute_api::Router::clear_bgp ( )
inline

Clears the 'bgp' attribute.

◆ clear_bgp_peers()

void google_compute_api::Router::clear_bgp_peers ( )
inline

Clears the 'bgpPeers' attribute.

◆ clear_creation_timestamp()

void google_compute_api::Router::clear_creation_timestamp ( )
inline

Clears the 'creationTimestamp' attribute.

◆ clear_description()

void google_compute_api::Router::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_id()

void google_compute_api::Router::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_interfaces()

void google_compute_api::Router::clear_interfaces ( )
inline

Clears the 'interfaces' attribute.

◆ clear_kind()

void google_compute_api::Router::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_name()

void google_compute_api::Router::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_nats()

void google_compute_api::Router::clear_nats ( )
inline

Clears the 'nats' attribute.

◆ clear_network()

void google_compute_api::Router::clear_network ( )
inline

Clears the 'network' attribute.

◆ clear_region()

void google_compute_api::Router::clear_region ( )
inline

Clears the 'region' attribute.

◆ clear_self_link()

void google_compute_api::Router::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ get_bgp()

const RouterBgp google_compute_api::Router::get_bgp ( ) const

Get a reference to the value of the 'bgp' attribute.

◆ get_bgp_peers()

const client::JsonCppArray<RouterBgpPeer > google_compute_api::Router::get_bgp_peers ( ) const

Get a reference to the value of the 'bgpPeers' attribute.

◆ get_creation_timestamp()

const StringPiece google_compute_api::Router::get_creation_timestamp ( ) const
inline

Get the value of the 'creationTimestamp' attribute.

◆ get_description()

const StringPiece google_compute_api::Router::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_id()

uint64 google_compute_api::Router::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_interfaces()

const client::JsonCppArray<RouterInterface > google_compute_api::Router::get_interfaces ( ) const

Get a reference to the value of the 'interfaces' attribute.

◆ get_kind()

const StringPiece google_compute_api::Router::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_name()

const StringPiece google_compute_api::Router::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_nats()

const client::JsonCppArray<RouterNat > google_compute_api::Router::get_nats ( ) const

Get a reference to the value of the 'nats' attribute.

◆ get_network()

const StringPiece google_compute_api::Router::get_network ( ) const
inline

Get the value of the 'network' attribute.

◆ get_region()

const StringPiece google_compute_api::Router::get_region ( ) const
inline

Get the value of the 'region' attribute.

◆ get_self_link()

const StringPiece google_compute_api::Router::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ GetTypeName()

const StringPiece google_compute_api::Router::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_compute_api::Router

◆ has_bgp()

bool google_compute_api::Router::has_bgp ( ) const
inline

Determine if the 'bgp' attribute was set.

Returns
true if the 'bgp' attribute was set.

◆ has_bgp_peers()

bool google_compute_api::Router::has_bgp_peers ( ) const
inline

Determine if the 'bgpPeers' attribute was set.

Returns
true if the 'bgpPeers' attribute was set.

◆ has_creation_timestamp()

bool google_compute_api::Router::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::Router::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_id()

bool google_compute_api::Router::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_interfaces()

bool google_compute_api::Router::has_interfaces ( ) const
inline

Determine if the 'interfaces' attribute was set.

Returns
true if the 'interfaces' attribute was set.

◆ has_kind()

bool google_compute_api::Router::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::Router::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_nats()

bool google_compute_api::Router::has_nats ( ) const
inline

Determine if the 'nats' attribute was set.

Returns
true if the 'nats' attribute was set.

◆ has_network()

bool google_compute_api::Router::has_network ( ) const
inline

Determine if the 'network' attribute was set.

Returns
true if the 'network' attribute was set.

◆ has_region()

bool google_compute_api::Router::has_region ( ) const
inline

Determine if the 'region' attribute was set.

Returns
true if the 'region' attribute was set.

◆ has_self_link()

bool google_compute_api::Router::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ mutable_bgp()

RouterBgp google_compute_api::Router::mutable_bgp ( )

Gets a reference to a mutable value of the 'bgp' property.

BGP information specific to this router.

Returns
The result can be modified to change the attribute value.

◆ mutable_bgpPeers()

client::JsonCppArray<RouterBgpPeer > google_compute_api::Router::mutable_bgpPeers ( )

Gets a reference to a mutable value of the 'bgpPeers' property.

BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273.

Returns
The result can be modified to change the attribute value.

◆ mutable_interfaces()

client::JsonCppArray<RouterInterface > google_compute_api::Router::mutable_interfaces ( )

Gets a reference to a mutable value of the 'interfaces' property.

Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both.

Returns
The result can be modified to change the attribute value.

◆ mutable_nats()

client::JsonCppArray<RouterNat > google_compute_api::Router::mutable_nats ( )

Gets a reference to a mutable value of the 'nats' property.

A list of Nat services created in this router.

Returns
The result can be modified to change the attribute value.

◆ New()

Router * google_compute_api::Router::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_creation_timestamp()

void google_compute_api::Router::set_creation_timestamp ( const StringPiece &  value)
inline

Change the 'creationTimestamp' attribute.

[Output Only] Creation timestamp in RFC3339 text format.

Parameters
[in]valueThe new value.

◆ set_description()

void google_compute_api::Router::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
[in]valueThe new value.

◆ set_id()

void google_compute_api::Router::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
[in]valueThe new value.

◆ set_kind()

void google_compute_api::Router::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

[Output Only] Type of resource. Always compute::router for routers.

Parameters
[in]valueThe new value.

◆ set_name()

void google_compute_api::Router::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
[in]valueThe new value.

◆ set_network()

void google_compute_api::Router::set_network ( const StringPiece &  value)
inline

Change the 'network' attribute.

URI of the network to which this router belongs.

Parameters
[in]valueThe new value.

◆ set_region()

void google_compute_api::Router::set_region ( const StringPiece &  value)
inline

Change the 'region' attribute.

[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_compute_api::Router::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

[Output Only] Server-defined URL for the resource.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: