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

#include <quota.h>

Inheritance diagram for google_compute_api::Quota:

Public Member Functions

 Quota (const Json::Value &storage)
 
 Quota (Json::Value *storage)
 
virtual ~Quota ()
 
const StringPiece GetTypeName () const
 
bool has_limit () const
 
void clear_limit ()
 
double get_limit () const
 
void set_limit (double value)
 
bool has_metric () const
 
void clear_metric ()
 
const StringPiece get_metric () const
 
void set_metric (const StringPiece &value)
 
bool has_owner () const
 
void clear_owner ()
 
const StringPiece get_owner () const
 
void set_owner (const StringPiece &value)
 
bool has_usage () const
 
void clear_usage ()
 
double get_usage () const
 
void set_usage (double value)
 

Static Public Member Functions

static QuotaNew ()
 

Detailed Description

A quotas entry.

Constructor & Destructor Documentation

◆ Quota() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Quota() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Quota()

google_compute_api::Quota::~Quota ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_limit()

void google_compute_api::Quota::clear_limit ( )
inline

Clears the 'limit' attribute.

◆ clear_metric()

void google_compute_api::Quota::clear_metric ( )
inline

Clears the 'metric' attribute.

◆ clear_owner()

void google_compute_api::Quota::clear_owner ( )
inline

Clears the 'owner' attribute.

◆ clear_usage()

void google_compute_api::Quota::clear_usage ( )
inline

Clears the 'usage' attribute.

◆ get_limit()

double google_compute_api::Quota::get_limit ( ) const
inline

Get the value of the 'limit' attribute.

◆ get_metric()

const StringPiece google_compute_api::Quota::get_metric ( ) const
inline

Get the value of the 'metric' attribute.

◆ get_owner()

const StringPiece google_compute_api::Quota::get_owner ( ) const
inline

Get the value of the 'owner' attribute.

◆ get_usage()

double google_compute_api::Quota::get_usage ( ) const
inline

Get the value of the 'usage' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::Quota

◆ has_limit()

bool google_compute_api::Quota::has_limit ( ) const
inline

Determine if the 'limit' attribute was set.

Returns
true if the 'limit' attribute was set.

◆ has_metric()

bool google_compute_api::Quota::has_metric ( ) const
inline

Determine if the 'metric' attribute was set.

Returns
true if the 'metric' attribute was set.

◆ has_owner()

bool google_compute_api::Quota::has_owner ( ) const
inline

Determine if the 'owner' attribute was set.

Returns
true if the 'owner' attribute was set.

◆ has_usage()

bool google_compute_api::Quota::has_usage ( ) const
inline

Determine if the 'usage' attribute was set.

Returns
true if the 'usage' attribute was set.

◆ New()

Quota * google_compute_api::Quota::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_limit()

void google_compute_api::Quota::set_limit ( double  value)
inline

Change the 'limit' attribute.

[Output Only] Quota limit for this metric.

Parameters
[in]valueThe new value.

◆ set_metric()

void google_compute_api::Quota::set_metric ( const StringPiece &  value)
inline

Change the 'metric' attribute.

[Output Only] Name of the quota metric.

Parameters
[in]valueThe new value.

◆ set_owner()

void google_compute_api::Quota::set_owner ( const StringPiece &  value)
inline

Change the 'owner' attribute.

[Output Only] Owning resource. This is the resource on which this quota is applied.

Parameters
[in]valueThe new value.

◆ set_usage()

void google_compute_api::Quota::set_usage ( double  value)
inline

Change the 'usage' attribute.

[Output Only] Current usage of this metric.

Parameters
[in]valueThe new value.

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