Class protos.google.cloud.compute.v1beta.AttachedDiskInitializeParams (6.9.0)

Represents an AttachedDiskInitializeParams.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new AttachedDiskInitializeParams.

Parameter
Name Description
properties IAttachedDiskInitializeParams

Properties to set

Properties

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.

guestOsFeatures

public guestOsFeatures: google.cloud.compute.v1beta.IGuestOsFeature[];

AttachedDiskInitializeParams guestOsFeatures.

labels

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

AttachedDiskInitializeParams labels.

licenses

public licenses: string[];

AttachedDiskInitializeParams licenses.

multiWriter

public multiWriter?: (boolean|null);

AttachedDiskInitializeParams multiWriter.

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.v1beta.ICustomerEncryptionKey|null);

AttachedDiskInitializeParams sourceImageEncryptionKey.

sourceInstantSnapshot

public sourceInstantSnapshot?: (string|null);

AttachedDiskInitializeParams sourceInstantSnapshot.

sourceSnapshot

public sourceSnapshot?: (string|null);

AttachedDiskInitializeParams sourceSnapshot.

sourceSnapshotEncryptionKey

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

AttachedDiskInitializeParams sourceSnapshotEncryptionKey.

storagePool

public storagePool?: (string|null);

AttachedDiskInitializeParams storagePool.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1beta.IAttachedDiskInitializeParams): google.cloud.compute.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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