public sealed class MachineImage : IMessage<MachineImage>, IEquatable<MachineImage>, IDeepCloneable<MachineImage>, IBufferMessage, IMessage
Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images.
Implements
IMessage<MachineImage>, IEquatable<MachineImage>, IDeepCloneable<MachineImage>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
MachineImage()
public MachineImage()
MachineImage(MachineImage)
public MachineImage(MachineImage other)
Parameter | |
---|---|
Name | Description |
other | MachineImage |
Properties
CreationTimestamp
public string CreationTimestamp { get; set; }
[Output Only] The creation timestamp for this machine image in RFC3339 text format.
Property Value | |
---|---|
Type | Description |
String |
Description
public string Description { get; set; }
An optional description of this resource. Provide this property when you create the resource.
Property Value | |
---|---|
Type | Description |
String |
GuestFlush
public bool GuestFlush { get; set; }
[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.
Property Value | |
---|---|
Type | Description |
Boolean |
HasCreationTimestamp
public bool HasCreationTimestamp { get; }
Gets whether the "creation_timestamp" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasGuestFlush
public bool HasGuestFlush { get; }
Gets whether the "guest_flush" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasId
public bool HasId { get; }
Gets whether the "id" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasKind
public bool HasKind { get; }
Gets whether the "kind" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSatisfiesPzs
public bool HasSatisfiesPzs { get; }
Gets whether the "satisfies_pzs" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSelfLink
public bool HasSelfLink { get; }
Gets whether the "self_link" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasSourceInstance
public bool HasSourceInstance { get; }
Gets whether the "source_instance" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasStatus
public bool HasStatus { get; }
Gets whether the "status" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasTotalStorageBytes
public bool HasTotalStorageBytes { get; }
Gets whether the "total_storage_bytes" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
Id
public ulong Id { get; set; }
[Output Only] A unique identifier for this machine image. The server defines this identifier.
Property Value | |
---|---|
Type | Description |
UInt64 |
InstanceProperties
public InstanceProperties InstanceProperties { get; set; }
[Output Only] Properties of source instance
Property Value | |
---|---|
Type | Description |
InstanceProperties |
Kind
public string Kind { get; set; }
[Output Only] The resource type, which is always compute#machineImage for machine image.
Property Value | |
---|---|
Type | Description |
String |
MachineImageEncryptionKey
public CustomerEncryptionKey MachineImageEncryptionKey { get; set; }
Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.
Property Value | |
---|---|
Type | Description |
CustomerEncryptionKey |
Name
public string Name { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
SatisfiesPzs
public bool SatisfiesPzs { get; set; }
[Output Only] Reserved for future use.
Property Value | |
---|---|
Type | Description |
Boolean |
SavedDisks
public RepeatedField<SavedDisk> SavedDisks { get; }
An array of Machine Image specific properties for disks attached to the source instance
Property Value | |
---|---|
Type | Description |
RepeatedField<SavedDisk> |
SelfLink
public string SelfLink { get; set; }
[Output Only] The URL for this machine image. The server defines this URL.
Property Value | |
---|---|
Type | Description |
String |
SourceDiskEncryptionKeys
public RepeatedField<SourceDiskEncryptionKey> SourceDiskEncryptionKeys { get; }
[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.
Property Value | |
---|---|
Type | Description |
RepeatedField<SourceDiskEncryptionKey> |
SourceInstance
public string SourceInstance { get; set; }
The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance
Property Value | |
---|---|
Type | Description |
String |
SourceInstanceProperties
public SourceInstanceProperties SourceInstanceProperties { get; set; }
[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.
Property Value | |
---|---|
Type | Description |
SourceInstanceProperties |
Status
public string Status { get; set; }
[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |
StorageLocations
public RepeatedField<string> StorageLocations { get; }
The regional or multi-regional Cloud Storage bucket location where the machine image is stored.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
TotalStorageBytes
public long TotalStorageBytes { get; set; }
[Output Only] Total size of the storage used by the machine image.
Property Value | |
---|---|
Type | Description |
Int64 |