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

#include <disk.h>

Inheritance diagram for google_compute_api::Disk:

Public Member Functions

 Disk (const Json::Value &storage)
 
 Disk (Json::Value *storage)
 
virtual ~Disk ()
 
const StringPiece GetTypeName () const
 
bool has_creation_timestamp () const
 
void clear_creation_timestamp ()
 
const StringPiece get_creation_timestamp () const
 
void set_creation_timestamp (const StringPiece &value)
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_disk_encryption_key () const
 
void clear_disk_encryption_key ()
 
const CustomerEncryptionKey get_disk_encryption_key () const
 
CustomerEncryptionKey mutable_diskEncryptionKey ()
 
bool has_guest_os_features () const
 
void clear_guest_os_features ()
 
const client::JsonCppArray< GuestOsFeatureget_guest_os_features () const
 
client::JsonCppArray< GuestOsFeaturemutable_guestOsFeatures ()
 
bool has_id () const
 
void clear_id ()
 
uint64 get_id () const
 
void set_id (uint64 value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_label_fingerprint () const
 
void clear_label_fingerprint ()
 
const StringPiece get_label_fingerprint () const
 
void set_label_fingerprint (const StringPiece &value)
 
bool has_labels () const
 
void clear_labels ()
 
const client::JsonCppAssociativeArray< string > get_labels () const
 
client::JsonCppAssociativeArray< string > mutable_labels ()
 
bool has_last_attach_timestamp () const
 
void clear_last_attach_timestamp ()
 
const StringPiece get_last_attach_timestamp () const
 
void set_last_attach_timestamp (const StringPiece &value)
 
bool has_last_detach_timestamp () const
 
void clear_last_detach_timestamp ()
 
const StringPiece get_last_detach_timestamp () const
 
void set_last_detach_timestamp (const StringPiece &value)
 
bool has_license_codes () const
 
void clear_license_codes ()
 
const client::JsonCppArray< int64 > get_license_codes () const
 
client::JsonCppArray< int64 > mutable_licenseCodes ()
 
bool has_licenses () const
 
void clear_licenses ()
 
const client::JsonCppArray< string > get_licenses () const
 
client::JsonCppArray< string > mutable_licenses ()
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_options () const
 
void clear_options ()
 
const StringPiece get_options () const
 
void set_options (const StringPiece &value)
 
bool has_physical_block_size_bytes () const
 
void clear_physical_block_size_bytes ()
 
int64 get_physical_block_size_bytes () const
 
void set_physical_block_size_bytes (int64 value)
 
bool has_region () const
 
void clear_region ()
 
const StringPiece get_region () const
 
void set_region (const StringPiece &value)
 
bool has_replica_zones () const
 
void clear_replica_zones ()
 
const client::JsonCppArray< string > get_replica_zones () const
 
client::JsonCppArray< string > mutable_replicaZones ()
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_size_gb () const
 
void clear_size_gb ()
 
int64 get_size_gb () const
 
void set_size_gb (int64 value)
 
bool has_source_image () const
 
void clear_source_image ()
 
const StringPiece get_source_image () const
 
void set_source_image (const StringPiece &value)
 
bool has_source_image_encryption_key () const
 
void clear_source_image_encryption_key ()
 
const CustomerEncryptionKey get_source_image_encryption_key () const
 
CustomerEncryptionKey mutable_sourceImageEncryptionKey ()
 
bool has_source_image_id () const
 
void clear_source_image_id ()
 
const StringPiece get_source_image_id () const
 
void set_source_image_id (const StringPiece &value)
 
bool has_source_snapshot () const
 
void clear_source_snapshot ()
 
const StringPiece get_source_snapshot () const
 
void set_source_snapshot (const StringPiece &value)
 
bool has_source_snapshot_encryption_key () const
 
void clear_source_snapshot_encryption_key ()
 
const CustomerEncryptionKey get_source_snapshot_encryption_key () const
 
CustomerEncryptionKey mutable_sourceSnapshotEncryptionKey ()
 
bool has_source_snapshot_id () const
 
void clear_source_snapshot_id ()
 
const StringPiece get_source_snapshot_id () const
 
void set_source_snapshot_id (const StringPiece &value)
 
bool has_status () const
 
void clear_status ()
 
const StringPiece get_status () const
 
void set_status (const StringPiece &value)
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 
bool has_users () const
 
void clear_users ()
 
const client::JsonCppArray< string > get_users () const
 
client::JsonCppArray< string > mutable_users ()
 
bool has_zone () const
 
void clear_zone ()
 
const StringPiece get_zone () const
 
void set_zone (const StringPiece &value)
 

Static Public Member Functions

static DiskNew ()
 

Detailed Description

A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks ==).

