Represents an Autoscaler.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IAutoscaler);
Constructs a new Autoscaler.
Name | Description |
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.
_selfLink
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.
selfLink
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.
Name | Description |
properties |
IAutoscaler
Properties to set |
Type | Description |
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.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
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.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
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.
Name | Description |
message |
IAutoscaler
Autoscaler message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$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.
Name | Description |
message |
IAutoscaler
Autoscaler message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$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.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.compute.v1.Autoscaler | Autoscaler |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for Autoscaler
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Type | Description |
string | The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this Autoscaler to JSON.
Type | Description |
{ [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.
Name | Description |
message |
google.cloud.compute.v1.Autoscaler
Autoscaler |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an Autoscaler message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|