Image

google.cloud.compute.v1. Image

Represents an Image.

Constructor

new Image(propertiesopt)

Constructs a new Image.

Parameters:
Name Type Attributes Description
properties google.cloud.compute.v1.IImage <optional>

Properties to set

Implements:
  • IImage

Members

_architecture

Image _architecture.

_archiveSizeBytes

Image _archiveSizeBytes.

_creationTimestamp

Image _creationTimestamp.

_deprecated

Image _deprecated.

_description

Image _description.

_diskSizeGb

Image _diskSizeGb.

_family

Image _family.

_id

Image _id.

_imageEncryptionKey

Image _imageEncryptionKey.

_kind

Image _kind.

_labelFingerprint

Image _labelFingerprint.

_name

Image _name.

_rawDisk

Image _rawDisk.

_satisfiesPzs

Image _satisfiesPzs.

Image _selfLink.

_shieldedInstanceInitialState

Image _shieldedInstanceInitialState.

_sourceDisk

Image _sourceDisk.

_sourceDiskEncryptionKey

Image _sourceDiskEncryptionKey.

_sourceDiskId

Image _sourceDiskId.

_sourceImage

Image _sourceImage.

_sourceImageEncryptionKey

Image _sourceImageEncryptionKey.

_sourceImageId

Image _sourceImageId.

_sourceSnapshot

Image _sourceSnapshot.

_sourceSnapshotEncryptionKey

Image _sourceSnapshotEncryptionKey.

_sourceSnapshotId

Image _sourceSnapshotId.

_sourceType

Image _sourceType.

_status

Image _status.

architecture

Image architecture.

archiveSizeBytes

Image archiveSizeBytes.

creationTimestamp

Image creationTimestamp.

deprecated

Image deprecated.

description

Image description.

diskSizeGb

Image diskSizeGb.

family

Image family.

guestOsFeatures

Image guestOsFeatures.

id

Image id.

imageEncryptionKey

Image imageEncryptionKey.

kind

Image kind.

labelFingerprint

Image labelFingerprint.

labels

Image labels.

licenseCodes

Image licenseCodes.

licenses

Image licenses.

name

Image name.

rawDisk

Image rawDisk.

satisfiesPzs

Image satisfiesPzs.

Image selfLink.

shieldedInstanceInitialState

Image shieldedInstanceInitialState.

sourceDisk

Image sourceDisk.

sourceDiskEncryptionKey

Image sourceDiskEncryptionKey.

sourceDiskId

Image sourceDiskId.

sourceImage

Image sourceImage.

sourceImageEncryptionKey

Image sourceImageEncryptionKey.

sourceImageId

Image sourceImageId.

sourceSnapshot

Image sourceSnapshot.

sourceSnapshotEncryptionKey

Image sourceSnapshotEncryptionKey.

sourceSnapshotId

Image sourceSnapshotId.

sourceType

Image sourceType.

status

Image status.

storageLocations

Image storageLocations.

Architecture

Architecture enum.

Properties:
Name Type Description
UNDEFINED_ARCHITECTURE number

UNDEFINED_ARCHITECTURE value

ARCHITECTURE_UNSPECIFIED number

ARCHITECTURE_UNSPECIFIED value

ARM64 number

ARM64 value

X86_64 number

X86_64 value

SourceType

SourceType enum.

Properties:
Name Type Description
UNDEFINED_SOURCE_TYPE number

UNDEFINED_SOURCE_TYPE value

RAW number

RAW value

Status

Status enum.

Properties:
Name Type Description
UNDEFINED_STATUS number

UNDEFINED_STATUS value

DELETING number

DELETING value

FAILED number

FAILED value

PENDING number

PENDING value

READY number

READY value

Methods

toJSON() → {Object.<string, *>}

Converts this Image to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.compute.v1.Image}

Creates a new Image instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.compute.v1.IImage <optional>

Properties to set

Returns:
Type Description
google.cloud.compute.v1.Image

Image instance

(static) decode(reader, lengthopt) → {google.cloud.compute.v1.Image}

Decodes an Image message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.cloud.compute.v1.Image

Image

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.cloud.compute.v1.Image}

Decodes an Image message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.cloud.compute.v1.Image

Image

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified Image message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.IImage

Image message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified Image message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.IImage

Image message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.cloud.compute.v1.Image}

Creates an Image message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.cloud.compute.v1.Image

Image

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for Image

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from an Image message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.Image

Image

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies an Image message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not