container  v1
Public Member Functions | Static Public Member Functions | List of all members
google_container_api::NetworkPolicy Class Reference

#include <network_policy.h>

Inheritance diagram for google_container_api::NetworkPolicy:

Public Member Functions

 NetworkPolicy (const Json::Value &storage)
 
 NetworkPolicy (Json::Value *storage)
 
virtual ~NetworkPolicy ()
 
const StringPiece GetTypeName () const
 
bool has_enabled () const
 
void clear_enabled ()
 
bool get_enabled () const
 
void set_enabled (bool value)
 
bool has_provider () const
 
void clear_provider ()
 
const StringPiece get_provider () const
 
void set_provider (const StringPiece &value)
 

Static Public Member Functions

static NetworkPolicyNew ()
 

Detailed Description

Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/.

Constructor & Destructor Documentation

◆ NetworkPolicy() [1/2]

google_container_api::NetworkPolicy::NetworkPolicy ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ NetworkPolicy() [2/2]

google_container_api::NetworkPolicy::NetworkPolicy ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~NetworkPolicy()

google_container_api::NetworkPolicy::~NetworkPolicy ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_enabled()

void google_container_api::NetworkPolicy::clear_enabled ( )
inline

Clears the 'enabled' attribute.

◆ clear_provider()

void google_container_api::NetworkPolicy::clear_provider ( )
inline

Clears the 'provider' attribute.

◆ get_enabled()

bool google_container_api::NetworkPolicy::get_enabled ( ) const
inline

Get the value of the 'enabled' attribute.

◆ get_provider()

const StringPiece google_container_api::NetworkPolicy::get_provider ( ) const
inline

Get the value of the 'provider' attribute.

◆ GetTypeName()

const StringPiece google_container_api::NetworkPolicy::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_container_api::NetworkPolicy

◆ has_enabled()

bool google_container_api::NetworkPolicy::has_enabled ( ) const
inline

Determine if the 'enabled' attribute was set.

Returns
true if the 'enabled' attribute was set.

◆ has_provider()

bool google_container_api::NetworkPolicy::has_provider ( ) const
inline

Determine if the 'provider' attribute was set.

Returns
true if the 'provider' attribute was set.

◆ New()

NetworkPolicy * google_container_api::NetworkPolicy::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_enabled()

void google_container_api::NetworkPolicy::set_enabled ( bool  value)
inline

Change the 'enabled' attribute.

Whether network policy is enabled on the cluster.

Parameters
[in]valueThe new value.

◆ set_provider()

void google_container_api::NetworkPolicy::set_provider ( const StringPiece &  value)
inline

Change the 'provider' attribute.

The selected network policy provider.

Parameters
[in]valueThe new value.

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