compute
v1
|
#include <accelerator_config.h>
Public Member Functions | |
AcceleratorConfig (const Json::Value &storage) | |
AcceleratorConfig (Json::Value *storage) | |
virtual | ~AcceleratorConfig () |
const StringPiece | GetTypeName () const |
bool | has_accelerator_count () const |
void | clear_accelerator_count () |
int32 | get_accelerator_count () const |
void | set_accelerator_count (int32 value) |
bool | has_accelerator_type () const |
void | clear_accelerator_type () |
const StringPiece | get_accelerator_type () const |
void | set_accelerator_type (const StringPiece &value) |
Static Public Member Functions | |
static AcceleratorConfig * | New () |
A specification of the type and number of accelerator cards attached to the instance.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'acceleratorCount
' attribute.
|
inline |
Clears the 'acceleratorType
' attribute.
|
inline |
Get the value of the 'acceleratorCount
' attribute.
|
inline |
Get the value of the 'acceleratorType
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'acceleratorCount
' attribute was set.
acceleratorCount
' attribute was set.
|
inline |
Determine if the 'acceleratorType
' attribute was set.
acceleratorType
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'acceleratorCount
' attribute.
The number of the guest accelerator cards exposed to this instance.
[in] | value | The new value. |
|
inline |
Change the 'acceleratorType
' attribute.
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us- central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
[in] | value | The new value. |