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

#include <firewall.h>

Inheritance diagram for google_compute_api::Firewall::FirewallAllowed:

Public Member Functions

 FirewallAllowed (const Json::Value &storage)
 
 FirewallAllowed (Json::Value *storage)
 
virtual ~FirewallAllowed ()
 
const StringPiece GetTypeName () const
 
bool has_ipp_rotocol () const
 
void clear_ipp_rotocol ()
 
const StringPiece get_ipp_rotocol () const
 
void set_ipp_rotocol (const StringPiece &value)
 
bool has_ports () const
 
void clear_ports ()
 
const client::JsonCppArray< string > get_ports () const
 
client::JsonCppArray< string > mutable_ports ()
 

Static Public Member Functions

static FirewallAllowedNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ FirewallAllowed() [1/2]

google_compute_api::Firewall::FirewallAllowed::FirewallAllowed ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ FirewallAllowed() [2/2]

google_compute_api::Firewall::FirewallAllowed::FirewallAllowed ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~FirewallAllowed()

google_compute_api::Firewall::FirewallAllowed::~FirewallAllowed ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_ipp_rotocol()

void google_compute_api::Firewall::FirewallAllowed::clear_ipp_rotocol ( )
inline

Clears the 'IPProtocol' attribute.

◆ clear_ports()

void google_compute_api::Firewall::FirewallAllowed::clear_ports ( )
inline

Clears the 'ports' attribute.

◆ get_ipp_rotocol()

const StringPiece google_compute_api::Firewall::FirewallAllowed::get_ipp_rotocol ( ) const
inline

Get the value of the 'IPProtocol' attribute.

◆ get_ports()

const client::JsonCppArray<string > google_compute_api::Firewall::FirewallAllowed::get_ports ( ) const
inline

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

◆ GetTypeName()

const StringPiece google_compute_api::Firewall::FirewallAllowed::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_compute_api::FirewallAllowed

◆ has_ipp_rotocol()

bool google_compute_api::Firewall::FirewallAllowed::has_ipp_rotocol ( ) const
inline

Determine if the 'IPProtocol' attribute was set.

Returns
true if the 'IPProtocol' attribute was set.

◆ has_ports()

bool google_compute_api::Firewall::FirewallAllowed::has_ports ( ) const
inline

Determine if the 'ports' attribute was set.

Returns
true if the 'ports' attribute was set.

◆ mutable_ports()

client::JsonCppArray<string > google_compute_api::Firewall::FirewallAllowed::mutable_ports ( )
inline

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

An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port.

Example inputs include: ["22"], ["80","443"], and ["12345-12349"].

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

◆ New()

Firewall::FirewallAllowed * google_compute_api::Firewall::FirewallAllowed::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_ipp_rotocol()

void google_compute_api::Firewall::FirewallAllowed::set_ipp_rotocol ( const StringPiece &  value)
inline

Change the 'IPProtocol' attribute.

The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.

Parameters
[in]valueThe new value.

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