SavedAttachedDisk

google.cloud.compute.v1. SavedAttachedDisk

Represents a SavedAttachedDisk.

Constructor

new SavedAttachedDisk(propertiesopt)

Constructs a new SavedAttachedDisk.

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

Properties to set

Implements:
  • ISavedAttachedDisk

Members

_autoDelete

SavedAttachedDisk _autoDelete.

_boot

SavedAttachedDisk _boot.

_deviceName

SavedAttachedDisk _deviceName.

_diskEncryptionKey

SavedAttachedDisk _diskEncryptionKey.

_diskSizeGb

SavedAttachedDisk _diskSizeGb.

_diskType

SavedAttachedDisk _diskType.

_index

SavedAttachedDisk _index.

_interface

SavedAttachedDisk _interface.

_kind

SavedAttachedDisk _kind.

_mode

SavedAttachedDisk _mode.

_source

SavedAttachedDisk _source.

_storageBytes

SavedAttachedDisk _storageBytes.

_storageBytesStatus

SavedAttachedDisk _storageBytesStatus.

_type

SavedAttachedDisk _type.

autoDelete

SavedAttachedDisk autoDelete.

boot

SavedAttachedDisk boot.

deviceName

SavedAttachedDisk deviceName.

diskEncryptionKey

SavedAttachedDisk diskEncryptionKey.

diskSizeGb

SavedAttachedDisk diskSizeGb.

diskType

SavedAttachedDisk diskType.

guestOsFeatures

SavedAttachedDisk guestOsFeatures.

index

SavedAttachedDisk index.

interface

SavedAttachedDisk interface.

kind

SavedAttachedDisk kind.

licenses

SavedAttachedDisk licenses.

mode

SavedAttachedDisk mode.

source

SavedAttachedDisk source.

storageBytes

SavedAttachedDisk storageBytes.

storageBytesStatus

SavedAttachedDisk storageBytesStatus.

type

SavedAttachedDisk type.

Interface

Interface enum.

Properties:
Name Type Description
UNDEFINED_INTERFACE number

UNDEFINED_INTERFACE value

NVME number

NVME value

SCSI number

SCSI value

Mode

Mode enum.

Properties:
Name Type Description
UNDEFINED_MODE number

UNDEFINED_MODE value

READ_ONLY number

READ_ONLY value

READ_WRITE number

READ_WRITE 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

Type

Type enum.

Properties:
Name Type Description
UNDEFINED_TYPE number

UNDEFINED_TYPE value

PERSISTENT number

PERSISTENT value

SCRATCH number

SCRATCH value

Methods

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

Converts this SavedAttachedDisk to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Creates a new SavedAttachedDisk instance using the specified properties.

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

Properties to set

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

SavedAttachedDisk instance

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

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

SavedAttachedDisk

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

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

SavedAttachedDisk

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

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

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

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

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

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

SavedAttachedDisk

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for SavedAttachedDisk

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

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

SavedAttachedDisk

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

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

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