Represents an Image.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IImage);
Constructs a new Image.
Name | Description |
properties |
IImage
Properties to set |
Properties
_architecture
public _architecture?: "architecture";
Image _architecture.
_archiveSizeBytes
public _archiveSizeBytes?: "archiveSizeBytes";
Image _archiveSizeBytes.
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
Image _creationTimestamp.
_deprecated
public _deprecated?: "deprecated";
Image _deprecated.
_description
public _description?: "description";
Image _description.
_diskSizeGb
public _diskSizeGb?: "diskSizeGb";
Image _diskSizeGb.
_family
public _family?: "family";
Image _family.
_id
public _id?: "id";
Image _id.
_imageEncryptionKey
public _imageEncryptionKey?: "imageEncryptionKey";
Image _imageEncryptionKey.
_kind
public _kind?: "kind";
Image _kind.
_labelFingerprint
public _labelFingerprint?: "labelFingerprint";
Image _labelFingerprint.
_name
public _name?: "name";
Image _name.
_rawDisk
public _rawDisk?: "rawDisk";
Image _rawDisk.
_satisfiesPzs
public _satisfiesPzs?: "satisfiesPzs";
Image _satisfiesPzs.
_selfLink
public _selfLink?: "selfLink";
Image _selfLink.
_shieldedInstanceInitialState
public _shieldedInstanceInitialState?: "shieldedInstanceInitialState";
Image _shieldedInstanceInitialState.
_sourceDisk
public _sourceDisk?: "sourceDisk";
Image _sourceDisk.
_sourceDiskEncryptionKey
public _sourceDiskEncryptionKey?: "sourceDiskEncryptionKey";
Image _sourceDiskEncryptionKey.
_sourceDiskId
public _sourceDiskId?: "sourceDiskId";
Image _sourceDiskId.
_sourceImage
public _sourceImage?: "sourceImage";
Image _sourceImage.
_sourceImageEncryptionKey
public _sourceImageEncryptionKey?: "sourceImageEncryptionKey";
Image _sourceImageEncryptionKey.
_sourceImageId
public _sourceImageId?: "sourceImageId";
Image _sourceImageId.
_sourceSnapshot
public _sourceSnapshot?: "sourceSnapshot";
Image _sourceSnapshot.
_sourceSnapshotEncryptionKey
public _sourceSnapshotEncryptionKey?: "sourceSnapshotEncryptionKey";
Image _sourceSnapshotEncryptionKey.
_sourceSnapshotId
public _sourceSnapshotId?: "sourceSnapshotId";
Image _sourceSnapshotId.
_sourceType
public _sourceType?: "sourceType";
Image _sourceType.
_status
public _status?: "status";
Image _status.
architecture
public architecture?: (string|null);
Image architecture.
archiveSizeBytes
public archiveSizeBytes?: (number|Long|string|null);
Image archiveSizeBytes.
creationTimestamp
public creationTimestamp?: (string|null);
Image creationTimestamp.
deprecated
public deprecated?: (google.cloud.compute.v1.IDeprecationStatus|null);
Image deprecated.
description
public description?: (string|null);
Image description.
diskSizeGb
public diskSizeGb?: (number|Long|string|null);
Image diskSizeGb.
family
public family?: (string|null);
Image family.
guestOsFeatures
public guestOsFeatures: google.cloud.compute.v1.IGuestOsFeature[];
Image guestOsFeatures.
id
public id?: (number|Long|string|null);
Image id.
imageEncryptionKey
public imageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);
Image imageEncryptionKey.
kind
public kind?: (string|null);
Image kind.
labelFingerprint
public labelFingerprint?: (string|null);
Image labelFingerprint.
labels
public labels: { [k: string]: string };
Image labels.
licenseCodes
public licenseCodes: (number|Long|string)[];
Image licenseCodes.
licenses
public licenses: string[];
Image licenses.
name
public name?: (string|null);
Image name.
rawDisk
public rawDisk?: (google.cloud.compute.v1.IRawDisk|null);
Image rawDisk.
satisfiesPzs
public satisfiesPzs?: (boolean|null);
Image satisfiesPzs.
selfLink
public selfLink?: (string|null);
Image selfLink.
shieldedInstanceInitialState
public shieldedInstanceInitialState?: (google.cloud.compute.v1.IInitialStateConfig|null);
Image shieldedInstanceInitialState.
sourceDisk
public sourceDisk?: (string|null);
Image sourceDisk.
sourceDiskEncryptionKey
public sourceDiskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);
Image sourceDiskEncryptionKey.
sourceDiskId
public sourceDiskId?: (string|null);
Image sourceDiskId.
sourceImage
public sourceImage?: (string|null);
Image sourceImage.
sourceImageEncryptionKey
public sourceImageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);
Image sourceImageEncryptionKey.
sourceImageId
public sourceImageId?: (string|null);
Image sourceImageId.
sourceSnapshot
public sourceSnapshot?: (string|null);
Image sourceSnapshot.
sourceSnapshotEncryptionKey
public sourceSnapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);
Image sourceSnapshotEncryptionKey.
sourceSnapshotId
public sourceSnapshotId?: (string|null);
Image sourceSnapshotId.
sourceType
public sourceType?: (string|null);
Image sourceType.
status
public status?: (string|null);
Image status.
storageLocations
public storageLocations: string[];
Image storageLocations.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.IImage): google.cloud.compute.v1.Image;
Creates a new Image instance using the specified properties.
Name | Description |
properties |
IImage
Properties to set |
Type | Description |
google.cloud.compute.v1.Image | Image instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.Image;
Decodes an Image message from the specified reader or buffer.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.cloud.compute.v1.Image | Image |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.Image;
Decodes an Image message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.compute.v1.Image | Image |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Image message. Does not implicitly messages.
Name | Description |
message |
IImage
Image message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.compute.v1.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Image message, length delimited. Does not implicitly messages.
Name | Description |
message |
IImage
Image message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.Image;
Creates an Image message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.compute.v1.Image | Image |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for Image
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Type | Description |
string | The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this Image to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.Image, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from an Image message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.compute.v1.Image
Image |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an Image message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|