Represents a NodeType.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.INodeType);
Constructs a new NodeType.
Parameter | |
---|---|
Name | Description |
properties |
INodeType
Properties to set |
Properties
_cpuPlatform
public _cpuPlatform?: "cpuPlatform";
NodeType _cpuPlatform.
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
NodeType _creationTimestamp.
_deprecated
public _deprecated?: "deprecated";
NodeType _deprecated.
_description
public _description?: "description";
NodeType _description.
_guestCpus
public _guestCpus?: "guestCpus";
NodeType _guestCpus.
_id
public _id?: "id";
NodeType _id.
_kind
public _kind?: "kind";
NodeType _kind.
_localSsdGb
public _localSsdGb?: "localSsdGb";
NodeType _localSsdGb.
_memoryMb
public _memoryMb?: "memoryMb";
NodeType _memoryMb.
_name
public _name?: "name";
NodeType _name.
_selfLink
public _selfLink?: "selfLink";
NodeType _selfLink.
_zone
public _zone?: "zone";
NodeType _zone.
cpuPlatform
public cpuPlatform?: (string|null);
NodeType cpuPlatform.
creationTimestamp
public creationTimestamp?: (string|null);
NodeType creationTimestamp.
deprecated
public deprecated?: (google.cloud.compute.v1.IDeprecationStatus|null);
NodeType deprecated.
description
public description?: (string|null);
NodeType description.
guestCpus
public guestCpus?: (number|null);
NodeType guestCpus.
id
public id?: (number|Long|string|null);
NodeType id.
kind
public kind?: (string|null);
NodeType kind.
localSsdGb
public localSsdGb?: (number|null);
NodeType localSsdGb.
memoryMb
public memoryMb?: (number|null);
NodeType memoryMb.
name
public name?: (string|null);
NodeType name.
selfLink
public selfLink?: (string|null);
NodeType selfLink.
zone
public zone?: (string|null);
NodeType zone.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.INodeType): google.cloud.compute.v1.NodeType;
Creates a new NodeType instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
INodeType
Properties to set |
Returns | |
---|---|
Type | Description |
google.cloud.compute.v1.NodeType | NodeType instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.NodeType;
Decodes a NodeType message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
google.cloud.compute.v1.NodeType | NodeType |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.NodeType;
Decodes a NodeType message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
google.cloud.compute.v1.NodeType | NodeType |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified NodeType message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
INodeType
NodeType message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.compute.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified NodeType message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
INodeType
NodeType message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NodeType;
Creates a NodeType message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
google.cloud.compute.v1.NodeType | NodeType |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for NodeType
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string | The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this NodeType to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.NodeType, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a NodeType message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
google.cloud.compute.v1.NodeType
NodeType |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a NodeType message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|