Class protos.google.cloud.compute.v1.BulkInsertInstanceResource (4.3.0)

Represents a BulkInsertInstanceResource.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new BulkInsertInstanceResource.

Parameter
NameDescription
properties IBulkInsertInstanceResource

Properties to set

Properties

_count

public _count?: "count";

BulkInsertInstanceResource _count.

_instanceProperties

public _instanceProperties?: "instanceProperties";

BulkInsertInstanceResource _instanceProperties.

_locationPolicy

public _locationPolicy?: "locationPolicy";

BulkInsertInstanceResource _locationPolicy.

_minCount

public _minCount?: "minCount";

BulkInsertInstanceResource _minCount.

_namePattern

public _namePattern?: "namePattern";

BulkInsertInstanceResource _namePattern.

_sourceInstanceTemplate

public _sourceInstanceTemplate?: "sourceInstanceTemplate";

BulkInsertInstanceResource _sourceInstanceTemplate.

count

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

BulkInsertInstanceResource count.

instanceProperties

public instanceProperties?: (google.cloud.compute.v1.IInstanceProperties|null);

BulkInsertInstanceResource instanceProperties.

locationPolicy

public locationPolicy?: (google.cloud.compute.v1.ILocationPolicy|null);

BulkInsertInstanceResource locationPolicy.

minCount

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

BulkInsertInstanceResource minCount.

namePattern

public namePattern?: (string|null);

BulkInsertInstanceResource namePattern.

perInstanceProperties

public perInstanceProperties: { [k: string]: google.cloud.compute.v1.IBulkInsertInstanceResourcePerInstanceProperties };

BulkInsertInstanceResource perInstanceProperties.

sourceInstanceTemplate

public sourceInstanceTemplate?: (string|null);

BulkInsertInstanceResource sourceInstanceTemplate.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IBulkInsertInstanceResource): google.cloud.compute.v1.BulkInsertInstanceResource;

Creates a new BulkInsertInstanceResource instance using the specified properties.

Parameter
NameDescription
properties IBulkInsertInstanceResource

Properties to set

Returns
TypeDescription
BulkInsertInstanceResource

BulkInsertInstanceResource instance

decode(reader, length)

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

Decodes a BulkInsertInstanceResource message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
BulkInsertInstanceResource

BulkInsertInstanceResource

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
BulkInsertInstanceResource

BulkInsertInstanceResource

encode(message, writer)

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

Encodes the specified BulkInsertInstanceResource message. Does not implicitly messages.

Parameters
NameDescription
message IBulkInsertInstanceResource

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

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

Parameters
NameDescription
message IBulkInsertInstanceResource

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

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

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

Plain object

Returns
TypeDescription
BulkInsertInstanceResource

BulkInsertInstanceResource

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for BulkInsertInstanceResource

Parameter
NameDescription
typeUrlPrefix string

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

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this BulkInsertInstanceResource to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message BulkInsertInstanceResource

BulkInsertInstanceResource

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