Constructor & Destructor Documentation

◆ Disk() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Disk() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Disk()

google_compute_api::Disk::~Disk ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_creation_timestamp()

void google_compute_api::Disk::clear_creation_timestamp ( )
inline

Clears the 'creationTimestamp' attribute.

◆ clear_description()

void google_compute_api::Disk::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_disk_encryption_key()

void google_compute_api::Disk::clear_disk_encryption_key ( )
inline

Clears the 'diskEncryptionKey' attribute.

◆ clear_guest_os_features()

void google_compute_api::Disk::clear_guest_os_features ( )
inline

Clears the 'guestOsFeatures' attribute.

◆ clear_id()

void google_compute_api::Disk::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_compute_api::Disk::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_label_fingerprint()

void google_compute_api::Disk::clear_label_fingerprint ( )
inline

Clears the 'labelFingerprint' attribute.

◆ clear_labels()

void google_compute_api::Disk::clear_labels ( )
inline

Clears the 'labels' attribute.

◆ clear_last_attach_timestamp()

void google_compute_api::Disk::clear_last_attach_timestamp ( )
inline

Clears the 'lastAttachTimestamp' attribute.

◆ clear_last_detach_timestamp()

void google_compute_api::Disk::clear_last_detach_timestamp ( )
inline

Clears the 'lastDetachTimestamp' attribute.

◆ clear_license_codes()

void google_compute_api::Disk::clear_license_codes ( )
inline

Clears the 'licenseCodes' attribute.

◆ clear_licenses()

void google_compute_api::Disk::clear_licenses ( )
inline

Clears the 'licenses' attribute.

◆ clear_name()

void google_compute_api::Disk::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_options()

void google_compute_api::Disk::clear_options ( )
inline

Clears the 'options' attribute.

◆ clear_physical_block_size_bytes()

void google_compute_api::Disk::clear_physical_block_size_bytes ( )
inline

Clears the 'physicalBlockSizeBytes' attribute.

◆ clear_region()

void google_compute_api::Disk::clear_region ( )
inline

Clears the 'region' attribute.

◆ clear_replica_zones()

void google_compute_api::Disk::clear_replica_zones ( )
inline

Clears the 'replicaZones' attribute.

◆ clear_self_link()

void google_compute_api::Disk::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_size_gb()

void google_compute_api::Disk::clear_size_gb ( )
inline

Clears the 'sizeGb' attribute.

◆ clear_source_image()

void google_compute_api::Disk::clear_source_image ( )
inline

Clears the 'sourceImage' attribute.

◆ clear_source_image_encryption_key()

void google_compute_api::Disk::clear_source_image_encryption_key ( )
inline

Clears the 'sourceImageEncryptionKey' attribute.

◆ clear_source_image_id()

void google_compute_api::Disk::clear_source_image_id ( )
inline

Clears the 'sourceImageId' attribute.

◆ clear_source_snapshot()

void google_compute_api::Disk::clear_source_snapshot ( )
inline

Clears the 'sourceSnapshot' attribute.

◆ clear_source_snapshot_encryption_key()

void google_compute_api::Disk::clear_source_snapshot_encryption_key ( )
inline

Clears the 'sourceSnapshotEncryptionKey' attribute.

◆ clear_source_snapshot_id()

void google_compute_api::Disk::clear_source_snapshot_id ( )
inline

Clears the 'sourceSnapshotId' attribute.

◆ clear_status()

void google_compute_api::Disk::clear_status ( )
inline

Clears the 'status' attribute.

◆ clear_type()

void google_compute_api::Disk::clear_type ( )
inline

Clears the 'type' attribute.

◆ clear_users()

void google_compute_api::Disk::clear_users ( )
inline

