Class protos.google.cloud.compute.v1.PerInstanceConfig

Represents a PerInstanceConfig.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new PerInstanceConfig.

Parameter
NameDescription
properties IPerInstanceConfig

Properties to set

Properties

_fingerprint

public _fingerprint?: "fingerprint";

PerInstanceConfig _fingerprint.

_name

public _name?: "name";

PerInstanceConfig _name.

_preservedState

public _preservedState?: "preservedState";

PerInstanceConfig _preservedState.

_status

public _status?: "status";

PerInstanceConfig _status.

fingerprint

public fingerprint?: (string|null);

PerInstanceConfig fingerprint.

name

public name?: (string|null);

PerInstanceConfig name.

preservedState

public preservedState?: (google.cloud.compute.v1.IPreservedState|null);

PerInstanceConfig preservedState.

status

public status?: (google.cloud.compute.v1.PerInstanceConfig.Status|keyof typeof google.cloud.compute.v1.PerInstanceConfig.Status|null);

PerInstanceConfig status.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IPerInstanceConfig): google.cloud.compute.v1.PerInstanceConfig;

Creates a new PerInstanceConfig instance using the specified properties.

Parameter
NameDescription
properties IPerInstanceConfig

Properties to set

Returns
TypeDescription
google.cloud.compute.v1.PerInstanceConfig

PerInstanceConfig instance

decode(reader, length)

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

Decodes a PerInstanceConfig message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.compute.v1.PerInstanceConfig

PerInstanceConfig

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.compute.v1.PerInstanceConfig

PerInstanceConfig

encode(message, writer)

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

Encodes the specified PerInstanceConfig message. Does not implicitly messages.

Parameters
NameDescription
message IPerInstanceConfig

PerInstanceConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

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

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

Parameters
NameDescription
message IPerInstanceConfig

PerInstanceConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

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

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

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.compute.v1.PerInstanceConfig

PerInstanceConfig

toJSON()

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

Converts this PerInstanceConfig to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.compute.v1.PerInstanceConfig

PerInstanceConfig

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a PerInstanceConfig message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not