Class protos.google.cloud.compute.v1.Autoscaler (3.5.1)

Represents an Autoscaler.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new Autoscaler.

Parameter
NameDescription
properties IAutoscaler

Properties to set

Properties

_autoscalingPolicy

public _autoscalingPolicy?: "autoscalingPolicy";

Autoscaler _autoscalingPolicy.

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

Autoscaler _creationTimestamp.

_description

public _description?: "description";

Autoscaler _description.

_id

public _id?: "id";

Autoscaler _id.

_kind

public _kind?: "kind";

Autoscaler _kind.

_name

public _name?: "name";

Autoscaler _name.

_recommendedSize

public _recommendedSize?: "recommendedSize";

Autoscaler _recommendedSize.

_region

public _region?: "region";

Autoscaler _region.

public _selfLink?: "selfLink";

Autoscaler _selfLink.

_status

public _status?: "status";

Autoscaler _status.

_target

public _target?: "target";

Autoscaler _target.

_zone

public _zone?: "zone";

Autoscaler _zone.

autoscalingPolicy

public autoscalingPolicy?: (google.cloud.compute.v1.IAutoscalingPolicy|null);

Autoscaler autoscalingPolicy.

creationTimestamp

public creationTimestamp?: (string|null);

Autoscaler creationTimestamp.

description

public description?: (string|null);

Autoscaler description.

id

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

Autoscaler id.

kind

public kind?: (string|null);

Autoscaler kind.

name

public name?: (string|null);

Autoscaler name.

recommendedSize

public recommendedSize?: (number|null);

Autoscaler recommendedSize.

region

public region?: (string|null);

Autoscaler region.

scalingScheduleStatus

public scalingScheduleStatus: { [k: string]: google.cloud.compute.v1.IScalingScheduleStatus };

Autoscaler scalingScheduleStatus.

public selfLink?: (string|null);

Autoscaler selfLink.

status

public status?: (string|null);

Autoscaler status.

statusDetails

public statusDetails: google.cloud.compute.v1.IAutoscalerStatusDetails[];

Autoscaler statusDetails.

target

public target?: (string|null);

Autoscaler target.

zone

public zone?: (string|null);

Autoscaler zone.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IAutoscaler): google.cloud.compute.v1.Autoscaler;

Creates a new Autoscaler instance using the specified properties.

Parameter
NameDescription
properties IAutoscaler

Properties to set

Returns
TypeDescription
google.cloud.compute.v1.Autoscaler

Autoscaler instance

decode(reader, length)

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

Decodes an Autoscaler 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.Autoscaler

Autoscaler

decodeDelimited(reader)

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

Decodes an Autoscaler 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.Autoscaler

Autoscaler

encode(message, writer)

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

Encodes the specified Autoscaler message. Does not implicitly messages.

Parameters
NameDescription
message IAutoscaler

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

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

Parameters
NameDescription
message IAutoscaler

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

Creates an Autoscaler 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.Autoscaler

Autoscaler

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for Autoscaler

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

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

Autoscaler

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies an Autoscaler 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