Constructor
new AttachedDisk(propertiesopt)
Constructs a new AttachedDisk.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.IAttachedDisk |
<optional> |
Properties to set |
- Implements:
-
- IAttachedDisk
Members
_architecture
AttachedDisk _architecture.
_autoDelete
AttachedDisk _autoDelete.
_boot
AttachedDisk _boot.
_deviceName
AttachedDisk _deviceName.
_diskEncryptionKey
AttachedDisk _diskEncryptionKey.
_diskSizeGb
AttachedDisk _diskSizeGb.
_forceAttach
AttachedDisk _forceAttach.
_index
AttachedDisk _index.
_initializeParams
AttachedDisk _initializeParams.
_interface
AttachedDisk _interface.
_kind
AttachedDisk _kind.
_mode
AttachedDisk _mode.
_shieldedInstanceInitialState
AttachedDisk _shieldedInstanceInitialState.
_source
AttachedDisk _source.
_type
AttachedDisk _type.
architecture
AttachedDisk architecture.
autoDelete
AttachedDisk autoDelete.
boot
AttachedDisk boot.
deviceName
AttachedDisk deviceName.
diskEncryptionKey
AttachedDisk diskEncryptionKey.
diskSizeGb
AttachedDisk diskSizeGb.
forceAttach
AttachedDisk forceAttach.
guestOsFeatures
AttachedDisk guestOsFeatures.
index
AttachedDisk index.
initializeParams
AttachedDisk initializeParams.
interface
AttachedDisk interface.
kind
AttachedDisk kind.
licenses
AttachedDisk licenses.
mode
AttachedDisk mode.
shieldedInstanceInitialState
AttachedDisk shieldedInstanceInitialState.
source
AttachedDisk source.
type
AttachedDisk type.
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 |
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 |
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 AttachedDisk to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) create(propertiesopt) → {google.cloud.compute.v1.AttachedDisk}
Creates a new AttachedDisk instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.IAttachedDisk |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.AttachedDisk |
AttachedDisk instance |
(static) decode(reader, lengthopt) → {google.cloud.compute.v1.AttachedDisk}
Decodes an AttachedDisk 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.AttachedDisk |
AttachedDisk |
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.AttachedDisk}
Decodes an AttachedDisk 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.AttachedDisk |
AttachedDisk |
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 AttachedDisk message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.IAttachedDisk |
AttachedDisk 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 AttachedDisk message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.IAttachedDisk |
AttachedDisk 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.AttachedDisk}
Creates an AttachedDisk 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.AttachedDisk |
AttachedDisk |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for AttachedDisk
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 AttachedDisk message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.AttachedDisk |
AttachedDisk |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies an AttachedDisk message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|