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

#include <resource_limit.h>

Inheritance diagram for google_container_api::ResourceLimit:

Public Member Functions

 ResourceLimit (const Json::Value &storage)
 
 ResourceLimit (Json::Value *storage)
 
virtual ~ResourceLimit ()
 
const StringPiece GetTypeName () const
 
bool has_maximum () const
 
void clear_maximum ()
 
int64 get_maximum () const
 
void set_maximum (int64 value)
 
bool has_minimum () const
 
void clear_minimum ()
 
int64 get_minimum () const
 
void set_minimum (int64 value)
 
bool has_resource_type () const
 
void clear_resource_type ()
 
const StringPiece get_resource_type () const
 
void set_resource_type (const StringPiece &value)
 

Static Public Member Functions

static ResourceLimitNew ()
 

Detailed Description

Contains information about amount of some resource in the cluster. For memory, value should be in GB.

Constructor & Destructor Documentation

◆ ResourceLimit() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ ResourceLimit() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~ResourceLimit()

google_container_api::ResourceLimit::~ResourceLimit ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_maximum()

void google_container_api::ResourceLimit::clear_maximum ( )
inline

Clears the 'maximum' attribute.

◆ clear_minimum()

void google_container_api::ResourceLimit::clear_minimum ( )
inline

Clears the 'minimum' attribute.

◆ clear_resource_type()

void google_container_api::ResourceLimit::clear_resource_type ( )
inline

Clears the 'resourceType' attribute.

◆ get_maximum()

int64 google_container_api::ResourceLimit::get_maximum ( ) const
inline

Get the value of the 'maximum' attribute.

◆ get_minimum()

int64 google_container_api::ResourceLimit::get_minimum ( ) const
inline

Get the value of the 'minimum' attribute.

◆ get_resource_type()

const StringPiece google_container_api::ResourceLimit::get_resource_type ( ) const
inline

Get the value of the 'resourceType' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_container_api::ResourceLimit

◆ has_maximum()

bool google_container_api::ResourceLimit::has_maximum ( ) const
inline

Determine if the 'maximum' attribute was set.

Returns
true if the 'maximum' attribute was set.

◆ has_minimum()

bool google_container_api::ResourceLimit::has_minimum ( ) const
inline

Determine if the 'minimum' attribute was set.

Returns
true if the 'minimum' attribute was set.

◆ has_resource_type()

bool google_container_api::ResourceLimit::has_resource_type ( ) const
inline

Determine if the 'resourceType' attribute was set.

Returns
true if the 'resourceType' attribute was set.

◆ New()

ResourceLimit * google_container_api::ResourceLimit::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_maximum()

void google_container_api::ResourceLimit::set_maximum ( int64  value)
inline

Change the 'maximum' attribute.

Maximum amount of the resource in the cluster.

Parameters
[in]valueThe new value.

◆ set_minimum()

void google_container_api::ResourceLimit::set_minimum ( int64  value)
inline

Change the 'minimum' attribute.

Minimum amount of the resource in the cluster.

Parameters
[in]valueThe new value.

◆ set_resource_type()

void google_container_api::ResourceLimit::set_resource_type ( const StringPiece &  value)
inline

Change the 'resourceType' attribute.

Resource name "cpu", "memory" or gpu-specific string.

Parameters
[in]valueThe new value.

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