compute
v1
|
#include <attached_disk_initialize_params.h>
Public Member Functions | |
AttachedDiskInitializeParams (const Json::Value &storage) | |
AttachedDiskInitializeParams (Json::Value *storage) | |
virtual | ~AttachedDiskInitializeParams () |
const StringPiece | GetTypeName () const |
bool | has_description () const |
void | clear_description () |
const StringPiece | get_description () const |
void | set_description (const StringPiece &value) |
bool | has_disk_name () const |
void | clear_disk_name () |
const StringPiece | get_disk_name () const |
void | set_disk_name (const StringPiece &value) |
bool | has_disk_size_gb () const |
void | clear_disk_size_gb () |
int64 | get_disk_size_gb () const |
void | set_disk_size_gb (int64 value) |
bool | has_disk_type () const |
void | clear_disk_type () |
const StringPiece | get_disk_type () const |
void | set_disk_type (const StringPiece &value) |
bool | has_labels () const |
void | clear_labels () |
const client::JsonCppAssociativeArray< string > | get_labels () const |
client::JsonCppAssociativeArray< string > | mutable_labels () |
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 () |
Static Public Member Functions | |
static AttachedDiskInitializeParams * | New () |
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
This property is mutually exclusive with the source property; you can only define one or the other, but not both.
|
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 'description
' attribute.
|
inline |
Clears the 'diskName
' attribute.
|
inline |
Clears the 'diskSizeGb
' attribute.
|
inline |
Clears the 'diskType
' attribute.
|
inline |
Clears the 'labels
' attribute.
|
inline |
Clears the 'sourceImage
' attribute.
|
inline |
Clears the 'sourceImageEncryptionKey
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'diskName
' attribute.
|
inline |
Get the value of the 'diskSizeGb
' attribute.
|
inline |
Get the value of the 'diskType
' attribute.
|
inline |
Get a reference to the value of the 'labels
' attribute.
|
inline |
Get the value of the 'sourceImage
' attribute.
const CustomerEncryptionKey google_compute_api::AttachedDiskInitializeParams::get_source_image_encryption_key | ( | ) | const |
Get a reference to the value of the 'sourceImageEncryptionKey
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'diskName
' attribute was set.
diskName
' attribute was set.
|
inline |
Determine if the 'diskSizeGb
' attribute was set.
diskSizeGb
' attribute was set.
|
inline |
Determine if the 'diskType
' attribute was set.
diskType
' attribute was set.
|
inline |
Determine if the 'labels
' attribute was set.
labels
' attribute was set.
|
inline |
Determine if the 'sourceImage
' attribute was set.
sourceImage
' attribute was set.
|
inline |
Determine if the 'sourceImageEncryptionKey
' attribute was set.
sourceImageEncryptionKey
' attribute was set.
|
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 disks.setLabels method. This field is only applicable for persistent disks.
CustomerEncryptionKey google_compute_api::AttachedDiskInitializeParams::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.
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
|
static |
Creates a new default instance.
|
inline |
Change the 'description
' attribute.
An optional description. Provide this property when creating the disk.
[in] | value | The new value. |
|
inline |
Change the 'diskName
' attribute.
Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
[in] | value | The new value. |
|
inline |
Change the 'diskSizeGb
' attribute.
Specifies the size of the disk in base-2 GB.
[in] | value | The new value. |
|
inline |
Change the 'diskType
' attribute.
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes /pd-standard
[in] | value | The new value. |
|
inline |
Change the 'sourceImage
' attribute.
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
If the source image is deleted later, this field will not be set.
[in] | value | The new value. |