compute
v1
|
#include <image.h>
Classes | |
class | ImageRawDisk |
Public Member Functions | |
Image (const Json::Value &storage) | |
Image (Json::Value *storage) | |
virtual | ~Image () |
const StringPiece | GetTypeName () const |
bool | has_archive_size_bytes () const |
void | clear_archive_size_bytes () |
int64 | get_archive_size_bytes () const |
void | set_archive_size_bytes (int64 value) |
bool | has_creation_timestamp () const |
void | clear_creation_timestamp () |
const StringPiece | get_creation_timestamp () const |
void | set_creation_timestamp (const StringPiece &value) |
bool | has_deprecated () const |
void | clear_deprecated () |
const DeprecationStatus | get_deprecated () const |
DeprecationStatus | mutable_deprecated () |
bool | has_description () const |
void | clear_description () |
const StringPiece | get_description () const |
void | set_description (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_family () const |
void | clear_family () |
const StringPiece | get_family () const |
void | set_family (const StringPiece &value) |
bool | has_guest_os_features () const |
void | clear_guest_os_features () |
const client::JsonCppArray< GuestOsFeature > | get_guest_os_features () const |
client::JsonCppArray< GuestOsFeature > | mutable_guestOsFeatures () |
bool | has_id () const |
void | clear_id () |
uint64 | get_id () const |
void | set_id (uint64 value) |
bool | has_image_encryption_key () const |
void | clear_image_encryption_key () |
const CustomerEncryptionKey | get_image_encryption_key () const |
CustomerEncryptionKey | mutable_imageEncryptionKey () |
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_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_raw_disk () const |
void | clear_raw_disk () |
const ImageRawDisk | get_raw_disk () const |
ImageRawDisk | mutable_rawDisk () |
bool | has_self_link () const |
void | clear_self_link () |
const StringPiece | get_self_link () const |
void | set_self_link (const StringPiece &value) |
bool | has_source_disk () const |
void | clear_source_disk () |
const StringPiece | get_source_disk () const |
void | set_source_disk (const StringPiece &value) |
bool | has_source_disk_encryption_key () const |
void | clear_source_disk_encryption_key () |
const CustomerEncryptionKey | get_source_disk_encryption_key () const |
CustomerEncryptionKey | mutable_sourceDiskEncryptionKey () |
bool | has_source_disk_id () const |
void | clear_source_disk_id () |
const StringPiece | get_source_disk_id () const |
void | set_source_disk_id (const StringPiece &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_source_type () const |
void | clear_source_type () |
const StringPiece | get_source_type () const |
void | set_source_type (const StringPiece &value) |
bool | has_status () const |
void | clear_status () |
const StringPiece | get_status () const |
void | set_status (const StringPiece &value) |
Static Public Member Functions | |
static Image * | New () |
An Image resource. (== resource_for beta.images ==) (== resource_for v1.images ==).
|
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 'archiveSizeBytes
' attribute.
|
inline |
Clears the 'creationTimestamp
' attribute.
|
inline |
Clears the 'deprecated
' attribute.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'diskSizeGb
' attribute.
|
inline |
Clears the 'family
' attribute.
|
inline |
Clears the 'guestOsFeatures
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'imageEncryptionKey
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'labelFingerprint
' attribute.
|
inline |
Clears the 'labels
' attribute.
|
inline |
Clears the 'licenseCodes
' attribute.
|
inline |
Clears the 'licenses
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'rawDisk
' attribute.
|
inline |
Clears the 'selfLink
' attribute.
|
inline |
Clears the 'sourceDisk
' attribute.
|
inline |
Clears the 'sourceDiskEncryptionKey
' attribute.
|
inline |
Clears the 'sourceDiskId
' attribute.
|
inline |
Clears the 'sourceImage
' attribute.
|
inline |
Clears the 'sourceImageEncryptionKey
' attribute.
|
inline |
Clears the 'sourceImageId
' attribute.
|
inline |
Clears the 'sourceSnapshot
' attribute.
|
inline |
Clears the 'sourceSnapshotEncryptionKey
' attribute.
|
inline |
Clears the 'sourceSnapshotId
' attribute.
|
inline |
Clears the 'sourceType
' attribute.
|
inline |
Clears the 'status
' attribute.
|
inline |
Get the value of the 'archiveSizeBytes
' attribute.
|
inline |
Get the value of the 'creationTimestamp
' attribute.
const DeprecationStatus google_compute_api::Image::get_deprecated | ( | ) | const |
Get a reference to the value of the 'deprecated
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'diskSizeGb
' attribute.
|
inline |
Get the value of the 'family
' attribute.
const client::JsonCppArray<GuestOsFeature > google_compute_api::Image::get_guest_os_features | ( | ) | const |
Get a reference to the value of the 'guestOsFeatures
' attribute.
|
inline |
Get the value of the 'id
' attribute.
const CustomerEncryptionKey google_compute_api::Image::get_image_encryption_key | ( | ) | const |
Get a reference to the value of the 'imageEncryptionKey
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
|
inline |
Get the value of the 'labelFingerprint
' attribute.
|
inline |
Get a reference to the value of the 'labels
' attribute.
|
inline |
Get a reference to the value of the 'licenseCodes
' attribute.
|
inline |
Get a reference to the value of the 'licenses
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get a reference to the value of the 'rawDisk
' attribute.
|
inline |
Get the value of the 'selfLink
' attribute.
|
inline |
Get the value of the 'sourceDisk
' attribute.
const CustomerEncryptionKey google_compute_api::Image::get_source_disk_encryption_key | ( | ) | const |
Get a reference to the value of the 'sourceDiskEncryptionKey
' attribute.
|
inline |
Get the value of the 'sourceDiskId
' attribute.
|
inline |
Get the value of the 'sourceImage
' attribute.
const CustomerEncryptionKey google_compute_api::Image::get_source_image_encryption_key | ( | ) | const |
Get a reference to the value of the 'sourceImageEncryptionKey
' attribute.
|
inline |
Get the value of the 'sourceImageId
' attribute.
|
inline |
Get the value of the 'sourceSnapshot
' attribute.
const CustomerEncryptionKey google_compute_api::Image::get_source_snapshot_encryption_key | ( | ) | const |
Get a reference to the value of the 'sourceSnapshotEncryptionKey
' attribute.
|
inline |
Get the value of the 'sourceSnapshotId
' attribute.
|
inline |
Get the value of the 'sourceType
' attribute.
|
inline |
Get the value of the 'status
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_compute_api::Image
|
inline |
Determine if the 'archiveSizeBytes
' attribute was set.
archiveSizeBytes
' attribute was set.
|
inline |
Determine if the 'creationTimestamp
' attribute was set.
creationTimestamp
' attribute was set.
|
inline |
Determine if the 'deprecated
' attribute was set.
deprecated
' attribute was set.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'diskSizeGb
' attribute was set.
diskSizeGb
' attribute was set.
|
inline |
Determine if the 'family
' attribute was set.
family
' attribute was set.
|
inline |
Determine if the 'guestOsFeatures
' attribute was set.
guestOsFeatures
' attribute was set.
|
inline |
Determine if the 'id
' attribute was set.
id
' attribute was set.
|
inline |
Determine if the 'imageEncryptionKey
' attribute was set.
imageEncryptionKey
' attribute was set.
|
inline |
Determine if the 'kind
' attribute was set.
kind
' attribute was set.
|
inline |
Determine if the 'labelFingerprint
' attribute was set.
labelFingerprint
' attribute was set.
|
inline |
Determine if the 'labels
' attribute was set.
labels
' attribute was set.
|
inline |
Determine if the 'licenseCodes
' attribute was set.
licenseCodes
' attribute was set.
|
inline |
Determine if the 'licenses
' attribute was set.
licenses
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'rawDisk
' attribute was set.
rawDisk
' attribute was set.
|
inline |
Determine if the 'selfLink
' attribute was set.
selfLink
' attribute was set.
|
inline |
Determine if the 'sourceDisk
' attribute was set.
sourceDisk
' attribute was set.
|
inline |
Determine if the 'sourceDiskEncryptionKey
' attribute was set.
sourceDiskEncryptionKey
' attribute was set.
|
inline |
Determine if the 'sourceDiskId
' attribute was set.
sourceDiskId
' 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 |
Determine if the 'sourceImageId
' attribute was set.
sourceImageId
' attribute was set.
|
inline |
Determine if the 'sourceSnapshot
' attribute was set.
sourceSnapshot
' attribute was set.
|
inline |
Determine if the 'sourceSnapshotEncryptionKey
' attribute was set.
sourceSnapshotEncryptionKey
' attribute was set.
|
inline |
Determine if the 'sourceSnapshotId
' attribute was set.
sourceSnapshotId
' attribute was set.
|
inline |
Determine if the 'sourceType
' attribute was set.
sourceType
' attribute was set.
|
inline |
Determine if the 'status
' attribute was set.
status
' attribute was set. DeprecationStatus google_compute_api::Image::mutable_deprecated | ( | ) |
Gets a reference to a mutable value of the 'deprecated
' property.
The deprecation status associated with this image.
client::JsonCppArray<GuestOsFeature > google_compute_api::Image::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.
CustomerEncryptionKey google_compute_api::Image::mutable_imageEncryptionKey | ( | ) |
Gets a reference to a mutable value of the 'imageEncryptionKey
' property.
Encrypts the image using a customer-supplied encryption key.
After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image).
Customer-supplied encryption keys do not protect access to metadata of the disk.
If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.
|
inline |
Gets a reference to a mutable value of the 'labels
' property.
Labels to apply to this image. These can be later modified by the setLabels method.
|
inline |
Gets a reference to a mutable value of the 'licenseCodes
' property.
Integer license codes indicating which licenses are attached to this image.
|
inline |
Gets a reference to a mutable value of the 'licenses
' property.
Any applicable license URI.
|
inline |
Gets a reference to a mutable value of the 'rawDisk
' property.
The parameters of the raw disk image.
CustomerEncryptionKey google_compute_api::Image::mutable_sourceDiskEncryptionKey | ( | ) |
Gets a reference to a mutable value of the 'sourceDiskEncryptionKey
' property.
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
CustomerEncryptionKey google_compute_api::Image::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.
CustomerEncryptionKey google_compute_api::Image::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.
|
static |
Creates a new default instance.
|
inline |
Change the 'archiveSizeBytes
' attribute.
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
[in] | value | The new value. |
|
inline |
Change the 'creationTimestamp
' attribute.
[Output Only] Creation timestamp in RFC3339 text format.
[in] | value | The new value. |
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource.
[in] | value | The new value. |
|
inline |
Change the 'diskSizeGb
' attribute.
Size of the image when restored onto a persistent disk (in GB).
[in] | value | The new value. |
|
inline |
Change the 'family
' attribute.
The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
[in] | value | The new value. |
|
inline |
Change the 'id
' attribute.
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
[in] | value | The new value. |
|
inline |
Change the 'kind
' attribute.
[Output Only] Type of the resource. Always compute::image for images.
[in] | value | The new value. |
|
inline |
Change the 'labelFingerprint
' attribute.
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels 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 an image.
[in] | value | The new 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.
[in] | value | The new value. |
|
inline |
Change the 'selfLink
' attribute.
[Output Only] Server-defined URL for the resource.
[in] | value | The new value. |
|
inline |
Change the 'sourceDisk
' attribute.
URL of the source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values:
[in] | value | The new value. |
|
inline |
Change the 'sourceDiskId
' attribute.
[Output Only] The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
[in] | value | The new value. |
|
inline |
Change the 'sourceImage
' attribute.
URL of the source image used to create this image. This can be a full or valid partial URL. You must provide exactly one of:
[in] | value | The new value. |
|
inline |
Change the 'sourceImageId
' attribute.
[Output Only] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name.
[in] | value | The new value. |
|
inline |
Change the 'sourceSnapshot
' attribute.
URL of the source snapshot used to create this image. This can be a full or valid partial URL. You must provide exactly one of:
[in] | value | The new value. |
|
inline |
Change the 'sourceSnapshotId
' attribute.
[Output Only] The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name.
[in] | value | The new value. |
|
inline |
Change the 'sourceType
' attribute.
The type of the image used to create this disk. The default and only value is RAW.
[in] | value | The new value. |
|
inline |
Change the 'status
' attribute.
[Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY.
[in] | value | The new value. |