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

#include <network_policy_config.h>

Inheritance diagram for google_container_api::NetworkPolicyConfig:

Public Member Functions

 NetworkPolicyConfig (const Json::Value &storage)
 
 NetworkPolicyConfig (Json::Value *storage)
 
virtual ~NetworkPolicyConfig ()
 
const StringPiece GetTypeName () const
 
bool has_disabled () const
 
void clear_disabled ()
 
bool get_disabled () const
 
void set_disabled (bool value)
 

Static Public Member Functions

static NetworkPolicyConfigNew ()
 

Detailed Description

Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.

Constructor & Destructor Documentation

◆ NetworkPolicyConfig() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ NetworkPolicyConfig() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~NetworkPolicyConfig()

google_container_api::NetworkPolicyConfig::~NetworkPolicyConfig ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_disabled()

void google_container_api::NetworkPolicyConfig::clear_disabled ( )
inline

Clears the 'disabled' attribute.

◆ get_disabled()

bool google_container_api::NetworkPolicyConfig::get_disabled ( ) const
inline

Get the value of the 'disabled' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_container_api::NetworkPolicyConfig

◆ has_disabled()

bool google_container_api::NetworkPolicyConfig::has_disabled ( ) const
inline

Determine if the 'disabled' attribute was set.

Returns
true if the 'disabled' attribute was set.

◆ New()

NetworkPolicyConfig * google_container_api::NetworkPolicyConfig::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_disabled()

void google_container_api::NetworkPolicyConfig::set_disabled ( bool  value)
inline

Change the 'disabled' attribute.

Whether NetworkPolicy is enabled for this cluster.

Parameters
[in]valueThe new value.

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