Class protos.google.cloud.compute.v1beta.Instance (6.14.0)

Represents an Instance.

Implements

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new Instance.

Parameter
Name Description
properties IInstance

Properties to set

Properties

advancedMachineFeatures

public advancedMachineFeatures?: (google.cloud.compute.v1beta.IAdvancedMachineFeatures|null);

Instance advancedMachineFeatures.

canIpForward

public canIpForward?: (boolean|null);

Instance canIpForward.

confidentialInstanceConfig

public confidentialInstanceConfig?: (google.cloud.compute.v1beta.IConfidentialInstanceConfig|null);

Instance confidentialInstanceConfig.

cpuPlatform

public cpuPlatform?: (string|null);

Instance cpuPlatform.

creationTimestamp

public creationTimestamp?: (string|null);

Instance creationTimestamp.

deletionProtection

public deletionProtection?: (boolean|null);

Instance deletionProtection.

description

public description?: (string|null);

Instance description.

disks

public disks: google.cloud.compute.v1beta.IAttachedDisk[];

Instance disks.

displayDevice

public displayDevice?: (google.cloud.compute.v1beta.IDisplayDevice|null);

Instance displayDevice.

eraseWindowsVssSignature

public eraseWindowsVssSignature?: (boolean|null);

Instance eraseWindowsVssSignature.

fingerprint

public fingerprint?: (string|null);

Instance fingerprint.

guestAccelerators

public guestAccelerators: google.cloud.compute.v1beta.IAcceleratorConfig[];

Instance guestAccelerators.

hostname

public hostname?: (string|null);

Instance hostname.

id

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

Instance id.

instanceEncryptionKey

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

Instance instanceEncryptionKey.

keyRevocationActionType

public keyRevocationActionType?: (string|null);

Instance keyRevocationActionType.

kind

public kind?: (string|null);

Instance kind.

labelFingerprint

public labelFingerprint?: (string|null);

Instance labelFingerprint.

labels

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

Instance labels.

lastStartTimestamp

public lastStartTimestamp?: (string|null);

Instance lastStartTimestamp.

lastStopTimestamp

public lastStopTimestamp?: (string|null);

Instance lastStopTimestamp.

lastSuspendedTimestamp

public lastSuspendedTimestamp?: (string|null);

Instance lastSuspendedTimestamp.

localSsdEncryptionMode

public localSsdEncryptionMode?: (string|null);

Instance localSsdEncryptionMode.

machineType

public machineType?: (string|null);

Instance machineType.

metadata

public metadata?: (google.cloud.compute.v1beta.IMetadata|null);

Instance metadata.

minCpuPlatform

public minCpuPlatform?: (string|null);

Instance minCpuPlatform.

name

public name?: (string|null);

Instance name.

networkInterfaces

public networkInterfaces: google.cloud.compute.v1beta.INetworkInterface[];

Instance networkInterfaces.

networkPerformanceConfig

public networkPerformanceConfig?: (google.cloud.compute.v1beta.INetworkPerformanceConfig|null);

Instance networkPerformanceConfig.

params

public params?: (google.cloud.compute.v1beta.IInstanceParams|null);

Instance params.

partnerMetadata

public partnerMetadata: { [k: string]: google.cloud.compute.v1beta.IStructuredEntries };

Instance partnerMetadata.

postKeyRevocationActionType

public postKeyRevocationActionType?: (string|null);

Instance postKeyRevocationActionType.

privateIpv6GoogleAccess

public privateIpv6GoogleAccess?: (string|null);

Instance privateIpv6GoogleAccess.

reservationAffinity

public reservationAffinity?: (google.cloud.compute.v1beta.IReservationAffinity|null);

Instance reservationAffinity.

resourcePolicies

public resourcePolicies: string[];

Instance resourcePolicies.

resourceStatus

public resourceStatus?: (google.cloud.compute.v1beta.IResourceStatus|null);

Instance resourceStatus.

satisfiesPzi

public satisfiesPzi?: (boolean|null);

Instance satisfiesPzi.

satisfiesPzs

public satisfiesPzs?: (boolean|null);

Instance satisfiesPzs.

scheduling

public scheduling?: (google.cloud.compute.v1beta.IScheduling|null);

Instance scheduling.

public selfLink?: (string|null);

Instance selfLink.

serviceAccounts

public serviceAccounts: google.cloud.compute.v1beta.IServiceAccount[];

Instance serviceAccounts.

shieldedInstanceConfig

public shieldedInstanceConfig?: (google.cloud.compute.v1beta.IShieldedInstanceConfig|null);

Instance shieldedInstanceConfig.

shieldedInstanceIntegrityPolicy

public shieldedInstanceIntegrityPolicy?: (google.cloud.compute.v1beta.IShieldedInstanceIntegrityPolicy|null);

Instance shieldedInstanceIntegrityPolicy.

shieldedVmConfig

public shieldedVmConfig?: (google.cloud.compute.v1beta.IShieldedVmConfig|null);

Instance shieldedVmConfig.

shieldedVmIntegrityPolicy

public shieldedVmIntegrityPolicy?: (google.cloud.compute.v1beta.IShieldedVmIntegrityPolicy|null);

Instance shieldedVmIntegrityPolicy.

sourceMachineImage

public sourceMachineImage?: (string|null);

Instance sourceMachineImage.

sourceMachineImageEncryptionKey

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

Instance sourceMachineImageEncryptionKey.

startRestricted

public startRestricted?: (boolean|null);

Instance startRestricted.

status

public status?: (string|null);

Instance status.

statusMessage

public statusMessage?: (string|null);

Instance statusMessage.

tags

public tags?: (google.cloud.compute.v1beta.ITags|null);

Instance tags.

workloadIdentityConfig

public workloadIdentityConfig?: (google.cloud.compute.v1beta.IWorkloadIdentityConfig|null);

Instance workloadIdentityConfig.

zone

public zone?: (string|null);

Instance zone.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1beta.IInstance): google.cloud.compute.v1beta.Instance;

Creates a new Instance instance using the specified properties.

Parameter
Name Description
properties IInstance

Properties to set

Returns
Type Description
Instance

Instance instance

decode(reader, length)

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

Decodes an Instance 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
Instance

Instance

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
Instance

Instance

encode(message, writer)

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

Encodes the specified Instance message. Does not implicitly messages.

Parameters
Name Description
message IInstance

Instance 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.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IInstance

Instance 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.Instance;

Creates an Instance 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
Instance

Instance

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for Instance

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 Instance to JSON.

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message Instance

Instance

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 Instance 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