Snapshot

google.cloud.compute.v1. Snapshot

Represents a Snapshot.

Constructor

new Snapshot(propertiesopt)

Constructs a new Snapshot.

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

Properties to set

Implements:
  • ISnapshot

Members

_architecture

Snapshot _architecture.

_autoCreated

Snapshot _autoCreated.

_chainName

Snapshot _chainName.

_creationSizeBytes

Snapshot _creationSizeBytes.

_creationTimestamp

Snapshot _creationTimestamp.

_description

Snapshot _description.

_diskSizeGb

Snapshot _diskSizeGb.

_downloadBytes

Snapshot _downloadBytes.

_id

Snapshot _id.

_kind

Snapshot _kind.

_labelFingerprint

Snapshot _labelFingerprint.

_locationHint

Snapshot _locationHint.

_name

Snapshot _name.

_satisfiesPzs

Snapshot _satisfiesPzs.

Snapshot _selfLink.

_snapshotEncryptionKey

Snapshot _snapshotEncryptionKey.

_snapshotType

Snapshot _snapshotType.

_sourceDisk

Snapshot _sourceDisk.

_sourceDiskEncryptionKey

Snapshot _sourceDiskEncryptionKey.

_sourceDiskId

Snapshot _sourceDiskId.

_sourceSnapshotSchedulePolicy

Snapshot _sourceSnapshotSchedulePolicy.

_sourceSnapshotSchedulePolicyId

Snapshot _sourceSnapshotSchedulePolicyId.

_status

Snapshot _status.

_storageBytes

Snapshot _storageBytes.

_storageBytesStatus

Snapshot _storageBytesStatus.

architecture

Snapshot architecture.

autoCreated

Snapshot autoCreated.

chainName

Snapshot chainName.

creationSizeBytes

Snapshot creationSizeBytes.

creationTimestamp

Snapshot creationTimestamp.

description

Snapshot description.

diskSizeGb

Snapshot diskSizeGb.

downloadBytes

Snapshot downloadBytes.

id

Snapshot id.

kind

Snapshot kind.

labelFingerprint

Snapshot labelFingerprint.

labels

Snapshot labels.

licenseCodes

Snapshot licenseCodes.

licenses

Snapshot licenses.

locationHint

Snapshot locationHint.

name

Snapshot name.

satisfiesPzs

Snapshot satisfiesPzs.

Snapshot selfLink.

snapshotEncryptionKey

Snapshot snapshotEncryptionKey.

snapshotType

Snapshot snapshotType.

sourceDisk

Snapshot sourceDisk.

sourceDiskEncryptionKey

Snapshot sourceDiskEncryptionKey.

sourceDiskId

Snapshot sourceDiskId.

sourceSnapshotSchedulePolicy

Snapshot sourceSnapshotSchedulePolicy.

sourceSnapshotSchedulePolicyId

Snapshot sourceSnapshotSchedulePolicyId.

status

Snapshot status.

storageBytes

Snapshot storageBytes.

storageBytesStatus

Snapshot storageBytesStatus.

storageLocations

Snapshot 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

SnapshotType

SnapshotType enum.

Properties:
Name Type Description
UNDEFINED_SNAPSHOT_TYPE number

UNDEFINED_SNAPSHOT_TYPE value

ARCHIVE number

ARCHIVE value

STANDARD number

STANDARD value

Status

Status enum.

Properties:
Name Type Description
UNDEFINED_STATUS number

UNDEFINED_STATUS value

CREATING number

CREATING value

DELETING number

DELETING value

FAILED number

FAILED value

READY number

READY value

UPLOADING number

UPLOADING value

StorageBytesStatus

StorageBytesStatus enum.

Properties:
Name Type Description
UNDEFINED_STORAGE_BYTES_STATUS number

UNDEFINED_STORAGE_BYTES_STATUS value

UPDATING number

UPDATING value

UP_TO_DATE number

UP_TO_DATE value

Methods

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

Converts this Snapshot to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Creates a new Snapshot instance using the specified properties.

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

Properties to set

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

Snapshot instance

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

Decodes a Snapshot 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.Snapshot

Snapshot

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.Snapshot}

Decodes a Snapshot 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.Snapshot

Snapshot

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 Snapshot message. Does not implicitly verify messages.

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

Snapshot 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 Snapshot message, length delimited. Does not implicitly verify messages.

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

Snapshot 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.Snapshot}

Creates a Snapshot 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.Snapshot

Snapshot

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for Snapshot

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 a Snapshot message. Also converts values to other types if specified.

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

Snapshot

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

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

Verifies a Snapshot 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