Clears the 'users' attribute.

◆ clear_zone()

void google_compute_api::Disk::clear_zone ( )
inline

Clears the 'zone' attribute.

◆ get_creation_timestamp()

const StringPiece google_compute_api::Disk::get_creation_timestamp ( ) const
inline

Get the value of the 'creationTimestamp' attribute.

◆ get_description()

const StringPiece google_compute_api::Disk::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_disk_encryption_key()

const CustomerEncryptionKey google_compute_api::Disk::get_disk_encryption_key ( ) const

Get a reference to the value of the 'diskEncryptionKey' attribute.

◆ get_guest_os_features()

const client::JsonCppArray<GuestOsFeature > google_compute_api::Disk::get_guest_os_features ( ) const

Get a reference to the value of the 'guestOsFeatures' attribute.

◆ get_id()

uint64 google_compute_api::Disk::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_kind()

const StringPiece google_compute_api::Disk::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_label_fingerprint()

const StringPiece google_compute_api::Disk::get_label_fingerprint ( ) const
inline

Get the value of the 'labelFingerprint' attribute.

◆ get_labels()

const client::JsonCppAssociativeArray<string > google_compute_api::Disk::get_labels ( ) const
inline

Get a reference to the value of the 'labels' attribute.

◆ get_last_attach_timestamp()

const StringPiece google_compute_api::Disk::get_last_attach_timestamp ( ) const
inline

Get the value of the 'lastAttachTimestamp' attribute.

◆ get_last_detach_timestamp()

const StringPiece google_compute_api::Disk::get_last_detach_timestamp ( ) const
inline

Get the value of the 'lastDetachTimestamp' attribute.

◆ get_license_codes()

const client::JsonCppArray<int64 > google_compute_api::Disk::get_license_codes ( ) const
inline

Get a reference to the value of the 'licenseCodes' attribute.

◆ get_licenses()

const client::JsonCppArray<string > google_compute_api::Disk::get_licenses ( ) const
inline

Get a reference to the value of the 'licenses' attribute.

◆ get_name()

const StringPiece google_compute_api::Disk::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_options()

const StringPiece google_compute_api::Disk::get_options ( ) const
inline

Get the value of the 'options' attribute.

◆ get_physical_block_size_bytes()

int64 google_compute_api::Disk::get_physical_block_size_bytes ( ) const
inline

Get the value of the 'physicalBlockSizeBytes' attribute.

◆ get_region()

const StringPiece google_compute_api::Disk::get_region ( ) const
inline

Get the value of the 'region' attribute.

◆ get_replica_zones()

const client::JsonCppArray<string > google_compute_api::Disk::get_replica_zones ( ) const
inline

Get a reference to the value of the 'replicaZones' attribute.

◆ get_self_link()

const StringPiece google_compute_api::Disk::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_size_gb()

int64 google_compute_api::Disk::get_size_gb ( ) const
inline

Get the value of the 'sizeGb' attribute.

◆ get_source_image()

const StringPiece google_compute_api::Disk::get_source_image ( ) const
inline

Get the value of the 'sourceImage' attribute.

◆ get_source_image_encryption_key()

const CustomerEncryptionKey google_compute_api::Disk::get_source_image_encryption_key ( ) const

Get a reference to the value of the 'sourceImageEncryptionKey' attribute.

◆ get_source_image_id()

const StringPiece google_compute_api::Disk::get_source_image_id ( ) const
inline

Get the value of the 'sourceImageId' attribute.

◆ get_source_snapshot()

const StringPiece google_compute_api::Disk::get_source_snapshot ( ) const
inline

Get the value of the 'sourceSnapshot' attribute.

◆ get_source_snapshot_encryption_key()

const CustomerEncryptionKey google_compute_api::Disk::get_source_snapshot_encryption_key ( ) const

Get a reference to the value of the 'sourceSnapshotEncryptionKey' attribute.

◆ get_source_snapshot_id()

const StringPiece google_compute_api::Disk::get_source_snapshot_id ( ) const
inline

Get the value of the 'sourceSnapshotId' attribute.

◆ get_status()

const StringPiece google_compute_api::Disk::get_status ( ) const
inline

Get the value of the 'status' attribute.

◆ get_type()

