Class protos.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties (0.8.0)

Represents a ComputeInstanceRestoreProperties.

Package

@google-cloud/backupdr

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.backupdr.v1.IComputeInstanceRestoreProperties);

Constructs a new ComputeInstanceRestoreProperties.

Parameter
Name Description
properties IComputeInstanceRestoreProperties

Properties to set

Properties

advancedMachineFeatures

public advancedMachineFeatures?: (google.cloud.backupdr.v1.IAdvancedMachineFeatures|null);

ComputeInstanceRestoreProperties advancedMachineFeatures.

allocationAffinity

public allocationAffinity?: (google.cloud.backupdr.v1.IAllocationAffinity|null);

ComputeInstanceRestoreProperties allocationAffinity.

canIpForward

public canIpForward?: (boolean|null);

ComputeInstanceRestoreProperties canIpForward.

confidentialInstanceConfig

public confidentialInstanceConfig?: (google.cloud.backupdr.v1.IConfidentialInstanceConfig|null);

ComputeInstanceRestoreProperties confidentialInstanceConfig.

deletionProtection

public deletionProtection?: (boolean|null);

ComputeInstanceRestoreProperties deletionProtection.

description

public description?: (string|null);

ComputeInstanceRestoreProperties description.

disks

public disks: google.cloud.backupdr.v1.IAttachedDisk[];

ComputeInstanceRestoreProperties disks.

displayDevice

public displayDevice?: (google.cloud.backupdr.v1.IDisplayDevice|null);

ComputeInstanceRestoreProperties displayDevice.

guestAccelerators

public guestAccelerators: google.cloud.backupdr.v1.IAcceleratorConfig[];

ComputeInstanceRestoreProperties guestAccelerators.

hostname

public hostname?: (string|null);

ComputeInstanceRestoreProperties hostname.

instanceEncryptionKey

public instanceEncryptionKey?: (google.cloud.backupdr.v1.ICustomerEncryptionKey|null);

ComputeInstanceRestoreProperties instanceEncryptionKey.

keyRevocationActionType

public keyRevocationActionType?: (google.cloud.backupdr.v1.KeyRevocationActionType|keyof typeof google.cloud.backupdr.v1.KeyRevocationActionType|null);

ComputeInstanceRestoreProperties keyRevocationActionType.

labels

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

ComputeInstanceRestoreProperties labels.

machineType

public machineType?: (string|null);

ComputeInstanceRestoreProperties machineType.

metadata

public metadata?: (google.cloud.backupdr.v1.IMetadata|null);

ComputeInstanceRestoreProperties metadata.

minCpuPlatform

public minCpuPlatform?: (string|null);

ComputeInstanceRestoreProperties minCpuPlatform.

name

public name?: (string|null);

ComputeInstanceRestoreProperties name.

networkInterfaces

public networkInterfaces: google.cloud.backupdr.v1.INetworkInterface[];

ComputeInstanceRestoreProperties networkInterfaces.

networkPerformanceConfig

public networkPerformanceConfig?: (google.cloud.backupdr.v1.INetworkPerformanceConfig|null);

ComputeInstanceRestoreProperties networkPerformanceConfig.

params

public params?: (google.cloud.backupdr.v1.IInstanceParams|null);

ComputeInstanceRestoreProperties params.

privateIpv6GoogleAccess

public privateIpv6GoogleAccess?: (google.cloud.backupdr.v1.ComputeInstanceRestoreProperties.InstancePrivateIpv6GoogleAccess|keyof typeof google.cloud.backupdr.v1.ComputeInstanceRestoreProperties.InstancePrivateIpv6GoogleAccess|null);

ComputeInstanceRestoreProperties privateIpv6GoogleAccess.

resourcePolicies

public resourcePolicies: string[];

ComputeInstanceRestoreProperties resourcePolicies.

scheduling

public scheduling?: (google.cloud.backupdr.v1.IScheduling|null);

ComputeInstanceRestoreProperties scheduling.

serviceAccounts

public serviceAccounts: google.cloud.backupdr.v1.IServiceAccount[];

ComputeInstanceRestoreProperties serviceAccounts.

tags

public tags?: (google.cloud.backupdr.v1.ITags|null);

ComputeInstanceRestoreProperties tags.

Methods

create(properties)

public static create(properties?: google.cloud.backupdr.v1.IComputeInstanceRestoreProperties): google.cloud.backupdr.v1.ComputeInstanceRestoreProperties;

Creates a new ComputeInstanceRestoreProperties instance using the specified properties.

Parameter
Name Description
properties IComputeInstanceRestoreProperties

Properties to set

Returns
Type Description
ComputeInstanceRestoreProperties

ComputeInstanceRestoreProperties instance

decode(reader, length)

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

Decodes a ComputeInstanceRestoreProperties 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
ComputeInstanceRestoreProperties

ComputeInstanceRestoreProperties

decodeDelimited(reader)

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

Decodes a ComputeInstanceRestoreProperties message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
ComputeInstanceRestoreProperties

ComputeInstanceRestoreProperties

encode(message, writer)

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

Encodes the specified ComputeInstanceRestoreProperties message. Does not implicitly messages.

Parameters
Name Description
message IComputeInstanceRestoreProperties

ComputeInstanceRestoreProperties 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.backupdr.v1.IComputeInstanceRestoreProperties, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IComputeInstanceRestoreProperties

ComputeInstanceRestoreProperties 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.backupdr.v1.ComputeInstanceRestoreProperties;

Creates a ComputeInstanceRestoreProperties 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
ComputeInstanceRestoreProperties

ComputeInstanceRestoreProperties

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for ComputeInstanceRestoreProperties

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message ComputeInstanceRestoreProperties

ComputeInstanceRestoreProperties

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 a ComputeInstanceRestoreProperties 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