Represents a MachineType.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IMachineType);
Constructs a new MachineType.
Name | Description |
properties |
IMachineType
Properties to set |
Properties
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
MachineType _creationTimestamp.
_deprecated
public _deprecated?: "deprecated";
MachineType _deprecated.
_description
public _description?: "description";
MachineType _description.
_guestCpus
public _guestCpus?: "guestCpus";
MachineType _guestCpus.
_id
public _id?: "id";
MachineType _id.
_imageSpaceGb
public _imageSpaceGb?: "imageSpaceGb";
MachineType _imageSpaceGb.
_isSharedCpu
public _isSharedCpu?: "isSharedCpu";
MachineType _isSharedCpu.
_kind
public _kind?: "kind";
MachineType _kind.
_maximumPersistentDisks
public _maximumPersistentDisks?: "maximumPersistentDisks";
MachineType _maximumPersistentDisks.
_maximumPersistentDisksSizeGb
public _maximumPersistentDisksSizeGb?: "maximumPersistentDisksSizeGb";
MachineType _maximumPersistentDisksSizeGb.
_memoryMb
public _memoryMb?: "memoryMb";
MachineType _memoryMb.
_name
public _name?: "name";
MachineType _name.
_selfLink
public _selfLink?: "selfLink";
MachineType _selfLink.
_zone
public _zone?: "zone";
MachineType _zone.
accelerators
public accelerators: google.cloud.compute.v1.IAccelerators[];
MachineType accelerators.
creationTimestamp
public creationTimestamp?: (string|null);
MachineType creationTimestamp.
deprecated
public deprecated?: (google.cloud.compute.v1.IDeprecationStatus|null);
MachineType deprecated.
description
public description?: (string|null);
MachineType description.
guestCpus
public guestCpus?: (number|null);
MachineType guestCpus.
id
public id?: (number|Long|string|null);
MachineType id.
imageSpaceGb
public imageSpaceGb?: (number|null);
MachineType imageSpaceGb.
isSharedCpu
public isSharedCpu?: (boolean|null);
MachineType isSharedCpu.
kind
public kind?: (string|null);
MachineType kind.
maximumPersistentDisks
public maximumPersistentDisks?: (number|null);
MachineType maximumPersistentDisks.
maximumPersistentDisksSizeGb
public maximumPersistentDisksSizeGb?: (number|Long|string|null);
MachineType maximumPersistentDisksSizeGb.
memoryMb
public memoryMb?: (number|null);
MachineType memoryMb.
name
public name?: (string|null);
MachineType name.
scratchDisks
public scratchDisks: google.cloud.compute.v1.IScratchDisks[];
MachineType scratchDisks.
selfLink
public selfLink?: (string|null);
MachineType selfLink.
zone
public zone?: (string|null);
MachineType zone.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.IMachineType): google.cloud.compute.v1.MachineType;
Creates a new MachineType instance using the specified properties.
Name | Description |
properties |
IMachineType
Properties to set |
Type | Description |
google.cloud.compute.v1.MachineType | MachineType instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.MachineType;
Decodes a MachineType 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.MachineType | MachineType |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.MachineType;
Decodes a MachineType 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.MachineType | MachineType |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.IMachineType, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified MachineType message. Does not implicitly messages.
Name | Description |
message |
IMachineType
MachineType 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.IMachineType, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified MachineType message, length delimited. Does not implicitly messages.
Name | Description |
message |
IMachineType
MachineType 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.MachineType;
Creates a MachineType 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.MachineType | MachineType |
toJSON()
public toJSON(): { [k: string]: any };
Converts this MachineType to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.MachineType, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a MachineType message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.compute.v1.MachineType
MachineType |
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 MachineType message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|