const StringPiece google_compute_api::Disk::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ get_users()

const client::JsonCppArray<string > google_compute_api::Disk::get_users ( ) const
inline

Get a reference to the value of the 'users' attribute.

◆ get_zone()

const StringPiece google_compute_api::Disk::get_zone ( ) const
inline

Get the value of the 'zone' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::Disk

◆ has_creation_timestamp()

bool google_compute_api::Disk::has_creation_timestamp ( ) const
inline

Determine if the 'creationTimestamp' attribute was set.

Returns
true if the 'creationTimestamp' attribute was set.

◆ has_description()

bool google_compute_api::Disk::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_disk_encryption_key()

bool google_compute_api::Disk::has_disk_encryption_key ( ) const
inline

Determine if the 'diskEncryptionKey' attribute was set.

Returns
true if the 'diskEncryptionKey' attribute was set.

◆ has_guest_os_features()

bool google_compute_api::Disk::has_guest_os_features ( ) const
inline

Determine if the 'guestOsFeatures' attribute was set.

Returns
true if the 'guestOsFeatures' attribute was set.

◆ has_id()

bool google_compute_api::Disk::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

bool google_compute_api::Disk::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_label_fingerprint()

bool google_compute_api::Disk::has_label_fingerprint ( ) const
inline

Determine if the 'labelFingerprint' attribute was set.

Returns
true if the 'labelFingerprint' attribute was set.

◆ has_labels()

bool google_compute_api::Disk::has_labels ( ) const
inline

Determine if the 'labels' attribute was set.

Returns
true if the 'labels' attribute was set.

◆ has_last_attach_timestamp()

bool google_compute_api::Disk::has_last_attach_timestamp ( ) const
inline

Determine if the 'lastAttachTimestamp' attribute was set.

Returns
true if the 'lastAttachTimestamp' attribute was set.

◆ has_last_detach_timestamp()

bool google_compute_api::Disk::has_last_detach_timestamp ( ) const
inline

Determine if the 'lastDetachTimestamp' attribute was set.

Returns
true if the 'lastDetachTimestamp' attribute was set.

◆ has_license_codes()

bool google_compute_api::Disk::has_license_codes ( ) const
inline

Determine if the 'licenseCodes' attribute was set.

Returns
true if the 'licenseCodes' attribute was set.

◆ has_licenses()

bool google_compute_api::Disk::has_licenses ( ) const
inline

Determine if the 'licenses' attribute was set.

Returns
true if the 'licenses' attribute was set.

◆ has_name()

bool google_compute_api::Disk::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_options()

bool google_compute_api::Disk::has_options ( ) const
inline

Determine if the 'options' attribute was set.

Returns
true if the 'options' attribute was set.

◆ has_physical_block_size_bytes()

bool google_compute_api::Disk::has_physical_block_size_bytes ( ) const
inline

Determine if the 'physicalBlockSizeBytes' attribute was set.

Returns
true if the 'physicalBlockSizeBytes' attribute was set.

◆ has_region()

bool google_compute_api::Disk::has_region ( ) const
inline

Determine if the 'region' attribute was set.

Returns
true if the 'region' attribute was set.

◆ has_replica_zones()

bool google_compute_api::Disk::has_replica_zones ( ) const
inline

Determine if the 'replicaZones' attribute was set.

Returns
true if the 'replicaZones' attribute was set.

◆ has_self_link()

bool google_compute_api::Disk::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_size_gb()

bool google_compute_api::Disk::has_size_gb ( ) const
inline

Determine if the 'sizeGb' attribute was set.

Returns
true if the 'sizeGb' attribute was set.

◆ has_source_image()

bool google_compute_api::Disk::has_source_image ( ) const
inline

Determine if the 'sourceImage' attribute was set.

Returns
true if the 'sourceImage' attribute was set.

◆ has_source_image_encryption_key()

bool google_compute_api::Disk::has_source_image_encryption_key ( ) const
inline

Determine if the 'sourceImageEncryptionKey' attribute was set.

Returns
true if the 'sourceImageEncryptionKey' attribute was set.

◆ has_source_image_id()

bool google_compute_api::Disk::has_source_image_id ( ) const
inline

Determine if the 'sourceImageId' attribute was set.

