Represents a TargetPool.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.ITargetPool);
Constructs a new TargetPool.
Name | Description |
properties |
ITargetPool
Properties to set |
Properties
_backupPool
public _backupPool?: "backupPool";
TargetPool _backupPool.
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
TargetPool _creationTimestamp.
_description
public _description?: "description";
TargetPool _description.
_failoverRatio
public _failoverRatio?: "failoverRatio";
TargetPool _failoverRatio.
_id
public _id?: "id";
TargetPool _id.
_kind
public _kind?: "kind";
TargetPool _kind.
_name
public _name?: "name";
TargetPool _name.
_region
public _region?: "region";
TargetPool _region.
_selfLink
public _selfLink?: "selfLink";
TargetPool _selfLink.
_sessionAffinity
public _sessionAffinity?: "sessionAffinity";
TargetPool _sessionAffinity.
backupPool
public backupPool?: (string|null);
TargetPool backupPool.
creationTimestamp
public creationTimestamp?: (string|null);
TargetPool creationTimestamp.
description
public description?: (string|null);
TargetPool description.
failoverRatio
public failoverRatio?: (number|null);
TargetPool failoverRatio.
healthChecks
public healthChecks: string[];
TargetPool healthChecks.
id
public id?: (number|Long|string|null);
TargetPool id.
instances
public instances: string[];
TargetPool instances.
kind
public kind?: (string|null);
TargetPool kind.
name
public name?: (string|null);
TargetPool name.
region
public region?: (string|null);
TargetPool region.
selfLink
public selfLink?: (string|null);
TargetPool selfLink.
sessionAffinity
public sessionAffinity?: (string|null);
TargetPool sessionAffinity.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.ITargetPool): google.cloud.compute.v1.TargetPool;
Creates a new TargetPool instance using the specified properties.
Name | Description |
properties |
ITargetPool
Properties to set |
Type | Description |
google.cloud.compute.v1.TargetPool | TargetPool instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.TargetPool;
Decodes a TargetPool 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.TargetPool | TargetPool |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.TargetPool;
Decodes a TargetPool 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.TargetPool | TargetPool |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.ITargetPool, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified TargetPool message. Does not implicitly messages.
Name | Description |
message |
ITargetPool
TargetPool 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.ITargetPool, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified TargetPool message, length delimited. Does not implicitly messages.
Name | Description |
message |
ITargetPool
TargetPool 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.TargetPool;
Creates a TargetPool 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.TargetPool | TargetPool |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for TargetPool
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 TargetPool to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.TargetPool, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a TargetPool message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.compute.v1.TargetPool
TargetPool |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a TargetPool message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|