Class protos.google.cloud.compute.v1.AttachedDiskInitializeParams (4.5.0)

Represents an AttachedDiskInitializeParams.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.IAttachedDiskInitializeParams);

Constructs a new AttachedDiskInitializeParams.

Parameter
Name Description
properties IAttachedDiskInitializeParams

Properties to set

Properties

_architecture

public _architecture?: "architecture";

AttachedDiskInitializeParams _architecture.

_description

public _description?: "description";

AttachedDiskInitializeParams _description.

_diskName

public _diskName?: "diskName";

AttachedDiskInitializeParams _diskName.

_diskSizeGb

public _diskSizeGb?: "diskSizeGb";

AttachedDiskInitializeParams _diskSizeGb.

_diskType

public _diskType?: "diskType";

AttachedDiskInitializeParams _diskType.

_enableConfidentialCompute

public _enableConfidentialCompute?: "enableConfidentialCompute";

AttachedDiskInitializeParams _enableConfidentialCompute.

_onUpdateAction

public _onUpdateAction?: "onUpdateAction";

AttachedDiskInitializeParams _onUpdateAction.

_provisionedIops

public _provisionedIops?: "provisionedIops";

AttachedDiskInitializeParams _provisionedIops.

_provisionedThroughput

public _provisionedThroughput?: "provisionedThroughput";

AttachedDiskInitializeParams _provisionedThroughput.

_sourceImage

public _sourceImage?: "sourceImage";

AttachedDiskInitializeParams _sourceImage.

_sourceImageEncryptionKey

public _sourceImageEncryptionKey?: "sourceImageEncryptionKey";

AttachedDiskInitializeParams _sourceImageEncryptionKey.

_sourceSnapshot

public _sourceSnapshot?: "sourceSnapshot";

AttachedDiskInitializeParams _sourceSnapshot.

_sourceSnapshotEncryptionKey

public _sourceSnapshotEncryptionKey?: "sourceSnapshotEncryptionKey";

AttachedDiskInitializeParams _sourceSnapshotEncryptionKey.

_storagePool

public _storagePool?: "storagePool";

AttachedDiskInitializeParams _storagePool.

architecture

public architecture?: (string|null);

AttachedDiskInitializeParams architecture.

description

public description?: (string|null);

AttachedDiskInitializeParams description.

diskName

public diskName?: (string|null);

AttachedDiskInitializeParams diskName.

diskSizeGb

public diskSizeGb?: (number|Long|string|null);

AttachedDiskInitializeParams diskSizeGb.

diskType

public diskType?: (string|null);

AttachedDiskInitializeParams diskType.

enableConfidentialCompute

public enableConfidentialCompute?: (boolean|null);

AttachedDiskInitializeParams enableConfidentialCompute.

labels

public labels: { [k: string]: string };

AttachedDiskInitializeParams labels.

licenses

public licenses: string[];

AttachedDiskInitializeParams licenses.

onUpdateAction

public onUpdateAction?: (string|null);

AttachedDiskInitializeParams onUpdateAction.

provisionedIops

public provisionedIops?: (number|Long|string|null);

AttachedDiskInitializeParams provisionedIops.

provisionedThroughput

public provisionedThroughput?: (number|Long|string|null);

AttachedDiskInitializeParams provisionedThroughput.

replicaZones

public replicaZones: string[];

AttachedDiskInitializeParams replicaZones.

resourceManagerTags

public resourceManagerTags: { [k: string]: string };

AttachedDiskInitializeParams resourceManagerTags.

resourcePolicies

public resourcePolicies: string[];

AttachedDiskInitializeParams resourcePolicies.

sourceImage

public sourceImage?: (string|null);

AttachedDiskInitializeParams sourceImage.

sourceImageEncryptionKey

public sourceImageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);

AttachedDiskInitializeParams sourceImageEncryptionKey.

sourceSnapshot

public sourceSnapshot?: (string|null);

AttachedDiskInitializeParams sourceSnapshot.

sourceSnapshotEncryptionKey

public sourceSnapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);

AttachedDiskInitializeParams sourceSnapshotEncryptionKey.

storagePool

public storagePool?: (string|null);

AttachedDiskInitializeParams storagePool.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IAttachedDiskInitializeParams): google.cloud.compute.v1.AttachedDiskInitializeParams;

Creates a new AttachedDiskInitializeParams instance using the specified properties.

Parameter
Name Description
properties IAttachedDiskInitializeParams

Properties to set

Returns
Type Description
AttachedDiskInitializeParams

AttachedDiskInitializeParams instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AttachedDiskInitializeParams;

Decodes an AttachedDiskInitializeParams message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
AttachedDiskInitializeParams

AttachedDiskInitializeParams

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AttachedDiskInitializeParams;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
AttachedDiskInitializeParams

AttachedDiskInitializeParams

encode(message, writer)

public static encode(message: google.cloud.compute.v1.IAttachedDiskInitializeParams, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified AttachedDiskInitializeParams message. Does not implicitly messages.

Parameters
Name Description
message IAttachedDiskInitializeParams

AttachedDiskInitializeParams message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.compute.v1.IAttachedDiskInitializeParams, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IAttachedDiskInitializeParams

AttachedDiskInitializeParams message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AttachedDiskInitializeParams;

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
AttachedDiskInitializeParams

AttachedDiskInitializeParams

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for AttachedDiskInitializeParams

Parameter
Name Description
typeUrlPrefix string

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

Returns
Type Description
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this AttachedDiskInitializeParams to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.compute.v1.AttachedDiskInitializeParams, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
Name Description
message AttachedDiskInitializeParams

AttachedDiskInitializeParams

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an AttachedDiskInitializeParams message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not