Returns
true if the 'sourceImageId' attribute was set.

◆ has_source_snapshot()

bool google_compute_api::Disk::has_source_snapshot ( ) const
inline

Determine if the 'sourceSnapshot' attribute was set.

Returns
true if the 'sourceSnapshot' attribute was set.

◆ has_source_snapshot_encryption_key()

bool google_compute_api::Disk::has_source_snapshot_encryption_key ( ) const
inline

Determine if the 'sourceSnapshotEncryptionKey' attribute was set.

Returns
true if the 'sourceSnapshotEncryptionKey' attribute was set.

◆ has_source_snapshot_id()

bool google_compute_api::Disk::has_source_snapshot_id ( ) const
inline

Determine if the 'sourceSnapshotId' attribute was set.

Returns
true if the 'sourceSnapshotId' attribute was set.

◆ has_status()

bool google_compute_api::Disk::has_status ( ) const
inline

Determine if the 'status' attribute was set.

Returns
true if the 'status' attribute was set.

◆ has_type()

bool google_compute_api::Disk::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ has_users()

bool google_compute_api::Disk::has_users ( ) const
inline

Determine if the 'users' attribute was set.

Returns
true if the 'users' attribute was set.

◆ has_zone()

bool google_compute_api::Disk::has_zone ( ) const
inline

Determine if the 'zone' attribute was set.

Returns
true if the 'zone' attribute was set.

◆ mutable_diskEncryptionKey()

CustomerEncryptionKey google_compute_api::Disk::mutable_diskEncryptionKey ( )

Gets a reference to a mutable value of the 'diskEncryptionKey' property.

Encrypts the disk using a customer-supplied encryption key.

After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine).

Customer-supplied encryption keys do not protect access to metadata of the disk.

If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.

Returns
The result can be modified to change the attribute value.

◆ mutable_guestOsFeatures()

client::JsonCppArray<GuestOsFeature > google_compute_api::Disk::mutable_guestOsFeatures ( )

Gets a reference to a mutable value of the 'guestOsFeatures' property.

A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

Returns
The result can be modified to change the attribute value.

◆ mutable_labels()

client::JsonCppAssociativeArray<string > google_compute_api::Disk::mutable_labels ( )
inline

Gets a reference to a mutable value of the 'labels' property.

Labels to apply to this disk. These can be later modified by the setLabels method.

Returns
The result can be modified to change the attribute value.

◆ mutable_licenseCodes()

client::JsonCppArray<int64 > google_compute_api::Disk::mutable_licenseCodes ( )
inline

Gets a reference to a mutable value of the 'licenseCodes' property.

Integer license codes indicating which licenses are attached to this disk.

Returns
The result can be modified to change the attribute value.

◆ mutable_licenses()

client::JsonCppArray<string > google_compute_api::Disk::mutable_licenses ( )
inline

Gets a reference to a mutable value of the 'licenses' property.

A list of publicly visible licenses. Reserved for Google's use.

Returns
The result can be modified to change the attribute value.

◆ mutable_replicaZones()

client::JsonCppArray<string > google_compute_api::Disk::mutable_replicaZones ( )
inline

Gets a reference to a mutable value of the 'replicaZones' property.

URLs of the zones where the disk should be replicated to. Only applicable for regional resources.

Returns
The result can be modified to change the attribute value.

◆ mutable_sourceImageEncryptionKey()

CustomerEncryptionKey google_compute_api::Disk::mutable_sourceImageEncryptionKey ( )

Gets a reference to a mutable value of the 'sourceImageEncryptionKey' property.

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Returns
The result can be modified to change the attribute value.

◆ mutable_sourceSnapshotEncryptionKey()

CustomerEncryptionKey google_compute_api::Disk::mutable_sourceSnapshotEncryptionKey ( )

Gets a reference to a mutable value of the 'sourceSnapshotEncryptionKey' property.

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.

Returns
The result can be modified to change the attribute value.

◆ mutable_users()

client::JsonCppArray<string > google_compute_api::Disk::mutable_users ( )
inline

Gets a reference to a mutable value of the 'users' property.

[Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance.

Returns
The result can be modified to change the attribute value.

◆ New()

Disk * google_compute_api::Disk::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_creation_timestamp()

void google_compute_api::Disk::set_creation_timestamp ( const StringPiece &  value)
inline

Change the 'creationTimestamp' attribute.

[Output Only] Creation timestamp in RFC3339 text format.

Parameters
[in]valueThe new value.

◆ set_description()

void google_compute_api::Disk::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

An optional description of this resource. Provide this property when you create the resource.

Parameters
[in]valueThe new value.

◆ set_id()

void google_compute_api::Disk::set_id ( uint64  value)
inline

Change the 'id' attribute.

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_compute_api::Disk::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

[Output Only] Type of the resource. Always compute::disk for disks.

Parameters
[in]valueThe new value.

◆ set_label_fingerprint()

void google_compute_api::Disk::set_label_fingerprint ( const StringPiece &  value)
inline

Change the 'labelFingerprint' attribute.

A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to- date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.

To see the latest fingerprint, make a get() request to retrieve a disk.

Parameters
[in]valueThe new value.

◆ set_last_attach_timestamp()

void google_compute_api::Disk::set_last_attach_timestamp ( const StringPiece &  value)
inline

Change the 'lastAttachTimestamp' attribute.

[Output Only] Last attach timestamp in RFC3339 text format.

Parameters
[in]valueThe new value.

◆ set_last_detach_timestamp()

void google_compute_api::Disk::set_last_detach_timestamp ( const StringPiece &  value)
inline

Change the 'lastDetachTimestamp' attribute.

[Output Only] Last detach timestamp in RFC3339 text format.

Parameters
[in]valueThe new value.

◆ set_name()

void google_compute_api::Disk::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Parameters
[in]valueThe new value.

◆ set_options()

void google_compute_api::Disk::set_options ( const StringPiece &  value)
inline

Change the 'options' attribute.

Internal use only.

Parameters
[in]valueThe new value.

◆ set_physical_block_size_bytes()

void google_compute_api::Disk::set_physical_block_size_bytes ( int64  value)
inline

Change the 'physicalBlockSizeBytes' attribute.

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.

Parameters
[in]valueThe new value.

◆ set_region()

void google_compute_api::Disk::set_region ( const StringPiece &  value)
inline

Change the 'region' attribute.

[Output Only] URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_compute_api::Disk::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

[Output Only] Server-defined fully-qualified URL for this resource.

Parameters
[in]valueThe new value.

◆ set_size_gb()

void google_compute_api::Disk::set_size_gb ( int64  value)
inline

Change the 'sizeGb' attribute.

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk.

If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot. Acceptable values are 1 to 65536, inclusive.

Parameters
[in]valueThe new value.

◆ set_source_image()

void google_compute_api::Disk::set_source_image ( const StringPiece &  value)
inline

Change the 'sourceImage' attribute.

family/debian
9 to use the latest Debian 9 image:.
projects/debian-cloud/global/images/family/debian
9.

projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD

To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image

You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family.

Parameters
[in]valueThe new value.

◆ set_source_image_id()

void google_compute_api::Disk::set_source_image_id ( const StringPiece &  value)
inline

Change the 'sourceImageId' attribute.

[Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.

Parameters
[in]valueThe new value.

◆ set_source_snapshot()

void google_compute_api::Disk::set_source_snapshot ( const StringPiece &  value)
inline

Change the 'sourceSnapshot' attribute.

The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

Parameters
[in]valueThe new value.

◆ set_source_snapshot_id()

void google_compute_api::Disk::set_source_snapshot_id ( const StringPiece &  value)
inline

Change the 'sourceSnapshotId' attribute.

[Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

Parameters
[in]valueThe new value.

◆ set_status()

void google_compute_api::Disk::set_status ( const StringPiece &  value)
inline

Change the 'status' attribute.

[Output Only] The status of disk creation.

Parameters
[in]valueThe new value.

◆ set_type()

void google_compute_api::Disk::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: project/zones/zone/diskTypes/pd-standard or pd-ssd.

Parameters
[in]valueThe new value.

◆ set_zone()

void google_compute_api::Disk::set_zone ( const StringPiece &  value)
inline

Change the 'zone' attribute.

[Output Only] URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Parameters
[in]valueThe new value.

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